:root {
  --bg: #06090e;
  --panel: #0b111a;
  --panel-2: #101925;
  --line: rgba(151, 181, 204, .18);
  --text: #edf6ff;
  --muted: #7f90a0;
  --cyan: #55e7ff;
  --orange: #ff7b3d;
  --display: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(27, 88, 115, .18), transparent 25rem),
    radial-gradient(circle at 88% 24%, rgba(115, 53, 22, .12), transparent 30rem),
    linear-gradient(180deg, #080d14 0%, var(--bg) 38%, #05080c 100%);
  font-family: var(--body);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(86, 141, 170, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(86, 141, 170, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

button, select { font: inherit; }
button { color: inherit; }

.topbar {
  height: 74px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 14, .86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 15;
}

.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 40px; display: grid; place-items: center; background: linear-gradient(145deg, #8bf1ff, #17677d); clip-path: polygon(50% 0, 96% 23%, 83% 80%, 50% 100%, 17% 80%, 4% 23%); }
.brand-mark i { width: 17px; height: 22px; background: #071019; clip-path: polygon(50% 0, 100% 36%, 72% 100%, 28% 100%, 0 36%); }
.brand b { display: block; font-size: 18px; letter-spacing: .16em; }
.brand small { display: block; color: #738999; font-family: var(--display); font-size: 10px; letter-spacing: .18em; margin-top: 2px; }
.system-state { color: #8395a3; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.system-state i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #64ffc7; box-shadow: 0 0 12px #64ffc7; }
.system-state span { color: #44515d; margin-left: 12px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.battle-link { display: flex; align-items: center; gap: 9px; padding: 8px 13px; color: #071018; background: var(--cyan); text-decoration: none; clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); box-shadow: 0 0 18px rgba(85,231,255,.18); }
.battle-link b { font-size: 12px; }
.battle-link small { font: 700 9px var(--display); opacity: .62; letter-spacing: .1em; }

main { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 330px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 76px 0 46px; position: relative; }
.hero::after { content: "01"; position: absolute; right: 0; top: 42px; color: rgba(133, 169, 190, .045); font: 800 210px/1 var(--display); pointer-events: none; }
.hero-copy { max-width: 780px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; color: var(--cyan); font: 600 13px/1 var(--display); letter-spacing: .32em; }
.hero h1 { margin: 0; font: 800 clamp(50px, 7vw, 92px)/.88 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px #607586; text-stroke: 1px #607586; }
.hero-desc { color: #96a5b1; max-width: 570px; font-size: 14px; line-height: 1.8; margin: 24px 0 0; }
.hero-battle { display: inline-flex; align-items: center; gap: 18px; margin-top: 25px; padding: 13px 20px; color: #071018; background: linear-gradient(135deg, #7af0ff, #29bcd7); text-decoration: none; clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px); box-shadow: 0 0 28px rgba(85,231,255,.18); transition: transform .2s,filter .2s; }
.hero-battle:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero-battle span { font-weight: 900; letter-spacing: .08em; }
.hero-battle small { font: 700 10px var(--display); letter-spacing: .12em; opacity: .66; }
.hero-readout { display: flex; gap: 1px; position: relative; z-index: 1; }
.hero-readout div { min-width: 116px; padding: 20px; border: 1px solid var(--line); background: rgba(11, 18, 27, .7); }
.hero-readout strong { display: block; color: var(--cyan); font: 700 38px/1 var(--display); }
.hero-readout span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; white-space: nowrap; }

.control-deck { min-height: 78px; display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 22px; background: linear-gradient(100deg, rgba(17, 27, 39, .96), rgba(9, 15, 23, .96)); border: 1px solid var(--line); border-left: 3px solid var(--cyan); position: sticky; top: 86px; z-index: 10; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.control-label { min-width: 112px; padding-right: 18px; border-right: 1px solid var(--line); }
.control-label span { display: block; font-weight: 700; font-size: 14px; }
.control-label small { color: #607181; font: 600 10px var(--display); letter-spacing: .12em; }
.filters { display: flex; flex: 1; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { flex: 0 0 auto; min-width: 54px; padding: 9px 12px; border: 1px solid #263644; background: #0b121b; color: #8899a7; cursor: pointer; font-size: 12px; transition: .2s ease; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.filter-btn:hover { color: white; border-color: #4e687c; }
.filter-btn.active { color: #051018; background: var(--cyan); border-color: var(--cyan); font-weight: 800; box-shadow: 0 0 18px rgba(85, 231, 255, .28); }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sort-control select { color: #cfdae2; border: 1px solid #293a48; background: #09111a; padding: 9px 30px 9px 10px; outline: none; cursor: pointer; }
.draw-button { display: flex; align-items: center; gap: 10px; min-width: 142px; padding: 10px 16px; border: 0; background: linear-gradient(135deg, #ff8749, #d64b20); cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform .2s, filter .2s; }
.draw-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.draw-icon { font-size: 22px; }
.draw-button b, .draw-button small { display: block; text-align: left; }
.draw-button b { font-size: 13px; }
.draw-button small { font: 600 9px var(--display); opacity: .72; letter-spacing: .1em; }

.archive-head { display: flex; align-items: end; justify-content: space-between; margin: 56px 0 24px; }
.archive-head span { color: #536575; font: 600 11px var(--display); letter-spacing: .25em; }
.archive-head h2 { margin: 3px 0 0; font: 700 34px var(--display); letter-spacing: .08em; }
.archive-head p { color: var(--muted); font-size: 12px; margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 70px; }

.mecha-card { --accent: #55e7ff; --accent2: #1b6f8e; --glow: rgba(85,231,255,.3); position: relative; min-width: 0; border: 1px solid color-mix(in srgb, var(--accent) 32%, #26333f); background: linear-gradient(160deg, rgba(20,29,40,.96), rgba(7,12,18,.98) 62%); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); cursor: pointer; transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s; isolation: isolate; }
.mecha-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--glow), transparent 28%, transparent 72%, var(--glow)); opacity: .16; pointer-events: none; z-index: 3; }
.mecha-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 0 38px var(--glow); pointer-events: none; opacity: .55; z-index: 3; }
.mecha-card:hover, .mecha-card:focus-visible { transform: translateY(-8px) scale(1.018); filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)) drop-shadow(0 0 10px var(--glow)); outline: none; z-index: 2; }
.card-visual { height: 324px; overflow: hidden; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); background: radial-gradient(circle at 50% 53%, var(--glow), transparent 37%), linear-gradient(180deg, #0a111b, #080c12); }
.card-visual::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(140,190,215,.05) 29px 30px), linear-gradient(90deg, transparent 49.8%, rgba(165,215,235,.08) 50%, transparent 50.2%); z-index: 0; }
.card-visual::after { content: attr(data-code); position: absolute; right: 12px; bottom: 8px; color: color-mix(in srgb, var(--accent) 38%, transparent); font: 800 60px/.8 var(--display); letter-spacing: -.04em; z-index: 0; }
.mecha-card-render { width: 100%; height: 100%; display: block; position: relative; z-index: 1; object-fit: contain; object-position: center; background: #05080c; transform: scale(1.01); transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s; user-select: none; }
.mecha-card:hover .mecha-card-render { transform: scale(1.055); filter: brightness(1.1) contrast(1.04); }
.render-badge { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: #dceaf2; background: rgba(3,8,12,.78); border: 1px solid rgba(195,224,239,.2); backdrop-filter: blur(7px); font: 600 9px var(--display); letter-spacing: .12em; }
.render-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mecha-svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; filter: drop-shadow(0 12px 8px rgba(0,0,0,.55)); }
.mecha-card:hover .core-glow { animation: corePulse 1.15s ease-in-out infinite alternate; }
.mecha-card:hover .fx-pulse { animation: fxPulse 1s ease-in-out infinite alternate; }
@keyframes corePulse { to { filter: brightness(1.8) drop-shadow(0 0 10px var(--accent)); transform: scale(1.08); transform-origin: center; } }
@keyframes fxPulse { to { opacity: .25; } }
.rarity { position: absolute; left: 12px; top: 12px; z-index: 4; min-width: 44px; padding: 6px 9px; font: 800 13px var(--display); letter-spacing: .1em; color: #071018; background: var(--accent); clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); box-shadow: 0 0 16px var(--glow); }
.unit-type { position: absolute; right: 12px; top: 12px; z-index: 4; padding: 6px 9px; color: #c6d2db; background: rgba(3,8,12,.76); border: 1px solid rgba(190,215,230,.2); font-size: 11px; backdrop-filter: blur(6px); }
.rarity-UR { --rarity-shine: linear-gradient(100deg, #f5d477, #fff5be, #ee7cff, #75ebff); }
.rarity-UR .rarity { background: var(--rarity-shine); background-size: 250%; animation: rarityShift 2.8s linear infinite; }
.rarity-SSR .rarity { background: linear-gradient(135deg, #ffd36b, #ff7a3d); }
.rarity-SR .rarity { background: linear-gradient(135deg, #c58bff, #6e81ff); color: white; }
.rarity-R .rarity { background: linear-gradient(135deg, #9fb4c2, #607989); color: white; }
@keyframes rarityShift { to { background-position: 250% 0; } }

.card-content { padding: 20px 20px 18px; }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-kicker { color: var(--accent); font: 600 10px var(--display); letter-spacing: .18em; }
.card-content h3 { margin: 3px 0 0; font-size: 22px; letter-spacing: .07em; }
.card-no { color: #44535f; font: 700 23px var(--display); }
.weapon { margin: 14px 0; padding: 9px 11px; color: #c0ccd5; background: rgba(109,139,157,.08); border-left: 2px solid var(--accent); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.stat { min-width: 0; }
.stat-head { display: flex; justify-content: space-between; color: #71828f; font: 600 9px var(--display); letter-spacing: .04em; }
.stat-head b { color: #c8d3db; }
.stat-bar { height: 3px; background: #1d2933; margin-top: 5px; overflow: hidden; }
.stat-bar i { display: block; width: var(--value); height: 100%; background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.detail-hint { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; color: #647684; font-size: 10px; letter-spacing: .08em; }
.detail-hint i { width: 28px; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.empty-state { padding: 90px 20px; color: var(--muted); border: 1px dashed var(--line); text-align: center; margin-bottom: 70px; }

footer { width: min(1440px, calc(100% - 40px)); margin: 0 auto; min-height: 84px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #4f5e69; font: 600 10px var(--display); letter-spacing: .15em; }

.modal-shell { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal-shell[hidden], .draw-overlay[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,5,8,.88); backdrop-filter: blur(12px); animation: fadeIn .2s ease; }
.modal-panel { width: min(1050px, 100%); max-height: min(780px, calc(100vh - 48px)); overflow: auto; position: relative; background: #0b121b; border: 1px solid #314553; box-shadow: 0 30px 90px #000; clip-path: polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px); animation: modalIn .28s cubic-bezier(.2,.8,.2,1); }
.modal-close { position: absolute; right: 16px; top: 14px; z-index: 3; width: 38px; height: 38px; border: 1px solid #405361; background: rgba(7,12,18,.8); color: #b6c3cd; font-size: 25px; cursor: pointer; }
.modal-detail { --accent: #55e7ff; --glow: rgba(85,231,255,.3); display: grid; grid-template-columns: minmax(350px, .94fr) 1.06fr; min-height: 600px; }
.modal-visual { position: relative; min-height: 600px; overflow: hidden; background: radial-gradient(circle at 50% 50%, var(--glow), transparent 42%), linear-gradient(160deg, #111c29, #070b10); border-right: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.modal-visual::after { content: attr(data-code); position: absolute; left: 18px; bottom: 8px; color: color-mix(in srgb, var(--accent) 25%, transparent); font: 800 100px var(--display); }
.modal-visual .mecha-svg { position: absolute; z-index: 1; inset: 2% 0 0; height: 96%; }
.turntable { position: absolute; inset: 0; z-index: 2; overflow: hidden; touch-action: none; cursor: grab; outline: none; background: radial-gradient(circle at 50% 48%, var(--glow), transparent 48%), #05080c; }
.turntable.dragging { cursor: grabbing; }
.turntable::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.turntable:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.turntable-image { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 24px #000); transition: opacity .12s ease; }
.turntable-scan { position: absolute; z-index: 3; inset: 10% 8%; pointer-events: none; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); clip-path: polygon(0 0,18% 0,18% 1px,1px 1px,1px 18%,0 18%,0 82%,1px 82%,1px calc(100% - 1px),18% calc(100% - 1px),18% 100%,0 100%,100% 100%,82% 100%,82% calc(100% - 1px),calc(100% - 1px) calc(100% - 1px),calc(100% - 1px) 82%,100% 82%,100% 18%,calc(100% - 1px) 18%,calc(100% - 1px) 1px,82% 1px,82% 0); }
.turntable-topline { position: absolute; z-index: 4; left: 18px; right: 18px; top: 18px; display: flex; justify-content: space-between; color: #8da0ae; font: 600 9px var(--display); letter-spacing: .14em; pointer-events: none; }
.turntable-topline span { color: var(--accent); }
.turntable-topline i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.turntable-hint { position: absolute; z-index: 5; left: 50%; bottom: 77px; transform: translateX(-50%); padding: 6px 12px; color: #aebcc6; background: rgba(2,6,9,.68); border: 1px solid rgba(180,210,226,.16); font-size: 10px; white-space: nowrap; pointer-events: none; opacity: .9; }
.turntable-controls { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px; background: rgba(4,9,14,.78); border: 1px solid rgba(181,212,228,.18); backdrop-filter: blur(8px); }
.turntable-controls button { width: 34px; height: 32px; border: 1px solid color-mix(in srgb, var(--accent) 38%, #31414c); background: #0a131c; color: var(--accent); font-size: 25px; line-height: 1; cursor: pointer; }
.turntable-controls button:hover { background: var(--accent); color: #061018; }
.view-track { min-width: 116px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; align-items: center; }
.view-track i { width: 7px; height: 3px; background: #3c4d59; transition: .2s; }
.view-track i.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: scaleY(1.8); }
.view-name { grid-column: 1 / -1; margin-top: 2px; color: #aebdc7; text-align: center; font: 600 9px var(--display); letter-spacing: .12em; }
.modal-info { padding: 54px 48px 42px; }
.modal-index { color: var(--accent); font: 600 11px var(--display); letter-spacing: .26em; }
.modal-info h2 { margin: 8px 0 3px; font: 800 42px var(--display); letter-spacing: .06em; }
.modal-subtitle { margin: 0 0 22px; color: #778b99; font-size: 12px; }
.modal-badges { display: flex; gap: 8px; margin-bottom: 24px; }
.modal-badges span { border: 1px solid color-mix(in srgb, var(--accent) 45%, #293743); padding: 6px 10px; color: #b9c8d2; font-size: 11px; }
.modal-intro { color: #a2b0ba; font-size: 13px; line-height: 1.85; padding: 15px 0 18px; margin: 0 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-bottom: 25px; }
.modal-stat { display: grid; grid-template-columns: 52px 1fr 28px; align-items: center; gap: 9px; color: #748694; font: 600 11px var(--display); }
.modal-stat b { color: #dce8f0; text-align: right; }
.modal-stat .stat-bar { margin: 0; height: 5px; }
.spec-block { margin-top: 16px; }
.spec-block label { display: block; color: #61717d; font: 600 10px var(--display); letter-spacing: .18em; margin-bottom: 5px; }
.spec-block strong { font-size: 15px; letter-spacing: .04em; }
.spec-block.skill strong { color: var(--accent); }
.modal-battle-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 13px 16px; color: #071018; background: var(--accent); text-decoration: none; clip-path: polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px); }
.modal-battle-button span { font-weight: 900; }
.modal-battle-button small { font: 700 10px var(--display); letter-spacing: .12em; opacity: .65; }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.draw-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; text-align: center; background: rgba(2,7,11,.9); overflow: hidden; }
.draw-overlay::before, .draw-overlay::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(74,223,255,.08) 9px 10px); animation: scanMove .4s linear infinite; }
.draw-overlay::after { inset: 50% 0 auto; height: 2px; background: #6af1ff; box-shadow: 0 0 22px #6af1ff; animation: scanLine 1.1s ease-in-out infinite; }
.draw-overlay p, .draw-overlay h2 { position: relative; z-index: 2; }
.draw-overlay p { color: var(--cyan); font: 600 12px var(--display); letter-spacing: .35em; }
.draw-overlay h2 { margin: 4px; font: 800 46px var(--display); letter-spacing: .1em; }
.scan-burst { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; border: 1px solid var(--cyan); border-radius: 50%; transform: translate(-50%,-50%); animation: burst 1.2s ease-out infinite; }
@keyframes scanMove { to { transform: translateY(10px); } }
@keyframes scanLine { 0%,100% { transform: translateY(-35vh); } 50% { transform: translateY(35vh); } }
@keyframes burst { to { width: 700px; height: 700px; opacity: 0; } }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: start; flex-direction: column; }
  .control-deck { flex-wrap: wrap; }
  .filters { order: 3; flex-basis: 100%; }
  .control-deck { position: relative; top: auto; }
}

@media (max-width: 720px) {
  main, footer { width: min(100% - 24px, 1440px); }
  .topbar { height: 62px; padding: 0 14px; }
  .system-state span { display: none; }
  .system-state { font-size: 10px; }
  .top-actions { gap: 8px; }
  .battle-link { padding: 8px 10px; }
  .battle-link small { display: none; }
  .brand b { font-size: 15px; }
  .brand small { display: none; }
  .hero { min-height: 0; padding: 48px 2px 32px; gap: 28px; }
  .hero h1 { font-size: clamp(43px, 13.4vw, 68px); }
  .hero-desc { font-size: 13px; }
  .hero-readout { width: 100%; }
  .hero-readout div { flex: 1; min-width: 0; padding: 14px 12px; }
  .hero-readout strong { font-size: 28px; }
  .hero-readout span { font-size: 9px; }
  .control-deck { padding: 12px; gap: 10px; }
  .control-label { display: none; }
  .sort-control { flex: 1; }
  .sort-control select { width: 100%; }
  .draw-button { min-width: 128px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-visual { height: min(104vw, 390px); }
  .archive-head { margin-top: 38px; }
  .modal-shell { padding: 0; }
  .modal-panel { max-height: 100vh; height: 100%; clip-path: none; }
  .modal-detail { display: block; }
  .modal-visual { min-height: 390px; height: 46vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-info { padding: 34px 22px 38px; }
  .modal-info h2 { font-size: 34px; }
  .modal-stats { grid-template-columns: 1fr; }
  footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
}

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