/* Prototype 03: Pop Burst */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--font-ui); color: var(--white); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }

/* ---------- fixed 16:9 stage ---------- */
.viewport { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(ellipse at center, #0d1550, #000 75%); }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  overflow: hidden; background: var(--void); font-variant-numeric: tabular-nums; user-select: none;
}
.screen { position: absolute; inset: 0; visibility: hidden; }
.screen.is-on { visibility: visible; }
.overlay { z-index: 5; }
.inventory { transition: filter 220ms var(--ease-out); }
.stage.is-dimmed .inventory, .stage.is-dimmed .scene { filter: blur(6px) saturate(0.7) brightness(0.6); }

/* ---------- the scene ---------- */
.scene { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 66% 52%, #1d2c9c 0%, #101a63 42%, var(--void) 78%); transition: filter 220ms var(--ease-out); }
.rays { position: absolute; left: 10px; top: -740px; width: 2600px; height: 2600px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(79 91 255 / 0.26) 0deg 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 6%, transparent 52%); mask: radial-gradient(circle, #000 6%, transparent 52%);
  animation: spin 120s linear infinite; }
.stage[data-route="inventory"] .rays, .stage[data-route="pause"] .rays { opacity: 0.45; }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.glow.g1 { left: -200px; top: 620px; width: 900px; height: 700px; background: rgb(159 67 204 / 0.45); }
.glow.g2 { left: 1300px; top: -300px; width: 900px; height: 700px; background: rgb(52 217 184 / 0.18); }
.dots { position: absolute; inset: 0; opacity: 0.22; background: radial-gradient(circle, #fff 1.4px, transparent 1.9px) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(115deg, #000 0%, transparent 32%, transparent 68%, #000 100%); mask: linear-gradient(115deg, #000 0%, transparent 32%, transparent 68%, #000 100%); }

/* ---------- comic atoms ---------- */
/* comic lettering: ink outline, then a purple and ink extrusion */
.letters { font-family: var(--font-display); font-weight: 400; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; color: var(--white);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--purple), 10px 10px 0 var(--ink); }
.letters span { display: inline-block; }
.letters.sm { font-size: 44px; -webkit-text-stroke: 3px var(--ink); text-shadow: 3px 3px 0 var(--purple), 6px 6px 0 var(--ink); }

.caption { position: absolute; display: inline-block; padding: 6px 14px; background: var(--white); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; rotate: -2deg; }

.burst { position: absolute; display: grid; place-items: center; filter: drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink)) drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink)) drop-shadow(7px 7px 0 var(--ink)); }
.burst::before { content: ""; position: absolute; inset: 0; clip-path: var(--burst); background: var(--orange); }
.burst span { position: relative; font-family: var(--font-display); font-size: 36px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }

/* character art as a die-cut: white outline + hard ink shadow */
.cas { position: absolute; filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(12px 12px 0 rgb(8 16 56 / 0.95)); }

/* comic panel: ink border, white gutter, hard shadow, halftone fill */
.panel { --c: var(--blue); position: absolute; border: 5px solid var(--ink); box-shadow: 0 0 0 5px var(--white), 14px 14px 0 5px var(--ink);
  background: radial-gradient(circle, rgb(255 255 255 / 0.16) 1.6px, transparent 2.1px) 0 0 / 12px 12px,
    linear-gradient(160deg, color-mix(in srgb, var(--c), #fff 14%), var(--c) 55%, color-mix(in srgb, var(--c), #000 22%)); }
.panel.teal { --c: var(--teal); }
.panel.purple { --c: var(--purple); }
.panel.blue { --c: var(--blue); }
.panel.sky { --c: var(--sky); }

.badge { --c: var(--blue); position: absolute; z-index: 4; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--ink); background: var(--c); box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-content: center; text-align: center; color: var(--white); }
.badge b { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; }
.badge span { font-family: var(--font-mono); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.badge.purple { --c: var(--purple); }
.badge.teal { --c: var(--teal); color: var(--ink); }
.badge.sky { --c: var(--sky); color: var(--ink); }
.badge.elite { --c: var(--r-elite); color: var(--ink); }

.pill { height: 50px; padding: 0 26px; border: 4px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; outline: none; scale: 1;
  transition: background-color var(--dur-focus) var(--ease-out), scale var(--dur-focus) var(--ease-out); }
.pill.sm { height: 38px; padding: 0 16px; font-size: 14px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.pill.is-active { background: var(--orange); }
.pill:focus-visible { background: var(--sky); scale: 1.06; }
.pill:active { scale: 0.96; }

/* caption-box menu items: tilted at rest, pop straight on focus */
.caps { position: absolute; display: grid; gap: 16px; }
.cap { --r: -1.2deg; position: relative; display: flex; align-items: center; justify-content: space-between; width: 540px; height: 76px; padding: 0 28px;
  background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); outline: none; text-align: left;
  rotate: var(--r); scale: 1; translate: 0 0;
  transition: rotate var(--dur-focus) var(--ease-out), scale var(--dur-focus) var(--ease-out), translate var(--dur-focus) var(--ease-out), background-color var(--dur-focus) var(--ease-out); }
.cap:nth-child(2n) { --r: 1deg; }
.cap:nth-child(3n) { --r: -0.5deg; }
.cap::before { content: ""; position: absolute; left: -50px; top: 50%; width: 30px; height: 36px; margin-top: -18px; background: var(--orange); clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(3px 3px 0 var(--ink)); opacity: 0; translate: -10px 0; transition: opacity var(--dur-focus) var(--ease-out), translate var(--dur-focus) var(--ease-out); }
.cap-label { font-family: var(--font-display); font-size: 42px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.cap-sub { font-family: var(--font-mono); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(8 16 56 / 0.62); }
.cap.is-focus { background: var(--orange); rotate: 0deg; scale: 1.05; translate: 12px 0; }
.cap.is-focus::before { opacity: 1; translate: 0 0; }
.cap.is-focus .cap-sub { color: var(--ink); }
.cap:active { scale: 0.97; }
.cap.is-locked { background: var(--muted); }
.cap.is-locked .cap-label { color: rgb(8 16 56 / 0.7); }
.cap.is-locked.is-focus { background: var(--white); }
.cap.is-locked.is-focus::before { background: var(--muted); }

/* ---------- TITLE ---------- */
.logo { position: absolute; left: 110px; top: 66px; width: 960px; rotate: -4deg; }
.logo-mark { position: absolute; left: 6px; top: -10px; width: 64px; height: 64px; }
.logo-mark i { position: absolute; display: block; border: 4px solid var(--ink); }
.logo-mark i:first-child { left: 0; top: 0; width: 44px; height: 44px; background: var(--orange); }
.logo-mark i:last-child { right: 0; bottom: 0; width: 26px; height: 26px; background: var(--teal); }
.logo-word { padding-top: 46px; font-size: 226px; }
.logo-burst { left: 590px; top: 214px; width: 330px; height: 200px; rotate: 9deg; }
.title .caps { left: 140px; top: 470px; }
.t-cas { left: 1070px; top: 250px; width: 405px; height: 729px; z-index: 2; }
.t-panel-a { left: 1540px; top: 96px; width: 300px; height: 280px; rotate: 4deg; }
.t-panel-a img { position: absolute; left: 40px; top: -26px; width: 204px; height: 227px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.t-panel-b { left: 1590px; top: 640px; width: 250px; height: 320px; rotate: -3deg; }
.t-panel-b img { position: absolute; left: 50px; top: 22px; width: 145px; height: 283px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.t-note { left: 1520px; top: 434px; rotate: 3deg; font-size: 14px; }

/* ---------- INVENTORY ---------- */
.crumb { left: 44px; top: 24px; font-size: 14px; }
.i-title { position: absolute; left: 40px; top: 58px; font-size: 112px; rotate: -2deg; }
.bubble { --bg: var(--white); position: absolute; left: 700px; top: 26px; width: 600px; padding: 14px 26px 16px; background: var(--bg); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); transition: background-color 200ms var(--ease-out); }
.bubble::before, .bubble::after { content: ""; position: absolute; left: 70px; clip-path: polygon(0 0, 100% 0, 10% 100%); }
.bubble::before { bottom: -30px; width: 46px; height: 30px; background: var(--ink); }
.bubble::after { bottom: -21px; left: 75px; width: 34px; height: 22px; background: var(--bg); transition: background-color 200ms var(--ease-out); }
.callout-src { display: block; font-family: var(--font-mono); font-weight: 800; font-size: 12px; letter-spacing: 0.3em; color: var(--purple); }
.callout-msg { display: block; margin-top: 4px; font-weight: 900; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.bubble.is-ok { --bg: var(--teal); }
.bubble.is-ok .callout-src, .bubble.is-warn .callout-src { color: var(--ink); }
.bubble.is-warn { --bg: var(--r-elite); }
.tabs { position: absolute; right: 44px; top: 44px; display: flex; gap: 12px; }

.p-a { left: 40px; top: 196px; width: 700px; height: 846px; overflow: hidden; }
.panel-rays { position: absolute; left: -400px; top: -480px; width: 1300px; height: 1300px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / 0.12) 0deg 6deg, transparent 6deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 5%, transparent 60%); mask: radial-gradient(circle, #000 5%, transparent 60%); animation: spin 90s linear infinite; }
.i-cas { left: 24px; top: 70px; width: 405px; height: 729px; }
.slots { position: absolute; right: 26px; top: 36px; width: 246px; }
.slot-head { margin-bottom: 10px; font-family: var(--font-display); font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 3px 3px 0 var(--ink); }
.slot-grid { display: grid; grid-template-columns: 112px 112px; gap: 16px 18px; margin-bottom: 20px; }

/* collectible item card (slots + storage) */
.card { position: relative; outline: none; scale: 1; rotate: 0deg; transition: scale var(--dur-focus) var(--ease-out), rotate var(--dur-focus) var(--ease-out); }
.card-face { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border: 4px solid var(--ink); border-radius: var(--radius); background: var(--ink); overflow: hidden; box-shadow: 5px 5px 0 var(--ink); }
.card-face::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--rc, transparent); border-radius: 9px; pointer-events: none; }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card.is-current, .card.is-focus { scale: 1.07; rotate: -2deg; z-index: 2; }
.card:active { scale: 0.97; }
.slot { width: 112px; height: 150px; }
.slot .s-name { position: absolute; left: -4px; right: -8px; top: 120px; font-weight: 900; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 var(--ink); }
.tag-cd { position: absolute; z-index: 1; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--white); font-family: var(--font-mono); font-weight: 800; font-size: 11px; pointer-events: none; }
.slot .tag-cd { right: 6px; top: 6px; }
.slot.is-empty .card-face { background: rgb(7 11 42 / 0.45); border-style: dashed; border-color: rgb(255 255 255 / 0.7); box-shadow: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 46px; color: rgb(255 255 255 / 0.75); }
.slot.is-empty .s-name { color: rgb(255 255 255 / 0.8); }
.slot.is-target .card-face { background: var(--orange); border-style: solid; border-color: var(--ink); color: var(--ink); }
.slot.is-target { animation: wiggle 900ms var(--ease-in-out) infinite; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
.weapons { display: grid; gap: 12px; margin-top: 4px; }
.weapon { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 8px; border: 4px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-align: left; outline: none; scale: 1; transition: scale var(--dur-focus) var(--ease-out), background-color var(--dur-focus) var(--ease-out); }
.weapon img { width: 40px; height: 40px; object-fit: contain; }
.weapon .w-empty { width: 34px; height: 34px; margin-left: 4px; border: 3px dashed rgb(8 16 56 / 0.4); border-radius: 50%; }
.weapon em { display: block; font-style: normal; font-family: var(--font-mono); font-weight: 800; font-size: 10px; letter-spacing: 0.16em; color: rgb(8 16 56 / 0.6); }
.weapon span:last-child { font-weight: 900; font-size: 15px; text-transform: uppercase; }
.weapon.is-current, .weapon:focus-visible { background: var(--sky); scale: 1.04; }
.b-active { left: 16px; top: 150px; rotate: -7deg; }
.b-passive { left: 122px; top: 160px; rotate: 6deg; }

.p-b { left: 778px; top: 196px; width: 600px; height: 846px; padding: 30px 26px; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-head .letters { font-size: 40px; white-space: nowrap; }
.filters { display: flex; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(5, 100px); grid-auto-rows: 100px; gap: 16px 14px; margin-top: 30px; }
.cell { width: 100px; height: 100px; }
.cell .tag-cd { left: 6px; bottom: 6px; }
.cell .new { position: absolute; right: -14px; top: -16px; z-index: 3; width: 52px; height: 40px; display: grid; place-items: center; pointer-events: none; rotate: 10deg; }
.cell .new::before { content: ""; position: absolute; inset: 0; clip-path: var(--burst); background: var(--orange); }
.cell .new span { position: relative; font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.cell.is-selected .card-face { outline: 5px solid var(--orange); outline-offset: 2px; }
.cell.is-selected::after { content: "Picked"; position: absolute; left: 50%; bottom: -14px; z-index: 3; translate: -50% 0; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--orange); color: var(--ink); font-family: var(--font-mono); font-weight: 800; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.cell.is-dragging { opacity: 0.35; }
.cell-empty { border: 3px dashed rgb(255 255 255 / 0.28); border-radius: var(--radius); }
.grid.is-drop .cell-empty { border-color: var(--orange); background: rgb(252 147 22 / 0.2); }
.legend { display: flex; gap: 20px; margin-top: 34px; font-weight: 900; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 3px solid var(--ink); border-radius: 50%; background: var(--c); vertical-align: -2px; }
.b-store { left: 1318px; top: 104px; rotate: 7deg; }

/* trading card detail view: tilts toward the pointer */
.p-c { position: absolute; left: 1404px; top: 176px; width: 480px; height: 880px; perspective: 1400px; }
.tcard-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.tcard { --rc: var(--muted); position: relative; width: 430px; height: 810px; padding: 14px; background: var(--white); color: var(--ink); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 14px 14px 0 var(--ink);
  display: flex; flex-direction: column; transform-style: preserve-3d; }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 4px solid var(--ink); border-radius: 16px; background: var(--rc); }
.tc-name { font-family: var(--font-display); font-size: 40px; line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.tc-pips { display: flex; gap: 5px; flex: none; }
.tc-pips i { width: 16px; height: 16px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); }
.tc-pips i.on { background: var(--ink); }
.tc-art { position: relative; height: 330px; margin-top: 12px; border: 4px solid var(--ink); border-radius: 16px; background: var(--ink); overflow: hidden; }
.tc-art img { width: 100%; height: 100%; object-fit: cover; }
.tc-art.gear img { object-fit: contain; padding: 30px; }
.tc-art::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.38) 50%, transparent 60%); transform: translateX(var(--shine, -30%)); pointer-events: none; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tc-chip { padding: 4px 12px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 900; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.tc-chip.rar { background: var(--rc); }
.tc-chip.on { background: var(--teal); }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tc-stat { padding: 8px 10px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #eef0ff; }
.tc-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.tc-stat span { font-family: var(--font-mono); font-weight: 800; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(8 16 56 / 0.68); }
.tc-desc { margin-top: 14px; font-weight: 700; font-size: 17px; line-height: 1.45; color: #252c66; text-wrap: pretty; }
.tc-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.tc-empty b { font-family: var(--font-display); font-size: 48px; text-transform: uppercase; }
.tc-empty span { font-family: var(--font-mono); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(8 16 56 / 0.6); }
.tc-empty::before { content: "?"; display: grid; place-items: center; width: 120px; height: 120px; border: 4px dashed var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: 70px; }

/* ---------- PAUSE ---------- */
.pause::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 255 255 / 0.08) 1.5px, transparent 2px) 0 0 / 12px 12px, rgb(7 11 42 / 0.66); }
.pause-rays { position: absolute; left: -840px; top: -1000px; width: 2400px; height: 2400px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(252 147 22 / 0.22) 0deg 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 5%, transparent 45%); mask: radial-gradient(circle, #000 5%, transparent 45%); animation: spin 80s linear infinite reverse; }
.paused { position: absolute; left: 70px; top: 40px; width: 820px; height: 470px; rotate: -6deg; display: grid; place-items: center; }
.paused-ink, .paused-fill { position: absolute; clip-path: var(--burst); }
.paused-ink { inset: 0; background: var(--ink); }
.paused-fill { inset: 16px; background: var(--orange); }
.paused span { position: relative; font-size: 168px; }
.p-where { left: 150px; top: 520px; rotate: -2deg; }
.p-caps { left: 150px; top: 586px; }
.p-caps .cap { height: 70px; }
.p-panel { left: 920px; top: 160px; width: 400px; height: 800px; rotate: 2deg; }
.p-panel .cas { left: 44px; top: 50px; width: 313px; height: 710px; }
.p-build { position: absolute; left: 1380px; top: 140px; width: 500px; padding: 26px 26px 30px; border: 5px solid var(--ink); box-shadow: 0 0 0 5px var(--white), 14px 14px 0 5px var(--ink);
  background: radial-gradient(circle, rgb(255 255 255 / 0.08) 1.5px, transparent 2px) 0 0 / 12px 12px, var(--night); rotate: -1deg; }
.p-name { margin-top: 10px; font-weight: 900; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 132px); gap: 22px 18px; margin-top: 24px; }
.mini { position: relative; width: 132px; height: 170px; rotate: var(--r, 0deg); }
.mini:nth-child(2n) { --r: 2deg; }
.mini:nth-child(3n) { --r: -2deg; }
.mini .card-face { width: 132px; }
.mini .s-name { position: absolute; left: 0; right: -6px; top: 140px; font-weight: 900; font-size: 13px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 var(--ink); }
.mini.is-empty .card-face { background: rgb(7 11 42 / 0.5); border-style: dashed; border-color: rgb(255 255 255 / 0.55); box-shadow: none; }
.mini.is-empty .s-name { color: var(--muted); }
.p-badges { display: flex; gap: 10px; margin-top: 26px; }
.p-badges .badge { position: relative; width: 106px; height: 106px; }
.p-badges .badge:nth-child(odd) { rotate: -4deg; }
.p-badges .badge:nth-child(even) { rotate: 5deg; }

/* ---------- transitions + toast ---------- */
.toast { position: absolute; left: 50%; top: 40px; z-index: 25; padding: 12px 26px 14px; pointer-events: none; background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink);
  opacity: 0; transform: translate(-50%, -12px) scale(0.96); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-msg { display: block; margin-top: 3px; font-weight: 900; font-size: 20px; text-transform: uppercase; }
.curtain { position: absolute; inset: 0; z-index: 35; pointer-events: none; visibility: hidden; }
.slab { position: absolute; left: -2%; right: -2%; top: -6%; height: 116%; transform: translateY(-112%); border-bottom: 8px solid var(--ink); clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.slab.o { background: var(--orange); }
.slab.p { background: var(--purple); }
.slab.b { background: radial-gradient(circle, rgb(255 255 255 / 0.14) 1.6px, transparent 2.1px) 0 0 / 12px 12px, var(--blue); display: grid; place-items: center; }
.slab .letters { font-size: 150px; rotate: -4deg; }

/* ---------- reviewer bar ---------- */
.devbar { position: fixed; left: 0; top: 50%; z-index: 100; display: flex; align-items: center; transform: translateY(-50%); font-family: var(--font-mono); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.devbar-tab { writing-mode: vertical-rl; padding: 12px 6px; background: var(--white); border: 3px solid var(--ink); border-left: 0; color: var(--purple); }
.devbar-body { display: none; align-items: center; gap: 2px; padding: 4px; background: var(--white); border: 3px solid var(--ink); border-left: 0; }
.devbar:hover .devbar-tab, .devbar:focus-within .devbar-tab { display: none; }
.devbar:hover .devbar-body, .devbar:focus-within .devbar-body { display: flex; }
.devbar a, .devbar button { padding: 8px 10px; color: #4a5078; text-decoration: none; }
.devbar a:hover, .devbar button:hover, .devbar button.is-on { color: var(--blue); }
.devbar-name { padding: 8px 10px; color: var(--ink); border-left: 2px solid #d9dcee; border-right: 2px solid #d9dcee; }
.devbar-motion { color: var(--purple) !important; }

/* ---------- reduced motion: fades only ---------- */
.reduce-motion .rays, .reduce-motion .panel-rays, .reduce-motion .pause-rays, .reduce-motion .slot.is-target { animation: none; }
.reduce-motion .cap, .reduce-motion .card, .reduce-motion .cap::before { transition-duration: 1ms; }
