:root{
  --blue:#2457d6;--blue2:#173b95;--soft:#eaf0ff;--navy:#14213d;--ink:#172137;
  --muted:#687386;--line:#e2e7ef;--paper:#fff;--bg:#f5f7fb;--gold:#f1b84b;
  --green:#179866;--red:#dc4b4b;--orange:#ef8b36;--purple:#7652c8;
  --shadow:0 18px 60px rgba(22,39,76,.10)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"Heebo","Segoe UI",Arial,"Noto Sans Hebrew",sans-serif;color:var(--ink);
  background:
    radial-gradient(circle at 8% 7%,rgba(36,87,214,.09),transparent 27rem),
    radial-gradient(circle at 92% 10%,rgba(241,184,75,.11),transparent 26rem),
    var(--bg)
}
button,input{font:inherit}button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid rgba(36,87,214,.22);outline-offset:2px}
.hidden{display:none!important}
.topbar{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:20px;min-height:74px;
  padding:9px clamp(14px,4vw,46px);background:rgba(255,255,255,.94);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line)
}
.brand{border:0;background:transparent;display:flex;gap:9px;align-items:center;text-align:right;color:var(--ink);min-width:max-content}
.brand-mark{width:43px;height:43px;border-radius:14px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:23px}.brand-logo{background:transparent;box-shadow:none;overflow:hidden}.brand-logo img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 3px 8px rgba(20,33,61,.18))}
.brand b{display:block;font-size:18px}.brand small{display:block;font-size:10px;color:var(--muted)}
.nav{margin:auto;display:flex;gap:4px;overflow:auto}
.nav :is(button,a){border:0;background:transparent;color:var(--muted);padding:9px 11px;border-radius:11px;font-weight:800;white-space:nowrap}
.nav :is(button,a).active,.nav :is(button,a):hover{background:var(--soft);color:var(--blue)}
.account{display:flex;gap:8px;align-items:center}.header-score{font-size:13px;background:#f6f8fb;border:1px solid var(--line);padding:8px;border-radius:11px}
.primary,.secondary,.whatsapp,.danger,.hint-btn{
  border:0;border-radius:14px;min-height:46px;padding:0 17px;font-weight:900
}
.primary{background:var(--blue);color:#fff;box-shadow:0 8px 22px rgba(36,87,214,.20)}
.secondary{background:#eef1f6;color:var(--ink);border:1px solid var(--line)}
.whatsapp{background:#1ca463;color:#fff}.danger{background:#fff0ef;color:#b33b31;border:1px solid #efc4bf}
.primary:hover{transform:translateY(-1px)}
.screen{display:none;width:min(1180px,calc(100% - 28px));margin:auto;padding:38px 0 70px}
.screen.active{display:block}
.eyebrow{display:inline-flex;background:var(--soft);color:var(--blue);padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:38px;align-items:center;min-height:470px}
.hero h1{font-size:clamp(44px,6vw,76px);line-height:.98;letter-spacing:-2.5px;margin:16px 0}
.hero p{font-size:18px;line-height:1.7;color:var(--muted);max-width:670px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.hero-actions button{min-height:54px;font-size:16px;padding:0 22px}
.hero-mascot{position:relative;display:grid;place-items:center}
.hero-mascot img{width:min(100%,450px);filter:drop-shadow(0 25px 30px rgba(24,42,80,.17))}
.speech{position:absolute;top:3%;right:0;z-index:2;max-width:260px;background:#fff;border:1px solid var(--line);border-radius:21px 21px 6px 21px;padding:14px 16px;box-shadow:var(--shadow);font-weight:900;line-height:1.45}
.stats-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:45px}
.stats-strip>div{background:#fff;padding:19px;text-align:center}.stats-strip small{display:block;color:var(--muted);margin-bottom:6px}.stats-strip strong{font-size:25px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:10px 0 18px}.section-head h2{font-size:33px;margin:8px 0 0}
.difficulty-badge{background:#fff2e8;color:#b65c17;border:1px solid #f2c79f;padding:9px 12px;border-radius:999px;font-size:12px;font-weight:900}
.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.game-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:23px;padding:20px;box-shadow:0 9px 34px rgba(22,39,76,.06);display:flex;flex-direction:column;min-height:290px}
.game-card:hover{transform:translateY(-2px);transition:.18s}
.game-card h3{font-size:23px;margin:5px 0 8px}.game-card p{color:var(--muted);line-height:1.58;margin:0 0 15px}.game-icon{font-size:38px}
.tag{position:absolute;left:18px;top:18px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;background:#eaf8f1;color:#14764e}
.card-meta{display:flex;gap:7px;flex-wrap:wrap;margin:auto 0 14px}.card-meta span{font-size:11px;color:var(--muted);padding:5px 7px;border:1px solid var(--line);border-radius:999px}

/* Shared play UI */
.play-layout{display:grid;grid-template-columns:255px 1fr;gap:20px;align-items:start}
.tobi-side,.panel,.leader-card,.profile-card{background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow)}
.tobi-side{padding:17px;position:sticky;top:94px}.tobi-side img{width:100%;max-height:280px;object-fit:contain}.tobi-bubble{background:#f5f7fb;border-radius:15px;padding:12px;font-weight:800;line-height:1.5}
.side-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.side-stats>div{background:#f8f9fb;border:1px solid var(--line);border-radius:12px;padding:9px;text-align:center}.side-stats small{display:block;color:var(--muted);font-size:10px}.side-stats b{font-size:18px}
.panel{padding:25px}.panel h2{font-size:32px;margin:8px 0 5px}.sub{color:var(--muted);line-height:1.55}
.title-row{display:flex;justify-content:space-between;gap:16px;align-items:start}
.text-btn{border:0;background:transparent;color:var(--muted);text-decoration:underline}
.feedback{margin-top:13px;border-radius:13px;padding:12px 14px;font-weight:900;line-height:1.4}
.feedback.neutral{background:#f3f5f8;color:var(--muted)}.feedback.cold{background:#edf4ff;color:#3768b8}.feedback.warm{background:#fff4e1;color:#9c6511}.feedback.hot{background:#fff0ea;color:#b94b31}.feedback.correct{background:#e9f8ef;color:#167248}.feedback.wrong{background:#fff0ef;color:#b23d32}
input.answer-input{width:100%;height:54px;border:1px solid #cdd5e1;border-radius:14px;padding:0 15px;font-size:18px}
.form-row{display:flex;gap:9px}.form-row input{flex:1;min-width:0}
.meter{height:15px;background:#edf0f5;border-radius:999px;overflow:hidden;margin-top:20px}.meter>div{height:100%;width:0;background:linear-gradient(90deg,#78a5ff,#f0b846 58%,#e74b4b);transition:.35s width}.meter-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:6px 0 17px}
.hint-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.hint-btn{background:#fff6dc;color:#8a6310;border:1px solid #ecd493}.bonus-btn{background:#efe7ff;color:#5d3ab3;border:1px solid #d4c2ff}.hint-text{color:var(--muted);font-size:13px}
.hint-stack{display:flex;flex-direction:column;gap:7px;flex:1;min-width:220px}
.hint-chip{display:block;background:#fff9e8;border:1px solid #efdca1;color:#6f5714;padding:8px 10px;border-radius:11px;font-weight:800;line-height:1.4}
.hint-chip b{color:#9b6f08;margin-left:6px}
.bonus-hint-grid{display:grid;gap:7px;margin-top:8px}
.bonus-hint-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.62);border:1px solid #e1d4ff;border-radius:10px;padding:8px 10px}
.bonus-hint-row span:first-child{color:#6f5a9d;font-weight:800}
.bonus-hint-value{font-weight:900;color:#45258a;unicode-bidi:isolate}
.bonus-hint-value.ltr{direction:ltr;text-align:left}
.history{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}.history-head{display:flex;justify-content:space-between}.history h3{margin:0}.history span{color:var(--muted);font-size:12px}
table{width:100%;border-collapse:collapse;margin-top:8px}th,td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:11px}.empty{text-align:center!important;color:var(--muted);padding:24px!important}
.win-card{margin-top:16px;background:linear-gradient(135deg,#eaf8f0,#f7fbff);border:1px solid #cce6d7;border-radius:18px;padding:16px;display:flex;justify-content:space-between;gap:14px;align-items:center}.win-card h3{font-size:24px;margin:3px 0}.win-actions{display:flex;gap:8px;flex-wrap:wrap}

/* choice games */
.progressbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;color:var(--muted);font-size:12px}.progress-track{height:8px;background:#edf0f5;border-radius:999px;overflow:hidden}.progress-track>div{height:100%;background:var(--blue);transition:.3s width}
.question-box{text-align:center;padding:28px 0 15px}.question-icon{font-size:64px;margin-bottom:8px}.question-box h3{font-size:29px;margin:8px auto;max-width:720px;line-height:1.25}
.answers{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:720px;margin:18px auto}.answer-btn{min-height:54px;border:1px solid var(--line);background:#fff;border-radius:14px;font-weight:900;padding:9px}.answer-btn:hover{background:var(--soft);border-color:var(--blue)}.answer-btn.correct{background:#e8f8ef;border-color:#99d4b5;color:#157047}.answer-btn.wrong{background:#fff0ef;border-color:#efb7b1;color:#ad3a30}
.clues{display:grid;gap:7px;max-width:680px;margin:15px auto}.clue{text-align:right;background:#f7f8fb;border:1px solid var(--line);border-radius:13px;padding:11px;opacity:.32}.clue.show{opacity:1}
.controls{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:12px}
.word-chip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;max-width:760px;margin:22px auto}.word-chip{padding:17px 8px;border-radius:15px;background:#f7f8fb;border:1px solid var(--line);font-weight:900;font-size:18px;text-align:center}

/* timer */
.timer-ring{width:118px;height:118px;border-radius:50%;margin:10px auto 18px;display:grid;place-items:center;background:conic-gradient(var(--blue) var(--timer,100%),#edf0f5 0);position:relative}.timer-ring:after{content:"";position:absolute;width:88px;height:88px;border-radius:50%;background:#fff}.timer-ring b{position:relative;z-index:2;font-size:33px}.speed-stats{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.speed-stats span{background:#f5f7fb;border:1px solid var(--line);padding:8px 10px;border-radius:999px;font-size:12px}

/* battle */
.battle-setup{max-width:620px;margin:20px auto}.battle-setup label{display:block;font-weight:900;margin:12px 0 5px}.battle-setup input{width:100%;height:50px;border:1px solid #ccd4df;border-radius:13px;padding:0 13px}.versus{font-size:34px;text-align:center;margin:10px}
#wordForm{align-items:stretch}
#wordInput{
  height:64px;
  border-radius:18px;
  padding:0 18px;
  font-size:22px;
  font-weight:800;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:2px solid #bcd0ff;
  box-shadow:0 10px 24px rgba(36,87,214,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
#wordInput::placeholder{color:#7b8496;font-weight:700}
#wordInput:focus{
  border-color:#2457d6;
  box-shadow:0 0 0 5px rgba(36,87,214,.14), 0 14px 30px rgba(36,87,214,.14);
}
#wordForm .primary{
  min-width:140px;
  min-height:64px;
  font-size:22px;
  border-radius:18px;
}
@media (max-width:720px){
  #wordInput{font-size:21px;height:62px}
  #wordForm .primary{min-width:122px;min-height:62px}
}
.pass-card{text-align:center;padding:38px 14px}.pass-card img{width:180px}.pass-card h3{font-size:29px;margin:8px}.scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:600px;margin:20px auto}.scorebox{padding:17px;border-radius:17px;background:#f6f8fb;border:1px solid var(--line);text-align:center}.scorebox b{display:block;font-size:30px}

/* leaderboard */
.leader-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.leader-head h2{font-size:33px;margin:8px 0 0}.leader-grid{display:grid;grid-template-columns:1fr 295px;gap:18px}.leader-card,.profile-card{padding:20px}.podium{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:8px;margin-bottom:20px}.podium>div{background:#f6f8fb;border:1px solid var(--line);border-radius:16px 16px 7px 7px;text-align:center;padding:14px 7px}.podium .first{min-height:160px;background:#fff7dc;border-color:#f0da91}.podium .second{min-height:125px}.podium .third{min-height:105px}.podium span{display:block;font-size:30px}.rank-row{display:grid;grid-template-columns:44px 1fr auto;gap:8px;padding:11px 7px;border-top:1px solid var(--line)}.rank-row.me{background:var(--soft);color:var(--blue);border-radius:11px;font-weight:900}
.profile-card img{width:140px;display:block;margin:auto}.profile-card h3{text-align:center;font-size:23px}.profile-stat{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line)}.profile-stat span{color:var(--muted)}



/* Earn coins */
#openCoinsBtn{display:inline-flex;align-items:center;justify-content:center}
.coin-pill.low{animation:coinBlink 1.1s infinite}
@keyframes coinBlink{50%{transform:translateY(-1px) scale(1.04);box-shadow:0 0 0 4px rgba(241,184,75,.18)}}
.coin-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.coin-card{
  border:1px solid var(--line);border-radius:18px;padding:16px;background:#f9fbff;text-align:center
}
.coin-card h3{margin:8px 0 6px;font-size:22px}
.coin-card p{color:var(--muted);line-height:1.45;font-size:14px;min-height:44px}
.wheel-wrap{position:relative;width:230px;height:230px;margin:14px auto}
.wheel{
  width:100%;height:100%;border-radius:50%;
  background:conic-gradient(
    #f7c948 0 30deg,#5b8def 30deg 60deg,#8bd17c 60deg 90deg,#ff8a65 90deg 120deg,
    #a78bfa 120deg 150deg,#4dd0e1 150deg 180deg,#ffd166 180deg 210deg,#f78fb3 210deg 240deg,
    #72c7a5 240deg 270deg,#ffad66 270deg 300deg,#7f9cf5 300deg 330deg,#f6c85f 330deg 360deg
  );
  border:10px solid #fff;box-shadow:0 16px 45px rgba(20,33,61,.16);transition:transform 3.5s cubic-bezier(.18,.9,.2,1)
}
.wheel-labels{position:absolute;inset:0;pointer-events:none;transition:transform 3.5s cubic-bezier(.18,.9,.2,1)}
.wheel-label{
  position:absolute;left:50%;top:50%;transform-origin:center;
  display:flex;align-items:center;justify-content:center;gap:4px;
  min-width:44px;padding:2px 6px;border-radius:999px;
  background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.75);
  box-shadow:0 4px 10px rgba(20,33,61,.10);font-weight:900;font-size:16px;color:#1e2b50;
}
.wheel-label small{font-size:12px}
.wheel-center{
  position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);
  width:76px;height:76px;border-radius:50%;background:#fff;border:5px solid #f1f4fb;
  display:grid;place-items:center;font-weight:900;color:var(--blue);box-shadow:0 8px 22px rgba(20,33,61,.10);text-align:center;line-height:1.05
}
.wheel-pointer{
  position:absolute;top:-6px;left:50%;transform:translateX(-50%);
  width:0;height:0;border-left:16px solid transparent;border-right:16px solid transparent;border-top:0;border-bottom:32px solid var(--blue2)
}
.wheel-legend{display:none}
.wheel-legend div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px;font-size:13px}
.quick-box{max-width:540px;margin:10px auto 0}
.quick-timer{height:10px;background:#edf0f5;border-radius:999px;overflow:hidden;margin:8px 0 14px}
.quick-timer > div{height:100%;width:100%;background:linear-gradient(90deg,#4dd0e1,#2457d6,#f1b84b,#ef5350);transition:width .2s linear}
.coin-result{
  margin-top:14px;background:#fff7dc;border:1px solid #efd68a;border-radius:15px;
  padding:12px;font-weight:900;color:#7b5909
}
@media(max-width:730px){
  .coin-actions{grid-template-columns:1fr}
  .wheel-wrap{width:200px;height:200px}
  .wheel-label{font-size:14px;min-width:38px;padding:2px 5px}
}

/* Account menu */
.account-menu{
  position:fixed;z-index:75;min-width:220px;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 18px 55px rgba(20,33,61,.18);padding:8px;display:none
}
.account-menu.show{display:block}
.account-menu button{
  width:100%;border:0;background:transparent;text-align:right;padding:11px 12px;border-radius:11px;
  font-weight:800;color:var(--ink)
}
.account-menu button:hover{background:#f4f6f9}
.account-menu .logout{color:#b33b31}
.account-menu .account-name{padding:9px 12px 7px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:4px}

/* modal/confetti */
.modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:18px}.backdrop{position:absolute;inset:0;background:rgba(10,20,45,.58);backdrop-filter:blur(5px)}.modal-card{position:relative;z-index:2;width:min(450px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;background:#fff;border-radius:26px;padding:25px;box-shadow:0 30px 90px rgba(0,0,0,.27);text-align:center;-webkit-overflow-scrolling:touch}.modal-card img{width:140px}.modal-card h2{margin:7px}.modal-card p{color:var(--muted);line-height:1.5}.modal-close{position:absolute;left:12px;top:12px;border:0;background:#f0f2f5;width:38px;height:38px;border-radius:50%;font-size:24px}.modal-card input{width:100%;height:50px;border:1px solid #ccd4df;border-radius:13px;padding:0 13px;margin:10px 0}.oauth{width:100%;min-height:48px;margin-top:7px;border-radius:13px;border:1px solid var(--line);background:#fff;font-weight:900}.oauth.fb{background:#1877f2;color:#fff;border:0}
.confetti{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-20px;width:9px;height:15px;border-radius:3px;animation:fall 1.7s linear forwards}@keyframes fall{to{transform:translateY(105vh) rotate(700deg);opacity:.7}}
.offline-badge{position:fixed;left:10px;bottom:10px;z-index:9999;background:#14213d;color:#fff;padding:7px 10px;border-radius:999px;font:700 11px Arial;box-shadow:0 6px 18px rgba(0,0,0,.18);opacity:.88}


/* V3 — coins, difficulty, transitions and answer feedback */
.coin-pill{
  display:inline-flex;align-items:center;gap:5px;background:#fff7dc;color:#835c0a;
  border:1px solid #efd68a;padding:8px 10px;border-radius:12px;font-size:13px;font-weight:900
}
.difficulty-level{
  display:inline-flex;align-items:center;gap:6px;margin-right:7px;padding:6px 9px;
  border-radius:999px;font-size:11px;font-weight:900;border:1px solid var(--line);background:#f6f8fb
}
.difficulty-level.easy{background:#eaf8ef;color:#147249;border-color:#b9e0c9}
.difficulty-level.medium{background:#fff7dc;color:#8c6512;border-color:#ecd78f}
.difficulty-level.hard{background:#fff0e5;color:#b95d1c;border-color:#f0c09c}
.difficulty-level.expert{background:#fff0ef;color:#b23c33;border-color:#efb9b3}
.game-toast{
  position:fixed;top:88px;left:50%;transform:translateX(-50%) translateY(-12px);
  z-index:90;background:#14213d;color:#fff;padding:12px 16px;border-radius:16px;
  box-shadow:0 15px 45px rgba(0,0,0,.22);font-weight:900;opacity:0;pointer-events:none;
  transition:.24s opacity,.24s transform;max-width:min(92vw,520px);text-align:center
}
.game-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.result-flash{
  position:fixed;inset:0;z-index:85;pointer-events:none;opacity:0;transition:.16s opacity;
  display:grid;place-items:center
}
.result-flash.show{opacity:1}
.result-flash.good{background:rgba(23,152,102,.19)}
.result-flash.bad{background:rgba(220,75,75,.18)}
.result-flash .result-symbol{
  width:94px;height:94px;border-radius:50%;display:grid;place-items:center;font-size:49px;
  color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.22);transform:scale(.72);transition:.18s transform
}
.result-flash.show .result-symbol{transform:scale(1)}
.result-flash.good .result-symbol{background:#179866}
.result-flash.bad .result-symbol{background:#dc4b4b}
.coin-burst{animation:coinPop .45s ease}
@keyframes coinPop{50%{transform:scale(1.22)}}
.answer-btn.locked-choice{opacity:.25;text-decoration:line-through;pointer-events:none}

/* responsive */
@media(max-width:980px){
  .game-grid{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr;min-height:auto}.hero-mascot{order:-1}.hero-mascot img{width:min(65%,360px)}
  .play-layout{grid-template-columns:1fr}.tobi-side{position:static;display:grid;grid-template-columns:130px 1fr;align-items:center}.tobi-side img{max-height:170px}.side-stats{grid-column:1/-1}
  .leader-grid{grid-template-columns:1fr}.profile-card{position:static}
}
@media(max-width:730px){
  .topbar{flex-wrap:wrap;gap:8px;padding:9px 12px}.brand{flex:1}.nav{order:3;width:100%;justify-content:space-between}.header-score{display:none}
  .screen{padding-top:22px}.hero{gap:8px}.hero h1{font-size:45px}.hero p{font-size:16px}.speech{font-size:12px;max-width:210px}
  .stats-strip{grid-template-columns:1fr 1fr}.game-grid{grid-template-columns:1fr}.section-head,.leader-head,.title-row{align-items:start;flex-direction:column}
  .form-row{flex-direction:column}.answers{grid-template-columns:1fr}.word-chip-grid{grid-template-columns:1fr 1fr}.win-card{align-items:flex-start;flex-direction:column}
  .progressbar{grid-template-columns:1fr}.tobi-side{grid-template-columns:95px 1fr}.panel{padding:18px}.panel h2{font-size:28px}.question-box h3{font-size:25px}
}

/* ---------- V22 platform UI polish ---------- */
body{
  min-height:100dvh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,.game-card,.answer-btn,.secondary,.hint-btn{
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
button:active{transform:scale(.985)}
.topbar{
  box-shadow:0 8px 26px rgba(20,33,61,.05);
}
.nav{
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:3px;
}
.nav::-webkit-scrollbar{display:none}
.nav :is(button,a){
  min-height:42px;
  scroll-snap-align:center;
}
.account{flex-shrink:0}
#loginBtn{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.coin-pill{
  min-height:42px;
  white-space:nowrap;
}
.screen{
  width:min(1160px,calc(100% - 24px));
}
.panel,.leader-card,.profile-card,.tobi-side{
  border-color:#dfe5ee;
  box-shadow:0 14px 44px rgba(22,39,76,.075);
}
.panel{
  overflow:hidden;
}
.question-box{
  border-radius:20px;
}
.answer-btn{
  min-height:58px;
  padding:12px 14px;
  font-size:16px;
  line-height:1.35;
  box-shadow:0 3px 10px rgba(22,39,76,.025);
}
.answer-btn:hover{
  box-shadow:0 8px 22px rgba(36,87,214,.09);
}
.feedback{
  font-size:15px;
}
.controls>button{
  min-height:50px;
}
.hint-btn,.secondary{
  min-height:50px;
}
.game-card{
  border-color:#dfe5ee;
}
.game-card:hover{
  box-shadow:0 15px 36px rgba(22,39,76,.10);
}
.history{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.history table{
  min-width:430px;
}
.modal-card{
  scrollbar-width:thin;
}
.offline-badge{
  font-size:10px;
  padding:6px 9px;
  opacity:.72;
}
@media (min-width:731px) and (max-width:980px){
  .topbar{gap:12px;padding-inline:18px}
  .nav{max-width:48vw}
  .stats-strip>div{padding:15px 10px}
  .stats-strip strong{font-size:22px}
  .panel{padding:22px}
}
@media(max-width:730px){
  html{scroll-padding-top:145px}
  body{
    background:
      linear-gradient(180deg,rgba(36,87,214,.035),transparent 250px),
      var(--bg);
  }
  .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px 10px;
    padding:8px 10px 6px;
    min-height:auto;
    border-bottom:1px solid #dfe5ee;
  }
  .brand{
    min-width:0;
    gap:7px;
  }
  .brand-mark{
    width:39px;
    height:39px;
    border-radius:12px;
    flex:0 0 39px;
  }
  .brand b{
    font-size:16px;
    line-height:1.1;
  }
  .brand small{
    font-size:9px;
    margin-top:2px;
  }
  .account{
    justify-self:end;
    gap:6px;
    min-width:0;
  }
  #loginBtn{
    max-width:142px;
    min-height:42px;
    padding-inline:12px;
  }
  .coin-pill{
    padding:7px 9px;
    font-size:12px;
  }
  .nav{
    grid-column:1/-1;
    order:initial;
    width:calc(100% + 8px);
    max-width:none;
    margin:0 -4px;
    padding:3px 4px 2px;
    justify-content:flex-start;
    gap:5px;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
  }
  .nav :is(button,a){
    min-height:42px;
    padding:0 13px;
    border-radius:12px;
    font-size:14px;
    flex:0 0 auto;
  }
  .nav :is(button,a).active{
    box-shadow:inset 0 -3px 0 rgba(36,87,214,.34);
  }
  .screen{
    width:100%;
    padding:15px 10px calc(84px + env(safe-area-inset-bottom));
  }
  .play-layout{
    gap:12px;
  }
  .tobi-side{
    grid-template-columns:72px 1fr;
    gap:10px;
    border-radius:18px;
    padding:11px;
  }
  .tobi-side img{
    max-height:90px;
  }
  .tobi-bubble{
    padding:10px;
    font-size:13px;
  }
  .side-stats{
    gap:6px;
  }
  .side-stats>div{
    padding:7px;
  }
  .panel{
    padding:15px 14px 18px;
    border-radius:20px;
  }
  .panel h2{
    font-size:25px;
    line-height:1.14;
    margin-top:6px;
  }
  .section-head{
    gap:9px;
    margin:5px 0 14px;
  }
  .section-head h2{
    font-size:26px;
    line-height:1.15;
  }
  .progressbar{
    grid-template-columns:auto 1fr auto;
    gap:7px;
    font-size:11px;
    margin-bottom:4px;
  }
  .question-box{
    padding:18px 0 10px;
  }
  .question-icon{
    font-size:52px;
    margin-bottom:4px;
  }
  .question-box h3{
    font-size:23px;
    line-height:1.28;
    margin:7px auto;
  }
  .answers{
    grid-template-columns:1fr;
    gap:9px;
    margin:14px auto;
  }
  .answer-btn{
    min-height:58px;
    font-size:16px;
    border-radius:15px;
    padding:12px 13px;
  }
  .feedback{
    margin-top:10px;
    border-radius:14px;
    padding:11px 12px;
    font-size:14px;
  }
  .form-row{
    gap:8px;
  }
  #wordInput{
    height:66px;
    font-size:22px;
    border-radius:18px;
  }
  #wordForm .primary{
    width:100%;
    min-width:0;
    min-height:58px;
    font-size:20px;
  }
  .meter{
    height:13px;
    margin-top:15px;
  }
  .meter-labels{
    margin-bottom:12px;
  }
  .hint-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:stretch;
    gap:8px;
  }
  .hint-row>button{
    width:100%;
    min-width:0;
  }
  #wordEarnCoinsBtn{
    grid-column:1/-1;
  }
  .hint-stack{
    grid-column:1/-1;
    min-width:0;
  }
  .hint-chip{
    padding:10px 11px;
    border-radius:13px;
  }
  .bonus-hint-row{
    padding:9px 10px;
  }
  .history{
    margin-top:18px;
    padding-top:13px;
  }
  .history table{
    min-width:390px;
  }
  th,td{
    padding:9px 7px;
  }
  .controls{
    gap:8px;
  }
  .controls>button{
    flex:1 1 145px;
    min-height:51px;
  }
  .word-chip-grid{
    gap:8px;
    margin:16px auto;
  }
  .word-chip{
    padding:14px 7px;
    font-size:16px;
  }
  .stats-strip{
    grid-template-columns:1fr 1fr;
    margin-bottom:30px;
    border-radius:17px;
  }
  .stats-strip>div{
    padding:14px 8px;
    min-height:92px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .stats-strip strong{
    font-size:22px;
  }
  .game-grid{
    gap:12px;
  }
  .game-card{
    min-height:auto;
    padding:17px;
    border-radius:19px;
  }
  .game-card h3{
    font-size:21px;
  }
  .hero{
    gap:4px;
  }
  .hero h1{
    font-size:38px;
    letter-spacing:-1.4px;
    line-height:1.02;
  }
  .hero p{
    font-size:15px;
  }
  .hero-mascot img{
    width:min(56vw,270px);
  }
  .speech{
    max-width:190px;
    padding:10px 12px;
    font-size:11px;
  }
  .modal{
    padding:0;
    place-items:end center;
  }
  .modal-card{
    width:100%!important;
    max-width:none;
    max-height:92dvh;
    border-radius:24px 24px 0 0;
    padding:22px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .modal-close{
    width:42px;
    height:42px;
    top:10px;
    left:10px;
  }
  .coin-actions{
    grid-template-columns:1fr;
  }
  .wheel-wrap{
    width:210px;
    height:210px;
  }
  .game-toast{
    top:146px;
    width:calc(100% - 24px);
  }
  .leader-card,.profile-card{
    padding:16px;
    border-radius:19px;
  }
  .offline-badge{
    display:none;
  }
}
@media(max-width:390px){
  .brand small{display:none}
  #loginBtn{max-width:118px;padding-inline:9px}
  .coin-pill{padding-inline:7px}
  .panel{padding-inline:12px}
  .hint-row{grid-template-columns:1fr}
  #wordEarnCoinsBtn{grid-column:auto}
  .hint-stack{grid-column:auto}
  .progressbar{font-size:10px}
}


/* ---------- Mini Crossword ---------- */
.crossword-panel{overflow:visible}
.cross-head-meta{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.crossword-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);gap:22px;align-items:start}
.cross-board-side{min-width:0}
.cross-grid{
  --cross-size:9;
  direction:ltr;
  display:grid;
  grid-template-columns:repeat(var(--cross-size),1fr);
  width:min(100%,560px);
  aspect-ratio:1;
  margin:16px auto 12px;
  background:#17213a;
  border:5px solid #17213a;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(22,33,61,.16);
}
.cross-cell,.cross-block{
  position:relative;
  min-width:0;
  aspect-ratio:1;
}
.cross-block{background:#17213a}
.cross-cell{
  border:1px solid #cbd4e3;
  background:#fff;
  color:#14213d;
  display:grid;
  place-items:center;
  font-size:clamp(16px,3.4vw,28px);
  font-weight:900;
  padding:0;
  border-radius:0;
  box-shadow:none;
}
.cross-cell:hover{box-shadow:none;background:#f7f9ff}
.cross-cell.active-word{background:#e9f0ff}
.cross-cell.selected{background:#ffd96a;box-shadow:inset 0 0 0 3px #2457d6;z-index:2}
.cross-cell.revealed{color:#7146bc;background:#f5edff}
.cross-cell.cell-correct{background:#e9f8ef;color:#08764b}
.cross-cell.cell-wrong{background:#fff0ef;color:#b93d34}
.cross-num{
  position:absolute;top:2px;left:3px;
  font-size:9px;font-weight:900;color:#59647a;line-height:1;
}
.cross-active-clue{
  width:min(100%,560px);margin:0 auto 12px;
  background:#edf3ff;border:1px solid #c9d8fb;border-radius:14px;
  padding:11px 13px;font-weight:900;color:#24498e;min-height:46px;
}
.cross-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:10px auto;max-width:650px}
.cross-controls button{min-height:50px}
.cross-clues{
  position:sticky;top:128px;
  border:1px solid var(--line);background:#f9fbff;border-radius:18px;padding:15px;
}
.cross-clues h3{font-size:17px;margin:13px 0 8px}
.cross-title-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cross-title-row>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 10px}
.cross-title-row small{display:block;color:var(--muted);font-size:10px}
.cross-title-row strong{display:block;margin-top:2px}
.cross-clue-list{display:grid;gap:6px}
.cross-clue{
  width:100%;text-align:right;border:1px solid #dfe5ee;background:#fff;color:var(--ink);
  border-radius:12px;padding:9px 10px;line-height:1.35;font-weight:700;
}
.cross-clue.active{background:#eaf1ff;border-color:#96b3f6;color:#214b9b}
.cross-clue.done{background:#eaf8ef;border-color:#b9dfc9;color:#147249}
.cross-clue b{display:inline-block;min-width:24px;color:#2457d6}
.cross-keyboard{
  direction:rtl;display:flex;flex-wrap:wrap;gap:5px;justify-content:center;
  max-width:620px;margin:14px auto 3px;padding:10px;background:#f2f5fa;border-radius:16px;border:1px solid #dfe5ee;
}
.cross-key{
  width:38px;height:42px;border:1px solid #ccd5e3;border-radius:10px;background:#fff;
  color:#162341;font-size:18px;font-weight:900;padding:0;
}
.cross-key.backspace{width:60px;background:#e9edf4}
@media(max-width:860px){
  .crossword-layout{grid-template-columns:1fr}
  .cross-clues{position:static;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .cross-clues .cross-title-row{grid-column:1/-1}
  .cross-clues section{min-width:0}
}
@media(max-width:730px){
  .crossword-panel{padding-inline:10px}
  .cross-head-meta{justify-content:flex-start}
  .cross-grid{width:min(100%,470px);border-width:4px;border-radius:14px}
  .cross-cell{font-size:clamp(17px,5.7vw,26px)}
  .cross-num{font-size:8px;top:1px;left:2px}
  .cross-controls{display:grid;grid-template-columns:1fr 1fr}
  #crossCheck{grid-column:1/-1}
  .cross-clues{display:block;padding:11px}
  .cross-clues section{margin-top:12px}
  .cross-key{width:34px;height:40px;font-size:17px;border-radius:9px}
  .cross-key.backspace{width:55px}
}


/* ---------- V24 typography polish ---------- */
@media(min-width:731px){
  body{font-family:"Heebo","Segoe UI",Arial,"Noto Sans Hebrew",sans-serif;letter-spacing:-.008em}
  h1,h2,h3,.brand b,.game-card h3,.question-box h3{letter-spacing:-.025em}
  p,.sub,.feedback,.game-card p{line-height:1.58}
  button,input{letter-spacing:-.008em}
}


/* ---------- Friendly game-exit dialog ---------- */
.exit-game-card{
  width:min(470px,100%);
  padding:30px 28px 24px;
  text-align:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.7);
  background:
    radial-gradient(circle at 50% -30%,rgba(36,87,214,.14),transparent 220px),
    #fff;
}
.exit-game-icon{
  width:76px;height:76px;margin:0 auto 12px;border-radius:24px;
  display:grid;place-items:center;font-size:35px;
  background:linear-gradient(145deg,#edf3ff,#fff8e7);
  border:1px solid #d8e2fb;
  box-shadow:0 12px 30px rgba(36,87,214,.12);
}
.exit-game-card .eyebrow{display:inline-flex;margin-bottom:4px}
.exit-game-card h2{font-size:28px;margin:6px 0 8px}
.exit-game-card p{max-width:390px;margin:0 auto;color:var(--muted);font-size:15px;line-height:1.6}
.exit-warning{
  display:flex;align-items:flex-start;gap:10px;text-align:right;
  margin:18px 0 16px;padding:12px 13px;border-radius:14px;
  background:#fff8e7;border:1px solid #f0dda4;color:#76570e;
}
.exit-warning.safe{background:#f3f7ff;border-color:#d9e3f8;color:#40516e}
.exit-warning-icon{font-size:20px;line-height:1.2;flex:0 0 auto}
.exit-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
.exit-actions button{min-height:52px;border-radius:14px;font-weight:900}
.exit-stay{border:1px solid #d8dfe9;background:#fff;color:#26344d}
.exit-stay:hover{background:#f6f8fb}
.exit-confirm{
  border:0;background:linear-gradient(135deg,#2457d6,#173b95);color:#fff;
  box-shadow:0 10px 24px rgba(36,87,214,.22)
}
.exit-confirm:hover{box-shadow:0 13px 30px rgba(36,87,214,.28)}
@media(max-width:730px){
  .exit-game-card{padding:27px 17px calc(20px + env(safe-area-inset-bottom));text-align:center}
  .exit-game-icon{width:68px;height:68px;border-radius:21px;font-size:31px}
  .exit-game-card h2{font-size:25px}
  .exit-actions{grid-template-columns:1fr}
  .exit-confirm{order:-1}
}


/* ---------- V25 answer feedback ---------- */
.speed-answer-feedback{
  width:min(100%,650px);
  margin:10px auto 2px;
  min-height:64px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:11px 15px;
  text-align:center;
  animation:speedAnswerIn .2s ease both;
}
.speed-answer-feedback.correct{
  background:#eaf8ef;border:1px solid #b8dfc7;color:#107249;
}
.speed-answer-feedback.wrong{
  background:#fff0ef;border:1px solid #efc3bf;color:#9f3028;
  flex-direction:column;gap:1px;
}
.speed-answer-feedback.wrong span{font-size:12px;font-weight:700;opacity:.82}
.speed-answer-feedback.wrong strong{font-size:22px;line-height:1.2}
@keyframes speedAnswerIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}

/* ---------- V25 Tobi home animation ---------- */
.hero-mascot-alive{isolation:isolate}
.hero-mascot-alive img{
  animation:tobiFloat 4.8s ease-in-out infinite;
  transform-origin:50% 78%;
  will-change:transform;
}
.hero-mascot-alive .speech{
  animation:tobiSpeech 4.8s ease-in-out infinite;
}
.owl-sparkle{
  position:absolute;z-index:3;pointer-events:none;
  color:#f2b635;text-shadow:0 2px 10px rgba(242,182,53,.35);
  opacity:0;
}
.owl-sparkle-one{right:14%;top:21%;font-size:22px;animation:owlSpark 4.8s ease-in-out infinite .8s}
.owl-sparkle-two{left:17%;top:36%;font-size:14px;animation:owlSpark 4.8s ease-in-out infinite 2.4s}
@keyframes tobiFloat{
  0%,100%{transform:translateY(0) rotate(0deg) scale(1)}
  45%{transform:translateY(-7px) rotate(-.7deg) scale(1.008)}
  58%{transform:translateY(-5px) rotate(.55deg) scale(1.01)}
}
@keyframes tobiSpeech{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
@keyframes owlSpark{
  0%,70%,100%{opacity:0;transform:scale(.45) rotate(0deg)}
  78%{opacity:1;transform:scale(1.1) rotate(25deg)}
  88%{opacity:.45;transform:scale(.8) rotate(55deg)}
}
@media(prefers-reduced-motion:reduce){
  .hero-mascot-alive img,.hero-mascot-alive .speech,.owl-sparkle{animation:none!important}
}

/* ---------- V25 player thoughts ---------- */
.player-thoughts{
  margin:0 0 38px;
  padding:22px;
  background:
    radial-gradient(circle at 100% 0,rgba(36,87,214,.09),transparent 280px),
    #fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 12px 34px rgba(22,39,76,.055);
  overflow:hidden;
}
.player-thoughts-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px;
}
.player-thoughts-head h2{margin:5px 0 3px;font-size:25px}
.player-thoughts-head p{margin:0;max-width:760px;color:var(--muted);font-size:14px;line-height:1.55}
.thoughts-beta{
  flex:0 0 auto;background:#f4ecff;border:1px solid #dfd0fa;color:#6d45a9;
  font-size:11px;font-weight:900;padding:7px 10px;border-radius:999px;
}
.thoughts-empty{
  min-height:78px;border:1px dashed #ccd6e7;background:#f8faff;border-radius:16px;
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  color:#53617a;padding:14px;text-align:center;
}
.thoughts-empty>span{font-size:24px}
.thoughts-empty small{width:100%;color:#7c8799}
.thoughts-ticker{
  position:relative;overflow:hidden;border:1px solid #dce4f0;background:#f8faff;border-radius:16px;
  -webkit-mask-image:linear-gradient(to left,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(to left,transparent,#000 6%,#000 94%,transparent);
}
.thoughts-track{
  direction:ltr;
  display:flex;align-items:center;gap:10px;width:max-content;padding:10px;
  animation:thoughtTicker 26s linear infinite;
}
.thoughts-ticker:hover .thoughts-track{animation-play-state:paused}
.thought-card{
  direction:rtl;min-width:250px;max-width:320px;
  background:#fff;border:1px solid #dfe5ee;border-radius:14px;padding:10px 12px;
  box-shadow:0 4px 14px rgba(22,39,76,.04);
}
.thought-card b{display:block;font-size:12px;color:#2457d6;margin-bottom:3px}
.thought-card span{font-size:14px;line-height:1.45;color:#26344d}
@keyframes thoughtTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.thought-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}
.thought-form input{
  min-width:0;height:48px;border:1px solid #ccd5e3;border-radius:14px;padding:0 14px;
  font:inherit;font-size:14px;background:#fff;color:var(--ink);outline:none;
}
.thought-form input:focus{border-color:#7298eb;box-shadow:0 0 0 4px rgba(36,87,214,.08)}
.thought-form button{min-width:140px}
.thoughts-note{margin-top:6px;font-size:10px;color:var(--muted)}
@media(max-width:730px){
  .speed-answer-feedback.wrong strong{font-size:20px}
  .player-thoughts{padding:16px 13px;margin-bottom:28px;border-radius:18px}
  .player-thoughts-head{display:block}
  .thoughts-beta{display:inline-flex;margin-top:9px}
  .player-thoughts-head h2{font-size:22px}
  .thoughts-ticker{-webkit-mask-image:none;mask-image:none}
  .thought-card{min-width:225px}
  .thought-form{grid-template-columns:1fr}
  .thought-form button{width:100%;min-width:0}
  .owl-sparkle-one{right:12%;top:17%}
  .owl-sparkle-two{left:12%;top:34%}
}


/* ---------- V26 bottom player-thoughts ticker ---------- */
.player-thoughts-bottom{
  margin:34px 0 8px;
  padding:14px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border-radius:18px;
  background:
    linear-gradient(90deg,rgba(36,87,214,.055),rgba(255,255,255,.96) 28%,rgba(244,236,255,.55));
  border:1px solid #dfe5ee;
  box-shadow:0 8px 24px rgba(22,39,76,.045);
}
.thoughts-bottom-label{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:190px;
}
.thoughts-bottom-label .eyebrow{
  font-size:9px;
  margin:0;
}
.thoughts-bottom-label h2{
  margin:1px 0 0;
  font-size:16px;
  white-space:nowrap;
}
.thoughts-live-dot{
  width:9px;height:9px;border-radius:50%;
  background:#2cbf78;
  box-shadow:0 0 0 0 rgba(44,191,120,.32);
  animation:thoughtPulse 2.2s ease-out infinite;
  flex:0 0 auto;
}
@keyframes thoughtPulse{
  0%{box-shadow:0 0 0 0 rgba(44,191,120,.32)}
  70%{box-shadow:0 0 0 8px rgba(44,191,120,0)}
  100%{box-shadow:0 0 0 0 rgba(44,191,120,0)}
}
.player-thoughts-bottom .thoughts-beta{
  font-size:9px;
  padding:4px 7px;
  margin-inline-start:2px;
}
.thoughts-bottom-stream{
  min-width:0;
  overflow:hidden;
}
.player-thoughts-bottom .thoughts-ticker{
  border:0;
  background:transparent;
  border-radius:0;
  -webkit-mask-image:linear-gradient(to left,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(to left,transparent,#000 5%,#000 95%,transparent);
}
.player-thoughts-bottom .thoughts-track{
  padding:3px 0;
  gap:12px;
  animation-duration:32s;
}
.player-thoughts-bottom .thought-card{
  min-width:auto;
  max-width:none;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  border:0;
  box-shadow:none;
  background:transparent;
  padding:7px 5px;
}
.player-thoughts-bottom .thought-card::after{
  content:"•";
  color:#a8b2c2;
  margin-inline-start:8px;
}
.player-thoughts-bottom .thought-card b{
  display:inline;
  margin:0;
  font-size:11px;
}
.player-thoughts-bottom .thought-card span{
  font-size:13px;
  color:#3a465c;
}
.thoughts-empty-inline{
  min-height:42px;
  border:0;
  background:transparent;
  justify-content:flex-start;
  padding:4px 8px;
  font-size:12px;
  color:#68758b;
}
.thoughts-empty-inline>span{font-size:18px}
.thought-compose{
  position:relative;
  flex:0 0 auto;
}
.thought-compose summary{
  list-style:none;
  cursor:pointer;
  min-height:40px;
  padding:0 12px;
  border:1px solid #cdd6e5;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#33425d;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.thought-compose summary::-webkit-details-marker{display:none}
.thought-compose[open] summary{
  border-color:#94aff0;
  background:#f3f7ff;
  color:#2457d6;
}
.player-thoughts-bottom .thought-form{
  position:absolute;
  left:0;
  bottom:calc(100% + 9px);
  width:min(390px,82vw);
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
  margin:0;
  padding:10px;
  border:1px solid #d8e0ec;
  background:#fff;
  border-radius:15px;
  box-shadow:0 14px 40px rgba(22,39,76,.16);
  z-index:10;
}
.player-thoughts-bottom .thought-form input{
  height:43px;
}
.player-thoughts-bottom .thought-form button{
  min-width:82px;
}
.player-thoughts-bottom .thoughts-note{
  position:absolute;
  left:0;
  bottom:calc(100% + 72px);
  width:min(390px,82vw);
  padding:0 12px 8px;
  z-index:11;
  pointer-events:none;
  text-align:right;
}
@media(max-width:850px){
  .player-thoughts-bottom{
    grid-template-columns:1fr auto;
  }
  .thoughts-bottom-stream{
    grid-column:1/-1;
    order:3;
  }
}
@media(max-width:730px){
  .player-thoughts-bottom{
    margin-top:24px;
    padding:11px;
    gap:8px;
    border-radius:16px;
  }
  .thoughts-bottom-label{
    min-width:0;
  }
  .thoughts-bottom-label h2{
    font-size:15px;
  }
  .thoughts-bottom-label .thoughts-beta{
    display:none;
  }
  .player-thoughts-bottom .thoughts-ticker{
    -webkit-mask-image:linear-gradient(to left,transparent,#000 3%,#000 97%,transparent);
    mask-image:linear-gradient(to left,transparent,#000 3%,#000 97%,transparent);
  }
  .player-thoughts-bottom .thought-card span{
    font-size:12px;
  }
  .thought-compose summary{
    padding:0 10px;
    min-height:38px;
    font-size:11px;
  }
  .player-thoughts-bottom .thought-form{
    position:fixed;
    left:12px;
    right:12px;
    bottom:18px;
    width:auto;
    z-index:200;
    grid-template-columns:1fr;
  }
  .player-thoughts-bottom .thoughts-note{
    display:none;
  }
  .player-thoughts-bottom .thought-form button{
    width:100%;
  }
}
@media(prefers-reduced-motion:reduce){
  .thoughts-live-dot{animation:none!important}
}


/* ---------- V27 thoughts composer UI fix ---------- */
.player-thoughts-bottom{
  overflow:visible;
}
.thought-compose{
  position:static;
  grid-column:1/-1;
  width:100%;
}
.thought-compose summary{
  width:max-content;
  margin-inline-start:auto;
}
.thought-compose[open]{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  padding-top:10px;
  margin-top:2px;
  border-top:1px solid #e2e7ef;
}
.player-thoughts-bottom .thought-form{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  z-index:auto;
}
.player-thoughts-bottom .thought-form input{
  width:100%;
  height:46px;
}
.player-thoughts-bottom .thought-form button{
  width:100%;
  min-width:0;
  height:46px;
}
.player-thoughts-bottom .thoughts-note{
  position:static;
  left:auto;
  bottom:auto;
  width:auto;
  padding:0 2px;
  z-index:auto;
  pointer-events:auto;
  text-align:right;
}
@media(max-width:850px){
  .thought-compose{
    grid-column:1/-1;
  }
}
@media(max-width:730px){
  .thought-compose summary{
    width:100%;
    margin:0;
  }
  .player-thoughts-bottom .thought-form{
    position:static;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    grid-template-columns:1fr;
    padding:0;
    z-index:auto;
  }
  .player-thoughts-bottom .thoughts-note{
    display:block;
    font-size:10px;
  }
}


/* ---------- Crawlable "about" block on home + site footer (generated by scripts/pages.mjs) ---------- */
.site-about{margin-top:46px;padding-top:26px;border-top:1px solid var(--line)}
.site-about .site-about-text{font-size:17px;line-height:1.75;color:#3c4557;max-width:820px}
.site-about h3{font-size:20px;margin:26px 0 12px}
.games-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;padding:0;margin:0;list-style:none}
.games-list a{display:flex;gap:12px;align-items:flex-start;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px;text-decoration:none;color:var(--ink);transition:transform .15s}
.games-list a:hover{transform:translateY(-2px);border-color:var(--blue)}
.games-list .ic{font-size:30px;line-height:1}
.games-list b{display:block;font-size:16px}.games-list small{display:block;color:var(--muted);font-size:13px;line-height:1.5}
.faq{max-width:820px}
.faq details{border-top:1px solid var(--line);padding:12px 0}
.faq details:first-of-type{border-top:0}
.faq summary{font-weight:900;font-size:17px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--blue);font-size:22px;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details p{margin:8px 0 0;color:#3c4557;line-height:1.7}
.site-footer{border-top:1px solid var(--line);background:rgba(255,255,255,.7);padding:26px clamp(14px,4vw,46px);font-size:14px;color:var(--muted)}
.site-footer .cols{display:flex;flex-wrap:wrap;gap:22px 40px;width:min(1180px,100%);margin:auto}
.site-footer b{display:block;color:var(--ink);margin-bottom:6px}
.site-footer a{color:var(--muted);text-decoration:none;display:block;line-height:1.9}
.site-footer a:hover{color:var(--blue)}
.site-footer .copy{width:min(1180px,100%);margin:18px auto 0;font-size:12px}
@media (prefers-reduced-motion:reduce){.games-list a:hover{transform:none}}

/* ---------- Login modal: guest + OAuth ---------- */
.login-or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;font-weight:800;margin:14px 0 10px}
.login-or::before,.login-or::after{content:"";flex:1;height:1px;background:var(--line)}
.login-note{font-size:12px;color:var(--muted);margin:10px 0 0;line-height:1.6}
#guestLogin{width:100%;margin-top:10px}

/* ---------- Routes / crumbs / links-as-buttons / coin icon ---------- */
.nav a{text-decoration:none;display:inline-block}
a.primary,a.secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
.crumbs{width:min(1180px,calc(100% - 28px));margin:16px auto -22px;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:6px;position:relative;z-index:1}
.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--blue)}.crumbs .sep{opacity:.6}.crumbs [aria-current]{color:var(--ink);font-weight:700}
.coin-ic{display:inline-block;width:1em;height:1em;vertical-align:-.12em;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23f1b84b' stroke='%23c98a12' stroke-width='1.5'/><circle cx='12' cy='12' r='7.2' fill='none' stroke='%23c98a12' stroke-width='1.2'/><text x='12' y='16.2' font-size='11' font-family='Arial' font-weight='700' text-anchor='middle' fill='%237a5200'>₪</text></svg>") center/contain no-repeat}
.game-seo{margin-top:34px;display:grid;gap:14px}
.game-seo .panel h1{font-size:clamp(26px,4vw,38px);margin:0 0 6px;letter-spacing:-.8px}
.game-seo .panel h2{font-size:22px;margin:0 0 10px}
.game-seo .panel p,.game-seo .panel li{font-size:16px;line-height:1.75;color:#3c4557}
.game-seo .panel ol,.game-seo .panel ul{padding-inline-start:22px;margin:0}
.game-seo .sub{color:var(--muted);font-size:17px;margin:0 0 4px}
.about-screen{display:grid;gap:14px}
.about-screen h1{font-size:clamp(30px,5vw,48px);margin:0 0 8px;letter-spacing:-1px}
.about-screen .panel p{font-size:17px;line-height:1.75;color:#3c4557;margin:0 0 12px}
.about-hero{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.about-hero img{width:150px;height:150px;border-radius:50%}
@media (max-width:760px){.crumbs{margin:10px auto -14px}}
.legal-screen .panel p{margin:0 0 10px}
.legal-screen h2{font-size:20px;margin:0 0 8px}
.thought-card{position:relative}
.thought-report{position:absolute;top:4px;left:6px;border:0;background:transparent;color:var(--muted);font-size:12px;opacity:.45;padding:2px 4px;line-height:1}
.thought-report:hover{opacity:1;color:var(--red)}
.fact-line{margin-top:10px;background:#fff8e6;border:1px solid #f3dfae;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.6;color:#5a4300}
.fact-line b{color:#8a5a00}

/* ---------- Guest mode: economy widgets only for accounts ---------- */
.guest-pill{display:none;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:11px;padding:8px 10px;font-size:12px;font-weight:800;white-space:nowrap}
.guest-pill:hover{color:var(--blue);border-color:var(--blue)}
.guest-strip{display:none;align-items:center;justify-content:space-between;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:14px 18px;margin:18px 0 26px;font-size:15px;line-height:1.6;color:#3c4557}
body.guest .guest-pill,body.guest .guest-strip{display:flex}
body.guest .header-score,body.guest #openCoinsBtn,body.guest .stats-strip,body.guest #profileCoins{display:none}
body.guest .profile-card .profile-stat{display:none}
body.guest .guest-strip .primary{flex:none}
@media (max-width:760px){.guest-strip{flex-direction:column;align-items:stretch;text-align:center}.guest-pill{font-size:11px;padding:7px 8px}}
/* ---------- Coin wheel modal: one centered column (only one card is visible at a time) ---------- */
.coin-modal{width:min(560px,100%);text-align:right}
.coin-modal .coin-actions{grid-template-columns:1fr;max-width:460px;margin:16px auto 0}
.coin-modal .coin-card{text-align:center}
.coin-modal h2{font-size:24px;line-height:1.25}
@media (min-width:761px){.coin-modal .wheel-wrap{width:260px;height:260px}}

/* ---------- Game icon set ---------- */
.game-icon{display:grid;place-items:center;color:var(--blue);font-size:0}
.game-icon .gi{width:34px;height:34px}
.gi .acc{color:var(--gold)}
.game-card:hover .game-icon{color:var(--blue2)}
/* ---------- Header density ---------- */
@media (max-width:1500px){.nav :is(button,a){padding:8px 8px;font-size:14px}}
@media (max-width:730px){
  .brand small{display:none}
  .account{gap:6px}
  #loginBtn{min-height:40px;padding:0 12px;font-size:14px}
  .guest-pill{padding:6px 7px;font-size:11px}
  .nav :is(button,a){min-height:38px;padding:7px 9px;font-size:14px}
  .topbar{min-height:0}
}
@media (max-width:730px){
  .topbar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 8px}
  .brand{grid-column:1;flex:initial;min-width:0}
  .account{grid-column:2;justify-content:flex-end}
  .nav{grid-column:1/-1;order:initial}
}
/* login opened from a hint: accounts only, no guest path */
#loginModal.hint-mode #nickname,#loginModal.hint-mode #guestLogin,#loginModal.hint-mode .login-or{display:none}
#loginModal.hint-mode #oauthBox{margin-top:14px}

/* ---------- Game icon tiles ---------- */
.game-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#fff;background:var(--tile,var(--blue));box-shadow:0 8px 18px rgba(20,33,61,.12)}
.game-icon .gi{width:36px;height:36px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.12))}
.game-card[data-game="words"] .game-icon,.tile[data-game="words"]{--tile:linear-gradient(135deg,#ff7a3d,#e0342c);--cut:#b3261e}
.game-card[data-game="sports"] .game-icon,.tile[data-game="sports"]{--tile:linear-gradient(135deg,#22a565,#12784a);--cut:#0d5c38}
.game-card[data-game="connections"] .game-icon,.tile[data-game="connections"]{--tile:linear-gradient(135deg,#7652c8,#4b32a3);--cut:#3a2482}
.game-card[data-game="whoami"] .game-icon,.tile[data-game="whoami"]{--tile:linear-gradient(135deg,#f1b84b,#d98b16);--cut:#a86500}
.game-card[data-game="israeli"] .game-icon,.tile[data-game="israeli"]{--tile:linear-gradient(135deg,#2f6bea,#173b95);--cut:#102a6e}
.game-card[data-game="speed"] .game-icon,.tile[data-game="speed"]{--tile:linear-gradient(135deg,#ffb020,#f0641e);--cut:#b84a10}
.game-card[data-game="battle"] .game-icon,.tile[data-game="battle"]{--tile:linear-gradient(135deg,#dc4b4b,#9d2626);--cut:#7a1c1c}
.game-card[data-game="tv"] .game-icon,.tile[data-game="tv"]{--tile:linear-gradient(135deg,#14213d,#2457d6);--cut:#14213d}
.game-card[data-game="weird"] .game-icon,.tile[data-game="weird"]{--tile:linear-gradient(135deg,#ff5fa2,#b92f8c);--cut:#8f1f6b}
.game-card[data-game="crossword"] .game-icon,.tile[data-game="crossword"]{--tile:linear-gradient(135deg,#00a6a6,#1f6f8b);--cut:#155366}
.game-card:hover .game-icon{color:#fff;transform:translateY(-2px) rotate(-3deg);transition:transform .2s}
/* ---------- Flags: self-hosted SVG (flag emoji do not render on Windows) ---------- */
.flag-ic{display:inline-block;width:88px;height:auto;border-radius:8px;box-shadow:0 4px 14px rgba(20,33,61,.18);vertical-align:middle}
.flag-ic.sm{width:20px;height:auto;border-radius:3px;box-shadow:none;vertical-align:-2px;margin-inline-start:2px}
.question-icon .flag-ic{width:120px}

.games-list .tile{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;flex:none;color:#fff;background:var(--tile,var(--blue));box-shadow:0 6px 14px rgba(20,33,61,.12);font-size:0}
.games-list .tile .gi{width:24px;height:24px}
/* ---------- Mobile header v2: row 1 = brand + account, row 2 = scrolling nav ---------- */
@media (max-width:730px){
  .topbar{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;gap:4px 8px;padding:8px 10px 6px;min-height:0}
  .brand{grid-row:1;grid-column:1;gap:7px}
  .brand-mark{width:36px;height:36px;border-radius:11px}
  .brand b{font-size:16px}
  .account{grid-row:1;grid-column:2;gap:5px}
  .nav{grid-row:2;grid-column:1/-1;margin:2px -10px 0;padding:2px 10px;width:auto;justify-content:flex-start;gap:2px}
  .nav :is(button,a){min-height:36px;padding:6px 9px;font-size:13.5px;border-radius:10px}
  #loginBtn{min-height:36px;padding:0 11px;font-size:13px;border-radius:11px;max-width:120px}
  .guest-pill{padding:0 8px;min-height:36px;font-size:0;border-radius:11px}
  .guest-pill::before{content:"🔒 ניקוד";font-size:11.5px}
  .header-score,.coin-pill{min-height:34px;padding:0 8px;font-size:12px}
  .header-score{display:inline-flex;align-items:center}
  body:not(.guest) .header-score{display:inline-flex}
}

/* ---------- Leaderboard v2 ---------- */
.leader-tabs{display:flex;gap:6px;margin:-6px 0 16px}
.leader-tabs button{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:8px 16px;font-weight:800}
.leader-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.podium .me{outline:2px solid var(--blue);outline-offset:-2px}
.podium>div{display:flex;flex-direction:column;align-items:center;gap:4px}
.podium b{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--soft);display:inline-grid;place-items:center;font-weight:900;color:var(--blue);vertical-align:middle;margin-inline-end:8px;flex:none}
.podium .lb-avatar{width:44px;height:44px;margin:0;font-size:18px}
.rank-row{align-items:center}
.rank-name{display:flex;align-items:center;min-width:0}.rank-name>span:last-child,.rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-no{font-weight:900;color:var(--muted)}.rank-row.me .rank-no{color:var(--blue)}
.rank-pts{font-weight:900}
.my-rank{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:var(--soft);border-radius:14px;padding:10px 14px;margin-bottom:8px;font-size:14px}
.my-rank b{font-size:22px;color:var(--blue)}
.side-boards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px}
.side-board{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px 18px;box-shadow:var(--shadow)}
.side-board h3{margin:0 0 10px;font-size:16px}
.side-row{display:grid;grid-template-columns:22px auto 1fr auto;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--line);font-size:14px}
.side-row>span:first-child{color:var(--muted);font-weight:900;font-size:12px}
.side-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-row .lb-avatar{width:26px;height:26px;margin:0;font-size:12px}
.side-val{color:var(--blue);font-weight:900;white-space:nowrap}
.side-empty{color:var(--muted);font-size:13px}
@media (max-width:730px){.leader-tabs{overflow:auto}.leader-tabs button{padding:7px 12px;font-size:13px}.podium b{font-size:13px}}

/* ---------- Accent color for calls to action ---------- */
:root{--accent:#f6b73c;--accent2:#e3931f;--accent-ink:#2a1e05}
/* one warm accent, borrowed from the coin gold: sign-in and the hero CTA only. Everything else stays blue. */
#loginBtn,#guestStripLogin,.hero-actions .primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:var(--accent-ink);border:0;box-shadow:0 8px 20px rgba(227,147,31,.28)}
#loginBtn:hover,#guestStripLogin:hover,.hero-actions .primary:hover{filter:brightness(1.04)}
#googleLogin{font-weight:900}
.guest-pill{border-color:#f3dfae;background:#fff8e6;color:#8a5a00}
.leader-tabs button.active{background:var(--blue)}
/* ---------- Game header tile ---------- */
.game-head{display:inline-flex;align-items:center;gap:10px}
.game-head .tile{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:var(--tile,var(--blue));box-shadow:0 6px 14px rgba(20,33,61,.14);font-size:0;flex:none}
.game-head .tile .gi{width:22px;height:22px}
/* ---------- Battle turns ---------- */
.battle-how{background:var(--soft);border-radius:14px;padding:12px 14px;font-size:14.5px;line-height:1.65;color:#2f3a52;margin:0 0 14px}
.pass-card.p2{background:#fff4ec}
.question-box.p1 h3::before{content:"🔵 ";}
.question-box.p2 h3::before{content:"🟠 ";}
/* mobile: the game panel comes first, the owl side-card after it (it pushed the question below the fold) */
@media (max-width:730px){.play-layout{display:flex;flex-direction:column}.play-layout>.tobi-side{order:2}.play-layout>.panel{order:1}}

/* ---------- Owl poses: one illustration, contextual variants (mirror/tilt/bounce + badge). Swap for real drawings by replacing the img per pose. ---------- */
.tobi{position:relative;display:inline-block;line-height:0}
.tobi img{display:block}
.tobi-badge{position:absolute;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 6px 16px rgba(20,33,61,.18);font-size:18px;font-style:normal;line-height:1;bottom:6px;left:4px;animation:tobi-pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes tobi-pop{from{transform:scale(0) rotate(-20deg);opacity:0}to{transform:scale(1);opacity:1}}
.tobi-think img{transform:rotate(-6deg)}.tobi-think .tobi-badge{top:-4px;left:-2px;bottom:auto;width:38px;height:38px;font-size:22px}
.tobi-detect img{transform:scaleX(-1) rotate(4deg)}.tobi-detect .tobi-badge{background:#fff8e6}
.tobi-pass img{transform:scaleX(-1);animation:tobi-nudge 1.4s ease-in-out infinite}.tobi-pass .tobi-badge{left:auto;right:8px;transform:scaleX(-1);font-size:22px;background:#fff4ec}
@keyframes tobi-nudge{0%,100%{transform:scaleX(-1) translateX(0)}50%{transform:scaleX(-1) translateX(-6px)}}
.tobi-cheer img{animation:tobi-bounce 2.2s ease-in-out infinite}.tobi-cheer .tobi-badge{background:#fff7dc}
@keyframes tobi-bounce{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(3deg)}}
.tobi-hello img{transform:rotate(3deg)}.tobi-hello .tobi-badge{animation:tobi-wave 1.6s ease-in-out infinite}
@keyframes tobi-wave{0%,100%{transform:rotate(0)}30%{transform:rotate(18deg)}60%{transform:rotate(-8deg)}}
#loginModal.hint-mode .tobi-hello img{transform:rotate(-8deg) scaleX(-1);filter:saturate(.85)}
#loginModal.hint-mode .tobi-hello .tobi-badge{animation:none;background:#fff0ef}
#loginModal.hint-mode .tobi-hello .tobi-badge::before{content:"🔒"}
#loginModal.hint-mode .tobi-hello .tobi-badge{font-size:0}#loginModal.hint-mode .tobi-hello .tobi-badge::before{font-size:18px}
.tobi-side .tobi{width:100%}.tobi-side .tobi img{width:100%;height:auto}
.modal-card .tobi img{width:140px}
.pass-card .tobi img{width:120px;margin:auto}
.profile-card .tobi img{width:120px;margin:auto}
@media (prefers-reduced-motion:reduce){.tobi img,.tobi-badge{animation:none!important}}
/* game header must wrap on narrow screens (tile + eyebrow + difficulty badge) */
.title-row,.section-head{flex-wrap:wrap;min-width:0}
.game-head{max-width:100%;flex-wrap:wrap}
.game-head .eyebrow{white-space:normal}
.play-layout>.panel{min-width:0;max-width:100%}

.side-generic .side-stats b{font-size:15px}

/* ---------- Hot-word hints: their own block, impossible to miss ---------- */
.hint-block{display:flex;flex-direction:column;gap:8px;margin:14px 0 4px;min-width:0;flex:none;width:100%}
.hint-block:empty{display:none}
.hint-block .hint-chip{font-size:16px;padding:12px 14px;border-radius:14px;border-width:1.5px;box-shadow:0 8px 20px rgba(241,184,75,.16);animation:hint-in .35s cubic-bezier(.2,1.2,.4,1) both}
.hint-block .hint-chip b{display:inline-block;margin-inline-end:8px;background:#fff;border-radius:999px;padding:2px 9px;font-size:13px}
@keyframes hint-in{from{transform:translateY(-6px);opacity:0}to{transform:none;opacity:1}}
/* ---------- Hot-word round summary ---------- */
.round-card{margin-top:14px;background:linear-gradient(135deg,#fff7dc,#fff);border:1px solid #f0da91;border-radius:18px;padding:18px 20px;text-align:center}
.round-card h3{margin:8px 0 4px;font-size:24px}.round-card .sub{color:#5a4300;margin:0 0 12px}
.round-card .win-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* =================== Mobile UX pass =================== */
@media (max-width:730px){
  /* hero: owl beside the text, everything above the fold */
  .hero{grid-template-columns:1fr 128px;gap:10px;min-height:0;padding:6px 0 10px;align-items:center}
  .hero-mascot{order:2}
  .hero-mascot img{width:128px;filter:drop-shadow(0 12px 16px rgba(24,42,80,.16))}
  .speech{display:none}
  .hero h1{font-size:33px;letter-spacing:-1.2px;line-height:1.02;margin:10px 0 8px}
  .hero p{font-size:15px;line-height:1.55;margin:0 0 12px}
  .hero-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .hero-actions .primary,.hero-actions .secondary{min-height:46px;padding:0 10px;font-size:14.5px;width:100%}
  .guest-strip{margin:14px 0 18px;padding:12px 14px;font-size:14px}
  .section-head{margin-bottom:10px}
  .section-head h2{font-size:24px}
  /* game cards: one scannable row each */
  .game-grid{gap:9px}
  .game-card{display:grid;grid-template-columns:52px 1fr auto;grid-template-areas:"icon title play" "icon desc play";column-gap:12px;row-gap:2px;align-items:center;padding:12px 12px;border-radius:16px;cursor:pointer}
  .game-card .game-icon{grid-area:icon;width:52px;height:52px;border-radius:14px}
  .game-card .game-icon .gi{width:30px;height:30px}
  .game-card .tag,.game-card .card-meta{display:none}
  .game-card h3{grid-area:title;margin:0;font-size:17px}
  .game-card p{grid-area:desc;margin:0;font-size:13px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .game-card .primary{grid-area:play;min-height:38px;padding:0 13px;font-size:13.5px;border-radius:11px;box-shadow:none}
  /* toasts at the thumb zone, not over the title */
  .game-toast{top:auto!important;bottom:18px;width:calc(100% - 28px);padding:11px 14px;font-size:14.5px;border-radius:14px}
  .game-toast.show{transform:translateX(-50%) translateY(0)}
  /* titles */
  .panel h2{font-size:23px;line-height:1.2}
  .panel .sub{font-size:14px}
  .title-row{gap:6px}
  .crumbs{margin:8px auto -12px;font-size:12px}
  /* answers: 2 columns, comfortable tap targets */
  .answers{grid-template-columns:1fr 1fr;gap:8px;margin:12px auto}
  .answer-btn{min-height:56px;padding:8px;font-size:15px;line-height:1.25}
  .question-box h3{font-size:21px;line-height:1.3;margin:8px 0}
  .question-icon{font-size:40px;line-height:1}
  .question-icon .flag-ic{width:96px}
  /* 60 seconds: timer + stats in one row so the question and all 4 answers stay on screen */
  .timer-ring{width:78px;height:78px;margin:0}
  .timer-ring:after{width:56px;height:56px}
  .timer-ring b{font-size:24px}
  .speed-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 4px}
  .speed-stats{display:flex;gap:6px;flex-wrap:wrap;margin:0}
  .speed-stats>*{font-size:12.5px;padding:6px 8px}
  /* crossword: tighter board, keyboard follows the thumb */
  .cross-grid{width:100%;border-width:3px}
  .cross-board-side{display:flex;flex-direction:column;gap:8px}
  .cross-keyboard{position:sticky;bottom:6px;z-index:20;background:rgba(245,247,251,.96);backdrop-filter:blur(8px);border-radius:14px;padding:6px;box-shadow:0 -8px 24px rgba(20,33,61,.10)}
  .cross-key{width:31px;height:42px;font-size:18px}
  /* owl card after the game: compact */
  .tobi-side{grid-template-columns:78px 1fr;gap:10px;padding:12px;align-items:center}
  .tobi-side .tobi img{width:78px;max-height:none}
  .tobi-side .tobi-badge{width:26px;height:26px;font-size:13px}
  .tobi-side .tobi-bubble{font-size:13.5px;padding:10px}
  .tobi-side .side-stats{grid-column:1/-1;margin-top:6px}
  /* nav auto-hide while scrolling down */
  .nav{transition:max-height .22s ease,opacity .18s ease,margin .22s ease;max-height:48px;overflow-y:hidden}
  body.nav-hidden .nav{max-height:0;opacity:0;margin-top:0;padding-top:0;padding-bottom:0;pointer-events:none}
  /* footer */
  .site-footer .cols{gap:14px 24px}.site-footer a{line-height:1.7}
}
@media (max-width:390px){.hero h1{font-size:30px}.answers{grid-template-columns:1fr 1fr}}
@media (max-width:730px){
  .cross-key{height:38px;font-size:17px}.cross-keyboard{padding:5px 4px}
  .leader-head{flex-direction:row;align-items:center;margin-bottom:10px}
  .leader-head h2{font-size:24px;margin:4px 0 0}.leader-head .sub{display:none}
  #globalShare{min-height:40px;padding:0 12px;font-size:13px;flex:none}
  .leader-tabs{margin:0 0 12px}
  .podium>div{padding:10px 5px}.podium span{font-size:24px}.podium .first{min-height:130px}.podium .second{min-height:110px}.podium .third{min-height:95px}
}
@media (max-width:730px){
  .thought-report{width:32px;height:32px;font-size:15px;opacity:.7}
  #skipWord{min-height:40px;padding:6px 10px;display:inline-flex;align-items:center}
  .leader-tabs button{min-height:40px}
}
