/* ============================================================
   GUESS THE PLAYER — layers on styles.css (dark theme vars).
   ============================================================ */
.gtp-body { --bg-1: #1a2a3a; --bg-2: #0c1722; --bg-3: #07101a; }
.gtp-wrap { max-width: 680px; margin: 0 auto; padding: 14px 18px 60px; text-align: center; }
.screen { display: block; }
.screen[hidden] { display: none; }

/* ---------- start ---------- */
.gtp-h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(30px, 7vw, 52px); letter-spacing: 1px; margin: 18px 0 8px; }
.gtp-sub { color: var(--text-dim); font-size: 16px; max-width: 440px; margin: 0 auto 18px; }
.gtp-beststat { font-size: 15px; color: var(--text); margin-bottom: 18px; }
.gtp-beststat strong { color: #e0a93a; font-family: "Oswald", sans-serif; font-size: 20px; }
.gtp-play { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .5px; padding: 13px 40px; border-radius: 12px; }
.gtp-rules { list-style: none; padding: 0; margin: 26px auto 0; max-width: 420px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.gtp-rules li { font-size: 14px; color: var(--text-dim); line-height: 1.4; }
.gtp-rules strong { color: var(--text); }

/* ---------- play ---------- */
.gtp-streakbar { font-family: "Oswald", sans-serif; font-size: 17px; color: var(--text-dim); margin: 6px 0 12px; }
.gtp-streakbar strong { color: #e0a93a; font-size: 24px; margin-left: 4px; }
.gtp-timer { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 0 auto 22px; max-width: 460px; }
.gtp-timer-fill { height: 100%; width: 100%; background: #57c98a; border-radius: 999px; transition: width .1s linear, background .3s; }

/* career path */
.gtp-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 8px; margin: 0 auto 26px; max-width: 600px; min-height: 70px; }
.gtp-badge { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .3px; flex: 0 0 auto; }
.gtp-pro { border-radius: 50%; }
.gtp-col { border-radius: 15px; }
.gtp-unk { background: var(--surface); color: var(--text-dim); border-radius: 50%; }
/* real-logo tile (white so any logo reads); fallback to colored abbr badge on error */
.gtp-logobadge { background: #fff; box-shadow: 0 0 0 3px var(--ring), 0 4px 12px rgba(0,0,0,.3); overflow: hidden; }
.gtp-logobadge .gtp-logo { width: 80%; height: 80%; object-fit: contain; display: block; }
.gtp-textbadge { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 3px var(--ring), 0 4px 12px rgba(0,0,0,.3); }
.gtp-arrow { color: var(--text-dim); font-size: 20px; font-weight: 700; }

/* input + autocomplete */
.gtp-inputwrap { position: relative; max-width: 420px; margin: 0 auto; }
#gtpInput { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 17px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); text-align: center; }
#gtpInput:focus { outline: none; border-color: var(--accent); }
.gtp-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.gtp-suggest[hidden] { display: none; }
.gtp-sug { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); font: inherit; font-size: 15px; padding: 11px 16px; cursor: pointer; }
.gtp-sug:hover, .gtp-sug.sel { background: var(--accent); color: #04121e; }
.gtp-guessrow { margin: 16px 0 6px; }
.gtp-guessdots { display: inline-flex; gap: 8px; }
.gtp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: inline-block; }
.gtp-dot.on { background: #57c98a; }
.gtp-feedback { min-height: 26px; font-size: 15px; font-weight: 600; margin-top: 4px; }
.gtp-feedback.good { color: #57c98a; }
.gtp-feedback.bad { color: #e0564f; }

/* ---------- game over ---------- */
.gtp-over-reason { font-size: 17px; color: var(--text-dim); margin: 20px 0 10px; }
.gtp-over-streak { font-family: "Oswald", sans-serif; font-size: 64px; font-weight: 700; color: #e0a93a; line-height: 1; }
.gtp-over-best { font-size: 14px; color: var(--text-dim); margin: 4px 0 22px; }
.gtp-over-best strong { color: var(--text); }
.gtp-answer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin: 0 auto 22px; max-width: 480px; }
.gtp-ans-name { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.gtp-ans-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 6px; }
.gtp-ans-path .gtp-badge { width: 50px; height: 50px; font-size: 13px; }
.gtp-overbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 480px) {
  .gtp-badge { width: 56px; height: 56px; font-size: 15px; }
  .gtp-ans-path .gtp-badge { width: 44px; height: 44px; font-size: 12px; }
}

/* ---------- menu / daily / board (Phase 2) ---------- */
.gtp-menu { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }
.gtp-play2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 11px; }
.gtp-startmsg { color: #e0a93a; font-size: 13.5px; margin: 0 auto 10px; max-width: 360px; }
.gtp-loading { color: var(--text-dim); font-size: 16px; margin: 60px auto; }
/* daily result */
.gtp-daily-head { font-family: "Oswald", sans-serif; font-size: 20px; color: var(--text-dim); margin: 22px 0 6px; }
.gtp-daily-score { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 64px; color: #e0a93a; line-height: 1; }
.gtp-daily-note { font-size: 14px; color: var(--text-dim); margin: 8px 0 18px; }
.gtp-ace { color: #57c98a; font-weight: 600; }
.gtp-daily-answers { max-width: 360px; margin: 0 auto 20px; display: flex; flex-direction: column; gap: 6px; }
.gtp-dailyrow { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; text-align: left; font-size: 14px; }
.gtp-dailyrow.ok { border-color: rgba(87,201,138,.45); }
.gtp-dailyrow.no { border-color: rgba(224,86,79,.4); color: var(--text-dim); }
/* leaderboard */
.gtp-boardtitle { font-size: 26px; margin: 2px 0 14px; }
.gtp-bback { display: inline-block; margin: 4px 0 10px; }
.gtp-btabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 14px; flex-wrap: wrap; }
.gtp-btab { background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.gtp-btab.active { background: var(--accent); border-color: var(--accent); color: #04121e; }
.gtp-blist { max-width: 460px; margin: 0 auto; }
.gtp-brow { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.gtp-bhead { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.gtp-brow.me { background: rgba(224,169,58,.12); border-radius: 8px; }
.gtp-bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gtp-empty { color: var(--text-dim); padding: 30px 10px; }
