@property --glow { syntax: '<color>'; inherits: true; initial-value: #f2b632; }
:root {
  --p1: #e8323c; --p1-deep: #8f0f1b; --gold: #ffd35a; --ink: #f4f6ff; --dim: #aab3de; --night: #060818;
  --glow: #f2b632; --ui: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif; --display: "Kanit", "Arial Black", system-ui, sans-serif;
  --top: 64px; --gutter: clamp(16px, 2.4vw, 36px);
  color-scheme: dark;
  transition: --glow .5s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--night); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ SELECT SCREEN ============ */
#select { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: var(--top) minmax(0, 1fr); overflow: hidden; }
@media (hover: hover) and (pointer: fine) { #select, #select button { cursor: url(art/cursor.png) 4 1, pointer; } }
.bg { position: absolute; inset: -2%; background: #060818 url(art/world.webp) 38% 70% / cover no-repeat; z-index: 0; animation: drift 38s ease-in-out infinite alternate; }
.bg::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(42% 52% at 23% 58%, color-mix(in srgb, var(--glow) 62%, transparent) 0%, color-mix(in srgb, var(--glow) 22%, transparent) 55%, transparent 80%),
    radial-gradient(90% 60% at 80% 10%, color-mix(in srgb, var(--glow) 16%, transparent) 0%, transparent 70%);
  mix-blend-mode: screen; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,20,0) 38%, rgba(4,6,20,.55) 58%, rgba(4,6,20,.72) 100%), linear-gradient(0deg, rgba(4,6,20,.65), rgba(4,6,20,0) 30%); }
@keyframes drift { to { transform: translate3d(1.2%, -1%, 0) scale(1.02); } }
#spark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.top { position: relative; z-index: 5; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font: italic 800 clamp(15px, 1.35vw, 19px)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6); transition: color .15s ease; }
.brand:hover { color: var(--gold); }
.brand:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }
.brand::before { content: ""; width: 30px; height: 18px; background: linear-gradient(180deg, #ff6069, var(--p1)); transform: skewX(-18deg); box-shadow: 0 2px 0 var(--p1-deep), inset 0 1px 0 rgba(255,255,255,.5); border-radius: 3px; }
.snd { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,10,30,.55); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 2px 0 rgba(0,0,0,.5); }
.snd svg { width: 22px; height: 22px; }
.snd .x { display: none; } .snd[aria-pressed="false"] .x { display: block; } .snd[aria-pressed="false"] .w { display: none; }
.snd:focus-visible, .tile:focus-visible, .cbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the fighter on its trophy stand */
.hero { position: relative; z-index: 2; grid-column: 1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.stagebox { position: relative; min-height: 0; }
.emblem { position: absolute; left: 50%; top: 45%; width: min(94%, 62vh); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .28; object-fit: contain; pointer-events: none; }
.emblem.pop { animation: empop .5s cubic-bezier(.2,.9,.2,1.2); }
@keyframes empop { from { transform: translate(-50%, -50%) scale(.84) rotate(-6deg); opacity: 0; } }
.cone { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 92%; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 100%, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.ped { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: var(--pw); z-index: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.ped img { width: 100%; }
.ped::after { content: ""; position: absolute; left: 8%; right: 8%; top: 4%; height: 50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent); mix-blend-mode: screen; }
.shadow { position: absolute; left: 50%; z-index: 2; width: calc(var(--pw) * .5); height: calc(var(--pw) * .09); transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); bottom: var(--feet); }
.fighter { position: absolute; left: 50%; z-index: 3; bottom: var(--feet); transform: translateX(-50%); transform-origin: 50% 100%; pointer-events: none; }
.fighter img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)) drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.fighter.in { animation: fin .38s cubic-bezier(.16,.9,.25,1.12) both; }
.fighter.out { animation: fout .16s ease-in both; }
.fighter.idle img { animation: breathe 2.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.fighter.flash img { animation: flash .5s ease-out; }
@keyframes fin { from { opacity: 0; transform: translateX(calc(-50% + 70px)) scale(.94); filter: brightness(2.2); } to { opacity: 1; transform: translateX(-50%) scale(1); filter: brightness(1); } }
@keyframes fout { to { opacity: 0; transform: translateX(calc(-50% - 50px)) scale(.97); } }
@keyframes breathe { to { transform: translateY(-.6%) scaleY(1.008); } }
@keyframes flash { 0% { filter: brightness(3.5) saturate(0); } 100% { filter: brightness(1); } }

.plate { position: relative; z-index: 4; min-width: 0; padding: 0 var(--gutter) clamp(14px, 2.4vh, 26px); }
.nameband { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding: 6px 18px 6px 10px; margin-left: -6px; }
.nameband::before { content: ""; position: absolute; inset: 0; transform: skewX(-12deg); border-radius: 6px; background: linear-gradient(180deg, #ff5a63 0%, var(--p1) 46%, #b61624 100%); box-shadow: 0 4px 0 var(--p1-deep), 0 10px 24px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.35); }
.nameband::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; transform: skewX(-12deg); border-radius: 6px 6px 40% 40% / 6px 6px 12px 12px; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); pointer-events: none; }
.p1 { position: relative; z-index: 1; flex: none; font: italic 900 16px/1 var(--display); color: var(--p1); background: #fff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; box-shadow: inset 0 -3px 0 #d9dcef, 0 2px 0 rgba(0,0,0,.35); }
.nm { position: relative; z-index: 1; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; font: italic 900 var(--fs, clamp(40px, 4.3vw, 86px))/1.02 var(--display); letter-spacing: .005em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(90,0,10,.55), 0 0 18px rgba(255,255,255,.18); padding: 2px 4px 0; }
.nm.slam { animation: slam .32s cubic-bezier(.2,.9,.2,1.3); }
@keyframes slam { from { transform: scale(1.35) translateX(-10px); opacity: 0; } }
.sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 12px 4px 0; min-height: 1.2em; }
.client { font: 800 13px/1.2 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.quote { margin: 6px 4px 0; max-width: 46ch; min-height: 2.7em; font: 700 clamp(15px, 1.25vw, 18px)/1.35 var(--ui); color: #fff; text-wrap: balance; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.c-head .quote { min-height: 0; }
.quote cite { display: inline-block; margin-left: 8px; font: 700 12px/1.3 var(--ui); font-style: normal; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }

/* the roster */
.side { position: relative; z-index: 3; grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.6vh, 28px); padding: 0 var(--gutter) clamp(16px, 3vh, 30px) 0; min-height: 0; }
.grid { display: flex; flex-direction: column; align-items: center; gap: var(--gap, 10px); }
.row { display: flex; gap: var(--gap, 10px); }
.tile { --c: #888; position: relative; width: var(--tw, 96px); aspect-ratio: 1 / 1.08; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--c) 62%, #0b1030) 0%, color-mix(in srgb, var(--c) 18%, #080b22) 58%, #060818 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), inset 0 -24px 26px -18px rgba(0,0,0,.6), 0 3px 0 #02030a, 0 8px 18px rgba(0,0,0,.45);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(175deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.06) 30%, rgba(255,255,255,0) 44%); pointer-events: none; }
.tile:hover, .tile.on { transform: translateY(-3px) scale(1.06); z-index: 2; }
.tile.on { box-shadow: 0 0 0 3px var(--p1), 0 0 0 6px rgba(255,255,255,.9), 0 0 26px 6px color-mix(in srgb, var(--p1) 70%, transparent), 0 10px 22px rgba(0,0,0,.5); }
.tile.on::after { content: "P1"; position: absolute; left: 4px; top: 4px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: italic 900 11px/1 var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, #ff8a90, var(--p1) 55%, #9d1320); box-shadow: 0 2px 0 rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.6); animation: bob 1.2s ease-in-out infinite alternate; }
.tile.drop::after { animation: drop .42s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes bob { to { transform: translateY(-2px); } }
@keyframes drop { from { transform: translateY(-28px) scale(1.5); opacity: 0; } }


/* CHOOSE YOUR IDEA: the screen's title, over the roster */
.choose { position: absolute; left: 0; right: var(--gutter); top: calc(var(--top) * -1); height: var(--top); margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; pointer-events: none;
  font: italic 900 clamp(20px, 2vw, 30px)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 22px rgba(255,255,255,.18); }
.choose::before, .choose::after { content: ""; width: clamp(26px, 3vw, 54px); height: 7px; border-radius: 2px; transform: skewX(-18deg); background: linear-gradient(90deg, rgba(232,50,60,0), var(--p1)); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.choose::after { background: linear-gradient(90deg, var(--p1), rgba(232,50,60,0)); }

.wipe { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none; }
.wipe i { position: absolute; top: -20%; bottom: -20%; width: 70%; transform: skewX(-16deg) translateX(-160%); }
.wipe i:nth-child(1) { left: 0; background: #fff; }
.wipe i:nth-child(2) { left: 18%; background: var(--p1); }
.wipe i:nth-child(3) { left: 36%; background: #0a0d24; width: 90%; }
.wipe.go { display: block; }
.wipe.go i { animation: wipe .9s cubic-bezier(.7,0,.3,1) forwards; }
.wipe.go i:nth-child(2) { animation-delay: .04s; } .wipe.go i:nth-child(3) { animation-delay: .08s; }
@keyframes wipe { 0% { transform: skewX(-16deg) translateX(-160%); } 48%, 52% { transform: skewX(-16deg) translateX(0); } 100% { transform: skewX(-16deg) translateX(260%); } }

/* ============ THE FIGHTER'S STAGE: the real work ============ */
#case { position: fixed; inset: 0; z-index: 20; display: none; background: #05060f; }
#case.on { display: block; }
.c-stage { position: fixed; inset: 0; }
.c-stage img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 60%); }
.c-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,18,.1) 0%, rgba(5,6,18,.05) 30%, rgba(5,6,18,.6) 44%, rgba(5,6,18,.86) 58%, rgba(5,6,18,.92) 100%), linear-gradient(0deg, rgba(5,6,18,.45), transparent 26%); }
.c-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.c-bar { position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); pointer-events: none; }
.c-bar > * { pointer-events: auto; }
.cbtn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 6px; border-radius: 22px; background: rgba(6,8,24,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), 0 3px 0 rgba(0,0,0,.5); font: 800 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.cbtn .k { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ff8a90, var(--p1) 60%, #9d1320); font: italic 900 15px/1 var(--display); letter-spacing: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.cbtn:hover { box-shadow: inset 0 0 0 2px #fff, 0 3px 0 rgba(0,0,0,.5); }
.c-right { display: flex; align-items: center; gap: 10px; }
.c-nav { display: flex; gap: 8px; }
.c-nav .cbtn { padding: 0 6px; gap: 8px; }
.c-nav img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--c) 50%, #0b0e26); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.c-nav .nx { padding-left: 14px; } .c-nav .pv { padding-right: 14px; }
.c-hero { position: fixed; left: 0; bottom: 0; width: 42vw; height: 100%; pointer-events: none; z-index: 1; }
.c-hero .fighter { bottom: 5vh; }
.c-hero .fighter.in { animation: cin .6s cubic-bezier(.16,.9,.25,1.05) both; }
@keyframes cin { from { opacity: 0; transform: translateX(calc(-50% - 60px)); } to { opacity: 1; transform: translateX(-50%); } }
.c-hero .floor { position: absolute; left: 50%; bottom: 5vh; width: 60%; height: 36px; transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.c-main { position: relative; z-index: 2; margin-left: 44vw; width: min(52vw, 860px); padding: calc(var(--top) + 18px) 0 90px; }
.c-head { margin-bottom: 26px; }
.c-head .nameband { display: inline-flex; max-width: 100%; }
.c-head .nm { --fs: clamp(36px, 4.6vw, 70px); }
.c-desc { margin: 18px 4px 0; font: 700 clamp(16px, 1.3vw, 19px)/1.5 var(--ui); color: #e8ebff; max-width: 60ch; }

.w-sec { margin-top: 34px; }
.w-h { position: relative; display: inline-flex; align-items: center; margin: 0 0 14px 6px; padding: 7px 18px; font: italic 800 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.w-h::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-14deg); border-radius: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 88%, #fff), color-mix(in srgb, var(--glow) 70%, #000)); box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.w-h { isolation: isolate; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.w-p { margin: 0 4px 14px; font: 500 15px/1.5 var(--ui); color: var(--dim); max-width: 64ch; }
.w-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.w-films.tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.w-film { display: grid; gap: 8px; scroll-margin-top: calc(var(--top) + 20px); }
.w-frame { position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 3px 0 #02030a, 0 12px 26px rgba(0,0,0,.5); }
.w-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
button.w-frame .play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a90, var(--p1) 58%, #9d1320); box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(0,0,0,.55); transition: transform .14s ease; }
button.w-frame .play::before { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
button.w-frame:hover .play, button.w-frame:focus-visible .play { transform: translate(-50%, -50%) scale(1.12); }
button.w-frame:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.w-cap { display: flex; justify-content: space-between; gap: 10px; padding: 0 4px; font: 800 14px/1.25 var(--ui); }
.w-cap span { color: var(--dim); font-weight: 700; }
.w-imgs { display: grid; gap: 14px; margin-top: 14px; }
.w-imgs.row-2, .w-imgs.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-imgs.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-imgs.row-match { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.w-img { border-radius: 10px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.45); scroll-margin-top: calc(var(--top) + 20px); }
.w-img img { width: 100%; height: auto; }
.w-imgs.row-match .w-img img { height: 100%; object-fit: cover; }
.w-audio { list-style: none; display: grid; gap: 8px; }
.w-track { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(70px, 180px); align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 30px; background: rgba(8,10,30,.72); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); scroll-margin-top: calc(var(--top) + 20px); }
.w-track.on { box-shadow: inset 0 0 0 2px var(--glow); }
.w-ap { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a90, var(--p1) 58%, #9d1320); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); position: relative; }
.w-ap::before { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.w-track.on .w-ap::before { left: 13px; top: 12px; width: 5px; height: 16px; border: 0; background: #fff; box-shadow: 9px 0 0 #fff; }
.w-ap:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.w-at { font: 800 15px/1.2 var(--ui); }
.w-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.w-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--glow)); }
.c-credits { margin: 40px 4px 0; font: 500 13px/1.6 var(--ui); color: var(--dim); max-width: 70ch; }
.c-next { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ ABOUT: Mike's own player card, from the canonical résumé ============ */
#about { position: fixed; inset: 0; z-index: 22; display: none; background: #05060f; }
#about.on { display: block; }
#about .c-stage img { object-position: 38% 70%; filter: saturate(1.1); }
#about .c-stage::after { background: radial-gradient(90% 70% at 50% 30%, rgba(5,6,18,.55), rgba(5,6,18,.9)); }
.a-main { position: relative; z-index: 2; margin: 0 auto; width: min(100% - 2 * var(--gutter), 820px); padding: calc(var(--top) + 26px) 0 90px; }
.a-main .nameband { display: inline-flex; max-width: 100%; }
.a-main .nm { --fs: clamp(36px, 4.6vw, 70px); }
.a-role { margin: 18px 4px 0; font: 800 clamp(17px, 1.5vw, 21px)/1.3 var(--ui); color: #fff; }
.a-now { margin: 8px 4px 0; font: 800 13px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.a-bio { margin: 18px 4px 0; font: 700 clamp(16px, 1.3vw, 19px)/1.55 var(--ui); color: #e8ebff; max-width: 62ch; }
.a-where { margin: 10px 4px 0; font: 700 14px/1.4 var(--ui); color: var(--dim); }
.a-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 4px 0; }
.a-links a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 22px; background: rgba(6,8,24,.72); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 3px 0 rgba(0,0,0,.5); font: 800 14px/1 var(--ui); color: #fff; text-decoration: none; }
.a-links a:hover, .a-links a:focus-visible { box-shadow: inset 0 0 0 2px #fff, 0 3px 0 rgba(0,0,0,.5); outline: none; }
.a-hist { list-style: none; margin-top: 36px; display: grid; gap: 12px; }
.a-row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(8,10,30,.72); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.a-row time { font: italic 800 13px/1.35 var(--display); letter-spacing: .04em; color: var(--gold); }
.a-row b { display: block; font: 800 15px/1.3 var(--ui); }
.a-row p { margin-top: 4px; font: 500 14px/1.5 var(--ui); color: var(--dim); }
.fail { position: fixed; inset: auto 0 18vh; z-index: 50; text-align: center; font: 800 16px/1.4 var(--ui); color: #fff; }

/* ============ STACKED LAYOUT: phones and tall screens ============ */
@media (max-aspect-ratio: 11/10), (max-width: 760px) {
  :root { --top: 56px; }
  body { overflow: hidden; }
  #select { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) min(48svh, 470px) minmax(0, 1fr); }
  .bg { background-position: 40% 70%; }
  .bg::after { background: linear-gradient(0deg, rgba(4,6,20,.86) 42%, rgba(4,6,20,.25) 60%, rgba(4,6,20,0) 80%); }
  .hero { grid-column: 1; grid-row: 2; }
  .side { grid-column: 1; grid-row: 3; overflow-y: auto; overscroll-behavior: contain; -webkit-mask: linear-gradient(180deg, transparent 0, #000 14px); mask: linear-gradient(180deg, transparent 0, #000 14px); }
  .plate { padding-bottom: 10px; }
  .nameband { padding: 4px 12px 4px 6px; }
  .p1 { width: 30px; height: 30px; font-size: 13px; }
  .quote { font-size: 14px; margin-top: 4px; }
  .quote cite { font-size: 10.5px; }
  .sub { margin-top: 8px; }
  .client { font-size: 11px; }
  .side { padding: 14px 12px calc(120px + env(safe-area-inset-bottom)); gap: 22px; justify-content: flex-start; }
  .choose { position: static; height: auto; font-size: clamp(18px, 5.4vw, 24px); margin: 2px 0 -6px; }
  .c-stage { height: 58svh; }
  .c-stage::after { background: linear-gradient(0deg, rgba(5,6,15,1) 0%, rgba(5,6,15,0) 45%); }
  .c-hero { position: relative; width: 100%; height: 50svh; }
  .c-hero .fighter, .c-hero .floor { bottom: 3svh; }
  .c-main { margin: 0; width: auto; padding: 18px 16px 70px; background: linear-gradient(180deg, rgba(5,6,15,.88), #05060f 120px); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px rgba(0,0,0,.45); }
  .c-head .nm { --fs: clamp(28px, 8.6vw, 46px); }
  .c-desc { font-size: 15px; }
  .w-films { grid-template-columns: 1fr; }
  .w-films.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-imgs.row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-track { grid-template-columns: auto minmax(0, 1fr); }
  .w-bar { display: none; }
  .c-nav .cbtn span { display: none; }
  .a-main { padding-top: calc(var(--top) + 18px); }
  .a-main .nm { --fs: clamp(28px, 8.6vw, 46px); }
  .a-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (min-aspect-ratio: 11/10) and (max-height: 560px) and (min-width: 761px) {
  :root { --top: 48px; }
  .quote { min-height: 0; font-size: 13px; }
  .sub { margin-top: 4px; }
}
@media (max-width: 420px) {
  .w-imgs.row-2, .w-imgs.split, .w-imgs.row-match { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg { animation: none; }
}
