/* megazron.com play mode. Same tokens and faces as the classic site (css/styles.css). */
@font-face { font-family: 'Asap HUD'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/AsapCondensed-800i.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/Saira-var.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ShareTechMono-400.woff2') format('woff2'); }
:root {
  --void: #000300; --well: #021003; --well-2: #04200a; --line: #0f5a0a; --frame: #1b7a0e; --peak: #36ff12; --omni: #3dfa46;
  --text-g: #5fe646; --core: #e6ffe0; --ink: #d3ecca; --ink-dim: #8fbc85; --on-slab: #021a02; --cyan: #7ffcd5; --hazard: #ffb300; --alert: #ff4423;
  --display: 'Asap HUD', 'Arial Narrow', sans-serif; --body: 'Saira', -apple-system, 'Segoe UI', sans-serif; --hud: 'Share Tech Mono', ui-monospace, monospace;
  --ch: 14px; --chamfer: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  --slant: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  --glow: 0 0 14px rgba(54, 255, 18, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--ink); font-family: var(--body); overflow: hidden; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: var(--peak); }
button { font: inherit; }
kbd { font-family: var(--hud); border: 1px solid var(--frame); padding: 0 .35em; color: var(--core); background: var(--well-2); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--peak); color: var(--on-slab); padding: 8px 14px; font-family: var(--hud); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core); outline-offset: 3px; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; z-index: 2; }
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.scan::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }

/* ---------- gate ---------- */
#gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(2,16,3,.35), rgba(0,3,0,.88) 70%); }
.g-plate { width: min(620px, 100%); padding: clamp(20px, 4vw, 40px); background: rgba(2, 16, 3, .82); border: 2px solid var(--peak); clip-path: var(--chamfer); box-shadow: var(--glow); text-align: left; position: relative; }
.g-kicker { font-family: var(--hud); color: var(--text-g); letter-spacing: .14em; font-size: 13px; margin: 0 0 10px; }
.g-name { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--core); font-size: clamp(34px, 8vw, 64px); line-height: .92; margin: 0; text-shadow: 0 0 18px rgba(54,255,18,.55); }
.g-slab { display: inline-block; margin: 12px 0 8px; padding: 4px 22px 4px 16px; background: var(--peak); color: var(--on-slab); clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 3.4vw, 20px); }
.g-roles { color: var(--ink-dim); font-size: 15px; margin: 6px 0 20px; }
.g-start { display: block; width: 100%; padding: 16px; border: 0; background: var(--peak); color: var(--on-slab); clip-path: var(--chamfer); font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(24px, 6vw, 34px); letter-spacing: .08em; cursor: pointer; box-shadow: var(--glow); }
.g-start:disabled { background: var(--frame); color: #0a2a0c; cursor: progress; }
#gate.ready .g-start span { animation: blink 1.1s steps(2, start) infinite; }
.g-start:hover:not(:disabled), .g-start:focus-visible { background: var(--core); }
@keyframes blink { to { visibility: hidden; } }
.g-load { font-family: var(--hud); color: var(--cyan); font-size: 13px; margin: 12px 0 2px; letter-spacing: .1em; }
.g-sub { font-size: 13px; color: var(--ink-dim); margin: 0 0 16px; }
.g-classic { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .05em; color: var(--hazard); text-decoration: none; padding: 8px 0; }
.g-classic:hover { text-decoration: underline; }
.g-quick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-family: var(--hud); font-size: 13px; }
.g-quick a { color: var(--text-g); }
.g-noscript { color: var(--core); text-align: center; }

/* ---------- intro (kinetic type) ---------- */
#intro { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
#k-layer { position: absolute; inset: 0; overflow: hidden; transition: background .6s; }
.i-skip { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: auto; }
.i-skip button, .i-skip a { font-family: var(--hud); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; background: rgba(2,16,3,.85); color: var(--core); border: 1px solid var(--peak); clip-path: var(--slant); cursor: pointer; text-decoration: none; }
.i-skip a { color: var(--hazard); border-color: var(--hazard); }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes glitch { 0% { transform: translate(-30px, 0) skewX(-30deg); opacity: 0; color: var(--core); } 50% { transform: translate(6px, -4px) skewX(12deg); opacity: 1; color: var(--cyan); } 100% { transform: none; } }
@keyframes slam { 0% { transform: scale(3.2) rotate(-4deg); opacity: 0; filter: blur(8px); } 60% { opacity: 1; filter: none; } 100% { transform: none; } }
@keyframes slide { from { transform: translateX(-160%); } to { transform: translateX(-50%); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes cardin { from { transform: translate(60%, -50%) skewX(-12deg); opacity: 0; } to { transform: translateY(-50%); } }
@keyframes slide2 { from { transform: translateX(-120%) skewX(-20deg); } }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#hud > * { pointer-events: auto; }
.h-id { position: absolute; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); display: flex; gap: 10px; align-items: center; padding: 8px 18px 8px 10px; background: rgba(2,16,3,.82); border: 1px solid var(--frame); clip-path: var(--chamfer); max-width: min(420px, 60vw); }
.h-hex { width: 34px; aspect-ratio: 1 / 1.1547; background: var(--peak); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.h-kick { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; color: var(--peak); font-size: 18px; letter-spacing: .03em; }
.h-obj { margin: 0; font-family: var(--hud); font-size: 12px; color: var(--ink-dim); }
.h-right { position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); width: clamp(120px, 15vw, 180px); display: flex; flex-direction: column; gap: 6px; }
#minimap { width: 100%; aspect-ratio: 1; display: block; }
.h-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; }
.h-count div { background: rgba(2,16,3,.85); border: 1px solid var(--frame); padding: 3px 4px; text-align: center; }
.h-count dt { font-family: var(--hud); font-size: 10px; color: var(--ink-dim); text-transform: uppercase; }
.h-count dd { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; color: var(--hazard); font-size: 17px; }
.h-qlist { list-style: none; margin: 0; padding: 6px 8px; background: rgba(2,16,3,.82); border: 1px solid var(--frame); font-size: 11px; font-family: var(--hud); color: var(--ink); }
.h-qlist li { margin: 2px 0; } .h-qlist li b { color: var(--hazard); } .h-qlist li.done { color: var(--peak); text-decoration: line-through; }
.h-act { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; padding: 8px 18px; background: rgba(2,16,3,.9); border: 1px solid var(--peak); font-family: var(--hud); font-size: 14px; white-space: nowrap; }
.h-act b { color: var(--peak); }
.h-bar { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; background: rgba(2,16,3,.88); border: 1px solid var(--frame); clip-path: var(--chamfer); }
.key { display: flex; align-items: center; gap: 7px; padding: 7px 12px; background: transparent; border: 0; color: var(--ink); font-family: var(--hud); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; white-space: nowrap; }
.key i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--peak); color: var(--on-slab); font-style: normal; font-weight: 700; font-size: 13px; }
.key[aria-pressed="false"] i { background: var(--frame); }
.key:hover, .key:focus-visible { color: var(--core); background: rgba(54,255,18,.12); }
a.key { color: var(--hazard); } a.key i { background: var(--hazard); }
.t-joy, .t-btns { display: none; }
.only-touch { display: none; }
.toast { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 8; margin: 0; padding: 9px 26px 9px 20px; max-width: min(92vw, 640px); background: var(--peak); color: var(--on-slab); clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 17px; animation: slidedown .25s cubic-bezier(.2, 1.4, .4, 1) both; text-align: center; }
.toast.big { background: var(--hazard); font-size: 22px; }
@keyframes slidedown { from { transform: translate(-50%, -150%); } }

/* ---------- card / menu / help ---------- */
.card, .menu, .help { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 14px; background: rgba(0,3,0,.6); }
.c-plate, .m-plate { --c: var(--peak); position: relative; width: min(760px, 100%); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px clamp(16px, 3vw, 30px) 24px; background: rgba(2,16,3,.96); border: 2px solid var(--c); clip-path: var(--chamfer); box-shadow: 0 0 24px rgba(54,255,18,.35); animation: pop .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.card .c-plate { border-color: var(--c); }
.card { --c: var(--peak); }
@keyframes pop { from { transform: scale(.92) skewX(-4deg); opacity: 0; } }
.c-close { position: sticky; top: 0; float: right; margin: -6px -8px 6px 10px; padding: 6px 12px; background: var(--well-2); color: var(--core); border: 1px solid var(--frame); font-family: var(--hud); cursor: pointer; z-index: 1; }
.c-kicker { font-family: var(--hud); color: var(--c); letter-spacing: .12em; font-size: 12px; margin: 0 0 6px; }
.c-title { margin: 0 0 10px; display: inline-block; padding: 4px 26px 4px 16px; background: var(--c); color: var(--on-slab); clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 3.2vw, 26px); line-height: 1.1; }
.c-meta { font-family: var(--hud); font-size: 13px; color: var(--cyan); margin: 0 0 8px; }
.c-grid { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 16px; align-items: start; }
.c-grid:not(:has(img)) { grid-template-columns: 1fr; }
.c-img { width: 100%; border: 1px solid var(--frame); display: block; }
.c-text { margin: 0; line-height: 1.55; font-size: 15px; color: var(--ink); }
.c-lock { font-family: var(--hud); color: var(--alert); font-size: 13px; }
.c-quest { font-family: var(--hud); color: var(--hazard); font-size: 13px; }
.c-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.c-btn { display: inline-block; padding: 9px 22px 9px 16px; background: var(--well-2); border: 1px solid var(--c); color: var(--core); text-decoration: none; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; clip-path: var(--slant); }
.c-btn:hover, .c-btn:focus-visible { background: var(--c); color: var(--on-slab); }
.m-h { margin: 0 0 12px; display: inline-block; padding: 4px 26px 4px 16px; background: var(--peak); color: var(--on-slab); clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 24px; }
.m-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.m-sub { font-family: var(--hud); color: var(--text-g); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0; }
.m-list, .m-links { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.m-list button, .m-links a, .m-links button { width: 100%; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-align: left; padding: 7px 10px; background: var(--well-2); border: 1px solid var(--line); color: var(--core); font-family: var(--hud); font-size: 14px; cursor: pointer; text-decoration: none; }
.m-list button:hover, .m-list button:focus-visible, .m-links a:hover, .m-links button:hover { border-color: var(--peak); background: #0a3a0c; }
.m-list small { color: var(--ink-dim); font-size: 11px; flex-basis: 100%; padding-left: 18px; }
.m-list .dot { width: 10px; height: 10px; display: inline-block; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.help-l { margin: 0 0 14px; padding-left: 18px; line-height: 1.6; font-size: 15px; }
.help button, .help-l + button { padding: 10px 26px; background: var(--peak); color: var(--on-slab); border: 0; clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 18px; cursor: pointer; }

/* ---------- phones ---------- */
@media (pointer: coarse), (max-width: 760px) {
  .t-joy { display: block; position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 70px); width: 124px; height: 124px; border-radius: 50%; border: 2px solid rgba(54,255,18,.6); background: rgba(2,16,3,.45); touch-action: none; }
  .t-joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(54,255,18,.75); box-shadow: var(--glow); }
  .t-btns { display: flex; flex-direction: column; gap: 12px; position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px); }
  .t-btns button { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--peak); background: rgba(2,16,3,.65); color: var(--core); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 15px; touch-action: none; }
  #btn-jump { background: rgba(54,255,18,.8); color: var(--on-slab); }
  .h-bar { left: 0; right: 0; transform: none; bottom: 0; clip-path: none; justify-content: space-around; gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .key { flex-direction: column; gap: 2px; padding: 4px 2px; font-size: 10px; flex: 1 1 0; min-width: 0; }
  .key span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* v6: the counters + minimap own the top-right (~170 px): the toast sits under them, the pad prompt sits above the thumb controls */
  .h-act { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 212px); top: auto; font-size: 12px; white-space: normal; text-align: center; width: max-content; max-width: 88vw; }
  .h-id { padding: 6px 12px 6px 8px; } .h-kick { font-size: 15px; } .h-obj { display: none; } .h-hex { width: 26px; }
  .h-right { width: 116px; } .h-qlist { display: none; } .h-count dd { font-size: 14px; } .h-count dt { font-size: 8px; }
  .only-touch { display: block; } .only-desk { display: none; }
  .c-grid { grid-template-columns: 1fr; } .c-img { max-height: 30vh; object-fit: cover; }
  .m-cols { grid-template-columns: 1fr; }
  .toast { font-size: 14px; top: calc(max(12px, env(safe-area-inset-top)) + 176px); max-width: 90vw; }
  @keyframes cardin { from { transform: translateX(60%) skewX(-12deg); opacity: 0; } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

  -webkit-mask: url('../images/hud/trophy.svg') center / contain no-repeat; mask: url('../images/hud/trophy.svg') center / contain no-repeat; }
  background: rgba(2,16,3,.9); border: 3px solid var(--hazard); clip-path: var(--chamfer); box-shadow: 0 0 40px rgba(255,179,0,.45); display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center;
  animation: achslam .38s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes achslam { 0% { transform: translate(-50%, -50%) scale(2.6) rotate(-6deg); opacity: 0; filter: blur(6px); } 55% { opacity: 1; filter: none; } 100% { transform: translate(-50%, -50%); } }
@keyframes mcard { from { transform: translateX(-40%) skewX(-18deg) scale(1.3); opacity: 0; } }

/* ---------- intro: the phonk edit (intro.js). Cold, minimal type: display italic for names, mono for read-outs ---------- */
#k-layer { pointer-events: none; }
.p-stage, .p-labs { position: absolute; inset: 0; transform-origin: 50% 50%; }
.p-lb { position: absolute; left: 0; right: 0; height: 10%; background: #000; z-index: 3; }
.p-lb.top { top: 0; } .p-lb.bot { bottom: 0; }
.i-skip { z-index: 4; }
.p-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-family: var(--hud); letter-spacing: .5em; color: var(--text-g); font-size: 13px; }
.p-pop { animation: ppop .16s cubic-bezier(.1, .9, .2, 1) both; }
.p-chroma { animation: ppop .16s cubic-bezier(.1, .9, .2, 1) both, pchroma .42s ease-out both; }
@keyframes ppop { 0% { transform: scale(1.32); opacity: 0; filter: blur(5px); } 55% { opacity: 1; filter: none; } 100% { transform: none; } }
@keyframes pchroma { 0% { text-shadow: -7px 0 rgba(255,40,70,.85), 7px 0 rgba(0,255,220,.85); } 100% { text-shadow: 0 0 26px rgba(54,255,18,.45); } }
.p-hit > .p-t, .p-hit > .p-name, .p-hit > .p-fig, .p-hit > .p-big { animation: phit .12s ease-out; }
/* v6 contrast: white type with a green glow; on impacts only, a short hot (red-pink) edge */
.p-t, .p-fig, .p-name { color: #fbfff9 !important; text-shadow: 0 0 2px rgba(255,255,255,.7), 0 0 24px rgba(54,255,18,.5) !important; }
.p-hot > .p-t, .p-hot > .p-name, .p-hot > .p-fig, .p-hot > .p-big, .p-hot > .p-total b, .p-hot > .p-logo b { animation: phot .42s ease-out; }
@keyframes phot { 0% { transform: scale(1.06) translateX(-3px); text-shadow: -5px 0 0 #ff2d55, 5px 0 0 rgba(127,252,213,.8), 0 0 30px rgba(255,45,85,.8); } 100% { transform: none; } }
@keyframes phit { 0% { transform: translateX(-4px) skewX(-6deg); } 100% { transform: none; } }
.p-sys { position: absolute; left: 6vw; bottom: calc(10vh + 52px); font-family: var(--hud); font-size: clamp(12px, 1.3vw, 16px); letter-spacing: .18em; color: var(--text-g); text-shadow: 0 0 8px rgba(54,255,18,.6); }
.p-sys span { color: var(--core); } .p-sys.two { bottom: calc(10vh + 26px); color: var(--ink-dim); }
.p-whisper { position: absolute; left: 6vw; right: 6vw; top: 66%; text-align: center; font-family: var(--hud); text-transform: uppercase; letter-spacing: .38em; color: var(--core); font-size: clamp(11px, 1.4vw, 18px); }
.p-name { position: absolute; left: 4vw; right: 4vw; top: 50%; transform-origin: 50% 50%; margin-top: -.55em; text-align: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(42px, 9.5vw, 150px); line-height: .9; color: var(--core); text-shadow: 0 0 26px rgba(54,255,18,.45); }
.p-handle { position: absolute; left: 0; right: 0; top: calc(50% + clamp(50px, 9vw, 140px)); text-align: center; font-family: var(--hud); letter-spacing: .9em; padding-left: .9em; color: var(--peak); font-size: clamp(12px, 1.6vw, 20px); }
.p-stamp { position: absolute; left: 5vw; top: calc(10% + 18px); font-family: var(--hud); letter-spacing: .22em; color: var(--cyan); font-size: clamp(11px, 1.3vw, 16px); text-shadow: 0 0 8px rgba(127,252,213,.5); }
.p-stamp::before { content: '›› '; color: var(--peak); }
.p-t, .p-fig { position: absolute; left: 5vw; right: 5vw; bottom: calc(10% + 46px + 1.6vw); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 7.4vw, 116px); line-height: .9; color: var(--core); text-shadow: 0 0 26px rgba(54,255,18,.45); transform-origin: 0 100%; }
.p-s, .p-line { position: absolute; left: 5vw; right: 5vw; bottom: calc(10% + 18px); font-family: var(--hud); text-transform: uppercase; letter-spacing: .2em; color: var(--peak); font-size: clamp(11px, 1.35vw, 17px); }
.p-line { text-transform: none; letter-spacing: .06em; color: var(--ink); }
.p-chip { position: absolute; right: 5vw; top: 34%; padding: 6px 26px 6px 16px; background: var(--peak); color: var(--on-slab); clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(16px, 2.2vw, 30px); text-transform: uppercase; max-width: 44vw; }
.p-chip.gold { background: var(--hazard); top: 44%; }
.p-chip:empty { display: none; }
/* v6 chapter card: a small slab on the chapter's first downbeat, with the hot accent bar */
.p-chap { position: absolute; left: 50%; top: calc(10% + 14px); transform: translateX(-50%); padding: 4px 22px 4px 16px; background: #fbfff9; color: #021a02; clip-path: var(--slant); font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: .08em; font-size: clamp(13px, 1.5vw, 20px); border-left: 6px solid #ff2d55; white-space: nowrap; }
.p-chap.p-pop { animation: pchap .2s cubic-bezier(.1, .9, .2, 1) both; }
@keyframes pchap { 0% { transform: translateX(-50%) scale(1.3); opacity: 0; } 100% { transform: translateX(-50%); } }
.p-chip.p-views { background: #fbfff9; font-variant-numeric: tabular-nums; } .p-chip.p-views b { font-weight: 800; }
.p-chips { position: absolute; right: 5vw; top: 24%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 46vw; }
.p-chips span { font-family: var(--hud); font-size: clamp(10px, 1.15vw, 14px); letter-spacing: .1em; color: var(--core); background: rgba(2,16,3,.82); border-right: 3px solid var(--peak); padding: 6px 12px; text-align: right; animation: ppop .16s cubic-bezier(.1, .9, .2, 1) both; }
.p-chips span:nth-child(2) { animation-delay: .23s; border-color: var(--cyan); } .p-chips span:nth-child(3) { animation-delay: .46s; border-color: var(--hazard); }
.p-big { position: absolute; left: 0; right: 0; top: 50%; margin-top: -.5em; text-align: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(120px, 24vw, 340px); line-height: 1; color: var(--hazard); text-shadow: 0 0 40px rgba(255,179,0,.55), 8px 8px 0 #3d2a00; }
.p-labs .p-lab { position: absolute; left: 0; top: 0; font-family: var(--hud); font-size: clamp(11px, 1.2vw, 15px); letter-spacing: .14em; color: var(--hazard); text-shadow: 0 0 8px rgba(255,179,0,.6); white-space: nowrap; }
.p-lab.s { color: var(--on-slab); background: var(--hazard); padding: 2px 8px; text-shadow: none; }
.p-lab.w { display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: normal; width: 24ch; text-align: center; }
.p-lab.w b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(18px, 2.1vw, 30px); color: var(--core); letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.p-lab.w i { font-style: normal; color: var(--cyan); font-size: clamp(12px, 1.15vw, 16px); background: rgba(0,6,1,.72); padding: 2px 6px; }
.p-lab.w b { background: rgba(0,6,1,.72); padding: 2px 8px; }
.p-cap { position: absolute; right: 5vw; bottom: calc(10% + 18px); font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(22px, 3.4vw, 52px); text-transform: uppercase; color: var(--core); text-align: right; }
.p-total { position: absolute; left: 0; right: 0; top: 30%; display: flex; justify-content: center; align-items: baseline; gap: 18px; }
.p-total.two { top: 48%; }
.p-total b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(70px, 12vw, 170px); line-height: .9; color: var(--hazard); text-shadow: 0 0 30px rgba(255,179,0,.5); }
.p-total.two b { color: var(--cyan); text-shadow: 0 0 30px rgba(127,252,213,.5); }
.p-total span { font-family: var(--hud); letter-spacing: .3em; color: var(--core); font-size: clamp(12px, 1.8vw, 22px); }
.p-role { position: absolute; left: 5vw; top: calc(10% + 28px + var(--i, 0) * clamp(34px, 6.4vh, 64px)); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 3.4vw, 48px); line-height: 1; color: var(--on-slab); background: var(--peak); padding: 3px 28px 3px 14px; clip-path: var(--slant); }
.p-role:nth-of-type(even) { background: var(--cyan); }
.p-logo { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.p-logo.p-pop { animation: ppop2 .2s cubic-bezier(.1, .9, .2, 1) both, pchroma .42s ease-out both; }
@keyframes ppop2 { 0% { transform: translateY(-50%) scale(1.3); opacity: 0; } 100% { transform: translateY(-50%); } }
.p-hex { width: clamp(44px, 6vw, 80px); aspect-ratio: 1 / 1.1547; background: var(--peak); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.p-logo b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(54px, 12vw, 170px); line-height: .85; color: var(--peak); text-shadow: 0 0 30px rgba(54,255,18,.6); }
.p-logo i { font-style: normal; font-family: var(--hud); letter-spacing: .6em; padding-left: .6em; color: var(--core); font-size: clamp(13px, 1.8vw, 22px); }
@media (max-aspect-ratio: 1/1) {
  /* v7: inside the top letterbox bar, so they never cover a photo plaque */
  .i-skip { bottom: auto; top: max(calc((6.5vh - 26px) / 2), env(safe-area-inset-top)); flex-direction: row; gap: 6px; }
  .i-skip button, .i-skip a { font-size: 10px; padding: 5px 9px; letter-spacing: .06em; }
  .p-stamp { top: calc(6.5% + 14px); }
  .p-t, .p-fig { bottom: calc(6.5% + 44px + 4vw); font-size: clamp(34px, 11vw, 80px); }
  .p-s, .p-line, .p-cap { bottom: calc(6.5% + 16px); }
  .p-cap { bottom: calc(6.5% + 16px + 11vw); }
  .p-chip, .p-chip.gold { top: auto; bottom: calc(6.5% + 60px + 22vw); right: 5vw; max-width: 90vw; font-size: 16px; }
  .p-chip.gold { bottom: calc(6.5% + 104px + 22vw); }
  .p-chips { top: auto; bottom: calc(6.5% + 60px + 22vw); max-width: 90vw; }
  .p-sys { bottom: calc(6.5% + 52px); } .p-sys.two { bottom: calc(6.5% + 26px); }
  .p-role { top: calc(6.5% + 40px + var(--i, 0) * 46px); font-size: clamp(16px, 5.4vw, 30px); }
  .p-chap { top: calc(6.5% + 112px); font-size: 13px; }
  .p-lab.w { width: 21ch; }
  .p-lab.w b { font-size: 22px; } .p-lab.w i { font-size: 14px; letter-spacing: .06em; }
  .p-lab.s { font-size: 11px; letter-spacing: .06em; padding: 2px 5px; }
  .p-name { font-size: 18.5vw; top: 40%; line-height: .86; }
  .p-handle { top: calc(40% + 49vw); font-size: 15px; letter-spacing: .7em; }
  .p-logo b { font-size: 21vw; }
  .p-logo i { font-size: 15px; }
  .p-hex { width: 15vw; }
}
