@font-face {
  font-family: LocalSerif;
  src: url("assets/fonts/beaufortforlol-medium.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Beaufort;
  src: url("assets/fonts/beaufortforlol-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Spiegel;
  src: url("assets/fonts/spiegel-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Spiegel;
  src: url("assets/fonts/spiegel-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #061018;
  color: #eee8d6;
  font-family: Spiegel, Arial, sans-serif;
  font-size: 14px;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid #6c5b34;
  background: linear-gradient(#142632, #08141e);
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  border-color: #c8aa6e;
  background: #193847;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #55e5ed;
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
.brand,
.primary,
.nav {
  font-family: LocalSerif, Georgia, serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 22px;
  letter-spacing: 2px;
  color: #d9bc7e;
  margin: 8px 0 20px;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: 0;
  touch-action: none;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px 50px #020a10aa;
  background: linear-gradient(0deg, #030a10a0, transparent 36%);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  color: #91a9ac;
}
.muted {
  color: #94a6a9;
}
.small {
  font-size: 11px;
  line-height: 1.6;
}
header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-bottom: 1px solid #685733;
  background: #050e18e8;
  backdrop-filter: blur(10px);
}
.brand {
  color: #d2b478;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand b {
  color: #53dce7;
  font-size: 29px;
  margin-right: 6px;
}
.brand span {
  font-size: 13px;
  letter-spacing: 2px;
}
nav {
  margin: auto;
  display: flex;
  height: 100%;
  gap: 12px;
}
.nav {
  border: 0;
  background: transparent;
  padding: 0 25px;
  color: #899798;
  font-size: 13px;
  letter-spacing: 2px;
}
.nav.active {
  color: #e7e6d7;
  border-bottom: 2px solid #3cc6d1;
  box-shadow: 0 10px 25px -18px #41e9ff;
}
.icon {
  background: transparent;
  border: 0;
  min-width: 35px;
  min-height: 35px;
  font-size: 21px;
  color: #c5ae78;
}
#menu {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.menu-grid {
  display: grid;
  grid-template-columns: 226px 1fr 275px;
  gap: 24px;
  padding: 24px 28px 16px;
  flex: 1;
  min-height: 0;
}
.panel {
  background: linear-gradient(135deg, #071824e8, #06121bca);
  border: 1px solid #5b4a2c;
  box-shadow: 0 12px 45px #0006;
  padding: 22px 18px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #5e5134 #08131c;
}
.champion-panel {
  align-self: start;
}
.champion-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 9px;
  padding: 7px;
  text-align: left;
  background: #0b1926a6;
  border: 1px solid #243c44;
  min-height: 66px;
}
.champion-button img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #8d7644;
}
.champion-button b {
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 1px;
}
.champion-button small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #94a4aa;
  margin-top: 5px;
}
.champion-button.selected {
  border-color: #53deeb;
  box-shadow:
    inset 0 0 25px #24b0c41b,
    0 0 10px #20e2f225;
  background: linear-gradient(90deg, #103544b0, #09202e99);
}
.champion-button.selected b {
  color: #78e7f1;
}
.hero-info {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  min-width: 0;
  pointer-events: none;
}
.hero-card {
  text-align: center;
  width: 100%;
  max-width: 490px;
  background: linear-gradient(0deg, #040d17f8, #041019ce 75%, transparent);
  padding: 45px 20px 20px;
  pointer-events: auto;
}
.hero-card h1 {
  font-size: 54px;
  line-height: 1.25;
  color: #efdab0;
  letter-spacing: 6px;
  text-shadow: 0 3px 18px #000;
}
.menu-spells {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 22px;
}
.menu-spells button {
  width: 48px;
  height: 48px;
  position: relative;
  padding: 0;
}
.menu-spells img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-spells kbd {
  position: absolute;
  right: -4px;
  bottom: -7px;
  background: #06121c;
  border: 1px solid #91753d;
  min-width: 18px;
  padding: 2px;
  font: 10px Georgia;
}
.model-status {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 2px;
  color: #9ed1d5;
  white-space: nowrap;
}
.build-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #c4ab75;
  border-top: 1px solid #70613c;
  padding-top: 14px;
}
.build-heading small {
  font-size: 10px;
  letter-spacing: 0;
  color: #a3b0b4;
}
.builds {
  display: flex;
  gap: 6px;
  margin: 12px 0 8px;
}
.builds button {
  flex: 1;
  padding: 11px 4px;
  font: 12px Georgia;
}
.builds button.selected {
  color: #ffdb91;
  border-color: #d3ae66;
  background: linear-gradient(#59441b, #241c10);
  box-shadow: inset 0 0 15px #c998411f;
}
.location-panel {
  display: flex;
  flex-direction: column;
  align-self: start;
}
.location {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
  min-height: 62px;
  padding: 10px 12px;
  background: linear-gradient(110deg, var(--zone, #213e49), #06121ee0);
  border-color: #33434a;
}
.location .zone-symbol {
  font-size: 26px;
  color: #e3d4a6;
  text-shadow: 0 0 16px currentColor;
}
.location b {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: normal;
}
.location small {
  display: block;
  color: #9dabae;
  font-size: 9px;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
.location.selected {
  border-color: #5ae3e8;
  box-shadow: inset 0 0 20px #54dce324;
}
.intel {
  border-top: 1px solid #52606755;
  padding-top: 14px;
  margin-top: 8px;
}
.intel p {
  margin: 6px 0 13px;
  font-size: 12px;
  color: #a8b6b9;
  line-height: 1.5;
}
.intel b {
  font-size: 9px;
  color: #d0b67c;
  letter-spacing: 1.5px;
}
.run-select {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #99afb3;
  margin: 0 0 12px;
}
.run-select select {
  margin-top: 7px;
  width: 100%;
}
select {
  color: #d6dfdf;
  border: 1px solid #3f535a;
  background: #091925;
  padding: 9px;
}
option {
  background: #0a1823;
}
.primary {
  padding: 15px 20px;
  letter-spacing: 1.3px;
  border: 1px solid #40bccf;
  background: linear-gradient(#164956, #082531);
  box-shadow:
    inset 0 0 0 2px #07121a,
    0 0 15px #1ccde21b;
  font-size: 13px;
  color: #d8fcff;
}
.primary span {
  float: right;
}
.primary:hover {
  background: #1b606e;
  border-color: #7df3ff;
  box-shadow: 0 0 25px #23d8f533;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  height: 40px;
  background: #020a12b0;
  font-size: 9px;
  letter-spacing: 1px;
  color: #7f939b;
}
footer i {
  padding: 0 8px;
}
footer button {
  background: transparent;
  border: 0;
  color: #8fa1a6;
  font-size: 9px;
  letter-spacing: 1px;
}
#boot {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 35%, #143441, #061018 65%);
  transition: opacity 0.4s;
}
.emblem {
  font-size: 75px;
  color: #68dbe2;
  text-shadow: 0 0 40px #11d5ff55;
}
#boot h1 {
  text-align: center;
  font-size: 52px;
  letter-spacing: 7px;
  color: #dfc590;
  line-height: 1.2;
  margin: 20px;
}
#boot h1 span {
  font-size: 26px;
  letter-spacing: 10px;
}
#boot p:not(.eyebrow) {
  color: #9ab6bf;
  margin: 15px;
  max-width: 480px;
  text-align: center;
  line-height: 1.6;
}
.loading-track {
  height: 3px;
  width: 260px;
  background: #213541;
  margin: 14px;
}
.loading-track i {
  display: block;
  background: #5de5ed;
  width: 4%;
  height: 100%;
  transition: width 0.4s;
}
#boot small {
  color: #5d818e;
  letter-spacing: 2px;
  font-size: 10px;
}
.run-heading {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 5px #000;
}
.run-heading p {
  font: 25px Georgia;
  color: #ecd49b;
  letter-spacing: 2px;
}
.run-heading > span {
  display: block;
  font-size: 11px;
  color: #cad6d7;
  margin-top: 6px;
}
.run-top {
  position: absolute;
  right: 20px;
  top: 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #05121bc9;
  padding: 4px 10px;
  border: 1px solid #61707555;
}
.run-top span {
  color: #ccba8a;
  font-size: 14px;
}
#autoBtn {
  font: 10px Arial;
  color: #55dae3;
}
#bossBar {
  width: 340px;
  margin-top: 10px;
  color: #e8aaaa;
  font-size: 12px;
}
#bossBar .meter {
  margin-top: 6px;
  height: 10px;
}
#bossBar i {
  background: #b13d55;
  width: 100%;
}
.hud-bottom {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) scale(var(--hud-scale, 1));
  transform-origin: bottom center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}
.champ-stats {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #d4c39b;
  padding: 6px 12px;
  background: #06131dc2;
  border: 1px solid #3b4d5155;
  border-bottom: 0;
  white-space: nowrap;
}
.spellbar {
  display: flex;
  align-items: center;
  padding: 7px;
  background: linear-gradient(#081c29f5, #030c16fa);
  border: 2px solid #8e7541;
  box-shadow: 0 3px 20px #000c;
  gap: 9px;
}
.portrait-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border: 2px solid #b39b62;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-wrap > span {
  position: absolute;
  bottom: -9px;
  right: -7px;
  border: 2px solid #b39b62;
  border-radius: 50%;
  background: #071521;
  padding: 4px 7px;
  font-size: 15px;
  color: #f4deaa;
}
.abilities-wrap {
  min-width: 334px;
}
.abilities {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
}
.ability {
  position: relative;
  padding: 0;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border: 1px solid #b09c67;
  overflow: visible;
}
.ability img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ability.passive {
  width: 30px;
  height: 30px;
  margin-right: 3px;
}
.ability.summoner {
  width: 34px;
  height: 34px;
}
.ability kbd {
  position: absolute;
  bottom: -4px;
  right: 0;
  min-width: 16px;
  text-align: center;
  background: #081320;
  color: #d5c69c;
  font: 9px Arial;
  border: 1px solid #8b7442;
  z-index: 3;
}
.ability .cooldown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: white;
  text-shadow: 0 2px 4px #000;
  background: #010812b8;
  z-index: 2;
}
.ability .ranks {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  display: flex;
  gap: 2px;
}
.ability .ranks i {
  width: 6px;
  height: 3px;
  background: #564a2b;
}
.ability .ranks i.on {
  background: #dec270;
}
.meter {
  position: relative;
  height: 12px;
  background: #030b12;
  border: 1px solid #132d38;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.12s;
}
.meter span {
  position: absolute;
  inset: 0;
  text-align: center;
  font: 10px Arial;
  color: #fff;
  text-shadow: 0 1px 2px black;
}
.health i {
  background: linear-gradient(#56bf55, #238647);
}
.mana {
  height: 10px;
  margin-top: 2px;
}
.mana i {
  background: linear-gradient(#47aada, #257dbf);
}
.xp {
  height: 3px;
  margin-top: 4px;
}
.xp i {
  background: #c3a460;
}
.inventory {
  width: 132px;
  align-self: stretch;
  margin-left: 2px;
}
#itemSlots {
  display: grid;
  grid-template-columns: repeat(3, 31px);
  gap: 3px;
  justify-content: center;
}
#itemSlots button {
  width: 31px;
  height: 31px;
  padding: 0;
  background: #06131c;
  border-color: #594b30;
}
#itemSlots img {
  width: 100%;
  height: 100%;
}
#shopBtn {
  border: 0;
  background: #030c15;
  width: 100%;
  height: 23px;
  font-size: 12px;
  color: #e8c16b;
}
#shopBtn small {
  font-size: 8px;
  color: #a0a39a;
  margin-left: 4px;
}
.minimap {
  position: absolute;
  bottom: 15px;
  right: 18px;
  background: #081922;
  border: 2px solid #8e7541;
  box-shadow: 0 3px 15px #0009;
}
.minimap canvas {
  display: block;
  width: 150px;
  height: 150px;
}
.minimap span {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 5px;
  color: #d4be87;
}
#runHint {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 10px;
  line-height: 1.8;
  color: #b9cbd0;
  text-shadow: 0 2px 4px #000;
  max-width: 210px;
}
#notification {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: #e6cc8f;
  font: 19px Georgia;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 8px #000;
  transition: opacity 0.3s;
}
#floatLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.damage-number {
  position: absolute;
  font: bold 16px Georgia;
  color: #ffdc79;
  text-shadow: 1px 2px 3px #000;
}
.damage-number.magic {
  color: #82d8ff;
}
.enemy-hp {
  position: absolute;
  width: 40px;
  height: 4px;
  transform: translateX(-50%);
  background: #201016;
  border: 1px solid #140b12;
}
.enemy-hp i {
  display: block;
  height: 100%;
  background: #c74454;
}
.enemy-hp.boss {
  width: 72px;
  height: 6px;
}
#modal {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #000b;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 18px;
}
#modalCard {
  width: min(780px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #927d4b;
  background: linear-gradient(135deg, #0d202e, #06111d);
  box-shadow: 0 20px 100px #0009;
  padding: 30px;
  scrollbar-width: thin;
  scrollbar-color: #8a7340 #091622;
}
#modalCard h2 {
  margin: 5px 0 12px;
  font-size: 28px;
}
#modalCard .close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #ab9871;
  padding: 0 4px;
}
.dialog-intro {
  color: #9bb0b9;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 16px;
  min-height: 245px;
  border: 1px solid #8e7947;
  text-align: center;
  background: linear-gradient(#183847, #0b1926);
  gap: 15px;
}
.choice img {
  width: 58px;
  height: 58px;
  border: 1px solid #baa166;
}
.choice b {
  font: 18px Georgia;
  color: #ecd49e;
}
.choice p {
  font-size: 12px;
  line-height: 1.7;
  color: #a9bec5;
}
.choice small {
  font-size: 9px;
  color: #62e2df;
  letter-spacing: 2px;
}
.choice kbd {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  color: #9bb5bf;
}
.choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #20c9e021;
  border-color: #66e9ed;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.dialog-actions button {
  padding: 12px 18px;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.score-grid div {
  padding: 20px 10px;
  text-align: center;
  background: #122a38;
  border: 1px solid #445867;
}
.score-grid b {
  display: block;
  font: 30px Georgia;
  color: #e5cc93;
  margin-bottom: 8px;
}
.score-grid span {
  font-size: 10px;
  color: #96afb9;
  letter-spacing: 1px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.shop-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  text-align: left;
  background: #102430;
  min-height: 180px;
}
.shop-item img {
  width: 38px;
  height: 38px;
  border: 1px solid #967e4a;
}
.shop-item b {
  font-size: 12px;
  color: #e9d4a3;
}
.shop-item span {
  font-size: 10px;
  color: #a4b9c1;
  line-height: 1.5;
}
.shop-item small {
  margin-top: auto;
  color: #e1ba64;
}
.shop-item:disabled {
  cursor: default;
  opacity: 0.45;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.filters button {
  padding: 8px 13px;
  font-size: 11px;
}
.filters .selected {
  border-color: #62d9df;
  color: #62d9df;
}
.inventory-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.inventory-list button {
  padding: 6px;
  font-size: 10px;
}
.inventory-list img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 6px;
}
.settings-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #3b515c;
  margin-bottom: 15px;
}
.settings-tabs button {
  padding: 10px 16px;
  border: 0;
  font-size: 12px;
  background: transparent;
}
.settings-tabs .selected {
  color: #57d6e2;
  border-bottom: 2px solid #57d6e2;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #1d3441;
}
.setting > span {
  color: #c4d1d5;
  font-size: 12px;
}
.setting small {
  display: block;
  margin-top: 5px;
  color: #78939f;
  font-size: 10px;
  line-height: 1.5;
}
.setting input[type="range"] {
  accent-color: #45c4d0;
  width: 170px;
}
.setting input[type="checkbox"] {
  accent-color: #45c4d0;
  width: 18px;
  height: 18px;
}
.setting select {
  max-width: 250px;
  font-size: 11px;
}
.record {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #28404b;
}
.record img {
  width: 38px;
  height: 38px;
}
.record strong {
  font: 16px Georgia;
}
.record span {
  color: #9bb4bf;
  font-size: 12px;
}
.record .record-score {
  margin-left: auto;
  color: #d4bb7c;
}
#tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  width: 270px;
  padding: 14px;
  background: #06101af5;
  border: 1px solid #a18c52;
  box-shadow: 0 6px 20px #0008;
  color: #c4d2d6;
  font-size: 12px;
  line-height: 1.65;
}
#tooltip b {
  display: block;
  color: #ecd6a1;
  font-family: Georgia;
  font-size: 16px;
  margin-bottom: 6px;
}
#tooltip small {
  display: block;
  color: #6dd0d8;
  margin-top: 8px;
}
#joystick,
#touchFlash {
  display: none;
}
a {
  color: #65d7e3;
}
kbd {
  font-family: Arial;
}
body.playing #vignette {
  box-shadow: inset 0 0 100px 10px #020a1044;
  background: none;
}
body.low-health #vignette {
  box-shadow: inset 0 0 110px 15px #a7192444;
}
@media (min-width: 1600px) {
  .menu-grid {
    grid-template-columns: 270px 1fr 320px;
    padding: 32px 42px;
    gap: 40px;
  }
  .champion-button {
    min-height: 78px;
  }
  .champion-button img {
    width: 58px;
    height: 58px;
  }
  .location {
    min-height: 74px;
  }
  .hero-card {
    max-width: 550px;
  }
  .hero-card h1 {
    font-size: 66px;
  }
  .panel {
    padding: 28px 24px;
  }
  .hero-card {
    margin-bottom: 24px;
  }
}
@media (max-width: 1150px) {
  header {
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
  }
  .brand span {
    display: none;
  }
  .nav {
    padding: 0 16px;
  }
  .menu-grid {
    grid-template-columns: 185px 1fr 235px;
    gap: 14px;
    padding: 16px;
  }
  .panel {
    padding: 16px 12px;
  }
  .champion-button {
    min-height: 58px;
    gap: 10px;
  }
  .champion-button img {
    width: 40px;
    height: 40px;
  }
  .hero-card {
    padding: 30px 10px 10px;
  }
  .hero-card h1 {
    font-size: 40px;
  }
  .build-heading small {
    display: none;
  }
  .builds button {
    font-size: 10px;
  }
  .location {
    min-height: 54px;
    padding: 8px;
  }
  .location b {
    font-size: 13px;
  }
  .menu-spells {
    gap: 8px;
  }
  .menu-spells button {
    width: 41px;
    height: 41px;
  }
  .minimap canvas {
    width: 110px;
    height: 110px;
  }
  .hud-bottom {
    left: 44%;
    transform: translateX(-50%) scale(0.9);
  }
  #runHint {
    bottom: 135px;
    left: 15px;
    font-size: 9px;
  }
  .run-heading {
    top: 17px;
  }
  .run-heading p {
    font-size: 19px;
  }
  .run-top {
    gap: 9px;
    right: 12px;
  }
  .run-top span {
    font-size: 11px;
  }
}
@media (max-height: 760px) {
  header {
    height: 53px;
    flex-shrink: 0;
  }
  .menu-grid {
    padding-top: 12px;
    padding-bottom: 6px;
  }
  .panel {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .panel h2 {
    font-size: 18px;
    margin: 5px 0 10px;
  }
  .champion-button {
    min-height: 51px;
    margin-bottom: 5px;
  }
  .champion-button img {
    width: 37px;
    height: 37px;
  }
  .location {
    min-height: 49px;
    margin-bottom: 5px;
  }
  .intel p {
    margin: 4px 0 7px;
  }
  .intel {
    padding-top: 8px;
    margin-top: 5px;
  }
  .run-select {
    margin-bottom: 8px;
  }
  .primary {
    padding: 12px;
  }
  .hero-card h1 {
    font-size: 39px;
  }
  .hero-card {
    padding-bottom: 5px;
  }
  .menu-spells {
    margin: 10px 0 16px;
  }
  .hero-card .small {
    display: none;
  }
  footer {
    height: 30px;
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  header {
    height: 50px;
    padding: 0 10px;
  }
  .brand {
    font-size: 12px;
  }
  .brand b {
    font-size: 21px;
  }
  nav {
    gap: 0;
  }
  .nav {
    padding: 0 9px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  #fullscreenBtn {
    display: none;
  }
  .menu-grid {
    grid-template-columns: 120px 1fr 165px;
    gap: 7px;
    padding: 8px;
  }
  .panel {
    padding: 10px 7px;
  }
  .panel h2 {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .champion-button {
    gap: 6px;
    padding: 4px;
    min-height: 43px;
  }
  .champion-button img {
    width: 31px;
    height: 31px;
  }
  .champion-button b {
    font-size: 12px;
  }
  .champion-button small {
    font-size: 7px;
    margin-top: 3px;
  }
  .location {
    padding: 7px 5px;
    gap: 6px;
    min-height: 45px;
  }
  .location .zone-symbol {
    font-size: 19px;
  }
  .location b {
    font-size: 11px;
  }
  .location small {
    font-size: 7px;
  }
  .intel p {
    font-size: 10px;
  }
  .intel b {
    font-size: 8px;
  }
  .hero-card h1 {
    font-size: 30px;
    letter-spacing: 3px;
  }
  .hero-card {
    padding: 25px 2px 5px;
  }
  .menu-spells {
    gap: 5px;
  }
  .menu-spells button {
    width: 29px;
    height: 29px;
  }
  .builds {
    flex-wrap: wrap;
    gap: 4px;
  }
  .builds button {
    flex: 1 0 42%;
    padding: 7px 2px;
    font-size: 9px;
  }
  .build-heading {
    font-size: 9px;
  }
  .run-select select {
    font-size: 9px;
    padding: 7px 2px;
  }
  .primary {
    font-size: 10px;
    padding: 11px 6px;
    letter-spacing: 0.4px;
  }
  footer {
    padding: 6px 10px;
    font-size: 7px;
  }
  footer #saveStatus {
    display: none;
  }
  .model-status {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .hud-bottom {
    left: 47%;
    bottom: 8px;
    transform: translateX(-50%) scale(0.67);
  }
  .minimap {
    bottom: 9px;
    right: 8px;
  }
  .minimap canvas {
    width: 75px;
    height: 75px;
  }
  .minimap span {
    display: none;
  }
  .run-top {
    top: 7px;
    right: 7px;
    gap: 6px;
  }
  .run-heading {
    top: 10px;
    left: 30%;
  }
  .run-heading p {
    font-size: 14px;
  }
  .run-heading > span {
    font-size: 9px;
  }
  #bossBar {
    width: 210px;
  }
  .champ-stats {
    font-size: 9px;
  }
  #runHint {
    display: none;
  }
  .choice-grid {
    gap: 8px;
  }
  .choice {
    padding: 20px 8px;
    min-height: 200px;
  }
  .choice b {
    font-size: 14px;
  }
  .choice p {
    font-size: 10px;
  }
  .choice img {
    width: 43px;
    height: 43px;
  }
  #modalCard {
    padding: 20px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .setting {
    gap: 10px;
  }
  .setting input[type="range"] {
    width: 105px;
  }
  .setting select {
    max-width: 190px;
  }
  .settings-tabs {
    gap: 0;
  }
  .settings-tabs button {
    padding: 10px;
    font-size: 10px;
  }
}
@media (pointer: coarse) {
  #joystick {
    display: block;
    position: absolute;
    bottom: 120px;
    left: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #75bec65a;
    background: #06131b44;
    touch-action: none;
  }
  #joystick i {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid #62d8e6;
    border-radius: 50%;
    background: #1d4e6088;
    position: absolute;
    top: 31px;
    left: 31px;
    pointer-events: none;
  }
  #touchFlash {
    display: block;
    position: absolute;
    bottom: 150px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #ccaa62;
    background: #132d3caa;
    touch-action: none;
  }
  #touchFlash small {
    font-size: 8px;
  }
}
@media (max-width: 520px) and (orientation: portrait) {
  .menu-grid {
    grid-template-columns: 92px 1fr;
    gap: 8px;
    overflow: auto;
  }
  .champion-panel {
    grid-row: 1/3;
  }
  .hero-info {
    min-height: 220px;
  }
  .hero-card {
    padding-top: 100px;
  }
  .hero-card h1 {
    font-size: 30px;
  }
  .location-panel {
    grid-column: 2;
    overflow: visible;
  }
  .location-panel #locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .location {
    margin: 0;
  }
  .location .zone-symbol {
    display: none;
  }
  .location small {
    display: none;
  }
  .location {
    min-height: 36px;
  }
  .intel {
    display: none;
  }
  .hero-card .eyebrow {
    display: none;
  }
  .builds {
    flex-wrap: nowrap;
  }
  .builds button {
    flex: 1;
  }
  .build-heading {
    display: none;
  }
  .champion-button {
    display: block;
    text-align: center;
  }
  .champion-button img {
    width: 50px;
    height: 50px;
  }
  .champion-button b {
    display: block;
    margin-top: 5px;
  }
  .champion-button small {
    display: none;
  }
  .champion-button {
    margin-bottom: 7px;
  }
  .hero-card {
    background: linear-gradient(transparent, #04101de8 50%);
  }
  nav #helpBtn {
    display: none;
  }
  .menu-spells {
    margin: 10px;
  }
  .hud-bottom {
    left: 44%;
    transform: translateX(-50%) scale(0.49);
    bottom: 10px;
  }
  .run-heading {
    left: 30%;
    top: 60px;
  }
  .run-heading p {
    font-size: 18px;
  }
  #joystick {
    bottom: 130px;
    left: 20px;
  }
  #touchFlash {
    bottom: 150px;
    right: 20px;
  }
  .minimap {
    bottom: 95px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice {
    min-height: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 43px 1fr;
    gap: 6px;
    text-align: left;
  }
  .choice img {
    grid-row: 1/4;
  }
  .choice small,
  .choice b,
  .choice p {
    grid-column: 2;
  }
  .choice kbd {
    display: none;
  }
  .score-grid {
    gap: 7px;
  }
  .score-grid b {
    font-size: 24px;
  }
  .setting {
    flex-wrap: wrap;
  }
  .settings-tabs button {
    padding: 10px 8px;
  }
  .dialog-actions button {
    padding: 9px 13px;
  }
}

#menu,
.menu-grid,
#hud {
  pointer-events: none;
}
header,
footer,
.panel,
.hero-card,
#hud button,
#joystick {
  pointer-events: auto;
}
body.orbiting,
body.orbiting * {
  cursor: grabbing !important;
  user-select: none;
}
#game {
  cursor: grab;
}
/* League's compact gold-edged UI, with the world visible around the shop. */
body[data-mode="play"] #vignette {
  box-shadow: inset 0 0 80px #020a1040;
  background: linear-gradient(0deg, #030a1060, transparent 20%);
}
.portrait-wrap,
.portrait-wrap img {
  border-radius: 50%;
}
.hud-bottom {
  bottom: 4px;
  transform: translateX(-50%) scale(calc(var(--hud-scale, 1) * 0.92));
}
.spellbar {
  border-color: #917b49;
  box-shadow:
    inset 0 0 0 2px #142e32,
    0 0 0 1px #1a2831,
    0 3px 16px #000b;
}
.ability kbd,
.meter span {
  font-family: Spiegel, Arial, sans-serif;
}
.minimap {
  border: 3px ridge #a38b52;
  box-shadow:
    0 0 0 3px #18272a,
    0 0 0 5px #6b5b36;
  background: #06151c;
}
.minimap canvas {
  width: 210px;
  height: 210px;
}
#modal:has(.league-shop) {
  background: #020a1018;
  backdrop-filter: none;
}
#modalCard.league-shop {
  width: min(1050px, 93vw);
  max-width: none;
  padding: 0;
  background: linear-gradient(125deg, #072631f5, #031722fa);
  border: 2px solid #9b824c;
  box-shadow:
    inset 0 0 0 2px #102b34,
    0 12px 50px #0009;
  max-height: 80vh;
  overflow: auto;
}
.league-shop > .eyebrow,
.league-shop > h2 {
  display: none;
}
.league-shop .close {
  top: 10px;
  right: 10px;
  font-family: Spiegel;
  z-index: 2;
  color: #a4a18a;
}
.league-shop-tabs {
  display: flex;
  height: 57px;
  padding-right: 45px;
  border-bottom: 1px solid #3b544e;
  background: #061d28;
}
.league-shop-tabs button {
  min-width: 210px;
  border: 0;
  background: transparent;
  font-family: Beaufort, serif;
  font-weight: bold;
  color: #c8b77e;
  letter-spacing: 1px;
}
.league-shop-tabs button.selected {
  color: #e1d9bc;
  border-bottom: 2px solid #4be1e5;
  background: linear-gradient(0deg, #0d728340, transparent 40%);
}
.league-shop-body {
  display: grid;
  grid-template-columns: 150px 1fr 275px;
  min-height: 470px;
}
.league-shop-bag {
  padding: 18px 14px;
  border-right: 1px solid #6b633f;
  background: #031a23;
}
.league-shop-bag p,
.shop-tier {
  font-family: Beaufort;
  font-weight: bold;
  color: #c7bc9c;
  font-size: 14px;
  margin: 8px 0 16px;
}
.league-shop-bag small {
  font-size: 11px;
  color: #7a9195;
  line-height: 1.5;
}
.league-shop .inventory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 180px;
  align-content: start;
  gap: 8px;
  margin-bottom: 16px;
}
.shop-wallet {
  display: block;
  color: #e2ce84;
  font-size: 18px;
  margin-top: 26px;
}
.league-shop-catalog {
  padding: 16px 14px;
  position: relative;
}
#itemSearch {
  width: 100%;
  background: #101e25;
  border: 1px solid #82764c;
  padding: 8px 12px;
  color: #d5cfb8;
  font-size: 14px;
  outline: none;
}
.league-shop .filters {
  gap: 4px;
  margin: 15px 0;
  border-bottom: 1px solid #30464a;
  padding-bottom: 10px;
}
.league-shop .filters button {
  border: 0;
  background: transparent;
  color: #bbae76;
  font-size: 12px;
  padding: 6px 11px;
  font-family: Beaufort;
  font-weight: bold;
}
.league-shop .filters button.selected {
  color: #f0dc9a;
  border-bottom: 2px solid #e2bc57;
}
.league-shop .shop-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 17px 12px;
  max-height: 310px;
  overflow: auto;
  align-content: start;
}
.shop-icon {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.shop-icon img {
  width: 43px;
  height: 43px;
  border: 1px solid #6e795f;
  box-shadow: 0 0 0 2px #07151c;
  object-fit: cover;
}
.shop-icon.selected img {
  outline: 2px solid #cbb267;
  box-shadow: 0 0 12px #b7aa5b40;
}
.shop-icon small {
  color: #b6b08c;
  font-size: 13px;
}
.shop-mode-note {
  font-size: 11px;
  color: #80928e;
  margin-top: 28px;
}
.league-shop-detail {
  border-left: 1px solid #626344;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  background: #061a25b0;
}
.shop-item-title {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #454b35;
}
.shop-item-title img {
  width: 54px;
  height: 54px;
  border: 1px solid #ac8d4c;
}
.shop-item-title b {
  font-family: Beaufort;
  color: #e6dab7;
  font-size: 18px;
  line-height: 1.2;
}
.shop-item-title span {
  display: block;
  font-size: 12px;
  color: #849b9f;
  margin-top: 5px;
}
.league-shop-detail > p {
  color: #d2d1bb;
  line-height: 1.6;
  margin-top: 20px;
  min-height: 110px;
}
.shop-price {
  color: #dfc787;
  font-size: 18px;
  margin: 12px 0;
}
.league-shop-detail .primary {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}
.shop-return {
  margin-top: auto;
  padding: 11px 0;
  border: 0;
  background: transparent;
  font-family: Beaufort;
  color: #9caa9c;
  font-size: 12px;
}
@media (max-width: 850px) {
  .league-shop-body {
    grid-template-columns: 100px 1fr 200px;
  }
  .league-shop .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .league-shop-tabs button {
    min-width: 140px;
  }
  .minimap canvas {
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 600px) {
  .league-shop-body {
    grid-template-columns: 1fr 170px;
  }
  .league-shop-bag {
    display: none;
  }
  .league-shop .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-icon img {
    width: 36px;
    height: 36px;
  }
  .league-shop-detail {
    padding: 12px;
  }
  .shop-item-title {
    display: block;
  }
  .shop-item-title b {
    font-size: 15px;
  }
}
#questTracker {
  position: absolute;
  right: 25px;
  top: 110px;
  width: 220px;
  text-shadow: 0 1px 3px #000;
  color: #d9caa2;
  border-left: 1px solid #b79d6050;
  padding: 12px 15px;
  background: linear-gradient(90deg, #04171c99, transparent);
}
#questTracker p {
  font: 700 12px Beaufort;
  letter-spacing: 2px;
  color: #c8ac6b;
  margin-bottom: 13px;
}
#questTracker b {
  font: 700 17px Beaufort;
  color: #f2d783;
}
#questTracker span {
  display: block;
  margin: 10px 0;
}
#questTracker small {
  display: block;
  font-size: 13px;
  line-height: 1.9;
}
#questTracker .done {
  color: #8dba88;
}
#questTracker em {
  font-size: 11px;
  color: #b1a37f;
  font-style: normal;
}
#questTracker button {
  display: block;
  pointer-events: auto;
  font: 700 10px Beaufort;
  margin-top: 12px;
  padding: 8px;
  background: #071b23a0;
}
@media (max-width: 850px) {
  #questTracker {
    top: 70px;
    right: 8px;
    width: 175px;
    padding: 9px;
  }
  #questTracker b {
    font-size: 14px;
  }
  #questTracker small {
    font-size: 11px;
  }
}
#map {
  pointer-events: auto;
  cursor: crosshair;
}
@media (min-width: 851px) and (max-width: 1100px) {
  .hud-bottom {
    transform: translateX(-50%) scale(calc(var(--hud-scale, 1) * 0.76));
  }
  .minimap canvas {
    width: 155px;
    height: 155px;
  }
}
@media (min-width: 701px) {
  .menu-grid {
    grid-template-rows: minmax(0, 1fr);
  }
  .location-panel {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .location-panel #locations {
    min-height: 80px;
    overflow: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #8b7442 #071922;
  }
  .location-panel > h2,
  .location-panel > .eyebrow,
  .location-panel #zoneIntel,
  .location-panel .run-select,
  .location-panel #startBtn {
    flex-shrink: 0;
  }
  .champion-panel {
    max-height: 100%;
  }
}
.league-shop .inventory-list > .muted {
  grid-column: 1/-1;
  line-height: 1.5;
}
/* Rift Reflex training presentation */
.incoming-icon {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #8f7747;
  margin: 0 4px;
}
.incoming-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.incoming-icon kbd {
  position: absolute;
  bottom: -6px;
  right: -4px;
  background: #07121b;
  border: 1px solid #8f7747;
  padding: 1px 4px;
  font: 10px Spiegel;
}
#builds {
  grid-template-columns: repeat(3, 1fr);
}
#autoBtn,
.inventory,
#joystick,
#touchFlash {
  display: none !important;
}
.incoming-label {
  align-self: center;
  font: 700 8px Spiegel;
  letter-spacing: 1.5px;
  color: #b6aa88;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 5px;
}
.incoming-skill {
  display: inline-block;
  position: relative;
  opacity: 0.8;
  cursor: default;
}
.drill-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.drill-metrics span {
  display: flex;
  flex-direction: column;
}
.drill-metrics b {
  font: 700 27px Beaufort !important;
  color: #e7d7aa;
}
.drill-metrics small {
  font: 10px Spiegel;
  letter-spacing: 1px;
  color: #93aeb5;
}
.last-cast {
  font: 13px Spiegel;
  color: #d4e8ea;
  border-top: 1px solid #34494e;
  padding: 12px 0;
  min-height: 54px;
}
#questTracker {
  width: 238px;
  padding: 16px;
  background: linear-gradient(135deg, #071b24e6, #07131bd9);
  border: 1px solid #71613a;
}
.score-grid {
  grid-template-columns: repeat(4, 1fr);
}
#modalCard {
  position: relative;
}
.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  color: #a89b77;
  font-size: 25px;
  cursor: pointer;
}
#modelStatus {
  font-size: 10px;
  letter-spacing: 1.4px;
}
#runHint {
  font-size: 11px;
  line-height: 1.9;
  color: #c4d1d3;
}
#locations {
  flex: initial !important;
}
.location-panel #zoneIntel {
  margin-top: auto;
}
.minimap {
  opacity: 0.9;
}
.minimap canvas {
  pointer-events: none !important;
}
@media (max-width: 900px) {
  #questTracker {
    width: 186px;
    padding: 10px;
    top: 82px;
    right: 8px;
  }
  .drill-metrics b {
    font-size: 23px !important;
  }
  .drill-metrics small {
    font-size: 9px;
  }
  .last-cast {
    font-size: 11px;
    min-height: 44px;
  }
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Champion mobility trainer */
#builds {
  grid-template-columns: repeat(4, 1fr);
}
#builds button {
  font-size: 10px;
  padding: 10px 4px;
}
.champion-panel #champions {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}
.champion-panel {
  display: flex;
  flex-direction: column;
}
.champion-button {
  flex-shrink: 0;
}
.kit-description {
  font: 12px Spiegel;
  color: #b9d5d6;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 14px 0 0;
}
.inactive-mobility {
  opacity: 0.3;
}
.active-mobility {
  box-shadow: 0 0 12px #32d7e233;
}
.location-panel {
  overflow-y: auto !important;
}
.run-select {
  margin-top: 10px;
}
.progress-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 12px Spiegel;
  color: #b7c7c8;
  margin: 10px 0;
}
.spell-rank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  color: #cfb778;
  font-size: 9px;
  letter-spacing: 2px;
}
.ability:disabled {
  cursor: default;
}
.ability.recast {
  border-color: #53e4e8;
  box-shadow: 0 0 10px #31d7e250;
}
.mobility-status {
  font: 12px Spiegel;
  color: #67d9da;
  line-height: 1.6;
  margin: 10px 0;
}
.target-locks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.target-locks span {
  font: 10px Spiegel;
  padding: 4px;
  background: #153d37;
  color: #77e8be;
  text-align: center;
}
.target-locks .locked {
  background: #332b25;
  color: #c5ac81;
}
#notification {
  max-width: 600px;
  font-size: 13px;
  pointer-events: none;
}
#menuSpells {
  flex-wrap: wrap;
}
.kit-description {
  width: 100%;
}
.hero-card .muted.small {
  margin-top: 14px;
}
@media (max-height: 780px) {
  .location-panel #zoneIntel {
    display: none;
  }
  .champion-button {
    min-height: 54px;
  }
  .hero-card {
    padding: 18px;
  }
  .hero-card h1 {
    font-size: 38px;
  }
  .run-select {
    margin-top: 7px;
  }
}
