/* ===== Red / Black / Silver theme — QueenMina NNN tracker ===== */
[hidden] { display: none !important; }

@font-face { font-family: "Pirata One"; src: url("fonts/PirataOne-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --void: #050304;          /* true black */
  --latex: #0c0a0b;         /* black latex */
  --latex-hi: #26232a;      /* latex sheen */
  --blood-deep: #3a0009;
  --blood: #7a0012;
  --crimson: #c8102e;
  --red-hot: #ff2b45;       /* labels / accents (crimson, no orange) */
  --silver: #c9ced6;
  --chrome: #f3f5f8;
  --steel: #7d838c;
  --gunmetal: #3a3d43;
  --bone: #eeedf0;          /* body text: cool silver-white */
  --muted: #b8b5bb;
  --ash: #8d8a90;
  --tap: 48px;
  --cut: 14px;
  --shield: polygon(6% 0, 94% 0, 100% 8%, 100% 80%, 50% 100%, 0 80%, 0 8%);
  --chrome-text: linear-gradient(180deg, #ffffff 0%, #e9ecf0 22%, #9aa0a9 46%, #5d626a 52%, #d7dbe1 66%, #f6f7f9 82%, #a3a9b2 100%);
  --silver-edge: linear-gradient(160deg, #f3f5f8, #8a9099 22%, #2a2c30 48%, #6d727a 72%, #e1e4e8);
  --gothic: "Pirata One", "UnifrakturCook", Georgia, serif;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.45;
  color: var(--bone); background: var(--void);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}

/* ---------- Background: blood glow + rising red embers ---------- */
.hellfire { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 55% at 50% 112%, rgba(200,16,46,.45), rgba(122,0,18,.3) 40%, rgba(58,0,9,.2) 62%, transparent 80%),
    radial-gradient(90% 40% at 50% -8%, rgba(122,0,18,.35), transparent 70%),
    linear-gradient(180deg, #0a0204 0%, var(--void) 45%, #0b0104 100%);
}
.hellfire::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px); }
.heat {
  position: absolute; left: -10%; right: -10%; bottom: -12%; height: 45%;
  background: radial-gradient(60% 70% at 50% 100%, rgba(230,20,50,.32), rgba(122,0,18,.18) 55%, transparent 75%);
  animation: flicker 3.2s ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { opacity: .75; transform: scaleY(1); } 30% { opacity: 1; transform: scaleY(1.06); }
  55% { opacity: .82; transform: scaleY(.97); } 80% { opacity: .95; transform: scaleY(1.04); }
  100% { opacity: .7; transform: scaleY(1); }
}
.embers i {
  position: absolute; bottom: -12px; left: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #ffe3e7 0 22%, #ff2b45 45%, rgba(200,16,46,0) 72%);
  box-shadow: 0 0 6px 2px rgba(220,16,46,.55);
  opacity: 0; animation: rise 9s linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; } 8% { opacity: 1; }
  50% { transform: translate(var(--dx, 20px), -55vh) scale(.85); opacity: .9; }
  100% { transform: translate(calc(var(--dx, 20px) * -.6), -105vh) scale(.3); opacity: 0; }
}
.embers i:nth-child(1)  { left: 6%;  animation-duration: 10s; animation-delay: -1s;  --dx: 26px; }
.embers i:nth-child(2)  { left: 14%; animation-duration: 7.5s; animation-delay: -4s; --dx: -18px; width: 3px; height: 3px; }
.embers i:nth-child(3)  { left: 22%; animation-duration: 11s; animation-delay: -7s; --dx: 34px; }
.embers i:nth-child(4)  { left: 31%; animation-duration: 8.5s; animation-delay: -2.5s; --dx: -30px; width: 5px; height: 5px; }
.embers i:nth-child(5)  { left: 39%; animation-duration: 12s; animation-delay: -9s; --dx: 16px; width: 3px; height: 3px; }
.embers i:nth-child(6)  { left: 47%; animation-duration: 9s; animation-delay: -5s; --dx: -22px; }
.embers i:nth-child(7)  { left: 55%; animation-duration: 10.5s; animation-delay: -3s; --dx: 28px; width: 3px; height: 3px; }
.embers i:nth-child(8)  { left: 63%; animation-duration: 8s; animation-delay: -6.5s; --dx: -14px; width: 5px; height: 5px; }
.embers i:nth-child(9)  { left: 71%; animation-duration: 11.5s; animation-delay: -1.5s; --dx: 20px; }
.embers i:nth-child(10) { left: 79%; animation-duration: 9.5s; animation-delay: -8s; --dx: -26px; width: 3px; height: 3px; }
.embers i:nth-child(11) { left: 87%; animation-duration: 7s; animation-delay: -2s; --dx: 12px; }
.embers i:nth-child(12) { left: 94%; animation-duration: 12.5s; animation-delay: -10s; --dx: -32px; width: 5px; height: 5px; }
.embers i:nth-child(13) { left: 10%; animation-duration: 13s; animation-delay: -11s; --dx: 40px; width: 2px; height: 2px; }
.embers i:nth-child(14) { left: 35%; animation-duration: 6.5s; animation-delay: -3.5s; --dx: 10px; width: 2px; height: 2px; }
.embers i:nth-child(15) { left: 58%; animation-duration: 14s; animation-delay: -12s; --dx: -40px; width: 2px; height: 2px; }
.embers i:nth-child(16) { left: 75%; animation-duration: 6s; animation-delay: -4.5s; --dx: 18px; width: 2px; height: 2px; }
.embers i:nth-child(17) { left: 27%; animation-duration: 10s; animation-delay: -6s; --dx: -12px; width: 3px; height: 3px; }
.embers i:nth-child(18) { left: 83%; animation-duration: 8.8s; animation-delay: -7.5s; --dx: 24px; width: 4px; height: 4px; }

/* ---------- Layout ---------- */
.phone {
  position: relative; z-index: 2; max-width: 440px; margin: 0 auto;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); min-height: 100dvh;
}

/* Header: centered crest + chrome blackletter title */
.top { text-align: center; margin: 2px 0 18px; }
.crest {
  position: relative; width: 76px; height: 76px; margin: 0 auto 4px; display: grid; place-items: center;
  filter: drop-shadow(0 0 8px rgba(255,43,69,.5)) drop-shadow(0 0 20px rgba(200,16,46,.45));
}
.sigil-svg { width: 100%; height: 100%; display: block; }
.crest.has-hero .sigil-svg { display: none; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; clip-path: var(--shield); }
/* hero.jpg: portrait crop (horns, face, middle finger) in a silver-rimmed shield */
.crest-top.has-hero { width: 150px; height: 174px; }
.crest-gate.has-hero { width: 176px; height: 204px; }
.crest.has-hero { padding: 2px; background: var(--silver-edge); clip-path: var(--shield); filter: none; }

h1, h2 { font-family: var(--gothic); font-weight: 400; letter-spacing: .5px; }
h1 {
  margin: 0; font-size: 46px; line-height: .95;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 12px rgba(200,16,46,.55));
}
.sub {
  margin: 10px 0 0; display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 2.6px; color: var(--silver);
}
.sub::before, .sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--silver) 55%, var(--crimson)); }
.sub::after { transform: scaleX(-1); }
.sub > span { white-space: nowrap; }

/* 18+ background (explicit): only gets an image via app.js AFTER the age gate is passed. */
.hero-bg {
  position: fixed; z-index: 1; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100vw, 600px); pointer-events: none;
  background: center top / cover no-repeat; opacity: 0; transition: opacity .8s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
@media (max-width: 600px) { .hero-bg { -webkit-mask-image: none; mask-image: none; } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,3,4,.2) 0%, rgba(5,3,4,.05) 12%, rgba(5,3,4,.05) 30%, rgba(5,3,4,.78) 38%, rgba(5,3,4,.78) 46%, rgba(5,3,4,.2) 56%, rgba(5,3,4,.2) 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(200,16,46,.2), transparent 70%);
}
.has-hero-bg .hero-bg { opacity: 1; }
.has-hero-bg .top { padding-top: min(78vw, 320px); }
.has-hero-bg .crest-top { display: none; }
.has-hero-bg h1 { filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(0,0,0,.95)) drop-shadow(0 0 20px rgba(200,16,46,.45)); }
.has-hero-bg .sub { text-shadow: 0 1px 3px #000, 0 0 10px #000; }
.has-hero-bg footer { position: relative; padding: 12px 8px 10px; background: rgba(5,3,4,.9); }

/* Cards: chamfered black-latex plates with a brushed-silver rim */
.card {
  --cut: 14px; position: relative; isolation: isolate;
  padding: 16px 16px 14px; margin-bottom: 14px;
  background: var(--silver-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.card::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 22%),
    radial-gradient(120% 80% at 100% 0%, rgba(122,0,18,.28), transparent 60%),
    linear-gradient(180deg, rgba(16,13,15,.97), rgba(6,4,5,.98));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.card::after { /* red notch on the cut corner */
  content: ""; position: absolute; top: 0; left: 0; width: calc(var(--cut) + 18px); height: 2px;
  background: linear-gradient(90deg, transparent var(--cut), var(--red-hot)); box-shadow: 0 0 8px var(--crimson);
}

.eyebrow {
  margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--red-hot);
}
.big, .hint { text-wrap: balance; }
.big { margin: 0; font-family: var(--gothic); font-size: 38px; line-height: 1.05; color: var(--chrome);
  text-shadow: 0 0 16px rgba(200,16,46,.5), 0 2px 0 #000; }
.big .unit { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); text-shadow: none; }
#streak-num {
  font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 10px rgba(200,16,46,.6));
}
.hint { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
#greet { text-transform: none; letter-spacing: .3px; font-size: 15px; }

/* Countdown + finale: altar plate with Mina flipping you off on the right */
#view-countdown, #view-finale { padding: 22px 18px 20px; min-height: 250px; }
.brat-side {
  position: absolute; z-index: -1; top: 1px; right: 1px; bottom: 1px; width: 62%;
  object-fit: cover; object-position: 30% 4%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%);
  opacity: .92;
}
.brat-copy { position: relative; max-width: 62%; }
#view-countdown .big, #view-finale .big { font-size: 34px; text-shadow: 0 0 16px rgba(200,16,46,.5), 0 2px 0 #000, 0 0 6px #000; }
#view-countdown .hint, #view-finale .hint { text-shadow: 0 1px 3px #000, 0 0 8px #000; color: var(--bone); }
#view-finale .btn { margin-top: 16px; }

/* Streak header */
.streak-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.day-badge { /* chrome shield */
  flex: none; width: 68px; height: 78px; display: grid; place-items: center; padding-bottom: 8px;
  font-family: var(--display); font-weight: 700; font-size: 28px; color: #0a0a0c;
  background: linear-gradient(180deg, #ffffff, #c9ced6 35%, #7d838c 55%, #e6e9ed 80%, #9aa0a9);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  filter: drop-shadow(0 0 10px rgba(200,16,46,.6));
}

/* Calendar: red-hot brands on black latex plates */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 16px; }
.cell {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: linear-gradient(160deg, #1d1b1f, #0b0a0c 55%, #121014);
  border: 1px solid #34323a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 6px rgba(0,0,0,.7);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.cell .n { position: absolute; top: 3px; left: 6px; font-family: var(--display); font-weight: 500; font-size: 11px; color: #a5a2aa; }
.cell.fut .n { position: static; font-size: 15px; color: #7a7780; }
.cell .mark { font-family: var(--gothic); font-size: 24px; line-height: 1; margin-top: 8px; }
.cell.ok { background: radial-gradient(circle at 50% 58%, #ff5c70 0, var(--crimson) 22%, #5a0010 52%, #140306 78%); border-color: #b0102a; }
.cell.ok .mark { color: #ffffff; text-shadow: 0 0 3px #fff, 0 0 9px #ff2b45, 0 0 16px var(--crimson); }
.cell.ok .n { color: #f1d6da; }
.cell.broke { background: linear-gradient(160deg, #000, #160206); border-color: var(--red-hot); }
.cell.broke .mark { font-family: var(--display); font-weight: 700; font-size: 30px; margin-top: 2px; color: var(--red-hot); text-shadow: 0 0 8px rgba(255,43,69,.8); }
.cell.broke .n { color: #ff9aa6; }
.cell.miss { background: linear-gradient(160deg, #2a2a2e, #18181b); border-color: #3e3e44; }
.cell.miss .mark { font-family: var(--display); font-size: 26px; color: #77767c; }
.cell.today { border-color: var(--silver); box-shadow: inset 0 0 10px rgba(201,206,214,.35), 0 0 0 1px var(--silver); animation: gleam 2.4s ease-in-out infinite; }
.cell.today .n { color: var(--chrome); }
@keyframes gleam { 50% { box-shadow: inset 0 0 16px rgba(255,43,69,.6), 0 0 0 1px var(--chrome); } }

.legend {
  margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; transform: rotate(45deg); }
.dot.ok { background: var(--crimson); box-shadow: 0 0 6px var(--red-hot); }
.dot.miss { background: #4a4a50; }
.dot.broke { background: #000; border: 2px solid var(--red-hot); }
.dot.fut { background: #141316; border: 1px solid #7a7780; }

/* Buttons: angled blades — glossy red latex / black latex, silver edges */
.actions { display: grid; gap: 10px; margin-bottom: 14px; }
.btn {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: block; text-align: center; min-height: var(--tap);
  padding: 13px 18px; font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.35;
  color: var(--bone); text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: filter .15s ease, transform .1s ease;
}
.btn:focus-visible { outline: 2px solid var(--chrome); outline-offset: 2px; }
.btn.fire {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 46%, rgba(255,255,255,0) 52%),
    linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%),
    linear-gradient(90deg, #4a000b 0%, #a3001c 30%, #d4102e 55%, #8a0016 100%);
  background-size: 100% 100%, 250% 100%, 100% 100%;
  background-position: 0 0, 150% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(201,206,214,.55);
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { background-position: 0 0, 150% 0, 0 0; } 100% { background-position: 0 0, -150% 0, 0 0; } }
.btn.fire:active { transform: translateY(1px); filter: brightness(1.15); }
.btn.big { font-size: 18px; min-height: 58px; padding: 16px 18px; }
.btn.ghost {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #1d1c20, #050405);
  color: var(--silver); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(201,206,214,.4);
}
.btn.ghost:active { filter: brightness(1.4); }
.btn:disabled { cursor: default; transform: none !important; animation: none; }
.btn.done, .btn.fire.done {
  background: repeating-linear-gradient(135deg, #18171a 0 10px, #111013 10px 20px);
  color: #a9a6ad; text-shadow: none; box-shadow: inset 0 0 0 1px #34323a;
}

.msg { border-left: 0; }
.msg p:last-child { margin: 4px 0 0; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--bone); }

.name-card label { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red-hot); }
.name-card input {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  font: 600 16px/1.2 var(--body); color: var(--bone);
  background: #050405; border: 1px solid #4a4850; border-bottom: 2px solid var(--crimson);
  border-radius: 0; outline: none;
}
.name-card input::placeholder { color: #85828a; }
.name-card input:focus { box-shadow: 0 4px 14px -6px var(--red-hot); border-color: var(--silver); border-bottom-color: var(--red-hot); }

/* Goal: glossy red bar in a silver frame */
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.goal-head .eyebrow { margin: 0; }
.goal-amt { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--chrome); }
.goal-amt .of { font-weight: 400; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.bar {
  position: relative; height: 22px; margin: 12px 0 14px; padding: 2px;
  background: var(--silver-edge);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.bar-track {
  position: relative; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, #000, #141216);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.95);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.bar-track::before { /* faint red pilot glow, even at $0 */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34px;
  background: radial-gradient(60% 90% at 0% 50%, rgba(255,43,69,.45), transparent 70%);
  animation: flicker 1.8s ease-in-out infinite alternate;
}
.bar-track::after { /* quarter marks */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(201,206,214,.25) calc(25% - 1px) 25%, transparent 25%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(201,206,214,.25) calc(50% - 1px) 50%, transparent 50%),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(201,206,214,.25) calc(75% - 1px) 75%, transparent 75%);
}
#goal-fill { /* glossy red latex with a travelling highlight */
  position: relative; z-index: 1; height: 100%; width: 0%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 40%, rgba(255,255,255,0) 50%, rgba(0,0,0,.25) 100%),
    linear-gradient(100deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%),
    linear-gradient(90deg, #4a000b, #a3001c 45%, #e0122f 85%, #ff4a5e);
  background-size: 100% 100%, 220% 100%, 100% 100%;
  box-shadow: 0 0 14px 2px rgba(220,16,46,.6);
  animation: gloss 3.5s ease-in-out infinite; transition: width .8s ease;
}
#goal-fill::after { content: ""; position: absolute; right: -5px; top: -4px; bottom: -4px; width: 12px;
  background: radial-gradient(50% 50% at 50% 50%, #ffffff, rgba(255,43,69,.8) 45%, transparent 75%); filter: blur(1px); }
@keyframes gloss { 0% { background-position: 0 0, 160% 0, 0 0; } 100% { background-position: 0 0, -60% 0, 0 0; } }

.share-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-card .btn { font-size: 14px; letter-spacing: 1.2px; padding: 13px 10px; }

footer { text-align: center; margin-top: 18px; font-family: var(--display); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ash); }
footer a { color: var(--silver); text-decoration: none; border-bottom: 1px solid var(--crimson); padding: 6px 2px; }
footer > span { margin: 0 6px; color: #5a5860; }
footer .fine { margin: 14px 0 0; font-family: var(--body); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: #a3a0a8; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(90% 60% at 50% 100%, rgba(200,16,46,.4), transparent 70%), radial-gradient(70% 45% at 50% 40%, rgba(58,0,9,.6), transparent 75%), rgba(3,2,3,.97);
  overflow-y: auto;
}
.gate-card {
  --cut: 22px; position: relative; isolation: isolate;
  width: min(360px, 100%); padding: 24px 22px 20px; text-align: center;
  background: var(--silver-edge);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.gate-card::before { content: ""; position: absolute; inset: 2px; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 20%), radial-gradient(100% 60% at 50% 0%, rgba(122,0,18,.45), transparent 70%), #070506;
  clip-path: inherit; }
.crest-gate { width: 96px; height: 96px; margin-bottom: 8px; }
.gate-card h1 { font-size: 50px; }
.gate-card p { font-size: 15.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 14px; }
.gate-card .btn { width: 100%; }
.gate-card .leave { display: inline-block; margin-top: 12px; padding: 6px 10px; color: var(--ash); font-family: var(--display); letter-spacing: 1.6px; text-transform: uppercase; font-size: 13px; }

/* ---------- Modals ---------- */
.modal { border: none; padding: 0; background: transparent; max-width: 380px; width: calc(100% - 28px); color: var(--bone); overflow: visible; max-height: calc(100dvh - 24px); }
.modal::backdrop { background: radial-gradient(80% 50% at 50% 60%, rgba(122,0,18,.45), rgba(3,2,3,.9)); }
.modal-card {
  --cut: 18px; position: relative; isolation: isolate; padding: 22px 18px 18px;
  background: var(--silver-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.modal-card::before { content: ""; position: absolute; inset: 2px; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%), radial-gradient(120% 50% at 50% 0%, rgba(200,16,46,.3), transparent 70%), linear-gradient(180deg, #0e0b0d, #040304);
  clip-path: inherit; }
.modal-card h2 { margin: 0 0 8px; font-size: 38px; line-height: 1;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(200,16,46,.6)); }
.modal-card p { font-size: 16px; line-height: 1.5; color: var(--bone); margin: 8px 0; }
#punish-mock { font-family: var(--body); font-weight: 600; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--red-hot); margin-bottom: 10px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.modal-actions .btn { font-size: 14px; padding: 13px 8px; letter-spacing: 1px; }
#punish-ok { width: 100%; margin-top: 14px; }

/* Punishment: Mina flipping you off, front and centre */
.punish-card { padding-top: 0; }
.brat-hero { position: relative; margin: 2px -16px 0; height: min(46dvh, 330px); overflow: hidden; }
.brat-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 2%; display: block; }
.brat-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,3,4,0) 55%, rgba(4,3,4,.85) 88%, #040304); }
.brat-hero .stamp {
  position: absolute; z-index: 1; right: 12px; bottom: 14px; transform: rotate(-8deg);
  padding: 2px 12px 4px; font-family: var(--gothic); font-size: 30px; line-height: 1;
  color: var(--chrome); background: rgba(122,0,18,.82);
  box-shadow: inset 0 0 0 2px var(--silver), 0 4px 14px rgba(0,0,0,.7);
  text-shadow: 0 1px 0 #000;
}
.punish-card #punish-mock { margin-top: -4px; }

@media (min-width: 800px) { .phone { padding-top: 36px; } h1 { font-size: 56px; } }
@media (max-width: 350px) { h1 { font-size: 38px; } .sub { letter-spacing: 1.6px; font-size: 11.5px; } .grid { gap: 5px; } }
@media (max-height: 700px) { .brat-hero { height: 38dvh; } .crest-gate.has-hero { width: 140px; height: 162px; } }
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .heat, .bar-track::before, .btn.fire, #goal-fill, .cell.today { animation: none !important; }
  #goal-fill, .btn { transition: none; }
}

/* ---------- Join + leaderboard (server mode) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join-title, .board-title { margin: 0 0 12px; font-size: 32px; line-height: 1;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(200,16,46,.5)); }
.handle-field { display: flex; align-items: stretch; background: #050405; border: 1px solid #4a4850; border-bottom: 2px solid var(--crimson); }
.handle-field span { display: grid; place-items: center; padding: 0 4px 0 12px; font: 700 20px/1 var(--display); color: var(--red-hot); }
.handle-field:focus-within { border-color: var(--silver); border-bottom-color: var(--red-hot); box-shadow: 0 4px 14px -6px var(--red-hot); }
.join-card input { width: 100%; min-height: 50px; padding: 10px 12px; font: 600 17px/1.2 var(--body); color: var(--bone); background: transparent; border: 0; outline: none; border-radius: 0; }
.join-card input::placeholder { color: #85828a; }
.join-card #join-name { margin-top: 8px; min-height: 44px; font-size: 15px; background: #050405; border: 1px solid #34323a; }
.join-card #join-name:focus { border-color: var(--silver); }
.join-card .btn { width: 100%; }
.join-error { min-height: 1.2em; margin: 6px 0 8px; font-size: 14px; font-weight: 600; color: var(--red-hot); }
.join-card .fine { margin: 10px 0 0; font-size: 12.5px; color: var(--ash); }
.utc-hint { font-size: 12.5px !important; color: var(--ash) !important; margin-top: 2px !important; }

.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.board-title { margin: 0; font-size: 30px; }
.board-totals { margin: 0; font: 500 12px var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.board-sub { margin: 16px 0 8px; font: 600 13px var(--display); letter-spacing: 2.2px; text-transform: uppercase; color: var(--silver);
  display: flex; align-items: center; gap: 10px; }
.board-sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--steel), transparent); }
.board-sub.failed::after { background: linear-gradient(90deg, var(--crimson), transparent); }
.fail-stamp { display: inline-block; padding: 1px 10px 2px; font: 400 22px/1 var(--gothic); letter-spacing: 1px; color: var(--chrome);
  background: linear-gradient(180deg, #a3001c, #5a000c); box-shadow: inset 0 0 0 1.5px var(--silver); transform: rotate(-3deg); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 56px; align-items: center; gap: 8px;
  padding: 8px 10px; background: linear-gradient(180deg, #17151a, #0b0a0c); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px #2a282e;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.row .rank { font: 700 15px var(--display); color: var(--steel); text-align: center; }
.row:nth-child(1):not(.failed):not(.empty) .rank { color: var(--chrome); text-shadow: 0 0 8px rgba(255,255,255,.4); }
.row .who { min-width: 0; display: flex; flex-direction: column; }
.row .handle { font: 600 15.5px/1.2 var(--body); color: var(--bone); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .pname { font-size: 12.5px; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 500 11.5px var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--ash); }
.row .num { text-align: right; line-height: 1; }
.row .num b { display: block; font: 700 24px/1 var(--display); background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row .num small { font: 500 10.5px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--ash); }
.row.failed { background: linear-gradient(180deg, #1c0307, #0b0204); box-shadow: inset 0 0 0 1px #4a0010; }
.row.failed .handle { color: #d9cfd2; text-decoration: line-through; text-decoration-color: var(--red-hot); text-decoration-thickness: 2px; }
.row.failed .num b { background: none; color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }
.fail-tag { padding: 1px 6px; font: 700 11px var(--display); letter-spacing: 1px; color: #fff; background: var(--crimson); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.today-tag { color: var(--red-hot); }
.row.me { box-shadow: inset 0 0 0 1.5px var(--silver), 0 0 12px rgba(200,16,46,.35); }
.row.empty { grid-template-columns: 1fr; font-size: 14px; color: var(--ash); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(400px, calc(100% - 28px)); padding: 12px 16px; font-weight: 600; text-align: center; color: var(--bone);
  background: linear-gradient(180deg, #1d1b20, #070607); box-shadow: inset 0 0 0 1px var(--silver), 0 8px 30px rgba(0,0,0,.7); }

/* ---------- Admin (mina.html) ---------- */
.admin .phone { max-width: 760px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-top h1 { font-size: 36px; }
.admin-top .btn { padding: 8px 14px; font-size: 13px; min-height: 40px; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.tot { padding: 10px 6px; text-align: center; background: linear-gradient(180deg, #17151a, #0b0a0c); box-shadow: inset 0 0 0 1px #2e2c33;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.tot b { display: block; font: 700 26px/1 var(--display); background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tot.red b { background: none; color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }
.tot small { font: 500 10.5px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.controls { display: grid; gap: 8px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { all: unset; flex: none; cursor: pointer; padding: 8px 12px; font: 600 12.5px var(--display); letter-spacing: 1px; text-transform: uppercase;
  color: var(--silver); background: #0d0c0e; box-shadow: inset 0 0 0 1px #3a3840; }
.chip[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #b3001c, #6a000f); box-shadow: inset 0 0 0 1px var(--silver); }
.ctl-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
@media (max-width: 520px) { .ctl-row { grid-template-columns: minmax(0,1fr) auto; } .ctl-row input { grid-column: 1 / -1; } }
.ctl-row input, .ctl-row select, .key-form input { min-height: 44px; padding: 8px 10px; font: 600 15px var(--body); color: var(--bone); background: #050405; border: 1px solid #4a4850; border-radius: 0; }
.ctl-row .btn { padding: 10px 12px; font-size: 13px; min-height: 44px; }
.pcard { margin-bottom: 10px; }
.pcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pcard-head a { font: 600 18px var(--body); color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--crimson); }
.pcard-head .pname { display: block; font-size: 13px; color: var(--ash); }
.pstatus { flex: none; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; text-align: center; }
.pstats div { padding: 6px 2px; background: #0b0a0c; box-shadow: inset 0 0 0 1px #2a282e; }
.pstats b { display: block; font: 700 20px/1.1 var(--display); color: var(--chrome); }
.pstats small { font: 500 10px var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--ash); }
.mini { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.mini i { aspect-ratio: 1; background: #1a191d; box-shadow: inset 0 0 0 1px #2c2a30; font-style: normal; font: 600 8px/1 var(--display); color: #6f6c74; display: grid; place-items: center; }
.mini i.k { background: radial-gradient(circle, #ff5c70, #a3001c 70%); color: #fff; box-shadow: none; }
.mini i.b { background: #000; box-shadow: inset 0 0 0 1.5px var(--red-hot); color: var(--red-hot); }
.mini i.t { outline: 1px solid var(--silver); }
.pdates { margin: 8px 0 0; font-size: 12.5px; color: var(--ash); }
.owed { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.owed li { padding: 4px 0; border-top: 1px solid #2a1418; color: var(--bone); }
.owed li small { color: var(--red-hot); margin-right: 6px; font-weight: 600; }
.premove { margin-top: 10px; }
.premove .btn { font-size: 12.5px; padding: 8px 14px; min-height: 38px; }
.key-form { display: grid; gap: 10px; }
.admin-empty { color: var(--ash); text-align: center; padding: 20px 0; }

/* ---------- Mina's popups (after the 18+ gate only) ---------- */
.pop-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 12px 0 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 14px 4px 6px; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--silver);
  background: rgba(5,3,4,.72); border: 1px solid #4a4850; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: #18171a;
  box-shadow: inset 0 0 0 1px #5d626a; transition: background .2s ease, box-shadow .2s ease; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, #f3f5f8, #7d838c); transition: transform .2s ease; }
.switch input:checked + .knob { background: linear-gradient(90deg, #7a0012, #d4102e); box-shadow: inset 0 0 0 1px var(--silver), 0 0 12px rgba(255,43,69,.6); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:checked ~ .sw-label { color: var(--chrome); text-shadow: 0 0 8px rgba(255,43,69,.7); }
.switch input:focus-visible + .knob { outline: 2px solid var(--chrome); outline-offset: 2px; }
.locked-in .switch:has(#lockin-toggle:checked) { border-color: var(--crimson); }

.mina-pop { border: none; padding: 0; margin: auto; background: transparent; color: var(--bone); overflow: visible;
  width: min(400px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 20px); }
.mina-pop::backdrop { background: radial-gradient(80% 55% at 50% 55%, rgba(122,0,18,.42), rgba(3,2,3,.86));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pop-card { position: relative; padding: 8px 8px 12px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 20%), radial-gradient(120% 40% at 50% 100%, rgba(200,16,46,.28), transparent 70%), #060405;
  border: 2px solid var(--silver);
  box-shadow: 0 0 0 2px var(--crimson), 0 0 22px 2px rgba(255,43,69,.55), 0 0 70px rgba(200,16,46,.4), inset 0 0 18px rgba(200,16,46,.25); }
.pop-frame { position: relative; overflow: hidden; border-radius: 3px; background: #000; box-shadow: 0 0 0 1px #3a3d43; }
.pop-frame img { display: block; width: 100%; height: auto; max-height: min(60dvh, 540px); object-fit: contain; margin: 0 auto; }
.pop-tag { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px 4px; border-radius: 3px; pointer-events: none;
  font: 600 12px/1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--silver);
  background: rgba(6,4,5,.86); border: 1px solid var(--crimson); box-shadow: 0 0 10px rgba(200,16,46,.45); }
.pop-x { all: unset; box-sizing: border-box; position: absolute; z-index: 2; top: -13px; right: -11px; width: 44px; height: 44px;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  font: 400 30px/1 var(--display); color: #fff; background: radial-gradient(circle at 50% 35%, #2a0a10, #070405);
  box-shadow: 0 0 0 2px var(--silver), 0 0 0 4px var(--crimson), 0 0 14px rgba(255,43,69,.7); -webkit-tap-highlight-color: transparent; }
.pop-x:active { transform: scale(.94); }
.pop-x:focus-visible { outline: 2px solid var(--chrome); outline-offset: 4px; }
.pop-line { margin: 10px 4px 2px; text-align: center; text-wrap: balance; font-family: var(--gothic); font-size: 27px; line-height: 1.12;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(200,16,46,.75)); }
.mina-pop.censored .pop-line { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 1.4px; text-transform: uppercase;
  background: none; color: var(--red-hot); filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 8px rgba(255,43,69,.6)); }
.pop-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; margin-top: 10px; }
.pop-actions .btn { font-size: 13.5px; letter-spacing: 1px; padding: 12px 8px; }

.mina-pop.in .pop-card { animation: pop-in .55s cubic-bezier(.2,1.4,.4,1) both, pop-shake .5s .5s ease-in-out both; }
.mina-pop.in::backdrop { animation: pop-fade .3s ease both; }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.55) rotate(-4deg); } 70% { opacity: 1; transform: scale(1.05) rotate(1deg); } 100% { transform: none; } }
@keyframes pop-shake { 0%, 100% { transform: none; } 15% { transform: translateX(-7px) rotate(-1.2deg); } 30% { transform: translateX(6px) rotate(1deg); }
  45% { transform: translateX(-5px) rotate(-.6deg); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-soft { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 700px) { .pop-frame img { max-height: 52dvh; } .pop-line { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) {
  .mina-pop.in .pop-card { animation: pop-soft .2s ease both; }
  .switch .knob, .switch .knob::after { transition: none; }
}

/* ---------- v9: Mina's Orders, points, badges, ranks ---------- */
.order-teaser-title, .me-rank { margin: 0; font-size: 30px; line-height: 1.02;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(200,16,46,.55)); }
.order-teaser .hint { color: var(--bone); }

/* Today's order card */
.order-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.order-card-head .eyebrow { margin: 0; }
.order-status { flex: none; padding: 2px 8px; font: 700 11px var(--display); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--silver); box-shadow: inset 0 0 0 1px #4a4850; background: #0b0a0c; }
.order-status.s-pending { color: #fff; background: linear-gradient(180deg, #a3001c, #5a000c); box-shadow: inset 0 0 0 1px var(--silver); animation: gleam-chip 1.8s ease-in-out infinite; }
.order-status.s-done { color: #0a0a0c; background: linear-gradient(180deg, #ffffff, #c9ced6 45%, #8a9099); }
.order-status.s-weak { color: var(--red-hot); background: #000; box-shadow: inset 0 0 0 1.5px var(--red-hot); }
@keyframes gleam-chip { 50% { box-shadow: inset 0 0 0 1px var(--chrome), 0 0 10px rgba(255,43,69,.7); } }
.order-card-text { margin: 10px 0 12px; font: 600 17px/1.4 var(--body); color: var(--bone); }
.order-card.answered .order-card-text { color: var(--muted); }
.order-card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.order-card-actions:has(#order-card-wish:not([hidden])) { grid-template-columns: 1.3fr 1fr; }
.order-card-actions .btn { font-size: 14px; letter-spacing: 1.2px; padding: 12px 8px; }

/* Full-screen order overlay */
.order-ov { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #050304; color: var(--bone); overflow: hidden; }
.order-ov::backdrop { background: #050304; }
.order-bg { position: absolute; inset: -6px; background: center 0% / cover no-repeat #050304;
  filter: blur(1px) brightness(.95) saturate(1.05) contrast(1.05); opacity: .82; transform: scale(1.01); }
.order-vig { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,3,4,.0) 0%, rgba(5,3,4,.0) 30%, rgba(5,3,4,.55) 50%, rgba(5,3,4,.86) 64%, rgba(5,3,4,.92) 100%),
    radial-gradient(130% 90% at 50% 22%, transparent 55%, rgba(58,0,9,.55) 100%),
    linear-gradient(180deg, rgba(160,0,24,.10), rgba(160,0,24,.18));
  box-shadow: inset 0 0 70px 10px rgba(90,0,14,.45); }
.order-inner { position: relative; z-index: 1; height: 100%; overflow-y: auto; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: calc(56px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom)); text-align: center; }
.order-inner > :first-child { margin-top: auto; }
@media (min-width: 900px) {
  .order-bg { background-position: center 12%; background-size: contain; }
  .order-vig { background:
    linear-gradient(90deg, rgba(5,3,4,.9) 0%, transparent 28%, transparent 72%, rgba(5,3,4,.9) 100%),
    linear-gradient(180deg, transparent 0%, transparent 34%, rgba(5,3,4,.6) 52%, rgba(5,3,4,.9) 66%, rgba(5,3,4,.94) 100%),
    linear-gradient(180deg, rgba(160,0,24,.10), rgba(160,0,24,.18)); }
}
.order-x { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.order-eyebrow { margin: 0; font: 600 14px var(--display); letter-spacing: 3.4px; text-transform: uppercase; color: var(--red-hot);
  text-shadow: 0 0 10px rgba(255,43,69,.9), 0 1px 2px #000, 0 0 6px #000, 0 0 16px #000; display: flex; align-items: center; gap: 10px; }
.order-eyebrow::before, .order-eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--silver) 60%, var(--crimson)); }
.order-eyebrow::after { transform: scaleX(-1); }
.order-text { margin: 0; font-family: var(--gothic); font-size: clamp(31px, 8.6vw, 54px); line-height: 1.08; letter-spacing: .3px; text-wrap: balance;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 3px #000) drop-shadow(0 0 10px rgba(255,255,255,.22)) drop-shadow(0 0 16px rgba(200,16,46,.8)) drop-shadow(0 0 30px rgba(0,0,0,.95)); }
.order-acts { display: grid; gap: 10px; margin-top: 6px; }
.order-acts .btn.ghost { background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 48%, rgba(255,255,255,0) 52%), rgba(10,8,10,.82); }
.order-later { all: unset; cursor: pointer; justify-self: center; padding: 10px 18px; min-height: 24px;
  font: 500 13px var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--ash); border-bottom: 1px solid rgba(200,16,46,.6); }
.order-later:focus-visible { outline: 2px solid var(--chrome); outline-offset: 2px; }
.order-result { display: grid; gap: 10px; }
.order-verdict { margin: 0; justify-self: center; padding: 2px 16px 6px; font: 400 40px/1 var(--gothic); color: var(--chrome);
  background: linear-gradient(180deg, #a3001c, #5a000c); box-shadow: inset 0 0 0 2px var(--silver), 0 6px 24px rgba(0,0,0,.7); transform: rotate(-4deg); }
.order-ov.is-done .order-verdict { color: #0a0a0c; background: linear-gradient(180deg, #ffffff, #c9ced6 40%, #7d838c 60%, #e6e9ed); box-shadow: 0 0 22px rgba(255,43,69,.6); }
.order-line { margin: 4px 0 6px; font: 600 18px/1.4 var(--body); color: var(--bone); text-shadow: 0 1px 3px #000, 0 0 12px #000; text-wrap: balance; }
.order-ov.is-weak .order-line { color: #ffd9de; }
.order-ov.is-done .order-text, .order-ov.is-weak .order-text { font-size: clamp(26px, 7vw, 44px); opacity: .85; }
.order-ov.in .order-inner { animation: order-in .7s cubic-bezier(.2,1.1,.3,1) both; }
.order-ov.in .order-bg { animation: order-bg 1.4s ease both; }
@keyframes order-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes order-bg { from { opacity: 0; transform: scale(1.08); } to { opacity: .82; transform: scale(1.01); } }
@media (max-height: 680px) { .order-text { font-size: clamp(26px, 7.4vw, 44px); } .order-inner { gap: 12px; } }

/* Player card: points, rank, progress, badges */
.me-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.me-points { text-align: right; line-height: 1; }
.me-points b { display: block; font: 700 44px/1 var(--display); background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(200,16,46,.6)); }
.me-points small { font: 500 11px var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.rank-bar { position: relative; height: 16px; margin: 12px 0 0; padding: 2px; background: var(--silver-edge); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.rank-bar .bar-track { clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.rank-bar .bar-track::after { display: none; }
#me-fill { position: relative; z-index: 1; height: 100%; width: 0%; transition: width .8s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.1) 45%, rgba(0,0,0,.2)), linear-gradient(90deg, #4a000b, #c8102e 70%, #ff4a5e);
  box-shadow: 0 0 10px rgba(220,16,46,.6); }
.me-next { margin-top: 6px !important; font-size: 13.5px !important; }
.me-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.me-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; background: #0b0a0c; box-shadow: inset 0 0 0 1px #3a3840; }
.me-badge small { font: 600 11.5px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--silver); }
.me-badge .badge { width: 34px; height: 34px; }
.me-badge .badge svg { width: 22px; height: 22px; }
.me-nobadge { font-size: 13.5px !important; }

/* Badges (leaderboard + player card) */
.badge { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a0a10, #070405); box-shadow: inset 0 0 0 1px #5d626a;
  -webkit-tap-highlight-color: transparent; }
.badge svg { width: 17px; height: 17px; display: block; }
.badge:focus-visible { outline: 2px solid var(--chrome); outline-offset: 1px; }
.badge.b-favourite { box-shadow: inset 0 0 0 1.5px var(--silver), 0 0 8px rgba(255,43,69,.7); }
.badge.b-borndenied { background: radial-gradient(circle at 50% 35%, #3a0009, #070405); box-shadow: inset 0 0 0 1.5px #c9ced6, 0 0 7px rgba(200,16,46,.65); }
.badge-tip.t-borndenied b { color: #e9ecf0; text-shadow: 0 0 8px rgba(200,16,46,.9); }
.badge.b-goodboy { background: radial-gradient(circle at 50% 35%, #3a0009, #070405); box-shadow: inset 0 0 0 1.5px #c9ced6, 0 0 7px rgba(255,43,69,.6); }
.badge-tip.t-goodboy b { color: #e9ecf0; text-shadow: 0 0 8px rgba(255,43,69,.9); }
.badge.b-goonpuppet { background: radial-gradient(circle at 50% 35%, #3a0009, #070405); box-shadow: inset 0 0 0 1.5px #e9ecf0, 0 0 7px rgba(200,16,46,.7); }
.badge-tip.t-goonpuppet b { color: #e9ecf0; text-shadow: 0 0 8px rgba(200,16,46,.9); }
.badge.b-weak { background: #000; box-shadow: inset 0 0 0 1px var(--red-hot); }
.badges { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.badge-tip { position: fixed; z-index: 70; max-width: min(260px, calc(100vw - 16px)); padding: 8px 12px; text-align: left;
  background: linear-gradient(180deg, #1d1b20, #070607); box-shadow: inset 0 0 0 1px var(--silver), 0 0 0 1px #000, 0 8px 26px rgba(0,0,0,.8), 0 0 16px rgba(200,16,46,.35); }
.badge-tip::before { content: ""; position: absolute; top: -6px; left: calc(var(--arrow, 50%) - 6px); width: 12px; height: 6px;
  background: var(--silver); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.badge-tip.above::before { top: auto; bottom: -6px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.badge-tip b { display: block; font: 400 21px/1.05 var(--gothic); color: var(--chrome); text-shadow: 0 0 8px rgba(200,16,46,.7); }
.badge-tip span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--bone); }
.badge-tip.t-weak b { color: var(--red-hot); }

/* Leaderboard row: rank chip + badges under the name, points on the right */
.row { grid-template-columns: 24px minmax(0, 1fr) auto 50px; }
.row .rtags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.rank-chip { padding: 1px 6px; font: 600 10.5px/1.5 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--silver); background: #0b0a0c; box-shadow: inset 0 0 0 1px #3a3840; white-space: nowrap; }
.rank-chip.r-gooner { color: #fff; box-shadow: inset 0 0 0 1px var(--steel); }
.rank-chip.r-devoted { color: #fff; background: linear-gradient(180deg, #7a0012, #3a0009); box-shadow: inset 0 0 0 1px var(--crimson); }
.rank-chip.r-owned { color: #0a0a0c; background: linear-gradient(180deg, #ffffff, #c9ced6 45%, #8a9099); box-shadow: 0 0 8px rgba(255,43,69,.6); }
.row .badge { width: 22px; height: 22px; }
.row .badge svg { width: 15px; height: 15px; }
.row .streak-tag { color: var(--silver); }
.row .num small { letter-spacing: 1.4px; }

/* Admin additions */
.pscore { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; }
.pscore .pts { font: 700 20px var(--display); color: var(--chrome); }
.pscore .pts small { font: 500 10.5px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--ash); margin-left: 3px; }
.pbadges { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 600 11.5px var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--silver); }
.pbadges span { display: inline-flex; align-items: center; gap: 3px; }
.pbadges svg { width: 16px; height: 16px; }
.mini.orders i.d { background: linear-gradient(180deg, #ffffff, #9aa0a9); color: #0a0a0c; box-shadow: none; }
.mini.orders i.w { background: #000; box-shadow: inset 0 0 0 1.5px var(--red-hot); color: var(--red-hot); }
.mini-label { margin: 8px 0 3px; font: 500 10.5px var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ash); }
.premove { display: flex; flex-wrap: wrap; gap: 8px; }
.premove .btn.bd-on, .premove .btn.gb-on, .premove .btn.gp-on { color: #fff; background: linear-gradient(180deg, #7a0012, #2a0006); box-shadow: inset 0 0 0 1px #c9ced6; }
.premove .btn.fav-on { color: #fff; background: linear-gradient(180deg, #a3001c, #5a000c); box-shadow: inset 0 0 0 1px var(--silver); }

@media (prefers-reduced-motion: reduce) {
  .order-ov.in .order-inner, .order-ov.in .order-bg, .order-status.s-pending { animation: none !important; }
  #me-fill { transition: none; }
}
.me-badges:empty { display: none; }

/* ===== v11: Mina.exe — Chapter 1 ===== */
.mx-entry {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 0 0 14px; padding: 12px 14px;
  background: linear-gradient(180deg, #1a1a1c, #0c0c0e);
  box-shadow: inset 0 0 0 1px #3a3a40, inset 0 1px 0 rgba(255,255,255,.06);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  color: #a8a8ae; -webkit-tap-highlight-color: transparent;
}
.mx-entry:active { filter: brightness(1.15); }
.mx-entry-ico {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  font-size: 18px; color: #7a7a82; background: #121214; box-shadow: inset 0 0 0 1px #2e2e34;
}
.mx-entry-copy { display: flex; flex-direction: column; min-width: 0; }
.mx-entry-copy b { font: 600 14px/1.2 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: #c0c0c6; }
.mx-entry-copy small { font: 400 12px/1.3 var(--body); color: #6e6e74; }

.mina-exe {
  all: unset; box-sizing: border-box; position: fixed; inset: 0; z-index: 80;
  display: none; width: 100%; height: 100%; max-width: none; max-height: none;
  padding: 0; margin: 0; border: 0; background: #000; color: var(--bone);
  overflow: hidden;
}
.mina-exe[open] { display: block; }
.mina-exe::backdrop { background: #000; }
.mx-shell {
  position: relative; display: grid; grid-template-rows: auto 1fr auto;
  width: 100%; height: 100%; height: 100dvh; background: #050304; overflow: hidden;
}
.mx-scanlines {
  pointer-events: none; position: absolute; inset: 0; z-index: 5; opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.55) 2px 3px);
  mix-blend-mode: multiply;
}
.mx-shell::after {
  content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 4; opacity: .08;
  background: linear-gradient(105deg, transparent 40%, rgba(255,43,69,.35) 50%, transparent 60%);
  animation: mx-glitch 4.8s steps(2) infinite;
}
@keyframes mx-glitch {
  0%, 90%, 100% { transform: none; opacity: .05; }
  92% { transform: translateX(2px); opacity: .2; }
  94% { transform: translateX(-3px); opacity: .12; }
  96% { transform: translateX(1px); opacity: .25; }
}
.mx-top {
  position: relative; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(8px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #121014, #070507);
  box-shadow: inset 0 -1px 0 #2a2830;
}
.mx-brand { font: 600 13px/1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--silver); display: flex; align-items: center; gap: 6px; }
.mx-brand small { color: var(--ash); font-weight: 500; letter-spacing: 1px; }
.mx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 8px rgba(255,43,69,.9); animation: flicker 1.4s ease-in-out infinite alternate; }
.mx-int { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mx-int-track { height: 8px; background: #1a181c; box-shadow: inset 0 0 0 1px #3a3840; }
.mx-int-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #4a000b, #c8102e 70%, #ff4a5e); transition: width .45s ease; box-shadow: 0 0 8px rgba(200,16,46,.55); }
.mx-shell.mx-mid .mx-int-fill { background: linear-gradient(90deg, #4a000b, #c8102e); }
.mx-shell.mx-low .mx-int-fill { background: linear-gradient(90deg, #2a0006, #7a0012); animation: flicker 1.1s ease-in-out infinite alternate; }
#mx-int-lab { font: 500 10.5px/1 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--silver); }
.mx-x {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  width: 36px; height: 36px; display: grid; place-items: center;
  font: 500 26px/1 var(--display); color: var(--silver);
}
.mx-x:active { color: var(--red-hot); }

.mx-stage {
  position: relative; z-index: 3; overflow: auto; padding: 14px 14px 18px;
  -webkit-overflow-scrolling: touch;
}
.mx-win {
  position: relative; max-width: 520px; margin: 0 auto;
  background: linear-gradient(180deg, #141218, #08070a);
  box-shadow: inset 0 0 0 1px #3a3842, 0 12px 40px rgba(0,0,0,.65);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.mx-win.mx-clean { background: linear-gradient(180deg, #1c1c20, #101014); box-shadow: inset 0 0 0 1px #5a5a62; }
.mx-win.mx-crack { animation: mx-crack .6s ease-out both; }
@keyframes mx-crack {
  0% { filter: none; transform: none; }
  40% { filter: hue-rotate(-8deg) contrast(1.2); transform: translateX(-2px) skewX(-.4deg); }
  70% { box-shadow: inset 0 0 0 1px #c8102e, 0 0 24px rgba(200,16,46,.45); }
  100% { box-shadow: inset 0 0 0 1px #7a0012, 0 12px 40px rgba(0,0,0,.65); }
}
.mx-titlebar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 12px; background: #0c0b0e; box-shadow: inset 0 -1px 0 #2a2830;
  font: 600 12px/1 var(--display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--silver);
}
.mx-dots { color: #5a5860; letter-spacing: 3px; font-size: 9px; }
.mx-body { padding: 14px 14px 16px; }
.mx-sys { margin: 0 0 8px; font: 600 15px/1.3 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--chrome); }
.mx-hint { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.mx-cursor { margin: 8px 0 0; color: var(--silver); animation: flicker 1s steps(1) infinite; }
.mx-mina {
  margin: 10px 0; min-height: 1.3em;
  font-family: var(--gothic); font-size: clamp(22px, 6.2vw, 30px); line-height: 1.15;
  color: var(--chrome); text-shadow: 0 0 10px rgba(200,16,46,.55);
}
.mx-mina.mx-typing::after { content: "▋"; color: var(--red-hot); margin-left: 2px; animation: flicker .7s steps(1) infinite; }
.mx-choices { display: grid; gap: 8px; margin-top: 14px; }
.mx-choice {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; text-align: center;
  min-height: 48px; padding: 12px 14px;
  font: 600 15px/1.3 var(--display); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--silver);
  background: linear-gradient(180deg, #1c1b20, #0a090c);
  box-shadow: inset 0 0 0 1px #4a4850, inset 0 1px 0 rgba(255,255,255,.12);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.mx-choice.mx-fire {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 50%), linear-gradient(90deg, #4a000b, #c8102e 55%, #8a0016);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(201,206,214,.4);
}
.mx-choice.mx-glow { box-shadow: inset 0 0 0 1px #c8102e, 0 0 16px rgba(200,16,46,.55); color: #fff; }
.mx-choice.mx-twitch { animation: mx-twitch 1.6s ease-in-out 3; }
@keyframes mx-twitch {
  0%, 100% { transform: translateX(0); } 20% { transform: translateX(-2px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-1px); }
}
.mx-choice.mx-obey {
  font-size: 11px; min-height: 28px; padding: 6px 10px; opacity: .55; justify-self: end; width: max-content;
  color: var(--ash); box-shadow: inset 0 0 0 1px #2a2830;
}
.mx-choice:active { filter: brightness(1.2); }
.mx-choice.mx-flip { animation: mx-flip .5s ease both; }
@keyframes mx-flip {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(40px) rotateY(90deg); opacity: 0; }
  55% { transform: translateX(-40px) rotateY(-90deg); opacity: 0; }
  100% { transform: none; opacity: 1; color: #fff; background: linear-gradient(90deg, #4a000b, #c8102e); }
}

.mx-prog { margin: 8px 0 12px; }
.mx-prog-track { height: 14px; background: #1a181c; box-shadow: inset 0 0 0 1px #3a3840; }
.mx-prog-fill { height: 100%; width: 0; background: linear-gradient(90deg, #c9ced6, #e9ecf0); transition: width .05s linear; }
.mx-prog-fill.mx-drip {
  background: linear-gradient(90deg, #4a000b, #c8102e 60%, #ff2b45);
  box-shadow: 0 0 12px rgba(200,16,46,.7);
  animation: mx-drip .9s ease-in-out infinite alternate;
}
@keyframes mx-drip { 0% { filter: brightness(1); } 100% { filter: brightness(1.25); } }

.mx-img { margin: 8px auto 12px; max-width: 220px; }
.mx-img.mx-img-sm { max-width: 160px; }
.mx-img img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px #3a3840, 0 8px 24px rgba(0,0,0,.6); }
.mx-img.mx-reveal { animation: mx-reveal .7s ease both; }
@keyframes mx-reveal {
  0% { opacity: 0; filter: contrast(2) brightness(.4) hue-rotate(-20deg); transform: scale(1.04); }
  100% { opacity: 1; filter: none; transform: none; }
}
.mx-icons { text-align: center; letter-spacing: 6px; color: var(--red-hot); margin: 4px 0 8px; font-size: 18px; }
.mx-err {
  margin: 10px 0; padding: 10px 12px; background: #1a0508; color: var(--red-hot);
  box-shadow: inset 0 0 0 1px #c8102e; font: 600 13.5px/1.35 var(--display); letter-spacing: .8px;
}
.mx-threat { margin-top: 8px; padding: 8px 10px; background: #12060a; box-shadow: inset 0 0 0 1px #7a0012; color: var(--chrome); font: 600 14px var(--display); }
.mx-laugh span { display: inline-block; margin-left: 6px; color: var(--red-hot); animation: flicker .8s steps(2) infinite; }
.mx-scan { position: relative; overflow: hidden; padding: 8px 0; }
.mx-scan-beam {
  position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #ff2b45, transparent);
  animation: mx-beam 1.8s linear infinite; box-shadow: 0 0 12px rgba(255,43,69,.8);
}
@keyframes mx-beam { 0% { top: 0; } 100% { top: 100%; } }

.mx-toggles { display: grid; gap: 8px; margin: 12px 0; }
.mx-tog {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px; background: #0c0b0e; box-shadow: inset 0 0 0 1px #3a3840;
  font: 600 14px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--silver);
}
.mx-knob {
  width: 42px; height: 24px; border-radius: 12px; background: #1a181c; box-shadow: inset 0 0 0 1px #5a5860; position: relative;
}
.mx-knob::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #7d838c; transition: left .2s ease, background .2s ease;
}
.mx-tog.on .mx-knob { background: #3a0009; box-shadow: inset 0 0 0 1px #c8102e; }
.mx-tog.on .mx-knob::after { left: 21px; background: #ff2b45; }
.mx-win .mx-x { position: absolute; top: 4px; right: 6px; z-index: 2; }
.mx-night { filter: saturate(1.2) brightness(.85); }
.mx-night .mx-stage { background: radial-gradient(60% 50% at 50% 30%, rgba(122,0,18,.35), transparent 70%); }

/* Click-to-Resist */
.mx-stage.mx-resist { padding: 0; display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; }
.mx-resist-hud { position: relative; z-index: 3; padding: 10px 14px; background: rgba(5,3,4,.85); }
.mx-resist-field { position: relative; z-index: 2; height: 100%; overflow: hidden; }
.mx-resist-btn {
  all: unset; box-sizing: border-box; cursor: pointer; position: absolute;
  padding: 8px 12px; font: 700 12px/1 var(--display); letter-spacing: 1.4px; color: #0a0a0c;
  background: linear-gradient(180deg, #f3f5f8, #9aa0a9); box-shadow: 0 0 0 1px #fff, 0 2px 8px rgba(0,0,0,.5);
  transition: left .12s linear, top .12s linear, opacity .2s;
}
.mx-resist-btn.hit { opacity: 0; pointer-events: none; }
.mx-flood { pointer-events: none; position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.mx-flood img {
  position: absolute; left: var(--x, 10%); top: var(--y, 10%); width: 42%; max-width: 180px;
  opacity: 0; animation: mx-tile .6s ease forwards; box-shadow: 0 0 20px rgba(200,16,46,.4);
}
@keyframes mx-tile { to { opacity: .92; transform: scale(1.02); } }
.mx-flood.mx-flood-full img { width: 55%; opacity: 1; }
.mx-verdict { position: relative; z-index: 4; margin: 12px; padding: 12px; background: rgba(5,3,4,.88); text-align: center; }

.mx-spin {
  width: 36px; height: 36px; margin: 8px auto; border: 3px solid #3a3840; border-top-color: var(--silver);
  border-radius: 50%; animation: mx-spin .8s linear infinite;
}
@keyframes mx-spin { to { transform: rotate(360deg); } }
.mx-spin.mx-heart {
  border: 0; background: var(--red-hot); animation: none;
  clip-path: polygon(50% 88%, 8% 48%, 8% 30%, 22% 18%, 38% 20%, 50% 34%, 62% 20%, 78% 18%, 92% 30%, 92% 48%);
  box-shadow: 0 0 14px rgba(255,43,69,.8);
}
.mx-folder {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px;
  margin: 8px auto 14px; padding: 14px 16px; width: 100%; max-width: 320px;
  background: #12060a; box-shadow: inset 0 0 0 1px #c8102e, 0 0 18px rgba(200,16,46,.35);
  font: 600 14px/1.2 var(--display); letter-spacing: 1px; color: var(--chrome);
  animation: flicker 1.6s ease-in-out infinite alternate;
}
.mx-folder-ico { font-size: 22px; }
.mx-glitch-flash {
  position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: #000;
  animation: mx-flash .9s ease both;
}
.mx-glitch-flash img { max-width: 86%; max-height: 70%; filter: contrast(1.3) saturate(1.2); }
.mx-static {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 1px, rgba(255,255,255,.08) 1px 2px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(0,0,0,.35) 2px 3px);
  mix-blend-mode: overlay; animation: mx-static .12s steps(2) infinite;
}
@keyframes mx-static { to { transform: translateY(2px); } }
@keyframes mx-flash { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

.mx-files { display: grid; gap: 4px; margin: 8px 0 12px; }
.mx-file {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 12px;
  font: 500 14px/1.2 var(--body); color: var(--silver); background: #0c0b0e; box-shadow: inset 0 0 0 1px #2a2830;
}
.mx-file:active, .mx-file:hover { background: #1a0a10; color: #fff; }
.mx-preview { margin: 8px 0; padding: 10px; background: #0a090c; box-shadow: inset 0 0 0 1px #3a3840; }
.mx-blur { filter: blur(3px); color: var(--ash); letter-spacing: 2px; }
.mx-you { color: var(--red-hot); font-weight: 600; }

.mx-chat { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.mx-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  transition: background .6s ease, box-shadow .6s ease, filter .3s ease;
}
.mx-thread { display: grid; gap: 8px; min-width: 0; }
.mx-bubble {
  padding: 10px 12px; background: #141218; box-shadow: inset 0 0 0 1px #3a3840;
  font-size: 14.5px; line-height: 1.35; color: var(--bone);
}
.mx-bubble.mx-from-mina { background: #1a0508; box-shadow: inset 0 0 0 1px #c8102e; font-family: var(--gothic); font-size: 18px; color: var(--chrome); }
.mx-chat .mx-choices { grid-column: 1 / -1; }

.mx-confess { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; margin: 12px 0; }
.mx-prompt { color: var(--red-hot); font: 700 16px var(--display); }
.mx-confess input {
  all: unset; box-sizing: border-box; padding: 10px 12px; background: #0a090c;
  box-shadow: inset 0 0 0 1px #3a3840; color: var(--chrome); font: 500 14.5px/1.2 var(--body);
  caret-color: var(--red-hot);
}
.mx-confess input:focus { box-shadow: inset 0 0 0 1px #c8102e; }
.mx-mock { color: var(--red-hot) !important; font-size: clamp(18px, 5vw, 24px) !important; }

.mx-link {
  display: inline-block; margin: 6px 0 10px; color: var(--red-hot);
  font: 600 14px var(--display); letter-spacing: 1px; text-decoration: underline;
}
.mx-selfpay { display: grid; gap: 10px; margin-top: 8px; }
.mx-uac { box-shadow: inset 0 0 0 1px #c9ced6, 0 12px 40px rgba(0,0,0,.65); }

.mx-ending .mx-end-title {
  margin: 4px 0 8px; font: 400 42px/1 var(--gothic); letter-spacing: .5px;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mx-end-quarantined { box-shadow: inset 0 0 0 2px #c9ced6, 0 0 30px rgba(201,206,214,.25); }
.mx-end-infected { box-shadow: inset 0 0 0 2px #c8102e; }
.mx-end-infected::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 20% 80%, rgba(200,16,46,.35), transparent 70%),
    radial-gradient(30% 25% at 80% 20%, rgba(122,0,18,.4), transparent 70%);
}
.mx-end-root { background: linear-gradient(180deg, #2a0006, #050304); box-shadow: inset 0 0 0 2px #ff2b45, 0 0 40px rgba(255,43,69,.35); }
.mx-license-stamp {
  position: absolute; right: 10px; top: 56px; z-index: 3; transform: rotate(7deg);
  padding: 10px 14px; text-align: center;
  background: rgba(12,11,14,.92); box-shadow: inset 0 0 0 2px #c9ced6, 0 0 16px rgba(201,206,214,.35);
  font: 600 12px/1.2 var(--display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--silver);
}
.mx-license-stamp b { display: block; color: var(--chrome); font-size: 14px; margin-bottom: 4px; }
.mx-license-stamp span { color: var(--red-hot); }

.mx-log {
  position: relative; z-index: 6; min-height: 52px; max-height: 72px; overflow: hidden;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: #000; box-shadow: inset 0 1px 0 #2a2830;
  font: 500 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #c9ced6;
}
.mx-log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.mx-log-line:last-child { opacity: 1; color: #e9ecf0; }
.mx-toast {
  position: absolute; z-index: 9; left: 50%; bottom: 84px; transform: translateX(-50%);
  max-width: calc(100% - 28px); padding: 10px 14px; text-align: center;
  background: #1a0508; color: #fff; box-shadow: inset 0 0 0 1px #c8102e, 0 8px 24px rgba(0,0,0,.5);
  font: 600 13.5px/1.3 var(--display); letter-spacing: .8px;
}

.mx-flicker { animation: mx-flick 1.2s ease-in-out; }
@keyframes mx-flick {
  0%, 100% { filter: none; } 20% { filter: contrast(1.4) brightness(.7); } 40% { filter: none; }
  55% { filter: hue-rotate(-15deg) brightness(1.1); } 70% { filter: none; }
}

/* Profile: endings counter */
.me-ends { margin: 8px 0 0; font: 600 13px/1.3 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: var(--silver); }
.me-ends b { color: var(--chrome); }

/* Leaderboard infected tag */
.infect-tag {
  display: inline-block; margin-top: 2px; padding: 1px 6px;
  font: 700 10.5px/1.2 var(--display); letter-spacing: 1px; text-transform: uppercase;
  color: #ff2b45; background: #120005; box-shadow: inset 0 0 0 1px #7a0012;
  animation: mx-infect 1.4s steps(2) infinite;
}
@keyframes mx-infect {
  0%, 100% { opacity: .85; filter: none; }
  50% { opacity: 1; filter: brightness(1.4); text-shadow: 0 0 6px rgba(255,43,69,.8); }
}
.row.infected { box-shadow: inset 0 0 0 1px rgba(200,16,46,.45); }

/* Admin: Mina.exe block on each player card */
.mx-admin {
  margin: 8px 0; padding: 8px 10px; background: #0c0b0e; box-shadow: inset 0 0 0 1px #3a3840;
  font-size: 13px; line-height: 1.35;
}
.mx-admin b { color: var(--chrome); }
.mx-admin .mx-ends-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mx-admin .mx-end-chip {
  padding: 2px 8px; font: 600 11px var(--display); letter-spacing: .8px; text-transform: uppercase;
  background: #1a0508; color: var(--silver); box-shadow: inset 0 0 0 1px #5a5860;
}
.mx-admin .mx-end-chip.root { color: #ff2b45; box-shadow: inset 0 0 0 1px #c8102e; }
.mx-admin .mx-end-chip.quarantined { color: #e9ecf0; box-shadow: inset 0 0 0 1px #c9ced6; }
.badge.b-firewall { box-shadow: inset 0 0 0 1.5px #c9ced6, 0 0 7px rgba(201,206,214,.45); }
.badge.b-plugplay { background: radial-gradient(circle at 50% 35%, #3a0009, #070405); box-shadow: inset 0 0 0 1.5px #ff2b45, 0 0 8px rgba(255,43,69,.65); }
.badge.b-licensed { box-shadow: inset 0 0 0 1.5px #c9ced6, 0 0 8px rgba(200,16,46,.55); }
.badge-tip.t-plugplay b { color: #ff2b45; }
.badge-tip.t-licensed b { color: #e9ecf0; text-shadow: 0 0 8px rgba(200,16,46,.9); }
.lic-btn.lic-on { color: var(--chrome); box-shadow: inset 0 0 0 1px #c9ced6; }

/* ===== v11b: Mina everywhere (faded scene backdrops + ending portraits) ===== */
.mx-bg {
  pointer-events: none; position: absolute; inset: 0; z-index: 1; overflow: hidden;
  opacity: 1; transition: opacity .55s ease;
}
.mx-bg.mx-bg-off { opacity: 0; }
.mx-bg-img {
  position: absolute; left: 50%; bottom: -6%;
  width: min(120%, 540px); height: 58%;
  transform: translateX(-50%);
  background: center 6% / cover no-repeat;
  filter: blur(.55px) brightness(.94) saturate(1.06) contrast(1.05);
  opacity: .74;
  /* Face lives in the free band under the dialog; fade into the top so text stays readable */
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
}
.mx-bg-vig {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,3,4,.92) 0%, rgba(5,3,4,.55) 22%, rgba(5,3,4,.15) 42%, rgba(5,3,4,.55) 70%, rgba(5,3,4,.94) 100%),
    radial-gradient(120% 70% at 50% 78%, transparent 40%, rgba(58,0,9,.55) 100%),
    linear-gradient(180deg, rgba(160,0,24,.08), rgba(160,0,24,.22));
  box-shadow: inset 0 0 60px 8px rgba(90,0,14,.4);
}
/* S2: she glitches in, growing */
.mx-bg.mx-bg-glitch .mx-bg-img {
  opacity: 0; transform: translateX(-50%) scale(.86);
  animation: mx-bg-in 1.8s ease forwards;
  filter: blur(1.2px) brightness(.7) saturate(1.3) contrast(1.25) hue-rotate(-8deg);
}
.mx-bg.mx-bg-glitch .mx-bg-vig { animation: mx-bg-vig 1.8s ease forwards; opacity: .4; }
@keyframes mx-bg-in {
  0% { opacity: 0; transform: translateX(-48%) scale(.82); filter: blur(2px) brightness(.4) contrast(1.6); }
  18% { opacity: .25; transform: translateX(-52%) scale(.9); filter: blur(1.5px) brightness(1.2) contrast(1.4) hue-rotate(-20deg); }
  32% { opacity: .15; transform: translateX(-50%) scale(.88); }
  55% { opacity: .55; transform: translateX(-50%) scale(.96); filter: blur(.8px) brightness(.85) saturate(1.2); }
  100% { opacity: .7; transform: translateX(-50%) scale(1); filter: blur(.6px) brightness(.92) saturate(1.05); }
}
@keyframes mx-bg-vig { to { opacity: 1; } }
/* Endings: stronger presence behind the result card */
.mx-bg.mx-bg-end .mx-bg-img {
  height: 78%; bottom: -4%; opacity: .78; filter: blur(.4px) brightness(.95) saturate(1.1);
  background-position: center 8%;
}
.mx-stage { z-index: 3; }
.mx-top, .mx-log, .mx-toast { z-index: 6; }
.mx-scanlines { z-index: 5; }

/* Help-bot avatar → Mina face */
.mx-avatar {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #c8102e, #3a0009);
  box-shadow: inset 0 0 0 2px #c9ced6;
}
.mx-avatar.mx-av-1 { background: radial-gradient(circle at 40% 35%, #c9ced6, #7a3040); }
.mx-avatar.mx-av-2 {
  background:
    linear-gradient(160deg, rgba(200,16,46,.55), rgba(5,3,4,.35)),
    var(--mx-face, none) center 18% / 160% no-repeat,
    radial-gradient(circle at 40% 35%, #c8102e, #3a0009);
  box-shadow: inset 0 0 0 2px #ff2b45;
  animation: mx-av-glitch .7s steps(2) 2;
}
.mx-avatar.mx-av-face {
  background: var(--mx-face, none) center 16% / 155% no-repeat #1a0508;
  box-shadow: inset 0 0 0 2px #fff, 0 0 14px rgba(255,43,69,.75);
  animation: none;
}
@keyframes mx-av-glitch {
  0%, 100% { filter: none; }
  40% { filter: hue-rotate(-25deg) contrast(1.4) brightness(1.2); transform: translateX(1px); }
  70% { filter: contrast(1.2); transform: translateX(-1px); }
}

/* Ending portrait inside the result card */
.mx-end-port {
  margin: 8px auto 12px; max-width: 200px; width: 56%;
  box-shadow: 0 0 0 1px #3a3840, 0 0 24px rgba(200,16,46,.45);
  animation: mx-reveal .7s ease both;
}
.mx-end-port img { display: block; width: 100%; height: auto; }
.mx-end-quarantined .mx-end-port { box-shadow: 0 0 0 2px #c9ced6, 0 0 20px rgba(201,206,214,.35); }
.mx-end-infected .mx-end-port { box-shadow: 0 0 0 2px #c8102e, 0 0 22px rgba(200,16,46,.55); }
.mx-end-root .mx-end-port { box-shadow: 0 0 0 2px #ff2b45, 0 0 28px rgba(255,43,69,.65); }
.mx-stage-end .mx-win { margin-top: 6px; }
@media (max-height: 700px) {
  .mx-bg-img { height: 64%; opacity: .62; }
  .mx-end-port { max-width: 150px; width: 42%; margin: 4px auto 8px; }
}

/* v11d: Mina.exe locked teaser (pre–Nov 1) */
.mx-teaser-win { cursor: pointer; }
.mx-teaser-win.mx-teaser-glitch {
  animation: mx-crack .55s ease-out both;
  box-shadow: inset 0 0 0 1px #c8102e, 0 0 28px rgba(200,16,46,.55);
}
.mx-teaser-win.mx-teaser-glitch .mx-prog-fill {
  background: linear-gradient(90deg, #4a000b, #c8102e 60%, #ff2b45) !important;
  box-shadow: 0 0 12px rgba(200,16,46,.8);
}
.mx-teaser-local { opacity: .75; font-size: 12.5px !important; }

/* —— Mina Pulse overlay (overlay.js) —— */
.mina-tease-ov { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; pointer-events: none; z-index: 2147483000;
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease; display: none; }
.mina-tease-ov.show { display: block; opacity: .22; animation: mina-ov-glitch 4.2s steps(1) infinite, mina-ov-pulse 2.6s ease-in-out infinite; }
.mina-tease-ov.show.dim { opacity: .06; animation: none; }
@keyframes mina-ov-pulse { 0%,100% { opacity: .18; } 50% { opacity: .28; } }
@keyframes mina-ov-glitch { 0%,92%,100% { transform: none; filter: none; } 93% { transform: translateX(-6px) skewX(-2deg); filter: hue-rotate(-10deg) contrast(1.3); }
  95% { transform: translateX(5px); } 97% { transform: translateY(-3px) scaleY(1.01); } }
@media (prefers-reduced-motion: reduce) { .mina-tease-ov.show { animation: none; opacity: .2; } }

/* —— Lock in switch: more visible —— */
.switch:has(#lockin-toggle) { border: 1.5px solid #c8102e; box-shadow: 0 0 0 1px rgba(220,224,232,.25) inset, 0 0 14px rgba(212,16,46,.45);
  animation: lockin-pulse 2.4s ease-in-out infinite; min-height: 46px; }
.switch:has(#lockin-toggle) .sw-label { font-size: 1.08em; font-weight: 700; color: #f2f3f6; letter-spacing: .02em; }
.switch .sw-new { font-size: .68em; font-weight: 800; letter-spacing: .12em; padding: 2px 6px; border-radius: 4px;
  background: #d4102e; color: #fff; box-shadow: 0 0 8px rgba(255,43,69,.7); }
.switch:has(#lockin-toggle:checked) { border-color: #ff2b45; background: linear-gradient(90deg, rgba(122,0,18,.55), rgba(212,16,46,.35));
  box-shadow: 0 0 0 1px #dfe2e8 inset, 0 0 22px rgba(255,43,69,.85); animation: none; }
.switch:has(#lockin-toggle:checked) .sw-new { display: none; }
@keyframes lockin-pulse { 0%,100% { box-shadow: 0 0 0 1px rgba(220,224,232,.25) inset, 0 0 8px rgba(212,16,46,.35); }
  50% { box-shadow: 0 0 0 1px rgba(220,224,232,.45) inset, 0 0 20px rgba(255,43,69,.75); } }
@media (prefers-reduced-motion: reduce) { .switch:has(#lockin-toggle) { animation: none; } }

/* —— Mina Pulse switch (separate from Lock in) —— */
.switch-tease { border: 1.5px solid #c8102e; min-height: 46px; background: rgba(10,10,12,.6); box-shadow: 0 0 0 1px rgba(220,224,232,.3) inset, 0 0 12px rgba(212,16,46,.4); }
.switch-tease .sw-label { font-size: 1.08em; font-weight: 700; color: #f2f3f6; letter-spacing: .02em; }
.switch-tease:has(#overlay-toggle:checked) { border-color: #ff2b45; background: linear-gradient(90deg, rgba(122,0,18,.55), rgba(212,16,46,.35)); }
.switch-tease:has(#overlay-toggle:checked) .sw-new { display: none; }


/* Confession hint so players can get past C5 */
.mx-confess-hint { margin: 8px 0 10px; font-size: 14px; color: #c0c4cc; }
.mx-confess-hint code {
  display: inline-block; margin-left: 4px; padding: 2px 8px;
  border: 1px solid rgba(255,43,69,.55); border-radius: 4px;
  color: #fff; background: rgba(122,0,18,.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .02em;
}

/* ===== v12: Mina.exe — Chapter 2 "Spreading" (red / black / silver; no orange) ===== */
.mx2-entry { box-shadow: inset 0 0 0 1px #5a1018, inset 0 1px 0 rgba(255,255,255,.06); }
.mx2-ico { color: var(--red-hot, #ff2b45); box-shadow: inset 0 0 0 1px #5a1018; }
.mx2-pips { display: flex; gap: 4px; margin-top: 6px; }
.mx2-pip { font-style: normal; width: 22px; height: 18px; display: grid; place-items: center; font: 600 10px/1 var(--body); background: #121214; color: #6e6e74; box-shadow: inset 0 0 0 1px #2e2e34; }
.mx2-pip.mx2-done { color: #e1e4e8; box-shadow: inset 0 0 0 1px #8a9099; }
.mx2-pip.mx2-play, .mx2-pip.mx2-resume { color: #fff; background: #5a0c16; box-shadow: inset 0 0 0 1px #ff2b45; }
.mx2-days { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0; }
.mx2-day { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #0e0e10; box-shadow: inset 0 0 0 1px #2e2e34; color: #a8a8ae; }
.mx2-day b { font: 600 14px/1.2 var(--display); letter-spacing: 1.2px; color: #c9ced6; }
.mx2-day small { font: 400 12px/1.35 var(--body); color: #8a8a92; }
.mx2-day em { font: italic 12px/1.35 var(--body); color: #ff5468; }
.mx2-dn { font: 600 10px/1 var(--body); letter-spacing: 1.6px; color: #6e6e74; }
.mx2-drop { font: 700 11px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: #ff2b45; }
button.mx2-day { cursor: pointer; background: linear-gradient(180deg, #2a0810, #0e0e10); box-shadow: inset 0 0 0 1px #ff2b45, 0 0 18px rgba(255,43,69,.25); }
button.mx2-day small { color: #e1e4e8; }
.mx2-day.mx2-done { box-shadow: inset 0 0 0 1px #8a9099; }
.mx2-day.mx2-drop, .mx2-day.mx2-installing, .mx2-day.mx2-wait { opacity: .9; }
.mx2-tile { text-align: center; padding: 14px 8px; margin-bottom: 10px; background: linear-gradient(160deg,#f3f5f8,#8a9099 22%,#2a2c30 48%,#6d727a 72%,#e1e4e8); color: #0a0a0c; animation: mx2-flip .7s ease both; }
.mx2-tile span { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 2px; }
.mx2-tile b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: 1.2px; }
@keyframes mx2-flip { from { transform: perspective(500px) rotateX(90deg); } to { transform: none; } }
.mx2-red { color: #ff2b45 !important; }
.mx2-fx, .mx2-note { font-style: italic; color: #c9ced6; }
.mx2-note { background: #e1e4e8; color: #111; padding: 6px 8px; transform: rotate(-2deg); display: inline-block; }
.mx2-perms, .mx2-notifs { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.mx2-perm { padding: 8px 10px; background: #18181c; box-shadow: inset 0 0 0 1px #5a5a62; font: 13px/1.35 var(--body); animation: mx-reveal .3s ease both; }
.mx2-perm.mx2-red { box-shadow: inset 0 0 0 1px #ff2b45; }
.mx2-notif { padding: 8px 10px; border-radius: 10px; background: rgba(28,28,32,.94); box-shadow: inset 0 0 0 1px #3a3a40; font: 13px/1.3 var(--body); color: #e1e4e8; animation: mx2-drop .25s ease-out both; }
@keyframes mx2-drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.mx2-dnd { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; padding: 8px 0; }
.mx2-ring { position: relative; width: 180px; height: 180px; }
.mx2-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mx2-ring circle { fill: none; stroke-width: 8; }
.mx2-ring-bg { stroke: #2a2a30; }
.mx2-ring-fg { stroke: #e1e4e8; transition: stroke-dashoffset .05s linear; }
.mx2-dnd-btn { all: unset; position: absolute; inset: 22px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 40% 35%, #3a3a40, #0e0e10); box-shadow: inset 0 0 0 2px #8a9099; color: #c9ced6; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.mx2-dnd-btn.on { background: radial-gradient(circle at 40% 35%, #e1e4e8, #6d727a); color: #0a0a0c; box-shadow: 0 0 24px rgba(225,228,232,.5); }
.mx2-dnd-btn.mx2-flick { animation: mx2-flick .3s ease; box-shadow: inset 0 0 0 2px #ff2b45; }
@keyframes mx2-flick { 0% { transform: translateX(0) rotate(0); } 40% { transform: translateX(14px) rotate(12deg); } 100% { transform: none; } }
.mx2-moon { font-size: 44px; line-height: 1; }
.mx2-dnd-btn small { font: 700 12px/1 var(--body); letter-spacing: 2px; text-align: center; }
.mx2-dnd-held .mx2-ring-fg { stroke: #f3f5f8; }
.mx2-dnd-flicked .mx2-moon, .mx2-dnd-gaveup .mx2-moon { color: #ff2b45; }
.mx2-bubbles { position: absolute; inset: 0; pointer-events: none; }
.mx2-bubble { position: absolute; top: 40%; padding: 4px 8px; border-radius: 10px; background: #ff2b45; color: #fff; font: 600 12px/1 var(--body); animation: mx2-bub 1.6s ease-out forwards; }
@keyframes mx2-bub { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-80px); opacity: 0; } }
.mx2-letgo { margin-top: 6px; }
.mx2-hist { list-style: none; margin: 6px 0 10px; padding: 0; font: 13px/1.5 ui-monospace, monospace; color: #c9ced6; }
.mx2-hist li { border-bottom: 1px solid #222; padding: 2px 0; }
.mx2-hist small { color: #ff5468; }
.mx2-search { padding: 10px 12px; border-radius: 20px; background: #18181c; box-shadow: inset 0 0 0 1px #5a5a62; font: 15px/1.2 var(--body); color: #e1e4e8; min-height: 18px; margin: 6px 0 10px; }
.mx2-blurred { position: relative; cursor: pointer; overflow: hidden; }
.mx2-blurred img { filter: blur(14px) saturate(1.2); transform: scale(1.1); }
.mx2-blurred .mx-static { position: absolute; inset: 0; opacity: .55; }
.mx2-wm { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px/1 var(--display); letter-spacing: 6px; color: rgba(225,228,232,.75); z-index: 2; }
.mx2-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.mx2-opts p { width: 100%; margin: 0; }
.mx2-opts code { padding: 4px 8px; background: #e1e4e8; color: #0a0a0c; font: 600 14px/1.2 ui-monospace, monospace; }
.mx-win.mx2-allred { background: linear-gradient(180deg, #4a0a14, #1a0308) !important; }
.mx2-slider { position: relative; margin: 14px 0; }
.mx2-slider input { width: 100%; height: 54px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, #6d727a, #e1e4e8); border-radius: 28px; }
.mx2-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 50px; height: 50px; border-radius: 50%; background: #0a0a0c; box-shadow: inset 0 0 0 2px #ff2b45; }
.mx2-slider span { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 600 14px/1 var(--body); color: #0a0a0c; letter-spacing: 1px; }
.mx2-melt { animation: mx2-melt .6s ease forwards; }
@keyframes mx2-melt { to { transform: translateY(30px) scaleY(.2); opacity: 0; } }
.mx2-blackout { background: #000; display: grid; place-items: center; }
.mx2-bootlogo { font-size: 64px; color: #ff2b45; animation: mx-reveal .8s ease both; }
.mx2-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0; font: 13px/1.4 var(--body); }
.mx2-stats dt { color: #8a8a92; } .mx2-stats dd { margin: 0; color: #e1e4e8; }
.mx2-report.mx2-tier-hers .mx-end-title { color: #ff2b45; }
.mx2-report.mx2-registered { box-shadow: inset 0 0 0 2px #c9ced6, 0 0 0 1px #8a9099; }
.mx2-reg { position: absolute; right: 8px; bottom: 64px; z-index: 7; padding: 3px 7px; font: 600 10px/1 var(--body); letter-spacing: 1px; color: #0a0a0c; background: linear-gradient(160deg,#f3f5f8,#8a9099); pointer-events: none; }
.mx-bg.mx2-dimmed .mx-bg-img { filter: brightness(.18); transition: filter 3s ease; }
.mx2-cliff-body { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mx2-single { font-size: 15px; }
.mx-toast.mx2-quiet { background: #18181c; color: #e1e4e8; box-shadow: inset 0 0 0 1px #8a9099; }
.mx2-savedmark { text-align: right; margin: 0; }
/* v13: Chapter 2 · Day 2 "Breach" (red / black / silver) */
.mx2-recap { display: grid; gap: 4px; margin: 0 0 10px; padding: 10px 12px; background: #0e0e10; box-shadow: inset 0 0 0 1px #3a3a40; font: 13px/1.35 var(--body); }
.mx2-recap p { display: flex; justify-content: space-between; gap: 10px; margin: 0; }
.mx2-recap span { color: #8a8a92; } .mx2-recap b { color: #e1e4e8; letter-spacing: 1px; } .mx2-recap em { color: #c9ced6; text-align: right; }
.mx2-recap-bar { height: 6px; background: #1c1c20; } .mx2-recap-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff2b45, #c9ced6); }
.mx2-t-hers { color: #ff2b45 !important; } .mx2-t-slipping { color: #c9ced6 !important; } .mx2-t-held { color: #f3f5f8 !important; }
.mx2-clock { text-align: center; font: 300 48px/1 var(--display); color: #f3f5f8; margin: 4px 0 0; letter-spacing: 2px; }
.mx2-missed { text-align: center; } .mx2-missed b { color: #ff2b45; }
.mx2-notif.mx2-swiped { transform: translateX(120%); opacity: 0; transition: transform .45s ease, opacity .45s ease; }
.mx2-notif.mx2-opened { position: relative; box-shadow: inset 0 0 0 1px #ff2b45; }
.mx2-smear { display: inline-block; vertical-align: middle; margin-left: 6px; width: 26px; height: 18px; border-radius: 6px; background: radial-gradient(circle, #ff2b45, #5a0c16); filter: blur(3px); }
.mx2-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 4px; font: 13px/1.35 var(--body); color: #e1e4e8; }
.mx2-list li { position: relative; padding: 7px 10px; background: rgba(20,20,24,.92); box-shadow: inset 0 0 0 1px #2e2e34; overflow: hidden; }
.mx2-list small { color: #8a8a92; margin-left: 4px; } .mx2-list code { font: 600 12px/1.3 ui-monospace, monospace; color: #c9ced6; }
.mx2-list li.mx2-red { box-shadow: inset 0 0 0 1px #ff2b45; } .mx2-list li.mx2-red code { color: #ff2b45; }
.mx2-gone { opacity: .45; text-decoration: line-through; } .mx2-empty { color: #6e6e74 !important; font-style: italic; }
.mx2-threats b { color: #ff5468; }
.mx2-procs li { display: flex; flex-direction: column; gap: 2px; } .mx2-procs i { position: absolute; left: 0; bottom: 0; height: 2px; background: #ff2b45; }
.mx2-incog { display: flex; gap: 8px; align-items: center; background: #0a0a0c; }
.mx2-sticky { background: #e1e4e8; color: #111 !important; padding: 6px 8px; transform: rotate(-2deg); display: inline-block; font-style: normal; }
.mx2-letter { background: #f3f5f8; color: #111 !important; padding: 10px; font-style: normal; font-family: Georgia, serif; }
.mx2-whack-stage .mx-win { background: linear-gradient(180deg, #121216, #050304); }
.mx2-whack { display: flex; flex-direction: column; gap: 6px; }
.mx2-whack-hud { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--body); color: #e1e4e8; }
.mx2-whack-timer { flex: 1; height: 6px; background: #1c1c20; } .mx2-whack-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff2b45, #c9ced6); }
.mx2-whack-field { position: relative; height: 360px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1a1a20, #050304); box-shadow: inset 0 0 0 1px #2e2e34; touch-action: manipulation; }
.mx2-pop { position: absolute; width: 46%; background: #0e0e10; box-shadow: 0 0 0 1px #8a9099, 0 6px 18px rgba(0,0,0,.6); animation: mx-reveal .2s ease both; }
.mx2-pop-bar { padding: 4px 6px; background: linear-gradient(90deg, #5a0c16, #2a0810); font: 600 11px/1.2 var(--body); color: #fff; padding-right: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx2-pop img { display: block; width: 100%; height: 92px; object-fit: cover; object-position: top; }
.mx2-pop-x { all: unset; position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #f3f5f8, #8a9099); color: #0a0a0c; font: 700 18px/1 var(--body); cursor: pointer; transition: transform .12s ease; z-index: 2; }
.mx2-pop-x.mx2-dodge { transform: translateX(-40px); }
.mx2-whack-all12 .mx2-whack-field { background: linear-gradient(160deg, #f3f5f8, #8a9099 40%, #2a2c30); }
.mx2-heart-tile { box-shadow: 0 0 0 2px #ff2b45; filter: hue-rotate(0) saturate(1.4); }
.mx2-pop-big { position: absolute; inset: 20px; width: auto; display: grid; align-content: center; text-align: center; }
.mx2-pop-big p { font: 700 22px/1.2 var(--display); color: #ff2b45; }
.mx2-st { padding: 10px 12px; background: #0e0e10; box-shadow: inset 0 0 0 1px #3a3a40; margin-bottom: 8px; }
.mx2-st-big { display: block; font: 700 26px/1.1 var(--display); color: #f3f5f8; margin: 2px 0 6px; }
.mx2-st-bar { height: 14px; background: #1c1c20; } .mx2-st-bar i { display: block; height: 100%; width: 92%; background: #ff2b45; }
.mx2-chat { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.mx2-bub-her, .mx2-bub-me { position: relative; max-width: 80%; padding: 8px 12px; border-radius: 16px; font: 14px/1.3 var(--body); }
.mx2-bub-her { align-self: flex-start; background: #2a0810; color: #fff; box-shadow: inset 0 0 0 1px #ff2b45; }
.mx2-bub-me { align-self: flex-end; background: #c9ced6; color: #0a0a0c; }
.mx2-bub-me.mx2-red { background: #ff2b45; color: #fff !important; }
.mx2-bub-me small { display: block; font: 11px/1.2 var(--body); opacity: .8; margin-top: 2px; }
.mx2-undeliv { color: #a00 !important; } .mx2-react { position: absolute; left: -10px; bottom: -10px; font-size: 18px; }
.mx2-who { text-align: right; margin: 0; }
.mx2-field { min-height: 40px; padding: 10px 12px; background: #0a0a0c; box-shadow: inset 0 0 0 1px #5a5a62; font: 15px/1.3 var(--body); color: #e1e4e8; margin: 6px 0; }
.mx2-paste { display: inline-block; padding: 8px 12px; border-radius: 12px; background: #e1e4e8; color: #0a0a0c; font: 13px/1.3 var(--body); }
.mx2-paste b { display: block; } .mx2-paste p { margin: 2px 0 0; }
.mx2-seg { display: flex; margin: 6px 0 10px; box-shadow: inset 0 0 0 1px #5a5a62; } .mx2-seg span { flex: 1; text-align: center; padding: 8px 0; font: 600 13px/1 var(--body); color: #8a8a92; }
.mx2-seg .on { background: #ff2b45; color: #fff; }
.mx2-redmode .mx-win { background: linear-gradient(180deg, #000, #2a0308) !important; transition: background 3s ease; }
.mx2-redsoft .mx-win { background: linear-gradient(180deg, #3a0610, #5a0c16) !important; }
.mx-bg.mx2-hostage .mx-bg-img { filter: blur(16px) brightness(.18) !important; }
.mx2-file { all: unset; align-self: center; display: grid; justify-items: center; gap: 4px; cursor: pointer; padding: 10px; }
.mx2-file span { font-size: 44px; line-height: 1; } .mx2-file small { font: 600 13px/1 ui-monospace, monospace; color: #e1e4e8; }

/* v14: Chapter 2 · Day 3 "Settling In" (red / black / silver) */
.mx2-widgets { display: grid; gap: 6px; margin: 6px 0; }
.mx2-widget { background: rgba(20,20,24,.75); border: 1px solid #8a8f98; border-radius: 10px; padding: 6px 10px; font-size: .85rem; color: #e6e8ec; }
.mx2-herfont { font-family: Georgia, serif; font-style: italic; color: #e5323f; }
.mx2-bounce { transform: translateY(-14px); transition: transform .2s; }
.mx2-undim { filter: none !important; opacity: 1 !important; transition: filter 2s, opacity 2s; }
.mx2-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.mx2-icons span { background: #16161a; border: 1px solid #555; border-radius: 12px; padding: 6px 10px; font-size: .8rem; }
.mx2-icons small { display: block; opacity: .6; }
.mx2-greylink { background: transparent !important; color: #9aa0a8 !important; border: none !important; text-decoration: underline; font-size: .8rem; }
.mx2-cookie { background: #111; border: 1px solid #c0c4cc; border-radius: 12px; padding: 10px; font-size: .9rem; }
.mx2-huge { font-size: 1.15rem !important; padding: 14px !important; background: #b3121f !important; }
.mx2-tiny { font-size: .7rem !important; padding: 4px 8px !important; opacity: .6; transition: transform .2s; align-self: center; }
.mx2-green { background: #1f7a3a !important; }
.mx2-card, .mx2-invite, .mx2-memory { background: rgba(16,16,20,.85); border: 1px solid #8a8f98; border-radius: 12px; padding: 10px; margin: 6px 0; }
.mx2-memory { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mx2-play { font-size: 1.6rem; color: #e5323f; }
.mx2-folders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx2-folder { min-height: 170px; background: rgba(12,12,16,.85); border: 1px solid #8a8f98; border-radius: 10px; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.mx2-folder h4 { width: 100%; margin: 0 0 4px; font-size: .85rem; color: #c0c4cc; }
.mx2-mine { border-color: #e5323f; }
.mx2-fileT { font-size: .7rem; padding: 6px 7px; min-height: 32px; border-radius: 6px; background: #1d1d22; color: #e6e8ec; border: 1px solid #444; touch-action: none; }
.mx2-heavy { opacity: .55; }
.mx2-sort-ten .mx2-mine h4 { transform: rotate(8deg); opacity: .6; }
.mx2-shake { animation: mx2shake .35s; }
@keyframes mx2shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mx2-warm .mx-win { background: linear-gradient(180deg, #1a0a08, #2a0c0c) !important; }
.mx2-heartknob::-webkit-slider-thumb { background: #e5323f; border-radius: 50% 50% 0 50%; }
.mx2-facedown { filter: brightness(.5); }
.mx2-buzz { animation: mx2shake .25s 3; }
.mx2-glow { box-shadow: 0 0 30px 6px rgba(229,50,63,.7); }
.mx2-clip video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* PACE (config.js sets --pace; 1.6 = ~60% slower). Entrance animations for Mina's pop-ups, Orders and Mina.exe UI. */
:root { --pace: 1.6; }
.mina-pop.in .pop-card { animation: pop-in calc(.55s * var(--pace)) cubic-bezier(.2,1.4,.4,1) both, pop-shake calc(.5s * var(--pace)) calc(.5s * var(--pace)) ease-in-out both; }
.mina-pop.in::backdrop { animation: pop-fade calc(.3s * var(--pace)) ease both; }
.order-ov.in .order-inner { animation: order-in calc(.7s * var(--pace)) cubic-bezier(.2,1.1,.3,1) both; }
.order-ov.in .order-bg { animation: order-bg calc(1.4s * var(--pace)) ease both; }
.mx2-notif { animation-duration: calc(.25s * var(--pace)); }
.mx2-cliffcont { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .mina-pop.in .pop-card { animation: pop-soft .2s ease both; } .order-ov.in .order-inner, .order-ov.in .order-bg { animation: none !important; } }
.mx-img.mx-reveal { animation-duration: calc(.7s * var(--pace)); }

/* v15: Chapter 2 · Day 4 "Game Night" — arcade, red / black / silver */
.mx2-arcade-stage .mx-win { background: linear-gradient(180deg, #0a0a0c, #16060a) ; box-shadow: 0 0 0 1px #c9ced6, 0 0 22px rgba(255,43,69,.35); }
.mx2-neon { box-shadow: 0 0 0 2px #ff2b45, 0 0 18px 2px rgba(255,43,69,.6); }
.mx2-menu { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; font: 600 14px/1.3 var(--body); }
.mx2-menu li { padding: 9px 12px; background: #0e0e10; box-shadow: inset 0 0 0 1px #8a9099; color: #e1e4e8; letter-spacing: .5px; }
.mx2-menu li b { color: #f3f5f8; } .mx2-menu li:first-child { box-shadow: inset 0 0 0 1px #ff2b45; }
.mx2-menu .mx2-locked { opacity: .55; }
.mx2-start { letter-spacing: 3px; animation: mx2blink 1s steps(2) infinite; }
@keyframes mx2blink { 50% { opacity: .55; } }
.mx2-flipover { transition: transform .8s ease, filter .8s ease; transform: rotateY(180deg); }
.mx2-flipover.mx2-flipped { transform: rotateY(0); filter: none; }
/* L4 Close Her Tabs */
.mx2-tabs { display: flex; flex-direction: column; gap: 6px; }
.mx2-tabbar { display: flex; flex-wrap: wrap; gap: 4px; min-height: 52px; max-height: 196px; overflow: hidden; padding: 4px; background: #121216; box-shadow: inset 0 0 0 1px #3a3a40; touch-action: manipulation; }
.mx2-tab { display: flex; align-items: center; gap: 2px; max-width: 48%; padding-left: 8px; background: linear-gradient(180deg, #2a0810, #160407); box-shadow: inset 0 0 0 1px #ff2b45; border-radius: 8px 8px 0 0; font: 600 11px/1 var(--body); color: #fff; animation: mx-reveal .15s ease both; }
.mx2-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx2-tab-x { all: unset; flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: #0a0a0c; font: 700 16px/1 var(--body); background: radial-gradient(circle, #f3f5f8 0 13px, transparent 14px); cursor: pointer; }
.mx2-tabpage { position: relative; height: 230px; overflow: hidden; box-shadow: inset 0 0 0 1px #2e2e34; }
.mx2-tabpage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mx2-flood { opacity: 0; transition: opacity .3s ease; mix-blend-mode: screen; }
.mx2-merged { opacity: 1 !important; animation: mx-reveal .4s ease both; }
.mx2-tabs-high .mx2-tabpage { filter: grayscale(.6) brightness(.8); }
/* T4 Stop the Send */
.mx2-send { display: flex; flex-direction: column; gap: 8px; }
.mx2-msg-head { font: 13px/1.3 var(--body); color: #8a8a92; } .mx2-msg-head b { color: #ff2b45; }
.mx2-words { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border-radius: 16px; background: #c9ced6; touch-action: manipulation; }
.mx2-word { min-height: 40px; min-width: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: #f3f5f8; color: #0a0a0c; font: 600 14px/1 var(--body); box-shadow: 0 1px 0 #8a9099; }
.mx2-word.mx2-del { visibility: hidden; }
.mx2-sendrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mx2-ring { --p: 1; flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(#ff2b45 calc(var(--p) * 360deg), #1c1c20 0); box-shadow: inset 0 0 0 7px #0a0a0c; color: #fff; }
.mx2-ring b { font: 700 20px/1 var(--display); } .mx2-ring small { font: 600 7px/1 var(--body); letter-spacing: 1px; color: #c9ced6; }
.mx2-ring.mx2-sent { background: #c9ced6; color: #0a0a0c; }
.mx2-send-stopped .mx2-words { background: #1c1c20; }
/* D4b */
.mx2-continue { text-align: center; padding: 14px; background: #050304; box-shadow: inset 0 0 0 2px #ff2b45; animation: mx2blink 1s steps(2) infinite; }
.mx2-continue b { display: block; font: 700 26px/1.1 var(--display); letter-spacing: 4px; color: #f3f5f8; } .mx2-continue span { font: 700 44px/1 var(--display); color: #ff2b45; }
.mx2-sticker { display: inline-block; align-self: center; padding: 3px 8px; background: #f3f5f8; color: #0a0a0c !important; transform: rotate(-6deg); transition: transform .5s, opacity .5s; }
.mx2-sticker.mx2-peel { transform: rotate(-30deg) translateY(-20px); opacity: 0; }
/* X4 Voicemail */
.mx2-vm { padding: 12px; background: rgba(14,14,16,.92); box-shadow: inset 0 0 0 1px #8a9099; border-radius: 12px; display: grid; gap: 8px; transition: transform .45s, opacity .45s; }
.mx2-vm p { margin: 0; font: 14px/1.35 var(--body); color: #e1e4e8; }
.mx2-vm-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ff2b45; color: #fff; font: 700 12px/1 var(--body); }
.mx2-vm-play { justify-self: start; width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(160deg, #f3f5f8, #8a9099); color: #0a0a0c; font-size: 18px; }
.mx2-wave { display: flex; align-items: center; gap: 3px; height: 34px; } .mx2-wave i { flex: 1; height: 20%; background: #8a9099; border-radius: 2px; }
.mx2-wave.mx2-playing i { background: #ff2b45; animation: mx2wave .7s ease-in-out infinite alternate; } .mx2-wave.mx2-playing i:nth-child(3n) { animation-delay: .2s; } .mx2-wave.mx2-playing i:nth-child(3n+1) { animation-delay: .4s; }
@keyframes mx2wave { to { height: 100%; } }
.mx2-vm.mx2-swiped { transform: translateX(-110%); opacity: 0; }
.mx2-vm.mx2-pinned { box-shadow: inset 0 0 0 2px #ff2b45; } .mx2-redfx { color: #ff2b45 !important; }
/* D4c Don't Blink */
.mx2-blink { display: flex; flex-direction: column; gap: 6px; }
.mx2-blink-field { position: relative; height: 380px; overflow: hidden; background: #050304; box-shadow: inset 0 0 0 1px #2e2e34; touch-action: manipulation; }
.mx2-blink-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 9s linear; }
.mx2-blink-img.mx2-fadein { opacity: .8; } .mx2-blink-img.mx2-full { opacity: 1; transition-duration: .4s; }
.mx2-dot { position: absolute; width: 52px; height: 52px; margin: -4px; border-radius: 50%; border: 0; animation: mx-reveal .12s ease both; cursor: pointer; }
.mx2-dot-silver { background: radial-gradient(circle at 35% 30%, #fff, #c9ced6 45%, #6e737b); box-shadow: 0 0 14px rgba(243,245,248,.8); }
.mx2-dot-red { background: radial-gradient(circle at 35% 30%, #ff8090, #ff2b45 45%, #6a0812); box-shadow: 0 0 14px rgba(255,43,69,.8); }
/* D4d Leaderboard */
.mx2-lb { padding: 10px 12px; background: #0e0e10; box-shadow: inset 0 0 0 1px #c9ced6; display: grid; gap: 6px; }
.mx2-lb h4 { margin: 0; font: 700 15px/1 var(--display); letter-spacing: 2px; color: #f3f5f8; }
.mx2-lb p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px; font: 600 14px/1.2 var(--body); color: #e1e4e8; }
.mx2-lb p span { margin-left: auto; } .mx2-lb-1 { box-shadow: inset 0 0 0 1px #ff2b45; color: #ff2b45 !important; }
.mx2-lb-1 img { width: 54px; height: 54px; object-fit: cover; object-position: top; border-radius: 6px; }
.mx2-lb small { color: #8a8a92; font: 12px/1 var(--body); }
/* D4e */
.mx2-rate { position: relative; padding: 10px 12px; background: linear-gradient(160deg, #1c1c20, #0a0a0c); box-shadow: inset 0 0 0 1px #c9ced6; text-align: center; transition: background .6s; }
.mx2-rate b { display: inline-block; font: 700 48px/1 var(--display); color: #f3f5f8; }
.mx2-rate.mx2-flush { background: linear-gradient(160deg, #5a0c16, #2a0308); }
.mx2-silverglow { text-shadow: 0 0 14px #f3f5f8; } .mx2-q { font: 700 22px/1 var(--display); vertical-align: top; }
.mx2-wobble { animation: mx2shake .3s 2; }
.mx2-numchips { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 6px; } .mx2-numchip { min-height: 44px; padding: 0 !important; }
/* D4f */
.mx2-ach { display: flex; gap: 10px; align-items: center; padding: 10px; background: #0a0a0c; box-shadow: inset 0 0 0 2px #c9ced6, 0 0 0 2px #ff2b45; animation: mx-reveal .4s ease both; transition: transform .45s, opacity .45s; }
.mx2-ach img { width: 84px; height: 84px; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px #ff2b45; }
.mx2-ach b { font: 700 14px/1.25 var(--body); color: #f3f5f8; } .mx2-ach p { margin: 4px 0 0; font: 13px/1.3 var(--body); color: #c9ced6; }
.mx2-ach.mx2-swiped, .mx2-sheet.mx2-swiped { transform: translateY(-120%); opacity: 0; }
.mx2-trophy { position: absolute; left: 8px; bottom: 64px; z-index: 7; padding: 3px 7px; font: 600 10px/1 var(--body); color: #f3f5f8; background: #2a0810; box-shadow: inset 0 0 0 1px #ff2b45; pointer-events: none; }
.mx2-sheet { padding: 10px 12px; background: #e1e4e8; color: #0a0a0c; border-radius: 14px 14px 0 0; display: grid; gap: 6px; transition: transform .4s, opacity .4s; }
.mx2-sheet small { color: #555; } .mx2-sheet-opt { font: 600 15px/1 var(--body); }
/* D4g */
.mx2-alert { padding: 12px; background: rgba(14,14,16,.94); box-shadow: inset 0 0 0 1px #ff2b45; border-radius: 12px; }
.mx2-alert b { color: #ff2b45; font: 700 16px/1.2 var(--body); } .mx2-alert p { margin: 4px 0 8px; color: #e1e4e8; font: 14px/1.3 var(--body); }
/* NR4 + CP4 arcade */
.mx2-report.mx2-arcade { box-shadow: inset 0 0 0 2px #c9ced6, 0 0 24px rgba(255,43,69,.35); }
.mx2-report.mx2-arcade .mx-end-title { letter-spacing: 6px; text-transform: uppercase; }
.mx2-cabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mx2-cab { min-height: 64px; display: grid; place-items: center; padding: 8px; background: #0e0e10; box-shadow: inset 0 0 0 1px #c9ced6, 0 0 12px rgba(201,206,214,.35); font: 700 12px/1.2 var(--body); letter-spacing: 1px; color: #f3f5f8; text-align: center; transition: opacity .5s, box-shadow .5s, filter .5s; }
.mx2-cab.mx2-off { opacity: .18; box-shadow: inset 0 0 0 1px #2e2e34; filter: grayscale(1); }
.mx2-cab-red { grid-column: 1 / -1; min-height: 110px; opacity: .25; box-shadow: inset 0 0 0 2px #5a0c16; color: #ff2b45; }
.mx2-cab-red span { font: 700 22px/1 var(--display); letter-spacing: 6px; } .mx2-cab-red b { font: 700 15px/1 ui-monospace, monospace; color: #f3f5f8; visibility: hidden; }
.mx2-cab-red.mx2-lit { opacity: 1; box-shadow: inset 0 0 0 2px #ff2b45, 0 0 30px 6px rgba(255,43,69,.6); background: #160407; }
.mx2-cab-red.mx2-lit b { visibility: visible; animation: mx2blink 1s steps(2) infinite; }
/* ═══ v16: Chapter 2 · Day 5 "Pressure" (red / black / silver) ═══ */
.mx5-lastcab { min-height: 70px; margin: 8px 0; }
.mx5-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; padding: 10px 4px; }
.mx5-app { display: grid; justify-items: center; gap: 4px; transition: transform .35s; }
.mx5-app small { font: 600 10px/1.1 var(--body); color: #e1e4e8; text-shadow: 0 1px 2px #000; text-align: center; }
.mx5-ico { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: linear-gradient(160deg, #26262c, #0e0e10); box-shadow: inset 0 0 0 1px #c9ced6; overflow: visible; }
.mx5-ico img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 2px #ff2b45; }
.mx5-badge { position: absolute; top: -6px; right: -8px; min-width: 22px; padding: 2px 4px; font: 700 10px/1 var(--body); color: #fff; background: #ff2b45; border-radius: 10px; animation: mx5beat 1s ease-in-out infinite; }
.mx5-badge.mx5-dot { min-width: 12px; height: 12px; padding: 0; }
@keyframes mx5beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.mx5-flip { animation: mx5flip .4s ease; } @keyframes mx5flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.mx5-thread { display: grid; gap: 6px; padding: 10px; background: #0e0e10; box-shadow: inset 0 0 0 1px #c9ced6; border-radius: 12px; }
.mx5-bub { margin: 0; justify-self: start; padding: 8px 12px; background: #ff2b45; color: #fff; border-radius: 16px 16px 16px 4px; font: 600 16px/1.2 var(--body); }
.mx5-thread small { color: #c9ced6; font: 12px/1 var(--body); }
.mx5-sys, .mx5-toastcard, .mx5-sheet, .mx5-focus, .mx5-note { padding: 12px; background: rgba(14,14,16,.94); box-shadow: inset 0 0 0 1px #c9ced6; border-radius: 12px; color: #e1e4e8; font: 14px/1.35 var(--body); }
.mx5-sys b, .mx5-toastcard b, .mx5-sheet b, .mx5-focus b, .mx5-note b { color: #f3f5f8; font: 700 15px/1.25 var(--body); }
.mx5-sys p, .mx5-toastcard p, .mx5-sheet p, .mx5-focus p, .mx5-note p { margin: 4px 0; }
.mx5-sheet ul { margin: 4px 0; padding-left: 18px; color: #8a8a92; }
.mx-choice.mx5-grey { font-size: 13px; opacity: .8; background: #1c1c20 !important; color: #c9ced6 !important; }
.mx-choice.mx5-redbtn { background: #ff2b45 !important; color: #fff !important; box-shadow: 0 0 22px rgba(255,43,69,.7) !important; font-weight: 700; }
.mx5-bar { margin-top: 8px; }
.mx5-note small { color: #8a8a92; } .mx5-note code { color: #f3f5f8; } .mx5-saved { padding: 8px; background: #f3f5f8; color: #0a0a0c; border-radius: 6px; font: 600 15px/1.3 var(--body); }
.mx5-saved.mx2-red { color: #c8102e; }
.mx-choice.mx5-sugg { background: #5a0c16 !important; color: #fff !important; box-shadow: inset 0 0 0 1px #ff2b45 !important; }
.mx5-underline { text-decoration: underline wavy #ff2b45; }
.mx5-batt { margin: 0 0 6px; text-align: right; color: #ff2b45; font: 700 16px/1 ui-monospace, monospace; }
.mx5-cable { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .mx5-cable i { flex: 1; height: 6px; background: #ff2b45; border-radius: 3px; box-shadow: 0 0 10px #ff2b45; animation: mx5snake .8s ease both; transform-origin: left; }
.mx5-cable small { color: #ff2b45; font: italic 600 13px/1 var(--body); } @keyframes mx5snake { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mx5-black { position: absolute; inset: 0; z-index: 8; background: #000; display: grid; place-items: center; animation: mx5fade .8s ease both; pointer-events: none; }
.mx5-black img { width: 70%; max-height: 70%; object-fit: cover; opacity: .14; filter: grayscale(.4) blur(1px); border-radius: 18px; }
.mx5-bootlogo img { opacity: .5; filter: brightness(0) drop-shadow(0 0 12px #f3f5f8); width: 40%; }
@keyframes mx5fade { from { opacity: 0; } to { opacity: 1; } }
.mx5-count { display: grid; justify-items: center; gap: 10px; }
.mx5-timer { font: 700 72px/1 var(--display); color: #ff2b45; text-shadow: 0 0 18px rgba(255,43,69,.6); font-variant-numeric: tabular-nums; }
.mx5-timer.mx5-danger { animation: mx2shake .3s infinite; } .mx5-timer.mx5-silver { color: #f3f5f8; text-shadow: 0 0 18px #f3f5f8; animation: none; }
.mx5-hold { width: min(100%, 300px); min-height: 84px; font: 700 20px/1 var(--display); letter-spacing: 3px; color: #0a0a0c; background: linear-gradient(160deg, #f3f5f8, #9aa0a8); border: 0; border-radius: 16px; box-shadow: 0 0 0 2px #ff2b45, 0 6px 0 #4a4e55; touch-action: manipulation; }
.mx5-hold.mx5-pulse { animation: mx5press .12s; } @keyframes mx5press { 50% { transform: translateY(3px) scale(.97); } }
.mx5-edges #mx-bg, .mx5-edges ~ #mx-bg { -webkit-mask-image: radial-gradient(transparent 45%, #000 75%); }
.mx5-search { display: grid; gap: 8px; } .mx5-sbar { margin: 0; padding: 10px 12px; background: #1c1c20; border-radius: 10px; color: #f3f5f8; font: 15px/1 var(--body); }
.mx5-res { display: flex; gap: 10px; align-items: center; padding: 8px; background: #0e0e10; box-shadow: inset 0 0 0 1px #ff2b45; border-radius: 10px; }
.mx5-res img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 8px; } .mx5-res b { color: #ff2b45; } .mx5-res small { display: block; color: #8a8a92; font: 12px/1.2 var(--body); }
.mx5-pop { animation: mx-reveal .3s ease both; }
.mx5-ans { font-size: 26px !important; } .mx5-sure { display: block; font: italic 600 14px/1 var(--body); }
.mx5-mini { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 2px #ff2b45; }
.mx5-focus { transition: transform .45s, opacity .45s; } .mx5-focus.mx2-swiped { transform: translateY(-120%); opacity: 0; } .mx5-lite { transform: scale(.85); box-shadow: inset 0 0 0 1px #ff2b45; }
.mx5-reset { background: linear-gradient(160deg, #3a0610, #0a0a0c); } .mx5-reveal { height: 140px; margin: 8px 0; overflow: hidden; border-radius: 8px; background: #000; }
.mx5-reveal img { width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(100% 0 0 0); transition: clip-path .1s linear; }
.mx5-report { box-shadow: inset 0 0 0 2px #c9ced6, 0 0 24px rgba(255,43,69,.3); }
.mx5-gauge { position: relative; height: 18px; background: #1c1c20; box-shadow: inset 0 0 0 1px #c9ced6; margin-bottom: 8px; }
.mx5-gauge i { display: block; height: 100%; background: linear-gradient(90deg, #c9ced6, #ff2b45); } .mx5-gauge span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--body); letter-spacing: 4px; color: #f3f5f8; }
.mx5-zoom { transition: transform 1s ease, opacity 1s; } .mx5-zoom.mx5-out { transform: scale(.6); opacity: .7; }
.mx5-swatch { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; align-items: center; padding: 12px; background: #f3f5f8; color: #0a0a0c; border-radius: 14px 14px 0 0; animation: mx-reveal .5s ease both; font: 700 15px/1 var(--body); }
.mx5-swatch i { width: 22px; height: 22px; border-radius: 4px; }
.mx-bg.mx5-flicker { animation: mx5flick 2.4s steps(1) infinite; } @keyframes mx5flick { 0%, 100% { filter: none; } 40% { filter: brightness(1.5); } 44% { filter: none; } 70% { filter: brightness(.6) hue-rotate(-10deg); } 72% { filter: none; } }
/* Review CTA: neon pulsing heart button (tracker header + Mina.exe hub) → /review.html */
.review-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 4px; padding: 12px 22px; min-height: 48px;
  font: 700 16px/1 var(--display, "Oswald", sans-serif); letter-spacing: 2px; text-transform: uppercase; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, #ff2b45, #8b0016); border-radius: 999px; box-shadow: 0 0 0 2px #ffd1d8, 0 0 18px 4px rgba(255,43,69,.75), 0 0 44px 10px rgba(255,43,69,.35);
  animation: reviewglow 1.6s ease-in-out infinite; }
.review-cta:hover, .review-cta:focus-visible { filter: brightness(1.15); }
.review-heart { font-size: 22px; line-height: 1; color: #fff; text-shadow: 0 0 8px #fff, 0 0 16px #ff2b45; animation: reviewbeat 1.6s ease-in-out infinite; }
header.top .review-cta { display: flex; width: fit-content; }
.mx2-review-cta { display: flex; width: 100%; margin: 4px 0 12px; }
@keyframes reviewglow { 0%, 100% { box-shadow: 0 0 0 2px #ffd1d8, 0 0 14px 3px rgba(255,43,69,.6), 0 0 34px 8px rgba(255,43,69,.25); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 26px 7px rgba(255,43,69,.95), 0 0 60px 16px rgba(255,43,69,.45); } }
@keyframes reviewbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .review-cta, .review-heart { animation: none; } }

/* v17 Night 6 — red / black / silver. Mobile-first, no new media. */
.mx6-stage .mx-body {overflow-wrap:anywhere}
.mx6-bar {height:10px;border:1px solid #c9ced6;background:#080406;border-radius:9px;overflow:hidden;margin:12px 0}
.mx6-bar i {display:block;height:100%;background:#c8102e}
.mx6-ledger {font:12px/1.5 monospace;color:#c9ced6;background:#0b080a;border:1px solid #6a6d75;padding:10px;border-radius:8px}
.mx6-ledger p {margin:5px 0}
.mx6-note {white-space:pre-line;color:#e9ecf0;background:linear-gradient(135deg,#29292f,#101014);border:1px solid #c9ced6;border-radius:8px;padding:18px;margin:12px 0;box-shadow:0 8px 24px #0008;font:14px/1.6 monospace}
.mx6-gallery {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mx6-wall {position:relative;padding:0;background:#171318;border:1px solid #7d838c;border-radius:8px;overflow:hidden;min-height:100px;color:#e9ecf0}
.mx6-wall img {width:100%;height:114px;object-fit:cover;object-position:center 20%;display:block}
.mx6-wall:nth-child(2) img {object-fit:contain;object-position:center;background:#000}
.mx6-wall span {display:block;padding:6px;font:12px monospace}
.mx6-wall[aria-pressed=true],.mx6-picked {border:2px solid #ff2b45;box-shadow:0 0 12px #c8102e}
.mx6-live img {animation:mx6-blink 3s infinite}
@keyframes mx6-blink {0%,92%,100%{filter:brightness(1)}95%{filter:brightness(.3)}}
.mx6-self {padding:12px;border:1px solid #c9ced6;border-radius:8px;display:grid;gap:10px}
.mx6-scratch {position:relative;width:100%;aspect-ratio:6/5;background:repeating-linear-gradient(140deg,#303846,#303846 30px,#4b5566 31px,#4b5566 60px);border:1px solid #c9ced6;overflow:hidden;border-radius:12px}
.mx6-scratch>span {position:absolute;inset:0;display:grid;place-content:center;text-align:center;font:20px/1.5 monospace;color:#bbc1ca}
.mx6-scratch canvas {position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.mx6-form {display:grid;gap:10px;margin:16px 0;font-size:13px;color:#c9ced6}
.mx6-form input {min-width:0;padding:12px;background:#090608;border:1px solid #c9ced6;border-radius:7px;color:#fff;font-size:16px}
.mx6-form button,.mx6-note button {padding:12px;background:#221b20;color:#e9ecf0;border:1px solid #c9ced6;border-radius:7px;min-height:44px}
.mx6-note button:disabled {opacity:.45}
.mx6-pulse {animation:mx6-pulse .7s}
@keyframes mx6-pulse {50%{background:#c8102e80}}
.mx6-shake {animation:mx6-shake .3s}
@keyframes mx6-shake {30%{transform:translateX(-4px)}70%{transform:translateX(4px)}}
.b-ransomed,.ransom-on {color:#e9ecf0;border-color:#c8102e}
@media(prefers-reduced-motion:reduce){.mx6-live img,.mx6-shake,.mx6-pulse{animation:none}}

/* Chapter 2 Night 7 — isolated red / black / silver ending-lock presentation. */
.mx7-stage .mx-win { border-color:#a8adb6; }
.mx7-stage .mx-body { background:linear-gradient(180deg,rgba(8,6,9,.80),rgba(8,6,9,.72)); }
.mx7-stage .mx-mina { max-width:34ch; }
.mx7-notice,.mx7-checklist,.mx7-update,.mx7-firewall,.mx7-search,.mx7-terms,.mx7-montage { border:1px solid #9298a4;background:rgba(7,5,8,.86);padding:14px;margin:10px 0;border-radius:7px;color:#e9ecf0; }
.mx7-checklist { display:grid;gap:14px; }.mx7-checklist label { display:flex;gap:10px;align-items:center; }.mx7-checklist input { accent-color:#c8102e;min-width:20px;min-height:20px; }
.mx7-red { color:#ff526b; }.mx7-montage { text-align:center;min-height:110px;box-shadow:6px 6px #1f2025,10px 10px #3c1820; }.mx7-montage[data-tier="hers"]{border-color:#c8102e;}.mx7-montage h2{font-size:30px;letter-spacing:3px;margin:12px 0;}
.mx7-firewall { min-height:85px;display:grid;place-content:center;text-align:center;letter-spacing:3px;background:repeating-linear-gradient(90deg,transparent 0 38px,#6c717c40 39px 40px),repeating-linear-gradient(0deg,#080609c9 0 20px,#6c717c40 21px 22px); }
.mx7-search { font:12px monospace;overflow-wrap:anywhere; }.mx7-snoozes { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }.mx7-snoozes button { min-height:44px; }.mx7-cascade { font:11px monospace;min-height:100px; }.mx7-spinner { font-size:54px;text-align:center;color:#c9ced6;animation:mx7-spin 2s linear infinite; }@keyframes mx7-spin{to{transform:rotate(360deg)}}
.mx7-terms { max-height:160px;overflow-y:auto;font:12px/1.7 monospace; }.mx7-terms p{padding:7px;border-bottom:1px solid #555;}.mx7-stage button:disabled{opacity:.5;cursor:not-allowed;}
.mx7-banner { border:1px solid #c9ced6;padding:10px;text-align:center;font:12px monospace;position:relative; }.mx7-pixel { position:absolute;right:4px;top:4px;width:3px;height:3px;background:#ff2345; }.mx7-patched { border-color:#e9ecf0!important; }.mx7-installed { border-color:#c8102e!important; }.mx7-ransom { padding:10px;border:2px dashed #ff3655;color:#ff526b;text-transform:uppercase;letter-spacing:2px;transform:rotate(-3deg);text-align:center;margin:15px 0; }.mx7-ending .mx-end-port img { object-position:50% 24%; }.mx7-network { color:#ff2b45;font:16px/2.2 monospace;letter-spacing:5px;padding:16px;background:#0009; }.mx7-network div:nth-child(odd){color:#c9ced6;}.mx7-installed-tag{font-size:10px;color:#ff2b45;white-space:nowrap;}.mx7-installed-row{border-left:2px solid #c8102e;}
@media (prefers-reduced-motion:reduce){.mx7-spinner{animation:none}}

.mx7-portrait{height:190px;display:flex;justify-content:center;margin:0 auto 12px;background:radial-gradient(ellipse,#4b001e60,transparent 75%);}.mx7-portrait img{height:100%;max-width:100%;width:auto;object-fit:contain;border:1px solid #8d919d;box-shadow:0 0 22px #c8102e35;border-radius:6px}.mx7-stage .mx-win{max-width:540px;}

/* Night 7 second mini-game: spatial circuit lock, isolated mobile controls. */
.mx7-circuit { margin:12px 0; padding:12px; border:1px solid #d64f86; border-radius:12px; background:#100a18; }
.mx7-circuit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:10px 0; }
.mx7-circuit-grid button { min-width:48px; min-height:60px; aspect-ratio:1.15; padding:0; border:2px solid #71334e; border-radius:8px; background:#241326; color:#c7658c; touch-action:manipulation; }
.mx7-circuit-grid button svg { width:100%; height:100%; max-height:86px; }
.mx7-circuit-grid path { stroke:currentColor; stroke-width:12; fill:none; }
.mx7-circuit-grid circle { fill:currentColor; }
.mx7-circuit-grid .live { color:#e8ffff; border-color:#8cebdc; background:#123334; box-shadow:0 0 8px #6ff7d544; }
.mx7-circuit-grid button:disabled { opacity:1; }
.mx7-circuit-grid .blank { color:#5a3850; background:#150e1a; border-style:dashed; }
.mx7-circuit-grid button:focus-visible { outline:3px solid white; outline-offset:2px; }
.mx7-circuit-labels { display:flex; justify-content:space-between; color:#b9f9ef; font-size:12px; }
.mx7-circuit-clock { font-size:13px; color:#f3b8d2; min-height:2.4em; }
.mx7-circuit-feedback { font-size:13px; min-height:3.5em; }
.mx7-circuit > button { min-height:48px; width:100%; touch-action:manipulation; }

/* Week 2 Patch: independent daily check-in, no scoring changes. */
.patch-card { position:relative; overflow:hidden; border:1px solid #f44793; background:linear-gradient(145deg,#270d20,#120912 65%); box-shadow:0 0 25px #f3207322,inset 0 1px #ff8bb530; }
.patch-card::before { content:""; display:block; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#fa3385,#ffacbc,#ff2846); }
.patch-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.patch-head .eyebrow { color:#ff88bb; margin:0; }
.patch-chip { font:700 10px monospace; letter-spacing:.08em; color:#ffb9d6; white-space:nowrap; padding:6px 8px; border:1px solid #ef39736b; border-radius:4px; }
.patch-card h2 { font:700 26px/1.2 system-ui,sans-serif; color:#fff0f7; margin:17px 0 10px; letter-spacing:-.04em; }
.patch-copy { font-size:15px; line-height:1.6; color:#f5dbe9; }
.patch-status { font-size:13px; color:#ff99c3; min-height:1.5em; margin:18px 0 12px; }
.patch-actions { display:flex; gap:10px; }
.patch-actions .btn { flex:1; min-width:0; }
.patch-card .fine { font-size:11px; line-height:1.6; color:#c5a6b9; margin-top:14px; }
.patch-focus { display:grid; grid-template-columns:120px 1fr; gap:16px; margin-top:18px; padding:14px; background:#0c050d; border:1px solid #ff42943d; border-radius:10px; }
.patch-focus img { width:120px; height:170px; object-fit:cover; border-radius:8px; object-position:50% 50%; }
.patch-clock-panel { min-width:0; }
.patch-clock-panel .eyebrow { margin:0; font-size:10px; }
#patch2-clock { display:block; font:700 40px/1.4 monospace; color:#ff86b8; font-variant-numeric:tabular-nums; text-shadow:0 0 20px #ff33865c; }
#patch2-start { width:100%; font-size:12px; padding:10px 8px; }
#patch2-confession-wrap { margin-top:20px; }
#patch2-confession-wrap label { display:block; font-size:12px; color:#ffb4d2; margin-bottom:8px; }
#patch2-confession { display:block; width:100%; resize:vertical; box-sizing:border-box; background:#0c060d; border:1px solid #87405e; border-radius:8px; color:#fff0f6; padding:12px; font:inherit; font-size:14px; }
.patch-card button:focus-visible, #patch2-confession:focus-visible { outline:2px solid #fff0f6; outline-offset:3px; }
.patch-card button:disabled { opacity:.45; cursor:not-allowed; }
.patch-logged { border-color:#97536e; }
.patch-haunted::after { content:"MINA.EXE // 13"; position:absolute; right:10px; top:55px; font:9px monospace; color:#ff4d8b; opacity:.5; transform:rotate(-3deg); pointer-events:none; }
.patch-haunted h2 { text-shadow:2px 0 #ff286d,-2px 0 #45e7ee; }
.patch-slip-tag { color:#ffa4cb; font-size:10px; }
.b-patched { filter:drop-shadow(0 0 4px #f36cab88); }
@media(max-width:360px) { .patch-focus { grid-template-columns:90px 1fr; gap:10px; padding:10px; } .patch-focus img { width:90px; height:150px; } #patch2-clock { font-size:32px; } }

/* v21: Chapter 3 "Patch 2.0" (Night 8) */
.mx3-entry { box-shadow: inset 0 0 0 1px #ff4fa3, inset 0 1px 0 rgba(255,255,255,.06); }
.mx3-ico { color:#ff6fb5; }
.mx3-stage .mx-win { border-color:#ff6fb5; }
.mx3-bios,.mx3-boot-menu,.mx3-wizard,.mx3-start { border:1px solid #ff6fb5;background:rgba(10,4,10,.86);padding:12px;margin:10px 0;border-radius:7px;font:12px/1.8 monospace;color:#f3dbe8; }
.mx3-boot-menu .mx3-sel { background:#ff4fa3;color:#16040d;padding:0 6px; }
.mx3-wizard { font-family:var(--body);display:grid;gap:6px; }
.mx3-start { display:flex;flex-wrap:wrap;gap:6px; }.mx3-start span { padding:4px 8px;border:1px solid #ff6fb5;border-radius:4px; }.mx3-start .mx3-dim { opacity:.45;border-style:dashed; }
.mx3-flash { margin:12px 0;padding:12px;border:1px solid #ff4fa3;border-radius:12px;background:#12060f; }
.mx3-flash-clock { font:12px monospace;color:#ffb3d6; }
.mx3-flash-bar { position:relative;height:34px;margin:12px 0;border:1px solid #71334e;border-radius:6px;background:repeating-linear-gradient(90deg,#1d0c18 0 9px,#26101f 9px 10px);overflow:hidden; }
.mx3-flash-zone { position:absolute;top:0;bottom:0;background:#ff4fa3aa;box-shadow:0 0 14px #ff4fa3; }
.mx3-flash-head { position:absolute;top:-2px;bottom:-2px;width:3px;margin-left:-1px;background:#fff;box-shadow:0 0 8px #fff; }
.mx3-flash-cells { display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:8px 0; }
.mx3-flash-cells i { height:12px;border-radius:3px;background:#2a1422;box-shadow:inset 0 0 0 1px #71334e; }
.mx3-flash-cells i.ok { background:#e9ecf0; }.mx3-flash-cells i.bad { background:#c8102e; }
.mx3-flash-tap { width:100%;min-height:64px;font:700 22px/1 var(--body);letter-spacing:6px;color:#16040d;background:#ff4fa3;border:0;border-radius:10px;touch-action:manipulation; }
.mx3-flash-tap:active { transform:scale(.97); }
.mx3-flash-feedback { min-height:1.4em;color:#ffb3d6; }

/* ═══ v22: Mina.exe Ch3 · NIGHT 10 "Lock Screen" — bright bubblegum phone skin (Night 9 skipped) ═══ */
.mx10-skin .mx-win { background:linear-gradient(180deg,#fff4fa,#ffe1ef 60%,#ffd3e8);box-shadow:inset 0 0 0 1px #ff8cc6,0 12px 40px rgba(255,79,163,.35); }
.mx10-skin .mx-titlebar { background:linear-gradient(90deg,#ff5fa8,#ff9ccb);color:#fff;box-shadow:none; }
.mx10-skin .mx-dots { color:#fff; }
.mx10-skin .mx-mina { color:#c2185b;text-shadow:0 1px 0 #fff,0 0 12px rgba(255,105,180,.35); }
.mx10-skin .mx-mina.mx-typing::after { color:#ff4fa3; }
.mx10-skin .mx-hint { color:#8a4a6a; }
.mx10-skin .mx-sys,.mx10-skin .mx2-fx { color:#a0306a; }
.mx10-skin .mx-choice { color:#7a0d45;background:linear-gradient(180deg,#fff,#ffe3f0);box-shadow:inset 0 0 0 1px #ff8cc6,0 2px 0 #ffb3d6;clip-path:none;border-radius:999px; }
.mx10-skin .mx-choice.mx-strong { color:#fff;background:linear-gradient(180deg,#ff7ab8,#ff3d95);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 #c2185b; }
.mx10-skin .mx-choice.mx-fire { color:#fff;background:linear-gradient(180deg,#ff8fc4,#ff2e88);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 0 #b0124f; }
.mx10-skin .mx7-portrait { background:radial-gradient(ellipse,#ffb3d680,transparent 75%); }
.mx10-skin .mx7-portrait img,.mx10-skin .mx-end-port img { border:2px solid #fff;box-shadow:0 6px 22px rgba(255,79,163,.45);border-radius:18px; }
.mx10-skin .mx2-stats dt { color:#a0306a; } .mx10-skin .mx2-stats dd { color:#4a0a2a; }
.mx10-skin .mx-end-title { color:#ff2e88;text-shadow:0 2px 0 #fff; }
.mx10-skin .mx2-quote { color:#8a4a6a; }
.mx10-skin .mx7-network { color:#7a0d45;border-color:#ff8cc6;background:#fff0f7; }
.mx10-skin .mx2-tile { background:linear-gradient(135deg,#ff6fb5,#ffb86b);color:#fff;border:0; }
.mx10-phone { margin:10px auto;max-width:340px;border-radius:26px;padding:12px;background:linear-gradient(180deg,#fff,#ffeef7);box-shadow:0 0 0 6px #ffc2e0,0 10px 30px rgba(255,79,163,.35);color:#4a0a2a;font-family:var(--body); }
.mx10-lock { text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,214,235,.85)),url("ui/minaexe/ch3/n10-lockscreen.webp") center 20%/cover; }
.mx10-clock { font:800 54px/1 var(--display);color:#fff;text-shadow:0 2px 12px #ff4fa3; }
.mx10-date { font:700 13px/1.6 var(--body);letter-spacing:2px;color:#c2185b;text-transform:uppercase; }
.mx10-notes { display:grid;gap:6px;margin-top:10px;text-align:left; }
.mx10-notes p { margin:0;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.88);font-size:13px;box-shadow:0 2px 8px rgba(255,79,163,.2);display:flex;gap:6px;align-items:baseline; }
.mx10-notes b { color:#ff2e88; } .mx10-notes small { margin-left:auto;color:#b07a95;font-size:11px; }
.mx10-chat header { display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #ffd0e6; }
.mx10-chat header small { color:#2bb673;font-size:11px;margin-left:auto; }
.mx10-av { width:34px;height:34px;border-radius:50%;background:center 15%/cover;box-shadow:0 0 0 2px #ff7ab8; }
.mx10-log { display:flex;flex-direction:column;gap:6px;padding-top:10px;max-height:260px;overflow:auto; }
.mx10-msg { margin:0;max-width:80%;padding:8px 12px;border-radius:18px;font-size:15px;line-height:1.35; }
.mx10-her { align-self:flex-start;background:#ff4fa3;color:#fff;border-bottom-left-radius:4px; }
.mx10-me { align-self:flex-end;background:#e9e3ff;color:#2d1a5a;border-bottom-right-radius:4px; }
.mx10-dots i { display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:#fff;animation:mx10-dot 1s infinite; }
.mx10-dots i:nth-child(2){animation-delay:.15s}.mx10-dots i:nth-child(3){animation-delay:.3s}
@keyframes mx10-dot { 0%,100%{opacity:.3;transform:translateY(0)} 50%{opacity:1;transform:translateY(-3px)} }
.mx10-pin { margin:12px 0; }
.mx10-pinpad { text-align:center; }
.mx10-pin-status { margin:0 0 6px;font:700 14px var(--body);color:#c2185b; }
.mx10-pin-dots { display:flex;justify-content:center;gap:8px;min-height:16px;margin:6px 0; }
.mx10-pin-dots i { width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 2px #ff7ab8; } .mx10-pin-dots i.on { background:#ff4fa3; }
.mx10-pin-time { height:4px;border-radius:4px;background:#ffd0e6;margin:6px 10px 10px;overflow:hidden; } .mx10-pin-time i { display:block;height:100%;width:100%;background:#ff4fa3;transition:width .1s linear; }
.mx10-keys { display:grid;grid-template-columns:repeat(3,64px);justify-content:center;gap:10px; }
.mx10-keys button { all:unset;cursor:pointer;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font:600 26px var(--body);color:#7a0d45;background:#fff;box-shadow:inset 0 0 0 2px #ffb3d6,0 3px 0 #ffc2e0;touch-action:manipulation;transition:transform .08s,background .12s; }
.mx10-keys button:disabled { cursor:default; }
.mx10-keys button.lit { background:#ff4fa3;color:#fff;box-shadow:0 0 0 4px #ffd0e6,0 0 22px #ff4fa3;transform:scale(1.08); }
.mx10-keys button.tap { background:#ffd0e6;transform:scale(.94); }
.mx10-pin-rounds { display:flex;justify-content:center;gap:8px;margin:10px 0; }
.mx10-pin-rounds i { min-width:30px;padding:3px 8px;border-radius:999px;font:700 12px var(--body);font-style:normal;text-align:center;color:#a0306a;background:#fff;box-shadow:inset 0 0 0 1px #ff8cc6; }
.mx10-pin-rounds i.ok { background:#2bb673;color:#fff;box-shadow:none; } .mx10-pin-rounds i.bad { background:#ff2e55;color:#fff;box-shadow:none; }
.mx10-pin-feedback { min-height:1.4em;text-align:center;color:#c2185b;font-weight:600; }
.mx10-shake .mx10-pinpad { animation:mx10-shake .4s; }
@keyframes mx10-shake { 0%,100%{transform:none} 25%{transform:translateX(-8px)} 50%{transform:translateX(8px)} 75%{transform:translateX(-4px)} }
.mx10-reveal { position:relative;max-width:300px;margin:10px auto;border-radius:20px;overflow:hidden;box-shadow:0 0 0 4px #fff,0 10px 30px rgba(255,79,163,.45);aspect-ratio:9/16;background:#ffe1ef; }
.mx10-reveal canvas { display:block;width:100%;height:100%; }
.mx10-bar { position:absolute;left:-6%;right:-6%;height:9%;background:#111;transition:transform .5s cubic-bezier(.6,-.3,.7,1),opacity .5s; }
.mx10-bar.b1 { top:28%;transform:rotate(-3deg); } .mx10-bar.b2 { top:47%;transform:rotate(2deg); } .mx10-bar.b3 { top:63%;transform:rotate(-1deg); }
.mx10-glitch .mx10-bar { animation:mx10-bar .18s steps(2) infinite; }
@keyframes mx10-bar { 50%{ filter:invert(1);margin-left:8px } }
.mx10-clear .mx10-bar.b1 { transform:translateX(-120%) rotate(-12deg);opacity:0; } .mx10-clear .mx10-bar.b2 { transform:translateX(120%) rotate(10deg);opacity:0; } .mx10-clear .mx10-bar.b3 { transform:translateY(400%) rotate(-20deg);opacity:0; }
.mx10-stamp { position:absolute;left:50%;top:6%;transform:translateX(-50%) rotate(-6deg);padding:6px 12px;border:3px solid #fff;border-radius:10px;background:#ff2e88;color:#fff;font:800 16px/1 var(--display);letter-spacing:2px;white-space:nowrap;box-shadow:0 4px 18px rgba(255,46,136,.6);animation:mx10-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes mx10-pop { from{transform:translateX(-50%) rotate(-6deg) scale(2.2);opacity:0} }
.mx10-timer { --p:100;width:120px;height:120px;margin:12px auto;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(#ff4fa3 calc(var(--p)*1%),#ffe1ef 0);box-shadow:0 0 0 6px #fff,0 6px 20px rgba(255,79,163,.4);position:relative; }
.mx10-timer::before { content:"";position:absolute;inset:12px;border-radius:50%;background:#fff; }
.mx10-timer b,.mx10-timer small { position:relative; } .mx10-timer b { font:800 44px/1 var(--display);color:#ff2e88; } .mx10-timer small { color:#a0306a;font-size:11px;letter-spacing:2px;text-transform:uppercase; }
.mx10-timer.mx10-timeout b { color:#2bb673; }
.mx10-screentime b { display:block;margin-bottom:8px;color:#c2185b; }
.mx10-screentime p { display:grid;grid-template-columns:100px 1fr 54px;align-items:center;gap:8px;margin:6px 0;font-size:13px; }
.mx10-screentime p i { height:10px;border-radius:6px;background:linear-gradient(90deg,#ff4fa3 var(--w),#ffe1ef var(--w)); }
.mx10-screentime small { color:#8a4a6a;text-align:right; }
.mx10-void { margin:6px auto;width:max-content;max-width:100%;padding:4px 10px;border:2px dashed #2bb673;border-radius:8px;color:#1d8a55;font:800 12px/1.3 var(--display);letter-spacing:1.5px;transform:rotate(-2deg); }
@media (max-width:420px){ .mx10-keys{grid-template-columns:repeat(3,58px)} .mx10-keys button{width:58px;height:58px;font-size:23px} .mx10-clock{font-size:46px} }
.mx-stage.mx10-skin { background:linear-gradient(180deg,rgba(255,206,230,.62),rgba(255,236,246,.5)); }
.mx10-skin .mx-body,.mx7-stage.mx10-skin .mx-body { background:linear-gradient(180deg,rgba(255,246,251,.9),rgba(255,228,241,.86)); }
.mx10-skin .mx-log-line { color:inherit; }
.mx10-skin .mx10-reveal + .mx-mina,.mx10-skin .mx-mina { max-width:none; }
.mx3-stage .mx2-day[data-night="10"].mx2-play,.mx3-stage .mx2-day[data-night="10"].mx2-resume { background:linear-gradient(135deg,#ff5fa8,#ff9ccb 60%,#ffc58a);color:#fff;box-shadow:0 0 0 1px #fff,0 0 22px rgba(255,95,168,.55); }
.mx3-stage .mx2-day[data-night="10"].mx2-play .mx2-dn,.mx3-stage .mx2-day[data-night="10"].mx2-play small { color:#fff; }
.mx3-stage .mx2-day[data-night="10"].mx2-drop { box-shadow:inset 0 0 0 1px #ff8cc6; }
.mx10-skin .mx7-network { font:13px/1.9 monospace;letter-spacing:1.5px;border-radius:14px;box-shadow:inset 0 0 0 1px #ff8cc6; }
.mx10-skin .mx7-network div:nth-child(odd) { color:#c2185b; }
.mx-stage.mx10-skin.mx2-cliff,.mx-stage.mx10-skin.mx-stage-end { background:linear-gradient(180deg,rgba(255,214,235,.35),rgba(255,236,246,.08) 70%); }

/* v23: Chapter 3 Night 11 "Big Screen" — living-room TV / broadcast skin */
.mx11-skin .mx-win { background:linear-gradient(180deg,#1a0e16,#2a1220 55%,#140810); box-shadow:inset 0 0 0 2px #ff6fb5,0 0 0 6px #0a0408,0 16px 40px rgba(255,79,163,.35); border-radius:14px; }
.mx11-skin .mx-titlebar { background:linear-gradient(90deg,#19e0d0,#ff4fa3); color:#140810; box-shadow:none; font-weight:800; letter-spacing:1px; }
.mx11-skin .mx-dots { color:#140810; }
.mx11-skin .mx-mina { color:#ffe9f4; text-shadow:0 0 12px rgba(255,105,180,.45); }
.mx11-skin .mx-mina.mx-typing::after { color:#19e0d0; }
.mx11-skin .mx-hint { color:#e7a0c0; }
.mx11-skin .mx-sys,.mx11-skin .mx2-fx { color:#19e0d0; }
.mx11-skin .mx-choice { color:#fff; background:linear-gradient(180deg,#3a1a2c,#2a1020); box-shadow:inset 0 0 0 1px #ff8cc6,0 2px 0 #7a1848; clip-path:none; border-radius:999px; }
.mx11-skin .mx-choice.mx-strong { color:#140810; background:linear-gradient(180deg,#7ff0e8,#19e0d0); box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 #0a7a74; }
.mx11-skin .mx-choice.mx-fire { color:#fff; background:linear-gradient(180deg,#ff8fc4,#ff2e88); box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 0 #b0124f; }
.mx11-skin .mx7-portrait { background:radial-gradient(ellipse,#ffb3d680,transparent 75%); }
.mx11-skin .mx7-portrait img,.mx11-skin .mx-end-port img { border:3px solid #fff; box-shadow:0 0 0 3px #ff4fa3,0 8px 24px rgba(25,224,208,.35); border-radius:10px; }
.mx11-skin .mx2-stats dt { color:#19e0d0; } .mx11-skin .mx2-stats dd { color:#ffe9f4; }
.mx11-skin .mx-end-title { color:#ff7ab8; text-shadow:0 0 16px rgba(255,79,163,.6); }
.mx11-skin .mx2-quote { color:#e7a0c0; }
.mx11-skin .mx7-network { color:#19e0d0; border-color:#ff8cc6; background:#1a0e16; }
.mx11-skin .mx2-tile { background:linear-gradient(135deg,#19e0d0,#ff4fa3); color:#140810; border:0; }
.mx11-skin .mx-body,.mx7-stage.mx11-skin .mx-body { background:linear-gradient(180deg,rgba(20,8,16,.92),rgba(42,18,32,.9)); }
.mx11-skin .mx-log-line { color:inherit; }
.mx11-skin .mx-mina { max-width:none; }
.mx11-skin .mx7-network { font:13px/1.9 monospace; letter-spacing:1.5px; border-radius:14px; box-shadow:inset 0 0 0 1px #ff8cc6; }
.mx11-skin .mx7-network div:nth-child(odd) { color:#ff9ccb; }
.mx-stage.mx11-skin.mx2-cliff,.mx-stage.mx11-skin.mx-stage-end { background:linear-gradient(180deg,rgba(255,160,210,.28),rgba(25,224,208,.08) 70%); }

.mx11-tv { margin:10px auto; max-width:420px; border-radius:16px 16px 22px 22px; padding:12px 12px 18px; background:linear-gradient(180deg,#2a2a32,#121216); box-shadow:0 0 0 3px #ff4fa3,0 10px 30px rgba(0,0,0,.45); color:#fff; font-family:var(--body); }
.mx11-tv::after { content:""; display:block; width:38%; height:8px; margin:10px auto 0; border-radius:0 0 8px 8px; background:#2a2a32; box-shadow:0 2px 0 #0a0a0c; }
.mx11-screen { position:relative; min-height:120px; border-radius:8px; padding:12px 14px; background:linear-gradient(180deg,#3a1840,#1a0820); overflow:hidden; box-shadow:inset 0 0 0 2px #19e0d0; }
.mx11-live { position:absolute; top:8px; left:10px; padding:2px 7px; border-radius:4px; background:#ff2e88; color:#fff; font:800 10px/1.2 var(--display); letter-spacing:1.5px; }
.mx11-ch { display:block; margin:22px 0 6px; font:800 32px/1 var(--display); letter-spacing:2px; color:#fff; text-shadow:0 0 12px #19e0d0; }
.mx11-osd { margin:2px 0; font:12px/1.5 monospace; color:#19e0d0; }
.mx11-snow { position:absolute; inset:0; pointer-events:none; opacity:0; background:repeating-linear-gradient(180deg,transparent 0 2px,rgba(255,255,255,.25) 2px 3px),repeating-linear-gradient(90deg,transparent 0 3px,rgba(255,79,163,.2) 3px 4px); animation:mx11-static 0.18s steps(2) infinite; }
.mx11-screen.mx11-static .mx11-snow { opacity:.85; }
.mx11-screen.mx11-locked { background:linear-gradient(180deg,#ff7ab8,#ff4fa3 40%,#7b1fa2); }
.mx11-screen.mx11-locked .mx11-snow { opacity:0; }
@keyframes mx11-static { to { background-position: 4px 3px, -3px 2px; } }

.mx11-guide .mx11-rows { padding:8px; background:#120814; border-radius:8px; }
.mx11-guide .mx11-rows p { display:grid; grid-template-columns:36px 1fr auto; gap:8px; align-items:center; margin:4px 0; padding:6px 8px; border-radius:6px; background:#2a1220; color:#ffe9f4; font-size:13px; }
.mx11-guide .mx11-rows p.on { background:linear-gradient(90deg,#ff4fa3,#19e0d0); color:#140810; font-weight:800; }
.mx11-guide .mx11-rows b { color:#19e0d0; } .mx11-guide .mx11-rows p.on b { color:#140810; }

.mx11-vol { text-align:center; padding-bottom:8px; }
.mx11-vbar { height:16px; margin:12px 10px 6px; border-radius:8px; background:#2a1220; box-shadow:inset 0 0 0 1px #71334e; overflow:hidden; }
.mx11-vbar i { display:block; height:100%; width:var(--v,70%); background:linear-gradient(90deg,#19e0d0,#ff4fa3); }
.mx11-vol small { color:#19e0d0; letter-spacing:2px; font:800 12px monospace; }

.mx11-tune { margin:8px 0 12px; }
.mx11-dial { position:relative; height:28px; margin:12px 6px 10px; border-radius:8px; background:repeating-linear-gradient(90deg,#1d0c18 0 9px,#26101f 9px 10px); box-shadow:inset 0 0 0 1px #71334e; touch-action:none; cursor:ew-resize; }
.mx11-zone { position:absolute; top:0; bottom:0; background:#19e0d0aa; box-shadow:0 0 14px #19e0d0; }
.mx11-needle { position:absolute; top:-3px; bottom:-3px; width:4px; margin-left:-2px; background:#fff; box-shadow:0 0 8px #fff,0 0 12px #ff4fa3; border-radius:2px; }
.mx11-chbtns { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:8px 0 4px; }
.mx11-chbtns button { min-height:56px; font:800 20px/1 var(--display); letter-spacing:2px; color:#140810; background:linear-gradient(180deg,#7ff0e8,#19e0d0); border:0; border-radius:12px; touch-action:manipulation; }
.mx11-chbtns button:active { transform:scale(.97); }
.mx11-chbtns button:disabled { opacity:.4; }
.mx11-tune-rounds { display:flex; justify-content:center; gap:8px; margin:8px 0; }
.mx11-tune-rounds i { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font:800 12px/1 var(--display); color:#ffe9f4; background:#2a1220; box-shadow:inset 0 0 0 1px #71334e; }
.mx11-tune-rounds i.ok { background:#19e0d0; color:#140810; }
.mx11-tune-rounds i.bad { background:#c8102e; color:#fff; }
.mx11-tune-rounds.mx11-done { opacity:.8; }
.mx11-tune-feedback { min-height:1.4em; color:#ffb3d6; text-align:center; }
.mx11-tune.mx11-shake { animation:mx11-shake .35s ease; }
@keyframes mx11-shake { 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }
.mx11-stamp { margin:6px auto; width:max-content; max-width:100%; padding:4px 10px; border:2px dashed #19e0d0; border-radius:8px; color:#19e0d0; font:800 12px/1.3 var(--display); letter-spacing:1.5px; transform:rotate(-2deg); }


/* v24: Chapter 3 Night 12 "Every Screen" — house-cast / multi-screen skin (gold + magenta, distinct from Night 11 cyan TV) */
.mx12-skin .mx-win { background:linear-gradient(180deg,#1a1008,#2a1810 55%,#120a06); box-shadow:inset 0 0 0 2px #ffd24a,0 0 0 6px #0a0604,0 16px 40px rgba(255,79,163,.35); border-radius:14px; }
.mx12-skin .mx-titlebar { background:linear-gradient(90deg,#ffd24a,#ff4fa3); color:#140810; box-shadow:none; font-weight:800; letter-spacing:1px; }
.mx12-skin .mx-dots { color:#140810; }
.mx12-skin .mx-mina { color:#ffe9d4; text-shadow:0 0 12px rgba(255,210,74,.4); max-width:none; }
.mx12-skin .mx-mina.mx-typing::after { color:#ffd24a; }
.mx12-skin .mx-hint { color:#e7b890; }
.mx12-skin .mx-sys,.mx12-skin .mx2-fx { color:#ffd24a; }
.mx12-skin .mx-choice { color:#fff; background:linear-gradient(180deg,#3a2410,#2a180c); box-shadow:inset 0 0 0 1px #ffb84a,0 2px 0 #7a4818; clip-path:none; border-radius:10px; }
.mx12-skin .mx-choice.mx-strong { color:#140810; background:linear-gradient(180deg,#ffe38a,#ffd24a); box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 #a07810; }
.mx12-skin .mx-choice.mx-fire { color:#fff; background:linear-gradient(180deg,#ff8fc4,#ff2e88); box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 0 #b0124f; }
.mx12-skin .mx7-portrait { background:radial-gradient(ellipse,#ffd24a66,transparent 75%); }
.mx12-skin .mx7-portrait img,.mx12-skin .mx-end-port img { border:3px solid #fff; box-shadow:0 0 0 3px #ffd24a,0 8px 24px rgba(255,79,163,.35); border-radius:10px; }
.mx12-skin .mx2-stats dt { color:#ffd24a; } .mx12-skin .mx2-stats dd { color:#ffe9d4; }
.mx12-skin .mx-end-title { color:#ff7ab8; text-shadow:0 0 16px rgba(255,210,74,.5); }
.mx12-skin .mx2-quote { color:#e7b890; }
.mx12-skin .mx7-network { color:#ffd24a; border-color:#ff8cc6; background:#1a1008; font:13px/1.9 monospace; letter-spacing:1.5px; border-radius:14px; box-shadow:inset 0 0 0 1px #ffb84a; }
.mx12-skin .mx7-network div:nth-child(odd) { color:#ff9ccb; }
.mx12-skin .mx2-tile { background:linear-gradient(135deg,#ffd24a,#ff4fa3); color:#140810; border:0; }
.mx12-skin .mx-body,.mx7-stage.mx12-skin .mx-body { background:linear-gradient(180deg,rgba(20,12,6,.92),rgba(42,24,16,.9)); }
.mx12-skin .mx-log-line { color:inherit; }
.mx-stage.mx12-skin { background:linear-gradient(180deg,rgba(255,210,74,.18),rgba(255,79,163,.12)); }
.mx-stage.mx12-skin.mx2-cliff,.mx-stage.mx12-skin.mx-stage-end { background:linear-gradient(180deg,rgba(255,210,74,.22),rgba(20,8,16,.08) 70%); }
.mx3-stage .mx2-day[data-night="12"].mx2-play,.mx3-stage .mx2-day[data-night="12"].mx2-resume { background:linear-gradient(135deg,#ffd24a,#ff4fa3 60%,#ff9ccb); color:#140810; box-shadow:0 0 0 1px #fff,0 0 22px rgba(255,210,74,.55); }
.mx3-stage .mx2-day[data-night="12"].mx2-play .mx2-dn,.mx3-stage .mx2-day[data-night="12"].mx2-play small { color:#140810; }
.mx3-stage .mx2-day[data-night="12"].mx2-drop { box-shadow:inset 0 0 0 1px #ffd24a; }

.mx12-house { margin:10px auto; max-width:420px; }
.mx12-screen { position:relative; min-height:140px; border-radius:12px; padding:14px 14px 16px; background:linear-gradient(180deg,#2a1810,#140a08); overflow:hidden; box-shadow:inset 0 0 0 2px #ffd24a,0 0 0 4px #1a1008,0 10px 30px rgba(0,0,0,.45); }
.mx12-live { position:absolute; top:8px; left:10px; padding:2px 7px; border-radius:4px; background:#ff2e88; color:#fff; font:800 10px/1.2 var(--display); letter-spacing:1.5px; }
.mx12-ch { display:block; margin:22px 0 8px; font:800 28px/1 var(--display); letter-spacing:2px; color:#fff; text-shadow:0 0 12px #ffd24a; }
.mx12-devices { list-style:none; margin:4px 0 0; padding:0; }
.mx12-devices li { display:flex; justify-content:space-between; align-items:center; margin:4px 0; padding:6px 8px; border-radius:6px; background:#2a1810; color:#ffe9d4; font-size:13px; }
.mx12-devices li.on { background:linear-gradient(90deg,#ffd24a,#ff4fa3); color:#140810; font-weight:800; }
.mx12-devices li small { font:800 10px/1 var(--display); letter-spacing:1px; }
.mx12-prompt { margin:10px auto; }
.mx12-dialog { padding:14px 16px; border-radius:14px; background:linear-gradient(180deg,#fff8e8,#ffe9d4); color:#140810; box-shadow:0 0 0 3px #ffd24a,0 8px 24px rgba(255,79,163,.3); }
.mx12-dialog b { display:block; font:800 16px/1.3 var(--display); margin-bottom:6px; }
.mx12-dialog small { color:#7a4818; }

.mx12-grid { margin:8px 0 12px; }
.mx12-board { margin-top:8px; }
.mx12-cells { --n:3; display:grid; grid-template-columns:repeat(var(--n),1fr); gap:8px; margin-top:8px; aspect-ratio:1; max-width:320px; margin-left:auto; margin-right:auto; }
.mx12-cells.mx12-locked { box-shadow:0 0 0 3px #ffd24a,0 0 18px #ffd24a; border-radius:10px; }
.mx12-cells.mx12-static { box-shadow:0 0 0 3px #ff2e88; border-radius:10px; }
.mx12-slot { position:relative; min-height:0; }
.mx12-cell { all:unset; display:block; width:100%; height:100%; aspect-ratio:1; border-radius:8px; background:#2a1810 center/cover no-repeat; box-shadow:inset 0 0 0 2px #ffb84a; touch-action:none; cursor:grab; transition:box-shadow .12s; }
.mx12-cell.mx12-ok { box-shadow:inset 0 0 0 3px #ffd24a,0 0 10px #ffd24a; }
.mx12-cell:active { cursor:grabbing; }
.mx12-grid-rounds { display:flex; justify-content:center; gap:8px; margin:8px 0; }
.mx12-grid-rounds i { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font:800 12px/1 var(--display); font-style:normal; color:#ffe9d4; background:#2a1810; box-shadow:inset 0 0 0 1px #7a4818; }
.mx12-grid-rounds i.ok { background:#ffd24a; color:#140810; }
.mx12-grid-rounds i.bad { background:#c8102e; color:#fff; }
.mx12-grid-rounds.mx12-done { opacity:.8; }
.mx12-grid-feedback { min-height:1.4em; color:#ffb3d6; text-align:center; }
.mx12-grid.mx12-shake { animation:mx12-shake .35s ease; }
@keyframes mx12-shake { 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }
.mx12-stamp { margin:6px auto; width:max-content; max-width:100%; padding:4px 10px; border:2px dashed #ffd24a; border-radius:8px; color:#ffd24a; font:800 12px/1.3 var(--display); letter-spacing:1.5px; transform:rotate(-2deg); }
