:root {
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --ink: #eef7ff;
  --muted: #9bb0c4;
  --cyan: #4de7d4;
  --blue: #6898ff;
  --panel: rgba(9, 19, 32, 0.92);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07101b;
  color: var(--ink);
  user-select: none;
}

button { font: inherit; }
.noscript { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 30px; background: #07111d; color: #eef7ff; text-align: center; }

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #10253a, #06101b 72%);
}

.hud {
  position: fixed;
  inset: 22px 24px auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px #000;
}

.brand span {
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(77, 231, 212, .4);
  border-radius: 99px;
  color: var(--cyan);
  font-size: 10px;
  vertical-align: 2px;
}

.stats { display: flex; gap: 30px; text-align: center; }
.stats div { min-width: 54px; }
.stats small, .weapon-panel small, .result-grid small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
}
.stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.hud-actions { display: flex; gap: 7px; pointer-events: auto; }

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(7,16,27,.7);
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
}
.icon-button:hover { border-color: var(--cyan); }

.health-panel {
  position: fixed;
  z-index: 2;
  top: 82px;
  left: 24px;
  width: min(260px, 40vw);
}
.health-panel.critical { animation: health-critical .85s ease-in-out infinite alternate; }
.health-panel.critical .bar.health { box-shadow: 0 0 18px rgba(255,54,85,.38); }
.health-panel.critical .bar-label { color: #ff9cab; }
@keyframes health-critical {
  from { filter: brightness(1); }
  to { filter: brightness(1.35); }
}

.contract-panel {
  position: fixed;
  z-index: 2;
  top: 122px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: min(260px, 40vw);
  padding: 9px 11px;
  border: 1px solid rgba(102,205,255,.16);
  border-radius: 12px;
  background: rgba(7,16,27,.7);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, opacity .2s ease;
}
.contract-panel small, .contract-panel strong { display: block; }
.contract-panel small { color: #70899d; font-size: 8px; letter-spacing: .12em; }
.contract-panel strong { margin-top: 2px; color: #d0e3ef; font-size: 11px; }
.contract-panel > span { align-self: center; color: #8fcfd5; font-size: 10px; font-variant-numeric: tabular-nums; }
.contract-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.contract-panel > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#55d8e7,#a98bff); transition: width .12s linear; }
.contract-panel.completed { border-color: rgba(255,216,109,.52); }
.contract-panel.completed > i b { background: #ffd86d; }
.contract-panel.failed { opacity: .52; border-color: rgba(255,103,126,.28); }

.rift-panel {
  position: fixed;
  z-index: 2;
  top: 188px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: min(260px, 40vw);
  padding: 9px 11px;
  border: 1px solid rgba(91,240,255,.18);
  border-radius: 12px;
  background: rgba(8,18,34,.72);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.rift-panel small, .rift-panel strong { display: block; }
.rift-panel small { color: #668aa4; font-size: 8px; letter-spacing: .12em; }
.rift-panel strong { margin-top: 2px; color: #c7f8ff; font-size: 11px; }
.rift-panel > span { align-self: center; color: #80eaf3; font-size: 10px; font-variant-numeric: tabular-nums; }
.rift-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.rift-panel > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#5ee9ff,#c98cff); transition: width .12s linear; }
.rift-panel.active { border-color: rgba(110,233,255,.58); box-shadow: 0 0 24px rgba(84,195,255,.12); }
.rift-panel.completed { border-color: rgba(255,216,109,.48); }
.rift-panel.completed > i b { background: #ffd86d; }
.rift-panel.failed { opacity: .58; border-color: rgba(255,103,126,.3); }

.combo-panel {
  position: fixed;
  z-index: 2;
  top: 254px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: min(260px, 40vw);
  padding: 9px 11px;
  border: 1px solid rgba(255,183,92,.16);
  border-radius: 12px;
  background: rgba(17,15,26,.7);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.combo-panel small, .combo-panel strong { display: block; }
.combo-panel small { color: #876f67; font-size: 8px; letter-spacing: .12em; }
.combo-panel strong { margin-top: 2px; color: #ffd7a4; font-size: 11px; font-variant-numeric: tabular-nums; }
.combo-panel > span { align-self: center; color: #d69c72; font-size: 10px; }
.combo-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.combo-panel > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffac5e,#ff5f8c); transition: width .1s linear; }
.combo-panel.hot { border-color: rgba(255,168,83,.52); box-shadow: 0 0 24px rgba(255,123,68,.12); }
.combo-panel.blazing { border-color: rgba(255,88,116,.7); box-shadow: 0 0 28px rgba(255,69,106,.2); }

.map-mechanic-panel {
  position: fixed;
  z-index: 2;
  top: 82px;
  right: 24px;
  width: min(260px, 40vw);
  padding: 9px 12px;
  border: 1px solid rgba(103,199,217,.17);
  border-radius: 12px;
  background: rgba(7,17,29,.72);
  backdrop-filter: blur(10px);
  text-align: right;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.map-mechanic-panel small, .map-mechanic-panel strong, .map-mechanic-panel span { display: block; }
.map-mechanic-panel small { color: #67869b; font-size: 8px; letter-spacing: .13em; }
.map-mechanic-panel strong { margin-top: 2px; color: #c8edf0; font-size: 11px; }
.map-mechanic-panel span { margin-top: 3px; color: #7996a9; font-size: 9px; font-variant-numeric: tabular-nums; }
.map-mechanic-panel.warning { border-color: rgba(255,108,77,.64); box-shadow: 0 0 24px rgba(255,77,46,.15); }
.map-mechanic-panel.warning span { color: #ff947a; }
.map-mechanic-panel.active { border-color: rgba(119,218,255,.52); box-shadow: 0 0 24px rgba(104,144,255,.13); }
.map-mechanic-panel.active span { color: #8fe6ff; }

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #c7d5e2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bar {
  overflow: hidden;
  height: 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: width .15s ease;
}
.health i { background: linear-gradient(90deg, #ff5268, #ff7e78); }

.xp-panel { position: fixed; z-index: 3; inset: auto 0 0; }
.xp { height: 7px; border: 0; border-radius: 0; }
.xp i { width: 0; background: linear-gradient(90deg, #45cfba, #62a7ff); box-shadow: 0 0 15px #4de7d4; }

.weapon-panel {
  position: fixed;
  z-index: 2;
  left: 24px;
  bottom: 28px;
  display: flex;
  width: min(calc(100vw - 48px), 1120px);
  gap: 8px;
}
.weapon-slot {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px 7px 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(7,16,27,.68);
  backdrop-filter: blur(10px);
  transition: opacity .2s ease, border-color .2s ease;
}
.weapon-slot.locked { opacity: .38; filter: grayscale(1); }
.weapon-slot.active { border-color: rgba(77,231,212,.26); }
.weapon-slot.evolved { border-color: #ffd86d; background: rgba(255,207,90,.1); box-shadow: 0 0 20px rgba(255,207,90,.12); }
.weapon-slot.evolved .weapon-icon { box-shadow: 0 0 22px rgba(255,216,109,.45); }
.weapon-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #3fd5bd, #4678d7);
  box-shadow: 0 0 18px rgba(77,231,212,.25);
}
.orbit-icon { background: linear-gradient(145deg, #9b77ed, #5967cb); }
.storm-icon { background: linear-gradient(145deg, #ffe57b, #f08b55); color: #281508; }
.void-icon { background: linear-gradient(145deg, #cf91ff, #493c95); }
.chrono-icon { background: linear-gradient(145deg, #8cf5ff, #4176cc); color: #061c2b; }
.drone-icon { background: linear-gradient(145deg, #ffc56b, #e55c65); color: #281005; }
.lantern-icon { background: linear-gradient(145deg, #b8ff9a, #36b985); color: #092117; }
.astrolabe-icon { background: radial-gradient(circle at 38% 32%, #fff5b0, #e3a746 48%, #6d486a 78%); color: #2b1707; }
.dream-icon { background: radial-gradient(circle at 38% 32%, #ffe7ff, #b96fda 46%, #50366f 78%); color: #2b1438; }
.lance-icon { background: linear-gradient(145deg, #e3ffff, #54d8e8 45%, #316aa6); color: #062534; }
.trident-icon { background: linear-gradient(145deg, #e5fff9, #58e5d4 45%, #287a91); color: #042b30; }
.weapon-panel strong { font-size: 13px; }

.relic-panel {
  position: fixed;
  z-index: 2;
  left: 24px;
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(169,139,255,.16);
  border-radius: 11px;
  background: rgba(7,16,27,.64);
  backdrop-filter: blur(10px);
}
.relic-panel > small { color: #71879a; font-size: 8px; letter-spacing: .12em; }
.relic-slots { display: flex; gap: 5px; }
.relic-slots span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px;
  color: #536b7e;
  font-size: 14px;
}
.relic-slots span.filled { border-style: solid; border-color: rgba(196,159,255,.35); background: linear-gradient(145deg,rgba(161,105,231,.25),rgba(59,112,174,.2)); color: #e4ceff; box-shadow: 0 0 15px rgba(154,104,229,.14); }
.relic-slots span.fated { border-color: #ffe08a; background: linear-gradient(145deg,rgba(255,210,94,.34),rgba(144,87,210,.28)); color: #fff0aa; box-shadow: 0 0 18px rgba(255,205,94,.24); }
.resonance-panel { position: fixed; z-index: 2; left: 24px; bottom: 185px; display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid rgba(255,216,109,.18); border-radius: 11px; background: rgba(16,16,28,.68); backdrop-filter: blur(10px); }
.resonance-panel > small { color: #857a63; font-size: 8px; letter-spacing: .12em; }
.resonance-slots { display: flex; gap: 5px; }
.resonance-slots > span { display: grid; grid-template-columns: 24px auto; min-width: 28px; min-height: 28px; align-items: center; padding: 0 6px; border: 1px dashed rgba(255,216,109,.18); border-radius: 8px; color: #685f53; font-size: 13px; }
.resonance-slots > span small { display: none; color: #f3db9a; font-size: 8px; }
.resonance-slots > span.filled { border-style: solid; border-color: rgba(255,216,109,.48); background: rgba(255,205,83,.1); color: #ffe08a; box-shadow: 0 0 15px rgba(255,193,71,.12); }
.resonance-panel.active .resonance-slots > span.filled small { display: block; }
.awakening-badge {
  position: fixed;
  z-index: 2;
  left: 24px;
  bottom: 139px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255,216,109,.18);
  border-radius: 10px;
  background: rgba(7,16,27,.64);
  color: #73899a;
  backdrop-filter: blur(10px);
}
.awakening-badge span { color: #867858; }
.awakening-badge small { font-size: 9px; letter-spacing: .08em; }
.awakening-badge.active { border-color: rgba(255,216,109,.48); color: #f0d88b; box-shadow: 0 0 18px rgba(255,204,91,.12); }
.awakening-badge.active span { color: #ffd86d; }

.boss-panel {
  position: fixed;
  z-index: 3;
  top: 86px;
  left: 50%;
  width: min(520px, 55vw);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.boss-panel.visible { opacity: 1; transform: translate(-50%, 0); }
.boss-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #ffc2cf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.boss { height: 10px; border-color: rgba(255,90,120,.4); }
.boss i { background: linear-gradient(90deg, #bf3c69, #ff647d); box-shadow: 0 0 18px rgba(255,82,110,.6); }

.announcement {
  position: fixed;
  z-index: 5;
  top: 142px;
  left: 50%;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(6,14,24,.82);
  color: #d9ebf6;
  font-size: 12px;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.announcement.visible { opacity: 1; transform: translate(-50%, 0); }

.touch-controls {
  position: fixed;
  z-index: 4;
  left: 18px;
  bottom: 86px;
  display: none;
  width: 126px;
  height: 126px;
  place-items: center;
  touch-action: none;
}
.touch-dash {
  position: fixed;
  z-index: 4;
  right: 28px;
  bottom: 104px;
  display: none;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,220,120,.48);
  border-radius: 50%;
  background: rgba(180,119,54,.28);
  box-shadow: inset 0 0 22px rgba(255,207,96,.12), 0 8px 24px rgba(0,0,0,.25);
  color: #ffe092;
  font-size: 27px;
  font-weight: 900;
  touch-action: manipulation;
}
.touch-ultimate {
  position: fixed;
  z-index: 4;
  right: 112px;
  bottom: 164px;
  display: none;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(110,226,255,.48);
  border-radius: 50%;
  background: rgba(66,125,182,.32);
  box-shadow: inset 0 0 22px rgba(92,218,255,.12), 0 8px 24px rgba(0,0,0,.25);
  color: #a9edff;
  font-size: 24px;
  font-weight: 900;
  touch-action: manipulation;
}
.touch-ultimate small { display: block; margin-top: -2px; font-size: 8px; letter-spacing: .08em; }
.touch-ultimate.charging { opacity: .38; }
.touch-dash small { display: block; margin-top: -2px; font-size: 9px; letter-spacing: .08em; }
.touch-dash.cooling { opacity: .4; }
.ability-panel {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 48px;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 8px;
  min-width: 178px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(7,16,27,.68);
  backdrop-filter: blur(10px);
}
.ultimate-panel {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 112px;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 8px;
  min-width: 178px;
  padding: 8px 11px;
  border: 1px solid rgba(102,205,255,.18);
  border-radius: 12px;
  background: rgba(7,16,27,.72);
  backdrop-filter: blur(10px);
}
.ultimate-panel > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#6de0ef,#5c68c8); color: #07131e; }
.ultimate-panel small { display: block; color: #7891a5; font-size: 8px; letter-spacing: .06em; }
.ultimate-panel strong { color: #b9f4ff; font-size: 11px; }
.ultimate-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.ultimate-panel > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#55d8e7,#9d8aff); transition: width .08s linear; }
.ultimate-panel.ready { border-color: rgba(126,235,255,.65); box-shadow: 0 0 24px rgba(94,212,255,.14); }
.trait-panel {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 176px;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 8px;
  min-width: 178px;
  padding: 8px 11px;
  border: 1px solid rgba(143,122,220,.2);
  border-radius: 12px;
  background: rgba(9,13,28,.72);
  backdrop-filter: blur(10px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.trait-panel > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#9d8aff,#4ccfc2); color: #09121d; font-size: 17px; }
.trait-panel small { display: block; color: #8c83ad; font-size: 8px; letter-spacing: .07em; }
.trait-panel strong { display: block; max-width: 190px; margin-top: 2px; color: #d9d2f6; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trait-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.trait-panel > i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#987dff,#55dfcf); transition: width .08s linear; }
.trait-panel.active { border-color: rgba(174,148,255,.6); box-shadow: 0 0 24px rgba(124,93,224,.15); }
.trait-panel.fated { border-color: rgba(255,220,116,.62); box-shadow: 0 0 26px rgba(255,192,74,.16); }
.trait-panel.fated > span { background: linear-gradient(145deg,#ffe88b,#ae79e6); color: #241428; }
.ability-panel > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#e9bd55,#b86847); color: #281509; }
.ability-panel small { display: block; color: #7891a5; font-size: 8px; letter-spacing: .08em; }
.ability-panel strong { color: #dfeef6; font-size: 11px; }
.ability-panel > i { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 99px; background: rgba(255,255,255,.08); }
.ability-panel > i b { display: block; width: 100%; height: 100%; border-radius: inherit; background: #ffd36d; transition: width .08s linear; }
.joystick {
  position: relative;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(175,214,230,.22);
  border-radius: 50%;
  background: rgba(8,20,33,.38);
  box-shadow: inset 0 0 30px rgba(0,0,0,.2);
}
.joystick::before { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.joystick i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px;
  border: 1px solid rgba(125,241,225,.45);
  border-radius: 50%;
  background: rgba(65,199,185,.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transform: translate(0, 0);
}

.controls-hint {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 26px;
  color: rgba(213,228,241,.58);
  font-size: 11px;
}

.overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3,8,14,.6);
  backdrop-filter: blur(8px);
}
.overlay.visible { display: grid; }

.panel {
  width: min(920px, 100%);
  padding: 42px;
  border: 1px solid rgba(111,211,224,.23);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(40,74,100,.2), transparent 42%),
    var(--panel);
  box-shadow: 0 30px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05);
  text-align: center;
}

.hero-panel {
  max-width: 1180px;
  max-height: calc(100vh - 36px);
  padding: 26px 30px 22px;
  overflow-y: auto;
  text-align: left;
}
.compact-panel { max-width: 680px; max-height: calc(100vh - 36px); overflow-y: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
}
.eyebrow.danger { color: #ff7080; }
h1, h2 { margin: 0; line-height: 1.1; }
h1 { font-size: clamp(42px, 8vw, 76px); letter-spacing: -.06em; }
h2 { font-size: clamp(30px, 5vw, 44px); }
h3 { margin: 0; }
.lead { margin: 22px auto 28px; color: #b9cad8; line-height: 1.7; }
.feature-row { display: flex; justify-content: center; gap: 26px; color: #9fb7ca; font-size: 13px; }

.camp-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.camp-tools { display: flex; align-items: center; gap: 10px; }
.camp-heading h1 { font-size: clamp(38px, 6vw, 62px); }
.currency {
  min-width: 145px;
  padding: 12px 16px;
  border: 1px solid rgba(255,215,99,.22);
  border-radius: 14px;
  background: rgba(255,205,90,.06);
  text-align: right;
}
.currency small { display: block; margin-bottom: 3px; color: #98aec0; font-size: 10px; letter-spacing: .12em; }
.currency strong { color: #ffd86d; font-size: 21px; }
.section-title { margin: 18px 0 10px; color: #c9d9e7; font-size: 12px; letter-spacing: .13em; }

.camp-survivor-section { margin-top: 4px; }
.camp-survivor-section .section-title, .camp-config-section .section-title { margin: 0; }
.camp-survivor-section > .meta-heading, .camp-config-section > .meta-heading { margin-bottom: 9px; }
.camp-survivor-section .character-grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
.camp-survivor-section .character-card { grid-template-columns: 38px 1fr; min-height: 54px; gap: 3px 8px; padding: 8px 9px; border-radius: 12px; }
.camp-survivor-section .portrait { grid-row: auto; width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
.camp-survivor-section .character-card strong { align-self: center; font-size: 11px; }
.camp-survivor-section .character-card small, .camp-survivor-section .character-card p { display: none; }
.camp-survivor-section .character-card.selected::after { top: 4px; right: 6px; font-size: 7px; }
.selected-character-summary { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 12px; border: 1px solid rgba(119,240,255,.18); border-radius: 12px; background: linear-gradient(90deg,rgba(72,211,223,.08),rgba(90,83,170,.05)); }
.selected-character-summary > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: linear-gradient(145deg,#7df2e5,#6378d4); color: #071a24; font-size: 17px; }
.selected-character-summary small, .selected-character-summary strong { display: block; }
.selected-character-summary small { color: #668397; font-size: 7px; letter-spacing: .12em; }
.selected-character-summary strong { margin-top: 2px; color: #d8edf3; font-size: 11px; }
.selected-character-summary p { margin: 3px 0 0; color: #7db7ba; font-size: 8px; }

.camp-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.camp-config-section { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.018); }
.camp-config-section .meta-heading small { font-size: 8px; }
.camp-config-section .mode-grid { gap: 6px; }
.camp-config-section .mode-card { min-height: 53px; padding: 8px 10px; }
.camp-config-section .mode-card strong { font-size: 10px; }
.camp-config-section .mode-card small { overflow: hidden; margin-top: 3px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.camp-config-section .mode-card em { margin-top: 3px; font-size: 7px; }
.camp-config-section .map-grid { gap: 6px; }
.camp-config-section .map-card { grid-template-columns: 31px 1fr; min-height: 53px; gap: 7px; padding: 7px 8px; border-radius: 11px; }
.camp-config-section .map-card > span { width: 30px; height: 37px; border-radius: 8px; font-size: 16px; }
.camp-config-section .map-card strong { font-size: 10px; }
.camp-config-section .map-card small { display: none; }
.camp-config-section .map-card em { overflow: hidden; margin-top: 3px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.camp-config-section .oath-grid, .camp-config-section .supply-grid, .camp-config-section .difficulty-grid { gap: 6px; }
.camp-config-section .oath-card, .camp-config-section .supply-card, .camp-config-section .difficulty-card { padding: 8px 9px; }
.camp-config-section .oath-card strong, .camp-config-section .supply-card strong, .camp-config-section .difficulty-card strong { font-size: 9px; }
.camp-config-section .oath-card small, .camp-config-section .supply-card small, .camp-config-section .difficulty-card small { margin-top: 3px; font-size: 7px; }
.difficulty-section .affix-legend { margin-top: 7px; }
.difficulty-section .affix-legend span { padding: 3px 6px; font-size: 7px; }
.camp-config-section .convergence-route, .camp-config-section .ascension-route, .camp-config-section .cataclysm-route, .camp-config-section .collapse-route, .camp-config-section .genesis-route { margin-top: 7px; padding: 8px; }

.camp-drawer { margin-top: 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.02); }
.camp-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: #bdd0dc; cursor: pointer; list-style: none; }
.camp-drawer > summary::-webkit-details-marker { display: none; }
.camp-drawer > summary span, .camp-drawer > summary b, .camp-drawer > summary small { display: block; }
.camp-drawer > summary b { font-size: 11px; }
.camp-drawer > summary small { margin-top: 3px; color: #657e91; font-size: 8px; }
.camp-drawer > summary i { color: #6edbce; font-size: 8px; font-style: normal; letter-spacing: .08em; }
.camp-drawer[open] > summary { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(78,199,190,.035); }
.camp-drawer[open] > summary i { font-size: 0; }
.camp-drawer[open] > summary i::after { content: "收起"; font-size: 8px; }
.camp-drawer-body { padding: 0 13px 14px; }

.camp-launch-bar { position: sticky; z-index: 2; bottom: -22px; display: grid; grid-template-columns: 1fr 230px; align-items: center; gap: 18px; margin: 10px -30px -22px; padding: 12px 30px 14px; border-top: 1px solid rgba(103,223,215,.16); background: linear-gradient(180deg,rgba(7,16,27,.94),rgba(5,12,21,.99)); backdrop-filter: blur(16px); }
.camp-launch-bar .run-goal { margin: 0; text-align: left; }
.camp-launch-bar .microcopy { margin: 4px 0 0; font-size: 8px; }
.camp-launch-bar .primary-button { width: 100%; margin: 0; padding: 12px 18px; }

.character-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.character-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.character-card:hover { transform: translateY(-2px); border-color: rgba(77,231,212,.45); }
.character-card.selected { border-color: var(--cyan); background: rgba(77,231,212,.08); box-shadow: inset 0 0 22px rgba(77,231,212,.04); }
.character-card.selected::after { content: "已选择"; position: absolute; top: 8px; right: 9px; color: var(--cyan); font-size: 9px; letter-spacing: .08em; }
.portrait {
  grid-row: span 4;
  display: grid;
  width: 52px;
  height: 62px;
  place-items: center;
  border-radius: 13px;
  font-size: 25px;
  box-shadow: inset 0 1px rgba(255,255,255,.15);
}
.portrait.wanderer { background: linear-gradient(145deg, #3dcdb9, #336db6); }
.portrait.blade { background: linear-gradient(145deg, #9b71dd, #4655a9); }
.portrait.sage { background: linear-gradient(145deg, #f1cf62, #b75d4d); color: #26150a; }
.portrait.voidwalker { background: radial-gradient(circle at 40% 35%, #dfaeff, #7553b8 48%, #272441); }
.portrait.chronomancer { background: radial-gradient(circle at 42% 35%, #d9fdff, #58b6d8 45%, #24466d); color: #062039; }
.portrait.artificer { background: linear-gradient(145deg, #ffd27b, #d95f69 52%, #393451); color: #281308; }
.portrait.soulbinder { background: radial-gradient(circle at 42% 32%, #edffc2, #5bd8a0 44%, #294c4a 78%); color: #08261b; }
.portrait.starseer { background: radial-gradient(circle at 42% 32%, #fff8c9, #e6af55 42%, #604b83 78%); color: #2c1706; }
.portrait.dreamer { background: radial-gradient(circle at 42% 32%, #ffe9ff, #bd79df 43%, #49345f 78%); color: #2b1235; }
.portrait.riftstalker { background: radial-gradient(circle at 42% 32%, #ecffff, #56dcea 43%, #315b8a 78%); color: #052533; }
.portrait.abyssal { background: radial-gradient(circle at 42% 32%, #e8fff9, #58e5d4 43%, #285b78 78%); color: #052c32; }
.character-card strong { align-self: end; font-size: 14px; }
.character-card small { color: #7f9aaf; font-size: 10px; }
.character-card .character-trait { color: #83dfd2; font-size: 9px; line-height: 1.35; }
.character-card p { grid-column: 2; margin: 5px 0 0; color: #a4b5c3; font-size: 10px; line-height: 1.45; }

.meta-heading { display: flex; align-items: baseline; justify-content: space-between; }
.meta-heading small { color: #61798d; font-size: 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mode-card {
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.mode-card strong, .mode-card small, .mode-card em { display: block; }
.mode-card strong { font-size: 12px; }
.mode-card small { margin-top: 4px; color: #748ca0; font-size: 9px; }
.mode-card em { margin-top: 6px; color: #d4b86c; font-size: 8px; font-style: normal; }
.mode-card:hover { border-color: rgba(118,220,216,.45); }
.mode-card.selected { border-color: #6ddfd4; background: rgba(69,198,189,.08); }
.mode-card.convergence { background: linear-gradient(145deg,rgba(150,112,226,.08),rgba(255,201,91,.045)); }
.mode-card.convergence.selected { border-color: #dec477; background: linear-gradient(145deg,rgba(150,112,226,.16),rgba(255,201,91,.09)); }
.mode-card.ascension { background: linear-gradient(145deg,rgba(233,171,67,.09),rgba(121,82,171,.065)); }
.mode-card.ascension.selected { border-color: #ffd978; background: linear-gradient(145deg,rgba(241,181,74,.17),rgba(134,91,188,.12)); }
.mode-card.cataclysm { background: linear-gradient(145deg,rgba(189,103,222,.11),rgba(74,45,104,.08)); }
.mode-card.cataclysm.selected { border-color: #dda0ff; background: linear-gradient(145deg,rgba(203,121,233,.2),rgba(91,54,127,.14)); box-shadow: inset 0 0 24px rgba(221,160,255,.045); }
.mode-card.collapse { background: linear-gradient(145deg,rgba(76,219,232,.12),rgba(45,68,117,.09)); }
.mode-card.collapse.selected { border-color: #77f0ff; background: linear-gradient(145deg,rgba(83,225,237,.2),rgba(48,91,143,.14)); box-shadow: inset 0 0 26px rgba(119,240,255,.05); }
.mode-card.genesis { background: linear-gradient(145deg,rgba(71,222,195,.13),rgba(43,96,137,.09)); }
.mode-card.genesis.selected { border-color: #58e5d4; background: linear-gradient(145deg,rgba(88,229,212,.22),rgba(53,119,157,.15)); box-shadow: inset 0 0 28px rgba(88,229,212,.06); }
.mode-card:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.45); }
.convergence-route { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 13px; border: 1px solid rgba(205,179,114,.2); border-radius: 13px; background: linear-gradient(90deg,rgba(111,80,176,.07),rgba(255,196,85,.055)); transition: opacity .2s, filter .2s; }
.convergence-route > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; }
.convergence-route b { color: #9ddfea; font-size: 16px; }
.convergence-route small { overflow: hidden; color: #879aa6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.convergence-route > i { color: #586d7b; font-size: 16px; font-style: normal; }
.convergence-route .sovereign b { color: #ffe08a; text-shadow: 0 0 14px rgba(255,211,95,.35); }
.convergence-route .sovereign small { color: #d8c58f; }
.convergence-route.locked { opacity: .38; filter: grayscale(.7); }
.ascension-route { display: grid; grid-template-columns: repeat(13,auto); align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding: 11px 13px; border: 1px solid rgba(255,214,120,.2); border-radius: 13px; background: linear-gradient(90deg,rgba(255,192,72,.06),rgba(123,81,176,.08),rgba(255,224,133,.06)); transition: opacity .2s, filter .2s; }
.ascension-route > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.ascension-route b { color: #f3d07a; font-size: 15px; }
.ascension-route small { overflow: hidden; color: #938e9d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.ascension-route > i { color: #665f72; font-size: 14px; font-style: normal; }
.ascension-route .sovereign b { color: #fff0a2; text-shadow: 0 0 15px rgba(255,218,112,.42); }
.ascension-route .sovereign small { color: #e4c982; }
.ascension-route.locked { opacity: .35; filter: grayscale(.75); }
.cataclysm-route { display: grid; grid-template-columns: repeat(15,auto); align-items: center; justify-content: space-between; gap: 5px; margin-top: 8px; padding: 11px 13px; border: 1px solid rgba(221,160,255,.22); border-radius: 13px; background: linear-gradient(90deg,rgba(104,61,145,.09),rgba(210,133,235,.08),rgba(61,37,88,.09)); transition: opacity .2s, filter .2s; }
.cataclysm-route > span { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.cataclysm-route b { color: #dda0ff; font-size: 15px; }
.cataclysm-route small { overflow: hidden; color: #9e8ca8; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.cataclysm-route > i { color: #725d7c; font-size: 13px; font-style: normal; }
.cataclysm-route .sovereign b { color: #ffe2ff; text-shadow: 0 0 16px rgba(221,160,255,.48); }
.cataclysm-route .sovereign small { color: #e8baf6; }
.cataclysm-route.locked { opacity: .34; filter: grayscale(.76); }
.collapse-route { display: grid; grid-template-columns: repeat(17,auto); align-items: center; justify-content: space-between; gap: 4px; margin-top: 8px; padding: 11px 13px; border: 1px solid rgba(119,240,255,.24); border-radius: 13px; background: linear-gradient(90deg,rgba(42,112,151,.1),rgba(87,224,235,.08),rgba(42,65,115,.1)); transition: opacity .2s, filter .2s; }
.collapse-route > span { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.collapse-route b { color: #77f0ff; font-size: 15px; }
.collapse-route small { overflow: hidden; color: #86a7b3; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.collapse-route > i { color: #537884; font-size: 13px; font-style: normal; }
.collapse-route .sovereign b { color: #e3ffff; text-shadow: 0 0 17px rgba(119,240,255,.52); }
.collapse-route .sovereign small { color: #baf7fb; }
.collapse-route.locked { opacity: .33; filter: grayscale(.78); }
.genesis-route { display: grid; grid-template-columns: repeat(19,auto); align-items: center; justify-content: space-between; gap: 3px; margin-top: 8px; padding: 11px 13px; border: 1px solid rgba(88,229,212,.26); border-radius: 13px; background: linear-gradient(90deg,rgba(30,125,139,.11),rgba(70,218,194,.09),rgba(37,79,126,.11)); transition: opacity .2s, filter .2s; }
.genesis-route > span { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.genesis-route b { color: #58e5d4; font-size: 14px; }
.genesis-route small { overflow: hidden; color: #80aaa9; font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.genesis-route > i { color: #487b7d; font-size: 12px; font-style: normal; }
.genesis-route .sovereign b { color: #e5fff9; text-shadow: 0 0 18px rgba(88,229,212,.56); }
.genesis-route .sovereign small { color: #a9f7ea; }
.genesis-route.locked { opacity: .32; filter: grayscale(.8); }
.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.map-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.map-card > span { display: grid; width: 40px; height: 48px; place-items: center; border-radius: 11px; background: linear-gradient(145deg,rgba(76,211,203,.2),rgba(103,91,196,.22)); color: #a9f6ed; font-size: 21px; }
.map-card strong, .map-card small, .map-card em { display: block; }
.map-card strong { font-size: 12px; }
.map-card small { margin-top: 3px; color: #748ca0; font-size: 8px; line-height: 1.35; }
.map-card em { margin-top: 5px; color: #6ccfc6; font-size: 8px; font-style: normal; }
.map-card:hover:not(:disabled) { border-color: rgba(96,229,218,.5); }
.map-card.selected { border-color: #65e2d5; background: rgba(65,196,187,.08); }
.map-card.soulcity > span {
  background: linear-gradient(145deg,rgba(94,235,159,.26),rgba(169,229,92,.16));
  color: #cfff9e;
  box-shadow: inset 0 0 18px rgba(101,223,157,.1), 0 0 18px rgba(101,223,157,.08);
}
.map-card.soulcity:hover:not(:disabled) { border-color: rgba(141,255,173,.58); }
.map-card.soulcity.selected {
  border-color: #8dffad;
  background: linear-gradient(135deg,rgba(74,211,137,.11),rgba(165,218,78,.055));
  box-shadow: inset 0 0 22px rgba(93,223,151,.035);
}
.map-card.soulcity em { color: #9decae; }
.map-card.skydomain > span {
  background: radial-gradient(circle at 38% 32%,rgba(255,245,178,.42),rgba(222,157,67,.26) 48%,rgba(100,72,134,.25));
  color: #fff1a6;
  box-shadow: inset 0 0 18px rgba(255,218,112,.11), 0 0 18px rgba(222,174,78,.09);
}
.map-card.skydomain:hover:not(:disabled) { border-color: rgba(255,217,120,.62); }
.map-card.skydomain.selected {
  border-color: #ffd978;
  background: linear-gradient(135deg,rgba(237,178,77,.11),rgba(132,88,175,.07));
  box-shadow: inset 0 0 24px rgba(255,216,109,.04);
}
.map-card.skydomain em { color: #f0d68b; }
.map-card.dreamscape > span {
  background: radial-gradient(circle at 38% 32%,rgba(255,231,255,.44),rgba(188,111,225,.3) 48%,rgba(74,47,99,.3));
  color: #f1c9ff;
  box-shadow: inset 0 0 18px rgba(221,160,255,.12), 0 0 18px rgba(185,111,218,.1);
}
.map-card.dreamscape:hover:not(:disabled) { border-color: rgba(221,160,255,.65); }
.map-card.dreamscape.selected {
  border-color: #dda0ff;
  background: linear-gradient(135deg,rgba(191,110,224,.12),rgba(76,49,103,.08));
  box-shadow: inset 0 0 24px rgba(221,160,255,.045);
}
.map-card.dreamscape em { color: #dca8ee; }
.map-card.riftfrontier > span {
  background: radial-gradient(circle at 38% 32%,rgba(225,255,255,.46),rgba(75,214,230,.31) 48%,rgba(45,74,119,.31));
  color: #c8ffff;
  box-shadow: inset 0 0 18px rgba(119,240,255,.14), 0 0 18px rgba(83,222,234,.1);
}
.map-card.riftfrontier:hover:not(:disabled) { border-color: rgba(119,240,255,.68); }
.map-card.riftfrontier.selected { border-color: #77f0ff; background: linear-gradient(135deg,rgba(73,211,224,.13),rgba(48,73,118,.09)); box-shadow: inset 0 0 25px rgba(119,240,255,.05); }
.map-card.riftfrontier em { color: #9eeef5; }
.map-card.voidsea > span { background: radial-gradient(circle at 38% 32%,rgba(229,255,249,.5),rgba(74,220,199,.34) 48%,rgba(35,83,121,.34)); color: #c8fff4; box-shadow: inset 0 0 18px rgba(88,229,212,.16), 0 0 18px rgba(62,210,194,.11); }
.map-card.voidsea:hover:not(:disabled) { border-color: rgba(88,229,212,.7); }
.map-card.voidsea.selected { border-color: #58e5d4; background: linear-gradient(135deg,rgba(62,211,191,.15),rgba(42,78,119,.1)); box-shadow: inset 0 0 26px rgba(88,229,212,.055); }
.map-card.voidsea em { color: #98eedf; }
.map-card:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.5); }
.map-card:disabled em { color: #a5777f; }
.oath-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.oath-card {
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.oath-card strong, .oath-card small { display: block; }
.oath-card strong { font-size: 11px; }
.oath-card small { margin-top: 4px; color: #7f8998; font-size: 8px; line-height: 1.35; }
.oath-card:hover { border-color: rgba(255,174,94,.5); }
.oath-card.selected { border-color: #ffb365; background: rgba(255,153,75,.08); box-shadow: inset 0 0 22px rgba(255,115,67,.04); }
.supply-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.supply-card { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; align-items: center; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.025); color: #c8d8e4; text-align: left; cursor: pointer; }
.supply-card > span { grid-row: 1 / 3; color: #58e5d4; font-size: 17px; text-align: center; }
.supply-card strong, .supply-card small { display: block; }
.supply-card small { color: #748e99; line-height: 1.35; }
.supply-card:hover { border-color: rgba(88,229,212,.52); }
.supply-card.selected { border-color: #58e5d4; background: rgba(67,212,192,.09); box-shadow: inset 0 0 22px rgba(88,229,212,.045); }
.difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.difficulty-card {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.difficulty-card strong, .difficulty-card small { display: block; }
.difficulty-card strong { font-size: 12px; }
.difficulty-card small { margin-top: 4px; color: #748ca0; font-size: 9px; }
.difficulty-card:hover { border-color: rgba(255,104,130,.45); }
.difficulty-card.selected { border-color: #ff718e; background: rgba(255,91,124,.08); box-shadow: inset 0 0 20px rgba(255,91,124,.04); }
.affix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.affix-legend small { margin-right: 3px; color: #62798c; font-size: 9px; letter-spacing: .1em; }
.affix-legend span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 99px; background: rgba(255,255,255,.025); color: #899eb0; font-size: 8px; }
.meta-card {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.meta-card:hover:not(:disabled) { border-color: #ffd86d; background: rgba(255,216,109,.06); }
.meta-card:disabled { opacity: .45; cursor: not-allowed; }
.meta-card > span { color: #ffd86d; font-size: 20px; text-align: center; }
.meta-card strong, .meta-card small { display: block; }
.meta-card strong { font-size: 12px; }
.meta-card small { margin-top: 3px; color: #7990a4; font-size: 9px; }
.meta-card b { color: #a9bdcd; font-weight: 700; }
.meta-card em { color: #ffd86d; font-size: 10px; font-style: normal; white-space: nowrap; }
.forge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.forge-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid rgba(255,196,83,.15); border-radius: 13px; background: linear-gradient(145deg, rgba(255,163,62,.06), rgba(113,73,173,.045)); color: var(--ink); text-align: left; cursor: pointer; }
.forge-card:hover:not(:disabled) { border-color: #ffcc68; background: rgba(255,177,67,.09); }
.forge-card:disabled { opacity: .43; cursor: not-allowed; }
.forge-card > span { display: grid; width: 32px; height: 36px; place-items: center; border-radius: 9px; background: rgba(255,190,74,.1); color: #ffcf72; font-size: 17px; }
.forge-card strong, .forge-card small { display: block; }
.forge-card strong { font-size: 11px; }
.forge-card small { margin-top: 3px; color: #817b7a; font-size: 8px; }
.forge-card b { color: #d0b777; font-weight: 700; }
.forge-card em { color: #ffcc68; font-size: 9px; font-style: normal; white-space: nowrap; }
.forge-card.maxed { border-color: rgba(255,216,109,.42); background: rgba(255,200,77,.075); opacity: .72; }
.forge-card.maxed > span { color: #fff1aa; box-shadow: 0 0 16px rgba(255,195,72,.12); }
.talent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.talent-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(111,218,255,.12);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(63,151,196,.07), rgba(119,81,183,.04));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.talent-card > span { grid-row: span 2; color: #8deeff; font-size: 21px; text-align: center; }
.talent-card strong, .talent-card small { display: block; }
.talent-card strong { font-size: 11px; }
.talent-card small { margin-top: 3px; color: #728da2; font-size: 8px; line-height: 1.35; }
.talent-card em { grid-column: 2; color: #ffd86d; font-size: 9px; font-style: normal; }
.talent-card:hover:not(:disabled) { border-color: #76eaff; background: rgba(82,195,224,.09); }
.talent-card.unlocked { border-color: rgba(255,216,109,.42); background: rgba(255,216,109,.06); }
.talent-card.unlocked > span, .talent-card.unlocked em { color: #ffd86d; }
.talent-card:disabled { opacity: .43; cursor: not-allowed; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.achievement-card { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.025); }
.achievement-card > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); color: #5f778a; }
.achievement-card strong, .achievement-card small { display: block; }
.achievement-card strong { color: #8297a8; font-size: 10px; }
.achievement-card small { margin-top: 2px; color: #536a7c; font-size: 8px; }
.achievement-card.unlocked { border-color: rgba(255,210,102,.28); background: rgba(255,210,102,.05); }
.achievement-card.unlocked > span { background: rgba(255,210,102,.16); color: #ffd66d; }
.achievement-card.unlocked strong { color: #e6d49c; }
.achievement-card.unlocked small { color: #899ba8; }
.resonance-codex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.resonance-codex-card { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px; border: 1px solid rgba(255,216,109,.11); border-radius: 13px; background: rgba(255,214,105,.025); }
.resonance-codex-card > span { display: grid; width: 36px; height: 42px; place-items: center; border-radius: 10px; background: rgba(255,214,105,.08); color: #8d8062; font-size: 17px; }
.resonance-codex-card strong, .resonance-codex-card small { display: block; }
.resonance-codex-card strong { color: #bcae8b; font-size: 11px; }
.resonance-codex-card small { margin-top: 3px; color: #796f5c; font-size: 8px; }
.resonance-codex-card p { grid-column: 2; margin: 5px 0 0; color: #718797; font-size: 8px; line-height: 1.45; }
.resonance-codex-card.unlocked { border-color: rgba(255,216,109,.36); background: rgba(255,204,78,.055); }
.resonance-codex-card.unlocked > span { color: #ffe08a; box-shadow: 0 0 18px rgba(255,197,65,.12); }
.resonance-codex-card.unlocked strong { color: #f2dda4; }
.enemy-codex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.enemy-codex-card { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 13px; border: 1px solid rgba(135,221,242,.13); border-radius: 13px; background: linear-gradient(145deg,rgba(82,186,210,.055),rgba(100,91,171,.035)); }
.enemy-codex-card > span { display: grid; width: 40px; height: 46px; place-items: center; border-radius: 11px; background: rgba(116,215,235,.09); color: #7597a5; font-size: 19px; }
.enemy-codex-card strong, .enemy-codex-card small { display: block; }
.enemy-codex-card strong { color: #9eb9c5; font-size: 11px; }
.enemy-codex-card small { margin-top: 3px; color: #688796; font-size: 8px; }
.enemy-codex-card p { grid-column: 2; margin: 6px 0 0; color: #758f9c; font-size: 8px; line-height: 1.55; }
.enemy-codex-card.unlocked { border-color: rgba(139,231,249,.34); background: linear-gradient(145deg,rgba(85,208,229,.085),rgba(115,99,190,.055)); }
.enemy-codex-card.unlocked > span { color: #b9f3ff; box-shadow: 0 0 18px rgba(113,218,239,.12); }
.enemy-codex-card.unlocked strong { color: #c8e9ef; }
.run-history { display: grid; gap: 7px; }
.run-history-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.run-history-card > span { color: #c06e7b; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.run-history-card.won > span { color: #e8ce79; }
.run-history-card strong, .run-history-card small { display: block; }
.run-history-card strong { color: #bfd0da; font-size: 10px; }
.run-history-card small { margin-top: 3px; color: #6f8798; font-size: 8px; }
.run-history-card i { display: block; margin-top: 5px; color: #cbb875; font-size: 8px; font-style: normal; }
.run-history-card em { color: #7f95a4; font-size: 8px; font-style: normal; text-align: right; }
.run-history-card em b { display: block; margin-top: 2px; color: #d4e4eb; font-size: 11px; }
.run-history-card em small { color: #6d9b93; font-size: 7px; }
.run-history-empty { margin: 0; padding: 14px; border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; color: #6d8393; font-size: 9px; }
.record-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.record-grid div { padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.025); text-align: center; }
.record-grid small, .record-grid strong { display: block; }
.record-grid small { color: #667e91; font-size: 8px; letter-spacing: .08em; }
.record-grid strong { margin-top: 4px; color: #b9cedc; font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-panel > .primary-button { display: block; margin: 24px auto 0; }
.run-goal { margin: 12px 0 0; color: #7fe7d7; font-size: 11px; text-align: center; }
.hero-panel > .microcopy { text-align: center; }

.primary-button {
  min-width: 190px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #54e6ce, #5c91f2);
  box-shadow: 0 12px 35px rgba(71,178,190,.24);
  color: #06121d;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.microcopy { margin: 14px 0 0; color: #698195; font-size: 11px; }

.level-panel h2 { margin-bottom: 28px; }
.upgrade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.upgrade-card {
  min-height: 210px;
  padding: 24px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.upgrade-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  background: rgba(77,231,212,.08);
}
.upgrade-card.weapon-upgrade { border-color: rgba(90,226,211,.24); background: linear-gradient(155deg, rgba(69,204,192,.08), rgba(255,255,255,.025)); }
.upgrade-card.resonance-ready { border-color: rgba(255,216,109,.55); background: linear-gradient(155deg, rgba(255,208,81,.12), rgba(102,76,154,.08)); box-shadow: inset 0 0 24px rgba(255,205,73,.04); }
.upgrade-card.resonance-ready .upgrade-icon, .upgrade-card.resonance-ready em { color: #ffdc7d; }
.upgrade-card .key { display: block; color: #638098; font-size: 11px; text-align: left; }
.upgrade-card .upgrade-icon { display: block; margin: 20px 0 14px; color: var(--cyan); font-size: 34px; }
.upgrade-card strong { display: block; margin-bottom: 10px; font-size: 17px; }
.upgrade-card p { margin: 0; color: #9eb2c3; font-size: 12px; line-height: 1.6; }
.upgrade-card em { display: block; margin-top: 12px; color: #62dcca; font-size: 10px; font-style: normal; }

.relic-choice-panel { max-width: 860px; border-color: rgba(185,137,255,.38); background: radial-gradient(circle at 50% 25%, rgba(134,82,213,.18), transparent 42%), var(--panel); }
.eyebrow.relic { color: #c49cff; }
.relic-intro { margin: 13px 0 26px; color: #94aabd; font-size: 12px; }
.relic-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.relic-card {
  min-height: 220px;
  padding: 22px 18px;
  border: 1px solid rgba(185,137,255,.2);
  border-radius: 17px;
  background: linear-gradient(160deg,rgba(143,91,218,.1),rgba(255,255,255,.025));
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.relic-card:hover { transform: translateY(-5px); border-color: #c49cff; background: rgba(158,100,232,.12); }
.relic-card.fated { border-color: rgba(255,218,112,.72); background: radial-gradient(circle at 50% 30%,rgba(255,212,92,.15),transparent 54%), linear-gradient(160deg,rgba(143,91,218,.16),rgba(255,255,255,.035)); box-shadow: 0 0 28px rgba(255,191,74,.11); }
.relic-card.fated:hover { border-color: #ffe18b; background: rgba(183,126,96,.16); }
.relic-card .key { display: block; color: #786a92; font-size: 11px; text-align: left; }
.relic-card .relic-icon { display: grid; width: 62px; height: 62px; margin: 18px auto 15px; place-items: center; border: 1px solid rgba(211,175,255,.4); border-radius: 18px; background: radial-gradient(circle,#cfb5ff,#7860bc 60%,#302d53); box-shadow: 0 0 28px rgba(167,108,229,.2); color: #171327; font-size: 30px; }
.relic-card strong { display: block; margin-bottom: 9px; font-size: 17px; }
.relic-card p { margin: 0; color: #a9b8c6; font-size: 12px; line-height: 1.6; }
.relic-card em { display: block; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); color: #887f9c; font-size: 9px; font-style: normal; line-height: 1.55; text-align: left; }
.relic-card em b { display: block; margin-bottom: 4px; color: #ffe08a; font-size: 10px; letter-spacing: .04em; }
.relic-choice-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.relic-choice-actions .secondary-button { margin: 0; border-color: rgba(160,131,225,.3); background: rgba(107,78,166,.1); }
.relic-choice-actions .secondary-button:hover:not(:disabled) { border-color: #c9a7ff; background: rgba(137,91,206,.16); }
.relic-choice-actions .secondary-button:disabled { opacity: .38; cursor: not-allowed; }

.awakening-panel { max-width: 760px; border-color: rgba(255,216,109,.4); background: radial-gradient(circle at 50% 24%, rgba(255,202,82,.16), transparent 43%), var(--panel); }
.eyebrow.awakening { color: #ffd86d; }
.awakening-intro { margin: 13px 0 26px; color: #9eb0bd; font-size: 12px; }
.awakening-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.awakening-card {
  min-height: 220px;
  padding: 24px 20px;
  border: 1px solid rgba(255,216,109,.2);
  border-radius: 17px;
  background: linear-gradient(160deg,rgba(255,203,84,.08),rgba(255,255,255,.025));
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.awakening-card:hover { transform: translateY(-5px); border-color: #ffd86d; background: rgba(255,205,87,.1); }
.awakening-card .key { display: block; color: #8a7b58; font-size: 11px; text-align: left; }
.awakening-card .awakening-icon { display: block; margin: 22px 0 14px; color: #ffd86d; font-size: 38px; }
.awakening-card strong { display: block; margin-bottom: 10px; font-size: 18px; }
.awakening-card p { margin: 0; color: #acb9c4; font-size: 12px; line-height: 1.65; }

.resonance-choice-panel { max-width: 900px; border-color: rgba(255,216,109,.4); background: radial-gradient(circle at 50% 20%, rgba(255,202,82,.18), transparent 44%), var(--panel); }
.eyebrow.resonance { color: #ffdc7d; }
.resonance-intro { max-width: 620px; margin: 13px auto 26px; color: #a7b5bd; font-size: 12px; line-height: 1.6; }
.resonance-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resonance-card {
  min-height: 244px;
  padding: 22px 18px;
  border: 1px solid rgba(255,216,109,.22);
  border-radius: 17px;
  background: linear-gradient(160deg, rgba(255,202,82,.1), rgba(98,78,166,.055));
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.resonance-card:hover { transform: translateY(-5px); border-color: #ffdc7d; background: rgba(255,205,87,.12); }
.resonance-card .key { display: block; color: #8d7f5d; font-size: 11px; text-align: left; }
.resonance-card > em { float: right; margin-top: -13px; padding: 4px 6px; border: 1px solid rgba(255,216,109,.28); border-radius: 99px; background: rgba(255,205,87,.08); color: #ffdc7d; font-size: 8px; font-style: normal; letter-spacing: .06em; }
.resonance-card.discovered > em { border-color: rgba(134,161,174,.18); background: rgba(111,139,151,.07); color: #78909d; }
.resonance-card .resonance-icon { display: grid; width: 62px; height: 62px; margin: 17px auto 13px; place-items: center; border: 1px solid rgba(255,225,135,.48); border-radius: 50%; background: radial-gradient(circle, rgba(255,238,173,.95), rgba(216,158,54,.78) 48%, rgba(70,47,57,.76) 74%); box-shadow: 0 0 28px rgba(255,198,72,.2); color: #261708; font-size: 28px; }
.resonance-card strong, .resonance-card small { display: block; }
.resonance-card strong { margin-bottom: 7px; font-size: 17px; }
.resonance-card small { color: #e2c977; font-size: 9px; letter-spacing: .04em; }
.resonance-card p { margin: 10px 0 0; color: #a9b8c6; font-size: 12px; line-height: 1.6; }

.evolution-panel { max-width: 540px; border-color: rgba(255,216,109,.42); background: radial-gradient(circle at 50% 35%, rgba(255,211,92,.16), transparent 38%), var(--panel); }
.eyebrow.evolution { color: #ffd86d; }
.evolution-emblem { display: grid; width: 92px; height: 92px; margin: 22px auto; place-items: center; border: 1px solid rgba(255,226,135,.6); border-radius: 50%; background: radial-gradient(circle, #fff3b0, #d99d3b 45%, #402b33 72%); box-shadow: 0 0 46px rgba(255,205,83,.35); color: #251408; font-size: 42px; }
.evolution-copy { max-width: 370px; margin: 17px auto 0; color: #b8c9d5; font-size: 13px; line-height: 1.7; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.result-grid.four { grid-template-columns: repeat(4, 1fr); }
.result-grid.six { grid-template-columns: repeat(4, 1fr); }
.result-grid div { padding: 18px 8px; border-radius: 12px; background: rgba(255,255,255,.04); }
.result-grid strong { font-size: 22px; }
.reward-result strong { color: #ffd86d; }
.eyebrow.victory { color: #ffd86d; }
.victory-panel { border-color: rgba(255,216,109,.28); background: linear-gradient(145deg, rgba(78,92,45,.2), transparent 45%), var(--panel); }
.victory-copy { margin: 15px 0 0; color: #abc0ce; font-size: 13px; }
.result-build { margin: 14px 0 0; color: #7f96a8; font-size: 11px; }
.result-build strong { color: #d9e5ed; }
.result-resonances { margin: 9px 0 0; color: #897d60; font-size: 10px; }
.result-resonances strong { color: #ffdc7d; }
.damage-report { margin-top: 14px; padding: 14px; border: 1px solid rgba(120,205,217,.12); border-radius: 14px; background: rgba(17,31,44,.4); text-align: left; }
.damage-report-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.damage-report-heading small, .damage-report-heading strong { display: block; }
.damage-report-heading small { color: #607e93; font-size: 8px; letter-spacing: .14em; }
.damage-report-heading strong { margin-top: 3px; color: #d4e7ee; font-size: 13px; }
.damage-report-heading > span { color: #7894a5; font-size: 10px; }
.damage-report-heading b { color: #f3fbff; font-size: 15px; }
.damage-breakdown { display: grid; gap: 7px; margin-top: 12px; }
.damage-row { display: grid; grid-template-columns: 24px 82px 1fr auto; align-items: center; gap: 8px; }
.damage-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: color-mix(in srgb, var(--damage-color) 16%, transparent); color: var(--damage-color); font-size: 11px; }
.damage-row strong { color: #bcd0db; font-size: 10px; font-weight: 650; }
.damage-row > i { overflow: hidden; height: 5px; border-radius: 99px; background: rgba(255,255,255,.06); }
.damage-row > i b { display: block; height: 100%; border-radius: inherit; background: var(--damage-color); box-shadow: 0 0 8px var(--damage-color); }
.damage-row em { min-width: 138px; color: #748da0; font-size: 9px; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.damage-empty { margin: 0; color: #70899a; font-size: 10px; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.result-actions .primary-button { margin-top: 0; }
.secondary-button {
  min-width: 140px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #bfd0dd;
  font-weight: 700;
  cursor: pointer;
}
.secondary-button:hover { border-color: var(--cyan); color: var(--ink); }

.settings-panel { max-width: 520px; }
.settings-panel h2 { margin-bottom: 26px; }
.settings-list { display: grid; gap: 10px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.03);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.setting-row:hover { border-color: rgba(77,231,212,.45); }
.setting-row span strong, .setting-row span small { display: block; }
.setting-row span strong { margin-bottom: 4px; font-size: 13px; }
.setting-row span small { color: #7890a4; font-size: 10px; }
.setting-row b { min-width: 52px; color: var(--cyan); font-size: 12px; text-align: right; }
.setting-row.off b { color: #718494; }
.pause-panel { max-width: 760px; }
.pause-build-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 24px; text-align: left; }
.pause-build-grid > div { min-height: 70px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.03); }
.pause-build-grid small, .pause-build-grid strong { display: block; }
.pause-build-grid small { margin-bottom: 7px; color: #6f899d; font-size: 8px; letter-spacing: .12em; }
.pause-build-grid strong { color: #d3e4ef; font-size: 11px; line-height: 1.5; }
.guide-panel { max-width: 820px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 24px; text-align: left; }
.guide-grid article { padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.028); }
.guide-grid article span { display: grid; width: 34px; height: 34px; margin-bottom: 10px; place-items: center; border-radius: 10px; background: rgba(83,216,206,.12); color: #82eee2; font-size: 17px; }
.guide-grid article strong { font-size: 12px; }
.guide-grid article p { margin: 7px 0 0; color: #7f96a8; font-size: 9px; line-height: 1.6; }
.save-tools { margin-top: 18px; padding: 14px; border: 1px solid rgba(111,211,224,.12); border-radius: 14px; background: rgba(52,99,124,.05); text-align: left; }
.save-tools > div:first-child strong, .save-tools > div:first-child small { display: block; }
.save-tools > div:first-child strong { font-size: 12px; }
.save-tools > div:first-child small { margin-top: 3px; color: #748da1; font-size: 9px; }
.save-tools textarea { width: 100%; height: 76px; margin-top: 11px; padding: 9px 10px; resize: vertical; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; outline: none; background: rgba(2,8,14,.5); color: #bad4df; font: 9px/1.45 ui-monospace,Consolas,monospace; user-select: text; }
.save-tools textarea:focus { border-color: rgba(91,224,212,.55); }
.save-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 8px; }
.save-actions button { min-width: 0; margin: 0; padding: 9px 7px; font-size: 9px; }
.danger-button { border: 1px solid rgba(255,91,113,.32); border-radius: 10px; background: rgba(255,69,92,.08); color: #ff8796; cursor: pointer; }
.danger-button:hover { border-color: #ff7185; }
.save-status { min-height: 14px; margin: 8px 0 0; color: #6edccc; font-size: 9px; }

@media (min-width: 651px) and (max-width: 900px) {
  .weapon-panel { width: calc(100vw - 48px); }
  .weapon-slot { gap: 5px; min-width: 0; padding: 6px 5px; }
  .weapon-slot .weapon-icon { width: 30px; height: 30px; }
  .weapon-slot small { font-size: 8px; white-space: nowrap; }
  .weapon-slot strong { font-size: 10px; white-space: nowrap; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-survivor-section .character-grid { grid-template-columns: repeat(5, 1fr); }
  .camp-survivor-section .character-card { grid-template-columns: 32px 1fr; padding-inline: 6px; }
  .camp-survivor-section .portrait { width: 32px; height: 36px; }
  .camp-config-grid { grid-template-columns: 1fr; }
  .talent-grid { grid-template-columns: repeat(2, 1fr); }
  .oath-grid, .supply-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .forge-grid { grid-template-columns: repeat(2, 1fr); }
  .resonance-codex { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .hud { inset: 14px 14px auto; align-items: center; }
  .brand { font-size: 14px; }
  .brand span { display: none; }
  .stats { position: fixed; top: 62px; left: 14px; gap: 14px; }
  .stats div { min-width: 42px; }
  .stats small { font-size: 9px; }
  .stats strong { font-size: 15px; }
  .health-panel { top: 104px; left: 14px; width: 180px; }
  .map-mechanic-panel { top: 104px; right: 14px; width: calc(100vw - 222px); padding: 7px 9px; }
  .map-mechanic-panel small { display: none; }
  .map-mechanic-panel strong { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
  .map-mechanic-panel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contract-panel { top: 139px; left: 14px; width: calc(100vw - 28px); }
  .rift-panel { top: 205px; left: 14px; width: calc(100vw - 28px); }
  .combo-panel { top: 271px; left: 14px; width: calc(100vw - 28px); }
  .relic-panel { top: 337px; bottom: auto; left: 14px; padding-block: 5px; }
  .awakening-badge { top: 337px; right: 14px; bottom: auto; left: auto; min-height: 40px; }
  .resonance-panel { top: 386px; right: 14px; bottom: auto; left: 14px; justify-content: center; }
  .resonance-panel > small { display: none; }
  .resonance-slots { flex: 1; }
  .resonance-slots > span { flex: 1; justify-content: center; }
  .controls-hint { display: none; }
  .ability-panel { display: none; }
  .ultimate-panel, .trait-panel { display: none; }
  .weapon-panel { left: 14px; right: 14px; bottom: 20px; width: auto; overflow: hidden; }
  .weapon-slot { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 4px 1px; }
  .weapon-slot > div { min-width: 0; text-align: center; line-height: 1; }
  .weapon-slot small { display: none; }
  .weapon-slot .weapon-icon { width: 30px; height: 30px; }
  .weapon-slot strong { display: block; overflow: hidden; max-width: 100%; font-size: 8px; text-overflow: clip; white-space: nowrap; }
  .boss-panel { top: 431px; width: calc(100vw - 28px); }
  .announcement { top: 475px; max-width: calc(100vw - 28px); white-space: normal; }
  .panel { padding: 28px 18px; }
  .hero-panel { max-height: calc(100vh - 18px); padding: 22px 14px 20px; }
  .camp-heading { align-items: center; }
  .camp-tools { gap: 6px; }
  .currency { min-width: 112px; padding: 9px 11px; }
  .character-grid, .meta-grid, .difficulty-grid, .mode-grid, .map-grid, .oath-grid, .supply-grid, .talent-grid, .forge-grid { grid-template-columns: 1fr; }
  .camp-survivor-section .character-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .camp-survivor-section .character-card { grid-template-columns: 1fr; justify-items: center; min-height: 58px; gap: 3px; padding: 5px 2px; text-align: center; }
  .camp-survivor-section .portrait { width: 32px; height: 32px; font-size: 15px; }
  .camp-survivor-section .character-card strong { overflow: hidden; max-width: 100%; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .camp-survivor-section .character-card.selected::after { display: none; }
  .selected-character-summary p { overflow: hidden; max-width: calc(100vw - 105px); text-overflow: ellipsis; white-space: nowrap; }
  .camp-config-grid { grid-template-columns: 1fr; gap: 8px; }
  .camp-config-section { padding: 10px; }
  .camp-config-section .mode-grid, .camp-config-section .map-grid, .camp-config-section .oath-grid, .camp-config-section .supply-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-config-section .difficulty-grid { grid-template-columns: repeat(3, 1fr); }
  .camp-config-section .difficulty-card small { display: none; }
  .difficulty-section .affix-legend { display: none; }
  .camp-drawer > summary { padding: 10px 12px; }
  .camp-drawer-body { padding-inline: 10px; }
  .camp-launch-bar { grid-template-columns: 1fr; gap: 7px; margin-inline: -14px; padding: 10px 14px 12px; }
  .camp-launch-bar .run-goal { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .camp-launch-bar .microcopy { display: none; }
  .convergence-route, .ascension-route, .cataclysm-route, .collapse-route, .genesis-route { display: flex; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
  .convergence-route > span, .ascension-route > span, .cataclysm-route > span, .collapse-route > span, .genesis-route > span { flex: 0 0 92px; }
  .record-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .resonance-codex, .enemy-codex { grid-template-columns: 1fr; }
  .run-history-card { grid-template-columns: 42px 1fr; }
  .run-history-card em { grid-column: 2; text-align: left; }
  .character-card { grid-template-columns: 46px 1fr; padding: 11px; }
  .portrait { width: 46px; height: 52px; }
  .character-card p { display: none; }
  .meta-card { padding-block: 9px; }
  .result-grid.four, .result-grid.six { grid-template-columns: repeat(2, 1fr); }
  .damage-row { grid-template-columns: 22px 68px 1fr; }
  .damage-row em { grid-column: 2 / -1; min-width: 0; text-align: left; }
  .feature-row { flex-direction: column; gap: 8px; }
  .upgrade-grid { grid-template-columns: 1fr; max-height: 62vh; overflow-y: auto; }
  .relic-choice-grid { grid-template-columns: 1fr; max-height: 62vh; overflow-y: auto; }
  .relic-choice-actions { grid-template-columns: 1fr; }
  .awakening-choice-grid { grid-template-columns: 1fr; max-height: 62vh; overflow-y: auto; }
  .resonance-choice-grid { grid-template-columns: 1fr; max-height: 62vh; overflow-y: auto; }
  .upgrade-card { min-height: 0; padding: 15px; }
  .upgrade-card .upgrade-icon { margin: 8px 0; }
  .relic-card { min-height: 0; padding: 14px; }
  .relic-card .relic-icon { width: 46px; height: 46px; margin: 8px auto; font-size: 23px; }
  .awakening-card { min-height: 0; padding: 15px; }
  .awakening-card .awakening-icon { margin: 8px 0; font-size: 28px; }
  .resonance-card { min-height: 0; padding: 15px; }
  .resonance-card .resonance-icon { width: 46px; height: 46px; margin: 8px auto; font-size: 22px; }
  .pause-build-grid, .guide-grid { grid-template-columns: 1fr; max-height: 58vh; overflow-y: auto; }
  .save-actions { grid-template-columns: 1fr; }
}

@media (hover: none) and (pointer: coarse) {
  .touch-controls { display: grid; }
  .touch-dash { display: block; }
  .touch-ultimate { display: block; }
  .controls-hint { display: none; }
  .weapon-panel { left: 154px; }
  .touch-dash, .touch-ultimate { min-width: 72px; min-height: 72px; }
}

@media (max-width: 470px) and (hover: none) and (pointer: coarse) {
  .touch-controls { bottom: calc(76px + env(safe-area-inset-bottom)); transform: scale(.88); transform-origin: left bottom; }
  .weapon-panel { left: 14px; bottom: 14px; }
  .touch-dash { right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); transform: scale(.9); }
  .touch-ultimate { right: 92px; bottom: calc(150px + env(safe-area-inset-bottom)); transform: scale(.86); }
  .weapon-slot { padding: 5px; justify-content: center; }
  .weapon-slot .weapon-icon { width: 28px; height: 28px; }
  .weapon-slot div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
