@charset "UTF-8";

:root {
  --ink: #0b0c0e;
  --charcoal: #17191d;
  --paper: #eee9dc;
  --paper-deep: #d8d0bd;
  --muted: #8e897e;
  --red: #c8382b;
  --red-bright: #ef4c38;
  --gold: #cba45f;
  --white: #fffdf6;
  --enemy: #971f1d;
  --shadow: 0 34px 90px rgba(0, 0, 0, .32);
  --ease-cut: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 8%, rgba(200, 56, 43, .11), transparent 25rem),
    linear-gradient(145deg, #101216, #08090b 68%);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .045;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.38); color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.45rem;
  transform: rotate(-3deg);
}
.brand strong { display: block; letter-spacing: .12em; font-family: "Yu Mincho", serif; font-size: 1rem; }
.brand small { display: block; margin-top: -3px; color: var(--muted); font: 600 .56rem/1.2 Arial, sans-serif; letter-spacing: .25em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .text-button {
  color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
}
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; }
.icon-button svg { width: 19px; fill: currentColor; }
.icon-button .sound-off { display: none; }
.icon-button[aria-pressed="false"] .sound-on { display: none; }
.icon-button[aria-pressed="false"] .sound-off { display: block; }
.text-button { min-height: 42px; padding: 0 17px; font-size: .82rem; letter-spacing: .08em; }
.icon-button:hover, .text-button:hover { border-color: var(--gold); color: var(--gold); }

.hero-copy { padding: 64px 0 42px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 0 0 14px; color: var(--gold); font: 700 .64rem/1 Arial, sans-serif; letter-spacing: .35em; }
.eyebrow span { width: 35px; height: 1px; background: var(--gold); }
.hero-copy h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: 1.14; letter-spacing: .07em; }
.hero-copy h1 span, .hero-copy h1 em { display: inline-block; }
.hero-copy h1 em { color: var(--red-bright); font-style: normal; }
.hero-copy > p:last-child { margin: 17px 0 0; color: #aaa59a; font-size: clamp(.85rem, 2vw, 1rem); }

.game-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.17); background: #14161a; box-shadow: var(--shadow); }
.card-accent { position: absolute; z-index: 4; top: 0; left: 0; width: 82px; height: 4px; background: var(--red); }
.hud { min-height: 80px; display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hud-block { display: flex; align-items: baseline; gap: 10px; }
.hud-block strong { font: 300 2rem/1 Arial, sans-serif; letter-spacing: -.05em; }
.hud-label { color: #817d75; font: 700 .58rem/1 Arial, sans-serif; letter-spacing: .2em; }
.opponent-heading { text-align: center; }
.opponent-heading span { display: block; margin-bottom: 2px; color: var(--red-bright); font-size: .69rem; letter-spacing: .14em; }
.opponent-heading strong { font-family: "Yu Mincho", serif; font-size: 1.08rem; letter-spacing: .1em; }
.hud-block--right { justify-content: flex-end; }
.life { display: flex; gap: 6px; }
.life span { width: 15px; height: 15px; background: var(--red); clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%); transition: .3s ease; }
.life span.lost { background: #3e4045; transform: scale(.72); }

.arena { position: relative; min-height: 420px; overflow: hidden; isolation: isolate; background: linear-gradient(#c9bfa7 0 64%, #6c6254 64%); }
.arena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,19,20,.42), transparent 28%, transparent 72%, rgba(18,19,20,.42)); }
.sun { position: absolute; top: 54px; left: 50%; width: 154px; height: 154px; border-radius: 50%; background: #ae3b2d; transform: translateX(-50%); opacity: .88; box-shadow: 0 0 45px rgba(174,59,45,.15); }
.mountain { position: absolute; left: 0; right: 0; bottom: 35%; height: 43%; transform-origin: bottom; }
.mountain--back { background: rgba(70,69,65,.35); clip-path: polygon(0 84%, 10% 70%, 19% 77%, 28% 52%, 37% 70%, 50% 36%, 63% 67%, 74% 50%, 85% 74%, 100% 53%, 100% 100%, 0 100%); }
.mountain--front { background: rgba(37,39,38,.58); clip-path: polygon(0 78%, 13% 56%, 23% 80%, 38% 60%, 53% 85%, 66% 57%, 78% 79%, 90% 61%, 100% 73%, 100% 100%, 0 100%); }
.shoji { position: absolute; z-index: 1; top: 0; bottom: 0; width: 15%; background-color: rgba(24,25,27,.95); background-image: linear-gradient(90deg, transparent 90%, rgba(203,164,95,.22) 91%), linear-gradient(0deg, transparent 91%, rgba(203,164,95,.18) 92%); background-size: 38px 100%, 100% 62px; border-inline: 8px solid #0e0f11; }
.shoji--left { left: 0; }
.shoji--right { right: 0; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 37%; background: repeating-linear-gradient(90deg, transparent 0 9.8%, rgba(255,255,255,.055) 10%), repeating-linear-gradient(0deg, transparent 0 32px, rgba(0,0,0,.12) 33px); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.status-ribbon { position: absolute; z-index: 8; top: 18px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 7px 13px; color: #ded8cb; border: 1px solid rgba(0,0,0,.18); background: rgba(20,22,24,.72); backdrop-filter: blur(8px); transform: translateX(-50%); font-size: .72rem; letter-spacing: .1em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.fighter { position: absolute; z-index: 5; bottom: 28px; width: 260px; height: 320px; transition: transform .5s var(--ease-cut), filter .35s ease; }
.fighter--player { left: 13%; }
.fighter--enemy { right: 13%; transform: scaleX(-1); }
.fighter--enemy .fighter-label { transform: scaleX(-1); }
.fighter-shadow { position: absolute; left: 8%; right: 16%; bottom: 2px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.34); filter: blur(7px); }

/*
 * The fighter is an articulated inline SVG rather than independent CSS bars.
 * At rest, the left hand closes the scabbard mouth and the right hand rests on
 * the hilt. The blade belongs only to .drawn-rig and is never painted at rest.
 */
.samurai {
  --robe-main: #24272c;
  --robe-dark: #111316;
  --robe-light: #34373d;
  --skin: #a97956;
  --eye: var(--red-bright);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 7px rgba(0,0,0,.18));
}
.samurai--enemy {
  --robe-main: var(--enemy);
  --robe-dark: #241315;
  --robe-light: #b44338;
  --skin: #986849;
  --eye: var(--gold);
}
.samurai .leg--rear { fill: var(--robe-dark, #111316); }
.samurai .leg--front { fill: var(--robe-main, #24272c); }
.samurai .foot { fill: #0e1012; }
.samurai .foot--front { fill: #17191c; }
.samurai .scabbard { fill: none; stroke: #17130f; stroke-width: 15; stroke-linecap: round; }
.samurai .scabbard-rim { fill: none; stroke: var(--gold, #cba45f); stroke-width: 5; stroke-linecap: round; }
.samurai .scabbard-tip { fill: none; stroke: var(--gold, #cba45f); stroke-width: 4; stroke-linecap: round; }
.samurai .torso { fill: var(--robe-main, #24272c); stroke: rgba(255,255,255,.07); stroke-width: 2; }
.samurai .lapel { fill: none; stroke: var(--robe-light, #34373d); stroke-width: 5; stroke-linecap: round; opacity: .72; }
.samurai .obi { fill: var(--robe-dark, #111316); stroke: var(--gold, #cba45f); stroke-width: 2; }
.samurai .neck, .samurai .face { fill: var(--skin, #a97956); }
.samurai .hair, .samurai .topknot { fill: #101113; }
.samurai .headband { fill: var(--robe-dark, #111316); }
.samurai .eye { fill: none; stroke: var(--eye, #ef4c38); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--eye, #ef4c38)); }
.samurai .arm-line { fill: none; stroke: var(--robe-main, #24272c); stroke-width: 23; stroke-linecap: round; stroke-linejoin: round; }
.samurai .arm-line--saya { stroke: var(--robe-dark, #111316); stroke-width: 21; }
.samurai .sleeve-cuff { fill: none; stroke: var(--robe-light, #34373d); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.samurai .blade { fill: #d9d8d0; stroke: #6d7073; stroke-width: 1.5; }
.samurai .blade-light { fill: none; stroke: rgba(255,255,255,.86); stroke-width: 2; stroke-linecap: round; }
.samurai .guard { fill: var(--gold, #cba45f); stroke: #33291c; stroke-width: 2; }
.samurai .grip { fill: none; stroke: #171411; stroke-width: 14; stroke-linecap: round; }
.samurai .grip-wrap { fill: none; stroke: var(--gold, #cba45f); stroke-width: 2.5; stroke-linecap: round; }
.samurai .hand { fill: var(--skin, #a97956); stroke: #4b3125; stroke-width: 1.5; }
.samurai .saya-hand-rig { position: relative; z-index: 3; }
.samurai .sheathed-rig { opacity: 1; visibility: visible; transition: opacity .06s linear; }
.samurai .drawn-rig {
  opacity: 0;
  visibility: hidden;
  transform: translate(-38px, 26px) rotate(17deg);
  transform-box: view-box;
  transform-origin: 137px 115px;
}
.fighter-label { position: absolute; bottom: 4px; left: 50%; z-index: 9; padding: 4px 10px; color: rgba(255,255,255,.62); background: rgba(12,13,14,.68); transform: translateX(-50%); font: 700 .55rem/1 Arial, sans-serif; letter-spacing: .2em; }
.versus { position: absolute; z-index: 6; left: 50%; bottom: 125px; width: 45px; height: 45px; display: grid; place-items: center; color: #dbd4c5; border: 1px solid rgba(255,255,255,.35); background: rgba(18,20,21,.78); transform: translateX(-50%) rotate(45deg); }
.versus span { transform: rotate(-45deg); font-family: "Yu Mincho", serif; }
.cue { position: absolute; z-index: 12; inset: 0; display: grid; place-content: center; text-align: center; color: var(--white); background: rgba(184,43,31,.85); opacity: 0; transform: scale(1.12); pointer-events: none; }
.cue small { font: 700 .75rem/1 Arial, sans-serif; letter-spacing: .55em; }
.cue strong { font: 900 clamp(4.5rem, 12vw, 8rem)/1 "Yu Mincho", serif; letter-spacing: .08em; text-shadow: 0 8px 25px rgba(0,0,0,.26); }
.slash { position: absolute; z-index: 14; top: 48%; left: -15%; width: 130%; height: 8px; background: white; box-shadow: 0 0 13px 5px rgba(255,255,255,.85); opacity: 0; transform: rotate(-10deg) scaleX(0); transform-origin: 15% center; }
.ink-burst { position: absolute; z-index: 13; top: 45%; left: 50%; width: 330px; height: 170px; opacity: 0; transform: translate(-50%,-50%) rotate(-8deg); background: radial-gradient(ellipse at center, rgba(8,9,10,.9) 0 35%, transparent 37%), radial-gradient(circle at 8% 37%, #0b0c0d 0 3%, transparent 4%), radial-gradient(circle at 91% 25%, #0b0c0d 0 2.5%, transparent 3.5%), radial-gradient(circle at 82% 83%, #0b0c0d 0 2%, transparent 3%); filter: blur(.2px); }
.speed-lines { position: absolute; z-index: 4; inset: 0; opacity: 0; background: repeating-linear-gradient(170deg, transparent 0 20px, rgba(255,255,255,.19) 21px, transparent 22px 42px); }

.arena.state-waiting .status-dot { background: var(--red); animation: pulse 1s infinite; }
.arena.state-waiting .fighter--player { transform: translateX(8px); }
.arena.state-waiting .fighter--enemy { transform: scaleX(-1) translateX(8px); }
.arena.state-ready .cue { animation: cueFlash .38s var(--ease-cut) forwards; }
.arena.state-ready .speed-lines { opacity: .28; animation: rush .22s linear infinite; }
.arena.state-ready .status-dot { background: #fff; box-shadow: 0 0 12px #fff; }
.arena.state-ready .fighter--enemy .sheathed-rig { opacity: 0; visibility: hidden; }
.arena.state-ready .fighter--enemy .drawn-rig {
  visibility: visible;
  animation: unsheatheThreat .3s var(--ease-cut) forwards;
}
.arena.state-strike .slash { animation: slash .34s var(--ease-cut) forwards; }
.arena.state-strike .ink-burst { animation: ink .8s ease-out forwards; }
.arena.player-wins .fighter--player .sheathed-rig,
.arena.player-loses .fighter--enemy .sheathed-rig { opacity: 0; visibility: hidden; }
.arena.player-wins .fighter--player .drawn-rig,
.arena.player-loses .fighter--enemy .drawn-rig {
  visibility: visible;
  animation: drawCut .48s var(--ease-cut) forwards;
}
.arena.player-wins .fighter--player .samurai { animation: attackerLunge .48s var(--ease-cut); }
.arena.player-wins .fighter--enemy { animation: hitEnemy .65s ease-out; filter: grayscale(.7); }
.arena.player-loses .fighter--enemy .samurai { animation: attackerLunge .48s var(--ease-cut); }
.arena.player-loses .fighter--player { animation: hitPlayer .65s ease-out; filter: grayscale(.8); }

.battle-panel { padding: 24px 32px 30px; background: linear-gradient(180deg, #17191d, #101216); }
.enemy-timer { max-width: 760px; margin: 0 auto; }
.timer-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: #9a968e; font-size: .75rem; }
.timer-meta strong { color: var(--paper); font: 400 .8rem/1 Arial, sans-serif; }
.gauge { position: relative; height: 14px; overflow: hidden; background: #33363b; border: 1px solid rgba(255,255,255,.07); }
.gauge-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #e45a41, var(--red)); transform-origin: left; will-change: width; box-shadow: 0 0 14px rgba(200,56,43,.4); }
.gauge i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.32); }
.gauge i:nth-of-type(1) { left: 20%; } .gauge i:nth-of-type(2) { left: 40%; } .gauge i:nth-of-type(3) { left: 60%; } .gauge i:nth-of-type(4) { left: 80%; }
.message-area { min-height: 79px; padding: 19px 0 13px; text-align: center; }
.message-area p { margin: 0; font-family: "Yu Mincho", serif; font-size: 1.22rem; font-weight: 700; letter-spacing: .06em; }
.message-area span { color: #74716a; font-size: .7rem; letter-spacing: .08em; }
.draw-button { position: relative; width: min(460px, 100%); min-height: 74px; display: grid; place-content: center; margin: 0 auto; overflow: hidden; color: white; border: 0; background: var(--red); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.draw-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0 42%, rgba(255,255,255,.14) 50%, transparent 58%); transform: translateX(-120%); }
.draw-button:hover { background: #dd4031; }
.draw-button:hover::before { animation: sheen .7s ease; }
.draw-button:active { transform: scale(.985); }
.draw-button strong { font-family: "Yu Mincho", serif; font-size: 1.35rem; letter-spacing: .15em; }
.button-kicker { color: rgba(255,255,255,.68); font: 700 .55rem/1.5 Arial, sans-serif; letter-spacing: .27em; }
.button-key { position: absolute; right: 16px; top: 50%; padding: 4px 7px; color: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.32); transform: translateY(-50%); font: 600 .5rem/1 Arial, sans-serif; letter-spacing: .12em; }

.record-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 100px; border: 1px solid rgba(255,255,255,.11); }
.record-strip article { min-height: 91px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; }
.record-strip article + article { border-left: 1px solid rgba(255,255,255,.11); }
.record-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(203,164,95,.35); font-family: "Yu Mincho", serif; }
.record-strip small { display: block; margin-bottom: 1px; color: #676963; font: 700 .52rem/1.4 Arial, sans-serif; letter-spacing: .2em; }
.record-strip strong { font: 300 1.3rem/1 Arial, sans-serif; }
.record-strip em { color: #8a867e; font: normal .68rem/1 sans-serif; }
.features { padding-bottom: 105px; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading p { margin: 0 0 5px; color: var(--red-bright); font-size: .68rem; letter-spacing: .25em; }
.section-heading h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: .08em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { position: relative; min-height: 210px; padding: 31px 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.feature-grid article > span { position: absolute; top: -28px; right: 8px; color: rgba(255,255,255,.035); font: 700 8rem/1 "Yu Mincho", serif; }
.feature-grid h3 { margin: 0 0 13px; color: var(--gold); font: 500 2rem/1 "Yu Mincho", serif; }
.feature-grid p { margin: 0; color: #918e87; font-size: .86rem; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #77746e; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
footer span { color: #b3afa6; font-family: "Yu Mincho", serif; letter-spacing: .08em; }

.modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .25s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(500px, 100%); padding: 38px; color: #191a1c; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.5); transform: translateY(20px); transition: .3s var(--ease-cut); }
.modal.is-open .modal-card { transform: translateY(0); }
.modal-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; }
.modal-kicker { margin: 0; color: var(--red); font: 700 .58rem/1 Arial, sans-serif; letter-spacing: .25em; }
.modal h2 { margin: 7px 0 23px; font: 600 2rem/1.2 "Yu Mincho", serif; }
.modal ol { margin: 0 0 28px; padding: 0; list-style: none; }
.modal li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid #c9c1b0; }
.modal li > span { color: var(--red); font: 700 .72rem/1.8 Arial, sans-serif; }
.modal li strong { display: block; font-size: .93rem; }
.modal li p { margin: 3px 0 0; color: #6c685f; font-size: .78rem; }
.modal-primary { width: 100%; min-height: 49px; color: white; border: 0; background: #17191c; cursor: pointer; }
body.modal-open { overflow: hidden; }
noscript { position: fixed; z-index: 50; inset: auto 0 0; padding: 15px; color: white; background: var(--red); text-align: center; }

@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@keyframes cueFlash { 0% { opacity: 0; transform: scale(1.2); } 16% { opacity: 1; transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }
@keyframes rush { to { background-position: 42px 0; } }
@keyframes slash { 0% { opacity: 0; transform: rotate(-10deg) scaleX(0); } 25% { opacity: 1; } 72% { opacity: 1; transform: rotate(-10deg) scaleX(1); } 100% { opacity: 0; transform: rotate(-10deg) scaleX(1); } }
@keyframes ink { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(.5); } 25% { opacity: .94; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(1.18); } }
@keyframes attackerLunge { 0% { transform: translate(0,0) rotate(0); } 38% { transform: translate(23px,-4px) rotate(-3deg); } 100% { transform: translate(0,0) rotate(0); } }
@keyframes hitEnemy { 45% { transform: scaleX(-1) translateX(-23px) rotate(-5deg); } }
@keyframes hitPlayer { 45% { transform: translateX(-23px) rotate(5deg); } }
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes unsheatheThreat {
  0% { opacity: 0; transform: translate(-38px, 26px) rotate(17deg); }
  38% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0); }
}
@keyframes drawCut {
  0% { opacity: 0; transform: translate(-46px, 28px) rotate(20deg); }
  24% { opacity: 1; }
  68% { opacity: 1; transform: translate(13px, -8px) rotate(-8deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@media (max-width: 800px) {
  .page-shell { width: min(100% - 22px, 680px); }
  .topbar { height: 74px; }
  .hero-copy { padding: 47px 0 33px; }
  .hud { grid-template-columns: 75px 1fr 75px; padding: 0 14px; }
  .hud-block { gap: 6px; }
  .hud-block strong { font-size: 1.5rem; }
  .opponent-heading strong { font-size: .9rem; }
  .arena { min-height: 360px; }
  .shoji { width: 8%; }
  .fighter { bottom: 24px; transform: scale(.82); transform-origin: bottom center; }
  .fighter--player { left: 5%; }
  .fighter--enemy { right: 5%; transform: scaleX(-1) scale(.82); }
  .arena.state-waiting .fighter--player { transform: scale(.82) translateX(8px); }
  .arena.state-waiting .fighter--enemy { transform: scaleX(-1) scale(.82) translateX(8px); }
  .versus { bottom: 103px; }
  .battle-panel { padding-inline: 19px; }
  .record-strip { grid-template-columns: 1fr; }
  .record-strip article { justify-content: flex-start; padding-left: calc(50% - 85px); }
  .record-strip article + article { border-left: 0; border-top: 1px solid rgba(255,255,255,.11); }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand strong { font-size: .87rem; }
  .brand-mark { width: 38px; height: 38px; }
  .text-button { padding: 0 11px; }
  .hero-copy h1 span, .hero-copy h1 em { display: block; }
  .hero-copy > p:last-child { padding: 0 18px; }
  .hud { min-height: 73px; grid-template-columns: 60px 1fr 60px; }
  .hud-label { display: none; }
  .life { gap: 3px; }
  .life span { width: 11px; height: 11px; }
  .opponent-heading strong { font-size: .79rem; letter-spacing: .04em; }
  .arena { min-height: 315px; }
  .sun { top: 53px; width: 118px; height: 118px; }
  .fighter { bottom: 7px; transform: scale(.66); }
  .fighter--player { left: -12px; }
  .fighter--enemy { right: -12px; transform: scaleX(-1) scale(.66); }
  .arena.state-waiting .fighter--player { transform: scale(.66) translateX(8px); }
  .arena.state-waiting .fighter--enemy { transform: scaleX(-1) scale(.66) translateX(8px); }
  .versus { bottom: 86px; width: 38px; height: 38px; }
  .status-ribbon { white-space: nowrap; }
  .button-key { display: none; }
  .record-strip { margin-bottom: 72px; }
  footer { display: grid; align-content: center; gap: 4px; text-align: center; }
  .modal-card { padding: 32px 25px 25px; }
}

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