/* "קלפים נגד מעגליסטים" - the card game app (/klafim/). Same night palette and fonts as the site (css/site.css tokens). */
:root {
  --night-950: #07031a; --night-900: #0e0629; --night-800: #1a0b3d; --night-700: #2e1065;
  --violet: #7c4dff; --violet-soft: #a78bfa; --gold: #ffd700; --gold-warm: #f7c948; --gold-deep: #d99a1e; --pink: #ff7ac6; --sky: #4fa8ff;
  --text: #f4f0ff; --text-soft: #c9bff0; --text-mute: #9b8fc9;
  --paper: #fffaf0; --ink: #1d1236; --line: rgba(255, 255, 255, 0.12);
  --card-r: 16px; --font: 'Rubik', 'Alef', system-ui, sans-serif; --hand: 'Playpen Sans Hebrew', 'Rubik', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--night-950); color: var(--text); font: 400 16px/1.5 var(--font); overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-warm); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* breathing background */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--night-800), var(--night-950) 70%); }
.sky i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .35; animation: drift 26s ease-in-out infinite alternate; }
.sky i:nth-child(1) { background: var(--violet); top: -20vmax; right: -15vmax; }
.sky i:nth-child(2) { background: #ff7ac6; bottom: -30vmax; left: -20vmax; opacity: .18; animation-duration: 34s; }
.sky i:nth-child(3) { background: var(--sky); top: 40%; right: 30%; width: 40vmax; height: 40vmax; opacity: .14; animation-duration: 40s; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sky i, .balloon, .float { animation: none !important; } }

#app { max-width: 1100px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }
.wrap { max-width: 560px; margin: 0 auto; }

/* titles */
.brand { text-align: center; margin: 18px 0 22px; }
.brand .eyebrow { font: 600 15px var(--hand); color: var(--gold-warm); }
.brand h1 { font: 700 clamp(2.1rem, 8vw, 3.6rem)/1.05 var(--hand); margin: 6px 0 10px; text-wrap: balance; }
.brand h1 b { color: var(--gold); font-weight: 700; }
.brand p { color: var(--text-soft); margin: 0 auto; max-width: 30em; text-wrap: balance; }
h2 { font: 700 1.35rem/1.25 var(--hand); margin: 0 0 12px; }
.mute { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.center { text-align: center; }

/* panels and controls */
.panel { background: color-mix(in srgb, var(--night-800) 78%, transparent); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin: 0 0 14px; }
label.lbl { display: block; font-weight: 600; margin: 0 0 6px; }
.field { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); font-size: 17px; }
.field::placeholder { color: var(--text-mute); }
textarea.field { resize: vertical; min-height: 84px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--text); transition: transform .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.go { background: linear-gradient(180deg, #ffe45c, var(--gold-deep)); color: #2a1600; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(255, 200, 0, .55); }
.btn.big { width: 100%; font-size: 19px; min-height: 58px; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 160px; }
.stack > * + * { margin-top: 10px; }
.link { background: none; border: 0; padding: 6px; color: var(--gold-warm); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* avatars */
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
@media (max-width: 420px) { .avatars { grid-template-columns: repeat(6, 1fr); } }
.avatars button { aspect-ratio: 1; font-size: 24px; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.06); }
.avatars button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .16); }

/* segmented choices (wrap, never scroll sideways) */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.seg button { min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #2a1600; border-color: var(--gold); }
.setting + .setting { margin-top: 14px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; }
.how b.n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1600; font-weight: 700; }

/* the room header */
.top { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 12px; flex-wrap: wrap; }
.top .code { font: 700 15px var(--font); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.top .code b { color: var(--gold); letter-spacing: .08em; }
.top .round { font: 600 15px var(--hand); color: var(--text-soft); }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0 0 16px; }
.pl { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); min-width: 0; position: relative; }
.pl .av { font-size: 24px; line-height: 1; flex: none; }
.pl .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.pl .sc { flex: none; font-weight: 700; color: var(--gold); }
.pl .tag { position: absolute; top: -9px; left: 8px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 600; }
.pl.czar { border-color: var(--gold); background: rgba(255, 215, 0, .1); }
.pl.czar .tag { background: var(--gold); color: #2a1600; }
.pl.done .tag { background: #2fbf71; }
.pl.away { opacity: .5; }
.pl.me .nm::after { content: ' (את/ה)'; font-weight: 400; color: var(--text-mute); font-size: 13px; }
.pl .kick { border: 0; background: none; color: var(--text-mute); font-size: 18px; padding: 0 2px; }

/* status line */
.status { text-align: center; margin: 0 0 14px; }
.status strong { display: block; font: 700 clamp(1.25rem, 4.6vw, 1.7rem)/1.25 var(--hand); text-wrap: balance; }
.status span { color: var(--text-soft); }
.timer { display: inline-block; margin-top: 6px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-variant-numeric: tabular-nums; }
.timer.low { background: #ff4d6d; color: #fff; }

/* cards */
.card { position: relative; border-radius: var(--card-r); padding: 16px 16px 34px; font-weight: 700; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.card::after { content: '🎈 קלפים נגד מעגליסטים'; position: absolute; bottom: 9px; right: 14px; font: 600 11px var(--font); opacity: .55; }
.card.black { background: linear-gradient(160deg, #1b1033, #07031a); color: #fff; border: 1px solid rgba(255,215,0,.35); box-shadow: 0 18px 40px -18px #000; font-size: clamp(1.2rem, 4.4vw, 1.6rem); }
.card.black .pick { position: absolute; bottom: 7px; left: 12px; font: 700 12px var(--font); color: var(--gold); }
.card.white { background: var(--paper); color: var(--ink); border: 2px solid transparent; font-size: 17px; min-height: 120px; box-shadow: 0 10px 22px -14px #000; transition: transform .15s, border-color .15s; }
.card.white::after { color: var(--ink); }
.black-wrap { max-width: 560px; margin: 0 auto 18px; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: 3px solid currentColor; opacity: .7; }
.fill { color: var(--gold); }

.hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 400px) { .hand { grid-template-columns: 1fr 1fr; } .card.white { font-size: 15.5px; min-height: 110px; } }
button.card.white { width: 100%; cursor: pointer; font-family: inherit; }
button.card.white:hover { transform: translateY(-3px); }
.card.white.sel { border-color: var(--gold-deep); transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(255,215,0,.55), 0 14px 30px -12px #000; }
.card.white .num { position: absolute; top: -10px; left: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #2a1600; display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.card.white.blankcard { background: repeating-linear-gradient(-45deg, #fffaf0 0 12px, #f6eedb 12px 24px); color: #6b5a8a; }
.card.white textarea { width: 100%; margin-top: 8px; border: 1px dashed #9d8bc4; border-radius: 10px; padding: 8px; background: #fff; color: var(--ink); font: 600 16px var(--font); resize: none; }

/* submitted answers (judge / reveal) */
.answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ans { text-align: right; border-radius: var(--card-r); padding: 16px 16px 16px; background: var(--paper); color: var(--ink); border: 3px solid transparent; font-weight: 600; line-height: 1.4; font-size: 17px; width: 100%; }
button.ans { cursor: pointer; font-family: inherit; }
.ans .q { color: #5a4a7a; font-weight: 500; }
.ans .q .fill { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 58%, rgba(255, 215, 0, .55) 58%); }
.ans .a { display: block; margin-top: 8px; font-weight: 800; }
.ans.sel { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(255,215,0,.5); }
.ans.win { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255,215,0,.6), 0 0 50px rgba(255,215,0,.35); }
.ans.lose { opacity: .45; }
.ans .by { display: block; margin-top: 10px; font: 700 15px var(--hand); color: #8a5a00; }

/* bottom action bar */
.bar { position: fixed; inset: auto 0 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(7,3,26,.92) 30%); display: flex; gap: 10px; justify-content: center; z-index: 5; }
.bar .btn { flex: 1 1 auto; max-width: 420px; }
.bar .btn.side { flex: 0 1 auto; }

/* lobby */
.bigcode { text-align: center; font: 800 clamp(3rem, 16vw, 5rem)/1 var(--font); letter-spacing: .12em; color: var(--gold); margin: 6px 0 4px; direction: ltr; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* win */
.winner { text-align: center; margin: 10px 0 18px; }
.winner .av { font-size: 76px; line-height: 1; display: inline-block; }
.winner strong { display: block; font: 700 clamp(1.6rem, 6vw, 2.4rem)/1.2 var(--hand); color: var(--gold); margin-top: 8px; }
.score-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.score-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.score-list .nm { flex: 1; font-weight: 600; }
.score-list .sc { font-weight: 800; color: var(--gold); }
.float { animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
.balloon { position: fixed; bottom: -80px; font-size: 44px; z-index: 20; pointer-events: none; animation: rise 4.2s ease-in forwards; }
@keyframes rise { to { transform: translateY(-115vh) rotate(var(--r, 12deg)); } }

.last { margin-top: 18px; }
.last summary { cursor: pointer; color: var(--text-soft); }

/* suggestion box */
.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind button { border-radius: 16px; padding: 14px 10px; min-height: 92px; font-weight: 700; border: 3px solid transparent; }
.kind .k-black { background: #120a26; color: #fff; border-color: rgba(255,215,0,.25); }
.kind .k-white { background: var(--paper); color: var(--ink); }
.kind button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,.35); }
.kind small { display: block; font-weight: 400; opacity: .75; margin-top: 4px; }
.preview { max-width: 340px; margin: 14px auto 0; }

/* admin */
.adm-row { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.adm-row + .adm-row { margin-top: 8px; }
.adm-row .meta { font-size: 13px; color: var(--text-mute); }
.adm-row .k { font-weight: 700; }
.adm-row.ok { border-color: #2fbf71; }
.adm-row.no { opacity: .55; }

.toast { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 30; max-width: min(92vw, 480px); padding: 12px 18px; border-radius: 14px;
  background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.4); text-align: center; }
.toast.err { background: #ff4d6d; color: #fff; }
.back { display: inline-block; margin: 4px 0 0; font-size: 14px; }
.spin { text-align: center; padding: 60px 0; color: var(--text-soft); }

/* ---------- the table (rounds) ---------- */
body.at-table #app { padding-bottom: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.players.seats { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-bottom: 10px; }
.players.seats .pl { padding: 6px 8px; }
.players.seats .av { font-size: 20px; }
.felt { flex: 1; position: relative; border-radius: 34px; padding: 18px 14px 210px; margin: 0 -6px;
  background: radial-gradient(120% 90% at 50% 30%, #3a1d78 0%, #24104f 45%, #140834 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 215, 0, .28), inset 0 0 0 9px rgba(20, 8, 52, .9), inset 0 0 0 11px rgba(255, 215, 0, .14), inset 0 30px 80px rgba(0, 0, 0, .45), 0 30px 60px -30px #000; }
.felt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.08), transparent 30%), radial-gradient(circle at 80% 70%, rgba(124,77,255,.18), transparent 40%); }
.felt.phase-judge, .felt.phase-reveal { padding-bottom: 150px; }
.felt .status { position: relative; }
.table-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qcard { width: min(100%, 360px); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), box-shadow .5s; }
.qcard.hero { transform: scale(1.08) translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 0 60px rgba(255, 215, 0, .35), 0 30px 50px -20px #000; }
@media (min-width: 640px) { .qcard.hero { transform: scale(1.18) translateY(6px); margin: 18px 0; } }
.pile { position: relative; height: 92px; width: 160px; }
.pile:empty { display: none; }
.cback { position: absolute; top: 0; left: 50%; width: 62px; height: 88px; margin-left: -31px; border-radius: 9px; border: 2px solid rgba(255, 215, 0, .5);
  background: radial-gradient(circle at 50% 45%, rgba(255,215,0,.35) 0 14px, transparent 15px), repeating-linear-gradient(45deg, #4c2a90 0 6px, #3b1f74 6px 12px);
  box-shadow: 0 6px 14px rgba(0,0,0,.45); transform: translateX(calc((var(--i) - 2) * 16px)) rotate(calc((var(--i) - 2) * 7deg)); animation: drop .35s ease-out both; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(20deg); } }
.ans.mine { width: min(100%, 360px); }
.ans.reader { width: min(100%, 460px); font-size: clamp(1.25rem, 5vw, 1.7rem); padding: 22px; box-shadow: 0 0 0 4px rgba(255, 215, 0, .45), 0 20px 50px -20px #000; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.ans.win.big { width: min(100%, 460px); font-size: 1.2rem; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.answers.small { width: 100%; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.answers.small .ans { font-size: 14px; padding: 12px; }
.table-body > .answers { width: 100%; }
.bar.up { bottom: 190px; background: none; }

/* the hand */
.fan { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--cw) * 1.45 + 24px); z-index: 6; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.2, .4, 1); }
.fan.two { height: calc(var(--cw) * 2.05 + 24px); }
.fan.down { transform: translateY(calc(var(--cw) * 1.0)); }
.fan.down.two { transform: translateY(calc(var(--cw) * 1.62)); }
.fan.down .fcard { filter: saturate(.6) brightness(.85); }
.fan-label { position: absolute; left: 0; right: 0; top: -6px; text-align: center; font: 600 13px var(--font); color: var(--text-soft); pointer-events: auto; text-shadow: 0 1px 4px #000; }
.fan.down .fan-label { top: -26px; }
.fan-label .link { font-size: 13px; padding: 0 4px; }
.fcard { pointer-events: auto; position: absolute; left: 50%; bottom: calc(var(--cw) * -0.08); width: var(--cw); height: calc(var(--cw) * 1.4); margin-left: calc(var(--cw) / -2);
  border-radius: 12px; border: 2px solid rgba(29, 18, 54, .12); background: var(--paper); color: var(--ink); padding: 10px 9px; text-align: right;
  transform-origin: 50% 120%; transform: translate(var(--x), var(--y)) rotate(var(--a)); transition: transform .25s ease, box-shadow .2s;
  box-shadow: -4px 6px 14px rgba(0, 0, 0, .35); font: 700 calc(var(--cw) * .118)/1.28 var(--font); overflow: hidden; }
.fan.two .fcard { bottom: calc(var(--cw) * -0.18); }
.fcard .ft { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.fcard::after { content: '🎈'; position: absolute; bottom: 6px; left: 8px; font-size: 11px; opacity: .5; }
@media (hover: hover) { .fan:not(.down) .fcard:hover { transform: translate(var(--x), calc(var(--y) - 22px)) rotate(var(--a)); z-index: 50 !important; } }
.fcard.sel { box-shadow: 0 0 0 4px var(--gold), 0 10px 24px rgba(0,0,0,.5); }
.fcard .num { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #2a1600; display: grid; place-items: center; font-size: 13px; }

/* the card in big */
.zoom { position: fixed; inset: 0; z-index: 40; background: rgba(7, 3, 26, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.zoom-in { width: min(100%, 380px); display: grid; gap: 14px; }
.zcard { font-size: clamp(1.4rem, 6.4vw, 1.9rem); min-height: 0; aspect-ratio: 5 / 6; display: flex; align-items: flex-start; padding: 22px 20px 40px; animation: lift .35s cubic-bezier(.2, 1.3, .4, 1); box-shadow: 0 30px 60px -20px #000; }
@keyframes lift { from { transform: translateY(40vh) rotate(-8deg) scale(.6); } }
.ans.preview { font-size: 15px; padding: 12px 14px; }

/* lobby: where is everyone */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .modes { grid-template-columns: 1fr; } }
.modes button { text-align: right; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.modes button b { display: block; font-size: 16px; }
.modes button small { display: block; color: var(--text-soft); margin-top: 3px; font-size: 13.5px; }
.modes button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .12); }
@media (prefers-reduced-motion: reduce) { .fan, .fcard, .qcard, .zcard, .cback, .ans.reader, .ans.win.big { transition: none !important; animation: none !important; } }
.fcard { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.players.seats .pl.me .nm::after { content: none; }
.players.seats .pl.me { box-shadow: inset 0 0 0 1px var(--violet-soft); }
.card.white.zcard { font-size: clamp(1.5rem, 7vw, 2rem); aspect-ratio: auto; min-height: 210px; align-items: center; }
.modes.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .modes.three { grid-template-columns: 1fr; } }
.adm-row select { background: var(--night-800); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; font: inherit; font-size: 13px; }
.players:not(.seats) { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }

/* ================= v2 shell (29.10.2026): top bar, tab bar, sheets, frames, shop, board, profile ================= */
#app { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
body.in-room #app { padding-bottom: 110px; }
body.at-table #app { padding-bottom: 0; }
body.at-table .page { flex: 1; display: flex; flex-direction: column; }
.top { display: none; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; margin: 0 -16px 12px; padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(180deg, rgba(14, 6, 41, .97), rgba(14, 6, 41, .82)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 215, 0, .14); }
.tb-logo { flex: none; display: block; line-height: 0; }
.tb-logo img { width: 56px; height: auto; display: block; }
.tb-title { flex: 1; min-width: 0; font: 700 1.05rem/1.05 var(--hand); }     /* never cut (Harel 5.11.2026): when the pills take the room it breaks into two lines */
.tb-title b { white-space: nowrap; }
.tb-title b { color: var(--gold); font-weight: 700; }
.tb-room { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.tb-room .code { font-weight: 700; font-size: 15px; }
.tb-room .code b { color: var(--gold); letter-spacing: .06em; }
.tb-room .round { font: 600 13px var(--font); color: var(--text-soft); }
.tb-end { flex: none; display: flex; align-items: center; gap: 8px; }
.tb-me { border: 0; background: none; padding: 0; line-height: 0; border-radius: 50%; }
.pill.coin { border: 1px solid rgba(255, 215, 0, .45); background: rgba(255, 215, 0, .1); color: var(--gold); font-weight: 800; border-radius: 999px; padding: 5px 11px; font-size: 15px; }

.tabbar { position: fixed; inset: auto 0 0 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(14, 6, 41, .96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 215, 0, .16); max-width: 640px; margin: 0 auto; border-radius: 20px 20px 0 0; }
.tabbar button { border: 0; background: none; color: var(--text-mute); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font: 600 12.5px var(--font); }
.tabbar .ic { font-size: 22px; line-height: 1; filter: grayscale(.6); transition: transform .2s; }
.tabbar button.on { color: var(--gold); background: rgba(255, 215, 0, .1); }
.tabbar button.on .ic { filter: none; transform: translateY(-2px) scale(1.12); }

/* avatar in its frame */
.avf { --s: 40px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; padding: calc(var(--s) * .08);
  background: var(--ring); box-shadow: 0 0 calc(var(--s) * .35) -2px var(--glow, transparent); vertical-align: middle; }
.avf-in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3a2378, #160a35); font-size: calc(var(--s) * .52); line-height: 1; }
.avf-deco { position: absolute; bottom: -4%; left: -6%; font-size: calc(var(--s) * .34); line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

/* sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 44; background: rgba(7, 3, 26, .7); backdrop-filter: blur(4px); animation: fade .2s; }
.sheet { position: fixed; z-index: 45; inset: auto 0 0 0; max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow-y: auto; padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #24104f, #140834); border-radius: 26px 26px 0 0; border: 1px solid rgba(255, 215, 0, .22); border-bottom: 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5);
  display: grid; gap: 12px; animation: up .3s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet h2 { margin: 0; text-align: center; }
.me-head { display: flex; gap: 14px; align-items: center; }
.me-head .grow { flex: 1; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .frames { grid-template-columns: repeat(4, 1fr); } }
.frames.mini { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.frames.mini button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,.05); }
.frames.mini button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .1); }
.frames.mini small { font-size: 12px; color: var(--text-soft); text-align: center; line-height: 1.2; }

/* play tab */
.brand.slim { margin: 8px 0 16px; }
.brand.slim h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.whoami { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 20px; border: 1px solid rgba(255, 215, 0, .25);
  background: linear-gradient(135deg, rgba(255, 215, 0, .08), rgba(124, 77, 255, .1)); text-align: right; }
.whoami > span:nth-child(2) { flex: 1; display: grid; }
.whoami small { color: var(--text-soft); font-size: 13px; }
.whoami b { font-size: 18px; }
.whoami .edit { color: var(--gold-warm); font-weight: 600; font-size: 14px; }
.rooms { display: grid; gap: 8px; }
.room-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.room-row .av { font-size: 28px; }
.room-row .grow { flex: 1; display: grid; }
.room-row small { color: var(--text-soft); }
.how-box summary { cursor: pointer; list-style: none; }
.how-box summary::-webkit-details-marker { display: none; }
.how-box summary h2 { display: inline; }
.how-box summary::after { content: " ▾"; color: var(--gold-warm); }
.how-box[open] summary { margin-bottom: 12px; }

/* shop */
.wallet { text-align: center; font-size: 20px; margin: -4px 0 14px; color: var(--gold); }
.wallet b { font-size: 28px; }
.frame-card { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.05); text-align: center; }
.frame-card b { font-size: 14px; line-height: 1.25; min-height: 2.5em; display: grid; place-items: center; }
.frame-card.on { border-color: var(--gold); background: rgba(255, 215, 0, .08); }
.frame-card .btn.small { min-height: 36px; padding: 4px 12px; }
.tag-on { font-size: 13px; font-weight: 700; color: var(--gold); padding: 7px 0; }
.price { font-weight: 700; color: var(--text-soft); padding: 7px 0; }
.gsi { display: flex; justify-content: center; min-height: 44px; }

/* board + history + menu */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid transparent; }
.lb li.me { border-color: var(--gold); }
.lb .pos { width: 30px; text-align: center; font-weight: 800; color: var(--text-soft); font-size: 18px; }
.lb .nm { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .sc { font-weight: 800; color: var(--gold); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h2 { margin: 0 0 4px; }
.profile-head .btn { margin-top: 10px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.hist li.won { background: rgba(255, 215, 0, .08); }
.hist .ic { font-size: 22px; }
.hist .grow { flex: 1; display: grid; }
.hist small { color: var(--text-soft); }
.menu { display: grid; gap: 8px; }
.menu > * { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); text-align: right; color: var(--text); text-decoration: none; }
.menu > * > span { grid-row: span 2; font-size: 24px; text-align: center; }
.menu small { color: var(--text-soft); }

/* table seats */
.players.seats .pl { gap: 6px; }
.players.seats { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
@media (min-width: 900px) { .players.seats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* answers as real cards */
.duo { display: flex; gap: 12px; justify-content: center; align-items: flex-start; flex-wrap: wrap; width: 100%; }
.duo .qcard { width: min(100%, 300px); }
.acards { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; justify-items: center; }
@media (max-width: 420px) { .acards { grid-template-columns: 1fr 1fr; gap: 10px; } }
.acards.small { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); opacity: .9; }
.acard { position: relative; width: 100%; max-width: 190px; aspect-ratio: 5 / 7; border: 0; padding: 0; background: none; text-align: right; font-family: inherit; display: block; }
button.acard { cursor: pointer; }
.acard .aw { position: absolute; inset: 0; border-radius: 14px; background: var(--paper); color: var(--ink); padding: 14px 12px 28px; font: 700 clamp(15px, 3.6vw, 18px)/1.3 var(--font);
  box-shadow: 0 12px 24px -12px #000, inset 0 0 0 1px rgba(29,18,54,.08); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.acard .aw::after { content: "🎈 קלפים נגד מעגליסטים"; position: absolute; bottom: 8px; right: 10px; font: 600 10px var(--font); opacity: .45; }
.acard.pair .aw { inset: 0 0 18% 14%; font-size: clamp(13px, 3.2vw, 15.5px); }
.acard.pair .aw:nth-child(2) { inset: 18% 14% 0 0; transform: rotate(4deg); }
.acard .aw i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #2a1600; font-size: 12px; margin-inline-end: 6px; vertical-align: 2px; }
.acard:hover .aw, .acard.sel .aw { transform: translateY(-6px); }
.acard.pair:hover .aw:nth-child(2), .acard.pair.sel .aw:nth-child(2) { transform: translateY(-6px) rotate(4deg); }
.acard.sel .aw { box-shadow: 0 0 0 4px var(--gold), 0 18px 30px -12px #000; }
.acard.win .aw { box-shadow: 0 0 0 4px var(--gold), 0 0 40px rgba(255, 215, 0, .45); }
.acard.mine { max-width: 170px; }
.acard.big { max-width: 230px; }
.acard.lose { opacity: .55; max-width: 140px; }
.duo .acard { width: 190px; flex: none; }
@media (max-width: 420px) { .duo .qcard { width: 100%; } .duo .acard { width: 46%; } }
.sentence { width: min(100%, 520px); background: rgba(255, 250, 240, .96); color: var(--ink); border-radius: 16px; padding: 12px 16px; font-weight: 600; line-height: 1.45; font-size: 16px; box-shadow: 0 10px 24px -14px #000; }
.sentence .q { color: #5a4a7a; font-weight: 500; }
.sentence .fill { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 58%, rgba(255, 215, 0, .55) 58%); }
.sentence .a { display: block; margin-top: 6px; font-weight: 800; }
.sentence.win { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px -10px rgba(255, 215, 0, .5); }
.sentence.reader { font-size: clamp(1.2rem, 4.8vw, 1.6rem); padding: 20px; }
.row.confirm { justify-content: center; }
.row.confirm .btn { min-width: 120px; }

/* game over */
.over-head { text-align: center; margin: 4px 0 8px; }
.over-head .eyebrow, .final .eyebrow { font: 600 15px var(--hand); color: var(--gold-warm); }
.over-head h1 { font: 700 clamp(2rem, 8vw, 3rem)/1.1 var(--hand); margin: 4px 0; }
.over-head h1 b { color: var(--gold); font-weight: 700; }
.over-head p { color: var(--text-soft); margin: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0 14px; }
.pod { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .step { width: 100%; display: grid; place-items: center; gap: 2px; border-radius: 14px 14px 4px 4px; padding: 10px 4px; background: linear-gradient(180deg, rgba(167, 139, 250, .35), rgba(46, 16, 101, .6)); border: 1px solid rgba(255,255,255,.14); }
.pod-1 .step { height: 120px; background: linear-gradient(180deg, #ffe45c, #d99a1e); color: #2a1600; border: 0; box-shadow: 0 0 40px rgba(255, 215, 0, .35); }
.pod-2 .step { height: 88px; }
.pod-3 .step { height: 66px; }
.pod .place { font: 800 26px/1 var(--font); }
.pod .sc { font-weight: 700; font-size: 14px; }
.pod-1 .avf { animation: float 2.4s ease-in-out infinite; }
.over .score-list { margin-bottom: 14px; }
.final { display: grid; justify-items: center; gap: 12px; margin: 22px 0 16px; }
.suggest-strip { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px dashed rgba(255, 215, 0, .4); background: rgba(255, 215, 0, .05); text-align: right; margin-top: 6px; }
.suggest-strip > span:first-child { font-size: 26px; }
.suggest-strip > span:nth-child(2) { flex: 1; display: grid; }
.suggest-strip small { color: var(--text-soft); }
.suggest-strip .go { color: var(--gold); font-size: 26px; }
.bar .btn.wait { flex: 1 1 auto; max-width: 420px; font-size: 15px; }

/* ================= v3 (29.10.2026, Harel's notes): clock, drop into the blank, seats holding cards ================= */
.cback { animation: none; }
.cback.new { animation: drop .35s ease-out both; }

/* the alarm clock */
.clock { --p: 1; position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; margin-top: 10px; }
.clock .face { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fffaf0 0 56%, transparent 57%), conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(255,255,255,.14) 0);
  box-shadow: 0 0 0 3px #3a2378, 0 6px 14px rgba(0,0,0,.45); }
.clock .face b { font: 800 14px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.clock .bell { position: absolute; top: -2px; right: 2px; width: 18px; height: 12px; border-radius: 18px 18px 4px 4px; background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-deep); transform: rotate(28deg); }
.clock .bell.r { right: auto; left: 2px; transform: rotate(-28deg); }
.clock .leg { position: absolute; bottom: -1px; right: 12px; width: 4px; height: 9px; border-radius: 3px; background: #3a2378; transform: rotate(-28deg); }
.clock .leg.r { right: auto; left: 12px; transform: rotate(28deg); }
.clock.low .face { background: radial-gradient(circle, #fffaf0 0 56%, transparent 57%), conic-gradient(#ff4d6d calc(var(--p) * 360deg), rgba(255,255,255,.14) 0); }
.clock.low { animation: ring .5s ease-in-out infinite; }
@keyframes ring { 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .clock.low { animation: none; } }

/* blanks you drop cards into */
.slot { display: inline-block; min-width: 4.2em; min-height: 1.5em; margin: 2px 2px; padding: 1px 10px; border-radius: 10px; vertical-align: middle;
  border: 2px dashed rgba(255, 215, 0, .55); background: rgba(255, 215, 0, .07); color: var(--gold); font-size: .8em; text-align: center; transition: background .15s, transform .15s; }
.slot.full { border-style: solid; border-color: var(--gold); background: var(--paper); color: var(--ink); font-size: .78em; cursor: pointer; text-align: right; }
body.dragging .slot:not(.full) { background: rgba(255, 215, 0, .22); animation: glowpulse 1s ease-in-out infinite; }
body.dragging .slot.full { box-shadow: 0 0 0 3px rgba(255, 215, 0, .4); }
.slot.hot { background: rgba(255, 215, 0, .45) !important; transform: scale(1.08); }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 5px rgba(255, 215, 0, .25); } }
.fcard.ghost { position: fixed; z-index: 60; pointer-events: none; opacity: .95; box-shadow: 0 20px 40px rgba(0,0,0,.55); transition: none; transform-origin: 50% 30%; }
.fcard.lifted { opacity: .35; }
body.dragging { user-select: none; touch-action: none; }
.fan:not(.down) .fcard { touch-action: none; }

/* phone hand: two rows, the back row raised more so its text shows */
.fan.two { height: calc(var(--cw) * 2.25 + 24px); }
.fan.down.two { transform: translateY(calc(var(--cw) * 1.8)); }
.fcard { font-size: calc(var(--cw) * .125); }

/* seats: everyone holds cards */
.players.seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
.players.seats .pl { flex-direction: column; gap: 3px; padding: 12px 6px 6px; width: 88px; min-width: 0; text-align: center; }
.players.seats .pl .nm { font-size: 13px; width: 100%; }
.players.seats .pl .sc { font-size: 13px; }
.players.seats .pl .tag { top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; }
.mh { position: relative; display: block; width: 34px; height: 18px; }
.mh i { position: absolute; bottom: 0; left: 50%; width: 12px; height: 17px; margin-left: -6px; border-radius: 3px; border: 1px solid rgba(255, 215, 0, .55);
  background: repeating-linear-gradient(45deg, #4c2a90 0 3px, #3b1f74 3px 6px); transform-origin: 50% 100%; }
.mh i:nth-child(1) { transform: rotate(-18deg); }
.mh i:nth-child(3) { transform: rotate(18deg); }
.mh.played i:nth-child(2) { transform: translateY(-7px); background: #2fbf71; border-color: #fff; }
.mh.judge { font-size: 16px; line-height: 18px; text-align: center; }

/* answer cards centred whatever their number */
.acards { display: flex; flex-wrap: wrap; justify-content: center; }
.acards .acard { width: 170px; flex: none; }
@media (max-width: 420px) { .acards .acard { width: calc(50% - 6px); } }
.acards.small .acard { width: 120px; }
@media (max-width: 400px) { .tb-title { font-size: .88rem; } }

/* v4: compact seats, clock in the corner of the table (phone fit) */
.players.seats .pl { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; width: 80px; padding: 10px 4px 5px; column-gap: 4px; row-gap: 2px; }
.players.seats .pl .avf { grid-column: 1 / -1; justify-self: center; }
.players.seats .pl .nm { grid-column: 1 / -1; font-size: 12.5px; }
.players.seats .mh { width: 24px; height: 15px; }
.players.seats .mh i { width: 10px; height: 14px; margin-left: -5px; }
.players.seats { gap: 10px 5px; margin-bottom: 8px; }
.felt { padding-top: 14px; }
.felt .status { padding: 0 64px; }
.felt .status strong { font-size: clamp(1.1rem, 4.4vw, 1.5rem); }
.felt .status span { font-size: 14px; }
.felt .clock { position: absolute; top: -4px; left: -58px; margin: 0; transform: scale(.9); }
.felt .status br { display: none; }
@media (min-width: 640px) { .felt .status { padding: 0 90px; } .felt .clock { left: -80px; transform: none; } }
.felt .clock { left: 0; top: -6px; }
@media (min-width: 640px) { .felt .clock { left: 6px; } }
html, body { overflow-x: clip; }
.panel.stack > strong, .panel.stack > span { display: block; }

/* v5: calmer lobby (29.10.2026) - room ticket, seats, setting tiles + one sheet per setting */
.lobby .ticket { display: flex; align-items: stretch; margin: 0 0 14px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 215, 0, .35);
  background: linear-gradient(135deg, rgba(255, 215, 0, .14), rgba(124, 77, 255, .14)); box-shadow: 0 14px 30px -18px #000; }
.ticket .tk-main { flex: 1; padding: 12px 16px; text-align: center; }
.ticket .tk-main small { color: var(--text-soft); font-weight: 600; }
.ticket .bigcode { font-size: clamp(2.6rem, 13vw, 3.6rem); margin: 0; }
.ticket .tk-side { flex: none; display: grid; border-inline-start: 2px dashed rgba(255, 215, 0, .35); }
.tk-btn { display: grid; place-items: center; align-content: center; gap: 2px; padding: 8px 18px; border: 0; background: none; color: var(--text); font: 700 13px var(--font); text-decoration: none; }
.tk-btn span { font-size: 22px; line-height: 1; }
.tk-btn.wa { background: rgba(37, 211, 102, .16); }
.tk-btn + .tk-btn { border-top: 1px solid rgba(255, 255, 255, .12); }

.lobby .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lobby .ph h2 { margin: 0; }
.lobby .count { color: var(--text-mute); font-size: 14px; font-weight: 600; }
.lseats { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 14px 8px; }
.lseat { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; background: none; border: 0; padding: 0; color: var(--text); }
.lseat b { font-size: 13.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lseat.me b { color: var(--gold); }
.lseat small { color: var(--text-mute); font-size: 11.5px; margin-top: -5px; }
.lav { position: relative; display: inline-grid; }
.lav .crown { position: absolute; top: -12px; right: 50%; transform: translateX(50%); font-size: 18px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.lav .botmark { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--violet); color: #fff; }
.lav .kick { position: absolute; top: -4px; left: -4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--text); font-size: 12px; line-height: 22px; padding: 0; }
.lav .agefor { position: absolute; bottom: -4px; left: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bg, #1a1030); background: #b3263a; color: #fff; font-size: 12px; line-height: 20px; padding: 0; animation: agepulse 1.6s ease-in-out infinite; }
@keyframes agepulse { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .lav .agefor { animation: none; } }
.lav .ghost { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.25); color: var(--text-mute); font-size: 24px; }
.lseat.empty b { color: var(--text-mute); }
.lseat.addbot .ghost { border-color: rgba(255, 215, 0, .5); }
.lseat.addbot:hover .ghost { background: rgba(255, 215, 0, .1); }
.fine { margin: 12px 0 0; color: var(--text-mute); font-size: 12.5px; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 12px 6px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); text-align: center; }
.tile:not([disabled]):hover { border-color: rgba(255, 215, 0, .5); background: rgba(255, 215, 0, .06); }
.tile[disabled] { opacity: 1; cursor: default; }
.ti-ic { font-size: 24px; line-height: 1.1; }
.tile b { font-size: 14px; line-height: 1.2; }
.tile small { color: var(--text-mute); font-size: 11.5px; line-height: 1.2; }

.choices { display: grid; gap: 8px; }
.choices button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); text-align: right; color: var(--text); }
.choices button > span:last-child { display: grid; }
.choices small { color: var(--text-soft); font-size: 13px; }
.choices button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .1); }
.choices .ti-ic { font-size: 28px; width: 36px; text-align: center; }
/* two-row hand on every screen: the table leaves room for it */
.felt { padding-bottom: 260px; }
@media (min-width: 640px) { .felt { padding-bottom: 390px; } }
.felt.phase-judge, .felt.phase-reveal { padding-bottom: 150px; }

/* the card in big: the answer once, inside the question */
.zq { font-size: clamp(1.25rem, 5.4vw, 1.6rem); padding: 22px 20px 40px; animation: lift .35s cubic-bezier(.2, 1.3, .4, 1); box-shadow: 0 0 0 2px rgba(255, 215, 0, .5), 0 30px 60px -20px #000; }
.zq .q { color: #fff; font-weight: 700; }
.zq .fill { display: inline; padding: 2px 10px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 800; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 0 0 0 3px var(--gold); }
.zq .a { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; box-shadow: 0 0 0 3px var(--gold); }
/* a lowered hand peeks out only a little, and buttons always sit above the cards */
.fan.down, .fan.down.two { transform: translateY(calc(100% - 46px)); }
.fan.down .fan-label { top: -24px; }
.bar { z-index: 8; }

/* drawn avatar icons */
.avf-in { overflow: hidden; }
.avf-in img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatars button { padding: 3px; overflow: hidden; }
.avatars button img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatars button[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--gold); }
.av-inline { width: 1.25em; height: 1.25em; border-radius: 50%; vertical-align: -0.25em; object-fit: cover; }

/* v6 (Yarden's notes, 29.10.2026) */
/* styled dialogs */
.dlg-bg { position: fixed; inset: 0; z-index: 70; background: rgba(7, 3, 26, .72); backdrop-filter: blur(4px); animation: fade .15s; }
.dlg { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 380px); padding: 22px 20px 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, #2a1360, #150938); border: 1px solid rgba(255, 215, 0, .35); box-shadow: 0 30px 70px rgba(0,0,0,.6); animation: pop .25s cubic-bezier(.2, 1.3, .4, 1); }
.dlg-ic { font-size: 42px; line-height: 1; margin-bottom: 6px; }
.dlg h3 { margin: 0 0 6px; font: 700 1.3rem/1.25 var(--hand); }
.dlg p { margin: 0 0 14px; color: var(--text-soft); line-height: 1.5; }
.dlg-btns { display: grid; gap: 8px; }
.dlg-btns .btn { width: 100%; }

/* home */
.whoami { padding: 8px 12px; margin-bottom: 12px; border-radius: 16px; }
.whoami b { font-size: 16px; }
.play-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.play-btns .btn.big { font-size: 17px; padding: 12px 8px; }
.how-btn { width: 100%; padding: 12px; border-radius: 16px; border: 1px dashed rgba(255, 215, 0, .4); background: none; color: var(--gold-warm); font-weight: 700; font-size: 16px; }
.codein { direction: ltr; text-align: center; letter-spacing: .4em; font: 800 34px var(--font); padding: 12px; }

/* locked avatars */
.avatars button { position: relative; }
.avatars button.locked img { filter: grayscale(.85) brightness(.55); }
.avatars .lock { position: absolute; inset: auto 0 2px 0; font-size: 10px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 3px #000; text-align: center; }

/* host: join requests; spectator bar */
.reqs { display: grid; gap: 6px; margin: 0 0 10px; }
.req { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .4); }
.req .grow { flex: 1; font-size: 14px; }
.bar.spec .btn { max-width: 420px; }

/* reveal: who played what */
.byc { margin: 0; display: grid; justify-items: center; gap: 4px; }
.byc figcaption { font: 700 13px var(--font); color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.duo .byc .acard { width: 190px; }
.acards.small .byc { width: 120px; }
.acards.small .byc .acard { width: 100%; max-width: none; }
@media (max-width: 420px) { .duo .byc { width: 46%; } .duo .byc .acard { width: 100%; } }

/* phones: the hand is a grid, nothing covers the text */
.fan.grid .fcard { height: var(--ch); bottom: 4px; font-size: 12.5px; line-height: 1.25; padding: 7px 7px; transform-origin: 50% 50%; border-radius: 10px; }
.fan.grid .fcard .ft { -webkit-line-clamp: 6; }
.fan.grid .fcard::after { display: none; }
.fan.grid .fcard.sel { z-index: 30 !important; }
.fan.grid .fan-label { top: -22px; }
body.at-table .felt { padding-bottom: calc(var(--handH, 240px) + 24px); }
body.at-table .felt.phase-judge, body.at-table .felt.phase-reveal { padding-bottom: 150px; }
@media (min-width: 640px) { body.at-table .felt { padding-bottom: 390px; } }

/* many players on a phone: smaller seats so the table stays in view */
@media (max-width: 480px) {
  .players.seats { gap: 8px 4px; }
  .players.seats .pl { width: 64px; padding: 9px 2px 4px; }
  .players.seats .pl .nm { font-size: 11px; }
  .players.seats .pl .tag { font-size: 9.5px; padding: 0 5px; }
  .players.seats .mh { display: none; }
}

/* songbook characters */
.sheet .avatars { max-height: 46dvh; overflow-y: auto; padding: 2px; }
.shop-h { margin: 18px 0 10px; font-size: 1.15rem; }

/* v7 (Daniel's notes with many players, 29.10.2026) */
/* top bar in a game: my balloons + the chat */
.pill.score { border: 1px solid rgba(255, 215, 0, .45); background: rgba(255, 215, 0, .1); color: var(--gold); border-radius: 999px; padding: 4px 9px; font-size: 14px; white-space: nowrap; }
.pill.score b { font-size: 16px; }
.tb-chat { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); font-size: 19px; display: grid; place-items: center; padding: 0; }
.tb-chat .badge { position: absolute; top: -4px; left: -4px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: #ff4d6d; color: #fff; font: 800 11px/19px var(--font); }
.tb-end { gap: 6px; }
@media (max-width: 420px) { .topbar .tb-logo img { width: 52px; height: auto; } .tb-end .btn.small { padding: 6px 10px; } }

/* every player in one row, whatever the number */
.players.seats.one-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 5px; margin: 6px 0 10px; }
.players.seats.one-row .pl { flex: 0 1 92px; width: auto; min-width: 0; padding: 11px 3px 5px; }
.players.seats.one-row .pl .avf { --s: unset; }
.players.seats.one-row .pl .nm { font-size: 12px; }
.players.seats.tight .pl { padding: 9px 1px 4px; border-radius: 10px; }
.players.seats.tight .pl .nm { font-size: 10px; }
.players.seats.tight .pl .sc { font-size: 11px; }
.players.seats.tight .pl .tag { font-size: 10px; padding: 0 4px; top: -8px; }
.players.seats.tight .mh { display: none; }
/* a speech bubble over whoever just wrote in the chat */
.pl .say, .lseat .say { position: absolute; z-index: 40; bottom: calc(100% + 8px); width: max-content; max-width: 170px; padding: 6px 10px; border-radius: 14px; background: #fff; color: var(--ink);
  font: 700 13px/1.3 var(--font); text-align: right; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); pointer-events: none; animation: say 6.5s ease both; }
.pl .say::after, .lseat .say::after { content: ''; position: absolute; top: 100%; border: 7px solid transparent; border-top-color: #fff; }
.pl .say-c, .lseat .say-c { left: 50%; transform: translateX(-50%); }
.pl .say-c::after, .lseat .say-c::after { left: calc(50% - 7px); }
.pl .say-r, .lseat .say-r { right: 0; }
.pl .say-r::after, .lseat .say-r::after { right: 12px; }
.pl .say-l, .lseat .say-l { left: 0; }
.pl .say-l::after, .lseat .say-l::after { left: 12px; }
@keyframes say { 0% { opacity: 0; translate: 0 8px; } 5%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -6px; } }
.players.seats { position: relative; z-index: 31; }

/* the chat sheet */
.chat-log { display: grid; gap: 8px; max-height: 44dvh; min-height: 120px; overflow-y: auto; padding: 4px 2px; margin: 12px 0 8px; align-content: start; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg .bub { display: grid; gap: 1px; max-width: 78%; padding: 7px 11px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .09); border: 1px solid var(--line); }
.msg .bub b { font-size: 12px; color: var(--gold-warm); }
.msg .bub span { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bub { background: rgba(124, 77, 255, .3); border-color: rgba(124, 77, 255, .5); border-radius: 16px 16px 4px 16px; }
.chat-empty { margin: 30px 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.quick button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font-size: 20px; padding: 0; }
.chat-form { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-form .field { flex: 1; min-width: 0; }

/* home: both buttons on one line of text */
.play-btns .btn.big { font-size: clamp(14px, 3.9vw, 17px); padding: 12px 6px; white-space: nowrap; }

/* new room: all the settings before opening */
.cset { margin-top: 12px; }
.cset .lbl { display: block; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { flex: 1 1 auto; padding: 8px 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chips button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .12); color: var(--gold-warm); }
.cset .hint { display: block; margin-top: 4px; color: var(--text-soft); font-size: 12.5px; }
.sheet .fine.center { text-align: center; margin: 12px 0 8px; }

/* the hand label never mixes with the table text */
.fan-label > span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(20, 8, 52, .92); border: 1px solid var(--line); text-shadow: none; }
.fan.grid .fan-label { top: -26px; }
.fan.grid .fcard { font-size: var(--fs, 12.5px); padding: 6px 6px; }
.fan.grid .fcard .ft { -webkit-line-clamp: 6; }

/* answers on the table: three in a row on a phone */
@media (max-width: 480px) {
  .acards { gap: 8px; }
  .acards .acard { width: calc(33.333% - 6px); }
  .acards .acard .aw { font-size: 13px; padding: 9px 8px 20px; }
  .acards .acard .aw::after { display: none; }
  .acards .acard.pair .aw { font-size: 12px; }
  .acards.small .byc { width: calc(33.333% - 6px); }
  .acards.small .byc figcaption { font-size: 11.5px; }
}
@media (min-width: 481px) { .acards.small .byc { width: 130px; } }

/* the whole text on every card (fitCards shrinks long ones) */
.fcard .ft, .fan.grid .fcard .ft { display: block; -webkit-line-clamp: unset; overflow: visible; }
.acard .aw { overflow: hidden; }

/* ready-made chat messages */
.quick.phrases button { width: auto; height: auto; border-radius: 999px; padding: 6px 12px; font: 700 14px var(--font); color: var(--text); }

.chips { display: grid; grid-template-columns: repeat(var(--c, 2), 1fr); }
.chips button { padding: 8px 4px; font-size: 13.5px; white-space: normal; line-height: 1.2; }
/* the bubble is seen from its first frame; the animation only pops it in and fades it at the end */
@keyframes say { 0% { scale: .7; } 6% { scale: 1.06; } 10%, 85% { scale: 1; opacity: 1; } 100% { scale: .95; opacity: 0; } }
.pl .say-c { transform-origin: 50% 100%; }
@media (max-width: 480px) { .acards .acard:not(.pair) { aspect-ratio: 5 / 6; } .acards.small .acard:not(.pair) { aspect-ratio: 1 / 1; } }

/* ===================== v8: motion everywhere (29.10.2026) =====================
   One-shot effects come from fx in klafim.js: a class while the effect is fresh, --fd / --ph / --pg = how far it already ran,
   so a redraw in the middle continues the animation instead of starting it again. Springs overshoot a little. */
:root { --spring: cubic-bezier(.2, 1.45, .4, 1); --snap: cubic-bezier(.3, 1.25, .5, 1); --out: cubic-bezier(.16, 1, .3, 1); }

/* sheets, the big card and dialogs animate only when they open (not on every redraw) */
.sheet, .sheet-bg, .zoom, .zq, .zcard, .dlg, .dlg-bg { animation: none; }
body.fx-sheet .sheet { animation: up .38s var(--spring) both; }
body.fx-sheet .sheet-bg { animation: fade .25s both; }
body.fx-zoom .zoom { animation: fade .2s both; }
body.fx-zoom .zq, body.fx-zoom .zcard { animation: lift .45s var(--spring) both; }
body.fx-dlg .dlg { animation: pop .3s var(--spring) both; }
body.fx-dlg .dlg-bg { animation: fade .2s both; }
@keyframes up { from { translate: 0 100%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { scale: .7; opacity: 0; } }
@keyframes lift { from { translate: 0 60px; scale: .85; rotate: -4deg; opacity: 0; } }

/* the toast drops in */
.toast.in { animation: toastIn .45s var(--spring) both; }
@keyframes toastIn { from { translate: 0 -40px; scale: .9; opacity: 0; } }

/* buttons: a squash when pressed, the main button has a soft shine passing */
.btn, .tile, .chips button, .quick button, .tb-chat, .lseat.addbot { transition: transform .15s var(--snap), background .2s, border-color .2s; }
.btn:active, .tile:active, .chips button:active, .quick button:active, .tb-chat:active { transform: scale(.94); }
.chips button[aria-pressed="true"], .choices button[aria-pressed="true"] { animation: chosen .35s var(--spring); }
@keyframes chosen { 40% { scale: 1.06; } }
.bar .btn.go:not([disabled]) { position: relative; overflow: hidden; }
.bar .btn.go:not([disabled])::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -120% 0; animation: shine 3.2s ease-in-out infinite 1s; pointer-events: none; }
@keyframes shine { 0%, 60% { translate: -120% 0; } 100% { translate: 120% 0; } }

/* tabs: the page slides up in steps */
body.fx-page .page > .wrap > * { animation: rise .55s var(--out) both; animation-delay: calc(var(--pg, 0ms) + var(--n, 0) * 60ms); }
body.fx-page .page > .wrap > *:nth-child(2) { --n: 1; } body.fx-page .page > .wrap > *:nth-child(3) { --n: 2; }
body.fx-page .page > .wrap > *:nth-child(4) { --n: 3; } body.fx-page .page > .wrap > *:nth-child(n+5) { --n: 4; }
@keyframes rise { from { translate: 0 22px; opacity: 0; } }

/* ---------- a new phase: the table moves ---------- */
body.fx-ph .felt .status { animation: rise .5s var(--out) both; animation-delay: var(--ph); }
/* the question card is flipped over from its back */
body.fx-ph .phase-submit .qcard { animation: flipIn .75s var(--spring) both; animation-delay: calc(var(--ph) + 120ms); }
@keyframes flipIn { 0% { rotate: y 100deg; scale: .6; translate: 0 -40px; opacity: 0; } 40% { opacity: 1; } }
/* the judge's seat bounces at the start of a round */
body.fx-ph .pl.czar { animation: czarIn .7s var(--spring) both; animation-delay: calc(var(--ph) + 300ms); }
@keyframes czarIn { 0% { scale: 1; } 35% { scale: 1.15; translate: 0 -6px; } }
/* judging: the answers turn over one after another */
body.fx-ph .phase-judge .acards .acard { animation: turnOver .6s var(--spring) both; animation-delay: calc(var(--ph) + 150ms + var(--i, 0) * 110ms); }
@keyframes turnOver { 0% { rotate: y 180deg; scale: .7; opacity: 0; filter: brightness(.4); } 50% { opacity: 1; } }
/* the hand drops when it is not my turn, and comes back up when it is */
body.fx-ph .fan.down { animation: handDown .55s var(--out) both; animation-delay: var(--ph); }
body.fx-ph .fan:not(.down) { animation: handUp .6s var(--spring) both; animation-delay: var(--ph); }
@keyframes handDown { from { translate: 0 calc(-100% + 46px); } }
@keyframes handUp { from { translate: 0 60%; } }

/* ---------- the hand: new cards are dealt one after another, from below, with a spin ---------- */
.fcard.deal { animation: deal .6s var(--spring) both; animation-delay: calc(var(--fd, 0ms) + 200ms + var(--k, 0) * 70ms); }
@keyframes deal { 0% { translate: 0 120vh; rotate: 35deg; opacity: 0; } 60% { opacity: 1; } }

/* a card dropped into the blank lands with a squash */
.slot.landed { animation: land .5s var(--spring) both; animation-delay: var(--fd, 0ms); }
@keyframes land { 0% { scale: 1.5; translate: 0 -30px; opacity: 0; } 45% { scale: .9 1.1; opacity: 1; } 70% { scale: 1.05 .95; } }
/* my card flies onto the table */
.acard.thrown { animation: throw .75s var(--spring) both; animation-delay: var(--fd, 0ms); }
@keyframes throw { 0% { translate: 0 70vh; rotate: -25deg; scale: .8; } 70% { rotate: 4deg; } }
/* the face-down pile: a new card slides in spinning */
.cback.new { animation: dropIn .5s var(--spring) both; }
@keyframes dropIn { from { translate: 0 -90px; rotate: 160deg; opacity: 0; } }

/* the judge taps an answer: it jumps */
.acard.picked { animation: picked .45s var(--spring); animation-delay: var(--fd, 0ms); }
@keyframes picked { 0% { scale: 1; } 30% { scale: .92 1.06; } 60% { scale: 1.08; } }
.acard.sel .aw { transition: transform .25s var(--spring), box-shadow .25s; }

/* ---------- the winner ---------- */
.winbox { position: relative; width: min(100%, 520px); display: grid; place-items: center; margin: 4px 0; }
.winbox .sentence.win { position: relative; z-index: 1; font-size: clamp(1.1rem, 4.4vw, 1.45rem); padding: 16px 18px; }
.winbox .rays { position: absolute; inset: -40% -10%; z-index: 0; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 0, .35) 0 8deg, transparent 8deg 22deg); mask: radial-gradient(closest-side, #000 30%, transparent); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { to { rotate: 1turn; } }
body.fx-ph .phase-reveal .winbox .sentence.win { animation: stamp .7s var(--spring) both; animation-delay: calc(var(--ph) + 100ms); }
@keyframes stamp { 0% { scale: 2.2; rotate: -8deg; opacity: 0; } 55% { scale: .94; rotate: 1deg; opacity: 1; } 75% { scale: 1.03; } }
body.fx-ph .phase-reveal .winbox .rays { animation: raysIn 1s var(--out) both, spinSlow 14s linear infinite; animation-delay: calc(var(--ph) + 300ms), 0s; }
@keyframes raysIn { from { scale: .2; opacity: 0; } }
body.fx-ph .phase-reveal .byc { animation: rise .5s var(--out) both; animation-delay: calc(var(--ph) + 700ms + var(--i, 0) * 80ms); }
.others-h { font-size: 14px; }
/* the winner's seat: +1 balloon floats up, the score jumps */
.pl.bump { animation: seatBump .7s var(--spring); animation-delay: var(--fd, 0ms); z-index: 2; }
@keyframes seatBump { 0% { scale: 1; } 25% { scale: 1.22; translate: 0 -6px; box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255,215,0,.6); } 100% { box-shadow: none; } }
.pl .plus1 { position: absolute; z-index: 41; left: 50%; top: 0; translate: -50% 0; font: 800 15px var(--font); color: var(--gold); text-shadow: 0 2px 6px #000; pointer-events: none; white-space: nowrap;
  animation: plus1 1.6s var(--out) both; animation-delay: var(--fd, 0ms); }
@keyframes plus1 { 0% { translate: -50% 10px; scale: .4; opacity: 0; } 20% { scale: 1.3; opacity: 1; } 70% { opacity: 1; } 100% { translate: -50% -46px; scale: 1; opacity: 0; } }
.pill.score.bump { animation: pillBump .8s var(--spring); animation-delay: var(--fd, 0ms); }
@keyframes pillBump { 30% { scale: 1.35; box-shadow: 0 0 24px rgba(255, 215, 0, .8); } }
/* someone just played: their seat nods and the check pops */
.pl.justplayed { animation: nod .6s var(--spring); animation-delay: var(--fd, 0ms); }
@keyframes nod { 30% { translate: 0 -8px; scale: 1.08; } 60% { translate: 0 2px; } }
.pl.justplayed .tag { animation: pop .45s var(--spring) both; animation-delay: var(--fd, 0ms); }
/* a new player arrives */
.pl.arrive, .lseat.arrive { animation: arrive .7s var(--spring) both; animation-delay: var(--fd, 0ms); }
@keyframes arrive { 0% { scale: 0; rotate: -30deg; opacity: 0; } 60% { opacity: 1; } }

/* lobby: seats and setting tiles come in one by one */
body.fx-ph .lobby .lseat, body.fx-ph .lobby .tile { animation: pop .5s var(--spring) both; animation-delay: calc(var(--ph) + 150ms + var(--i, 0) * 60ms); }
body.fx-ph .lobby .ticket { animation: rise .6s var(--out) both; animation-delay: var(--ph); }
body.fx-ph .lobby .bigcode { animation: codeIn .9s var(--spring) both; animation-delay: calc(var(--ph) + 200ms); }
@keyframes codeIn { 0% { letter-spacing: .6em; opacity: 0; filter: blur(6px); } }
.lseat { position: relative; }

/* the end: the podium rises 3rd, 2nd, 1st, the title lands */
body.fx-ph .over .over-head h1 { animation: stamp .8s var(--spring) both; animation-delay: calc(var(--ph) + 900ms); }
body.fx-ph .over .over-head .eyebrow { animation: rise .5s var(--out) both; animation-delay: var(--ph); }
body.fx-ph .over .pod .step { animation: grow .7s var(--spring) both; transform-origin: 50% 100%; animation-delay: calc(var(--ph) + 200ms + var(--i, 0) * 280ms); }
body.fx-ph .over .pod .avf, body.fx-ph .over .pod b { animation: dropIn .6s var(--spring) both; animation-delay: calc(var(--ph) + 500ms + var(--i, 0) * 280ms); }
@keyframes grow { from { scale: 1 0; } }
body.fx-ph .over .score-list li { animation: rise .45s var(--out) both; animation-delay: calc(var(--ph) + 1200ms); }

/* chat: the badge pops, spectators' messages float under the top bar */
.tb-chat .badge.pop { animation: pop .45s var(--spring) both; animation-delay: var(--fd, 0ms); }
.spec-says { position: fixed; z-index: 42; top: 76px; left: 50%; translate: -50% 0; display: grid; gap: 6px; width: min(92vw, 380px); pointer-events: none; }
.spec-say { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.45);
  font: 600 14px/1.3 var(--font); animation: say 6.5s ease both; }
.spec-say b { color: #6b3fd6; }

/* frames that spin */
.avf.spin { background: none; isolation: isolate; }
.avf.spin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring); z-index: -1; animation: spinSlow 3s linear infinite; }

/* profile: the avatar is the button that changes it */
.av-edit { position: relative; flex: none; background: none; border: 0; padding: 0; border-radius: 50%; }
.av-edit .pen { position: absolute; bottom: 2px; left: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 15px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.av-edit:active { transform: scale(.95); }
/* the save button of the avatar sheet always in sight */
.sheet [data-do="save-me"] { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 20px rgba(14, 6, 41, .9); }
.avatars button.taken { opacity: .45; }
.avatars button.taken img { filter: grayscale(1); }
.pill.pts { border: 1px solid rgba(167, 139, 250, .5); background: rgba(124, 77, 255, .14); color: #e3d8ff; font-weight: 800; border-radius: 999px; padding: 5px 10px; font-size: 14px; }

/* pick-2 answers: the two cards side by side, never on top of each other */
.acard.pair { aspect-ratio: auto; display: flex; gap: 5px; }
.acard.pair .aw, .acard.pair .aw:nth-child(2) { position: relative; inset: auto; flex: 1 1 0; min-width: 0; transform: none; min-height: 96px; padding-bottom: 12px; }
.acard.pair .aw::after { display: none; }
.acard.pair:hover .aw:nth-child(2), .acard.pair.sel .aw:nth-child(2) { transform: translateY(-6px); }
.acards .acard.pair { width: calc(66.666% - 6px); max-width: 360px; }
.duo .acard.pair { width: min(100%, 300px); }

/* phones: the table fits the screen, no scrolling */
@media (max-width: 480px) {
  .acards .acard:not(.pair) { aspect-ratio: auto; min-height: 72px; }
  .acards .acard:not(.pair) .aw { position: relative; inset: auto; min-height: 72px; height: 100%; }
  .acards .acard.pair { width: 100%; }
  .acards .acard.pair .aw { min-height: 64px; font-size: 12.5px; }
  .felt { padding-top: 10px; }
  .felt .status { margin-bottom: 8px; }
  .felt .status strong { font-size: clamp(1rem, 4.6vw, 1.3rem); }
  .felt .status span { font-size: 12.5px; }
  .table-body { gap: 10px; }
  .card.black { font-size: clamp(1.05rem, 4.6vw, 1.3rem); padding: 12px 14px 28px; }
  .pile { height: 70px; transform: scale(.8); margin: -8px 0; }
  .duo { gap: 8px; }
}
@media (max-width: 480px) and (max-height: 760px) {
  .phase-submit .status > span:not(.clock) { display: none; }
  .players.seats.one-row { margin: 2px 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body [class] { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .say, .spec-say { animation-duration: 6.5s !important; }
  .avf.spin::before, .winbox .rays { animation: none !important; }
}

.lseat .say { bottom: auto; top: -30px; }

/* top bar in a room: "חדר 4065" and "סיבוב 1" never break inside */
.tb-room .code, .tb-room .round { white-space: nowrap; }
/* the winner screen leaves only the room the button needs */
@media (max-width: 480px) { body.at-table .felt.phase-reveal { padding-bottom: 84px; } }

/* the card editor */
.editor .kind { margin-bottom: 10px; }
.ed-packs { margin-bottom: 10px; }
.ed-packs button { display: grid; gap: 1px; font-size: 13px; padding: 6px 2px; }
.ed-packs small { font-weight: 600; opacity: .7; font-size: 11.5px; }
.ed-tools { display: flex; gap: 8px; margin-bottom: 12px; position: sticky; top: 64px; z-index: 5; padding: 6px 0; background: var(--night-950); }
.ed-tools .field { flex: 1; min-width: 0; padding: 10px 12px; }
.ed-tools .btn { flex: none; min-height: 46px; padding: 8px 14px; font-size: 15px; }
.ed-list { display: grid; gap: 8px; }
.ed-card { display: grid; gap: 6px; text-align: right; padding: 12px 14px; border-radius: 14px; font: 700 15.5px/1.4 var(--font); border: 1px solid transparent; }
.ed-card.black { background: linear-gradient(160deg, #1b1033, #07031a); color: #fff; border-color: rgba(255, 215, 0, .3); }
.ed-card.white { background: var(--paper); color: var(--ink); }
.ed-card.off { opacity: .45; }
.ed-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-k { font: 700 11.5px var(--font); padding: 2px 8px; border-radius: 999px; background: rgba(124, 77, 255, .25); }
.ed-card.white .ed-k { background: #ece4ff; color: #4b2aa8; }
.ed-k.k-c { background: rgba(255, 122, 198, .3); } .ed-k.k-d { background: rgba(79, 168, 255, .3); }
.ed-card .pen { margin-inline-start: auto; font-size: 14px; }
.ed-card:active { transform: scale(.98); }

/* v9 (Harel 30.10.2026): room and round on one line; a player's card; names in the shop */
.tb-room { flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.tb-room .code { font-size: 14px; }
.tb-room .round { font-size: 12.5px; }
.tb-room .round::before { content: '·'; margin-inline-end: 6px; color: var(--text-mute); }
@media (max-width: 380px) { .tb-room .round:nth-child(3) { display: none; } }
[data-who] { cursor: pointer; }
.who-head { display: grid; justify-items: center; gap: 6px; text-align: center; }
.who-head h2 { margin: 4px 0 0; }
.who-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.who-stats > div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.who-stats b { font: 800 1.6rem/1.1 var(--font); color: var(--gold); }
.who-stats small { color: var(--text-soft); font-size: 12.5px; }
body.fx-sheet .who-stats > div { animation: pop .45s var(--spring) both; }
body.fx-sheet .who-stats > div:nth-child(2) { animation-delay: 70ms; } body.fx-sheet .who-stats > div:nth-child(3) { animation-delay: 140ms; } body.fx-sheet .who-stats > div:nth-child(4) { animation-delay: 210ms; }
.frame-card b { font-size: 13px; line-height: 1.25; text-align: center; min-height: 2.5em; display: grid; place-items: center; }

/* how coins are earned */
.earn { display: grid; gap: 8px; }
.earn > div { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.earn span { grid-row: 1 / 3; font-size: 28px; text-align: center; }
.earn b { font-size: 16px; } .earn small { grid-column: 2; color: var(--text-soft); font-size: 13px; }
.earn em { grid-row: 1 / 3; grid-column: 3; font: 800 15px var(--font); color: var(--gold); font-style: normal; white-space: nowrap; }
.rules-box { padding: 10px 14px; border-radius: 16px; background: rgba(124, 77, 255, .1); border: 1px solid rgba(167, 139, 250, .3); }
.rules-box ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
body.fx-sheet .earn > div { animation: rise .45s var(--out) both; } body.fx-sheet .earn > div:nth-child(2) { animation-delay: 80ms; } body.fx-sheet .earn > div:nth-child(3) { animation-delay: 160ms; }

/* ===== richer frames (30.10.2026): a thicker ring with a gloss, a dark gap and a thin gold line before the picture;
   frames from 150 coins get a second sticker, from 300 a light that runs around the ring; some frames have their own life ===== */
.avf.has-fr { padding: calc(var(--s) * .11); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 calc(var(--s) * .04) calc(var(--s) * .12) rgba(0, 0, 0, .45), 0 0 calc(var(--s) * .4) -2px var(--glow, transparent); }
.avf.has-fr::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 32% 20%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 30%), radial-gradient(circle at 70% 88%, rgba(0, 0, 0, .4), transparent 45%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .11), #000 calc(100% - var(--s) * .11 + 1px));
          mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .11), #000 calc(100% - var(--s) * .11 + 1px)); }
.avf.has-fr .avf-in { position: relative; z-index: 2; box-shadow: 0 0 0 calc(var(--s) * .02 + .5px) rgba(14, 6, 41, .95), 0 0 0 calc(var(--s) * .035 + 1px) rgba(255, 232, 160, .6), inset 0 calc(var(--s) * .05) calc(var(--s) * .12) rgba(0, 0, 0, .45); }
.avf-deco { z-index: 3; }
.avf-deco.b { bottom: auto; left: auto; top: -6%; right: -6%; font-size: calc(var(--s) * .26); }
/* the light that runs around expensive frames */
.avf-shine { position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(255, 255, 255, .85) 86%, transparent 94%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .11), #000 calc(100% - var(--s) * .11 + 1px));
          mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .11), #000 calc(100% - var(--s) * .11 + 1px));
  animation: spinSlow 3.6s linear infinite; mix-blend-mode: screen; }
.avf.spin.has-fr::before { z-index: 0; }

/* each frame its own touch */
.fr-gold { background: conic-gradient(from 200deg, #fff5c2, #ffd700, #b8860b, #ffe680, #d99a1e, #fff5c2); }
.fr-balloons .avf-deco { animation: bob 2.4s ease-in-out infinite; }
.fr-snow { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 calc(var(--s) * .35) rgba(191, 227, 255, .7) !important; }
.fr-snow .avf-deco { animation: spinSlow 8s linear infinite; }
.fr-ocean { background: repeating-conic-gradient(from 0deg, #0bb4c9 0 15deg, #2569c5 15deg 30deg, #6ee7d8 30deg 45deg); }
.fr-ocean .avf-deco { animation: bob 2s ease-in-out infinite; }
.fr-rose .avf-deco, .fr-lanterns .avf-deco { animation: bob 2.6s ease-in-out infinite; }
.fr-lanterns { animation: flicker 2.2s ease-in-out infinite; }
.fr-villain { animation: villain 1.8s ease-in-out infinite; }
.fr-crown .avf-deco:not(.b) { left: 50%; bottom: auto; top: -30%; translate: -50% 0; font-size: calc(var(--s) * .42); animation: bob 2.8s ease-in-out infinite; }
.fr-crown .avf-deco.b { top: auto; bottom: -4%; right: -4%; }
.fr-tuba .avf-deco { animation: toot 3s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes bob { 50% { translate: 0 calc(var(--s) * -.05); } }
@keyframes toot { 0%, 70%, 100% { rotate: 0deg; } 80% { rotate: -14deg; } 90% { rotate: 8deg; } }
@keyframes flicker { 0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 calc(var(--s) * .3) rgba(255, 179, 71, .6); } 45% { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 calc(var(--s) * .5) rgba(255, 179, 71, .95); } 60% { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 calc(var(--s) * .25) rgba(255, 179, 71, .5); } }
@keyframes villain { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 calc(var(--s) * .55) rgba(57, 255, 20, .9); } }
.fr-crown .avf-deco:not(.b) { translate: -50% 0; }
@keyframes bobCrown { 50% { translate: -50% calc(var(--s) * -.05); } }
.fr-crown .avf-deco:not(.b) { animation-name: bobCrown; }
@media (prefers-reduced-motion: reduce) { .avf-shine, .avf-deco, .fr-lanterns, .fr-villain { animation: none !important; } }
/* the shop shows frames big, so the details are seen */
.frame-card .avf.has-fr { margin-top: 6px; }

/* ===== new room (30.10.2026): big choices, folded rules, a switch, an X ===== */
.sheet { scrollbar-width: none; position: fixed; }
.sheet::-webkit-scrollbar { display: none; }
.sheet-x { position: absolute; top: 12px; left: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08);
  color: var(--text); font-size: 16px; display: grid; place-items: center; padding: 0; transition: transform .15s var(--snap), background .2s; }
.sheet-x:active { transform: scale(.9); } .sheet-x:hover { background: rgba(255, 255, 255, .16); }
.sheet h2 { padding: 0 44px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-cards button { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 10px 12px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); }
.mode-cards .mc-ic { font-size: 34px; line-height: 1.1; }
.mode-cards b { font-size: 15.5px; }
.mode-cards small { color: var(--text-soft); font-size: 12px; line-height: 1.35; }
.mode-cards button[aria-pressed="true"], .pack-decks button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 215, 0, .1); box-shadow: 0 0 0 3px rgba(255, 215, 0, .15); animation: chosen .35s var(--spring); }
.pack-decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack-decks button { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.pack-decks b { font-size: 14.5px; }
.deck { position: relative; width: 46px; height: 58px; }
.deck i { position: absolute; inset: 0; border-radius: 7px; background: var(--paper); border: 1.5px solid rgba(29, 18, 54, .25); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.deck i:nth-child(1) { rotate: -12deg; translate: -6px 2px; background: #efe6d2; }
.deck i:nth-child(2) { rotate: 8deg; translate: 6px 1px; background: #f6efdf; }
.deck i:nth-child(3) { display: grid; place-items: center; background: linear-gradient(160deg, #2a1360, #0e0629); border-color: rgba(255, 215, 0, .5); font-size: 22px; }
.pack-decks button[aria-pressed="true"] .deck i:nth-child(1) { rotate: -18deg; translate: -10px 0; }
.pack-decks button[aria-pressed="true"] .deck i:nth-child(2) { rotate: 14deg; translate: 10px -1px; }
.deck i { transition: rotate .3s var(--spring), translate .3s var(--spring); }
.rules-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); font-size: 14.5px; }
.rules-line b { color: var(--gold-warm); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rules-open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; animation: rise .35s var(--out); }
@media (max-width: 380px) { .rules-open { grid-template-columns: 1fr; } }
.rule-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.rule-h small { color: var(--text-mute); font-size: 12px; }
.segc { display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.segc button { flex: 1; min-width: 0; padding: 8px 2px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.segc button[aria-pressed="true"] { background: var(--gold); color: #2a1600; box-shadow: 0 2px 8px rgba(255, 200, 0, .35); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer; }
.toggle-row span { display: grid; }
.toggle-row b { font-size: 15px; } .toggle-row small { color: var(--text-soft); font-size: 12.5px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: right .3s var(--spring); }
.switch:checked { background: #2fbf71; }
.switch:checked::after { right: 23px; }

/* ===== home (30.10.2026 review): cards in the hero, one clear action, code inline, a living rooms area ===== */
svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.home .hero { text-align: center; margin: 4px 0 12px; }
.home .hero h1 { font: 700 clamp(1.9rem, 8vw, 3rem)/1.05 var(--hand); margin: 0 0 14px; }
.home .hero h1 b { color: var(--gold); font-weight: 700; }
.hero-cards { position: relative; width: min(100%, 330px); height: 180px; margin: 0 auto; }
.hc { position: absolute; border-radius: 16px; text-align: right; font-weight: 700; line-height: 1.35; padding: 14px 16px 30px; box-shadow: 0 18px 34px -14px #000; }
.hc.black { inset: 0 0 auto 18%; min-height: 150px; background: linear-gradient(160deg, #1b1033, #07031a); color: #fff; border: 1px solid rgba(255, 215, 0, .4); font-size: clamp(1rem, 4.4vw, 1.2rem); rotate: 2deg; z-index: 2; }
.hc-blank { display: inline; padding: 1px 8px; margin: 0 2px; border-radius: 8px; background: var(--paper); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 0 0 0 2px var(--gold); }
.hc-brand { position: absolute; bottom: 9px; right: 14px; font: 600 10.5px var(--font); opacity: .55; }
.hc.white { left: 0; top: 34px; width: 46%; min-height: 128px; background: var(--paper); color: var(--ink); font-size: 14px; rotate: -9deg; z-index: 1; }
.hc-btn { position: absolute; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 20px; border: 2px solid rgba(255, 215, 0, .6);
  background: linear-gradient(180deg, #2a1360, #150938); color: var(--gold); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: transform .15s var(--snap); }
.hc-btn:active { transform: scale(.88); }
.hc-how { top: -12px; left: 12%; }
.hc-new { bottom: -6px; left: 14%; width: 34px; height: 34px; font-size: 16px; color: var(--text-soft); border-color: var(--line); }
/* the cards fly in only when the screen opens or a new example comes, not on every refresh of the rooms list */
.hero-cards.enter .hc.black { animation: heroQ .8s var(--spring) both; }
.hero-cards.enter .hc.white { animation: heroA .8s var(--spring) .15s both; }
@keyframes heroQ { from { rotate: 14deg; translate: 0 -30px; opacity: 0; } }
@keyframes heroA { from { rotate: -30deg; translate: -40px 20px; opacity: 0; } }
.hi { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 10px; padding: 4px 10px; border: 0; background: none; color: var(--text-soft); font-size: 15px; }
.home { display: flex; flex-direction: column; }
.hi svg { color: var(--gold-warm); }
.new-room { gap: 10px; font-size: 19px; }
.new-room svg { color: #2a1600; width: 1.05em; height: 1.05em; }
.code-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; padding: 8px 10px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.code-lbl { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.code-lbl svg { color: var(--gold-warm); }
.codein.mini { width: 104px; flex: none; padding: 7px 6px; font-size: 20px; letter-spacing: .3em; }
.code-row .btn { flex: none; min-height: 42px; }
.rooms-panel { flex: 1; min-height: 46dvh; display: flex; flex-direction: column; }
.rooms-panel h2 { display: inline-flex; align-items: center; gap: 8px; }
.rooms-panel h2 svg { color: var(--sky); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-mute); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: livePing 2s ease-out infinite; }
@keyframes livePing { 70% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.rooms-empty { flex: 1; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; padding: 10px 6px; }
.rooms-empty b { font: 700 1.2rem var(--hand); }
.re-art { position: relative; width: 90px; height: 70px; margin-bottom: 6px; }
.re-art i { position: absolute; bottom: 0; left: 50%; width: 40px; height: 56px; margin-left: -20px; border-radius: 7px; background: var(--paper); border: 1.5px solid rgba(29, 18, 54, .2); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.re-art i:nth-child(1) { rotate: -18deg; translate: -20px 0; animation: reFloat 3.2s ease-in-out infinite; }
.re-art i:nth-child(2) { rotate: 16deg; translate: 20px 0; animation: reFloat 3.2s ease-in-out .5s infinite; }
.re-art i:nth-child(3) { background: linear-gradient(160deg, #2a1360, #0e0629); border-color: rgba(255, 215, 0, .5); animation: reFloat 3.2s ease-in-out 1s infinite; }
@keyframes reFloat { 50% { translate: var(--tx, 0) -8px; } }
.re-art i:nth-child(1) { --tx: -20px; } .re-art i:nth-child(2) { --tx: 20px; }
.tb-title:empty { flex: 1; }
@media (prefers-reduced-motion: reduce) { .re-art i, .live i, .hero-cards .hc { animation: none !important; } }

.hc.white { display: grid; place-items: start start; padding: 12px; }
.hc-mark { font-size: 22px; opacity: .8; }

/* v10 (Harel 30.10.2026) */
/* the avatar picker never collapses inside the sheet: the sheet scrolls, the grid keeps its height */
.sheet { grid-auto-rows: max-content; align-content: start; }
.sheet .avatars { max-height: none; overflow: visible; }
/* answers: 4 in a row on a phone, equal widths; a pick-2 answer takes two places */
@media (max-width: 480px) {
  .acards, .acards.small { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; justify-items: stretch; align-items: start; }
  .acards .acard, .acards .acard:not(.pair), .acards.small .byc { width: auto; max-width: none; }
  .acards .acard.pair { grid-column: span 2; width: auto; }
  .acards .acard:not(.pair) .aw { font-size: 12px; padding: 7px 6px 10px; min-height: 66px; line-height: 1.25; }
  .acards .acard:not(.pair) { min-height: 66px; }
  .acards.small .byc figcaption { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.users-btn { margin: 0 auto 12px; display: flex; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer; }
.user-row .grow { flex: 1; display: grid; min-width: 0; }
.user-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row small { color: var(--text-mute); font-size: 12.5px; }

/* the answer text box is a span: always a block, so the white card covers it whole */
.acard .aw { display: block; }

/* ===================== v11: Daniel's Flow art (30.10.2026) ===================== */
.ico { width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.22em; display: inline-block; }
/* backgrounds: the night sky everywhere, the foyer in the waiting room */
.sky { background: #0e0629 url(art/sky-tall.webp) center / cover no-repeat; }
.sky i { display: none; }
@media (min-aspect-ratio: 1/1) { .sky { background-image: url(art/sky-wide.webp); } }
body.in-lobby .sky { background-image: linear-gradient(rgba(14, 6, 41, .55), rgba(14, 6, 41, .82)), url(art/foyer.webp); background-position: center top; }
/* the game table */
.felt { background: linear-gradient(rgba(20, 8, 52, .28), rgba(20, 8, 52, .45)), url(art/table-tall.webp) center / cover no-repeat; }
@media (min-width: 900px) { .felt { background-image: linear-gradient(rgba(20, 8, 52, .28), rgba(20, 8, 52, .45)), url(art/table-wide.webp); } }
.felt::before { display: none; }
/* card faces */
.card.black, .hc.black, .ed-card.black { background: #0e0629 url(art/card-q.webp) center / 100% 100% no-repeat; border-color: transparent; }
.acard .aw, .fcard, .hc.white, .card.white, .ed-card.white { background: #fffaf0 url(art/card-a.webp) center / 100% 100% no-repeat; }
.card.black { padding: 18px 18px 34px; }
.acard .aw::after, .fcard::after { display: none; }
/* the winner's light */
.winbox .rays { inset: -45% -12%; opacity: .9; background: url(art/burst.webp) center / contain no-repeat; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
/* the clock */
.clock { width: 66px; height: 66px; background: url(art/clock.webp) center / contain no-repeat; }
.clock i { display: none; }
.clock .face { position: absolute; left: 22%; top: 27%; width: 56%; height: 56%; }
/* the room code ticket */
.ticket { background: url(art/ticket.webp) center / 100% 100% no-repeat; border: 0; box-shadow: 0 16px 34px -14px #000; color: var(--ink); }
.ticket .tk-main small { color: #7a5a2a; }
.ticket .bigcode { color: #8e1f2f; text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.ticket .tk-side { border: 0; width: 26%; }
.tk-btn { color: #5a2a10; } .tk-btn.wa { background: none; } .tk-btn + .tk-btn { border-top: 1px dashed rgba(122, 90, 42, .4); }
.tk-btn .ico { width: 28px; height: 28px; }
/* icons */
.tabbar .tab-ic { width: 30px; height: 30px; object-fit: contain; display: block; margin: 0 auto; filter: saturate(.8) brightness(.85); transition: transform .2s var(--spring), filter .2s; }
.tabbar .on .tab-ic { filter: none; transform: scale(1.12) translateY(-2px); }
.tb-chat .ico { width: 24px; height: 24px; }
.leave-btn { gap: 6px; } .leave-btn .ico { width: 18px; height: 18px; }
.lb .pos .medal { width: 34px; height: 34px; vertical-align: middle; }
.hi .ico, .code-lbl .ico { width: 20px; height: 20px; }
.rooms-panel h2 .ico { width: 26px; height: 26px; }
.empty-art { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 4px; animation: float 3.2s ease-in-out infinite; }
.empty-box { display: grid; justify-items: center; padding: 10px 0; }
.chat-empty { display: grid; justify-items: center; margin: 10px 0; }
.page-art { display: block; width: 160px; height: 160px; object-fit: contain; margin: 0 auto -6px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.page-art.small { width: 120px; height: 120px; margin-bottom: 0; }
.banner { height: 120px; margin: 0 -16px 4px; border-radius: 0 0 26px 26px; background: center / cover no-repeat; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.shop-banner { background-image: url(art/shop.webp); background-position: center 35%; }
/* chat stickers */
.sticker { width: 52px; height: 52px; object-fit: contain; display: block; }
.quick .sticker { width: 34px; height: 34px; margin: auto; }
.quick button:has(.sticker) { background: none; border: 0; }
.msg.stk .bub { background: none; border: 0; padding: 2px 4px; }
.msg.stk .sticker { width: 64px; height: 64px; }
.say.stk { padding: 2px; background: none; box-shadow: none; }
.say.stk::after { display: none; }
.say.stk .sticker { width: 46px; height: 46px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

/* ===== the end screen (30.10.2026 review) ===== */
.podium.two { grid-template-columns: 1fr 1.15fr; max-width: 360px; margin-inline: auto; }
.pod { position: relative; }
.pod .avf { margin-bottom: -14px; z-index: 2; }
.pod b { position: relative; z-index: 3; order: -1; }
.pod .crown { position: absolute; top: -26px; left: 50%; translate: -50% 0; font-size: 30px; z-index: 4; animation: crownBob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
@keyframes crownBob { 50% { translate: -50% -5px; rotate: -6deg; } }
.pod .step { position: relative; padding-top: 20px; }
.pod .place { position: absolute; top: 6px; right: 8px; font: 800 12px/1 var(--font); padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: inherit; }
.pod .sc { font-weight: 700; font-size: 14px; display: inline-flex; align-items: baseline; gap: 4px; }
.pod .sc big { font: 800 2.1rem/1 var(--font); }
.pod-1 .sc big { font-size: 2.6rem; }
.final-cards { position: relative; width: min(100%, 340px); height: 230px; margin: 4px auto 0; }
.final-cards .fq { position: absolute; right: 2%; top: 0; width: 58%; aspect-ratio: 5 / 7; height: auto; rotate: 5deg; font-size: clamp(.95rem, 4vw, 1.15rem); box-shadow: 0 18px 30px -12px #000; }
.final-cards .fa { position: absolute; left: 4%; top: 18px; width: 46%; max-width: none; aspect-ratio: 5 / 7; rotate: -7deg; z-index: 2; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.final-cards .fa .aw { box-shadow: 0 0 0 3px var(--gold), 0 0 34px rgba(255, 215, 0, .55); font-size: clamp(.95rem, 4vw, 1.15rem); position: absolute; inset: 0; }
.final-cards .fa.pair { width: 56%; aspect-ratio: auto; height: 180px; }
.final-cards .fa.pair .aw { position: relative; inset: auto; }
body.fx-ph .over .final-cards .fq { animation: flipIn .8s var(--spring) both; animation-delay: calc(var(--ph) + 1300ms); }
body.fx-ph .over .final-cards .fa { animation: throw .8s var(--spring) both; animation-delay: calc(var(--ph) + 1600ms); }
.signin-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 16px 0 6px; border-radius: 16px; background: rgba(255, 215, 0, .07); border: 1px solid rgba(255, 215, 0, .3); font-size: 14px; }
.signin-strip span { flex: 1; } .strip-ic { width: 34px; height: 34px; flex: none; }
.signin-strip .gsi { flex: none; }
.sug-link { display: block; margin: 8px auto 0; font-size: 14.5px; text-decoration: none; }
.over { padding-bottom: 20px; }
.bar { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(7, 3, 26, .2), rgba(7, 3, 26, .85) 40%); }

.wrap.lobby .ticket { background: url(art/ticket.webp) center / 100% 100% no-repeat; border: 0; }

/* the ticket keeps the proportions of its picture (900x460), never stretched */
.wrap.lobby .ticket { aspect-ratio: 900 / 460; background-size: 100% 100%; border-radius: 0; overflow: visible; }
.wrap.lobby .ticket .tk-main { display: grid; align-content: center; padding-inline-start: 8%; }
.wrap.lobby .ticket .tk-side { width: 24%; display: grid; align-content: center; }

/* the podium: name and balloons on the step, the avatar sits on it, the crown on the avatar */
.pod b { order: 0; font-size: 13.5px; max-width: 100%; }
.pod .step { gap: 4px; padding-top: 22px; }
.pod .crown { top: -22px; }
.final-cards .fq { overflow: hidden; padding: 14px 14px 26px; }

/* ===== card faces v2 (Daniel 30.10.2026): drawn with border-image, so the corner ornaments keep their shape on any card size,
   and the text keeps a clear margin inside the gold frame (never touching the line or the corners) ===== */
.card.black, .hc.black, .ed-card.black, .card.white, .hc.white, .ed-card.white, .acard .aw, .fcard {
  background: none; border-style: solid; border-width: 0; border-image-repeat: stretch; box-shadow: none; }
.card.black, .hc.black, .ed-card.black { border-image-source: url(art/card-q.webp); border-image-slice: 15% 20% fill; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.card.white, .hc.white, .ed-card.white, .acard .aw, .fcard { border-image-source: url(art/card-a.webp); border-image-slice: 10% 13% fill; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
/* big question cards: corner art about 52px, text inside the frame with air around it */
.card.black { border-image-width: 54px 50px; padding: 46px 34px 40px; }
.card.black::after { display: none; }
.card.black .pick { bottom: 16px; left: 30px; }
.hc.black { border-image-width: 40px 38px; padding: 34px 28px 30px; }
.hc-brand { display: none; }
.ed-card.black { border-image-width: 30px 30px; padding: 22px 24px; }
.ed-card.white { border-image-width: 20px 22px; padding: 18px 22px; }
.card.white, .hc.white { border-image-width: 28px 30px; padding: 26px 26px; }
/* answer cards scale with their own width (container units) */
.acard { container-type: inline-size; }
.acard .aw { border-image-width: 11cqw 13cqw; padding: 12cqw 12cqw 10cqw; }
.acard.pair .aw { border-image-width: 9cqw 10cqw; padding: 10cqw 10cqw 8cqw; }
.acard.sel .aw { filter: drop-shadow(0 0 0 transparent); outline: 3px solid var(--gold); outline-offset: -2px; border-radius: 10px; }
.acard.win .aw, .final-cards .fa .aw { box-shadow: none; outline: 3px solid var(--gold); outline-offset: -2px; border-radius: 10px; filter: drop-shadow(0 0 18px rgba(255, 215, 0, .55)); }
/* the hand: --cw is the card width */
.fcard { border-image-width: calc(var(--cw) * .1) calc(var(--cw) * .13); padding: calc(var(--cw) * .13) calc(var(--cw) * .12) calc(var(--cw) * .1); border-radius: 0; }
.fan.grid .fcard { padding: calc(var(--cw) * .14) calc(var(--cw) * .12) calc(var(--cw) * .1); }
.fcard.sel { box-shadow: none; outline: 3px solid var(--gold); outline-offset: -2px; border-radius: 10px; }
/* phones: the answers on the table */
@media (max-width: 480px) { .acards .acard:not(.pair) .aw { padding: 12cqw 12cqw 10cqw; } }
.final-cards .card.black.fq { border-image-width: 36px 34px; padding: 32px 24px 26px; }
.duo .card.black { border-image-width: 40px 38px; padding: 34px 26px 30px; }

/* narrow phones: the exit button is the door alone, so the room code always shows */
@media (max-width: 420px) { .leave-btn { font-size: 0; gap: 0; padding: 6px 10px; } .leave-btn .ico { width: 24px; height: 24px; } .tb-room { overflow: visible; } }
@media (max-width: 420px) { .btn.small.leave-btn { font-size: 0; gap: 0; padding: 6px 10px; } }
.tb-room { min-width: 0; }
@media (max-width: 420px) { .topbar { gap: 6px; } .tb-end { gap: 5px; } .pill.score { padding: 4px 7px; } .tb-chat { width: 36px; height: 36px; } }

/* in a room on a narrow phone the room code wins over the site logo: it is never hidden (Harel 30.10.2026) */
@media (max-width: 420px) { body.in-room .tb-logo { display: none; } body.in-room .tb-room { flex: 1 0 auto; min-width: max-content; } }

/* the ticket stub: share and copy as solid little buttons, readable over the drawing */
.wrap.lobby .ticket .tk-side { gap: 8px; padding: 0 6px; justify-items: center; }
.wrap.lobby .tk-btn { width: 100%; max-width: 86px; padding: 6px 4px; gap: 2px; border-radius: 12px; background: linear-gradient(180deg, #3a1a7a, #1c0b45); border: 1.5px solid rgba(255, 215, 0, .75); color: #fff; font-size: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.wrap.lobby .tk-btn + .tk-btn { border-top: 1.5px solid rgba(255, 215, 0, .75); }
.wrap.lobby .tk-btn.wa { background: linear-gradient(180deg, #1f8f4e, #0f5c30); }
.wrap.lobby .tk-btn .ico { width: 22px; height: 22px; }
.wrap.lobby .tk-btn:active { transform: scale(.94); }

/* the home screen fits the phone screen: no page scroll; a long rooms list scrolls inside its own box (Daniel 30.10.2026) */
.wrap.home { height: calc(100dvh - 78px - 104px - env(safe-area-inset-bottom)); min-height: 0; display: flex; flex-direction: column; }
.wrap.home > * { flex: none; }
.home .hero { margin: 0 0 6px; }
.home .hero h1 { font-size: clamp(1.6rem, min(7vw, 4.4dvh), 2.6rem); margin: 0 0 8px; }
.hero-cards { height: clamp(118px, 19dvh, 175px); }
.hc.black { min-height: 0; height: calc(100% - 12px); font-size: clamp(.85rem, 1.9dvh + .1rem, 1.15rem); line-height: 1.3; }
.hc.white { min-height: 0; height: calc(100% - 40px); }
.hi { margin-bottom: 6px; }
.new-room { min-height: 50px; }
.code-row { margin: 8px 0 10px; }
.home .rooms-panel { flex: 1 1 auto; min-height: 120px; margin-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.home .rooms-panel .rooms { overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: none; }
.home .rooms-empty { gap: 4px; padding: 0; }
.home .rooms-empty .empty-art { width: clamp(56px, 10dvh, 100px); height: clamp(56px, 10dvh, 100px); }
.home .rooms-empty .soft { font-size: 13.5px; }
@media (max-height: 700px) { .home .rooms-empty .soft { display: none; } }

.home .rooms-panel .rooms { align-content: start; }
.lb li[data-whouid] { cursor: pointer; transition: transform .15s var(--snap); } .lb li[data-whouid]:active { transform: scale(.98); }

/* empty rooms box: the button always shows, the picture gives way first */
.home .rooms-empty { flex: 1; min-height: 0; justify-content: center; align-content: space-evenly; overflow: hidden; }
.home .rooms-empty .empty-art { width: auto; height: clamp(40px, 9dvh, 96px); flex-shrink: 1; min-height: 0; }
.home .rooms-empty b { font-size: 1.1rem; }
.home .rooms-empty .btn { flex: none; }

/* empty rooms: picture beside the text and the button, low enough for any phone */
.home .rooms-empty { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; text-align: right; flex: 1; min-height: 0; }
.home .rooms-empty .empty-art { width: 76px; height: 76px; margin: 0; flex: none; }
.home .re-txt { display: grid; gap: 8px; justify-items: start; }
/* the room code ticket: a picture you can tap (copies the link); share and copy under it */
.wrap.lobby .ticket { display: grid; place-items: center; width: 100%; padding: 0; cursor: pointer; font: inherit; color: var(--ink); margin: 0 0 10px; transition: transform .15s var(--snap); }
.wrap.lobby .ticket:active { transform: scale(.98) rotate(-.5deg); }
.wrap.lobby .ticket .tk-main { display: grid; justify-items: center; align-content: center; gap: 0; padding: 0 0 0 18%; width: 100%; height: 100%; }
.wrap.lobby .ticket .tk-hint { font-size: 11.5px; color: #8a6a3a; margin-top: 2px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.share-row .btn { min-height: 46px; padding: 8px 10px; font-size: 15px; gap: 6px; }
.share-row .ico { width: 22px; height: 22px; }
.share-wa { background: linear-gradient(180deg, #25b864, #138a45); border-color: transparent; color: #fff; }
.share-copy { background: linear-gradient(180deg, #4a2496, #2a1360); border-color: rgba(255, 215, 0, .45); }

/* the burst has its own transparency now: no mask (a mask left a square edge on some phones) */
.winbox .rays { -webkit-mask: none; mask: none; opacity: 1; background: url(art/burst.webp) center / contain no-repeat; }

/* ===================== v12: no scrolling, a living world, cards with weight (30.10.2026) ===================== */
/* shop: one screen, the grid scrolls inside */
.wrap.shop { height: calc(100dvh - 78px - 104px - env(safe-area-inset-bottom)); min-height: 0; display: flex; flex-direction: column; }
.shop-head { flex: none; position: relative; text-align: center; }
.shop-head .banner { height: 96px; margin-bottom: -40px; }
.shop-head h1 { position: relative; font: 700 2rem/1.1 var(--hand); margin: 0 0 8px; text-shadow: 0 3px 10px #000; }
.wallet { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 215, 0, .45); background: rgba(255, 215, 0, .1); color: var(--gold); font-size: 15px; }
.wallet b { font-size: 18px; } .wallet small { color: var(--text-soft); font-size: 12px; margin-inline-start: 6px; text-decoration: underline; }
.shop-login { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.shop-tabs { margin-bottom: 8px; }
.shop-cats { margin-bottom: 8px; } .shop-cats small { opacity: .65; font-weight: 600; }
.shop-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; align-content: start; padding: 4px 2px 12px; scrollbar-width: none;
  -webkit-mask: linear-gradient(transparent, #000 10px, #000 calc(100% - 18px), transparent); mask: linear-gradient(transparent, #000 10px, #000 calc(100% - 18px), transparent); }
.shop-grid::-webkit-scrollbar { display: none; }
.shop-grid .frame-card { padding: 10px 4px 8px; gap: 5px; border-radius: 16px; }
.shop-grid .frame-card b { font-size: 12px; min-height: 2.5em; }
.shop-grid .btn.small { min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
body.fx-page .shop-grid .frame-card, .shop-grid .frame-card { animation: gridIn .45s var(--spring) both; animation-delay: calc(min(var(--i, 0), 14) * 28ms); }
@keyframes gridIn { from { scale: .8; opacity: 0; translate: 0 10px; } }
.frame-card { transition: transform .2s var(--spring); } .frame-card:active { transform: scale(.96); }
.frame-card.just-bought { animation: bought .9s var(--spring); box-shadow: 0 0 0 3px var(--gold), 0 0 34px rgba(255, 215, 0, .6); }
@keyframes bought { 0% { scale: .7; } 40% { scale: 1.12; rotate: -3deg; } 70% { rotate: 2deg; } }
/* profile: compact */
.profile-head.compact { align-items: center; }
.pstats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 12px; margin-top: 4px; }
.pstats span { display: grid; justify-items: center; font-size: 11.5px; color: var(--text-soft); }
.pstats b { font: 800 1.15rem/1.1 var(--font); color: var(--gold); }
.more-hist { display: block; margin: 8px auto 0; }
.hist li { animation: rise .4s var(--out) both; }
/* lobby: everything on one screen */
.wrap.lobby .ticket { width: min(100%, 340px); margin-inline: auto; }
.wrap.lobby .panel { padding: 12px 14px; margin-bottom: 10px; }
.wrap.lobby .ph h2 { font-size: 1.15rem; margin: 0; }
.lseats { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 4px; }
.lseat .avf { --s: 48px !important; }
.lseat b { font-size: 12px; } .lseat small { font-size: 10.5px; }
.lseat.empty .ghost, .lseat.addbot .ghost { width: 48px; height: 48px; font-size: 18px; }
.lseat.empty .ghost { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.08; border-color: rgba(255, 215, 0, .55); } }
.wrap.lobby .fine { margin: 6px 0 0; font-size: 11.5px; }
.tiles { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tile { padding: 8px 2px 7px; gap: 2px; border-radius: 12px; }
.tile .ti-ic { font-size: 22px; } .tile b { font-size: 11.5px; line-height: 1.2; } .tile small { display: none; }

/* the living sky */
.sky .mote { position: absolute; width: calc(3px * var(--z)); height: calc(3px * var(--z)); border-radius: 50%; background: #fff6d6; box-shadow: 0 0 8px 2px rgba(255, 230, 160, .6);
  animation: twinkle var(--d) ease-in-out var(--o) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; scale: .6; } 50% { opacity: .95; scale: 1.2; } }
.sky .lantern { position: absolute; bottom: -40px; width: calc(14px * var(--z)); height: calc(18px * var(--z)); border-radius: 40% 40% 30% 30%;
  background: radial-gradient(circle at 50% 70%, #ffe7a3, #ff9d2e 55%, #b4521a); box-shadow: 0 0 calc(18px * var(--z)) calc(4px * var(--z)) rgba(255, 170, 70, .45);
  opacity: .75; animation: lanternUp var(--d) linear var(--o) infinite; }
@keyframes lanternUp { 0% { translate: 0 0; opacity: 0; } 8% { opacity: .8; } 50% { translate: 18px -60vh; } 92% { opacity: .7; } 100% { translate: -10px -118vh; opacity: 0; } }
/* the home cards lean */
.hero-cards { perspective: 700px; }
.hero-cards .hc { transition: transform .4s var(--out); }
.hero-cards .hc.black { transform: rotateY(calc(var(--tx, 0) * 14deg)) rotateX(calc(var(--ty, 0) * -12deg)); }
.hero-cards .hc.white { transform: rotateY(calc(var(--tx, 0) * 22deg)) rotateX(calc(var(--ty, 0) * -18deg)) translateX(calc(var(--tx, 0) * -10px)); }
.hero-cards .hc.black::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(calc(110deg + var(--tx, 0) * 60deg), transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); }
/* ripple */
.btn, .tile, .chips button, .segc button, .seg button, .tabbar button { position: relative; overflow: hidden; }
.rip::before { content: ""; position: absolute; left: var(--rx); top: var(--ry); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: scale(26); opacity: 0; } }
/* the tab bar: the chosen tab jumps */
.tabbar .on .tab-ic { animation: tabPop .5s var(--spring); }
@keyframes tabPop { 30% { transform: scale(1.3) translateY(-5px) rotate(-8deg); } }
.tabbar button.on::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pop .4s var(--spring); }
/* last seconds: the clock beats and the table edge glows red */
body.hurry .felt { animation: hurry 1s ease-in-out infinite; }
@keyframes hurry { 50% { box-shadow: inset 0 0 0 3px rgba(255, 77, 109, .7), inset 0 0 50px rgba(255, 77, 109, .35), 0 30px 60px -30px #000; } }
body.hurry .clock { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.1; } }
/* dragging a card: the table lights up where it can land */
body.dragging .fcard.ghost { box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .7); transition: none; }
body.over-table .felt { box-shadow: inset 0 0 0 3px rgba(255, 215, 0, .65), inset 0 0 60px rgba(255, 215, 0, .25), 0 30px 60px -30px #000; }
body.dragging .slot:not(.full) { box-shadow: 0 0 0 3px rgba(255, 215, 0, .5), 0 0 24px rgba(255, 215, 0, .5); }
/* hand cards: a soft lift on touch */
.fan:not(.down) .fcard:active { translate: 0 -10px; }
@media (prefers-reduced-motion: reduce) { .sky .mote, .sky .lantern, body.hurry .felt, body.hurry .clock, .lseat.empty .ghost { animation: none !important; } .hero-cards .hc { transform: none !important; } }

/* profile: one screen, the history scrolls inside its box */
.wrap.profile { height: calc(100dvh - 78px - 104px - env(safe-area-inset-bottom)); min-height: 0; display: flex; flex-direction: column; }
.wrap.profile > * { flex: none; }
.wrap.profile .hist-panel { flex: 1 1 auto; min-height: 140px; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 0; }
.wrap.profile .hist { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.wrap.profile .hist li { padding: 8px 10px; }
.wrap.profile .signin-strip { margin: 0 0 10px; }
.wrap.profile .profile-head { margin-bottom: 10px; }

/* lobby fits one screen: smaller ticket, 6-7 seats a row */
@media (max-width: 480px) {
  .wrap.lobby .ticket { width: min(100%, 286px); margin-bottom: 8px; }
  .share-row { margin-bottom: 10px; } .share-row .btn { min-height: 42px; font-size: 14px; }
  .lseats { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px 2px; }
  .lseat .avf { --s: 42px !important; }
  .lseat.empty .ghost, .lseat.addbot .ghost { width: 42px; height: 42px; }
  .lseat .botmark { font-size: 9px; }
  .wrap.lobby .fine { font-size: 11px; line-height: 1.35; }
  .wrap.lobby .ph { margin-bottom: 8px; }
  .wrap.lobby { padding-bottom: 76px; }
}

@media (max-width: 480px) { .wrap.lobby { padding-bottom: 0; } body.in-lobby #app { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } .wrap.lobby .panel { margin-bottom: 8px; } .tile { padding: 6px 2px; } .tile .ti-ic { font-size: 19px; } }

/* ===== solo against the computer (30.10.2026): next to "new room", the same height ===== */
.start-row { display: flex; gap: 8px; }
.start-row .new-room { flex: 1.5; }
.start-row .solo-btn { flex: 1; min-height: 50px; font-size: 16px; gap: 6px; padding-inline: 10px; white-space: nowrap; }
@media (max-width: 380px) { .start-row .new-room { font-size: 17px; } .start-row .solo-btn { font-size: 14.5px; } }

/* ===== the answers on the table fill the free space (30.10.2026): 2 cards = two big cards, 4 = a 2x2 fan.
   layoutTable() in klafim.js picks the columns and sets --cols / --cw / --ch; the text grows with the card and fitCards() shrinks it only if needed ===== */
.table-body .acards.fan-table { display: grid; grid-template-columns: repeat(var(--cols, 2), var(--cw, 150px)); grid-auto-rows: var(--ch, 200px);
  gap: 12px; justify-content: center; align-content: center; width: 100%; flex: none; }
.table-body .acards.fan-table .acard, .table-body .acards.fan-table .acard:not(.pair), .table-body .acards.fan-table .acard.pair {
  width: var(--cw); height: var(--ch); max-width: none; min-height: 0; aspect-ratio: auto; grid-column: auto; margin: 0;
  rotate: var(--rot, 0deg); transition: rotate .35s var(--spring), scale .35s var(--spring); }
.table-body .acards.fan-table .acard:not(.pair) .aw { position: absolute; inset: 0; height: auto; min-height: 0;
  font-size: clamp(14px, calc(var(--cw) * .1), 26px); line-height: 1.28; padding: calc(var(--cw) * .12) calc(var(--cw) * .11) calc(var(--cw) * .09); }
.table-body .acards.fan-table .acard.pair .aw { min-height: 0; height: 100%;
  font-size: clamp(13px, calc(var(--cw) * .052), 22px); line-height: 1.28; padding: calc(var(--cw) * .07) calc(var(--cw) * .06) calc(var(--cw) * .05); }
/* they breathe: each card floats on its own beat, so the table never stands still */
.table-body .acards.fan-table .acard .aw { animation: cardBreathe 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); }
@keyframes cardBreathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
/* dealt onto the table one after another */
body.fx-ph .table-body .acards.fan-table .acard { animation: fanIn .7s var(--spring) both; animation-delay: calc(var(--ph) + 120ms + var(--i, 0) * 120ms); }
@keyframes fanIn { 0% { translate: 0 60px; scale: .6; rotate: 0deg; opacity: 0; } 60% { opacity: 1; } }
/* the judge's choice stands up straight and comes forward */
.table-body .acards.fan-table .acard.sel { rotate: 0deg; scale: 1.04; z-index: 2; }
.table-body .acards.fan-table button.acard:active { scale: .97; }
@media (prefers-reduced-motion: reduce) { .table-body .acards.fan-table .acard, .table-body .acards.fan-table .acard .aw { animation: none !important; } }

/* ===== welcome (30.10.2026): Google first, guest second ===== */
.welcome { display: grid; justify-items: center; text-align: center; gap: 10px; padding-bottom: 6px; }
.welcome .welcome-art { width: min(62%, 220px); height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }
.welcome h2 { margin: 0; font: 700 clamp(1.3rem, 5.6vw, 1.7rem)/1.15 var(--hand); }
.welcome h2 b { color: var(--gold); font-weight: 700; display: block; }
.welcome p { margin: 0; color: var(--text-soft); }
.welcome .gsi { min-height: 46px; display: grid; place-items: center; width: 100%; }
.welcome .or { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--text-soft); font-size: 14px; }
.welcome .or::before, .welcome .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.welcome .guest-btn { width: min(100%, 300px); }
.welcome small { font-size: 12.5px; }
/* in the judging round the hand is only a strip at the bottom, so the answers get the whole table */
body.at-table .felt.phase-judge { padding-bottom: 80px; }
@media (min-width: 640px) { body.at-table .felt.phase-judge { padding-bottom: 120px; } }
.table-body .acards.fan-table .acard:not(.pair) .aw { display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(15px, calc(var(--cw) * .125), 30px); }
.table-body .acards.fan-table .acard.pair .aw { display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: clamp(13px, calc(var(--cw) * .06), 24px); }
.table-body .acards.fan-table .acard.pair .aw i { margin: 0 auto 6px; }

/* ===== end screen on one screen (30.10.2026): places 4+ as small chips, the closing cards sized by height (layoutOver() gives them what is left) ===== */
.wrap.over { padding-bottom: 0; }
.over .over-head { margin: 0 0 4px; }
.over .over-head h1 { margin: 2px 0; }
.over .over-head p { font-size: 14px; }
.over .podium { margin: 10px 0 8px; }
.over .score-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; }
.over .score-list li { padding: 4px 10px 4px 6px; gap: 6px; border-radius: 999px; font-size: 14px; }
.over .score-list li .nm { flex: none; }
.over .final { margin: 6px 0 0; gap: 6px; }
.over .final-cards { height: 230px; display: flex; justify-content: center; }
.over .final-cards .fq { height: 100%; width: auto; aspect-ratio: 5 / 7; right: auto; inset-inline-start: 50%; translate: 18% 0; }
.over .final-cards .fa:not(.pair) { height: 82%; width: auto; aspect-ratio: 5 / 7; left: auto; inset-inline-end: 50%; translate: -12% 0; top: 10%; }
.over .final-cards .card.black.fq { border-image-width: clamp(22px, 7cqh, 36px) clamp(20px, 6.5cqh, 34px); padding: 26px 18px 20px; }
.over .signin-strip { margin: 8px 0 4px; padding: 6px 10px; font-size: 13px; }
.over .signin-strip .strip-ic { width: 28px; height: 28px; }
.over .sug-link { margin: 4px auto 0; font-size: 13.5px; }
.over .signin-strip .gsi { min-height: 34px; display: grid; place-items: center; }

/* ===== install as an app (30.10.2026): a small strip above the tabs, once, after the first game ===== */
.inst-strip { position: fixed; z-index: 9; inset-inline: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 18px; background: linear-gradient(180deg, #2a1360, #170a3c); border: 1px solid rgba(255, 215, 0, .45);
  box-shadow: 0 14px 30px -10px #000; font-weight: 600; font-size: 14.5px; animation: rise .5s var(--spring) both; animation-delay: .8s; }
.inst-strip .inst-ic { font-size: 22px; }
.inst-strip .grow { flex: 1; }
.inst-x { background: none; border: 0; color: var(--text-soft); font-size: 16px; padding: 6px 8px; cursor: pointer; }
/* the clock stays in sight while a card is open in big */
.zoom-clock { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 12px; z-index: 41; pointer-events: none; }
.zoom-clock .clock { margin: 0; }
.row.confirm.on-card { position: relative; z-index: 3; margin-top: -30px; gap: 8px; animation: rise .35s var(--spring) both; }
.row.confirm.on-card .btn { min-width: 0; min-height: 40px; padding: 8px 16px; font-size: 15px; box-shadow: 0 8px 18px -6px #000; }

/* ===== chat (Harel 30.10): ready messages in two even rows, the stickers in one row ===== */
.quick.phrases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.quick.phrases button { padding: 7px 3px; font-size: clamp(11.5px, 3.3vw, 14px); white-space: nowrap; overflow: hidden; min-width: 0; }
.quick:not(.phrases) { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; justify-items: center; }
.quick:not(.phrases) button { width: min(40px, 100%); height: auto; aspect-ratio: 1; }
.quick .sticker { width: 100%; height: auto; max-width: 36px; }

/* ===== management (Harel 30.10): cards, players' suggestions and users in one place ===== */
.mgmt-tabs { margin: 0 0 10px; }
.mgmt-tabs small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #2a1600; font-size: 12px; font-weight: 800; }
.ed-note { margin: 0 0 10px; font-size: 13.5px; }
.ed-h { font: 700 1.1rem var(--hand); margin: 14px 0 8px; }
.sug-row { display: grid; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.sug-row.black { border-inline-start: 4px solid #000; } .sug-row.white { border-inline-start: 4px solid var(--paper); }
.sug-row.decided { opacity: .75; }
.sug-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sug-top .grow { flex: 1; }
.sug-row .row { display: flex; gap: 8px; }
.sug-t { margin: 0; font-weight: 700; }
.ed-k.ok { background: rgba(80, 200, 120, .25); } .ed-k.no { background: rgba(255, 77, 109, .25); }
button.user-row { width: 100%; text-align: right; font: inherit; color: inherit; cursor: pointer; }
.user-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.user-nums label { display: grid; gap: 4px; }
.user-row.mgr { margin: 4px 0; }

/* ===== the round win (30.10.2026): the winning sentence is a real gold-framed question card, the words that won are little white cards in it ===== */
.card.black.winq { position: relative; z-index: 1; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; font-size: clamp(1.1rem, 4.4vw, 1.5rem); line-height: 1.6; text-align: center; }
.winq .q { color: #fff; font-weight: 700; }
.winq .fill, .winq .a { display: inline; padding: 2px 10px; margin: 0 2px; border-radius: 9px; background: var(--paper); color: var(--ink); font-weight: 800;
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255, 215, 0, .55); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.winq .a { display: table; margin: 8px auto 0; }
.win-by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font: 700 15px var(--font); color: var(--gold); }
body.fx-ph .phase-reveal .winbox .winq { animation: stamp .7s var(--spring) both; animation-delay: calc(var(--ph) + 100ms); }
.nextbar { position: relative; z-index: 2; width: min(100%, 420px); height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; flex: none; }
.nextbar i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .5s linear; margin-inline-start: auto; }
.play-row, .q-col { display: contents; }

/* ===== desktop (30.10.2026): a PC card game, not a stretched phone. body.desk is set in render() from 1024px wide ===== */
body.desk.at-table .felt { display: flex; flex-direction: column; padding: 12px 30px calc(var(--handH, 160px) + 20px); }
body.desk.at-table .felt.phase-judge { padding-bottom: 70px; }
body.desk.at-table .felt.phase-reveal { padding-bottom: 92px; }
body.desk .table-body { flex: 1; min-height: 0; justify-content: center; gap: 14px; }
/* players: thin pills */
body.desk .players.seats.one-row { flex-wrap: wrap; gap: 10px 8px; margin: 6px 0 12px; }
body.desk .players.seats.one-row .pl { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 0 1 180px; width: auto; padding: 4px 12px 4px 6px; border-radius: 999px; }
body.desk .players.seats.one-row .pl .avf { --s: 34px !important; width: 34px; height: 34px; }
body.desk .players.seats.one-row .pl .nm { flex: 1; min-width: 0; text-align: right; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.desk .players.seats.one-row .pl .tag { top: -9px; }
/* title and clock together */
body.desk .felt .status { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 14px; padding: 0; margin: 0 0 8px; }
body.desk .felt .status strong { grid-column: 1; font-size: 1.5rem; }
body.desk .felt .status > span:not(.clock) { grid-column: 1; }
body.desk .felt .clock { position: relative; inset: auto; grid-column: 2; grid-row: 1 / 3; margin: 0; transform: scale(.92); }
body.desk .felt:has(.clock.low) .qcard { animation: lowQ 1s ease-in-out infinite; }
@keyframes lowQ { 50% { filter: drop-shadow(0 0 16px rgba(255, 110, 50, .85)); } }
/* the question beside the table space; on tall screens the slots go under it */
body.desk .play-row { display: flex; flex: 1; width: 100%; min-height: 0; gap: 36px; align-items: stretch; justify-content: center; }
body.desk .q-col { display: flex; flex: 0 1 400px; min-width: 300px; flex-direction: column; justify-content: center; gap: 12px; }
body.desk .q-col .qcard { width: 100%; max-width: none; margin: 0; transform: none; font-size: 1.45rem; }
body.desk .q-col .sentence { width: 100%; }
body.desk .table-body .acards.fan-table { flex: 1 1 0; width: auto; min-width: 0; }
@media (min-height: 880px) {
  body.desk .play-row.sub { flex-direction: column; align-items: center; gap: 14px; }
  body.desk .play-row.sub .q-col { flex: none; width: min(100%, 520px); }
}
/* drop slots */
.slots-col { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.bigslots { display: flex; gap: 16px; }
.slot.bigslot { position: relative; display: grid; place-items: center; margin: 0; --sw: clamp(130px, 19vh, 176px); padding: calc(var(--sw) * .12); width: var(--sw); height: calc(var(--sw) * 1.4);
  border: 2px dashed rgba(255, 215, 0, .55); border-radius: 14px; background: rgba(255, 215, 0, .05); font-size: 1.1rem; text-align: center; transition: scale .2s var(--spring), background .2s; }
.bs-n { font: 800 3.4rem var(--font); color: rgba(255, 215, 0, .75); }
.slot.bigslot.full { display: flex; align-items: center; justify-content: center; border: 0; border-style: solid; color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.3; cursor: pointer;
  background: none; border-image: url(art/card-a.webp) 10% 13% fill / 18px 20px stretch; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.slot.bigslot.full i { position: absolute; top: 12px; font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #2a1600; font-size: 13px; }
body.dragging .slot.bigslot:not(.full) { background: rgba(255, 215, 0, .16); }
.slot.bigslot.hot { scale: 1.05; }
/* a card in a slot: the text fills the card instead of one word per line */
.slot.bigslot { flex-shrink: 0; max-width: calc((100vw - 48px) / 2); }
.slot.bigslot.full { padding: 34px 10px 12px; font-size: clamp(.8rem, calc(var(--sw) * .085), 1.05rem); line-height: 1.25; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: none; }
.slot.bigslot.full.long { font-size: clamp(.72rem, calc(var(--sw) * .072), .92rem); }
.confirm-box { min-height: 42px; }
body.desk .row.confirm.on-card { margin: 0; }
/* one wide arc */
body.desk .fan.desk { height: calc(var(--cw) * .98 + 10px); }
.fan.desk .fcard { bottom: calc(var(--cw) * -.42); transform-origin: 50% 120%; transition: transform .22s var(--spring), filter .2s; cursor: pointer; }
body.desk .fan:not(.down) .fcard:hover { transform: translate(var(--x), calc(var(--y) - var(--cw) * .5)) rotate(0deg) scale(1.15); z-index: 50 !important; filter: drop-shadow(0 0 14px rgba(255, 215, 0, .75)); }
.swap-btn { position: absolute; inset-inline-end: 22px; bottom: 16px; pointer-events: auto; z-index: 60; background: rgba(23, 10, 60, .85); border-color: rgba(255, 215, 0, .5); transition: background .2s, scale .15s; }
.swap-btn:hover { background: #2a1360; scale: 1.05; }
/* the round win: centred on the table, every player's cards as a group */
body.desk .phase-reveal .table-body { align-items: center; }
body.desk .winbox { width: min(100%, 680px); }
body.desk .card.black.winq { font-size: 1.5rem; }
body.desk .others-h { font: 600 15px var(--hand); margin: 0; }
body.desk .phase-reveal .acards.small { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 64px; width: 100%; opacity: 1; }
body.desk .phase-reveal .byc { width: auto; }
body.desk .phase-reveal .byc .acard, body.desk .phase-reveal .byc .acard:not(.pair) { width: var(--oc); height: calc(var(--oc) * 1.3); max-width: none; min-height: 0; aspect-ratio: auto; opacity: 1; }
body.desk .phase-reveal .byc .acard:not(.pair) .aw { position: absolute; inset: 0; height: auto; min-height: 0; font-size: calc(var(--oc) * .105); }
body.desk .phase-reveal .byc .acard.pair { display: flex; width: calc(var(--oc) * 1.8); gap: 0; }
body.desk .phase-reveal .byc .acard.pair .aw { flex: 1 1 0; height: 100%; min-height: 0; font-size: calc(var(--oc) * .1); }
body.desk .phase-reveal .byc .acard.pair .aw:nth-child(2) { margin-inline-start: calc(var(--oc) * -.2); rotate: -3deg; z-index: 1; }
body.desk .phase-reveal .byc figcaption { padding: 4px 12px; border-radius: 999px; background: rgba(7, 3, 26, .75); font-size: 14px; }
/* the end screen stays on the magic table: podium on one side, the closing cards on the other */
body.desk .wrap.over.felt { max-width: 1180px; width: 100%; height: calc(100dvh - 76px); margin: 0 auto; padding: 18px 44px 92px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto auto; column-gap: 40px; align-items: center; }
body.desk .wrap.over .over-head { grid-column: 1 / -1; }
body.desk .wrap.over .podium { grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
body.desk .wrap.over .score-list { grid-column: 1; grid-row: 3; }
body.desk .wrap.over .final { grid-column: 2; grid-row: 2 / 4; margin: 0; }
body.desk .wrap.over .final-cards { width: 100%; height: 300px; gap: 0; align-items: center; }
body.desk .wrap.over .final-cards .fq, body.desk .wrap.over .final-cards .fa:not(.pair) { position: relative; inset: auto; translate: none; top: auto; height: 270px; width: auto; aspect-ratio: 5 / 7; }
body.desk .wrap.over .final-cards .fa:not(.pair) { margin-inline-start: -22px; }
body.desk .wrap.over .final-cards .fa.pair { position: relative; inset: auto; width: 300px; height: 200px; margin-inline-start: -22px; }
body.desk .wrap.over .signin-strip { grid-column: 1 / -1; width: min(100%, 560px); justify-self: center; }
body.desk .wrap.over .sug-link { grid-column: 1 / -1; justify-self: center; }
/* the shell screens use the width too */
body.desk .wrap.home { max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 48px; align-content: center; }
body.desk .wrap.home .hero { grid-column: 1; grid-row: 1 / 5; align-self: center; margin: 0; }
body.desk .wrap.home .hero h1 { font-size: 3.2rem; }
body.desk .wrap.home .hero-cards { width: min(100%, 460px); height: 260px; }
body.desk .wrap.home .hc.black { font-size: 1.35rem; }
body.desk .wrap.home > :not(.hero) { grid-column: 2; }
/* the lobby is a whole room: the ticket and the start on one side, all 12 chairs and the settings on the other */
.lobby-side, .lobby-main { display: contents; }
.howto { display: none; }
.tile small { display: none; }
body.desk.in-lobby #app { max-width: 1640px; padding-bottom: 0; }
body.desk .wrap.lobby { max-width: none; width: 100%; height: calc(100dvh - 69px); padding: 6px 12px 20px; margin: 0 auto; display: grid; grid-template-columns: minmax(340px, 5fr) minmax(0, 8fr); column-gap: 26px; }
body.desk .lobby-side { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
body.desk .lobby-main { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
body.desk .wrap.lobby .ticket { width: min(100%, 52vh); margin: 0 auto; flex: none; container-type: inline-size; }
body.desk .ticket .bigcode { font-size: 21cqw; line-height: 1.05; }
body.desk .wrap.lobby .ticket .tk-main small { font-size: 3.4cqw; }
body.desk .share-row { width: 100%; margin: 0; flex: none; }
body.desk .share-row .btn { min-height: clamp(46px, 6.4vh, 66px); font-size: clamp(15px, 1.9vh, 19px); }
body.desk .howto { display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.6vh, 18px); flex: 1; min-height: 0; width: 100%; list-style: none; counter-reset: st; margin: 0; padding: 10px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--night-800) 78%, transparent); }
.howto li { counter-increment: st; display: flex; align-items: center; gap: 12px; font-size: clamp(14px, 1.9vh, 19px); font-weight: 600; line-height: 1.3; }
.howto li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--gold); color: #2a1600; font-weight: 800; }
body.desk .lobby-side .bar { position: static; width: 100%; padding: 0; background: none; flex: none; }
body.desk .lobby-side .bar .btn { width: 100%; max-width: none; min-height: clamp(54px, 7.5vh, 78px); font-size: clamp(18px, 2.3vh, 24px); }
body.desk .wrap.lobby .panel { margin: 0; padding: 16px 20px; }
body.desk .wrap.lobby .ph h2 { font-size: 1.5rem; }
body.desk .lobby-main .panel:first-child { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.desk .lseats { flex: 1; min-height: 0; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; align-items: center; gap: 4px 8px; }
body.desk .lseat { --av: clamp(62px, 11.5vh, 124px); }
body.desk .lseat .avf { --s: var(--av) !important; }
body.desk .lseat .ghost, body.desk .lseat.empty .ghost, body.desk .lseat.addbot .ghost { width: var(--av); height: var(--av); font-size: calc(var(--av) * .36); }
body.desk .lseat b { font-size: clamp(13px, 1.7vh, 17px); }
body.desk .lseat small { font-size: clamp(11px, 1.3vh, 13px); margin-top: -4px; }
.lseat.free { opacity: .5; }
.lseat.free b { color: var(--text-mute); font-weight: 500; }
body.desk .tiles { gap: 10px; }
body.desk .tile { padding: clamp(8px, 1.4vh, 16px) 6px; gap: 3px; border-radius: 16px; }
body.desk .tile .ti-ic { font-size: clamp(24px, 3.4vh, 36px); }
body.desk .tile small { display: block; font-size: clamp(11.5px, 1.35vh, 14px); color: var(--text-mute); }
body.desk .tile b { font-size: clamp(13px, 1.65vh, 17px); }
body.desk .wrap.shop { max-width: 1100px; }
body.desk .wrap.shop .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* the game never scrolls on a computer: the table takes exactly what is left of the screen */
body.desk.at-table #app { height: 100dvh; min-height: 0; overflow: hidden; }
body.desk.at-table .page { min-height: 0; }
body.desk.at-table .felt { min-height: 0; overflow: hidden; }
body.desk .card.black.winq { padding: 30px 44px 20px; font-size: 1.35rem; line-height: 1.5; }
body.desk .win-by { margin-top: 6px; }
body.desk .phase-reveal .byc .acard:not(.pair) .aw { display: flex; align-items: center; justify-content: center; text-align: center; }
body.desk .others-h { position: relative; z-index: 1; color: var(--text); text-shadow: 0 1px 6px #000; }
body:has(.wrap.over.felt) #app { padding-bottom: 0; height: 100dvh; overflow: hidden; }

/* table chat bubbles open downward: the player row sits at the top of the screen, a long message going up was cut off */
.players.seats .pl .say { bottom: auto; top: calc(100% + 9px); max-width: min(260px, 70vw); z-index: 45; }
.players.seats .pl .say::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
.players.seats .pl .say-c { transform-origin: 50% 0; }

/* the crowd's pick on the round-win screen */
button.acard.vote { cursor: pointer; opacity: 1; font: inherit; color: inherit; transition: translate .15s var(--spring), box-shadow .15s; }
button.acard.vote:hover { translate: 0 -5px; }
button.acard.vote.voted { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(255, 215, 0, .65); }
.vcount { margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .92em; }
.vcount.top { background: var(--gold); color: #2a1600; }
.crowd-fav { margin: 4px 0 0; color: var(--gold); font-weight: 700; }

/* save a combination as a picture */
.byc, .card.black.winq { position: relative; }
.save-img { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 3; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 215, 0, .6); border-radius: 50%; background: rgba(7, 3, 26, .85); font-size: 16px; cursor: pointer; transition: scale .15s var(--spring); }
.save-img:hover { scale: 1.12; }
.card.black.winq .save-img { top: 10px; inset-inline-start: 10px; }
.save-last { display: block; margin: 8px auto 0; }
.who-kick { display: flex; width: 100%; justify-content: center; margin-top: 12px; }

/* Harel's notes 30.10.2026 */
.spec-says { translate: none; width: max-content; max-width: min(72vw, 280px); }
.spec-say { position: relative; font-size: 13px; line-height: 1.3; }
.spec-say::before { content: ''; position: absolute; bottom: 100%; left: var(--tx, 14px); border: 8px solid transparent; border-bottom-color: #fff; }
.spec-says .spec-say > span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.felt .status { z-index: 34; pointer-events: none; }
.acards.small .byc.two { grid-column: span 2; }
body.desk .phase-reveal .acards.small { gap: 12px 64px; max-width: calc(var(--oc) * 4 + 196px); margin-inline: auto; }
.swap-ico { position: absolute; right: 10px; bottom: calc(100% + 6px); z-index: 60; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 20px; border: 1.5px solid rgba(255, 215, 0, .7); border-radius: 50%; background: rgba(23, 10, 60, .92); cursor: pointer; pointer-events: auto; transition: scale .15s var(--spring); }
.swap-ico:hover { scale: 1.1; }
.players.seats .pl .kick { position: absolute; top: -7px; left: -5px; z-index: 3; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #b3263a; color: #fff; font-size: 12px; line-height: 22px; }
.wrap.home.invited { height: auto; min-height: 0; }
.home.invited .hero-cards { height: clamp(112px, 16dvh, 150px); }
.home.invited .panel.stack { padding: 10px 14px; margin-bottom: 8px; }
.home.invited .rooms-panel { min-height: 260px; }
.save-img { top: -8px; inset-inline-start: -6px; width: 26px; height: 26px; font-size: 12px; }
.card.black.winq .save-img { top: 8px; inset-inline-start: 8px; width: 32px; height: 32px; font-size: 15px; }
body.desk .players.seats.one-row { flex-wrap: nowrap; }
body.desk .table-body:has(.acards.small .byc:nth-child(9)) { justify-content: flex-start; overflow-y: auto; scrollbar-width: none; }
body.desk.at-table #app { max-width: 1400px; }
body.desk .players.seats.one-row:has(.pl:nth-child(6)) .mh { display: none; }

/* every sentence of the game */
.log-all { width: 100%; margin-bottom: 10px; }
.game-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.game-log li { position: relative; padding: 10px 40px 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 600; line-height: 1.5; text-align: right; }
.game-log .fill, .game-log .a { padding: 1px 7px; margin: 0 1px; border-radius: 7px; background: var(--paper); color: var(--ink); font-weight: 800; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.game-log .a { display: table; margin-top: 4px; }
.game-log small { display: block; margin-top: 3px; color: var(--gold); font-weight: 700; }
.game-log .save-img { top: 8px; right: 8px; left: auto; inset-inline-start: auto; }

/* the top-left button is the game's own: back to the main menu; the circle's site moved to the settings */
.tb-logo { padding: 0; border: 0; background: none; cursor: pointer; }
.tb-logo img, .topbar .tb-logo img { width: 42px; height: 42px; border-radius: 11px; }
@media (max-width: 420px) { body.in-room .tb-logo { display: block; } .topbar .tb-logo img { width: 36px; height: 36px; } }
.game-log li { padding: 10px 14px 8px 42px; }
.game-log .save-img { top: 8px; right: auto; left: 8px; inset-inline-start: auto; inset-inline-end: 8px; }
.set-link { text-decoration: none; color: inherit; }

/* the vote for another game */
.bar.again .btn.in { background: rgba(255, 215, 0, .14); border: 1.5px solid var(--gold); color: var(--gold); }
.again-who { position: absolute; bottom: 100%; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 0 12px 4px; pointer-events: none; }
.aw-av { animation: pop .4s var(--spring) both; }
.bar.again { flex-wrap: wrap; }
.again-who { position: static; flex: 0 0 100%; padding: 0; }
body.desk .again-who { flex: none; }
body.desk .bar.again { flex-wrap: nowrap; align-items: center; }

/* room id with the spectators under it; open rooms: compact rows so more show without scrolling */
.tb-id { display: grid; line-height: 1.15; }
.tb-specs { font: 600 11.5px var(--font); color: var(--text-soft); white-space: nowrap; }
.home.has-rooms .hero-cards { height: clamp(104px, 15dvh, 140px); }
.home.has-rooms .rooms { gap: 5px; }
.home.has-rooms .room-row { padding: 5px 10px; min-height: 0; gap: 8px; }
.home.has-rooms .room-row .av, .home.has-rooms .room-row .avf { --s: 30px !important; width: 30px; height: 30px; }
.home.has-rooms .room-row small { font-size: 11.5px; line-height: 1.2; }
.home.has-rooms .room-row b { font-size: 14px; line-height: 1.2; }
.home.has-rooms .room-row .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.home.has-rooms .rooms-panel { min-height: 190px; padding: 10px 12px; }
body.desk .home.has-rooms .rooms { grid-template-columns: 1fr; }
.home.has-rooms .rooms { grid-auto-rows: 42px; align-content: start; }
.home.has-rooms .room-row { height: 42px; overflow: hidden; align-items: center; }
.home.has-rooms .room-row .btn { min-height: 0; height: 30px; padding: 0 11px; display: inline-flex; align-items: center; }

/* above the cards, at the side: "your cards" and the swap, nothing covers the pile */
.fan-label.hand-row { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding-inline: 8px; pointer-events: none; text-align: right; }
.fan.grid .fan-label.hand-row { top: -40px; }
.fan-label.hand-row .swap-ico { position: static; flex: none; width: 34px; height: 34px; color: #2a1600; background: var(--gold); border: 1.5px solid #fff3c4; box-shadow: 0 3px 8px #000; }
.swap-ico svg { width: 19px; height: 19px; }
.fan.desk .fan-label.hand-row { top: -46px; padding-inline: 22px; }
.tb-specs { font-size: 11px; }
.fan.grid .fan-label.hand-row { top: -6px; }
@media (max-width: 420px) {
  body.in-room .tb-room { flex: 1 1 0; min-width: 0; }
  .tb-id { min-width: 0; }
  .tb-specs { overflow: hidden; text-overflow: ellipsis; }
}

/* the shop: sections, what's mine, and frames that climb with the price (30.10.2026) */
.shop-sec { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 10px; font: 700 1.2rem var(--hand); color: #fff; }
.shop-sec small { font: 600 13px var(--font); color: var(--text-mute); }
.shop-sec.sec-t2 { color: #9fd0ff; } .shop-sec.sec-t3 { color: #c9a7ff; } .shop-sec.sec-t4 { color: var(--gold); font-size: 1.45rem; }
.shop-none { padding: 40px 12px; }
.frame-card { position: relative; }
.frame-card.mine::before { content: '✓ שלך'; position: absolute; top: 6px; inset-inline-start: 6px; z-index: 5; padding: 1px 7px; border-radius: 999px; background: #1f8f4e; color: #fff; font: 700 11px var(--font); }
.frame-card.ct2 { border-color: rgba(159, 208, 255, .4); background: rgba(95, 165, 255, .07); }
.frame-card.ct3 { border-color: rgba(201, 167, 255, .6); background: linear-gradient(160deg, rgba(124, 77, 255, .22), rgba(124, 77, 255, .05)); }
.frame-card.ct4 { border: 2px solid transparent; background: linear-gradient(160deg, #33176e, #160a35) padding-box, conic-gradient(from 0deg, #ffd700, #fff5c2, #ff7ac6, #7c4dff, #4fa8ff, #ffd700) border-box; padding-block: 24px 14px; }
.frame-card.ct4 b { color: var(--gold); font-size: 15px; }
.shop-grid.legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avf.t2 { animation: frBreath 2.8s ease-in-out infinite; }
.avf.t3 { animation: frBreath 2s ease-in-out infinite; }
.avf.t4 { isolation: isolate; animation: frBreath 1.6s ease-in-out infinite; }
@keyframes frBreath { 50% { filter: brightness(1.16) saturate(1.2); } }
.avf-orbit { position: absolute; inset: -10%; z-index: 4; border-radius: 50%; pointer-events: none; animation: spinSlow 5s linear infinite; }
.avf-orbit::before, .avf-orbit::after { content: ''; position: absolute; width: calc(var(--s) * .08); height: calc(var(--s) * .08); border-radius: 50%; background: #fff; box-shadow: 0 0 calc(var(--s) * .1) calc(var(--s) * .03) var(--glow, #ffd700); }
.avf-orbit::before { top: 0; left: 46%; }
.avf-orbit::after { bottom: 4%; right: 16%; }
.t4 .avf-orbit { animation-duration: 3s; inset: -14%; }
.avf-rays { position: absolute; inset: -34%; z-index: -1; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(var(--glow, #ffd700) 0 9deg, transparent 9deg 30deg); -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%); opacity: .7; animation: spinSlow 14s linear infinite; }
@media (prefers-reduced-motion: reduce) { .avf.t2, .avf.t3, .avf.t4, .avf-orbit, .avf-rays { animation: none !important; } }
/* the shop is one page that scrolls, the sections follow each other */
.wrap.shop { height: auto !important; min-height: 0; overflow: visible; display: block; }
.shop-grid { flex: none; overflow: visible; }

/* 30.10.2026: the answers turn over one by one; reactions; end-of-game titles; weekly challenges; earned frames; manage */
body.fx-ph .phase-judge .acards .acard { animation-delay: calc(var(--ph) + 150ms + var(--i, 0) * var(--st, 200ms)); }
.phase-reveal .table-body { padding-bottom: 58px; }     /* the reaction row floats above the bar: room for it, so it never hides who played what (Olaf 5.11.2026) */
.react-row { position: absolute; bottom: 100%; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding-bottom: 6px; pointer-events: none; }
.react-row button { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 215, 0, .4); border-radius: 50%; background: rgba(14, 6, 41, .85); font-size: 22px; cursor: pointer; pointer-events: auto; transition: scale .12s var(--spring); }
.react-row button:active { scale: 1.3; }
.react-fly { position: fixed; bottom: 90px; z-index: 45; font-size: 40px; pointer-events: none; animation: reactUp 2.5s ease-out forwards; }
@keyframes reactUp { 0% { translate: 0 0; scale: .6; opacity: 0; } 12% { scale: 1.2; opacity: 1; } 100% { translate: 0 -60vh; scale: 1; opacity: 0; } }
.award-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 8px; margin-top: 6px; }
.award-row span { padding: 2px 10px; border: 1px solid rgba(255, 215, 0, .4); border-radius: 999px; background: rgba(14, 6, 41, .6); color: #fff; font-size: 12.5px; font-weight: 600; }
.award-row b { color: var(--gold); }
.quests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 10px; }
.quest { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 10px 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 600; }
.quest small { color: var(--gold); white-space: nowrap; }
.quest i { position: absolute; inset: auto 0 0 auto; width: calc(var(--p) * 100%); height: 3px; background: var(--gold); }
.quest.done { border-color: #2fbf71; } .quest.done small { color: #5de09a; } .quest.done i { background: #2fbf71; }
.earn-lock { display: grid; justify-items: center; font-size: 12.5px; font-weight: 700; color: #ffe08a; text-align: center; line-height: 1.25; }
.earn-lock small { color: var(--text-soft); font-weight: 600; }
.stat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.stat-list li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.stat-list small { color: var(--text-soft); white-space: nowrap; }
.hall-list { margin-top: 4px; }

/* tasks and achievements */
.tabbar { grid-template-columns: repeat(6, 1fr); padding-inline: 4px; }
.tabbar button { font-size: 11.5px; min-width: 0; }
.wrap.tasks .panel h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.wrap.tasks .panel h2 small { font: 600 13px var(--font); color: var(--text-mute); }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.task + .task { border-top: 1px solid var(--line); }
.task b { display: block; font-size: 15px; }
.task small { display: block; color: var(--text-soft); font-size: 13px; }
.task-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; color: #fff; font-weight: 800; }
.task.done .task-ic { border-color: #2fbf71; background: #1f8f4e; }
.task-bar { display: block; height: 5px; margin-top: 5px; border-radius: 9px; background: linear-gradient(90deg, var(--gold) calc(var(--p) * 100%), rgba(255, 255, 255, .12) 0); direction: ltr; }
.task.done .task-bar { background: #2fbf71; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ach { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .04); text-align: center; opacity: .72; }
.ach.done { opacity: 1; border-color: var(--gold); background: rgba(255, 215, 0, .08); }
.ach-ic { font-size: 30px; line-height: 48px; }
.ach b { font-size: 13px; line-height: 1.25; }
.ach small { color: var(--text-soft); font-size: 11.5px; line-height: 1.25; }
.tasks-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; width: 100%; margin: 0 0 10px; padding: 10px 14px; border: 1px solid rgba(255, 215, 0, .35); border-radius: 16px; background: rgba(255, 215, 0, .06); color: #fff; text-align: center; font: 600 14px var(--font); cursor: pointer; }
.tasks-sum b { color: var(--gold); font-size: 1.2rem; }
.tasks-sum small { grid-column: 1 / -1; color: var(--text-soft); }
/* the pencil sits in the one corner no frame decorates */
.av-edit .pen { top: 0; bottom: auto; left: 0; z-index: 6; }

/* the voice room */
.tb-voice { position: relative; flex: none; width: 40px; height: 40px; padding: 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.tb-voice svg { width: 100%; height: 100%; }
.tb-voice.on { background: #1f8f4e; border-color: #5de09a; }
.tb-voice.on.muted { background: #8a2433; border-color: #ff9fb0; }
.tb-voice .badge { position: absolute; top: -4px; right: -4px; }
.voice-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.voice-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.voice-list small { color: var(--text-soft); }
.in-voice { box-shadow: 0 0 0 2px #2fbf71; }
.lseat.in-voice { box-shadow: none; }
.lseat.in-voice .lav { box-shadow: 0 0 0 3px #2fbf71; border-radius: 50%; }
.in-voice.v-muted { box-shadow: 0 0 0 2px #e0566f; }
.lseat.in-voice.v-muted { box-shadow: none; } .lseat.in-voice.v-muted .lav { box-shadow: 0 0 0 3px #e0566f; }
@media (max-width: 420px) { body.in-room .tb-logo { display: none; } }

/* reports, numbers, the end-screen links */
.over-links { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.num-box { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.num-box b { font: 800 1.5rem var(--font); color: var(--gold); }
.num-box small { color: var(--text-soft); font-size: 12px; line-height: 1.2; }
.rep-dev { display: block; font-size: 11px; word-break: break-all; margin-bottom: 6px; }

/* pop-ups grew from the right: the `scale` property runs on top of a centring transform and pulled the box aside */
.dlg { transform: none; translate: -50% -50%; }
.solo-prize { margin: 4px 0 0; color: var(--gold); font-weight: 700; }

/* the end screen, 1.11.2026: a real stage for the winner, titles as small cards, the closing sentence as a card */
.wrap.over { display: flex; flex-direction: column; gap: 10px; }
.over-head h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); text-shadow: 0 4px 14px #000; }
.over-head p { font-size: 14px; }
.podium { position: relative; margin: 26px 0 0; }
.over-rays { position: absolute; left: 50%; top: 34%; width: 150%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(rgba(255, 215, 0, .3) 0 10deg, transparent 10deg 30deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spinSlow 30s linear infinite; }
.wrap.over .podium { isolation: isolate; }
.pod .step { padding: 26px 4px 8px; }
.pod-2 .step { height: 104px; }
.pod-3 .step { height: 88px; }
.pod-1 .step { height: 140px; }
.pod .place { top: 5px; right: 6px; }
.pod-1 .avf { filter: drop-shadow(0 0 18px rgba(255, 215, 0, .7)); }
.award-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.award-row span { display: grid; justify-items: center; align-content: start; gap: 1px; padding: 6px 4px; border-radius: 12px; border: 1px solid rgba(255, 215, 0, .35); background: rgba(14, 6, 41, .62); font-size: 12px; line-height: 1.2; text-align: center; min-width: 0; }
.award-row i { font-style: normal; font-size: 18px; line-height: 1.2; }
.award-row small { color: var(--text-soft); font-size: 11px; }
.award-row b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.over .score-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.over .score-list li { padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 13px; }
.final { margin: 2px 0 0; gap: 4px; width: 100%; }
.card.black.end-q { width: 100%; font-size: clamp(.98rem, 4vw, 1.2rem); line-height: 1.55; padding: 14px 16px 10px; }
.end-q .win-by { margin-top: 4px; font-size: 13px; }
.over-links { margin: 0; gap: 8px; }
.over-links .link { padding: 7px 14px; border: 1px solid rgba(255, 215, 0, .4); border-radius: 999px; background: rgba(14, 6, 41, .6); color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 700; }
.bar.again { flex-wrap: wrap; }
.wrap.over.tight .over-head h1 { font-size: 1.8rem; }
.wrap.over.tight .pod-1 .step { height: 104px; } .wrap.over.tight .pod-2 .step { height: 84px; } .wrap.over.tight .pod-3 .step { height: 72px; }
.wrap.over.tight .award-row i { display: none; }
body.desk .wrap.over.felt { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; gap: 8px 36px; align-items: center; }
body.desk .wrap.over .over-head { grid-column: 1 / -1; }
body.desk .wrap.over .podium { grid-column: 1; grid-row: 2; }
body.desk .wrap.over .final { grid-column: 2; grid-row: 2; margin: 0; }
body.desk .wrap.over .score-list { grid-column: 1; grid-row: 3; }
body.desk .card.black.end-q { font-size: 1.4rem; padding: 26px 26px 18px; }
body.desk .award-row { max-width: 620px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .over-rays { animation: none; } }

/* the end screen, the design notes: one gold, room to breathe, ghost buttons */
.wrap.over { --gold-top: #ffe873; --gold-end: #ffc21a; }
body:not(.desk) .wrap.over { min-height: calc(100dvh - 170px); justify-content: center; gap: 14px; }
.over-head p { text-shadow: 0 1px 6px #000, 0 0 2px #000; color: #efe8ff; }
.podium, .wrap.over .podium { margin-top: 34px; }
.pod-1 .step { background: linear-gradient(180deg, var(--gold-top), var(--gold-end)); }
.pod .place { top: 6px; right: 7px; }
.pod b { max-width: calc(100% - 10px); }
.over-links .link { border-radius: 12px; border-color: rgba(255, 255, 255, .28); background: rgba(14, 6, 41, .55); color: #fff; padding: 8px 14px; }
.bar.again .btn.go { background: linear-gradient(180deg, #ffe873, #ffc21a); color: #2a1600; }
.again-ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; margin-inline-end: 4px; }
body:not(.desk) .wrap.over { min-height: calc(100dvh - 190px); }

/* Harel's bugs 4.11.2026 */
.tb-specs { line-height: 1.25; }
.balloon { z-index: 0; }
#app { position: relative; z-index: 1; }
.topbar { z-index: 38; }
.players.seats { z-index: 36; }
.players.seats .pl .say.stk { top: calc(100% - 16px); }
.say.stk .sticker { width: 34px; height: 34px; }
.pod, .over .score-list li { cursor: pointer; position: relative; }
.pod .say, .over .score-list li .say { position: absolute; z-index: 45; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 170px; padding: 6px 10px; border-radius: 14px; background: #fff; color: var(--ink);
  font: 700 13px/1.3 var(--font); text-align: right; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); pointer-events: none; animation: say 6.5s ease both; }
.pod .say.stk, .over .score-list li .say.stk { padding: 2px; background: none; box-shadow: none; }
.menu > * { padding: 8px 12px; border-radius: 14px; }
.menu > * > span { font-size: 20px; }
.menu b { font-size: 14.5px; } .menu small { font-size: 12px; }

/* voice: a green ring on whoever talks, a level meter for my own mic */
.tb-voice.talk { box-shadow: 0 0 0 3px #5de09a, 0 0 14px #2fbf71; }
.players.seats .pl.v-talk { box-shadow: 0 0 0 3px #5de09a, 0 0 16px rgba(47, 191, 113, .8); }
.lseat.v-talk .lav { box-shadow: 0 0 0 4px #5de09a, 0 0 16px rgba(47, 191, 113, .8); border-radius: 50%; }
.voice-list li.v-talk { border-color: #5de09a; background: rgba(47, 191, 113, .12); }
.mic-meter { display: grid; gap: 6px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.mic-meter i { display: block; height: 8px; border-radius: 9px; background: linear-gradient(90deg, #2fbf71 calc(var(--l, 0) * 100%), rgba(255, 255, 255, .12) 0); direction: ltr; transition: background .1s; }
.mic-meter.off i { opacity: .35; }

/* the voice room: invite to whoever is outside it, a volume slider per person */
.v-invite { position: fixed; z-index: 60; top: calc(74px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; width: min(92vw, 380px); display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #5de09a; border-radius: 16px;
  background: rgba(14, 6, 41, .96); box-shadow: 0 10px 30px #000; text-align: center; animation: rise .4s var(--out) both; }
.v-invite span { color: var(--text-soft); font-size: 13px; }
.v-invite div { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.voice-list li { display: grid; gap: 6px; }
.v-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v-vol { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.v-vol input { flex: 1; accent-color: #2fbf71; }

/* 18+ */
.btn.hide { display: none; }
.adult-row b { color: #ff9fb0; }
.tiles { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
/* picture cards (memes): the picture fills the white card, and sits small inside a sentence */
img.meme { display: block; max-width: 100%; max-height: 100%; margin: auto; border-radius: 8px; object-fit: contain; pointer-events: none; user-select: none; }
.ft.pic, .slot.pic, .aw:has(> img.meme) { display: flex; align-items: center; justify-content: center; }
.fcard .ft.pic { flex: 1; min-height: 0; -webkit-line-clamp: unset; }
.ft.pic img.meme { width: 100%; height: 100%; max-height: 100%; }
.aw img.meme { max-height: 70%; }
.slot.bigslot.full.pic { padding: 30px 8px 10px; }
.fill.has-meme { padding: 2px; background: none; }
.fill.has-meme img.meme { display: inline-block; height: 3.4em; width: auto; vertical-align: middle; border: 2px solid var(--gold); }
.a img.meme { max-height: 200px; margin-top: 8px; border: 3px solid var(--gold); }
.slot:not(.bigslot) img.meme { display: inline-block; height: 2.4em; width: auto; vertical-align: middle; }
.ed-t img.meme { max-height: 90px; margin: 0; }
.card.white img.meme { max-height: 220px; }

/* the management screens, made for the phone (Harel 5.11.2026): a small title, all sections in an even 3-column grid, slim buttons, the cards start high */
.editor .brand.slim { margin: 0 0 8px; }
.editor .brand.slim h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.editor .brand.slim .eyebrow { display: none; }
.mgmt-tabs { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mgmt-tabs button { min-height: 40px; padding: 6px 4px; font-size: 13.5px; line-height: 1.15; white-space: nowrap; }
.mgmt-tabs small { min-width: 18px; height: 18px; font-size: 11px; vertical-align: 1px; }
.editor .kind { gap: 8px; }
.editor .kind button { min-height: 0; padding: 8px 10px; border-width: 2px; font-size: 15px; }
.editor .kind small { margin-top: 1px; font-size: 12px; }
.editor .ed-note { font-size: 12.5px; margin: 0 0 8px; }
.editor .ed-packs button { padding: 5px 2px; }
@media (min-width: 760px) { .mgmt-tabs { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }

/* the round-win screen on a phone (5.11.2026): "who played what" sits above the balloon burst, and one to three cards stand in the middle, not at the edge */
.phase-reveal .others-h, .phase-reveal .acards.small { position: relative; z-index: 1; }
.phase-reveal .others-h { text-shadow: 0 1px 6px #000; }
@media (max-width: 480px) {
  .phase-reveal .acards.small { display: flex; flex-wrap: wrap; justify-content: center; }
  .phase-reveal .acards.small .byc { width: calc(25% - 5px); }
  .phase-reveal .acards.small .byc.two { width: calc(50% - 3px); }
}
/* a meme as the answer under a question with no blank (5.11.2026): the pill has no width of its own, so "100%" made the picture 0 wide; it takes its own size, capped */
.a:has(> img.meme) { padding: 0; background: none; box-shadow: none; }
.a > img.meme { width: auto; height: auto; max-width: min(240px, 66vw); max-height: 180px; }
/* a tall round-win screen on a phone (two-answer questions): the table scrolls inside the felt, so the last names come out from under the reactions */
@media (max-width: 480px) {
  body:not(.desk) .felt.phase-reveal { display: flex; flex-direction: column; }
  body:not(.desk) .felt.phase-reveal > .table-body { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  body:not(.desk) .felt.phase-reveal > .table-body::-webkit-scrollbar { display: none; }
  body:not(.desk) .felt.phase-reveal > .table-body::after { content: ""; flex: none; height: 52px; }     /* a flex scroller drops its bottom padding: a spacer keeps the room for the reactions */
}
/* a two-answer question: the second face-down card lands a beat later, a little off the first */
.cback.b2 { margin-left: -17px; margin-top: 7px; rotate: 6deg; }
.cback.b2.new { animation-delay: .14s; }

/* host room panel (5.11.2026) */
.tb-manage { font-size: 18px; }
.mg-sec { margin: 14px 0; display: grid; gap: 8px; }
.mg-sec h3 { margin: 0; font-size: 16px; }
.mg-sec .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-sec .chips button.on { background: var(--accent, #ffcc33); color: #1a1030; font-weight: 800; }
.mg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mg-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); }
.mg-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mg-who b { overflow-wrap: anywhere; }
.mg-tag { font-style: normal; font-size: 11px; padding: 2px 6px; border-radius: 999px; background: #b3263a; color: #fff; }
.mg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mg-acts button { min-width: 36px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); padding: 0 8px; font: inherit; font-size: 14px; }
.mg-acts .mg-kick { background: #b3263a; color: #fff; border-color: transparent; }
.mg-sc { min-width: 22px; text-align: center; font-weight: 800; }
.mg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
/* the cards on the table (judge, reveal, end): a meme fills its card so the words in the picture can be read (Daniel 5.11.2026). Same card size, less frame padding, no 70% cap */
.acard .aw:has(> img.meme) { padding: 4cqw !important; display: flex; align-items: center; justify-content: center; }
.acard.pair .aw:has(> img.meme) { padding: 3cqw !important; }
.acard .aw > img.meme { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.acard.pair .aw:has(> img.meme) > i { position: absolute; top: 4px; inset-inline-start: 4px; margin: 0; z-index: 1; }
/* a meme picked from the hand: shown big under the question so its words can be read before sending (Daniel 5.11.2026) */
.zmeme { background: #fffaf0; border-radius: 14px; padding: 8px; box-shadow: 0 0 0 3px var(--gold), 0 18px 30px -12px #000; animation: lift .35s cubic-bezier(.2, 1.3, .4, 1); }
.zmeme img.meme { width: 100%; height: auto; max-height: 52dvh; object-fit: contain; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .zmeme { animation: none; } }
/* a meme in the hand: less frame padding so the picture is bigger, same card size (5.11.2026) */
.fcard:has(> .ft.pic), .fan.grid .fcard:has(> .ft.pic) { padding: calc(var(--cw) * .05); }

/* a meme in the hand opens big (not quite full screen): small question on top, the picture framed tight, buttons under it */
.zoom.zm { padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.zoom.zm .zoom-in { width: min(100%, 680px); gap: 12px; justify-items: center; }
.zoom.zm .zq { width: 100%; font-size: clamp(.95rem, 3.8vw, 1.2rem); padding: 12px 14px; padding-inline-end: 58px; }
.zoom.zm .zmeme { padding: 6px; max-width: 100%; }
.zoom.zm .zmeme img.meme { display: block; width: auto; height: auto; max-width: 100%; max-height: min(64dvh, calc(100dvh - 250px)); object-fit: contain; }
.zoom.zm .stack { width: 100%; gap: 8px; }
@media (min-width: 700px) { .zoom.zm .stack { display: flex; justify-content: center; } .zoom.zm .stack .btn { flex: 0 1 280px; } .zoom.zm .stack > * + * { margin-top: 0; } }

/* the room's history inside the chat, like a WhatsApp group: a small centered line */
.msg-sys { display: flex; justify-content: center; margin: 6px 0; }
.msg-sys span { max-width: 92%; padding: 4px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
