/* Who Am I? v2 ("scouting file"). Everything is scoped to .wv / body.wv-page so it can't leak into other pages. */
body.wv-page {
  background:
    radial-gradient(70% 38% at 12% 0%, rgba(110, 160, 255, 0.14), transparent 70%),
    radial-gradient(70% 38% at 88% 0%, rgba(255, 150, 80, 0.12), transparent 70%),
    #060a13;
  background-attachment: fixed;
}
@media (max-width: 640px) { body.wv-page .site-header, body.wv-page .circuit-bar { position: static; } }
.wv-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wv {
  --panel: #0e1526; --panel2: #131c33; --line: rgba(255, 255, 255, 0.1);
  --acc: #ff7a2e; --txt: #f3f5fa; --dim: #9aa6bd; --ok: #38c977; --bad: #e5484d;
  max-width: 460px; margin: 0 auto; padding: 6px 0 28px; color: var(--txt);
}
.wv button { font-family: inherit; }
.wv [hidden] { display: none !important; }

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

/* HUD */
.wv-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 8px 2px 10px; }
.wv-brand { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 26px; line-height: 1; white-space: nowrap; }
.wv-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: 4px; }
.wv-pot { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 122, 46, .6); background: rgba(255, 122, 46, .1); line-height: 1; transition: border-color .3s, background .3s; }
.wv-pot span { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--acc); white-space: nowrap; }
.wv-pot b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 28px; color: var(--acc); font-weight: 400; font-variant-numeric: tabular-nums; }
.wv-pot[data-w="low"] { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.wv-pot[data-w="low"] span, .wv-pot[data-w="low"] b { color: #c9d2e6; }
.wv-datenav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; }
.wv-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; }
.wv-datenav button:disabled { opacity: .3; cursor: not-allowed; }
.wv-datenav button:not(:disabled):hover { border-color: var(--acc); }
.wv-datenav span { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 15px; color: var(--acc); min-width: 110px; text-align: center; }

.wv-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; }

/* File: mystery card + points ladder */
.wv-file { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: stretch; margin-bottom: 10px; }
.wv-card { width: 108px; flex: none; perspective: 700px; position: relative; }
.wv-card .in { position: relative; width: 100%; height: 100%; min-height: 124px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.wv-card.flip .in { transform: rotateY(180deg); }
.wv-card .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.wv-card .front { background: #141c30; border: 1px dashed rgba(255, 255, 255, .22); }
.wv-card .front svg { width: 62px; height: 70px; }
.wv-card .front em { font-style: normal; font-size: 9.5px; letter-spacing: .16em; font-weight: 800; color: #6b7690; }
.wv-card .back { transform: rotateY(180deg); padding: 8px 6px; text-align: center; background: linear-gradient(160deg, #20304f, #101a30); border: 2px solid rgba(255, 255, 255, .25); }
.wv-card.won .back { border-color: var(--ok); background: linear-gradient(160deg, #123524, #0b1d15); }
.wv-card.lost .back { border-color: var(--bad); background: linear-gradient(160deg, #3a1517, #1d0b0c); }
.wv-card .back small { font-size: 8.5px; letter-spacing: .18em; font-weight: 800; color: var(--dim); }
.wv-card .back b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: normal; word-break: normal; hyphens: none; }
.wv-card.shake .in { animation: wvShake .4s; }
.wv-ladderbox { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.wv-ladderbox h3 { margin: 0 0 8px; font-size: 10px; letter-spacing: .16em; font-weight: 800; color: var(--dim); }
.wv-ladder { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.wv-ladder li { flex: 1; text-align: center; }
.wv-ladder li i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-bottom: 6px; transition: background .3s, box-shadow .3s; }
.wv-ladder li b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 18px; color: #6b7690; font-variant-numeric: tabular-nums; }
.wv-ladder li.now i { background: var(--acc); box-shadow: 0 0 10px rgba(255, 122, 46, .6); }
.wv-ladder li.now b { color: var(--acc); }
.wv-ladder li.gone i { background: rgba(229, 72, 77, .5); }
.wv-ladder li.gone b { color: #5b4448; text-decoration: line-through; }
.wv-ladder li.hit i { background: var(--ok); box-shadow: 0 0 10px rgba(56, 201, 119, .6); }
.wv-ladder li.hit b { color: var(--ok); }
.wv-ladder li.spare i { background: rgba(255, 255, 255, .08); }
.wv-ladder li.spare b { color: #4a5368; }
.wv-ladderbox p { margin: 10px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.4; }

/* Clues */
.wv-clues { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.wv .clue { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-radius: 10px; padding: 11px 12px; font-size: 14px; line-height: 1.4; }
.wv .clue .no { font-size: 9.5px; letter-spacing: .12em; font-weight: 800; color: #6b7690; }
.wv .clue .pt { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 18px; color: var(--dim); white-space: nowrap; }
.wv .clue.open { background: var(--panel); border: 1px solid var(--line); font-weight: 600; }
.wv .clue.open.fresh { border-color: var(--acc); background: #1a1511; animation: wvIn .45s ease-out; }
.wv .clue.open.fresh .no, .clue.open.fresh .pt { color: var(--acc); }
.wv .clue.open.solved { border-color: var(--ok); background: #0f2219; }
.wv .clue.open.solved .no, .clue.open.solved .pt { color: var(--ok); }
.wv .clue.open.spare { opacity: .55; }
.wv .clue.lock { border: 1px dashed rgba(255, 255, 255, .14); }
.wv .clue.lock .no { color: #475069; }
.wv .clue.lock .bar { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; display: block; }
.wv .clue.lock .bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 8px, rgba(255, 255, 255, .03) 8px 12px); }
.wv .clue.lock .pt { color: #475069; font-size: 15px; }

.wv-ruled { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 12px; color: var(--dim); }
.wv-ruled em { font-style: normal; background: rgba(229, 72, 77, .14); color: #f0868a; border-radius: 999px; padding: 3px 10px; text-decoration: line-through; }

/* Guess form */
.wv-form { display: flex; flex-direction: column; gap: 10px; }
.wv-inrow { display: flex; gap: 8px; }
.wv-inrow input { flex: 1; min-width: 0; background: var(--panel); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 13px 14px; color: var(--txt); font-size: 16px; outline: none; }
.wv-inrow input:focus { border-color: var(--acc); }
.wv-inrow.shake { animation: wvShake .4s; }
.wv-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; }
.wv-btn.primary { background: var(--acc); color: #0a0a0a; }
.wv-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--txt); }
.wv-btn.ghost small { display: block; font-size: 10.5px; font-weight: 600; color: var(--dim); margin-top: 2px; }
.wv-btn:active { transform: scale(.98); }
.wv-flash { min-height: 18px; font-size: 12.5px; color: #f0868a; text-align: center; opacity: 0; transition: opacity .2s; margin-top: 6px; }
.wv-flash.on { opacity: 1; }

/* Result */
.wv-result { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; text-align: center; margin-top: 4px; animation: wvIn .5s ease-out; }
.wv-result.won { border-color: rgba(56, 201, 119, .6); }
.wv-result.lost { border-color: rgba(229, 72, 77, .55); }
.wv-kicker { font-size: 10.5px; letter-spacing: .22em; font-weight: 800; color: var(--dim); }
.wv-result.won .wv-kicker { color: var(--ok); }
.wv-result.lost .wv-kicker { color: #f0868a; }
.wv-grade { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 34px; margin: 6px 0 2px; line-height: 1.05; text-transform: uppercase; }
.wv-grade .ic { margin-right: 8px; }
.wv-sub { font-size: 13px; color: var(--dim); margin: 0 0 12px; }
.wv-score { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 60px; line-height: 1; color: var(--acc); }
.wv-score small { font-size: 16px; color: var(--dim); margin-left: 4px; }
.wv-emoji { font-size: 22px; letter-spacing: 3px; margin: 10px 0 14px; }
.wv-h2hres { font-weight: 700; font-size: 14px; margin: -2px 0 12px; }
.wv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wv-acts .wv-btn { flex: 1 1 120px; padding: 12px 10px; font-size: 13px; }
.wv-chal { margin-top: 8px; width: 100%; }
.wv-nextbox { margin-top: 14px; text-align: center; }
.wv-nextbox .go { display: flex; flex-direction: column; gap: 2px; width: 100%; background: linear-gradient(180deg, #1d2a4a, #15203a); border: 1px solid rgba(255, 122, 46, .55); color: var(--txt); padding: 12px; }
.wv-nextbox .go span { font-size: 10.5px; letter-spacing: .14em; font-weight: 800; color: var(--acc); text-transform: uppercase; }
.wv-nextbox .go b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 22px; }
.wv-nextbox small { display: block; margin-top: 6px; color: var(--dim); font-size: 11.5px; }
.wv-done { background: rgba(56, 201, 119, .12); border: 1px solid var(--ok); border-radius: 10px; padding: 12px; font-weight: 700; font-size: 14px; }

.wv .bk-lb { margin-top: 14px; }
.wv-tools { margin-top: 18px; padding: 12px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 10px; font-size: 12px; color: var(--dim); }
.wv-tools p { margin: 0 0 8px; line-height: 1.4; }
.wv-tools div { display: flex; gap: 8px; flex-wrap: wrap; }
.wv-tools button { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; }

@keyframes wvShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes wvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wv *, .wv-card .in { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .wv-file { padding: 12px; gap: 10px; } .wv-card { width: 92px; } .clue { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px; } }
