/* משחק הגברממים: the 17.11.2026 upgrade layer (Daniel's full review: "קפיצת מדרגה ... מובייל ודסקטופ").
   Loaded after game.css and bright.css. What lives here:
   - the top bar's round steps and a title that never cuts on a narrow phone
   - menus with icons, real switches, an illustrated "איך משחקים?"
   - writing: openings for a blank caption, who we still wait for
   - rating: the player's own meme with the judge, keyboard hints on a laptop
   - a laptop is its own layout (min-width 900px): home, lobby with the code on screen, rating, recap, podium
   - party pieces (Flow art ui/p-*.webp): bursts and the podium's rain
   Colours and radii come from bright.css tokens; motion from its --m-* curves. */

/* ================================================================ the top bar */
.bar__top { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 16px; max-width: 100%; }
.bar__count { white-space: nowrap; }
.bar__pips { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.bar__pips i { display: block; width: 12px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .24);
  transition: background-color 240ms var(--ease-out), width 240ms var(--ease-out); }
.bar__pips i.is-done { background: var(--lime); }
.bar__pips i.is-on { width: 22px; background: var(--sun); }
.bar__title { font-size: clamp(15px, 4.5vw, 19px); }
@media (max-width: 380px) {
  .bar__pips i { width: 9px; } .bar__pips i.is-on { width: 16px; } .bar__count { font-size: 12px; }
  /* a 360 px phone: narrower sides give the phase title the room it needs */
  .bar__side { width: 94px; }
  .bar__btn, .bar__menu { width: 46px; min-width: 46px; }
  .bar__title { font-size: 15px; }
}

/* ================================================================ sheets: menu rows, switches, how to play */
.menu { gap: 2px; }
.menu__i { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 8px; border-radius: 14px; border-bottom-color: transparent;
  transition: background-color 120ms ease; }
.menu__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .10); }
.menu__ic:empty { display: none; }
.menu__img { width: 28px; height: 28px; object-fit: contain; }
.menu__t { flex: 1; min-width: 0; text-align: start; font-weight: 800; font-size: 17px; }
.menu__i.is-danger .menu__ic { background: rgba(255, 61, 99, .2); }
.menu__i:active { background: rgba(255, 255, 255, .10); }
@media (hover: hover) and (pointer: fine) { .menu__i:hover { background: rgba(255, 255, 255, .07); } }
#soundBtn[aria-pressed="false"] .menu__t { color: var(--ink-3); }

.who__row { gap: 12px; min-height: 60px; }
.who__tag { border: 0; border-radius: 8px; padding: 1px 8px; background: var(--sun); color: #3a2600; box-shadow: 0 2px 0 var(--sun-d); }

/* a switch, not a checkbox: the knob sits at the start when off and slides to the end when on */
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 56px; height: 32px; margin: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .2); cursor: pointer; transition: background-color 160ms var(--ease-out); }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28); transition: transform 200ms var(--ease-out); }
.switch:checked { background: var(--lime); }
.switch:checked::after { transform: translateX(-24px); }
[dir="ltr"] .switch:checked::after { transform: translateX(24px); }
.switch:active::after { width: 30px; }
.toggle { gap: 14px; padding: 12px 0; }
.toggle__l b { font-size: 16px; }
.toggle__l span { line-height: 1.35; }

.howto { gap: 8px; }
.howto .how { position: relative; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.how__art { flex: none; display: grid; place-items: center; width: 68px; height: 68px; }
.how__art:empty { display: none; }
.how__img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.howto .how__n { border: 0; border-radius: 50%; background: var(--sun); color: #3a2600; font-weight: 900; box-shadow: 0 2px 0 var(--sun-d); }
.how__art:not(:empty) + .how__n { position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; font-size: 13px; }
.how__t { line-height: 1.4; }

/* ================================================================ the lobby */
.lobby__modenote { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); text-wrap: balance; }
.setchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.setchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.setchip--mode { background: var(--sun); color: #3a2600; box-shadow: 0 2px 0 var(--sun-d); }
.setchip__img { width: 20px; height: 20px; object-fit: contain; }
.lpanel--join { display: none; }
.join__code { font: 900 56px/1 Heebo, sans-serif; color: var(--sun); letter-spacing: .08em; direction: ltr; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.join__qr { width: 176px; height: 176px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--soft-shadow); }
.join__note { margin: 0; font-size: 13px; color: var(--ink-2); text-wrap: balance; }

/* ================================================================ writing */
.starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.starter { position: relative; min-height: 36px; padding: 4px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff;
  font: 700 14px/1 Heebo, sans-serif; transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.starter::after { content: ''; position: absolute; inset: -4px 0; }   /* a 44 px touch area around a 36 px chip */
.starter:active { transform: scale(.95); background: rgba(255, 255, 255, .26); }
@media (hover: hover) and (pointer: fine) { .starter:hover { background: rgba(255, 255, 255, .24); } }
html.kb .starters { display: none; }
@media (max-height: 720px) and (max-width: 899px) { .starters { display: none; } }
.sent__fun { flex-basis: 100%; margin: -2px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.count__wait { font-size: 14px; font-weight: 800; color: var(--sun); }

/* ================================================================ rating */
.vote__head { display: contents; }
.vote__mine { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 4px 0; text-align: start; }
.vote__judge { flex: none; width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); animation: bob 3.4s var(--ease-in-out) infinite; }
.vote__minet { display: flex; flex-direction: column; gap: 2px; }
.vote__minet b { font-size: 18px; font-weight: 900; color: var(--sun); }
.vote__minet span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
@media (max-height: 680px) and (max-width: 899px) { .vote__judge { width: 56px; height: 56px; } }
.rate__key { display: none; }

/* ================================================================ party pieces */
.fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; contain: strict; }
.fx__p, .fx__r { position: absolute; width: var(--sz, 24px); height: var(--sz, 24px); object-fit: contain; will-change: transform, opacity; }
.fx__p { margin: calc(var(--sz, 24px) / -2) 0 0 calc(var(--sz, 24px) / -2); animation: fxBurst 900ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes fxBurst {
  0% { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  68% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 64px)) scale(1) rotate(var(--rot)); opacity: 0; }
}
.fx__r { top: 0; animation: fxRain 3600ms linear both; }
@keyframes fxRain {
  0% { transform: translate(0, -12vh) rotate(0deg); opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(var(--sway), 116vh) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx { display: none; } .vote__judge { animation: none; } }

/* ================================================================ the podium's table (a laptop shows it; see below) */
.fin__side { display: none; }

/* ================================================================ the home */
.home__tag { display: none; margin: 6px 0 0; max-width: 30ch; text-align: center; color: var(--ink-2); font-size: 15px; font-weight: 700; text-wrap: balance; }
.home__steps { display: none; }
@media (min-height: 800px) and (max-width: 899px) { .home__tag { display: block; } .home.has-mine .home__tag { display: none; } }

/* ================================================================================================================
   A LAPTOP OR A DESKTOP (min-width 900px, a mouse): each screen is laid out for the width, not stretched from the phone
   ================================================================================================================ */
@media (min-width: 900px) {
  /* ---- the home: the brand and how the game goes on one side, who I am and the two choices on the other */
  .app:has(.stage--home) { max-width: 1100px; }
  .stage--home { overflow: hidden; }
  .home { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); align-items: center; column-gap: 56px; padding-inline: 12px; }
  .home__top { grid-column: 1; align-self: center; }
  .home__brand { width: 100%; }
  .home__main { grid-column: 2; margin-block: 0; width: 100%; }
  .home__mc { width: clamp(120px, 22vh, 210px); }
  .home__title { font-size: clamp(44px, 5.2vw, 66px); line-height: 1; }
  .home__tag { display: block; max-width: 36ch; font-size: 19px; }
  .home__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 540px; margin-top: 26px; }
  .hstep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px;
    background: var(--panel); border: 2px solid var(--panel-line); box-shadow: var(--soft-shadow); text-align: center; }
  .hstep__art { display: grid; place-items: center; height: 88px; }
  .hstep__art:empty { display: none; }
  .hstep__img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
  .hstep__n { position: absolute; top: -10px; inset-inline-start: -8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--sun); color: #3a2600; font-weight: 900; font-size: 15px; box-shadow: 0 3px 0 var(--sun-d); }
  .hstep__t { font-weight: 800; font-size: 15px; text-wrap: balance; }
  .home .tiles { flex-direction: column; }
  .home .tile { min-height: 124px; flex: none; }
  .home.has-mine .tiles { flex-direction: row; }
  .home.has-mine .tile { min-height: 104px; flex: 1 1 0; }
  .home__site { font-size: 15px; }
  .home__bottom { justify-content: flex-start; padding-inline: 12px; }

  /* ---- the lobby: the players, the settings, and the code with its QR always on the screen */
  .lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 264px; grid-template-rows: auto 1fr auto; gap: 16px 18px; }
  .lobby__head { grid-column: 1 / -1; }
  .lpanel--players { grid-column: 1; grid-row: 2; align-self: start; }
  .lpanel--set { grid-column: 2; grid-row: 2; align-self: start; }
  .lpanel--join { grid-column: 3; grid-row: 2; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px 16px; text-align: center; }
  .lpanel--join .lpanel__title { margin: 0; }
  .lobby__go { grid-column: 1 / -1; }
  .lobby__title { font-size: 28px; }
  .lobby .codechip, .lobby #showCode { display: none; }      /* the code is in its own panel */
  .lobby .invite { grid-template-columns: 1fr; }
  .lobby__mc { height: 190px; }
  .setchips { gap: 8px; }
  .setchip { min-height: 36px; font-size: 15px; }
  .lpanel { padding: 14px 16px; }
  .lpanel__title { font-size: 18px; }

  /* ---- the round intro and the pause: bigger, in the middle */
  .intro__art { width: min(34vh, 260px); }
  .intro__name { font-size: 48px; }
  .intro__rule { font-size: 19px; }
  .paused__mc { width: 220px; }

  /* ---- writing: a little more air; the openings sit in one row */
  .write { column-gap: 32px; }
  .write__side { max-width: 480px; width: 100%; justify-self: center; }
  .starter { font-size: 15px; min-height: 38px; }

  /* ---- rating: the meme on one side, the decision on the other */
  .vote { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 32px; row-gap: 8px; }
  .vote__head { display: flex; flex-direction: column; gap: 8px; grid-column: 2; grid-row: 1; }
  .vote__stage { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
  .vote__bottom { grid-column: 2; grid-row: 2; align-self: center; width: 100%; max-width: 460px; margin-inline: auto; gap: 14px; }
  .vote__hint { margin: 0; text-align: start; }
  .rates { width: 100%; padding: 18px 12px 14px; border-radius: 30px; }
  .rate img { width: 96px; height: 96px; }
  .rate[data-v="0"] img { width: 80px; height: 80px; margin: 8px 0; }
  .rate span { font-size: 16px; }
  .betbtn { min-height: 52px; font-size: 17px; }
  .vote__mine { flex-direction: column; gap: 6px; text-align: center; }
  .vote__judge { width: min(26vh, 200px); height: min(26vh, 200px); }
  .vote__minet { align-items: center; }
  .vote__minet b { font-size: 24px; }
  .vote__minet span { font-size: 16px; }
  body:not(.is-tv) .nextcard { inset: 0; margin: auto; width: min(100%, 560px); height: min(100%, 520px); border-radius: 24px; }
  .again .meme { max-height: calc(var(--vvh) * .56); }

  /* ---- the recap: the winner on one side; the player's own meme and the table together on the other */
  .recap { grid-template-rows: auto; grid-auto-rows: auto; align-content: center; row-gap: 12px; column-gap: 36px; }
  .recap__title { font-size: 32px; margin-bottom: 4px; }
  .recap__best { grid-row: 2 / span 4; }
  .recap .table { margin-top: 0; padding: 10px 14px; }
  .recap .table__row { min-height: 38px; font-size: 17px; }
  .recap__you { font-size: 16px; }
  .recap > .quiet { justify-self: center; }

  /* ---- the podium: the stage on one side, the whole table and the buttons on the other */
  .fin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 380px); grid-template-rows: 1fr auto 1fr; column-gap: 44px; align-items: center; }
  .fin__main { grid-column: 1; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; }
  .fin__mc { width: clamp(64px, 12vh, 110px); height: clamp(64px, 12vh, 110px); }
  .fin__title { font-size: 34px; }
  .fin .podium { max-width: min(480px, 62vh); }
  .fin__side { display: block; grid-column: 2; grid-row: 1; align-self: end; width: 100%; }
  .fin__table { margin: 0; padding: 10px 14px; }
  .fin__table .table__row { min-height: 36px; font-size: 16px; }
  .fin__actions { grid-column: 2; grid-row: 2; margin-top: 14px; align-self: start; }
  .fin:not(:has(.fin__side)) .fin__actions { grid-row: 1 / 4; align-self: center; }

  /* ---- sheets are windows in the middle of the screen */
  body:not(.is-tv) .sheet { width: min(560px, 92vw); }
}
/* the lobby's third column needs the room; a narrow laptop window keeps two columns and the code button */
@media (min-width: 900px) and (max-width: 1019px) {
  .lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .lpanel--join { display: none; }
  .lobby .codechip { display: flex; }
  .lobby #showCode { display: inline-flex; }
  .lobby .invite { grid-template-columns: 1fr 1fr; }
}
/* the number keys rate on a real keyboard */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .rate__key { display: grid; place-items: center; min-width: 24px; height: 22px; margin-top: 4px; padding: 0 6px; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: var(--ink-2); font: 800 12px/1 Heebo, sans-serif; }
}

/* ================================================================ fixes from the second pass of the review */
/* a short phone (360x640) with two caption lines: tighter gaps and a smaller picture keep "שליחה" on the screen */
@media (max-height: 680px) and (max-width: 899px) {
  .write { gap: 6px; }
  .write__side { gap: 6px; }
  .fields { gap: 8px; }
  .write__side .count { margin-top: 2px; }
  .write:has(#f-t) .write__pic { max-height: 33%; }
  .swapbtn { min-height: 34px; }
  .writeopts .seg__b { min-height: 40px; }
}
/* the door of "יציאה" opens toward the screen's edge in the menu too */
.menu__img[data-art="i-leave"] { transform: scaleX(-1); }
@media (min-width: 900px) {
  .home .tile__sub { max-width: 46%; }
  .home.has-mine .tile__sub { display: none; }
  /* the lobby's three panels share one height, so the row reads as one band */
  .lpanel--players, .lpanel--set, .lpanel--join { align-self: stretch; }
  .lpanel--join { justify-content: center; }
  .lobby { grid-template-rows: auto auto 1fr; align-content: start; }
  .lobby__go { align-self: start; margin-top: 8px; }
}

/* ================================================================ fixes from the third pass */
/* the three pictures of a round: on the laptop's home, and in the lobby of a player who waits for the host */
.hstep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); text-align: center; }
.hstep__art { display: grid; place-items: center; height: 72px; }
.hstep__art:empty { display: none; }
.hstep__img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.hstep__n { position: absolute; top: -8px; inset-inline-start: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun); color: #3a2600; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 var(--sun-d); }
.hstep__t { font-weight: 800; font-size: 14px; text-wrap: balance; }
.lobby__steps { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (min-height: 800px) and (max-width: 899px) { .lobby__steps { display: grid; } }
@media (min-width: 900px) {
  .lobby__steps { display: grid; gap: 12px; margin-top: 22px; }
  .home__steps .hstep { background: var(--panel); border: 2px solid var(--panel-line); box-shadow: var(--soft-shadow); }
  .home__steps .hstep__art { height: 88px; }
  .home__steps .hstep__img { width: 88px; height: 88px; }
  /* writing: the picture and its swap button sit together in the middle (the stamp lands on the picture) */
  .write__pic { justify-content: center; gap: 10px; }
  .write__pic .preview { height: auto; max-height: calc(100% - 60px); flex: 0 1 auto; }
}

/* who is already in the room, on the invitation page */
.gate__who { display: none; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
@media (min-height: 720px) { .gate__who { display: flex; } }
/* a wait: the crown on its bench instead of bare text */
.loading { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loading::before { content: ''; width: 104px; height: 104px; background: url('ui/mc-bench.webp') center / contain no-repeat;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); animation: bob 3.4s var(--ease-in-out) infinite; }
/* the keyboard's way to send, shown where there is a keyboard */
.write__key { display: none; margin: 0; text-align: center; font-size: 13px; color: var(--ink-3); direction: rtl; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .write__key { display: block; } }

/* ================================================================ the phone keyboard is open (html.kb) while writing:
   the picture, the line being typed and "שליחה" all stay above the keyboard, also with two caption lines and a long
   caption. Measured 17.11.2026 at 390x420: the button used to end 11 px (one line) to 77 px (two lines) below the screen.
   The on/above and bold switches come back when the keyboard closes; the size buttons stay inside the line. */
html.kb .app:has(.write) .bar { height: 46px; }
html.kb .app:has(.write) .bar__top { display: none; }
html.kb .app:has(.write) .bar__btn, html.kb .app:has(.write) .bar__menu { height: 44px; }
html.kb .app:has(.write) .bar__btn img, html.kb .app:has(.write) .bar__menu img { width: 28px; height: 28px; }
html.kb .app:has(.write) .stage { padding-block: 6px; }
html.kb .write { justify-content: flex-start; gap: 6px; }
html.kb .write__side { gap: 6px; }
html.kb .write__pic, html.kb .preview { height: calc(var(--vvh) * .26); }
html.kb .writeopts { display: none; }
html.kb .fields:focus-within .frow:not(:focus-within) { display: none; }
html.kb .write__actions .gbtn { min-height: 48px; }
html.kb .write .err:empty { display: none; }

/* a short phone's lobby has no room for the waiting crown: it shrank to a few pixels, so it steps out */
@media (max-height: 700px) and (max-width: 899px) { .lobby__mc { display: none; } }

/* ================================================================================================================
   NEXT LEVEL (17.11.2026 night, the second brief from Daniel: desktop first, settings in one place, living tiles, a
   cinematic entrance, a chat that never covers the game). Sections: large screens, settings, the player card, the
   tiles, the entrance, the chat dock.
   ================================================================================================================ */

/* ---------------------------------------------------------------- a large screen
   The laptop layout is drawn for 1366x720. On a bigger window the whole page is scaled up to fill it (game.js
   fitViewport sets --z; CSS zoom keeps text and art sharp), so nothing sits small in the middle of a big monitor.
   Phones and the TV stay at 1. Heights that come from the viewport use --vvh (already divided by --z) or --dvh. */
:root { --z: 1; --dvh: calc(1vh / var(--z)); }
body { zoom: var(--z); }
@media (min-width: 900px) {
  body.in-game .app { max-width: 1290px; }
  .app:has(.stage--home) { max-width: 1250px; }
  .home__mc { width: clamp(120px, calc(var(--dvh) * 22), 210px); }
  .intro__art { width: min(calc(var(--dvh) * 34), 260px); }
  .vote__judge { width: min(calc(var(--dvh) * 26), 200px); height: min(calc(var(--dvh) * 26), 200px); }
  .fin__mc { width: clamp(64px, calc(var(--dvh) * 12), 110px); height: clamp(64px, calc(var(--dvh) * 12), 110px); }
  .fin .podium { max-width: min(480px, calc(var(--dvh) * 62)); }
  .again { max-height: calc(var(--vvh) * .58); }
}

/* ---------------------------------------------------------------- settings in one place
   The panel of the host holds every setting; a phone shows the host two tabs (players / settings), a laptop both. */
.lobbytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(17, 8, 52, .55); }
.lobbytabs[hidden] { display: none; }
.lobbytab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-2); font: 800 15px/1 Heebo, sans-serif; white-space: nowrap; transition: background-color 160ms var(--ease-out), color 160ms; }
.lobbytab__img { width: 22px; height: 22px; object-fit: contain; }
.lobbytab[aria-selected="true"] { background: var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-d); }
.setsum { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin-top: auto; padding: 6px 12px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .08); color: #fff; font: inherit; text-align: start; }
.setsum__img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.setsum__t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.setsum__go { flex: none; font-size: 14px; font-weight: 800; color: var(--sun); }
@media (max-width: 899px) {
  .lobby.has-tabs.tab-players .lpanel--set { display: none; }
  .lobby.has-tabs.tab-set .lpanel--players { display: none; }
  .lobby.has-tabs.tab-set .lpanel--set { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .lobby.has-tabs .lpanel--players { flex: 1 1 auto; }
}
@media (min-width: 900px) { .lobbytabs, .setsum { display: none !important; } }
.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.flags > .flag:last-child:nth-child(odd) { grid-column: 1 / -1; }
.flag { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 14px; background: rgba(17, 8, 52, .55);
  color: var(--ink-2); font: inherit; text-align: start; transition: background-color 160ms var(--ease-out); }
.flag__ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; }
.flag__ic:empty { display: none; }
.flag__img { width: 24px; height: 24px; object-fit: contain; opacity: .6; transition: opacity 160ms; }
.flag__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.flag__t { font-size: 14px; font-weight: 800; line-height: 1.15; color: #fff; }
.flag__d { display: none; font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.flag__knob { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background-color 160ms var(--ease-out); }
.flag__knob::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28); transition: transform 200ms var(--ease-out); }
.flag.is-on { background: rgba(63, 209, 79, .17); }
.flag.is-on .flag__img { opacity: 1; }
.flag.is-on .flag__knob { background: var(--lime); }
.flag.is-on .flag__knob::after { transform: translateX(-16px); }
.flag:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .flag:hover { background: rgba(255, 255, 255, .1); } .flag.is-on:hover { background: rgba(63, 209, 79, .24); } }
.flags--menu { grid-template-columns: 1fr; }
.flags--menu .flag__d { display: block; }
.topicsrow { display: grid; gap: 6px; margin-top: 8px; }
.topicsrow__edit { min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font: 700 14px/1 Heebo, sans-serif; }
.menuset { padding: 2px 4px 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.menuset__t { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: var(--sun); }
.menuset .setchips { margin-top: 0; }
.menuset__all { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: 800 15px/1 Heebo, sans-serif; }
.menuset__note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
@media (min-width: 900px) {
  .flags { gap: 8px; margin-top: 12px; }
  .flag { min-height: 62px; padding: 8px 12px; }
  .flag__d { display: block; }
  .flag__t { font-size: 15px; }
}
.swapbtn.is-spin::before { animation: nxSpin 460ms var(--m-out); }
@keyframes nxSpin { to { transform: rotate(-360deg); } }

/* ---------------------------------------------------------------- the player card: who I am, once
   The picture beside the name box; under the box one quiet row with the title (and the nickname of the profile only
   when the player typed another name for this game). */
.idcard { flex-direction: row; align-items: center; gap: 12px; width: 100%; max-width: 460px; margin-inline: auto; padding: 10px 12px;
  border-radius: 22px; background: var(--panel); border: 2px solid var(--panel-line); box-shadow: var(--soft-shadow); }
.idcard__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.idcard__label { font-size: 13px; text-align: start; color: var(--ink-3); }
.idcard__av { flex: none; min-width: 92px; min-height: 92px; }
.idcard__av .av--xl .av__img { width: 92px; height: 92px; }
.idcard__row { max-width: none; }
.idcard__name { text-align: start; padding-inline-start: 14px; font-size: 19px; min-height: 48px; }
.idcard__pf { min-height: 40px; margin-top: 0; padding: 4px 10px; background: rgba(255, 255, 255, .07); }
.idcard__pfimg { width: 26px; height: 26px; }
.idcard__pft { flex-direction: row; align-items: baseline; gap: 8px; }
.idcard__pft b { font-size: 14px; }
.sheet .idcard { background: rgba(255, 255, 255, .06); box-shadow: none; }
@media (max-height: 760px) and (max-width: 899px) {
  .idcard { padding: 8px 10px; gap: 10px; }
  .idcard__av { min-width: 72px; min-height: 72px; }
  .idcard__av .av--xl .av__img { width: 72px; height: 72px; }
  .idcard__name { min-height: 44px; font-size: 18px; }
  .idcard__pf { min-height: 36px; }
}
@media (min-width: 900px) {
  .idcard { max-width: none; padding: 14px 16px; gap: 16px; }
  .idcard__av { min-width: 116px; min-height: 116px; }
  .idcard__av .av--xl .av__img { width: 116px; height: 116px; }
}

/* ---------------------------------------------------------------- the two main tiles: alive
   Under the words: the picture drifts, a light crosses it, Flow sparks twinkle, a shade keeps the words readable,
   and on a laptop the card tilts toward the mouse with a glare. */
.tile { background: none; isolation: isolate; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.tile--gold, .tile--violet { background-image: none; }
.tile__bg, .tile__shade, .tile__shine, .tile__glare, .tile__sparks { position: absolute; inset: 0; pointer-events: none; }
.tile__bg { z-index: -4; inset: -7%; background-size: cover; background-repeat: no-repeat; animation: nxDrift 13s ease-in-out infinite alternate; will-change: transform; }
.tile--gold .tile__bg { background-color: #ff7a2f; background-image: url('ui/tile-new.webp'); background-position: 100% 58%; }
.tile--violet .tile__bg { background-color: #20b98c; background-image: url('ui/tile-code.webp'); background-position: 100% 34%; animation-delay: -5s; }
@keyframes nxDrift { from { transform: scale(1.01) translate3d(1.4%, .8%, 0); } to { transform: scale(1.1) translate3d(-1.8%, -1.2%, 0); } }
.tile__shade { z-index: -2; background:
  linear-gradient(90deg, rgba(22, 8, 66, .74) 0%, rgba(22, 8, 66, .44) 36%, rgba(22, 8, 66, 0) 64%),
  linear-gradient(0deg, rgba(22, 8, 66, .38), rgba(22, 8, 66, 0) 48%); }
.tile__shine { z-index: -3; overflow: hidden; }
.tile__shine::before { content: ''; position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42) 45%, rgba(255, 255, 255, .1) 58%, transparent);
  transform: translateX(-180%) skewX(-18deg); animation: nxShine 5.4s ease-in-out infinite; }
.tile--violet .tile__shine::before { animation-delay: 2.3s; }
@keyframes nxShine { 0%, 52% { transform: translateX(-180%) skewX(-18deg); } 86%, 100% { transform: translateX(440%) skewX(-18deg); } }
.tile__sparks { z-index: -1; }
.tile__spark { position: absolute; width: 22px; height: 22px; object-fit: contain; opacity: 0; animation: nxTwinkle 2.8s ease-in-out infinite; }
.tile__spark:nth-child(1) { top: 12%; right: 10%; }
.tile__spark:nth-child(2) { top: 60%; right: 40%; width: 16px; height: 16px; animation-delay: .9s; }
.tile__spark:nth-child(3) { top: 20%; right: 48%; width: 14px; height: 14px; animation-delay: 1.8s; }
@keyframes nxTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(40deg); } }
.tile__glare { z-index: 0; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 48%); transition: opacity 200ms; }
.tile__label, .tile__sub { position: relative; z-index: 1; }
.tile__label { text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(20, 8, 60, .6); }
.tile.is-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) scale(1.02);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .38); transition-duration: 90ms; }
.tile.is-tilt .tile__glare { opacity: 1; }
.tile:active:not(:disabled) { transform: translateY(3px) scale(.985); transition-duration: 90ms; }
.home.has-mine .tile__shade { background: linear-gradient(180deg, rgba(22, 8, 66, .7) 0%, rgba(22, 8, 66, .2) 55%, rgba(22, 8, 66, 0) 80%); }
.home.has-mine .tile__sparks { display: none; }
@media (prefers-reduced-motion: reduce) { .tile__bg, .tile__shine::before, .tile__spark { animation: none; } .tile.is-tilt { transform: none; } }

/* ---------------------------------------------------------------- the entrance (game.js intro())
   Plays once per visit when the pictures of the screen are ready; every part arrives from its own side and settles.
   The parts are in place and clickable from the first frame (only transforms and opacity move). */
.is-prep { opacity: 0; }
.is-quick { animation: nxRise 260ms var(--m-out) both; }
@keyframes nxRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes nxSlam { 0% { opacity: 0; transform: scale(1.45) translateY(-12px); filter: blur(8px); } 55% { opacity: 1; filter: blur(0); } 78% { transform: scale(.97); } 100% { transform: none; } }
@keyframes nxFlip { from { opacity: 0; transform: perspective(700px) rotateX(-72deg) translateY(26px); } 70% { opacity: 1; } }
@keyframes nxFromEnd { from { opacity: 0; transform: translateX(-70px) rotate(-3deg); } }
@keyframes nxFromStart { from { opacity: 0; transform: translateX(70px) rotate(3deg); } }
@keyframes nxRoll { from { opacity: 0; transform: translateX(60px) rotate(200deg) scale(.4); } }
@keyframes nxPop { from { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.12); } }
@keyframes nxFade { from { opacity: 0; } }
@keyframes nxDigit { from { opacity: 0; transform: translateY(-120%) rotate(-14deg); } 70% { transform: translateY(8%); } }
.home.is-intro .home__mc { animation: crownDrop 760ms var(--m-out) both; }
.home.is-intro .home__title { animation: nxSlam 640ms var(--m-out) 140ms both; }
.home.is-intro .home__tag { animation: nxRise 420ms var(--m-out) 430ms both; }
.home.is-intro .home__steps .hstep { animation: nxFlip 560ms var(--m-out) both; }
.home.is-intro .home__steps .hstep:nth-child(1) { animation-delay: 560ms; }
.home.is-intro .home__steps .hstep:nth-child(2) { animation-delay: 660ms; }
.home.is-intro .home__steps .hstep:nth-child(3) { animation-delay: 760ms; }
.home.is-intro .idcard, .home.is-intro .signcard { animation: nxFromEnd 560ms var(--m-spring) 300ms both; }
.home.is-intro .idcard__av { animation: nxRoll 760ms var(--m-spring) 380ms both; }
.home.is-intro .tiles .tile:nth-child(1) { animation: nxFromStart 620ms var(--m-spring) 520ms both; }
.home.is-intro .tiles .tile:nth-child(2) { animation: nxFromEnd 620ms var(--m-spring) 640ms both; }
.home.is-intro .home__bottom, .home.is-intro .home__site { animation: nxFade 420ms ease 950ms both; }
.gate.is-intro .gate__mc, .gate.is-intro .hero__mc { animation: crownDrop 720ms var(--m-out) both; }
.gate.is-intro .gate__title, .gate.is-intro .title { animation: nxSlam 600ms var(--m-out) 120ms both; }
.gate.is-intro .status, .gate.is-intro .lead { animation: nxRise 380ms var(--m-out) 320ms both; }
.gate.is-intro .gate__who .av { animation: nxPop 440ms var(--m-spring) both; }
.gate.is-intro .gate__who .av:nth-child(1) { animation-delay: 400ms; }
.gate.is-intro .gate__who .av:nth-child(2) { animation-delay: 470ms; }
.gate.is-intro .gate__who .av:nth-child(3) { animation-delay: 540ms; }
.gate.is-intro .gate__who .av:nth-child(n+4) { animation-delay: 610ms; }
.gate.is-intro .idcard, .gate.is-intro .signcard { animation: nxFromEnd 520ms var(--m-spring) 440ms both; }
.gate.is-intro .gate__go, .gate.is-intro .actions { animation: nxRise 420ms var(--m-out) 620ms both; }
.codedigit { display: inline-block; animation: nxDigit 520ms var(--m-spring) both; }
/* one band of light crosses the screen as the entrance starts */
.sweep { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.sweep::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22) 40%, rgba(255, 244, 200, .32) 50%, rgba(255, 255, 255, .1) 62%, transparent);
  transform: translateX(-140%) skewX(-16deg); animation: nxSweep 1100ms var(--m-out) 120ms both; }
@keyframes nxSweep { to { transform: translateX(420%) skewX(-16deg); } }
@media (prefers-reduced-motion: reduce) { .is-prep { opacity: 1; } .sweep { display: none; } }

/* ---------------------------------------------------------------- the chat dock (chat.js)
   A laptop: a side panel, the game moves aside and stays whole. A phone: a compact panel over the bottom of the
   screen, no dark overlay, the game above it stays in view. */
.chatdock { display: flex; flex-direction: column; min-height: 0; z-index: 45; background: var(--night-2); color: #fff; }
.chatdock[hidden] { display: none; }
.chatdock__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 4px; }
.chatdock__title { margin: 0; font-size: 17px; font-weight: 900; }
.chatdock__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; }
.chatdock .chat { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 0 12px 12px; }
.chatdock .chat__list { flex: 1 1 auto; min-height: 0; max-height: none; }
.chatdock .sheet__note { margin: 0; text-align: center; }
.bar__chat[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-radius: 14px; }

.chatdock--float { position: absolute; inset-inline: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: min(46%, 400px);
  border: 2px solid var(--panel-line); border-radius: 20px; box-shadow: 0 -6px 30px rgba(0, 0, 0, .5);
  transform: translateY(18px); opacity: 0; transition: transform 260ms var(--m-out), opacity 200ms var(--m-out); }
.chatdock--float.is-in { transform: none; opacity: 1; }
.chatdock--float.is-out { transform: translateY(18px); opacity: 0; transition-duration: 180ms; }
.chatdock--float .chat__list { min-height: 84px; }
.chatdock--float .chat__quick { flex-wrap: wrap; max-height: 40px; overflow: hidden; }     /* one row: the phrases that fit */
html.kb .chatdock--float { max-height: 66%; bottom: 6px; }
html.kb .chatdock--float .chat__quick { display: none; }
html.kb .chatdock--float .chatdock__head { padding-block: 4px 0; }

.chatdock--side { position: fixed; inset-block: 0; inset-inline-end: 0; width: 340px; border-inline-start: 2px solid var(--panel-line);
  box-shadow: 8px 0 30px rgba(0, 0, 0, .28); transform: translateX(-40px); opacity: 0; transition: transform 280ms var(--m-out), opacity 200ms var(--m-out); }
.chatdock--side.is-in { transform: none; opacity: 1; }
.chatdock--side.is-out { transform: translateX(-40px); opacity: 0; transition-duration: 180ms; }
.chatdock--side .chatdock__head { padding: 14px 16px 8px; }
.chatdock--side .chatdock__title { font-size: 20px; }
.chatdock--side .chat { padding: 0 16px 16px; }
.app { transition: inset-inline-end 280ms var(--m-out); }
body.chat-side .app { inset-inline-end: 340px; }
body.chat-side .chatpop { inset-inline-end: 350px; }
@media (prefers-reduced-motion: reduce) { .chatdock--float, .chatdock--side, .app { transition: none; } }

/* ---------------------------------------------------------------- second pass of the next-level round */
/* the chat panel takes its width OUT of the game (width: 100% plus both insets left the game full width under it) */
body.chat-side .app { width: calc(100% - 340px); }
/* with the panel open a laptop has less room: the lobby drops its third column and brings the code button back */
body.chat-side .lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
body.chat-side .lpanel--join { display: none; }
body.chat-side .lobby .codechip { display: flex; }
body.chat-side .lobby #showCode { display: inline-flex; }
body.chat-side .lobby .invite { grid-template-columns: 1fr 1fr; }

/* a soft light drifts behind everything: depth without noise (off under reduced motion) */
body::after { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 34% at 22% 28%, rgba(255, 210, 63, .13), rgba(255, 210, 63, 0) 70%),
    radial-gradient(42% 38% at 80% 74%, rgba(47, 125, 255, .16), rgba(47, 125, 255, 0) 70%),
    radial-gradient(30% 30% at 70% 18%, rgba(255, 61, 99, .10), rgba(255, 61, 99, 0) 70%);
  animation: nxAmbient 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes nxAmbient { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 3%, 0) rotate(8deg); } }
body.is-tv::after { display: none; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

@media (min-width: 900px) {
  /* the tile's picture: the band of the art that reads best in a wide, low card */
  .home .tile--gold .tile__bg { background-position: 100% 40%; }
  .home .tile--violet .tile__bg { background-position: 100% 44%; }
  .home .tile { min-height: 132px; }
  .home .tile__label { font-size: 34px; }
  .home .tile__sub { font-size: 15px; max-width: 50%; }
  /* windows open from the middle of the screen, a little smaller, then settle */
  body:not(.is-tv) .sheet { transform: translateY(14px) scale(.95); }
  body:not(.is-tv) .layer.is-in .sheet { transform: none; }
  body:not(.is-tv) .layer.is-out .sheet { transform: translateY(8px) scale(.97); }
}
/* a real pointer: things answer when the mouse is over them */
@media (hover: hover) and (pointer: fine) {
  .rate { transition: transform 160ms var(--ease-out); }
  .rate:hover:not(:disabled) img { transform: translateY(-5px) scale(1.07); }
  .rate[aria-checked="true"]:hover img { transform: scale(1.14); }
  .mode { transition: transform 140ms var(--ease-out), background-color 140ms; }
  .mode:hover:not(.is-on) { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
  .lobbytab:hover:not([aria-selected="true"]) { background: rgba(255, 255, 255, .08); }
  .setchip { transition: transform 140ms var(--ease-out); }
  .hstep { transition: transform 200ms var(--ease-out), box-shadow 200ms; }
  .hstep:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: 0 12px 0 rgba(0, 0, 0, .18); }
  .idcard__av { transition: transform 200ms var(--m-spring); }
  .idcard__av:hover { transform: scale(1.06) rotate(-3deg); }
  .bar__btn img, .bar__menu img { transition: transform 180ms var(--m-spring); }
  .bar__btn:hover img, .bar__menu:hover img { transform: scale(1.14) rotate(-6deg); }
  #leaveBtn:hover img { transform: scaleX(-1) scale(1.14); }
  .chat__q { transition: transform 120ms var(--ease-out), background-color 120ms; }
  .chat__q:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .24); }
  .table__row { transition: background-color 120ms; border-radius: 8px; }
  .table__row:hover { background: rgba(255, 255, 255, .06); }
}

/* ---------------------------------------------------------------- third pass of the next-level round */
/* the entrance is quicker where the first thing to press lives: the card and the tiles rest about a second after
   the screen starts (the full run of the tests measured a sign-in button still sliding at 1.4 s) */
.home.is-intro .idcard, .home.is-intro .signcard { animation: nxFromEnd 500ms var(--m-spring) 200ms both; }
.home.is-intro .idcard__av { animation: nxRoll 640ms var(--m-spring) 260ms both; }
.home.is-intro .tiles .tile:nth-child(1) { animation: nxFromStart 540ms var(--m-spring) 360ms both; }
.home.is-intro .tiles .tile:nth-child(2) { animation: nxFromEnd 540ms var(--m-spring) 450ms both; }
.home.is-intro .home__bottom, .home.is-intro .home__site { animation: nxFade 360ms ease 700ms both; }
.gate.is-intro .idcard, .gate.is-intro .signcard { animation: nxFromEnd 440ms var(--m-spring) 220ms both; }
.gate.is-intro .gate__go, .gate.is-intro .actions { animation: nxRise 360ms var(--m-out) 360ms both; }
/* menu icons float free, with no square behind them (his standing preference for illustrated icons) */
.menu__ic, .menu__i.is-danger .menu__ic { background: none; width: 36px; height: 36px; border-radius: 0; }
.menu__img { width: 32px; height: 32px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }

/* ---------------------------------------------------------------- link cards
   A secondary action is a small card with a Flow icon, not an underlined line of text (17.11.2026, Daniel: "דרך יותר
   אטרקטיבית ויפה ... במקום הטקסטים הלא ברורים האלו"): the two links of the home, the big-screen line on an
   invitation, "כל הממים של הסבב", "הממים שלי מהמשחק". */
.hlink { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 14px;
  border: 2px solid var(--panel-line); border-radius: 16px; background: var(--panel); color: #fff; font: 800 15px/1.2 Heebo, sans-serif;
  text-decoration: none; text-align: center; cursor: pointer; box-shadow: var(--soft-shadow);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.hlink__ic { flex: none; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); transition: transform 220ms var(--m-spring); }
.hlink__t { min-width: 0; text-wrap: balance; }
.hlink__logo { display: none; width: auto; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.hlink:active { transform: translateY(2px) scale(.98); box-shadow: none; transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) {
  .hlink:hover { transform: translateY(-3px); background: rgba(44, 28, 112, .92); box-shadow: 0 8px 0 rgba(0, 0, 0, .26); }
  .hlink:hover .hlink__ic { transform: rotate(-8deg) scale(1.16); }
  .hlink:hover .hlink__logo { transform: scale(1.05); }
}
.hlink--sm { min-height: 44px; padding: 4px 14px; font-size: 14px; border-radius: 14px; }
.hlink--sm .hlink__ic { width: 24px; height: 24px; }
/* the home: the two cards share the bottom row of a phone */
.homelinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.homelinks .hlink { width: 100%; padding-inline: 8px; }
.home.is-intro .home__bottom { animation: none; }
.home.is-intro .homelinks .hlink { animation: nxRise 380ms var(--m-out) both; }
.home.is-intro .homelinks .hlink:nth-child(1) { animation-delay: 620ms; }
.home.is-intro .homelinks .hlink:nth-child(2) { animation-delay: 700ms; }
@media (max-height: 760px) and (max-width: 899px) { .homelinks .hlink { min-height: 44px; font-size: 14px; } .homelinks .hlink__ic { width: 24px; height: 24px; } }
/* the invitation's big-screen card, the recap's and the podium's cards */
.foot .hlink { width: 100%; }
.hlink--tv { font-size: 14px; }
.recap > .hlink { align-self: center; }
.fin__mine.hlink { align-self: center; margin-inline: auto; }
.fin__main > .fin__mine.hlink { display: flex; width: fit-content; }
@media (min-width: 900px) {
  /* a laptop: the two cards sit under the three round pictures, beside each other; the site card shows the logo */
  .home { grid-template-rows: auto auto; align-content: center; row-gap: 20px; }
  .home__top { grid-column: 1; grid-row: 1; align-self: end; }
  .home__main { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .home__bottom.homelinks { position: static; grid-column: 1; grid-row: 2; align-self: start; justify-self: center; width: 100%; max-width: 540px;
    padding-inline: 0; grid-template-columns: 1fr 1.3fr; gap: 14px; }
  .homelinks .hlink { min-height: 60px; font-size: 17px; border-radius: 18px; gap: 10px; }
  .homelinks .hlink__ic { width: 34px; height: 34px; }
  .hlink--site .hlink__ic { display: none; }
  .hlink--site .hlink__logo { display: block; height: 34px; }
  .recap > .hlink { grid-column: 2; justify-self: center; }
  .foot .hlink { width: auto; }
}

/* ---------------------------------------------------------------- meme categories (19.11.2026)
   Daniel: "במקום 'נושאים' ... בחירת קטגוריות ממים להכניס עם תמונות מייצגות". The row in the settings shows up to four
   pictures of what was picked; the picker is a window of tiles, one picture each, grouped like the site's menu. */
.catsrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 6px 0 8px; padding: 6px 10px; border: 0;
  border-radius: 14px; background: rgba(17, 8, 52, .55); color: #fff; font: inherit; text-align: start; }
button.catsrow { cursor: pointer; transition: background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
button.catsrow:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { button.catsrow:hover { background: rgba(255, 255, 255, .1); } }
.catsrow__pics { flex: none; display: flex; flex-direction: row-reverse; padding-inline-start: 10px; }
.catsrow__pic { width: 40px; height: 40px; margin-inline-start: -10px; border-radius: 10px; object-fit: cover; border: 2px solid var(--night-2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3); background: var(--night); }
.catsrow__pic.is-gone { visibility: hidden; }
.catsrow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.catsrow__k { font-size: 12px; color: var(--ink-3); }
.catsrow__v { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catsrow__go { flex: none; font-size: 14px; font-weight: 800; color: var(--sun); }

body:not(.is-tv) .sheet.sheet--cats { width: min(760px, 94vw); max-width: none; }
.catpick { gap: 14px; }
.catall { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; border: 2px solid transparent; border-radius: 16px;
  background: rgba(255, 255, 255, .07); color: #fff; font: inherit; text-align: start; cursor: pointer; position: relative;
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.catall[aria-pressed="true"] { border-color: var(--sun); background: rgba(255, 210, 63, .14); }
.catall__pics { flex: none; display: flex; flex-direction: row-reverse; padding-inline-start: 12px; }
.catall__pic { width: 44px; height: 44px; margin-inline-start: -12px; border-radius: 10px; object-fit: cover; border: 2px solid var(--night-2); }
.catall__txt { flex: 1; display: flex; flex-direction: column; }
.catall__t { font-size: 17px; }
.catall__n { font-size: 13px; color: var(--ink-3); }
.catgrp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.catgrp__t { margin: 0; font-size: 15px; font-weight: 900; color: var(--sun); }
.catgrp__all { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink-2);
  font: 700 13px/1 Heebo, sans-serif; cursor: pointer; }
.catgrp__all[aria-pressed="true"] { background: var(--sun); color: #3a2600; }
.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden;
  background: var(--night); cursor: pointer; font: inherit; color: #fff;
  transition: border-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.cat:active { transform: scale(.96); }
.cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 160ms var(--ease-out); }
.cat::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 4, 30, .92)); pointer-events: none; }
.cat__t { position: absolute; inset-inline: 6px; bottom: 6px; z-index: 1; font-size: 14px; line-height: 1.15; text-align: center; text-wrap: balance;
  text-shadow: 0 1px 2px #000; }
.cat__n { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 1; padding: 1px 7px; border-radius: 999px; background: rgba(10, 4, 30, .78);
  font-size: 12px; font-weight: 700; }
.cat__check { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--sun); color: #3a2600; font-weight: 900; font-size: 15px; opacity: 0; transform: scale(.6);
  transition: opacity 140ms var(--ease-out), transform 180ms var(--m-spring); }
.catall .cat__check { position: static; flex: none; }
[aria-pressed="true"] > .cat__check { opacity: 1; transform: none; }
.cat[aria-pressed="true"] { border-color: var(--sun); }
.catpick.is-some .cat[aria-pressed="false"] .cat__img { filter: saturate(.5) brightness(.7); }
@media (hover: hover) and (pointer: fine) { .cat:hover { transform: translateY(-2px); } .catall:hover, .catgrp__all:hover { background: rgba(255, 255, 255, .12); } }
.catpick__foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; gap: 12px;
  margin: 0 -16px calc(-16px - env(safe-area-inset-bottom)); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--night-2);
  box-shadow: 0 -6px 12px rgba(0, 0, 0, .25); }
.catpick__sum { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.catpick__foot .gbtn { flex: none; min-width: 120px; }
@media (prefers-reduced-motion: reduce) { .cat, .cat__check, .catall, button.catsrow { transition: none; } }
/* three game types since "נושאים" left (19.11.2026): three equal columns */
.modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the categories row added a line to the laptop lobby: the panel tightens so "מתחילים" stays on screen (19.11.2026) */
@media (min-width: 900px) {
  .catsrow { min-height: 46px; margin: 4px 0 6px; padding: 4px 10px; }
  .catsrow__pic { width: 34px; height: 34px; }
  .mode__note { margin: 4px 0; }
  .flag { min-height: 52px; padding: 6px 12px; }
  .flags { gap: 6px; margin-top: 8px; }
  .mode { min-height: 56px; }
}
/* a small phone: the players' categories row is one compact line */
@media (max-height: 700px) and (max-width: 899px) { #catsRow { min-height: 40px; margin: 4px 0; padding: 4px 10px; } #catsRow .catsrow__pic { width: 28px; height: 28px; } #catsRow .catsrow__k { display: none; } }

/* ---------------------------------------------------------------- the template's own text boxes (22.11.2026)
   Daniel: many templates need text "ב4 מקומות שונים או ב3 מקומות שונים". A numbered tab for each box of the template;
   the same numbers stand in the empty boxes on the picture. One line is written at a time, so the screen keeps its
   height with two boxes or with six, and with the keyboard open. */
.boxtabs { display: flex; justify-content: center; gap: 8px; direction: ltr; }   /* 1 2 3 from the left, like the boxes of a picture */
.boxtabs[hidden] { display: none; }
.boxtab { position: relative; flex: 0 1 56px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .09);
  color: #fff; font: 900 18px/1 Heebo, sans-serif; cursor: pointer; transition: background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.boxtab[aria-selected="true"] { background: var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-d); }
.boxtab.is-full::after { content: ''; position: absolute; top: 6px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.boxtab:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .boxtab:hover:not([aria-selected="true"]) { background: rgba(255, 255, 255, .16); } }
html.kb .boxtab { height: 36px; min-width: 40px; font-size: 16px; }
html.kb .boxtabs { gap: 6px; }
@media (prefers-reduced-motion: reduce) { .boxtab { transition: none; } }
/* a short phone: the line of a box grows to two lines and scrolls inside after that, so "שליחה" stays on screen */
@media (max-height: 700px) and (max-width: 899px) { .boxtabs + .frow .field--cap { max-height: 76px; } }
/* ... and the picture gives the tabs their room, as it does for the two lines of "על התמונה" */
@media (max-height: 700px) and (max-width: 899px) { .write:has(.boxtabs:not([hidden])) .write__pic { max-height: 33%; } }

/* ---------------------------------------------------------------- 24.11.2026: Daniel's list after a few real games */
/* a button under a finger (Game.tap keeps the focus in the line, so :active is not enough) */
.is-down { transform: translateY(2px) scale(.98); filter: brightness(.94); }

/* the host's button: what it does, how many are done, and a rest after every new meme */
.hostnext__b { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; min-height: 48px; padding: 4px 18px; text-align: start;
  transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 140ms var(--ease-out); }
.hostnext__b > span { grid-column: 1; grid-row: 1; line-height: 1.15; }
.hostnext__sub { grid-column: 1; grid-row: 2; font-size: 12px; font-weight: 700; line-height: 1.1; opacity: .8; }
.hostnext__sub[hidden] { display: none; }
.hostnext__b img { grid-column: 2; grid-row: 1 / 3; }
.hostnext__b.is-ready { background: var(--lime); color: #06310d; box-shadow: 0 3px 0 var(--lime-d); }
.hostnext__b.is-early { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.hostnext__b.is-early img { filter: brightness(0) invert(1); }
.hostnext__b.is-rest { opacity: .45; pointer-events: none; }
.hostnext__b:active { transform: translateY(2px); }

/* who is in the game, by name: a chip for every player under the writing */
.pchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; max-width: 100%; }
.pchip { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 58px; min-height: 44px; padding: 2px 0 0; border: 0; border-radius: 10px;
  background: none; color: var(--ink-2); font: inherit; }
button.pchip { cursor: pointer; transition: background-color 140ms var(--ease-out); }
button.pchip:active { background: rgba(255, 255, 255, .14); }
@media (hover: hover) and (pointer: fine) { button.pchip:hover { background: rgba(255, 255, 255, .1); } }
.pchip__n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 1.2; }
.pchip.is-on .pchip__n { color: #fff; }
.pchip.is-me .pchip__n { color: var(--sun); }
.pchip__off { font-size: 10px; font-weight: 800; line-height: 1; color: #ff8fa3; }
.pchip.is-off .av { filter: grayscale(1); }
@media (max-height: 700px) and (max-width: 899px) { .pchip { width: 50px; min-height: 40px; } .pchip__n { font-size: 11px; } }

/* the end of a round: who won first, then everyone's meme under its author's name */
.recap__best { gap: 6px; }
.recap__winner { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.recap__winner.is-won { background: rgba(255, 210, 63, .16); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .5); }
.recap__wtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recap__wk { font-size: 13px; font-weight: 800; color: var(--sun); line-height: 1.2; }
.recap__wn { font: 900 24px/1.1 Heebo, sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.recap__wp { flex: none; font: 900 22px/1 Heebo, sans-serif; color: var(--lime); }
.recap__wp.is-bad, .rcard__p.is-bad { color: #ff8fa3; }
button.recap__memebox { padding: 0; border: 0; background: none; cursor: pointer; }
.recap:has(.rcards) .recap__meme { max-height: calc(var(--vvh) * .26); }
@media (min-height: 760px) and (max-width: 899px) { .recap:has(.rcards) .recap__meme { max-height: calc(var(--vvh) * .3); } .recap:has(.rcards.is-many) .recap__meme { max-height: calc(var(--vvh) * .22); } }
.rcards { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 6px; }
.rcards:not(.is-many) { grid-template-columns: repeat(auto-fit, minmax(84px, 120px)); justify-content: center; }
.rcard { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 5px 4px 4px; border: 2px solid transparent; border-radius: 12px;
  background: rgba(17, 8, 52, .55); color: #fff; font: inherit; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out);
  animation: partIn 380ms var(--m-out) both; }
.rcard:nth-child(1) { animation-delay: 420ms; } .rcard:nth-child(2) { animation-delay: 470ms; } .rcard:nth-child(3) { animation-delay: 520ms; }
.rcard:nth-child(n+4) { animation-delay: 570ms; }
.rcard:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .rcard:hover { background: rgba(255, 255, 255, .14); } }
.rcard.is-me { border-color: var(--sun); }
.rcard.is-won { background: rgba(255, 210, 63, .16); }
.rcard__pic { position: relative; display: flex; justify-content: center; max-width: 100%; }
.rcard__pic .meme { width: auto; max-width: 100%; height: 62px; border-radius: 6px; }
.rcards.is-many .rcard__pic .meme { height: 50px; }
.rcard__crown { position: absolute; top: -10px; inset-inline-end: -6px; width: 26px; height: 26px; object-fit: contain; }
.rcard__who { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; }
.rcard__who .av { flex: none; }
.rcard__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.rcard__p { font-size: 13px; font-weight: 800; color: var(--lime); line-height: 1; }
.recap__mine { justify-content: space-between; padding: 6px 10px; }
.recap__minet { flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
@media (min-width: 900px) {
  .rcards { grid-column: 2; }
  .rcard__pic .meme, .rcards.is-many .rcard__pic .meme { height: 84px; }
  .rcard__n { font-size: 15px; } .rcard__p { font-size: 15px; }
  .recap__wn { font-size: 30px; } .recap__wk { font-size: 15px; } .recap__wp { font-size: 28px; }
  .recap:has(.rcards) .recap__meme { max-height: calc(var(--vvh) * .52); }
}
@media (prefers-reduced-motion: reduce) { .rcard { animation: none; transition: none; } .hostnext__b { transition: none; } }

/* the chat list keeps its last message whole above the phrases */
.chat__list { padding-bottom: 6px; }

/* ================================================================ a practice room (24.11.2026, Daniel: "חדר אימון עם
   בוטים"): the host's first empty seat adds a bot; a bot wears a "בוט" tag where the host wears "מנהל" */
.slot--bot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; border: 0; padding: 0;
  background: none; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slot--bot .slot__ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .12); transition: transform 150ms var(--m-out), background-color 150ms ease; }
.slot__plus { font-size: 30px; font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.slot__t { font-size: 13px; font-weight: 800; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.slot--bot:active .slot__ring { transform: scale(.96); }
.slot--bot:disabled { opacity: .6; cursor: default; }
.slot--bot:focus-visible, .bench__bot:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) { .slot--bot:hover .slot__ring { background: rgba(255, 255, 255, .24); } }
.bench__bot { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bench__bot:disabled { opacity: .6; }
.av__bot { background: var(--sky); color: #fff; }
@media (prefers-reduced-motion: reduce) { .slot--bot .slot__ring { transition: none; } }

/* ================================================================ the round's end with four memes or more on a phone
   (24.11.2026, found with the bots): the winning meme was capped by the screen's height only, so when the cards of the
   other memes took two rows it spilled over the winner's name and the cards. Its box now takes the room that is left,
   and the picture fits inside it (a size container: 100cqh = the box's height). */
.recap__memewrap { position: relative; display: block; flex: none; max-width: 100%; line-height: 0; }
@media (max-width: 899px) {
  .recap:has(.rcards) { --rmh: calc(var(--vvh) * .26); }
  .recap:has(.rcards) .recap__memebox { container-type: size; flex: 1 1 0; align-self: stretch; align-items: center; min-height: 72px; }
  .recap:has(.rcards) .recap__meme, .recap:has(.rcards.is-many) .recap__meme { max-height: min(var(--rmh), 100cqh); max-width: 100cqw; }
}
@media (min-height: 760px) and (max-width: 899px) {
  .recap:has(.rcards) { --rmh: calc(var(--vvh) * .3); }
  .recap:has(.rcards.is-many) { --rmh: calc(var(--vvh) * .22); }
}
/* a full room on a short phone (six players at 360x640): the winner's part never shrinks under its line and a
   readable meme, the cards sit in one row, and the table is the part that gives way (it scrolls inside itself when ten
   players do not fit) */
@media (max-width: 899px) {
  .recap:has(.rcards) .recap__best { flex: 1 0 auto; }
  .recap .table { flex: 0 1 auto; min-height: 84px; overflow-y: auto; overscroll-behavior: contain; }
  .rcards.is-many { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .rcards.is-many .rcard { padding: 4px 2px; }
  .rcards.is-many .rcard__n, .rcards.is-many .rcard__p { font-size: 12px; }
  /* up to four other memes in ONE row (the auto-fit grid counted its 120 px maximum and put two in a row) */
  .rcards:not(.is-many) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 112px); justify-content: center; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .recap__winner { padding: 4px 10px; }
  .recap__winner .av--md .av__img { width: 44px; height: 44px; }
  .recap__wn { font-size: 20px; } .recap__wp { font-size: 19px; }
  .recap__title { display: none; }               /* the top bar already says "סיכום הסבב" and which round */
  .recap:has(.rcards) .recap__memebox { min-height: 64px; }
  .rcards:not(.is-many) .rcard__pic .meme { height: 48px; }
  .rcards.is-many .rcard__pic .meme { height: 38px; }
  .rcards.is-many .rcard__n, .rcards.is-many .rcard__p { font-size: 11px; }
  .recap .table__row { min-height: 24px; font-size: 14px; }
  .recap .table .av--xs .av__img, .recap .table__avsp { width: 22px; height: 22px; }
}

/* ================================================================ Daniel's 20 (25.11.2026, "תתקן את כל זה") */
/* 10 the bet: a real button with the chip (the dashed outline read as switched off) */
.betbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 4px 16px;
  border: 0; border-radius: 14px; background: linear-gradient(180deg, #7c4dff, #5a2fd6); color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3); cursor: pointer; }
.betbtn__img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.betbtn.is-on { background: linear-gradient(180deg, #ffd23f, #e0a90c); color: #3a2600; border: 0; }
.betbtn:active { transform: scale(.97); }
.betnote { color: var(--ink-2); font-size: 14px; }
/* 11 the picked rating says so: a small check on it */
.rate[aria-checked="true"]::after { content: '✓'; position: absolute; top: 2px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime); color: #fff; font: 900 14px/22px Heebo, sans-serif; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
/* 12 reactions while a meme is up */
.reacts { display: flex; justify-content: center; gap: 10px; }
.react { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12);
  cursor: pointer; transition: transform 120ms var(--m-out), background-color 120ms ease; -webkit-tap-highlight-color: transparent; }
.react:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .react:hover { background: rgba(255, 255, 255, .22); } }
.react:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.react__img { width: 32px; height: 32px; object-fit: contain; pointer-events: none; }
.floatup { position: absolute; bottom: 4%; left: var(--x, 50%); width: 46px; height: 46px; object-fit: contain; pointer-events: none; z-index: 5;
  animation: floatUp 1600ms cubic-bezier(.16, 1, .3, 1) forwards; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
body.is-tv .floatup { width: 9vh; height: 9vh; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 15% { opacity: 1; transform: translate(0, -20px) scale(1.05); }
  100% { opacity: 0; transform: translate(var(--d, 0px), -260px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .floatup { animation: floatFade 1200ms ease forwards; } .react { transition: none; } }
@keyframes floatFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-height: 700px) and (max-width: 899px) { .reacts { gap: 6px; } }
/* 13 how many rated: dots that fill (who rated stays secret: the one who never lights up would be the author) */
.vote__rated { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rdots__t { margin-inline-end: 2px; font-size: 13px; }
.rdot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); }
.rdot.is-on { background: var(--lime); border-color: var(--lime); }
/* 14 "המם שלכם" in one line: the score in words and a short "לפרופיל" (the long label stays for screen readers) */
.recap__mine--one { flex-wrap: nowrap; gap: 8px; padding: 6px 8px 6px 10px; }
.recap__mine--one .recap__minet { flex: 1; min-width: 0; flex-wrap: wrap; }
.chip--short { flex: none; min-height: 44px; padding: 4px 12px; gap: 4px; font-size: 14px; }
.chip--short > span:not(.chip__s) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip__s { font-weight: 800; white-space: nowrap; }
.chip--short .chip__s--busy, .chip--short .chip__s--done, .chip--short.is-busy .chip__s--go, .chip--short.is-done .chip__s--go { display: none; }
.chip--short.is-busy .chip__s--busy, .chip--short.is-done:not(.is-busy) .chip__s--done { display: inline; }
.chip--short .chip__img { width: 24px; height: 24px; }
/* 15 the winning meme sits right under the winner's name */
@media (max-width: 899px) {
  .recap:has(.rcards) .recap__memebox { align-items: flex-start; max-height: calc(var(--rmh) + 2px); }
}
/* 16 the whole table, one tap away */
.table__all { align-self: center; min-height: 44px; margin-top: 2px; padding: 4px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12);
  color: var(--sun); font: 800 14px Heebo, sans-serif; cursor: pointer; }
.table__all:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.table--full { margin: 0; }
/* 17-18 the end: share the winning meme; another game is the main button */
.fin__share { align-self: center; }
.fin__again { margin: -4px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
/* 5 weight and sizes behind "עיצוב" */
.write:not(.is-style) .place--w, .write:not(.is-style) .fsize { display: none; }
.stylebtn { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(17, 8, 52, .55); color: #fff;
  font: 800 14px Heebo, sans-serif; cursor: pointer; }
.stylebtn[aria-expanded="true"] { background: var(--sun); color: #3a2600; }
.stylebtn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.write.is-style .writeopts { flex-wrap: wrap; }
/* 7-8 the picture's bar: swap (with how many are left) and "התבנית לא מסתדרת?" */
.write__picbar { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tplbad { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ink-2); font: 700 13px Heebo, sans-serif; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.tplbad:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
html.kb .tplbad { display: none; }
/* 1-2 the lone host's start button; the tips over the screens */
#startGame.is-alone { font-size: 18px; }
.coach { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 60; display: flex; align-items: center; gap: 10px;
  width: min(92vw, 420px); padding: 10px 14px; border-radius: 16px; background: rgba(17, 8, 52, .94); color: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3), 0 0 0 2px rgba(255, 210, 63, .7); pointer-events: none; transform: translateX(-50%);
  animation: coachIn 360ms cubic-bezier(.16, 1, .3, 1) both; }
.coach.is-out { opacity: 0; transform: translate(-50%, -8px); transition: opacity 300ms ease-in, transform 300ms ease-in; }
.coach__img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.coach__t { font-size: 15px; font-weight: 700; line-height: 1.35; }
@keyframes coachIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .coach { animation: none; } .coach.is-out { transition: none; } }
/* 19 the connection banner says what is happening, and when it is back */
.weak { font-size: 14px; font-weight: 800; }
.weak:not(.is-back)::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; vertical-align: -1px; animation: spin 800ms linear infinite; }
.weak.is-back { background: var(--lime); color: #0b3a12; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .weak::before { animation: none; } }
/* 20 contrast: the quiet lines on the bright purple are brighter and at least 13-14 px (they were hard to read in sun) */
:root { --ink-3: #d8d0f6; }
.hint, .betnote, .sheet__note, .note, .lobby__by, .signcard__note, .write__key, .who__st, .lobby__set, .chat__empty { font-size: 14px; }
.menuset__note, .catsrow__k, .pick__l, .lobby__moresum, .idcard__pft > span, .idcard__pft > bdi, .catall__n { font-size: 13px; }
.hint, .betnote, .vote__hint, .fin__again, .tplbad { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* 3 the note for in-app browsers on the sign-in card */
.inapp { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 210, 63, .16); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .6); text-align: center; }
.inapp__t { color: var(--sun); font-size: 16px; }
.inapp__d { margin: 0; font-size: 14px; color: #fff; }
/* the end's two links in one row; a short phone drops the "אותם שחקנים" line */
.fin__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fin__links:empty { display: none; }
.fin__links .hlink { margin: 0; }
@media (max-height: 700px) { .fin__again { display: none; } }
.fin__links .hlink { padding: 4px 10px; gap: 6px; }
.fin__links .hlink__ic { width: 22px; height: 22px; }
@media (max-width: 400px) { .fin__links { gap: 6px; } .fin__links .hlink { font-size: 13px; padding: 4px 8px; } }

/* ================================================================ the rating screen, re-laid (25.11.2026, Daniel's brief)
   The meme is the hero: one quiet status line, the meme card (download on its corner), its reactions bar, then the dock
   in the thumb zone: the rating tray and one row with the bet and the host's "למם הבא". Safe areas top and bottom. */
.bar { box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px); }
.stage:has(> .screen--vote) { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.vote { gap: clamp(4px, calc(var(--vvh, 100dvh) * .012), 10px); }
.vote__top { justify-content: center; min-height: 20px; }
.vote__rated { font-size: 13px; color: var(--ink-2); }
.vote__hint { margin: 0; font-size: 12px; opacity: .85; }
.vote.is-rated .vote__hint { display: none; }
.vote__hero { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.vote__stage { flex: 1; min-height: 0; }
.vote__save { position: absolute; z-index: 3; width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center;
  background: rgba(17, 8, 52, .6); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vote__save span { display: none; }
.vote__save .chip__img { width: 24px; height: 24px; }
.vote__hero .reacts { flex: none; gap: 14px; }
.vote__hero .react { width: 42px; height: 42px; background: rgba(17, 8, 52, .35); }
.vote__hero .react__img { width: 28px; height: 28px; }
.vote__bottom { gap: 6px; }
/* the tray: a little lower, every picked-state mark inside it */
.vote .rates { padding: 6px 12px 4px; }
.vote .rate img { width: clamp(50px, calc(var(--vvh, 100dvh) * .082), 68px); height: clamp(50px, calc(var(--vvh, 100dvh) * .082), 68px); }
.vote .rate[data-v="0"] img { width: clamp(42px, calc(var(--vvh, 100dvh) * .068), 56px); height: clamp(42px, calc(var(--vvh, 100dvh) * .068), 56px); margin: 4px 0; }
.vote .rate[aria-checked="true"] img { transform: scale(1.06); }
.vote .rate[aria-checked="true"]::after { top: 0; inset-inline-end: 4px; }
/* one row: the bet (a quiet secondary button) and the host's next (the green one) */
.vote__act { display: flex; gap: 8px; justify-content: center; align-items: stretch; }
.vote__act:not(:has(> :not([hidden]))) { display: none; }
.vote__act > * { flex: 1 1 0; min-width: 0; }
.vote__act .betbtn { min-height: 44px; padding: 2px 12px; gap: 6px; font-size: 14px; border-radius: 999px;
  background: rgba(124, 77, 255, .28); box-shadow: inset 0 0 0 2px rgba(178, 150, 255, .55); }
.vote__act .betbtn.is-on { background: linear-gradient(180deg, #ffd23f, #e0a90c); box-shadow: none; }
.vote__act .betbtn__img { width: 24px; height: 24px; }
.vote__act .hostnext { padding: 0; }
.vote__act .hostnext__b { width: 100%; min-height: 48px; justify-content: center; }
.vote .betnote { margin: 0; font-size: 12px; line-height: 1.3; text-align: center; color: var(--ink-2); }
@media (max-height: 700px) and (max-width: 899px) {
  .vote__hero .react { width: 38px; height: 38px; }
  .vote__hero .react__img { width: 26px; height: 26px; }
}
@media (min-width: 900px) {
  .vote__hero { grid-column: 1; grid-row: 1 / 3; }
  .vote__stage { grid-column: auto; grid-row: auto; }
  .vote .rate img { width: 88px; height: 88px; }
  .vote .rate[data-v="0"] img { width: 74px; height: 74px; }
}
.vote__hero { justify-content: center; }
.vote__act .hostnext { order: -1; }

/* ================================================================ the writing screen, re-laid (25.11.2026, Daniel's brief)
   strip (who sent, "1/4", the host's "סיום הכתיבה") / the picture with its swap and flag on its corners / one toolbar
   (on / above + "עיצוב") / openings that slide sideways / the lines / "שליחה" right under them in the thumb zone */
.stage:has(> .screen--w) { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.wstat { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 6px 3px 8px; border-radius: 16px;
  background: rgba(17, 8, 52, .38); }
.wstat__who { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wstat__who::-webkit-scrollbar { display: none; }
.wstat .pchips { flex-wrap: nowrap; justify-content: flex-start; gap: 2px; }
.wstat .pchip { width: 44px; min-height: 40px; flex: none; position: relative; }
.wstat .pchip .av__img, .wstat .pchip .av { width: 26px; height: 26px; }
.wstat .pchip__n { font-size: 10.5px; line-height: 1.15; max-width: 42px; }
.wstat .pchip.is-on::after { content: '✓'; position: absolute; top: 0; inset-inline-start: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lime); color: #fff; font: 900 10px/14px Heebo, sans-serif; text-align: center; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.wstat .pchip__off { display: none; }
.wstat .pchip.is-off .av { opacity: .5; }
.wstat__n { flex: none; min-width: 34px; font-weight: 900; font-size: 15px; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.wstat.is-all .wstat__n { color: var(--lime); }
.wstat__host { flex: none; }
.wstat__host:empty { display: none; }
.wstat__host .hostnext { padding: 0; }
.wstat__host .hostnext__b { display: inline-flex; min-height: 36px; padding: 0 12px; gap: 4px; font-size: 13px; border-radius: 999px; }
.wstat__host .hostnext__b img { width: 18px; height: 18px; }
.wstat__host .hostnext__sub { display: none; }
.wstat__host .hostnext__b.is-zero { background: rgba(255, 255, 255, .1); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.wstat__host .hostnext__b.is-zero img { filter: brightness(0) invert(1); opacity: .6; }
.wstat__host .hostnext__b::after { content: ''; position: absolute; inset: -4px -2px; }   /* 44 px to touch */

/* the picture fills what is left; its buttons ride on its corners */
.preview { position: relative; }
.pictool { position: absolute; z-index: 3; top: 8px; left: 8px; }
.write .swapbtn.pictool { min-height: 38px; height: 38px; padding: 0 12px 0 10px; gap: 4px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff;
  background: rgba(17, 8, 52, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); text-decoration: none; }
.write .swapbtn.pictool::before { width: 20px; height: 20px; }
.write .tplbad.pictool { display: grid; place-items: center; width: 38px; min-height: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: rgba(17, 8, 52, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); text-decoration: none; }
.write .tplbad.pictool img { width: 20px; height: 20px; object-fit: contain; }
.pictool[hidden] { display: none !important; }
html.kb .write .pictool { display: none; }

@media (max-width: 899px) {
  .write { justify-content: flex-start; gap: clamp(6px, calc(var(--vvh, 100dvh) * .012), 10px); }
  .write__pic { flex: 1 1 0; min-height: 90px; max-height: none; }
  .write__pic .preview { flex: 1 1 auto; height: 100%; max-height: 100%; align-items: center; }
  .write__pic .preview .meme { max-height: 100%; width: auto; max-width: 100%; }
  .write__side { flex: none; gap: 8px; }
  html.kb .write__pic { flex: none; height: calc(var(--vvh) * .26); transition: height 240ms var(--ease-out); }
  html.kb .wstat { display: none; }
}

/* one toolbar: on / above (right) and "עיצוב" (left) */
.writeopts { justify-content: space-between; align-items: center; }
.writeopts .place { flex: 0 1 auto; max-width: 260px; }
.writeopts .seg__b { min-height: 38px; font-size: 14px; }
.writeopts .seg { padding: 3px; }
.stylebtn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.stylebtn::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-inline-end: 6px; vertical-align: -3px;
  background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17v4h4L18 10l-4-4L3 17zm17.7-9.3a1 1 0 0 0 0-1.4l-2.3-2.3a1 1 0 0 0-1.4 0L15 5.5 19 9.5l1.7-1.8z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17v4h4L18 10l-4-4L3 17zm17.7-9.3a1 1 0 0 0 0-1.4l-2.3-2.3a1 1 0 0 0-1.4 0L15 5.5 19 9.5l1.7-1.8z"/></svg>') center / contain no-repeat; }

/* the openings slide sideways in one row */
.starters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px;
  overscroll-behavior-x: contain; }
.starters::-webkit-scrollbar { display: none; }
.starter { flex: none; min-height: 34px; padding: 2px 12px; font-size: 14px; white-space: nowrap; background: rgba(255, 255, 255, .13); }

/* the lines: a matching pair, a soft glow on the one being typed, an x to clear */
.fields { gap: 8px; }
.write .field--cap { min-height: 46px; padding-block: 11px; font-size: 17px; border: 2px solid transparent; transition: border-color 160ms ease, box-shadow 160ms ease; }
.write .field--cap:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 210, 63, .28), var(--soft-shadow); }
.write .frow--one .field--cap { min-height: 66px; }
.write .frow--sized .field { padding-inline-end: 44px; }
.write.is-style .frow--sized .field { padding-inline-end: 140px; }
.fclear { position: absolute; top: 50%; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px;
  padding: 0; border: 0; border-radius: 50%; background: #e7e1f8; color: #4a3c7a; font: 900 13px/1 Heebo, sans-serif; cursor: pointer; }
.fclear::after { content: ''; position: absolute; inset: -7px; }
.write.is-style .fclear { inset-inline-end: 104px; }
.frow:has(> .field:placeholder-shown) > .fclear { display: none; }

/* "שליחה": clean and solid while there is nothing to send, then it wakes up */
.write__actions .gbtn:disabled { opacity: 1; filter: none; background: #2f1f72; border-image-source: none; border: 0; border-radius: 18px;
  color: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); text-shadow: none; }
.write__actions .gbtn.is-wake { animation: sendWake 420ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes sendWake { 0% { transform: scale(.94); filter: brightness(1.25); } 100% { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .write__actions .gbtn.is-wake { animation: none; } html.kb .write__pic { transition: none; } }
.sent .count__wait:empty { display: none; }
@media (max-width: 899px) { .write__pic .preview { align-items: flex-end; } }

/* ================================================================ the shell screens (25.11.2026, Daniel's brief): sign-in, lobby, podium */
/* sign-in: one centred column; inside an app's browser the way out leads, Google waits quietly below */
.gate { width: 100%; max-width: 440px; margin-inline: auto; }
.stage--gate { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.signcard { position: relative; z-index: 1; margin-inline: auto; background: linear-gradient(180deg, rgba(40, 22, 104, .96), rgba(30, 15, 84, .96)); }
.signcard__img { display: none; }
.signcard.is-inapp { gap: 8px; }
.signcard.is-inapp .inapp { width: 100%; gap: 8px; margin-bottom: 8px; padding: 14px 14px 16px; }
.signcard.is-inapp .inapp__t { font-size: 19px; font-weight: 900; }
.signcard.is-inapp .inapp__d { font-size: 15px; line-height: 1.4; }
.inapp__copy { width: 100%; margin-top: 4px; gap: 8px; }
.inapp__ic { display: inline-block; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z"/></svg>') center / contain no-repeat; }
.inapp__copy.is-done .inapp__ic { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>'); }
.signcard.is-inapp .signcard__title { font-size: 17px; color: var(--ink-2); text-shadow: none; }
.signcard.is-inapp .signcard__lead { font-size: 14px; }
.signcard__go--quiet { min-height: 44px; border-image-source: none !important; border: 2px solid rgba(255, 255, 255, .28); border-radius: 14px; background: transparent;
  color: var(--ink-2); font-size: 15px; box-shadow: none; text-shadow: none; }

/* lobby: tabs right under the bar, the players centred, the crown sized by the room left, one job for the bottom button */
.lpanel--players .bench, .lpanel--players .bench { justify-content: center; padding-top: 12px; }
.bench .av__host { top: -11px; padding: 1px 6px; font-size: 11px; line-height: 1.2; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); z-index: 2; }
.lobby__mc { max-height: clamp(80px, calc(var(--vvh, 100dvh) * .24), 210px); transition: max-height 240ms var(--ease-in-out), opacity 200ms ease; }
.lobby.is-crowd .lobby__mc { max-height: 0; opacity: 0; }
.setsum { min-height: 44px; }
.setsum__t { display: block; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.lobby__go { padding-bottom: max(0px, env(safe-area-inset-bottom, 0px) - 12px); }
.lobby__need { margin: 0 0 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
#startGame.is-alone { font-size: 17px; }

/* the podium: the rain falls at the back of the screen, behind every word and button */
.screen--fin { position: relative; }
.fx--back { position: absolute; inset: 0; z-index: 0; contain: strict; }
.screen--fin > .fin { position: relative; z-index: 1; }
.podium__pts { display: inline-block; padding: 0 8px; border-radius: 999px; background: rgba(17, 8, 52, .5); line-height: 1.35; }
.podium .av__name { text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 6px rgba(17, 8, 52, .6); }
.podium__who { gap: 2px; margin-bottom: 4px; }
.fin__me { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(17, 8, 52, .55); color: #fff; font-size: 15px; font-weight: 800; }
.fin__links { align-items: stretch; }
.fin__links .hlink { flex: 1 1 0; max-width: 200px; min-height: 44px; }
.fin__actions { padding-bottom: max(0px, env(safe-area-inset-bottom, 0px) - 12px); }
.fin__site { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; }
.fin__site:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .fin__site:hover { background: rgba(255, 255, 255, .1); } }
.fin__site:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-height: 700px) and (max-width: 899px) {
  .fin__me { padding: 2px 12px; font-size: 14px; }
  .podium__pts { line-height: 1.15; }
  .podium__who { margin-bottom: 2px; }
}
.fin__links { width: min(100%, 420px); flex-wrap: nowrap; }
.fin__links .hlink { flex: 1 1 0; max-width: none; white-space: nowrap; }
.fin__site { position: relative; }
.fin__site::after { content: ''; position: absolute; inset: -6px -4px; }
@media (max-height: 700px) and (max-width: 899px) {
  .fin__site { min-height: 34px; font-size: 14px; }
  .fin__actions { gap: 4px; }
  .fin__links .hlink { min-height: 40px; }
}
