:root {
  color-scheme: dark;
  --ink: #070b17;
  --surface: #111a2d;
  --surface-deep: #0a101f;
  --surface-high: #182340;
  --text: #f1f6ff;
  --muted: #aab8d2;
  --cyan: #6ff0ee;
  --cyan-bright: #bdfbff;
  --violet: #a58bfa;
  --pink: #ec74a5;
  --line: #2d466a;
  --quiet-line: #7190c02f;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --display: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: "Consolas", "SFMono-Regular", monospace;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.45 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100dvh; }
button, select, input { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}
a { color: var(--cyan-bright); }
h1, h2, h3, h4, p { margin: 0; }
kbd { font-family: var(--mono); }
img { max-width: 100%; }
::selection { color: #03151f; background: #7bede9; }

#game { position: relative; min-height: 100dvh; isolation: isolate; }
.home, .battle { position: relative; min-height: 100dvh; overflow: hidden; }
.home {
  --outer-pad: clamp(1.6rem, 5.2vw, 5.15rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}
.home-art, .home-texture, .home-border { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.home-art {
  background-color: #0b1331;
  background-image:
    linear-gradient(90deg, #030919e8, #091129a9 33%, #111c3c1f 63%, #09112858),
    linear-gradient(0deg, #060b19f2, #070d244a 32%, #14254607 68%, #10182c59),
    var(--home-image, url("assets/hero.webp"));
  background-position: center, center, center 48%;
  background-size: cover;
}
.home-texture {
  z-index: 0;
  opacity: .23;
  background: repeating-linear-gradient(0deg, transparent 0 4px, #a8d9ff3b 4px 5px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 42%);
}
.home-border {
  z-index: 1;
  inset: 14px;
  border: 1px solid #b9c7fc24;
}
.home-border i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #a3f4f377;
  border-style: solid;
}
.home-border i:nth-child(1) { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.home-border i:nth-child(2) { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.home-border i:nth-child(3) { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.home-border i:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.home-header, .home-field, .home-footer { position: relative; z-index: 2; }
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.65rem) var(--outer-pad) .6rem;
}
.home-mark, .home-status { display: flex; align-items: center; gap: .64rem; }
.home-mark { color: #dfe9fc; font-weight: 850; letter-spacing: .025em; }
.seal {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #8aecf16c;
  border-radius: 8px;
  background: linear-gradient(135deg, #315378, #332967);
  box-shadow: inset 0 0 12px #75bcff29;
  color: #e2ffff;
  font-size: 1.12rem;
  line-height: 1;
}
.home-status {
  min-height: 2.35rem;
  padding: .14rem .18rem .14rem .8rem;
  border: 1px solid #779ae142;
  border-radius: 9px;
  background: #0a142cba;
}
.home-rank {
  padding-right: .58rem;
  border-right: 1px solid #a4b8ef2e;
  color: #cfdaf0;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.currency { display: inline-flex; align-items: center; gap: .43rem; color: var(--cyan-bright); white-space: nowrap; }
.currency::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}
.icon-button {
  display: grid;
  min-width: 2.48rem;
  min-height: 2.48rem;
  padding: .4rem .62rem;
  place-items: center;
  border: 1px solid #6f9bd448;
  border-radius: 7px;
  background: #0c162cde;
  color: #d7e5fe;
  font-size: .875rem;
  font-weight: 750;
  transition: color .17s, background .17s, border-color .17s;
}
.home-status .icon-button { min-height: 1.98rem; padding-block: .23rem; background: #182745; }
.home-status form { display: contents; }
.login-page { display: grid; min-height: 100dvh; place-items: center; padding: 1.25rem; }
.login-card {
  width: min(100%, 25rem);
  padding: clamp(1.55rem, 6vw, 2.5rem);
  border: 1px solid #85aefb73;
  border-radius: .85rem;
  background: linear-gradient(145deg, #192741, #121728);
  box-shadow: 0 10px 55px #02071096;
}
.login-card h1 { margin: 0 0 1rem; }
.login-card p { color: #bdcbe0; }
.discord-login {
  display: inline-block;
  border-radius: .45rem;
  padding: .65rem 1rem;
  background: #4c51d8;
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.discord-login:hover { background: #585ded; }
.icon-button:hover:not(:disabled) { color: #effffe; border-color: var(--cyan); background: #23436a; }
.icon-button[data-sound="on"], .icon-button[aria-pressed="true"] { color: var(--cyan-bright); border-color: #73e9ee70; }

.home-field { min-height: 29rem; }
.hero-heading {
  position: absolute;
  top: clamp(2.4rem, 13vh, 8.7rem);
  left: var(--outer-pad);
  width: min(78vw, 61rem);
  pointer-events: none;
}
.hero-rule { display: flex; align-items: center; width: min(17rem, 51vw); gap: .5rem; margin-bottom: .98rem; }
.hero-rule::before { content: ""; width: 2.4rem; height: 3px; background: var(--cyan); box-shadow: 0 0 15px #5be8f5b4; }
.hero-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #8afdff8f, transparent); }
.hero-rule span { width: .37rem; height: .37rem; border-radius: 2px; background: #b6a0ff; transform: rotate(45deg); }
.hero-heading h1 {
  color: #f5f5ff;
  font-family: var(--display);
  font-size: clamp(3.25rem, 8.1vw, 9rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.10em;
  text-shadow: 0 .06em .18em #021022a0, 0 .20em .69em #2433af75;
  word-break: keep-all;
}
.hero-heading h1 span {
  display: inline-block;
  padding-right: .04em;
  background: linear-gradient(125deg, #efffff 10%, #a7f6ff 60%, #ab91ff);
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-heading .hero-description,
.hero-heading .hero-tagline {
  max-width: 35rem;
  margin-top: 1rem;
  color: #d1dbf3;
  font-size: clamp(.92rem, 1.3vw, 1.1rem);
  text-shadow: 0 1px 6px #040b1b;
  word-break: keep-all;
}
.hero-chapters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .66rem .85rem;
  margin-top: 1.02rem;
  color: #dbe6fc;
  font-size: .92rem;
  font-weight: 780;
  text-shadow: 0 1px 4px #040818, 0 0 10px #040818;
}
.clasp { width: .37rem; height: .37rem; background: #8cf1f5; transform: rotate(45deg); }

.home-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: clamp(13rem, 21vw, 19.3rem);
  gap: .58rem;
}
.home-nav--left { top: 61%; left: var(--outer-pad); }
.home-nav--right { top: 49%; right: var(--outer-pad); }
.nav-button {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  align-items: center;
  gap: .78rem;
  min-height: 4.15rem;
  padding: .61rem .79rem;
  border: 1px solid #7ca2e968;
  border-radius: 8px;
  background: linear-gradient(115deg, #172745f4, #0d162bcf);
  color: #f0f5ff;
  box-shadow: inset 0 1px #bad5ff20, 0 5px 17px #03102a90;
  text-align: left;
  transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.nav-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #a1fcffb0;
  background: linear-gradient(115deg, #224771, #182852);
  box-shadow: inset 0 1px #c7f4f85e, 0 12px 24px #020821a8;
}
.nav-button--start {
  min-height: 5rem;
  border-color: #b7feff;
  background: linear-gradient(112deg, #b2fff4, #79e2ff 58%, #9ca2fc);
  color: #071428;
  box-shadow: inset 0 1px #e8ffffd8, 0 0 26px #6de5f969, 0 12px 27px #06112dd7;
}
.nav-button--start:hover:not(:disabled) { background: linear-gradient(112deg, #d5fff8, #a0f3ff 53%, #b7baff); color: #061225; }
.nav-sigil {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #72c3ff55;
  border-radius: 7px;
  background: linear-gradient(135deg, #244a75, #211e4b);
  color: #bdecff;
  font: 800 1.28rem/1 var(--display);
}
.nav-button--start .nav-sigil { border-color: #0e4b6f5e; background: #143f6422; color: #153b66; }
.nav-label { display: grid; gap: .18rem; min-width: 0; }
.nav-title { font-size: 1.13rem; font-weight: 900; line-height: 1.18; letter-spacing: -.028em; word-break: keep-all; }
.nav-button--start .nav-title { font-size: 1.31rem; }
.nav-note { color: #b1c2de; font-size: .875rem; line-height: 1.25; word-break: keep-all; }
.nav-button--start .nav-note { color: #224667; font-weight: 730; }
.nav-resume {
  min-height: 2.28rem;
  border: 1px solid #81b0f149;
  border-radius: 7px;
  padding: .36rem .6rem;
  background: #0a162bd9;
  color: #c7eeff;
  font-size: .875rem;
  font-weight: 720;
}
.nav-resume:hover { border-color: #90f0f2; background: #1a3153; }

.home-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem var(--outer-pad) clamp(1.4rem, 3vw, 2.2rem); }
.home-tools { display: flex; align-items: center; gap: .85rem; }
.home-tools .balance-button { min-height: 2.42rem; padding-inline: .74rem; white-space: nowrap; }
.game-version { color: #a3b0ca; white-space: nowrap; font-variant-numeric: tabular-nums; }
.key-guide { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .45rem 1.1rem; color: #c1cdeb; }
.key-group { display: inline-flex; align-items: center; gap: .22rem; min-height: 1.65rem; font-size: .875rem; text-shadow: 0 1px 5px #050917; }
.key-group span:last-child:not(.mouse-key) { margin-inline-start: .16rem; }
.key-group kbd {
  min-width: 1.42rem;
  min-height: 1.38rem;
  padding: .08rem .27rem;
  border: 1px solid #9ebbf763;
  border-radius: 4px;
  background: #111d3ae8;
  color: #edf7ff;
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
}
.mouse-key {
  position: relative;
  width: .78rem;
  height: 1.09rem;
  margin-inline-end: .17rem;
  overflow: hidden;
  border: 1px solid #9dbafa;
  border-radius: .43rem;
}
.mouse-key::after { position: absolute; inset: 0 0 auto; height: 44%; border-bottom: 1px solid #9dbafa; content: ""; }
.mouse-key--left::before, .mouse-key--right::before { position: absolute; top: 0; width: 50%; height: 44%; background: #a0f5ff; content: ""; }
.mouse-key--left::before { left: 0; }
.mouse-key--right::before { right: 0; background: #e2baff; }

.battle { height: 100dvh; background: #121a32; }
.battle[data-pending="true"] {
  background:
    linear-gradient(150deg, #07163388, #20194565),
    var(--pending-map, url("assets/arena.webp")) center / cover;
}
.battle[data-pending="true"] > #arena,
.battle[data-pending="true"] > .battle-top,
.battle[data-pending="true"] > .battle-bottom,
.battle[data-pending="true"] > .boss-hud { visibility: hidden; }
#arena { display: block; width: 100%; height: 100%; touch-action: none; }
.battle-top, .battle-bottom {
  position: absolute;
  inset-inline: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  pointer-events: none;
}
.battle-top { top: max(1rem, env(safe-area-inset-top)); }
.battle-bottom { bottom: max(1rem, env(safe-area-inset-bottom)); align-items: flex-end; }
.hud-tile {
  border: 1px solid #81acf978;
  border-radius: 7px;
  background: linear-gradient(135deg, #15233cef, #0c1428eb);
  box-shadow: 0 5px 16px #020a1cc2, inset 0 1px #9fc7f32c;
}
.hud-label { display: block; color: #b8c7e5; font-size: .875rem; line-height: 1.24; }
.round-tile { min-width: 7rem; padding: .49rem .81rem .6rem; }
.round-tile strong { display: block; margin-top: .13rem; color: #f0f8ff; font: 750 1.19rem/1.15 var(--mono); }
.battle-clock {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  min-width: 8rem;
  min-height: 2.76rem;
  place-items: center;
  padding: .26rem .52rem;
  transform: translateX(-50%);
  border: 1px solid #82abf17a;
  border-radius: 7px;
  background: #0b152cde;
  color: #d9faff;
  font-size: 1.13rem;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px #b4d3fc39, 0 4px 10px #0007;
}
#battle-time { color: #e8f6ff; font: 800 1.14em/1.2 var(--mono); }
#battle-time.time-low { color: #ffbf79; }
#battle-objective { color: #aabfdf; font-size: .72em; }
.battle-buttons { display: flex; gap: .38rem; pointer-events: auto; }
.pause-button { font-size: 1.13rem; line-height: 1; }
.boss-hud {
  position: absolute;
  top: 4.6rem;
  left: 50%;
  width: min(35rem, 61vw);
  transform: translateX(-50%);
  text-shadow: 0 2px 8px #120915;
  pointer-events: none;
}
.boss-heading { display: flex; align-items: center; justify-content: center; gap: .63rem; margin-bottom: .3rem; color: #ffd2e7; }
.boss-heading span { color: #f597c0; font-size: .78rem; }
.region-beacon {
  display: inline-flex;
  max-width: min(28rem, 42vw);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem .51rem;
  min-height: 1.9rem;
  padding: .28rem .62rem;
  border: 1px solid #94c6fc71;
  border-radius: 6px;
  background: #101c36db;
  color: #cef0ff;
  font-size: .875rem;
  font-weight: 750;
  text-shadow: 0 1px 6px #030b1a;
}
.battle > .region-beacon {
  position: absolute;
  top: 4.2rem;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.battle:has(.boss-hud:not([hidden])) > .region-beacon { top: 6.5rem; }
.round-tile .region-beacon {
  width: max-content;
  min-height: 0;
  margin-top: .36rem;
  padding: .18rem .41rem;
  border-color: #81b8ed65;
  border-radius: 4px;
  font-size: .81rem;
  text-shadow: none;
}
.meter { height: .52rem; overflow: hidden; border: 1px solid #a3bbed60; border-radius: 2px; background: #090e20; }
.meter > span { display: block; height: 100%; transition: width .14s linear; }
.hp-meter > span { background: linear-gradient(90deg, #4a99f1, #8ffbec); }
.boss-meter { box-shadow: 0 3px 9px #02050bc6; }
.boss-meter > span { background: linear-gradient(90deg, #a74278, #fa799f); }
.battle-vitals { min-width: clamp(10rem, 22vw, 17.25rem); padding: .58rem .74rem .51rem; }
.vitals-heading, .combat-stats { display: flex; align-items: center; justify-content: space-between; gap: .51rem; }
.vitals-heading { margin-bottom: .41rem; }
.vitals-heading strong { font-size: 1.1rem; font-weight: 850; }
.vitals-heading #battle-hp, .combat-stats { font-size: .875rem; font-variant-numeric: tabular-nums; }
.vitals-shield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .48rem;
  margin-top: .28rem;
  color: #a9b8cf;
  font-size: .81rem;
  font-variant-numeric: tabular-nums;
}
.vitals-shield.is-active { color: #ffda92; }
.shield-meter { height: .36rem; }
.shield-meter > span { background: linear-gradient(90deg, #e99a36, #ffe398); }
.vitals-shield.is-active .shield-meter > span { min-width: 2px; }
.combat-stats { margin-top: .39rem; color: #dce8fd; }
.battle-skills { display: flex; gap: .53rem; }
.skill-tile { display: flex; align-items: center; gap: .52rem; min-width: 0; padding: .44rem .66rem .44rem .49rem; }
.skill-tile strong { display: block; margin-top: .13rem; color: #ecf5ff; font-size: .94rem; line-height: 1.25; }
.battle-skill-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.38rem;
  height: 2.38rem;
  place-items: center;
  border: 1px solid #7ab8f38a;
  border-radius: 5px;
  background: #203c64;
  color: #d1efff;
  font-size: 1.22rem;
}
.ultimate-tile { border-color: #9b9cf57e; }
.ultimate-tile .battle-skill-icon { background: #36346b; color: #e4d9ff; }
.cooldown-label {
  min-width: 2rem;
  border-left: 1px solid var(--quiet-line);
  padding-left: .52rem;
  color: #dae2fd;
  font-size: .86rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cooldown-label.is-ready { color: #a8edff; }

.battle-kit {
  display: grid;
  gap: .34rem;
  max-width: min(41rem, 65vw);
  padding: .44rem .48rem .42rem;
  border: 1px solid #85aefb73;
  border-radius: 6px;
  background: #0e1b35ed;
  box-shadow: 0 6px 18px #050c24c0;
}
.kit-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.kit-label { color: #95acd4; font-size: .73rem; white-space: nowrap; }
.kit-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .36rem; min-width: 0; }
.kit-name { max-inline-size: 8rem; overflow: hidden; color: #e1edff; font-size: .78rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
#battle-active { --ready-color: #77e8f3b8; }
#battle-ultimates { --ready-color: #d8a8ffc4; }
.ability-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.18rem;
  height: 2.18rem;
  border: 1px solid #81aeed6b;
  border-radius: 5px;
  background: linear-gradient(135deg, #2b4270, #182147);
  color: #e0f4fe;
  overflow: hidden;
}
.ability-glyph { font: 750 1rem/1 var(--display); }
.ability-cooldown, .ability-stamp {
  position: absolute;
  right: .14rem;
  bottom: .13rem;
  color: #fff;
  font: 750 .7rem/1 var(--mono);
  text-shadow: 0 1px 3px #000;
}
.ability-stamp { right: auto; left: .15rem; color: #d5baff; }
.manual-chip.is-ready { border-color: var(--ready-color); box-shadow: 0 0 8px color-mix(in srgb, var(--ready-color), transparent 55%); }
.equipment-chip { color: #d8ceff; }


.overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(.7rem, 3.4vw, 2.25rem);
  background: #030718b0;
  backdrop-filter: blur(7px) saturate(.80);
}
.panel {
  position: relative;
  display: flex;
  width: min(100%, 69.5rem);
  max-height: min(57rem, calc(100dvh - clamp(1.4rem, 7vw, 4.5rem)));
  min-height: 12.5rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #6087bd8f;
  border-radius: 13px;
  outline: 0;
  background:
    radial-gradient(95% 110% at 100% 0%, #262251 0%, #211e4918 63%),
    linear-gradient(153deg, #16263e, #101a31 53%, #0c1126);
  box-shadow: 0 1.5rem 4.2rem #020511d9, 0 0 30px #4754a421, inset 0 1px #b7d5f339;
}
.panel::before {
  position: absolute;
  top: 0;
  right: 8%;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8ef5ffb9, #c09cfa8f, transparent);
  content: "";
  pointer-events: none;
}
.panel[data-screen="pause"] { width: min(100%, 54rem); }
.panel[data-screen="audio"] { width: min(100%, 30rem); }
.panel[data-screen="balance"] { width: min(100%, 48rem); }
.panel[data-screen="new-confirm"], .panel[data-screen="abandon"] {
  width: min(100%, 35rem);
}
.panel-header {
  flex: 0 0 auto;
  padding: clamp(1.17rem, 2.7vw, 1.86rem) clamp(1.1rem, 3.05vw, 2.1rem) .95rem;
  padding-right: 4.65rem;
}
.panel-kicker {
  display: flex;
  align-items: center;
  gap: .51rem;
  margin-bottom: .36rem;
  color: var(--cyan-bright);
  font-size: .875rem;
  font-weight: 850;
  letter-spacing: .055em;
}
.panel-kicker::before { content: ""; width: .91rem; height: 2px; background: var(--cyan); box-shadow: 0 0 8px #61effb80; }
.panel-kicker:empty, .panel-subtitle:empty, .panel-footer:empty { display: none; }
.panel-header h2 {
  color: #f4f7ff;
  font-family: var(--display);
  font-size: clamp(1.62rem, 3.7vw, 2.55rem);
  font-weight: 950;
  line-height: 1.24;
  letter-spacing: -.055em;
}
.panel-subtitle { margin-top: .42rem; color: #b8c8e7; line-height: 1.52; word-break: keep-all; }
.panel-close { position: absolute; z-index: 1; top: .96rem; right: .98rem; font-size: 1.43rem; line-height: 1; }
.panel-body {
  min-height: 0;
  padding: .34rem clamp(1.1rem, 3.05vw, 2.1rem) 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4f6f9f #0d1427;
}
.panel-body h3 {
  margin-block: .74rem .46rem;
  color: #dbe7ff;
  font: 850 1.11rem/1.3 var(--display);
  letter-spacing: -.025em;
}
.panel-body p { color: #c4d0e8; line-height: 1.55; }
.panel-footer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
  padding: .77rem clamp(1.1rem, 3.05vw, 2.1rem) .92rem;
  border-top: 1px solid #6585b44d;
  background: #0a1023ad;
}
.toast {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  max-width: calc(100vw - 2rem);
  padding: .59rem .93rem;
  transform: translateX(-50%);
  border: 1px solid #7de9f48c;
  border-radius: 8px;
  background: #16274cec;
  color: #dffcff;
  box-shadow: 0 .5rem 1.5rem #0009;
  text-align: center;
  pointer-events: none;
}

.passive-awakening {
  position: fixed;
  z-index: 24;
  top: clamp(3.4rem, 13vh, 8rem);
  left: 50%;
  width: min(30rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}
.awakening-card {
  --light: #d3f7ff;
  --accent: #6fbff7;
  --shade: #132642;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: .26rem;
  padding: 1rem 1.15rem 1.15rem;
  text-align: center;
  color: var(--light);
  border: 1px solid var(--accent);
  border-radius: .8rem;
  background: radial-gradient(ellipse at 50% 0%, var(--shade), #0b1328 70%);
  box-shadow: 0 .75rem 2.5rem #060b228c, inset 0 0 2.2rem #82c8fa24;
  animation: awakening-entry 3400ms both;
}
[data-kind="throw"] .awakening-card {
  --light: #fff0c8;
  --accent: #d5a759;
  --shade: #5a3b24;
}
.awakening-card > small { font-size: .78rem; letter-spacing: .16em; color: var(--accent); font-weight: 800; }
.awakening-card > strong {
  font: 900 clamp(1.95rem, 6vw, 3.05rem)/1.06 var(--display);
  text-shadow: 0 0 1.15rem var(--accent);
}
.awakening-card > p { margin: .18rem 0; font-size: .93rem; }
.awakening-stats { font-size: .79rem; font-weight: 730; color: var(--accent); }
.awakening-effect { position: absolute; z-index: -1; inset: 0; }
.awakening-effect::before, .awakening-effect::after { content: ""; position: absolute; pointer-events: none; }
[data-kind="sword"] .awakening-effect::before, [data-kind="sword"] .awakening-effect::after {
  top: 50%;
  left: -32%;
  width: 164%;
  height: .35rem;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 9%, #8ce4fe 30%, #ecfcff 58%, transparent 94%);
  box-shadow: 0 0 1.35rem #84e1ff;
  animation: awakening-cut 720ms ease-out both;
}
[data-kind="sword"] .awakening-effect::after { --tilt: 14deg; animation-delay: .19s; }
[data-kind="throw"] .awakening-effect::before, [data-kind="throw"] .awakening-effect::after {
  inset: 9% 16%;
  border: 1px solid #eeb96e77;
  border-radius: 50%;
  animation: awakening-ring 880ms ease-out both;
}
[data-kind="throw"] .awakening-effect::after { animation-delay: .15s; }
.awakening-effect i {
  --turn: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: .48rem;
  height: .38rem;
  clip-path: polygon(24% 0%, 75% 4%, 100% 43%, 66% 100%, 16% 86%, 0 45%);
  background: linear-gradient(135deg, #fff1c4, #bd7938 70%);
  animation: awakening-stone 1100ms ease-out both;
}
[data-kind="sword"] .awakening-effect i { display: none; }
.awakening-effect i:nth-child(2) { --turn: 60deg; }
.awakening-effect i:nth-child(3) { --turn: 120deg; }
.awakening-effect i:nth-child(4) { --turn: 180deg; }
.awakening-effect i:nth-child(5) { --turn: 240deg; }
.awakening-effect i:nth-child(6) { --turn: 300deg; }
@keyframes awakening-entry {
  0% { opacity: 0; transform: translateY(-.65rem) scale(.96); }
  8%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-.32rem); }
}
@keyframes awakening-cut {
  0% { opacity: 0; transform: rotate(var(--tilt, -13deg)) scaleX(.06); }
  22% { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--tilt, -13deg)) scaleX(1); }
}
@keyframes awakening-ring {
  from { opacity: .95; transform: scale(.25); }
  to { opacity: 0; transform: scale(1.44); }
}
@keyframes awakening-stone {
  from { opacity: 1; transform: rotate(var(--turn)) translateX(.95rem) rotate(0); }
  to { opacity: 0; transform: rotate(calc(var(--turn) + 125deg)) translateX(8rem) rotate(175deg); }
}

.primary, .secondary, .choice-button, .tab {
  min-height: 2.54rem;
  padding: .5rem .82rem;
  border: 1px solid #54709f9c;
  border-radius: 7px;
  background: #1e2a48;
  color: #dce8ff;
  font-size: .94rem;
  font-weight: 790;
  line-height: 1.28;
  text-align: center;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.primary {
  border-color: #b7ffffb5;
  background: linear-gradient(126deg, #a6f9f3, #76d5fa 63%, #9b9eea);
  color: #081628;
  box-shadow: inset 0 1px #fff6, 0 0 16px #7ee9ff23;
  font-weight: 900;
}
.secondary:hover:not(:disabled), .choice-button:hover:not(:disabled), .tab:hover:not(:disabled) {
  border-color: #82e8f8a5;
  background-color: #2b4366;
  color: #f0fcff;
}
.primary:hover:not(:disabled) { border-color: #e5ffff; background: linear-gradient(126deg, #ccfff8, #98e8ff 63%, #b5bafb); color: #0a192d; }
.choice-button { min-height: 2.35rem; padding-inline: .68rem; }
.tabs, .actions, .option-row, .stat-strip, .split { display: flex; flex-wrap: wrap; align-items: center; gap: .52rem; }
.tabs { margin-bottom: .76rem; padding-bottom: .55rem; border-bottom: 1px solid var(--quiet-line); }
.tab { min-height: 2.29rem; border-color: #5f79ae76; background: #152342; font-size: .875rem; }
.is-selected, .tab[aria-selected="true"], .tab[aria-pressed="true"] {
  border-color: #87faffb5 !important;
  background-color: #243f66;
  color: #c9faff;
  box-shadow: inset 0 0 0 1px #7bf0ff30;
}
.stat-strip {
  gap: .47rem 1.12rem;
  padding: .62rem .75rem;
  border: 1px solid #668bb346;
  border-radius: 7px;
  background: #0d1934b4;
  color: #c5d8f6;
}
.stat-strip strong { color: #dcfaff; font-variant-numeric: tabular-nums; }
.split { align-items: flex-start; }
.split > * { flex: 1 1 17rem; min-width: 0; }
.badge, .type-tag {
  display: inline-flex;
  min-height: 1.34rem;
  align-items: center;
  justify-content: center;
  padding: .13rem .4rem;
  border: 1px solid #718dc45c;
  border-radius: 4px;
  background: #131d36;
  color: #b5cef2;
  font-size: .86rem;
  font-weight: 740;
  line-height: 1.22;
  white-space: nowrap;
}
.muted { color: var(--muted); }
.empty {
  padding: 1.18rem .91rem;
  border: 1px dashed #6687b75c;
  border-radius: 8px;
  background: #0c162b9e;
  color: #b5c6e2;
  text-align: center;
}
.panel-body > .setup-grid + .option-row,
.panel-body > .option-row + .card-grid,
.panel-body > .stat-strip + .list,
.panel-body > .stat-strip + .empty { margin-top: .84rem; }
.panel-body > .option-row + p { margin-top: .51rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
  gap: .73rem;
}
.card-grid + .card-grid, .card-grid + .stat-strip, .stat-strip + .card-grid, .stat-strip + .tabs, .actions + .card-grid { margin-top: .7rem; }
.rarity-common { --rarity: #9ab6dc; }
.rarity-rare { --rarity: #7be7fa; }
.rarity-heroic { --rarity: #d49fff; }
.skill-card {
  --card-accent: var(--rarity, #90a9df);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 6.9rem;
  gap: .51rem;
  align-content: start;
  overflow: hidden;
  padding: .74rem;
  border: 1px solid color-mix(in srgb, var(--card-accent) 51%, #1a2a4c);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--card-accent) 13%, transparent), transparent 70%),
    linear-gradient(148deg, #192948, #101a32 67%);
  color: #e8f1ff;
  text-align: left;
}
.skill-card:has(.skill-copy) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; align-content: stretch; }
.skill-card h3, .skill-card h4 { margin: 0; }
.skill-card strong { color: #eef6ff; font-weight: 850; }
.skill-card p { color: #b6c7e3; font-size: .92rem; line-height: 1.45; }
.skill-card .actions { margin-top: .2rem; }
.skill-card:is(button):hover:not(:disabled) {
  border-color: var(--card-accent);
  background:
    radial-gradient(ellipse at 24% 0, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 80%),
    linear-gradient(148deg, #25395c, #172644 67%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--card-accent) 26%, transparent);
}
.skill-card.is-selected, .skill-card[aria-pressed="true"] {
  border-color: #8defff;
  background: radial-gradient(ellipse at 0 0, #75edff28, transparent 76%), linear-gradient(145deg, #254263, #192643);
}
.skill-icon, .art-icon {
  display: inline-grid;
  width: 2.72rem;
  height: 2.72rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-accent, #a0c7f1) 53%, #1c3156);
  border-radius: 6px;
  background-color: #213354;
  color: var(--card-accent, #bfe2ff);
  object-fit: cover;
  font: 800 1.32rem/1 var(--display);
}
.skill-icon img, .art-icon img { width: 100%; height: 100%; object-fit: cover; }
.art-icon { background-repeat: no-repeat; background-position: center; background-size: cover; }
.magnetic-art {
  background:
    radial-gradient(circle closest-side, #f2edff 13%, #bd9aff 19%, #9b63ef00 34%,
      #a277e700 41%, #d5aeff 45%, #9b63ef00 53%, #9b63ef00 65%, #b88cff 71%, #9b63ef00 78%),
    radial-gradient(ellipse at 50% 45%, #542b88, #201139 70%, #120d26);
}
.art-icon small { font-size: .7rem; }
.ability-chip .art-icon { width: 100%; height: 100%; border: 0; border-radius: 0; }
.manual-chip:not(.is-ready) .art-icon { opacity: .53; }
.nav-sigil .art-icon { width: 100%; height: 100%; border: 0; border-radius: 5px; }
.skill-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .35rem; }
.skill-copy .type-tag {
  min-height: auto;
  border-color: color-mix(in srgb, var(--card-accent) 38%, transparent);
  color: var(--card-accent);
  font-size: .84rem;
  line-height: 1.17;
  white-space: normal;
}
.skill-copy .skill-name { display: block; font: 900 1.09rem/1.3 var(--display); letter-spacing: -.029em; word-break: keep-all; }
.skill-desc { display: block; color: #b2c2df; font-size: .89rem; font-weight: 550; line-height: 1.5; word-break: keep-all; }
.skill-desc:empty { display: none; }
.skill-detail {
  grid-column: 1 / -1;
  display: block;
  align-self: end;
  min-width: 0;
  padding-top: .46rem;
  border-top: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
  color: #c6ecff;
  font-size: .875rem;
  font-weight: 850;
  line-height: 1.3;
}
.card-art {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(5.9rem, 11vw, 9.2rem);
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 26%, color-mix(in srgb, var(--card-accent, #85b5f4) 28%, #1b2653), transparent 67%),
    linear-gradient(160deg, #1e2b52, #12192f 64%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art img.art-icon {
  border: none;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
}
.card-art > .art-icon {
  width: auto;
  height: calc(100% - .5rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--card-accent, #85b5f4) 35%, transparent);
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent, #85b5f4) 26%, transparent);
}
.card-art > .type-tag {
  position: absolute;
  z-index: 2;
  top: .49rem;
  left: .53rem;
  max-width: calc(100% - 1.06rem);
  overflow: hidden;
  border-color: color-mix(in srgb, var(--card-accent) 50%, transparent);
  background: #101c35ec;
  color: var(--card-accent);
  text-overflow: ellipsis;
}
.card-art::after {
  position: absolute;
  inset: auto 0 0;
  height: 29%;
  background: linear-gradient(0deg, #101c3487, transparent);
  content: "";
  pointer-events: none;
}
.card-art:has(.art-locked) {
  background:
    repeating-linear-gradient(132deg, #0f1e36 0 8px, #192946 8px 9px),
    #121e36;
}
.card-art > .art-locked {
  height: 52%;
  border-color: #6282b56f;
  background: #0a1427;
  color: #b6c4df;
  font-size: 1.5rem;
}
.skill-card:has(.card-art) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.skill-card:has(.card-art) .skill-copy {
  flex: 1 1 auto;
  padding: .57rem .74rem .66rem;
  min-height: 5.2rem;
}
.skill-card:has(.card-art) .skill-detail {
  align-self: stretch;
  margin: 0 .73rem;
  padding: .44rem 0 .61rem;
}
.item-card-shell {
  position: relative;
  display: grid;
  min-width: 0;
}
.item-card, .card-inspector {
  --paper-frame: #999974;
  --paper-ink: #273328;
  --paper-muted: #4a5440;
  --paper-wash: #f5f0db;
}
:is(.item-card, .card-inspector).rarity-rare { --paper-frame: #6e9da8; --paper-wash: #edf0db; }
:is(.item-card, .card-inspector).rarity-heroic { --paper-frame: #a685bb; --paper-wash: #f2ebdc; }
.item-card-shell > .item-card {
  width: 100%;
  min-height: 0;
  border: 2px solid var(--paper-frame);
  border-radius: 11px;
  background: linear-gradient(155deg, var(--paper-wash), #ded9ba);
  color: var(--paper-ink);
  box-shadow: 0 4px 12px #03091368, inset 0 0 0 1px #fff9df82;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.item-card-shell:hover > .item-card,
.item-card-shell:focus-within > .item-card {
  border-color: color-mix(in srgb, var(--paper-frame), #f8ecd5 43%);
  box-shadow: 0 6px 15px #03091375, 0 0 15px color-mix(in srgb, var(--paper-frame) 46%, transparent);
}
.item-card-shell > .item-card:is(:hover, [aria-pressed="true"]):not(:disabled) { background: linear-gradient(155deg, #fff9e8, #e8e1c6); }
.item-card-shell > .item-card[aria-pressed="true"] { border-color: #bff3e7; }
.item-card-shell > .item-card:focus-visible { outline: 2px solid #315f71; outline-offset: -4px; }
.item-card-shell > .item-card:disabled { pointer-events: none; }
.item-card .card-art {
  height: auto;
  min-height: 6.2rem;
  max-height: 10.4rem;
  aspect-ratio: 5 / 4;
  padding: 2rem .42rem .08rem;
  background: none;
}
.item-card .card-art::after { display: none; }
.item-card .card-art::before {
  position: absolute;
  inset: 2rem .42rem 0;
  border: 1px solid #74694b76;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--paper-frame) 38%, #222d2d), transparent 73%),
    linear-gradient(158deg, #263331, #131d22 73%);
  content: "";
}
.item-card .card-art > .art-icon {
  z-index: 1;
  width: auto;
  height: calc(100% - .18rem);
  max-width: 100%;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}
.item-card .card-art > .type-tag {
  inset: .55rem auto auto .57rem;
  display: block;
  max-width: calc(100% - 2.36rem);
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper-muted);
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}
.item-card-shell .skill-card.item-card .skill-copy {
  min-height: 2.86rem;
  gap: .23rem;
  justify-content: center;
  padding: .48rem .61rem .57rem;
}
.item-card .skill-name {
  color: var(--paper-ink);
  font-size: clamp(.92rem, 2.15vw, 1.07rem);
  overflow-wrap: anywhere;
}
.item-card-summary {
  color: var(--paper-muted);
  font-size: .75rem;
  font-weight: 720;
  line-height: 1.34;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.item-card-shell .item-card .skill-detail {
  margin-inline: .61rem;
  padding: .32rem 0 .47rem;
  border-color: #817f5f63;
  color: #355467;
  font-size: .79rem;
}
.item-card-info {
  position: absolute;
  z-index: 3;
  top: .26rem;
  right: .29rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid #284a67;
  border-radius: 50%;
  background: #305d80;
  color: #fff7de;
  font: 800 .8rem/1 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
.item-card-info:is(:hover, :focus-visible, [aria-expanded="true"]) {
  border-color: #0b2a3d;
  background: #18415e;
  color: #fff;
}
:is(.item-card--compact > .item-card, .item-card.item-card--compact) .card-art {
  min-height: 4.68rem;
  max-height: 5.9rem;
  aspect-ratio: 12 / 4;
}
:is(.item-card--compact > .item-card, .item-card.item-card--compact) .skill-copy {
  min-height: 2.28rem;
}
.card-inspector {
  position: fixed;
  z-index: 20;
  display: grid;
  align-content: start;
  gap: .56rem;
  width: min(19.75rem, calc(100vw - 24px));
  max-height: calc(100dvh - 1rem);
  padding: .77rem .83rem .83rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--paper-frame);
  border-radius: 9px;
  background: linear-gradient(155deg, var(--paper-wash), #ded9ba);
  color: var(--paper-ink);
  box-shadow: 0 .68rem 1.75rem #020619cc, inset 0 0 0 1px #fff9df97;
  scrollbar-width: thin;
  scrollbar-color: #928d6b #e9e2c8;
  user-select: text;
}
.card-inspector-art {
  display: grid;
  min-height: 5.6rem;
  height: clamp(5.6rem, 23dvh, 10.65rem);
  place-items: center;
  overflow: hidden;
  border: 1px solid #786c5098;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--paper-frame) 48%, #26362c), transparent 72%),
    linear-gradient(165deg, #283632, #131d22 78%);
}
.card-inspector-art > .art-icon {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
}
.card-inspector-heading {
  display: flex;
  align-items: center;
  gap: .64rem;
  min-width: 0;
  padding-bottom: .45rem;
  border-bottom: 1px solid #817f5f70;
}
.card-inspector-heading > div { display: grid; min-width: 0; gap: .1rem; }
.card-inspector-heading small {
  color: var(--paper-muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.28;
}
.card-inspector-heading strong {
  color: var(--paper-ink);
  font-size: 1.04rem;
  font-weight: 880;
  line-height: 1.26;
  overflow-wrap: anywhere;
}
.card-inspector-description {
  color: var(--paper-ink);
  font-size: .875rem;
  line-height: 1.48;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-inspector-stats, .card-inspector-extra {
  display: grid;
  min-width: 0;
  gap: .27rem;
  padding: .43rem .52rem;
  border: 1px solid #948c6885;
  border-radius: 5px;
  background: #f9f3dba6;
  color: #2b4b56;
  font-size: .81rem;
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-inspector-extra strong { color: #57396b; font-weight: 800; }
.card-inspector-extra p { color: var(--paper-ink); }
.card-inspector .branch-strip { margin: 0; padding: .42rem .52rem; border-color: #948c6885; background: #f9f3dba6; }
.card-inspector .branch-strip small { color: var(--paper-muted); font-size: .8rem; }
.card-inspector .branch-strip strong { color: #2b4b56; }
.card-inspector .branch-strip .branch-evolved { color: #57396b; }
.hidden-card {
  min-height: 6.3rem;
  border-color: #536b9d65;
  background: linear-gradient(140deg, #172745, #111a30);
  color: #8496b9;
}
.hidden-card .skill-icon, .hidden-card .art-icon {
  border-color: #6684b56b;
  background: #1c2c4b;
  color: #c0d2f4;
  filter: saturate(.35);
}
.hidden-card .skill-copy .skill-name { color: #aebfe1; }
.hidden-card .card-art { opacity: .64; }

.draft-strip, .shop-tools {
  min-height: 2.79rem;
  padding: .43rem .63rem;
  border: 1px solid #6b8abe5c;
  border-radius: 7px;
  background: #101c37ce;
}
.draft-strip .currency, .shop-tools .currency { font-weight: 850; font-variant-numeric: tabular-nums; }
.shop-tools .currency { margin-inline-end: auto; }
.shop-tools .secondary { min-height: 2.19rem; padding: .36rem .56rem; font-size: .875rem; }
.draft-grid, .merchant-grid, .blessings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.merchant-grid:has(.item-card-shell) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.choice-shelves {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: .7rem;
  row-gap: .85rem;
}
.choice-category {
  --category-ink: #bce8fb;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  grid-template-rows: auto 1fr;
  row-gap: .54rem;
  min-width: 0;
}
.choice-category > h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding: .38rem .57rem;
  border-left: 2px solid var(--category-ink);
  border-bottom: 1px solid #6888b555;
  border-radius: 4px;
  background: #3151722e;
  color: var(--category-ink);
  font-size: .94rem;
  line-height: 1.4;
}
.choice-shelves--inline > .choice-category { grid-column: span var(--category-columns); }
.shop-category { grid-column: span 2; }
.shop-category--gear { --category-ink: #f0d9a3; }
.shop-category--imprint { --category-ink: #e0ceff; grid-column: span 1; }
.choice-category[aria-label="패시브"] { --category-ink: #b3eee0; }
.choice-shelves .item-card .card-art {
  height: clamp(6.7rem, 10.3vw, 8.45rem);
  min-height: 0;
  aspect-ratio: auto;
}
.choice-shelves .item-card .skill-name { font-size: clamp(.92rem, 1.45vw, 1.11rem); }
.choice-shelves .item-card-shell .skill-card.item-card .skill-copy {
  min-height: 3.65rem;
  justify-content: flex-start;
}
.choice-shelves .item-card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .8rem;
}
.choice-shelves .item-card .skill-detail { font-size: .86rem; }
.shop-status, .shop-potion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .48rem .75rem;
}
.shop-status {
  margin: 0 0 .89rem;
  padding: .55rem .66rem;
  border: 1px solid #6b8abe5c;
  border-radius: 7px;
  background: #101c37ce;
  color: #ccd9f0;
  font-size: .88rem;
}
.shop-status strong { margin-left: .18rem; color: #f3e5b5; font-variant-numeric: tabular-nums; }
.shop-potion { margin-inline-start: auto; padding-inline-start: .68rem; border-inline-start: 1px solid #6283a756; }
.shop-potion small { margin-inline-start: .3rem; color: #b4cbe7; font-size: .8rem; }
.shop-potion .secondary { min-height: 2.1rem; padding: .31rem .55rem; font-size: .82rem; }
.merchant-shelves + .shop-tools { margin-top: .86rem; }
.shop-equipped { margin-top: .65rem; }
.shop-equipped > summary {
  width: fit-content;
  margin-bottom: .45rem;
  padding: .38rem .56rem;
  border-radius: 5px;
  background: #1e31513d;
  color: #dce8fa;
  font-size: .88rem;
  cursor: pointer;
}
.shop-stock-empty {
  align-content: center;
  min-height: 8rem;
  border-style: dashed;
  background: #14234086;
  text-align: center;
}
.shop-stock-empty strong { color: #a8bcd8; font-size: .85rem; }
@media (max-width: 900px) {
  .choice-shelves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .choice-shelves--inline > .choice-category { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .choice-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-potion { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; flex-basis: 100%; }
}
.meta-upgrades {
  margin-bottom: 1.2rem;
  padding: .95rem;
  border: 1px solid #6b8abe66;
  border-radius: 8px;
  background: #121f35;
}
.meta-upgrade-heading, .meta-upgrade-label, .meta-upgrade-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .36rem .65rem;
}
.meta-upgrade-heading h3 { margin: 0; }
.meta-points {
  padding: .28rem .54rem;
  border-radius: 4px;
  background: #233c5b;
  color: #e0ecff;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.meta-points strong { margin-left: .2rem; color: #ffdfa0; }
.meta-upgrades > p { margin: .36rem 0 .72rem; font-size: .88rem; }
.meta-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: .55rem;
}
.meta-upgrade-card {
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #5a78a164;
  border-radius: 6px;
  background: #1a2a43;
}
.meta-upgrade-label h4 { margin: 0; color: #edf5ff; font: 800 .94rem/1.3 var(--display); }
.meta-upgrade-label > span { font-size: .79rem; color: #bcd5f5; white-space: nowrap; }
.meta-upgrade-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: .22rem; }
.meta-upgrade-track span { height: .24rem; border-radius: 2px; background: #394f72; }
.meta-upgrade-track .filled { background: #f0cb77; }
.meta-upgrade-card p { margin: 0; font-size: .84rem; }
.meta-upgrade-card p strong { color: #f7e1ad; }
.meta-upgrade-card p span { color: #a7dcd6; white-space: nowrap; }
.meta-upgrade-card button { min-height: 2.1rem; padding: .28rem .34rem; font-size: .83rem; }
.meta-upgrade-actions { justify-content: flex-end; margin-top: .65rem; }
@media (min-width: 340px) and (max-width: 580px) {
  .meta-upgrade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.draft-slot { display: grid; min-width: 0; grid-template-rows: 1fr auto; gap: .49rem; }
.draft-slot > .skill-card { min-height: 10.55rem; padding: .88rem; }
.draft-slot > .skill-card:has(.card-art) { min-height: 16.8rem; padding: 0; }
.draft-grid:has(.item-card-shell) {
  grid-template-columns: repeat(3, minmax(0, 13rem));
  justify-content: center;
}
.draft-grid:has(.item-card-shell) > .draft-slot > .skill-card { min-height: 0; }
.draft-slot > .item-card-shell { min-height: 0; }
.draft-slot > .reroll {
  min-height: 2.24rem;
  border-color: #6883b66d;
  background: #131e39;
  color: #bcd8f9;
  font-size: .875rem;
  font-weight: 750;
}
.draft-slot > .reroll:hover:not(:disabled) { border-color: var(--cyan); background: #223e63; }
.draft-slot > .reroll:disabled { opacity: .64; }
.merchant-grid .skill-card:disabled, .panel[data-screen="meta-shop"] .skill-card:disabled {
  opacity: 1;
  border-color: #536a935b;
  background: linear-gradient(150deg, #1b2b47, #131d33);
  filter: saturate(.62);
}
.merchant-grid .skill-card:disabled .skill-desc,
.merchant-grid .skill-card:disabled .skill-detail,
.panel[data-screen="meta-shop"] .skill-card:disabled .skill-detail { color: #a7b6d0; }
:is(.merchant-grid, .merchant-shelves) .item-card-shell > .item-card:disabled {
  border-color: color-mix(in srgb, var(--paper-frame), #8c8b7c 65%);
  background: linear-gradient(155deg, #e2dfcb, #c4c0a7);
}
:is(.merchant-grid, .merchant-shelves) .item-card-shell > .item-card:disabled .skill-detail { color: #535747; }
.merchant-hero {
  --merchant-image: url("assets/merchant.webp");
  position: relative;
  display: flex;
  isolation: isolate;
  align-items: flex-end;
  min-height: clamp(7.2rem, 14vw, 10.5rem);
  margin: 0 0 .71rem;
  padding: .8rem .92rem;
  overflow: hidden;
  border: 1px solid #688bd378;
  border-radius: 9px;
  background:
    linear-gradient(90deg, #111a37f0 2%, #16274abe 31%, #1a2e501a 80%),
    linear-gradient(0deg, #121e3a9d, transparent),
    var(--merchant-image, linear-gradient(135deg, #25416e, #382856));
  background-position: center, center, center 16%;
  background-size: cover;
  color: #e4efff;
  text-shadow: 0 1px 6px #090e22;
}
.merchant-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.merchant-hero:has(> img)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101a34e6, #101a3430), linear-gradient(0deg, #101a34cf, transparent 83%);
  content: "";
}
.merchant-hero strong { color: #e7fcff; font-weight: 900; }
.merchant-hero .muted, .merchant-hero p { color: #bed2ec; }
.merchant-hero .currency {
  padding: .34rem .62rem;
  border: 1px solid #92ddff7d;
  border-radius: 6px;
  background: #0b1429d8;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 1px 12px #0928588f;
}
.merchant-equipment { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .46rem; margin: 0 0 .75rem; }
.merchant-slot {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .35rem;
  padding: .48rem .53rem;
  border: 1px solid #6c8bbc52;
  border-radius: 6px;
  background: #14213d;
}
.merchant-slot .type-tag { justify-self: start; }
.merchant-slot strong, .merchant-engraved { font-size: .875rem; overflow-wrap: anywhere; }
.merchant-engraved { color: #c6a9fb; }

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .64rem;
  margin: 0 0 .75rem;
  padding: .53rem .59rem;
  border: 1px solid #658ab65d;
  border-radius: 7px;
  background: #12203ccf;
}
.catalog-tools > .tabs { margin: 0; padding: 0; border: 0; }
.catalog-tools input, .catalog-tools select { flex: 1 1 9rem; min-width: 7rem; max-width: 20rem; }
.catalog-toolbar { position: sticky; top: 0; z-index: 2; gap: .55rem 1rem; background: #12203c; }
.catalog-toolbar > label { display: flex; align-items: center; gap: .42rem; }
.catalog-query { flex: 1 1 15rem; }
.catalog-order { flex: 0 1 12rem; }
.catalog-toolbar input, .catalog-toolbar select { flex: 1; min-width: 0; max-width: none; }
.catalog-locked {
  margin-top: .95rem;
  padding: .62rem .72rem;
  border: 1px solid var(--quiet-line);
  border-radius: 7px;
  background: #101a2d;
}
.catalog-locked > summary { width: fit-content; color: #c1cde4; cursor: pointer; font-weight: 700; }
.catalog-locked > .catalog-grid { margin-top: .65rem; }
.catalog-section { margin-block: .5rem 1.02rem; }
.catalog-section + .catalog-section { padding-top: .45rem; border-top: 1px solid var(--quiet-line); }
.catalog-section > h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-block: .55rem .65rem;
  color: #d5edff;
}
.catalog-section > h3::before { content: ""; width: 3px; height: .91rem; border-radius: 2px; background: var(--cyan); }
.codex-grid, .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.25rem), 1fr)); }
.starter-choice > label { display: flex; align-items: center; gap: .5rem; margin: .45rem .2rem; cursor: pointer; }
.starter-choice input { accent-color: var(--cyan); }
.codex-grid .skill-card:has(.skill-copy), .catalog-grid .skill-card:has(.skill-copy) { min-height: 6.2rem; }
.codex-grid .card-art, .catalog-grid .card-art { height: 5.86rem; }
.codex-grid .skill-card:has(.card-art) .skill-copy, .catalog-grid .skill-card:has(.card-art) .skill-copy { min-height: 4.1rem; }
:is(.codex-grid, .catalog-grid) .item-card .card-art { height: auto; max-height: 8.65rem; }
:is(.codex-grid, .catalog-grid) .item-card-shell .skill-card.item-card .skill-copy { min-height: 2.86rem; }
.catalog-grid > .empty { grid-column: 1 / -1; }
.catalog-tools > label { color: #e0efff; font-weight: 830; }
.branch-strip {
  display: grid;
  gap: .24rem;
  margin: .23rem .72rem .61rem;
  padding: .48rem .56rem;
  border-left: 2px solid #75dff0;
  border-radius: 0 6px 6px 0;
  background: #0b2140bf;
  color: #d1e8ff;
  font-size: .875rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.branch-strip small { color: #a8c2e6; font-size: .84rem; }
.branch-strip strong { color: #c0f1ff; font-weight: 840; }
.branch-strip .branch-evolved { color: #e1c0ff; }
.catalog-grid > div > .branch-strip { margin: .37rem 0 0; }
.school-shelves .draft-slot > .branch-strip { margin: 0; }


.list { display: grid; gap: .46rem; margin: 0; padding: 0; list-style: none; }
.item-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .57rem;
  padding: .63rem .69rem;
  border: 1px solid #6a8eb54c;
  border-radius: 7px;
  background: #13203ab5;
}
.item-row > * { min-width: 0; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: .76rem; }
.operator-techniques, .operator-passives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .64rem;
}
.operator-techniques { margin: .9rem 0; }
.operator-technique {
  min-width: 0;
  padding: .7rem;
  border: 1px solid #6083b170;
  border-radius: .5rem;
  background: #17243e;
}
.operator-technique h3 { margin: 0 0 .45rem; }
.operator-technique .field + .field { margin-top: .4rem; }
.setup-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 13rem));
  gap: .48rem;
  margin: .5rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.setup-card-grid > li { display: grid; min-width: 0; }
.panel[data-screen="setup"] .panel-body > .item-card-shell { max-width: 13rem; }
.field { display: grid; gap: .4rem; align-content: start; color: #dce9ff; font-size: .94rem; font-weight: 800; }
.field select, .field input, .catalog-tools select, .catalog-tools input {
  width: 100%;
  min-height: 2.56rem;
  border: 1px solid #6486b882;
  border-radius: 6px;
  padding: .42rem 1.65rem .42rem .6rem;
  background-color: #101c36;
  color: #e9f2ff;
  font-weight: 640;
}
.field select, .catalog-tools select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ab8ef 50%), linear-gradient(135deg, #9ab8ef 50%, transparent 50%);
  background-position: calc(100% - .86rem) 50%, calc(100% - .51rem) 50%;
  background-repeat: no-repeat;
  background-size: .35rem .35rem;
}
.field small { color: #b7c5e0; font-size: .875rem; font-weight: 500; line-height: 1.42; }
.balance-controls, .balance-example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .68rem; }
.balance-setting { padding: .65rem .72rem; border: 1px solid var(--quiet-line); border-radius: 8px; background: #0e1b33; }
.balance-percent { position: relative; color: #aac7ef; }
.balance-percent input { padding-right: 3rem; font-variant-numeric: tabular-nums; }
.balance-percent > span { position: absolute; right: .64rem; top: .55rem; pointer-events: none; }
.balance-calculator { margin-top: 1rem; padding: .72rem .85rem .85rem; border: 1px solid var(--quiet-line); border-radius: 8px; background: #101c34; }
.balance-calculator h3 { margin: 0; }
.balance-calculator p { margin-block: .46rem .6rem; }
.balance-formula { color: #cafff7; font-weight: 750; line-height: 1.55; }
.balance-category { grid-column: 1 / -1; }
.balance-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .38rem 1rem; margin-top: .75rem; padding-top: .55rem; border-top: 1px solid var(--quiet-line); }
.balance-total output { color: #95f3d8; font-size: 1.43rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.loadout-section { margin-top: 1.02rem; padding-top: .69rem; border-top: 1px solid var(--quiet-line); }
.loadout-section h3 { margin: 0 0 .58rem; }
.loadout-section .muted { font-size: .875rem; }
.audio-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .62rem .9rem;
  margin: .62rem 0 .9rem;
  padding: .72rem .85rem;
  border: 1px solid #6886b36b;
  border-radius: .58rem;
  background: #101b34;
}
.audio-settings h3 { margin: 0; font-size: .95rem; }
.audio-settings button { min-height: 2rem; padding: .28rem .65rem; }
.audio-volume {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 6rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: .65rem;
  color: #bcd3ed;
  font-size: .84rem;
}
.audio-volume output { grid-column: 3; grid-row: 1; text-align: end; font-variant-numeric: tabular-nums; }
.audio-volume input { grid-column: 2; grid-row: 1; width: 100%; margin: 0; accent-color: #8be5f2; cursor: pointer; }
.pause-loadout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: start;
  gap: 1.1rem;
}
.pause-loadout section { min-width: 0; }
.pause-loadout h3 { margin: .15rem 0 .65rem; }
.pause-loadout h4 {
  margin: .8rem 0 .4rem;
  color: #b4c9ec;
  font-size: .88rem;
  font-weight: 730;
}
.pause-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pause-card-entry {
  display: grid;
  min-width: 0;
}
.pause-card-entry .item-card .card-art { min-height: 4.95rem; max-height: 7.14rem; }
.pause-card-entry .item-card .type-tag { left: .46rem; max-width: calc(100% - 2.1rem); font-size: .68rem; }
.pause-card-entry .item-card .skill-name { font-size: .88rem; }
.pause-card-entry .item-card-shell .skill-card.item-card .skill-copy { padding-inline: .44rem; }
.pause-item {
  --card-accent: var(--rarity, #9ab6dc);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .58rem;
  min-width: 0;
  padding: .55rem .61rem;
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, #223451);
  border-radius: 7px;
  background: #12213a;
}
.pause-slot { color: var(--card-accent); font-size: .77rem; font-weight: 700; }
.pause-loadout p { margin: 0; color: #bfcee8; font-size: .82rem; line-height: 1.42; word-break: keep-all; overflow-wrap: anywhere; }
.pause-item-empty { grid-template-columns: 1fr; align-content: center; text-align: center; color: #afc0db; font-size: .82rem; }
.pause-item-empty .pause-slot { font-size: .84rem; }
.panel-body .pause-resume-note { margin: .85rem 0 0; color: #a8b9da; font-size: .8rem; }
.equipment-cell, .stamp-comparison > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .56rem;
  padding: .67rem;
  border: 1px solid #6b8cbd42;
  border-radius: 7px;
  background: #13233f;
}
.equipment-cell .field + .field { margin-top: .1rem; }
.badge.dormant { border-style: dashed; border-color: #7583a250; color: #a7b3ca; background: #1d2941; }
.result-unlocks { margin-top: .68rem; }
.result-unlocks .badge { border-color: #a98de9a1; color: #e4d4ff; }
.stamp-comparison { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .71rem; }
.stamp-comparison > div { min-height: 6.85rem; }
.stamp-comparison .type-tag { justify-self: start; }
.stamp-comparison p { margin: 0; }

.record-row { display: block; padding: 0; }
.record-row summary {
  position: relative;
  display: flex;
  min-height: 2.82rem;
  align-items: center;
  justify-content: space-between;
  gap: .54rem 1rem;
  padding: .59rem 2.15rem .59rem .67rem;
  font-size: .94rem;
  list-style: none;
  cursor: pointer;
}
.record-row summary::-webkit-details-marker { display: none; }
.record-row summary:hover { background: #4676b32b; }
.record-row summary:focus-visible { outline-offset: -2px; }
.record-row summary::after {
  position: absolute;
  top: 50%;
  right: .83rem;
  width: .5rem;
  height: .5rem;
  border-right: 1px solid var(--cyan-bright);
  border-bottom: 1px solid var(--cyan-bright);
  content: "";
  transform: translateY(-70%) rotate(45deg);
}
.record-row[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.record-row summary strong { margin-right: .32rem; color: #e9f1ff; }
.record-build {
  display: grid;
  gap: .18rem;
  margin-inline: .69rem;
  padding-block: .57rem .67rem;
  border-top: 1px solid var(--quiet-line);
  font-size: .875rem;
}
.record-build > * { overflow-wrap: anywhere; }

@media (max-width: 880px) {
  .draft-grid, .merchant-grid, .blessings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-grid:has(.item-card-shell) { grid-template-columns: repeat(3, minmax(0, 11.4rem)); }
}
@media (max-width: 720px) {
  .home { --outer-pad: 1.34rem; }
  .home-border { inset: 8px; }
  .home-header { padding-top: 1.26rem; gap: .57rem; }
  .home-mark { gap: .43rem; font-size: .91rem; }
  .seal { width: 1.9rem; height: 1.9rem; font-size: .96rem; }
  .home-status { gap: .44rem; padding-left: .46rem; }
  .home-rank { padding-right: .42rem; font-size: .81rem; }
  .home-field { min-height: 29rem; }
  .hero-heading { top: 3.5rem; width: calc(100% - 2.68rem); }
  .hero-heading h1 { font-size: clamp(3.04rem, 11.5vw, 5.8rem); }
  .hero-rule { margin-bottom: .68rem; }
  .home-nav { top: auto; bottom: 1.85rem; width: calc(50% - 1.67rem); }
  .home-nav:has(.nav-resume:not([hidden])) { bottom: 0; }
  .nav-button { min-height: 3.7rem; grid-template-columns: 2rem minmax(0, 1fr); gap: .47rem; padding-inline: .51rem; }
  .nav-sigil { width: 2rem; height: 2rem; font-size: .94rem; }
  .nav-title { font-size: 1.01rem; }
  .nav-button--start .nav-title { font-size: 1.09rem; }
  .nav-note { font-size: .79rem; }
  .home-footer { padding-bottom: 1.32rem; }
  .key-guide { gap: .25rem .65rem; }
  .battle-top, .battle-bottom { inset-inline: .51rem; }
  .battle-top { top: .51rem; }
  .battle-bottom { bottom: .51rem; }
  .battle-vitals { min-width: 8.1rem; padding: .48rem .5rem .39rem; }
  .round-tile { min-width: 5.25rem; padding: .43rem .52rem; }
  .battle-clock { min-width: 6.85rem; font-size: .98rem; }
  .skill-tile { padding: .38rem .45rem; }
  .skill-tile .hud-label { font-size: .75rem; }
  .battle-skill-icon { width: 1.8rem; height: 1.8rem; font-size: .91rem; }
  .passive-tile { display: none; }
  .battle-kit { padding: .34rem .35rem; gap: .25rem; }
  .kit-row { gap: .27rem; }
  .kit-label { flex-basis: 2.18rem; font-size: .74rem; }
  .kit-chips { gap: .21rem; }
  .ability-chip { width: 1.76rem; height: 1.76rem; }
  .panel-close { top: .65rem; right: .67rem; min-width: 2.13rem; min-height: 2.13rem; }
  .panel-header { padding-right: 3.5rem; }
}
@media (max-width: 565px) {
  .home-footer { flex-wrap: wrap; }
  .home-tools { width: 100%; justify-content: space-between; }
  .balance-controls { grid-template-columns: 1fr; }
  .draft-grid, .merchant-grid, .blessings-grid { grid-template-columns: 1fr; }
  :is(.draft-grid, .merchant-grid):has(.item-card-shell) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-slot > .skill-card { min-height: 0; }
  .draft-slot > .skill-card:has(.card-art) { min-height: 0; }
  .card-art { height: 6.45rem; }
  .codex-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codex-grid .skill-card:has(.skill-copy) { grid-template-columns: 1fr; gap: .44rem; }
  .codex-grid .skill-card:has(.card-art) { gap: 0; }
  .codex-grid .card-art, .catalog-grid .card-art { height: 4.58rem; }
  :is(.codex-grid, .catalog-grid) .item-card .card-art { height: auto; min-height: 5.65rem; }
  .pause-card-grid, .setup-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-equipment, .stamp-comparison { grid-template-columns: 1fr; }
  .merchant-equipment:has(.item-card-shell) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-tools .currency { flex: 1 1 100%; }
  .record-row summary { flex-wrap: wrap; }
}
@media (pointer: coarse) {
  .item-card-info {
    top: .18rem;
    right: .24rem;
    width: 1.71rem;
    height: 1.71rem;
  }
  .item-card-info::after { position: absolute; inset: -.36rem; content: ""; }
}
@media (max-height: 650px) and (min-width: 721px) {
  .home-header { padding-top: 1.43rem; }
  .home-field { min-height: 20rem; }
  .hero-heading { top: 1.65rem; }
  .hero-heading h1 { font-size: clamp(3.2rem, 7.9vw, 6.5rem); }
  .hero-rule { margin-bottom: .7rem; }
  .hero-chapters { margin-top: .75rem; }
  .home-nav--left { top: 55%; }
  .home-nav--right { top: 45%; }
  .home-nav { gap: .43rem; }
  .nav-button { min-height: 3.5rem; }
  .nav-button--start { min-height: 4rem; }
  .home-footer { padding-block: .48rem 1.63rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .awakening-card { animation: none; }
  .awakening-effect { display: none; }
}

