/* Odd One Out v2 ("the line-up"). Everything is scoped to .oo2 / body.oo2-page so it can't leak into other pages. */
body.oo2-page {
  background:
    radial-gradient(70% 38% at 10% 0%, rgba(140, 110, 255, 0.16), transparent 70%),
    radial-gradient(70% 38% at 90% 0%, rgba(255, 190, 80, 0.12), transparent 70%),
    #070a14;
  background-attachment: fixed;
}
@media (max-width: 640px) { body.oo2-page .site-header, body.oo2-page .circuit-bar { position: static; } }
.oo2-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.oo2 {
  --panel: #0e1428; --panel2: #141c36; --line: rgba(255, 255, 255, 0.1);
  --acc: #ffbe4a; --txt: #f3f5fa; --dim: #9aa6bd; --ok: #38c977; --bad: #e5484d;
  --easy: #38c977; --medium: #ffbe4a; --hard: #ff6b6b;
  max-width: 460px; margin: 0 auto; padding: 6px 0 90px; color: var(--txt);
}
.oo2 button { font-family: inherit; }
.oo2 [hidden] { display: none !important; }

.oo2-preview { background: rgba(255, 190, 74, .1); border: 1px dashed rgba(255, 190, 74, .6); color: #ffe2a8; border-radius: 8px; padding: 8px 12px; font-size: 12px; line-height: 1.4; margin: 4px 0 10px; }

/* HUD */
.oo2-hud { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px 12px; }
.oo2-brand { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 30px; line-height: 1; white-space: nowrap; text-align: center; }
.oo2-brand small { display: block; font-family: var(--font-body, Inter, sans-serif); font-size: 9.5px; letter-spacing: .22em; font-weight: 700; color: var(--acc); margin-top: 5px; }
.oo2-datenav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.oo2-datenav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--txt); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.oo2-datenav button:disabled { opacity: .3; cursor: not-allowed; }
.oo2-datenav button:not(:disabled):hover { border-color: var(--acc); }
.oo2-datenav span { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 15px; color: var(--acc); min-width: 110px; text-align: center; }
.oo2-h2h { background: rgba(56, 201, 119, .12); border: 1px solid var(--ok); border-radius: 10px; padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; }

/* Start card */
.oo2-start { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px 20px; text-align: center; }
.oo2-kick { font-size: 10.5px; letter-spacing: .22em; font-weight: 800; color: var(--acc); text-transform: uppercase; }
.oo2-bigtitle { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 32px; line-height: 1.08; margin: 10px 0 12px; text-wrap: balance; }
.oo2-ramp { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.oo2-ramp span, .oo2-tier { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; border: 1px solid currentColor; background: rgba(255, 255, 255, .03); }
.oo2-t-easy { color: var(--easy); } .oo2-t-medium { color: var(--medium); } .oo2-t-hard { color: var(--hard); }
.oo2-rules { list-style: none; margin: 18px 0 18px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.oo2-rules li { font-size: 13px; color: var(--dim); line-height: 1.4; padding-left: 22px; position: relative; }
.oo2-rules li::before { content: "◆"; position: absolute; left: 2px; top: 0; font-size: 11px; color: var(--acc); }
.oo2-startbtn { width: 100%; font-size: 16px; padding: 15px; }

/* Buttons */
.oo2-btn { font-weight: 800; font-size: 14px; padding: 13px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
.oo2-btn.primary { background: var(--acc); color: #0a0a0a; }
.oo2-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--txt); }
.oo2-btn:active { transform: scale(.98); }

/* Game HUD */
.oo2-top { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 8px; }
.oo2-time { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.oo2-stats { display: flex; gap: 14px; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; }
.oo2-stats b { color: var(--txt); font-size: 15px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.oo2-stats .streak b { color: var(--acc); }
.oo2-stats .streak.hot b::after { content: " 🔥"; }
.oo2-pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 14px; }
.oo2-pips i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .3s, transform .3s; }
.oo2-pips i.ok { background: var(--ok); } .oo2-pips i.bad { background: var(--bad); }
.oo2-pips i.now { background: var(--acc); animation: oo2Pulse 1.4s ease-in-out infinite; }
.oo2-rowhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.oo2-round { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.oo2-prompt { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 24px; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }

/* Player cards: monogram + foil rim. No photos (licensing); nothing on a card hints at the answer before the reveal. */
.oo2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; perspective: 900px; }
.oo2-card {
  position: relative; min-height: 158px; padding: 14px 10px 12px; border-radius: 14px; cursor: pointer; color: var(--txt);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, #18213f, #0d1226 70%) padding-box,
    linear-gradient(135deg, #ffd9a0, #7aa7ff 30%, #c8a3ff 55%, #ffbe4a 80%, #ffd9a0) border-box;
  background-size: 100% 100%, 220% 220%;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, opacity .4s, filter .4s;
  animation: oo2Deal .5s cubic-bezier(.2, .8, .2, 1) backwards;
  -webkit-tap-highlight-color: transparent;
}
.oo2-card:nth-child(2) { animation-delay: .06s; } .oo2-card:nth-child(3) { animation-delay: .12s; } .oo2-card:nth-child(4) { animation-delay: .18s; }
.oo2-card:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(122, 167, 255, .22); animation: none; }
.oo2-card:not(:disabled):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.oo2-card:disabled { cursor: default; }
.oo2-num { position: absolute; top: 8px; left: 10px; font-size: 10.5px; font-weight: 800; color: var(--dim); letter-spacing: .08em; }
.oo2-mono {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 4px;
  font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 28px; letter-spacing: .02em; color: #fff;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 60%), hsl(var(--h) 60% 28%));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 4px 14px hsla(var(--h), 70%, 40%, .4);
}
.oo2-name { font-weight: 700; font-size: 15px; line-height: 1.2; text-wrap: balance; }
.oo2-fact { font-size: 11.5px; line-height: 1.3; color: var(--dim); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease .15s, opacity .4s ease .25s; }
.oo2-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease .15s, opacity .4s ease .3s; }
.oo2-chips em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; text-transform: uppercase; }
.oo2-tag { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%) scale(.8); opacity: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; transition: opacity .3s .5s, transform .3s .5s; }

/* Reveal */
.oo2.revealed .oo2-fact, .oo2.revealed .oo2-chips { max-height: 80px; opacity: 1; }
.oo2.revealed .oo2-card { animation: none; }
.oo2-card.linked { transform: none; box-shadow: 0 0 0 1px rgba(56, 201, 119, .7), 0 0 22px rgba(56, 201, 119, .25); background: linear-gradient(160deg, #123a2b, #0b1a1a 70%) padding-box, linear-gradient(135deg, #38c977, #9affc3, #38c977) border-box; animation: oo2Link .6s ease backwards; }
.oo2-card.linked:nth-child(2) { animation-delay: .1s; } .oo2-card.linked:nth-child(3) { animation-delay: .2s; } .oo2-card.linked:nth-child(4) { animation-delay: .3s; }
.oo2-card.odd { box-shadow: 0 0 0 1px rgba(255, 190, 74, .8), 0 0 26px rgba(255, 190, 74, .3); background: linear-gradient(160deg, #3a2c10, #1a140a 70%) padding-box, linear-gradient(135deg, #ffbe4a, #fff0c8, #ffbe4a) border-box; transform: translateY(8px); animation: oo2Drop .7s cubic-bezier(.3, 1.4, .5, 1) .5s backwards; }
.oo2-card.odd .oo2-tag { background: var(--acc); color: #1a1204; opacity: 1; transform: translateX(-50%) scale(1); }
.oo2-card.picked-wrong { box-shadow: 0 0 0 1px rgba(229, 72, 77, .8), 0 0 22px rgba(229, 72, 77, .25); }
.oo2-card.picked-wrong .oo2-tag { background: var(--bad); color: #fff; opacity: 1; transform: translateX(-50%) scale(1); }
.oo2-card.linked.dim { opacity: .9; }

.oo2-reveal { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; animation: oo2Rise .45s ease .55s backwards; }
.oo2-verdict { font-size: 11px; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; }
.oo2-verdict.ok { color: var(--ok); } .oo2-verdict.bad { color: #f0868a; }
.oo2-link { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 24px; line-height: 1.15; margin: 4px 0 6px; }
.oo2-link b { color: var(--acc); font-weight: 400; }
.oo2-herring { font-size: 12.5px; color: #c9d3ea; background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 7px 10px; margin: 8px 0 0; }
.oo2-reveal-foot { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-top: 14px; text-align: center; }
.oo2-report { font-size: 12px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.oo2-report:hover { color: var(--txt); }
.oo2-nextbtn { padding: 14px 22px; font-size: 15px; }

/* Result */
.oo2-result { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; animation: oo2Rise .5s ease backwards; }
.oo2-kicker { font-size: 10.5px; letter-spacing: .22em; font-weight: 800; color: var(--acc); text-transform: uppercase; }
.oo2-grade { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 34px; line-height: 1.1; margin: 8px 0 4px; text-wrap: balance; }
.oo2-sub { color: var(--dim); font-size: 13px; margin: 0 0 12px; }
.oo2-score { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 64px; line-height: 1; }
.oo2-score small { font-size: 24px; color: var(--dim); }
.oo2-clock { color: var(--dim); font-size: 13px; margin: 6px 0 12px; }
.oo2-emoji { font-size: 22px; letter-spacing: 2px; line-height: 1.5; margin: 6px 0 12px; }
.oo2-recap { display: flex; justify-content: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.oo2-recap span { font-size: 11.5px; font-weight: 800; border: 1px solid currentColor; border-radius: 999px; padding: 4px 11px; }
.oo2-acts { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.oo2-acts .oo2-btn { flex: 1; }
.oo2-chal { width: 100%; }
.oo2-lbnote { color: var(--dim); font-size: 12px; margin: 0 0 8px; }

/* Preview tools */
.oo2-tools { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 12.5px; color: var(--dim); }
.oo2-tools label { display: block; margin: 8px 0 4px; font-weight: 700; color: var(--txt); }
.oo2-tools input[type=date] { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; }
.oo2-tools button { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; margin: 6px 6px 0 0; }
.oo2-tools code { display: block; margin-top: 6px; word-break: break-all; font-size: 11px; color: #c9d3ea; }

@keyframes oo2Deal { from { opacity: 0; transform: translateY(14px) rotateX(18deg); } to { opacity: 1; transform: none; } }
@keyframes oo2Link { 0% { transform: scale(.96); } 60% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes oo2Drop { 0% { transform: translateY(-6px) rotate(0); } 60% { transform: translateY(12px) rotate(-1.5deg); } 100% { transform: translateY(8px) rotate(0); } }
@keyframes oo2Rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes oo2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .oo2 *, .oo2 *::before { animation: none !important; transition: none !important; } .oo2-fact, .oo2-chips { transition: none !important; } }
@media (max-width: 380px) { .oo2-card { min-height: 148px; } .oo2-mono { width: 54px; height: 54px; font-size: 24px; } .oo2-name { font-size: 14px; } }
