/* משחק הגברממים: the bright look (16.11.2026, Daniel: the colours and feel of the genre's best-known game, with our own
   art). A Flow backdrop, white Heebo on top, colourful glossy Flow button plates (9-slice), round avatar badges,
   dark rounded panels, a dark top bar with the phase title and the seconds left. Loaded after game.css. */
:root {
  --night: #1d1150; --night-2: #261866; --panel: rgba(24, 14, 70, .74); --panel-line: rgba(255, 255, 255, .10);
  --lime: #3fd14f; --lime-d: #1f9a32; --sky: #2f7dff; --sky-d: #1d55c6; --cherry: #ff3d63; --cherry-d: #c51f43;
  --sun: #ffd23f; --sun-d: #d9a514; --ink: #fff; --ink-2: #e6defc; --ink-3: #b8aee6;
  --soft-shadow: 0 5px 0 rgba(0, 0, 0, .28);
  --r: 16px;
}
body { background: #4b3fe0 url('ui/bg-phone.webp') center / cover no-repeat fixed; }
body::before { display: none; }
@media (min-aspect-ratio: 1/1) { body { background-image: url('ui/bg-wide.webp'); } }

/* ---------- type: white, heavy, with a soft dark drop for bright backdrops */
.title, .h1, .tvtitle, .intro__name, .tvintro__name, .recap__title, .fin__title, .lobby__title, .tvcr__title {
  color: #fff; text-shadow: 0 4px 0 rgba(20, 8, 60, .45);
}
.lead, .label, .note, .sheet__note, .late, .count__t, .lobby__set, .step__note, .hint { color: var(--ink-2); }
.err { color: #ffd0d8; }

/* ---------- the top bar: leave on one side, the phase in the middle, the menu on the other */
.bar { height: 60px; padding: 0 8px; background: var(--night); border-bottom: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.bar__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bar__count { font-size: 13px; font-weight: 700; color: var(--sun); }
.bar__title { font-size: 19px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar__btn, .bar__menu { display: grid; place-items: center; width: 52px; min-width: 52px; height: 52px; padding: 0; background: none; border: 0; color: #fff; font-weight: 700; font-size: 12px; }
.bar__btn img, .bar__menu img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.bar__btn img + .bar__t, .bar__menu img + .bar__menu-t { display: none; }
#leaveBtn img { transform: scaleX(-1); }   /* RTL: the arrow leaves toward the screen's edge */
.timer { position: relative; height: 10px; margin: 6px 12px 0; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .35); overflow: visible; }
.timer__fill { border-radius: 6px; background: var(--sun); }
.timer.is-low .timer__fill { background: var(--cherry); }
/* the seconds left: a small pill at the end of the bar (never over the content under it) */
.timer:has(.timer__s:not(:empty)) { margin-inline-end: 70px; }
.timer__s { position: absolute; inset-inline-end: -64px; top: 50%; transform: translateY(-50%); z-index: 2; min-width: 56px; padding: 3px 8px;
  border-radius: 999px; background: var(--night); color: var(--sun); font-size: 14px; font-weight: 900; line-height: 1.1; text-align: center; white-space: nowrap; }
.timer__s:empty { display: none; }
.timer.is-low .timer__s { color: #ffb3c2; }

/* ---------- buttons: glossy Flow plates (9-slice); solid colours only while the picture loads */
.gbtn {
  min-height: 56px; padding: 6px 22px 10px; color: #fff; font-weight: 900; font-size: 19px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  border: 0; border-radius: 14px; box-shadow: none; background-color: transparent;
  border-style: solid; border-width: 12px 18px 16px; border-color: transparent;
  border-image-slice: 46 60 56 fill; border-image-width: 12px 18px 16px; border-image-repeat: stretch;
}
/* white letters with a dark outline in the plate's own colour, so they read on the light glossy face */
.gbtn--gold { border-image-source: url('ui/plate-green.webp'); color: #fff; --edge: #2b6a10; }
.gbtn--violet { border-image-source: url('ui/plate-blue.webp'); color: #fff; min-height: 52px; font-size: 17px; --edge: #123f8f; }
.gbtn--danger { border-image-source: url('ui/plate-red.webp'); --edge: #84102c; }
.gbtn--sun { border-image-source: url('ui/plate-gold.webp'); color: #3a2600; text-shadow: none; }
.gbtn--gold, .gbtn--violet, .gbtn--danger {
  text-shadow: 0 3px 0 var(--edge), 1.5px 1.5px 0 var(--edge), -1.5px 1.5px 0 var(--edge), 1.5px -1.5px 0 var(--edge), -1.5px -1.5px 0 var(--edge);
}
.gbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
@media (hover: hover) { .gbtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: none; filter: brightness(1.06); } }
.gbtn:disabled { opacity: .5; filter: grayscale(.4); }
.gbtn > span { position: relative; top: -2px; }
.quiet { color: #fff; }

/* ---------- panels: dark, rounded, quiet */
.lpanel, .mine, .table, .award, .sheet, .tvtable, .tvcard {
  background: var(--panel); border: 2px solid var(--panel-line); border-radius: var(--r); box-shadow: var(--soft-shadow);
}
.lpanel--invite { background: none; border: 0; box-shadow: none; }
.sheet { background: var(--night-2); border-radius: 22px 22px 0 0; border-bottom: 0; }
@media (min-width: 700px) { .sheet { border-radius: 22px; border-bottom: 2px solid var(--panel-line); } }
.sheet__head { background: var(--night-2); }
.sheet__title { color: #fff; }
.sheet__x { border: 0; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: none; }
.award { color: #fff; }
.award__k { color: var(--sun); }
.tvcard { color: #fff; }
.tvcard__t { color: var(--ink-2); }
.tvcard__n { color: var(--sun); }

/* ---------- fields */
.field { border: 2px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(17, 8, 52, .55); color: #fff; box-shadow: none; }
.field::placeholder { color: #a99ad8; }
.field:focus { border-color: var(--sun); }
.field--cap { background: #fff; color: #1a0d40; border-color: transparent; box-shadow: var(--soft-shadow); }
.field--cap::placeholder { color: #8b7fae; }
.fsize__b { border: 0; background: #eee8ff; color: #2c1268; box-shadow: inset 0 -3px 0 rgba(44, 18, 104, .16); }
.fsize.is-set .fsize__b:not(:disabled) { background: #fff3c4; }
.seg { border: 0; border-radius: 14px; box-shadow: none; background: rgba(17, 8, 52, .55); padding: 4px; gap: 4px; }
.seg__b { border: 0 !important; border-radius: 10px; background: transparent; color: var(--ink-2); min-height: 44px; }
.seg__b[aria-checked="true"] { background: var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-d); }

/* ---------- avatars: a round badge (white disc) with the Flow character */
.av__img { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ffffff 0, #efe9ff 70%); border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.28); padding: 4px; filter: none; }
.av--xs .av__img { border-width: 2px; padding: 1px; box-shadow: none; }
.av__name { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.av.is-lit .av__img { border-color: var(--lime); }
.av.is-dim { opacity: .5; }
.av__host { border: 0; border-radius: 8px; background: var(--sun); color: #3a2600; top: -8px; inset-inline-start: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.slot { width: 56px; height: 56px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.35); }
.bench__me { border: 0; padding: 0; background: none; }
.bench__me .av__img { border-color: var(--sun); }

/* ---------- play home: the brand, who I am, two illustrated tiles */
.home__title { font-size: 38px; }
.idcard__av { min-width: 112px; min-height: 112px; position: relative; }
.idcard__av .av--xl .av__img { width: 112px; height: 112px; }
.idcard__av::after { content: ''; position: absolute; inset-inline-end: 4px; bottom: 6px; width: 32px; height: 32px;
  background: url('ui/i-swap.webp') center / 70% no-repeat var(--cherry); border-radius: 50%; border: 3px solid #fff; }
.idcard__row { position: relative; }
.idcard__name { padding-inline-end: 64px; font-size: 20px; }
.idcard__dice { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); min-width: 48px; width: 48px; min-height: 44px;
  padding: 0; border: 0; border-radius: 10px; background: url('ui/i-dice.webp') center / 34px no-repeat transparent; color: transparent; box-shadow: none; overflow: hidden; }
.tile { position: relative; overflow: hidden; min-height: 128px; border: 3px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: 0 6px 0 rgba(0,0,0,.3);
  background-size: cover; background-position: 100% 38%; align-items: flex-end; justify-content: flex-end; padding: 12px 16px; text-align: end; }
.tile--gold { background-color: #ff7a2f; background-image: url('ui/tile-new.webp'); background-position: 100% 58%; color: #fff; }
.tile--violet { background-color: #20b98c; background-image: url('ui/tile-code.webp'); background-position: 100% 34%; color: #fff; }
.tile__label { font-size: 32px; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.tile__sub { font-size: 14px; font-weight: 700; opacity: 1; text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 6px rgba(0,0,0,.35); max-width: 56%; text-wrap: balance; }
.tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
@media (hover: hover) { .tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.3); } }

/* ---------- the gate (a friend's link): like the play home - the crown with a phone on top, who invited you, your card */
.gate__head { flex-direction: column; text-align: center; gap: 6px; margin-top: auto; }
.gate__mc { width: 136px; height: 136px; }
.gate__title, .gate__head .status { text-align: center; }
.gate__head .status { color: var(--sun); font-weight: 700; }

/* ---------- the lobby */
.codechip { border: 0; border-radius: 14px; background: var(--panel); box-shadow: var(--soft-shadow); }
.codechip__v { color: var(--sun); }
.step { border: 0; border-radius: 12px; background: rgba(17, 8, 52, .55); color: var(--ink-2); }
.step.is-on { background: var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-d); }
.step__n { background: rgba(255,255,255,.14); }
/* invites: the group invite on its own row, link and code side by side under it */
.invite { grid-template-columns: 1fr 1fr; gap: 8px; }
.invite .gbtn { grid-column: 1 / -1; min-height: 52px; font-size: 17px; }
.invite__b { border: 0; border-radius: 12px; background: rgba(255,255,255,.12); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }
.invite__b::before { content: ''; width: 24px; height: 24px; background: center / contain no-repeat; flex: none; }
#copyBtn::before { background-image: url('ui/i-link.webp'); }
#showCode::before { background-image: url('ui/i-eye.webp'); }
/* the players panel takes the free height; the waiting crown fills it and gives way to more players */
.lpanel--players { flex: 1 1 auto; min-height: 0; }
.lpanel--players .bench { flex: none; gap: 10px 12px; }
.lobby__mc { flex: 1 1 0; min-height: 0; max-height: 210px; width: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); }
@media (min-width: 900px) { .lobby__mc { flex: none; height: 170px; } }

/* ---------- writing */
.meme { border: 0; border-radius: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.swapbtn { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 4px 14px; border-radius: 12px; background: rgba(17, 8, 52, .5); }
.swapbtn::before { content: ''; width: 24px; height: 24px; background: url('ui/i-swap.webp') center / contain no-repeat; }
.line { color: #fff; }
.ask { color: var(--sun); }

/* ---------- the "נשלח" stamp: the Flow ink frame (drawn about 10° tilted; turned back so frame and word share the
   stamp's one angle), a dark inside so the word reads on a white caption band and on a dark picture alike */
.stamp__img, .av__stampimg { transform: rotate(10deg); }
.stamp__img { width: 140px; }
.stamp:has(img)::before, .av__stamp:has(img)::before { content: ''; grid-area: 1 / 1; width: 76%; height: 50%; border-radius: 8px; background: rgba(29, 17, 80, .9); }
.stamp:has(img) .stamp__t { position: relative; color: #a6f25e; font-size: 26px; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.av__stamp:has(img) span { position: relative; color: #a6f25e; }

/* ---------- rating: three round Flow buttons on a dark tray */
.rates { width: min(420px, 100%); margin: 0 auto; padding: 8px 14px 6px; border-radius: 999px / 60px; background: var(--panel); box-shadow: var(--soft-shadow); }
.rate { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #fff; font-size: 13px; }
.rate img { width: 72px; height: 72px; object-fit: contain; transition: transform var(--dur-fast) var(--ease-out); }
.rate[data-v="0"] img { width: 60px; height: 60px; margin: 6px 0; }
.rate span { font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.rate[aria-checked="true"] { background: none; transform: none; box-shadow: none; color: var(--sun); }
.rate[aria-checked="true"] img { transform: scale(1.12); filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.rates:has(.rate[aria-checked="true"]) .rate[aria-checked="false"] img { opacity: .45; }
.rate:active img { transform: scale(.92); }
.rates.is-wait { pointer-events: none; }
.rates.is-wait .rate img { opacity: .55; }
.betbtn { border: 2px dashed rgba(255,222,89,.85); border-radius: 14px; }
/* the "הורדה" chip: saves the meme on the screen to the phone */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px 4px 10px; border: 0; border-radius: 999px;
  background: rgba(17, 8, 52, .55); color: #fff; font: 700 14px/1 Heebo, sans-serif; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.chip__img { width: 26px; height: 26px; object-fit: contain; }
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip[hidden] { display: none; }
.vote__top .chip { margin-inline-start: auto; }
.again { flex-direction: column; align-items: center; gap: 8px; max-height: none; }
.again .meme { max-height: 50vh; max-height: calc(var(--vvh) * .5); }
.vote__n { display: none; }   /* the top bar already says "מם 2 מתוך 3" */

/* the "next meme" moment between memes: a card over the meme, the crown peeking through its frame */
.nextcard { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 3px rgba(255,255,255,.12);
  pointer-events: none; animation: nextIn 900ms var(--ease-out) both; }
.nextcard img { width: min(56vw, 240px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.nextcard b { font: 900 36px/1 Heebo, sans-serif; color: var(--sun); text-shadow: 0 4px 0 rgba(0,0,0,.45); }
body.is-tv .nextcard img { width: 34vh; }
body.is-tv .nextcard b { font-size: 7vh; }
@keyframes nextIn { 0% { opacity: 0; transform: scale(.94); } 14% { opacity: 1; transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nextcard { animation: nextFade 900ms linear both; } }
@keyframes nextFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- recap, table, podium */
.table__row.is-me { color: var(--sun); }
.table__d { color: #7dffa0; }
.table .av--xs .av__img, .table__avsp { width: 28px; height: 28px; }
.table__avsp { flex: none; }
html.no-av .table__avsp { display: none; }
@media (min-height: 760px) and (max-width: 899px) { .recap__meme { max-height: calc(var(--vvh) * .42); } }
@media (max-width: 899px) { .recap__best { flex: 1 1 auto; justify-content: center; } }   /* the best meme sits in the middle of the free space */
.podium__pts { color: var(--sun); }
.fin__title { color: #fff; }

/* the podium: the players stand on the Flow blocks. Measured on ui/podium.webp (900x434, height = .482 of the width):
   bronze (3rd) 2-31% of the width, top at 42.4% of the height; gold (1st) 31-64%, top 8.1%; silver (2nd) 64-98%, 28.6%.
   Each column sinks into the picture down to the middle of its block's top face (cqw = 1% of the podium's width). */
.podium { container-type: inline-size; }
.podium__cols { grid-template-columns: 34fr 33fr 29fr; padding-inline: 2%; margin-bottom: 0; position: relative; z-index: 1; }
.podium__col { padding-bottom: 0 !important; }
.podium__col--1 { margin-bottom: -6.8cqw; }
.podium__col--2 { margin-bottom: -16.7cqw; }
.podium__col--3 { margin-bottom: -23.3cqw; }
.podium__pts { font-size: 18px; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.podium__base { position: relative; aspect-ratio: 900 / 434; opacity: 0; transition: opacity var(--dur-medium, 240ms) var(--ease-out); }
.podium__base.is-ready { opacity: 1; }   /* the picture's place is kept while it loads; blocks and numbers appear together */
.podium__img { display: block; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
.podium__n { position: absolute; transform: translate(-50%, -50%); font: 900 11cqw/1 Heebo, sans-serif; color: rgba(255,255,255,.9);
  text-shadow: 0 .5cqw 0 rgba(0,0,0,.22); pointer-events: none; }
.podium__n--1 { left: 47.5%; top: 60%; }
.podium__n--2 { left: 81%; top: 67%; }
.podium__n--3 { left: 16.5%; top: 73%; }
/* a tie: everyone on the same step stands side by side, a little smaller */
.podium__col { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 2px 4px; min-width: 0; }
.podium__col::after { flex-basis: 100%; text-align: center; }
.podium__col:has(.podium__who + .podium__who) .av__img { width: 46px; height: 46px; }
.podium__col:has(.podium__who + .podium__who) .av__name { font-size: 11px; max-width: 54px; }
.podium__col:has(.podium__who + .podium__who) .podium__pts { font-size: 14px; }
body.is-tv .podium__col:has(.podium__who + .podium__who) .av__img { width: 9vh; height: 9vh; }
body.is-tv .podium__col:has(.podium__who + .podium__who) .av__name { font-size: 2vh; max-width: 10vw; }
.podium:not(:has(.podium__img)) .podium__col { margin-bottom: 0; }
.podium__base:not(:has(.podium__img)) { display: none; }
/* short phones (360x640): a smaller crown, podium and winners so the two buttons stay on screen */
@media (max-height: 720px) and (max-width: 899px) {
  .fin__mc { width: 60px; height: 60px; }
  .fin__title { font-size: 22px; }
  .podium { max-width: 290px; }
  .podium .av--lg .av__img { width: 64px; height: 64px; }
  .podium .av--md .av__img { width: 48px; height: 48px; }
  .podium__pts { font-size: 16px; }
}

/* ---------- TV */
.tvhead__type { color: #fff; }
.tvcode { color: var(--sun); }
.tvrecap__grid { justify-content: center; align-content: center; }
.tvrecap__meme { max-height: var(--mh, 30vh); border-radius: 1.2vh; box-shadow: 0 .8vh 0 rgba(0,0,0,.3); }
.tvrecap__by { color: #fff; text-shadow: 0 .3vh 0 rgba(0,0,0,.4); }

/* while a plate picture loads (or if it is missing) the button keeps a solid colour inside its border area */
.gbtn { background-clip: padding-box; }
.gbtn--gold { background-color: var(--lime); }
.gbtn--violet { background-color: var(--sky); }
.gbtn--danger { background-color: var(--cherry); }
.gbtn--sun { background-color: var(--sun); }

/* ---------- the player's profile (account.js, 16.11.2026): a photo in the white disc, the title badge on its edge,
   the profile row under the name, the profile and save sheets, the "לפרופיל" chip */
.av__pic { position: relative; display: inline-block; line-height: 0; }
.av__photo { object-fit: cover; padding: 0; background: #fff; }
.av__rank { position: absolute; z-index: 1; inset-inline-end: -10%; bottom: -6%; width: 42%; height: 42%; object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); pointer-events: none; }
.av--xs .av__rank, .av--sm .av__rank { display: none; }
.idcard__av.is-pf::after { display: none; }
.idcard__pf { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 2px; padding: 6px 12px; border: 0;
  border-radius: 14px; background: rgba(17, 8, 52, .55); color: #fff; font: inherit; text-align: start; cursor: pointer; }
.idcard__pf::after { content: '←'; margin-inline-start: auto; color: var(--ink-3); font-weight: 900; }
.idcard__pf:active { transform: translateY(1px); }
.idcard__pfimg { flex: none; width: 32px; height: 32px; object-fit: contain; }
.idcard__pft { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.idcard__pft b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idcard__pft > span, .idcard__pft > bdi { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfsheet__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pfsheet__pic { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.pfsheet__nick { display: block; font-size: 22px; font-weight: 900; }
.pfsheet__title { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--ink-2); font-weight: 700; }
.pfsheet__title img { width: 22px; height: 22px; object-fit: contain; }
.pfsheet__site { display: flex; justify-content: center; margin-top: 8px; }
.pfsheet__lead { margin: 0 0 12px; }
.pfsave__meme { display: block; max-width: 100%; max-height: 34vh; max-height: calc(var(--vvh) * .34); margin: 0 auto 10px; border-radius: 12px; }
.pfsave__agree { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 4px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.pfsave__agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lime); }
.pfsave__agree a { color: var(--sun); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip--pf.is-done { background: rgba(63, 209, 79, .28); color: #d6ffdb; }
.chip:disabled { cursor: default; }
.recap__mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; }
.fin__mine { align-self: center; }
/* short phones (360x640 and the like): the home and the gate keep everything on one screen with the profile row */
@media (max-height: 760px) and (max-width: 899px) {
  .home__mc { width: 66px; }
  .home__title { font-size: 30px; }
  .home__main { margin-block: 6px 50px; gap: 10px; }
  .idcard { gap: 4px; }
  .idcard__av { min-width: 84px; min-height: 84px; }
  .idcard__av .av--xl .av__img { width: 84px; height: 84px; }
  .idcard__av::after { width: 26px; height: 26px; inset-inline-end: 0; bottom: 2px; }
  .idcard__pf { min-height: 44px; padding-block: 3px; }
  .tiles { gap: 10px; }
  .tile { min-height: 100px; padding: 10px 14px; }
  .gate__mc { width: 84px; height: 84px; }
}
/* a tie writes its score once; three or more on one step stand smaller, two to a row */
.podium__pts--tie { flex-basis: 100%; text-align: center; }
.podium .podium__col.is-crowd { gap: 0 2px; }
.podium .podium__col.is-crowd .av__img { width: 38px; height: 38px; border-width: 2px; padding: 0; }
.podium .podium__col.is-crowd .av__name { font-size: 10px; max-width: 46px; }
.podium .podium__col.is-crowd .av__rank { display: none; }
body.is-tv .podium .podium__col.is-crowd .av__img { width: 7vh; height: 7vh; }
/* the end on a short phone with "הממים שלי מהמשחק": a smaller crown keeps both buttons on screen */
@media (max-height: 720px) and (max-width: 899px) {
  .fin__main:has(.fin__mine) .fin__mc { width: 44px; height: 44px; }
  .fin__main:has(.fin__mine) .fin__title { font-size: 20px; }
  .fin__mine { padding-block: 0; }
}
@media (max-height: 720px) and (max-width: 899px) {
  .podium .podium__col:not(.is-crowd):has(.podium__who + .podium__who) .av__img { width: 40px; height: 40px; border-width: 2px; padding: 2px; }
  .podium .podium__col:not(.is-crowd):has(.podium__who + .podium__who) .av__name { font-size: 10px; max-width: 43px; }
  .podium .podium__col:not(.is-crowd):has(.podium__who + .podium__who) { gap: 2px; }
}

/* a podium redrawn in place (a player came back with the profile) does not rise again */
.podium--still .podium__col { animation: none; }

/* ---------- the sign-in card (17.11.2026, Daniel: "חייבים להתחבר חשבון גוגל כדי לשחק"): a phone that is not signed in
   sees this one card on the home and on the gate, with the one thing to do */
.signcard { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 22px 18px 18px;
  border: 2px solid var(--panel-line); border-radius: 22px; background: var(--panel); text-align: center; box-shadow: var(--soft-shadow); }
.signcard__img { width: 76px; height: 76px; object-fit: contain; }
.signcard__title { margin: 0; font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 rgba(20, 8, 60, .45); }
.signcard__lead { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.35; text-wrap: balance; }
.signcard__go { width: 100%; margin-top: 4px; }
.signcard__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.gate .signcard { margin-block: 12px auto; }

/* ---------- the top bar keeps its title in the middle: two sides of the same width (17.11.2026, the chat button) */
.bar__side { flex: none; width: 108px; display: flex; align-items: center; }
.bar__side--end { justify-content: flex-end; }
.bar__chat { position: relative; }
.bar__badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--cherry); color: #fff; font-size: 12px; font-weight: 900; line-height: 20px; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.bar__badge[hidden] { display: none; }

/* ---------- the room chat (chat.js, 17.11.2026) */
.sheet__body.chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.chat__list { flex: 1 1 auto; min-height: 140px; max-height: calc(var(--vvh, 100dvh) * .46); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.chat__empty { margin: auto; color: var(--ink-3); font-size: 14px; text-align: center; }
.chat__row { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.chat__row.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat__bubble { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px 4px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .12); color: #fff; min-width: 0; }
.chat__row.is-mine .chat__bubble { border-radius: 14px 14px 4px 14px; background: #2f7d4f; }
.chat__who { font-size: 12px; font-weight: 900; color: var(--sun); }
.chat__t { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat__time { align-self: flex-end; font-size: 11px; color: rgba(255, 255, 255, .6); direction: ltr; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__q { min-height: 40px; padding: 4px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; font-weight: 700; }
.chat__q:active { transform: translateY(1px); }
.chat__form { display: flex; gap: 8px; align-items: center; }
.chat__in { flex: 1; min-width: 0; min-height: 48px; font-size: 17px; }
.chat__send { flex: none; width: 52px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-d); }
.chat__send img { width: 30px; height: 30px; object-fit: contain; transform: scaleX(-1); }
.chat__err { margin: 0; min-height: 0; }

/* a message that arrives while the chat is closed floats under the bar for a moment (a tap opens the chat) */
.chatpop { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 66px); inset-inline: 10px; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.chatpop__b { pointer-events: auto; display: flex; align-items: center; gap: 6px; max-width: min(92%, 420px); padding: 5px 12px 5px 6px; border: 0; border-radius: 999px;
  background: rgba(29, 17, 80, .92); color: #fff; font-size: 14px; text-align: start; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: chatIn var(--dur-medium, 240ms) var(--ease-out, ease-out) both; }
.chatpop__b.is-out { opacity: 0; transform: translateY(-6px); transition: opacity 200ms, transform 200ms; }
.chatpop__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatpop__who { font-weight: 900; color: var(--sun); }
@keyframes chatIn { from { opacity: 0; transform: translateY(-8px); } }

/* the TV: messages float at the bottom for a few seconds */
.tvchat { position: fixed; bottom: 3vh; inset-inline-end: 2vw; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 1vh; pointer-events: none; }
.tvchat__b { display: flex; align-items: center; gap: .8vw; max-width: 34vw; padding: .8vh 1.2vw .8vh .6vw; border-radius: 999px; background: rgba(29, 17, 80, .9); color: #fff;
  font-size: 2.4vh; box-shadow: 0 .6vh 1.6vh rgba(0, 0, 0, .35); animation: chatIn 300ms ease-out both; }
.tvchat__b.is-out { opacity: 0; transition: opacity 280ms; }
.tvchat__t { display: flex; flex-direction: column; min-width: 0; }
.tvchat__who { font-weight: 900; color: var(--sun); font-size: 2vh; }
@media (prefers-reduced-motion: reduce) { .chatpop__b, .tvchat__b { animation: none; } }

/* ---------- the settings in one compact panel (17.11.2026, Daniel: "מרוכזים, מתומצתים ובצורה טובה"): the type of
   game as four tiles, one line about it, three lists in a row, then "עוד הגדרות" with a short summary */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 6px 2px;
  border: 0; border-radius: 14px; background: rgba(17, 8, 52, .55); color: var(--ink-2); font-weight: 700; font-size: 14px; line-height: 1.1; }
.mode__img { width: 30px; height: 30px; object-fit: contain; }
.mode__name { white-space: nowrap; }
.mode.is-on { background: var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-d); }
.mode.is-on .mode__img { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.mode__note { margin: 6px 0; font-size: 14px; text-align: center; text-wrap: balance; }
.picks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.pick { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick__l { font-size: 12px; color: var(--ink-3); font-weight: 700; text-align: center; }
.pick__s { width: 100%; min-height: 44px; padding: 0 22px 0 8px; border: 0; border-radius: 12px; color: #fff; font: 700 15px/1 Heebo, sans-serif;
  text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none;
  background-color: rgba(17, 8, 52, .55); background-repeat: no-repeat; background-size: 6px 6px, 6px 6px;
  background-image: linear-gradient(45deg, transparent 50%, var(--sun) 50%), linear-gradient(135deg, var(--sun) 50%, transparent 50%);
  background-position: left 8px top 50%, left 14px top 50%; }
[dir="rtl"] .pick__s { padding: 0 8px 0 22px; }
.pick__s option { color: #1a0d40; background: #fff; }
.lobby__more { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; text-decoration: none; }
.lobby__moresum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.topics__in { min-height: 220px; resize: vertical; font-size: 16px; line-height: 1.5; }

/* ---------- topics: the round's topic as a gold chip over the picture (phone, TV) */
.topic { align-self: center; display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; margin: 0; padding: 4px 14px; border-radius: 999px;
  background: var(--sun); color: #3a2600; font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 var(--sun-d); }
.topic[hidden] { display: none; }
.topic__k { font-weight: 700; }
.topic--tv { font-size: 3.4vh; padding: .6vh 2vw; box-shadow: 0 .5vh 0 var(--sun-d); }

/* ---------- a relaxed game: the author under the meme instead of the rating buttons, a recap of every meme */
.vote__by { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 0; color: #fff; font-size: 18px; font-weight: 900; }
.vote__by[hidden] { display: none; }
.tvrev__by { display: flex; align-items: center; justify-content: center; gap: 1.2vw; margin: 0; color: #fff; font-size: 4vh; font-weight: 900; }
.tvrev__by[hidden] { display: none; }
.recap--relaxed { justify-content: center; }
.relaxed__grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; align-content: center; }
.relaxed__cell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 0; }
.relaxed__meme { max-height: calc(var(--vvh, 100dvh) * .2); }
.relaxed__grid.is-many .relaxed__meme { max-height: calc(var(--vvh, 100dvh) * .13); }
.relaxed__by { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tvrecap__main.is-relaxed { grid-template-columns: 1fr; }

/* ---------- the host's "הבא" (a game without a clock, or a relaxed game's memes) */
.hostnext { flex: none; display: flex; justify-content: center; padding: 6px 12px 0; }
.hostnext[hidden] { display: none; }
.hostnext__b { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--sun); color: #3a2600; font-size: 16px; font-weight: 900; box-shadow: 0 3px 0 var(--sun-d); }
.hostnext__b img { width: 26px; height: 26px; object-fit: contain; transform: scaleX(-1); }   /* RTL: forward points left */
.hostnext__b:disabled { opacity: .6; }

/* ---------- presses you can feel (17.11.2026, Daniel: "יותר דינמיקה ואנימציה ... פידבקים מגניבים"): every button
   squashes and springs back, a light ring spreads from the finger (sfx.js adds .is-hit), the rating that was picked
   jumps and its picture wiggles, the chosen type of game bounces in. Off under reduced motion. */
.gbtn, .tile, .seg__b, .rate, .mode, .chip, .fsize__b, .chat__q, .chat__send, .swapbtn, .betbtn, .hostnext__b, .invite__b { position: relative; overflow: hidden; }
.is-hit { animation: hitPop 420ms cubic-bezier(.34, 1.56, .64, 1) both; }
.is-hit::after { content: ''; position: absolute; left: var(--hx, 50%); top: var(--hy, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: hitRing 480ms ease-out both; }
@keyframes hitPop { 0% { transform: scale(1); } 25% { transform: scale(.9, .86); } 60% { transform: scale(1.06, 1.08); } 100% { transform: scale(1); } }
@keyframes hitRing { from { transform: scale(0); opacity: 1; } to { transform: scale(18); opacity: 0; } }
.rate[aria-checked="true"] { animation: ratePick 520ms cubic-bezier(.34, 1.56, .64, 1) both; }
.rate[aria-checked="true"] .rate__img { animation: rateWiggle 520ms ease-in-out both; }
@keyframes ratePick { 0% { transform: scale(.8); } 55% { transform: scale(1.12) translateY(-4px); } 100% { transform: scale(1) translateY(-2px); } }
@keyframes rateWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.15); } 55% { transform: rotate(9deg) scale(1.1); } 80% { transform: rotate(-4deg); } }
.mode.is-on { animation: modeIn 380ms cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes modeIn { from { transform: scale(.88); } }
.gbtn--gold:not(:disabled), .gbtn--green:not(:disabled) { transition: transform 160ms cubic-bezier(.34, 1.56, .64, 1), filter 160ms; }
.chip.is-done, .betbtn.is-on { animation: modeIn 420ms cubic-bezier(.34, 1.56, .64, 1) both; }
.recap__mine { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.recap__thumb { flex: none; width: 72px; max-height: 90px; height: auto; border-radius: 8px; }
.recap__minet { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: 14px; }
.recap__minet b { color: var(--sun); font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .is-hit, .rate[aria-checked="true"], .rate[aria-checked="true"] .rate__img, .mode.is-on, .chip.is-done, .betbtn.is-on { animation: none; }
  .is-hit::after { display: none; }
}

/* on the picture / above it (17.11.2026): a slim switch over the caption fields */
.place { align-self: center; width: min(320px, 100%); box-shadow: none; border: 0; border-radius: 12px; }
.place .seg__b { min-height: 40px; font-size: 15px; border: 0; background: rgba(17, 8, 52, .55); color: var(--ink-2); }
.place .seg__b[aria-checked="true"] { background: var(--sun); color: #3a2600; }

/* on / above and bold / regular share one row over the fields */
.writeopts { display: flex; gap: 8px; justify-content: center; }
.writeopts .place { width: auto; flex: 1 1 0; max-width: 240px; }
.place--w { flex: 0 1 128px !important; }
.writeopts .seg__b { white-space: nowrap; font-size: 14px; padding: 0 6px; }
#weight-b span { font-weight: 900; }
#weight-r span { font-weight: 400; }


/* ==========================================================================================================
   MOTION, next level (17.11.2026, Daniel: "I want everything to feel next level, top-notch animation").
   One set of curves and durations (skills charles-ux-animation + design-interaction-dna):
     enter = --m-out 340 ms, leave = --m-in 220 ms, springy small things = --m-spring, presses 120-150 ms.
   One lead motion at a time; stagger only for content that arrives on its own (first 6 parts, 55 ms apart);
   presses squash and spring back; physical things (the crown, avatars, the meme card) land with a little squash;
   numbers count up. Everything is off under reduced motion; nothing that was already on screen plays again.
   ========================================================================================================== */
:root { --m-out: cubic-bezier(.32, .72, 0, 1); --m-in: cubic-bezier(.55, 0, 1, .45); --m-move: cubic-bezier(.77, 0, .175, 1);
  --m-spring: cubic-bezier(.34, 1.56, .64, 1); --m-enter: 340ms; --m-leave: 220ms; }

/* --- screens cross: the old one fades away on top, the new one rises in and its parts follow */
.stage { position: relative; }
.screen.is-leaving { position: absolute; inset: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 2; pointer-events: none;
  animation: screenOut var(--m-leave) var(--m-in) both; }
@keyframes screenOut { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(2px); } }
.screen.is-entering > * { animation: screenIn var(--m-enter) var(--m-out) both; }
.screen.is-entering > * > * { animation: partIn 420ms var(--m-out) both; }
.screen.is-entering > * > :nth-child(1) { animation-delay: 60ms; }
.screen.is-entering > * > :nth-child(2) { animation-delay: 115ms; }
.screen.is-entering > * > :nth-child(3) { animation-delay: 170ms; }
.screen.is-entering > * > :nth-child(4) { animation-delay: 225ms; }
.screen.is-entering > * > :nth-child(5) { animation-delay: 280ms; }
.screen.is-entering > * > :nth-child(n+6) { animation-delay: 335ms; }
@keyframes screenIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes partIn { from { opacity: 0; transform: translateY(14px); } }

/* --- buttons: hover lifts where a real pointer hovers; a press squashes (sfx.js .is-hit) */
@media (hover: hover) and (pointer: fine) {
  .mode:hover:not(.is-on), .seg__b:hover:not([aria-checked="true"]), .chat__q:hover, .chip:hover:not(:disabled), .invite__b:hover {
    transform: translateY(-2px); transition: transform 150ms var(--m-out); }
  .rate:hover:not(:disabled) .rate__img { transform: translateY(-4px) scale(1.06); transition: transform 180ms var(--m-spring); }
}
.gbtn--gold:not(:disabled) { background-size: 200% 100%; }
.gbtn:not(:disabled)::before { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%);
  animation: sheen 4.2s var(--m-move) 1.2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }

/* --- the intro: the crown drops and squashes, the round number pops, the name and rule follow */
.intro__art, .tvintro__art { animation: crownDrop 720ms var(--m-out) both; transform-origin: 50% 100%; }
@keyframes crownDrop { 0% { transform: translateY(-60px) scale(.9); opacity: 0; } 55% { transform: translateY(0) scale(1.08, .9); opacity: 1; }
  75% { transform: scale(.97, 1.04); } 100% { transform: none; } }
.intro__n, .tvintro__n { animation: partIn 380ms var(--m-out) 180ms both; }
.intro__name, .tvintro__name { animation: namePop 520ms var(--m-spring) 260ms both; }
.intro__rule, .tvintro__rule { animation: partIn 420ms var(--m-out) 380ms both; }
@keyframes namePop { from { opacity: 0; transform: scale(.82) translateY(10px); } }

/* --- writing: the topic chip swings in, the last ten seconds pulse, a sent meme thumps */
.write .topic, .vote__topic { animation: chipIn 520ms var(--m-spring) both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-10px) rotate(-4deg) scale(.85); } }
.timer.is-low .timer__fill { animation: lowPulse 1s ease-in-out infinite; }
.timer.is-low .timer__s { animation: lowBeat 1s var(--m-spring) infinite; }
@keyframes lowPulse { 50% { filter: brightness(1.35); } }
@keyframes lowBeat { 0%, 100% { transform: translateY(-50%) scale(1); } 15% { transform: translateY(-50%) scale(1.14); } }
.preview.is-sent .meme { animation: sentThump 520ms var(--m-spring) both; }
@keyframes sentThump { 0% { transform: scale(1); } 30% { transform: scale(.95, .93); } 65% { transform: scale(1.03); } 100% { transform: scale(1); } }
.digits__n { display: inline-block; animation: lowBeat2 1s var(--m-spring) infinite; }
@keyframes lowBeat2 { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } }

/* --- rating: each meme lands like a card (a lift, a slight tilt, then still); the author line slides up */
.vote__meme.is-in, .tvrev__meme.is-in { animation: cardIn 480ms var(--m-out) both; transform-origin: 50% 80%; }
@keyframes cardIn { 0% { opacity: 0; transform: translateY(26px) rotate(-2.5deg) scale(.92); } 60% { opacity: 1; transform: translateY(-3px) rotate(.6deg) scale(1.01); }
  100% { transform: none; } }
.vote__by:not([hidden]), .tvrev__by:not([hidden]) { animation: partIn 380ms var(--m-out) 200ms both; }

/* --- the lobby: a player who just arrived drops onto the bench */
.bench .av { animation: none; }
.bench .av--new { animation: benchDrop 620ms var(--m-out) both; transform-origin: 50% 100%; }
@keyframes benchDrop { 0% { opacity: 0; transform: translateY(-34px) scale(.7); } 55% { opacity: 1; transform: translateY(0) scale(1.1, .88); }
  78% { transform: scale(.96, 1.05); } 100% { transform: none; } }
.lobby__code, .codechip { animation: none; }

/* --- the recap: the winning meme lands, the rows slide in one after another (numbers count up in round.js) */
.recap__best .meme { animation: cardIn 560ms var(--m-out) 80ms both; }
.table__row:not(.table__head) { animation: rowIn 420ms var(--m-out) both; }
.table__row:nth-child(2) { animation-delay: 260ms; } .table__row:nth-child(3) { animation-delay: 310ms; }
.table__row:nth-child(4) { animation-delay: 360ms; } .table__row:nth-child(5) { animation-delay: 410ms; }
.table__row:nth-child(n+6) { animation-delay: 460ms; }
@keyframes rowIn { from { opacity: 0; transform: translateX(calc(var(--dir, -1) * 20px)); } }
.recap__mine { animation: partIn 420ms var(--m-out) 520ms both; }
.relaxed__cell { animation: cardIn 480ms var(--m-out) both; }
.relaxed__cell:nth-child(2) { animation-delay: 60ms; } .relaxed__cell:nth-child(3) { animation-delay: 120ms; }
.relaxed__cell:nth-child(4) { animation-delay: 180ms; } .relaxed__cell:nth-child(n+5) { animation-delay: 240ms; }

/* --- the podium: steps rise, then the players drop onto them, the winner last, with a glow behind */
.podium__who .av { animation: benchDrop 680ms var(--m-out) both; transform-origin: 50% 100%; }
.podium__col--3 .podium__who .av { animation-delay: 650ms; }
.podium__col--2 .podium__who .av { animation-delay: 850ms; }
.podium__col--1 .podium__who .av { animation-delay: 1100ms; }
.podium__col--1 .podium__who { position: relative; }
.podium__col--1 .podium__who::before { content: ''; position: absolute; inset: -30% -40%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 63, .55), transparent); animation: glow 2.4s ease-in-out 1.4s infinite both; }
@keyframes glow { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.podium--still .podium__who .av, .podium--still .podium__col { animation: none; }
.fin__title, .tvfin__head .tvtitle { animation: namePop 560ms var(--m-spring) 1.3s both; }

/* --- chat lines arrive from their side; floating lines spring in */
.chat__row.is-new { animation: chatRow 360ms var(--m-spring) both; transform-origin: 100% 100%; }
.chat__row.is-new.is-mine { transform-origin: 0 100%; }
@keyframes chatRow { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.chatpop__b { animation: chatPopIn 420ms var(--m-spring) both; }
@keyframes chatPopIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }

/* --- toasts and sheets: a toast springs up, a sheet glides on the enter curve */
.toast { transition: opacity 260ms var(--m-out), transform 420ms var(--m-spring); }
.layer .sheet { transition-timing-function: var(--m-out); }

@media (prefers-reduced-motion: reduce) {
  .screen.is-leaving, .screen.is-entering > *, .screen.is-entering > * > *, .intro__art, .tvintro__art, .intro__n, .tvintro__n,
  .intro__name, .tvintro__name, .intro__rule, .tvintro__rule, .write .topic, .vote__topic, .timer.is-low .timer__fill, .timer.is-low .timer__s,
  .preview.is-sent .meme, .digits__n, .vote__meme.is-in, .tvrev__meme.is-in, .vote__by, .tvrev__by, .bench .av--new, .recap__best .meme,
  .table__row, .recap__mine, .relaxed__cell, .podium__who .av, .podium__col--1 .podium__who::before, .fin__title, .tvfin__head .tvtitle,
  .chat__row.is-new, .chatpop__b { animation: none !important; }
  .gbtn::before { display: none; }
}

/* "המשחקים שלכם": only live rooms, with where they stand and an X */
.mine__row { display: flex; align-items: center; gap: 10px; }
.mine__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mine__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine__st { font-size: 13px; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine__x { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08);
  color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.mine__x:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .mine__x:hover { background: rgba(255,255,255,.16); } }
/* with live rooms listed the home keeps one screen: the two tiles sit side by side and the list rows stay slim */
.home.has-mine .tiles { flex-direction: row; }
.home.has-mine .tile { flex: 1 1 0; min-height: 104px; padding: 8px 12px; align-items: flex-start; justify-content: flex-start; text-align: start; }
.home.has-mine .tile__label { font-size: 24px; }
.home.has-mine .tile__sub { display: none; }
.mine .gbtn { min-height: 44px; padding: 6px 18px; font-size: 17px; }
.home.has-mine .tile--gold { background-position: 0% 62%; }
.home.has-mine .tile--violet { background-position: 0% 40%; }
