/* Spin & Kiss — the game's look. Colours come from the panel (brand.primary / brand.accent → --brand / --accent). */
:root {
  --brand: #7b2ff7;
  --accent: #ff3d8b;
  --bg1: #2a1250;
  --bg2: #120726;
  --card: #ffffff;
  --ink: #2b2140;
  --muted: #7c7393;
  --line: #ece7f6;
  --good: #2fbf71;
  --bad: #ff4d5e;
  --gold: #f5b301;
  --radius: 16px;
  --seat: clamp(52px, 8.6vmin, 96px);
  --chat-w: 375px;
  font-family: 'Cairo', 'Nunito', system-ui, sans-serif;
}
[dir="ltr"] { font-family: 'Nunito', 'Cairo', system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(circle at 30% 0%, #5b1fa8 0%, var(--bg1) 40%, var(--bg2) 100%);
  color: var(--ink);
  user-select: none;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
/* scrollbars: slim, in the game's colours (not the system's wide white bar beside the windows) */
* { scrollbar-width: thin; scrollbar-color: rgba(245, 179, 1, .75) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 179, 1, .75); border-radius: 6px; }
/* icon buttons (an emoji or a symbol in a fixed circle or square): Safari on the iPhone keeps a button's own side
   padding and draws Apple's wider emoji off-centre (out of the circle in Arabic) — no padding, no native look, a
   tight line, centred */
.top-btn, .side-btn, .rail-btn, .bottle, .lp-round, .vw-btn, .ti-x { padding: 0; -webkit-appearance: none; appearance: none; line-height: 1; text-align: center; }
.top-btn > *, .side-btn > *, .rail-btn > * { line-height: 1; }
.side-btn[hidden] { display: none; }
input, select { font: inherit; }
/* a list never wider than its place: the browser would size it by its longest choice (a country's name in Russian),
   pushing the whole form out of a phone's screen — a long choice is cut with dots inside it instead */
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
img { display: block; }
[hidden] { display: none !important; }
#app { height: 100%; }

/* ── buttons ───────────────────────────────────────────── */
.btn { border-radius: 999px; padding: .55em 1.2em; font-weight: 700; transition: transform .12s, filter .12s; display: inline-flex; align-items: center; justify-content: center; gap: .4em; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; box-shadow: 0 6px 16px rgba(123, 47, 247, .35); }
.btn.ghost { background: #f3eefc; color: var(--brand); }
.btn.ghost.danger { color: var(--bad); background: #fff0f2; }
.btn.big { font-size: 1.1rem; padding: .8em 1.6em; width: 100%; }
.btn.small { font-size: .85rem; padding: .35em .9em; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 20px; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.mini-btn { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--good); color: #fff; }
.chip { padding: .3em .8em; border-radius: 999px; background: #f3eefc; color: var(--ink); font-weight: 700; font-size: .85rem; border: 2px solid transparent; }
.chip.on { border-color: var(--c, var(--brand)); background: #fff; color: var(--c, var(--brand)); }
.price { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
.price .coin, .coins-btn .coin { width: 1.1em; height: 1.1em; }
.emoji { line-height: 1; }

/* ── boot & login ──────────────────────────────────────── */
.boot { height: 100%; display: grid; place-content: center; gap: 18px; color: #fff; text-align: center; }
.boot-logo { width: 96px; height: 96px; margin: auto; display: grid; place-items: center; }
.boot-g { width: 96px; height: 96px; animation: bootPulse 1.4s ease-in-out infinite; }
@keyframes bootPulse { 0%, 100% { transform: scale(.94); opacity: .55; filter: drop-shadow(0 0 0 rgba(255, 79, 163, 0)); } 50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 79, 163, .75)); } }
@keyframes spin { to { transform: rotate(360deg); } }
.login { height: 100%; display: grid; place-items: center; padding: 16px; }
/* "Confirm your email": the game waits for the emailed link */
.vw { height: 100%; display: grid; place-items: center; padding: 16px; }
.vw-card { width: min(420px, 100%); padding: 28px 24px 20px; border-radius: 24px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.vw-icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--brand)); box-shadow: 0 10px 24px rgba(123, 47, 247, .35); }
.vw-card h2 { margin: 0 0 8px; font-size: 1.4rem; }
.vw-card p { margin: 0 0 8px; line-height: 1.55; overflow-wrap: anywhere; }
.vw-sub { color: var(--muted); font-size: .9rem; }
.vw-note { min-height: 1.4em; font-weight: 700; font-size: .92rem; }
.vw-note.good { color: var(--good); } .vw-note.bad { color: var(--bad); }
.vw-btn { display: block; width: 100%; height: 50px; margin-top: 10px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; cursor: pointer; background: #f3eefc; color: var(--brand); }
.vw-btn.vw-main { background: linear-gradient(90deg, var(--accent), var(--brand)); color: #fff; }
.vw-btn:disabled { opacity: .6; cursor: default; }
.vw-link { margin-top: 12px; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.login-card { width: min(420px, 100%); background: rgba(255, 255, 255, .96); border-radius: 28px; padding: 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); display: grid; gap: 14px; }
.login-bottle { width: 54px; height: 150px; margin: -8px auto 0; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(16deg); } }
.login-title { margin: 0; font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-logo { max-width: 220px; max-height: 90px; margin: auto; }
.login-tagline { margin: 0; color: var(--muted); }
.login-terms { margin: 0; color: var(--muted); font-size: .78rem; }

/* ── shell ─────────────────────────────────────────────── */
.shell { height: 100%; display: grid; grid-template-rows: 54px 1fr; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #fff; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
.brand { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.coins-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .3); border-radius: 999px; padding-block: 4px; padding-inline: 12px 6px; color: #fff; font-size: 1rem; }
.coins-btn .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--good); display: grid; place-items: center; font-weight: 800; }
.top-spacer { flex: 1; }
.me-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.stage { min-height: 0; display: grid; grid-template-columns: 1fr var(--chat-w); }
body.offline .stage { filter: grayscale(.7) brightness(.8); pointer-events: none; }

/* ── table (measured from the original: a 604×512 ring of 93×121 cards, bottle 190×150 in the middle) ── */
.table-area { position: relative; min-height: 0; display: flex; padding: 0; }
.table { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; background-size: cover; background-position: center; overflow: hidden; }
/* the play area never mirrors in a right-to-left language: seats, bottle, kiss scene and the bar keep the same
   places as in English (the bottle's aim and spin physics depend on them); only the texts read in their own direction */
/* (only the play area itself: .table-area > .table — other things named "table", like a gift screen's "for everyone"
   buttons, follow the page) */
[dir="rtl"] .table-area > .table { direction: ltr; }
[dir="rtl"] .table-area > .table * { unicode-bidi: plaintext; }
.table-deco { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .16) 0 22%, transparent 60%),
              radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .35), transparent 60%); }
.ring-box { --u: 1px; position: relative; }
.seats { position: absolute; inset: 0; }
.seat { position: absolute; width: calc(93 * var(--u)); height: calc(121 * var(--u)); cursor: pointer; transition: opacity .3s; }
.seat.joined { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.seat-photo { position: relative; width: 100%; height: 100%; border-radius: calc(5 * var(--u)); background: rgba(255, 255, 255, .2); box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .45); }
/* the photo and the name bar in one layer: the player's seat shape cuts it (js/seatlook.js), the badges stay whole */
.seat-shape { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.seat-shape > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.seat-photo.shaped { background: none; box-shadow: none; filter: drop-shadow(0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .45)); }
.seat-photo.shaped .seat-shape { border-radius: 0; }
.seat.empty .seat-photo.shaped { border: 0; }
.seat.empty .seat-photo.shaped .seat-shape { background: rgba(255, 255, 255, .22); }
.seat.empty .seat-photo.shaped .plus { position: relative; }
.seat.leader .seat-photo.shaped { box-shadow: none; filter: drop-shadow(0 0 calc(4 * var(--u)) var(--gold)) drop-shadow(0 0 calc(10 * var(--u)) var(--gold)); }
.seat.target .seat-photo.shaped { box-shadow: none; filter: drop-shadow(0 0 calc(4 * var(--u)) var(--accent)) drop-shadow(0 0 calc(10 * var(--u)) var(--accent)); }
/* the room's weather: over the table's picture, under the seats; nothing to tap */
.table > canvas.weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.table > canvas.weather[hidden] { display: none; }
.seat.empty .seat-photo { display: grid; place-items: center; background: rgba(255, 255, 255, .22); box-shadow: none; border: calc(2 * var(--u)) solid rgba(255, 255, 255, .35); }
.seat .plus { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: calc(30 * var(--u)); font-weight: 800; background: #4c9ffe; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, .3); }
.seat-name { position: absolute; left: 0; right: 0; bottom: 0; height: calc(18 * var(--u)); line-height: calc(18 * var(--u)); padding: 0 calc(4 * var(--u)); text-align: center;
  font-size: calc(12 * var(--u)); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); border-radius: 0 0 calc(5 * var(--u)) calc(5 * var(--u)); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.seat-kisses { position: absolute; top: calc(-5 * var(--u)); left: calc(-5 * var(--u)); min-width: calc(23 * var(--u)); height: calc(17 * var(--u)); padding: 0 calc(4 * var(--u));
  display: grid; place-items: center; font-size: calc(9 * var(--u)); font-weight: 800; color: #fff; border-radius: calc(9 * var(--u)); background: #e8114a; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  z-index: 3; /* above the photo frame (drawn after it) */ }
.seat-frame { position: absolute; left: calc(-23 * var(--u)); top: calc(-29 * var(--u)); width: calc(140 * var(--u)); height: calc(181 * var(--u)); pointer-events: none; object-fit: contain; }
.seat-frame.color { left: calc(-4 * var(--u)); top: calc(-4 * var(--u)); width: calc(101 * var(--u)); height: calc(129 * var(--u)); border-radius: calc(8 * var(--u));
  border: calc(4 * var(--u)) solid var(--fc); box-shadow: 0 0 calc(12 * var(--u)) var(--fc); box-sizing: border-box; }
/* (my own seat has no mark of its own: without a frame only my photo shows — the owner, 2026-10-31) */
.seat.leader .seat-photo { box-shadow: 0 0 0 calc(4 * var(--u)) var(--gold), 0 0 calc(22 * var(--u)) var(--gold); }
.seat.target .seat-photo { box-shadow: 0 0 0 calc(4 * var(--u)) var(--accent), 0 0 calc(22 * var(--u)) var(--accent); }
.seat.away { opacity: .2; }
.badge { position: absolute; font-weight: 800; line-height: 1; }
.badge.crown { top: calc(-14 * var(--u)); right: calc(-10 * var(--u)); font-size: calc(22 * var(--u)); }
.badge.new { bottom: calc(22 * var(--u)); left: calc(-4 * var(--u)); background: var(--good); color: #fff; font-size: calc(9 * var(--u)); padding: calc(2 * var(--u)) calc(5 * var(--u)); border-radius: calc(6 * var(--u)); }
.seat-chance { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.seat-chance i { font-style: normal; font-size: calc(var(--cs) * var(--u)); line-height: 1; filter: drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .45)); animation: chancePop .45s ease; }
.seat-chance b { margin-top: calc(-4 * var(--u)); padding: 0 calc(6 * var(--u)); border-radius: 999px; background: var(--accent); color: #fff; font-size: calc(11 * var(--u)); font-weight: 800; line-height: calc(16 * var(--u)); }
@keyframes chancePop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.kick-badge { position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 30, 60, .55); display: grid; place-content: center; gap: 2px; text-align: center; color: #fff; font-weight: 800; font-size: calc(14 * var(--u)); }
.gift-pop { position: absolute; bottom: calc(14 * var(--u)); right: calc(-12 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); animation: pop2 .4s ease-out; }
.gift-pop .pop-pic { width: 72%; height: 72%; font-size: calc(26 * var(--u)); object-fit: contain; display: grid; place-items: center; }
@keyframes pop2 { from { transform: scale(0); } }
.emotion-pop { position: absolute; inset: 0; display: grid; place-items: center; animation: emo 2.6s ease-out forwards; pointer-events: none; }
.emotion-pop .emo-pic { font-size: calc(62 * var(--u)); width: 80%; height: 80%; object-fit: contain; display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
@keyframes emo { 0% { transform: scale(.2); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

.bottle-wrap { position: absolute; left: 50%; top: 50%; width: calc(190 * var(--u)); height: calc(190 * var(--u)); transform: translate(-50%, -50%); display: grid; place-items: center; }
.bottle { width: calc(48 * var(--u)); height: calc(160 * var(--u)); transform-origin: 50% 50%; filter: drop-shadow(0 calc(8 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .4)); }
.bottle svg { width: calc(48 * var(--u)); height: 100%; display: block; }
/* a bottle picture stands as tall as the default bottle (its own width, centred): the panel trims its empty margins */
.bottle { position: relative; }
/* the bottle's picture in a box of its own size: a player's picture (bottlelabel.js) goes at its spot, in % of it */
.bottle-art { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); display: block; }
.bottle img { display: block; height: 100%; width: auto; max-width: calc(130 * var(--u)); object-fit: contain; }
/* the whole bottle (bottleart.js): the picture masked to the bottle's shape below its cap, the bottle again over it,
   soft, for its glass shine and outline */
.bottle-whole { position: absolute; inset: 0; display: block; pointer-events: none;
  -webkit-mask-size: 100% 100%, 100% 100%; mask-size: 100% 100%, 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* the picture itself sits in the bottle's body: its top starts where the cap ends (inline top: <cap>%), so no face is
   lost under the cap; the mask on the parent still cuts it to the bottle's shape */
.bottle-whole-pic { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: #fff center top / cover no-repeat; }
.bottle-gloss { position: absolute; inset: 0; display: block; pointer-events: none; mix-blend-mode: soft-light; opacity: .75; }
.bottle-gloss > svg, .bottle-gloss > img { width: 100% !important; height: 100% !important; max-width: none; display: block; transform: none !important; }
.bottle-label { position: absolute; display: block; background: #fff center / cover no-repeat; border-radius: 14% / 12%; box-shadow: 0 0 0 calc(1.2 * var(--u)) rgba(255, 255, 255, .85), 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .35); pointer-events: none; }
.bottle.mine { cursor: pointer; animation: glow 1.2s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); } }
.turn-ring { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: start center; color: #fff; font-weight: 800; font-size: calc(14 * var(--u)); pointer-events: none; }
.turn-ring[data-on="1"] { border: calc(3 * var(--u)) dashed rgba(255, 255, 255, .4); animation: spin 18s linear infinite; }
/* under the bottle (it reaches 80 units from the centre; its dashed circle 95) down to the bottom row (155): the line,
   then the small button — on the circle's lower edge, where everyone looks */
.table-bar { position: absolute; left: 50%; top: calc(50% + 86 * var(--u)); width: calc(300 * var(--u)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); color: #fff; z-index: 4; pointer-events: none; }
.table-status { max-width: 100%; font-weight: 800; font-size: max(10.5px, calc(14 * var(--u))); line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: normal; text-shadow: 0 1px 4px rgba(0, 0, 0, .75); }
.table-status:empty { display: none; }
.btn.chance { pointer-events: auto; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); min-height: 0; height: max(22px, calc(28 * var(--u))); padding: 0 max(9px, calc(12 * var(--u))); border-radius: 999px; font-size: max(10.5px, calc(12.5 * var(--u))); font-weight: 800; background: linear-gradient(135deg, #ff6fb5, #ff3d8b); color: #fff; box-shadow: 0 3px 10px rgba(255, 61, 139, .5); animation: pulse 1.4s ease-in-out infinite; }
.btn.chance .coin-tag, .btn.chance [class*="coin"] { font-size: inherit; }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* kiss scene: the two cards meet in the middle at their table size */
.kiss-scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85); display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); opacity: 0; transition: opacity .3s, transform .3s; z-index: 5; }
.kiss-scene.in { opacity: 1; transform: translate(-50%, -50%); }
.scene-pair { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.scene-card { position: relative; width: calc(93 * var(--u)); height: calc(121 * var(--u)); animation: slide-a .5s ease-out; }
.scene-card.side-b { animation-name: slide-b; }
@keyframes slide-a { from { transform: translateX(-60px); opacity: 0; } }
@keyframes slide-b { from { transform: translateX(60px); opacity: 0; } }
.scene-card img { width: 100%; height: 100%; border-radius: calc(5 * var(--u)); object-fit: cover; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.scene-name { position: absolute; left: 0; right: 0; bottom: 0; height: calc(18 * var(--u)); line-height: calc(18 * var(--u)); text-align: center; color: #fff; font-size: calc(12 * var(--u)); background: linear-gradient(transparent, rgba(0, 0, 0, .65)); border-radius: 0 0 calc(5 * var(--u)) calc(5 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-choice { position: absolute; top: calc(-12 * var(--u)); right: calc(-12 * var(--u)); width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; display: grid; place-items: center; font-size: calc(18 * var(--u)); }
.scene-choice:empty { display: none; }
.scene-choice.yes { background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.scene-choice.no { background: #fff; box-shadow: 0 0 0 3px #adb5bd; }
.scene-mid { min-width: calc(80 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.scene-q { font-size: calc(26 * var(--u)); font-weight: 800; text-shadow: 0 3px 8px rgba(0, 0, 0, .6); }
.scene-count { font-size: calc(16 * var(--u)); font-weight: 800; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: rgba(0, 0, 0, .4); display: grid; place-items: center; }
.scene-actions { display: flex; flex-direction: column; gap: calc(8 * var(--u)); width: calc(140 * var(--u)); }
.btn.yes { background: #3ecf4a; color: #fff; font-size: calc(17 * var(--u)); padding: calc(8 * var(--u)); border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.btn.no { background: rgba(20, 20, 20, .75); color: #fff; font-size: calc(17 * var(--u)); padding: calc(8 * var(--u)); border-radius: 999px; }
.scene-wait { color: #fff; font-weight: 700; opacity: .9; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.scene-lips { width: calc(80 * var(--u)); animation: lips .9s ease-out; }
@keyframes lips { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.scene-broken { font-size: calc(50 * var(--u)); animation: lips .6s ease-out; }
.scene-result { font-weight: 800; font-size: calc(17 * var(--u)); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); white-space: nowrap; }
.kiss-scene.kissed .scene-card.side-a { transform: translateX(calc(14 * var(--u))) rotate(6deg); transition: transform .5s; }
.kiss-scene.kissed .scene-card.side-b { transform: translateX(calc(-14 * var(--u))) rotate(-6deg); transition: transform .5s; }

/* effects */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: visible; }
.fly-gift { position: absolute; transform: translate(-50%, -50%) scale(.6); transition: left 1s cubic-bezier(.3, .1, .3, 1), top 1s cubic-bezier(.3, -.4, .3, 1), transform 1s; display: grid; place-items: center; }
.fly-gift.go { transform: translate(-50%, -50%) scale(var(--end, 1.1)); }
/* a gift from someone not at the table falls onto the card from above its top corner, a little bounce as it lands */
.fly-gift.drop { opacity: 0; transform: translate(-50%, -50%) scale(var(--end, 1.1)); transition: top 1s cubic-bezier(.5, 0, .7, 1.3), opacity .2s; }
.fly-gift.drop.go { opacity: 1; }
.fly-gift .fly-pic { width: 54px; height: 54px; font-size: 46px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
/* SVGA gifts: the seat loop sits where the picture would (a little bigger: its glow reaches past the gift), the
   room effect covers the whole table above everything, without taking a click */
.svga-seat { position: relative; }
.svga-room { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
/* a seat gift's animation: inside the receiver's card, clipped to it (the photo's own rounded box) */
.svga-card { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fly-qty { position: absolute; bottom: -8px; inset-inline-end: -14px; background: var(--accent); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 999px; }
.heart-fx { position: absolute; top: 55%; animation: float 2.4s ease-out forwards; opacity: 0; }
@keyframes float { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-180px) scale(1.2) rotate(20deg); } }

.left-room { display: grid; gap: 16px; place-items: center; color: #fff; text-align: center; font-size: 1.1rem; }

/* ── chat ──────────────────────────────────────────────── */
.chat { min-height: 0; display: flex; flex-direction: column; background: #fff; border-start-start-radius: 22px; overflow: hidden; }
.chat-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.tab { padding: .5em 1em; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; position: relative; }
.tab.on { color: var(--brand); border-color: var(--brand); }
.tab .dot { position: absolute; top: 6px; inset-inline-end: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-list, .dm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; user-select: text; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg-ava { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; cursor: pointer; flex: none; }
.msg-box { position: relative; background: #f5f1fc; border-radius: 4px 14px 14px 14px; padding: 6px 10px; max-width: 82%; }
.msg.mine .msg-box { background: #ffe3f0; }
/* a line that mentions me ("@my name"): picked out in light green, like the original */
.msg.self-target .msg-box { background: #e3fbd3; box-shadow: inset 0 0 0 1.5px #9be27c; }
.msg-name { cursor: pointer; }
/* "@" in the chat: the players to mention, over the input (chat.js mentionHint) */
.chat-input-row { position: relative; }
.at-hint { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; max-height: min(190px, 32vh); overflow-y: auto; padding: 4px;
  border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(60, 30, 110, .22), 0 0 0 1px rgba(121, 87, 178, .14); }
.at-hint[hidden] { display: none; }
.at-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: start; font: inherit; font-weight: 700; font-size: 13px; color: #2b1d4a; }
.at-row:hover, .at-row:focus-visible { background: #f2ecfd; }
.at-row img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.at-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* as in Messenger (2026-11-09): everyone else on the left — their picture, then the bubble, its corner pointing at the
   picture —, mine on the right with no picture or name (chat.js add: the line is dir ltr, its bubble keeps the words' own
   direction) */
.msg { justify-content: flex-start; }
.msg .msg-box, [dir] .msg .msg-box { border-radius: 4px 14px 14px 14px; }
.msg.mine { flex-direction: row-reverse; }
/* (2026-11-10, the owner) my own lines show my picture too (not my name); an Arabic (RTL) page: mine on the right,
   the others' on the left — a left-to-right page (Russian, English …): mine on the left, the others' on the right */
.msg.mine .msg-name { display: none; }
html[dir="ltr"] .msg { flex-direction: row-reverse; }
html[dir="ltr"] .msg .msg-box { border-radius: 14px 4px 14px 14px; }
html[dir="ltr"] .msg.mine { flex-direction: row; }
html[dir="ltr"] .msg.mine .msg-box { border-radius: 4px 14px 14px 14px; }
.msg.mine .msg-box, [dir] .msg.mine .msg-box { border-radius: 14px 4px 14px 14px; }
.msg-name { font-weight: 800; font-size: .8rem; color: var(--brand); cursor: pointer; }
.msg-name > .bdg:first-child { margin-inline-start: 0; }
/* the role icon before a name (lists, profiles): no space before it, a little after */
.dm-name > .bdg:first-child, .pc-name > .bdg:first-child, .pf-name > .bdg:first-child, .pf-pname > .bdg:first-child, .soc-txt b > .bdg:first-child { margin-inline-start: 0; margin-inline-end: 4px; }
.msg-text { font-size: .92rem; word-break: break-word; }
.msg-quote { font-size: .78rem; color: var(--muted); border-inline-start: 3px solid var(--accent); padding-inline-start: 6px; margin: 2px 0; }
.msg-sticker .sticker-pic, .ca-cc-sticker .sticker-pic { width: 84px; height: 84px; font-size: 64px; object-fit: contain; display: grid; place-items: center; }
.msg-reply { position: absolute; top: 2px; inset-inline-end: -26px; opacity: 0; color: var(--muted); }
.msg:hover .msg-reply { opacity: 1; }
.note { align-self: center; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); background: #f8f6fc; padding: 4px 10px; border-radius: 999px; }
.note.gift { color: #c2255c; background: #fff0f6; }
.note.warn { color: #d9480f; background: #fff4e6; }
.note.good { color: #2b8a3e; background: #ebfbee; }
/* wedding lines: a soft card with a round icon or the players' photos */
.note.wedding { display: flex; align-items: center; gap: 8px; max-width: 92%; padding: 5px 12px 5px 5px; border-radius: 18px; text-align: start; font-size: .82rem;
  color: #9c1f5c; background: linear-gradient(135deg, #fff0f6, #f3e8ff); border: 1px solid #ffd6e8; box-shadow: 0 2px 8px rgba(156, 31, 92, .1); }
.wn-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.wn-ico.ava { background: center / cover #eee; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .2); }
.wn-ico.ava + .wn-ico.ava { margin-inline-start: -14px; }
.wn-text { flex: 1; min-width: 0; }
.wn-tag { flex: none; font-size: 16px; }
.note.wedding.big { color: #fff; font-size: .9rem; background: linear-gradient(135deg, #ff7aa2, #b04bd6); border-color: transparent; box-shadow: 0 6px 16px rgba(176, 75, 214, .35); }
.note.wedding.win { color: #8a4b00; background: linear-gradient(135deg, #fff9db, #ffe8cc); border-color: #ffe066; }
/* the bouquet caught: a festive card — her photo in a gold ring, the bouquet's picture, a soft shine passing */
.note.wedding.catch { flex: none; position: relative; overflow: hidden; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 22px; font-size: .86rem; color: #7a2350;
  background: linear-gradient(135deg, #fff5fa 0%, #ffe1ee 55%, #fff1d6 100%); border: 1.5px solid transparent;
  background-clip: padding-box; box-shadow: 0 0 0 1.5px #f7c66b, 0 6px 18px rgba(214, 120, 160, .28); }
.note.wedding.catch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); transform: translateX(-100%); animation: wn-shine 2.4s ease-in-out .3s 2; pointer-events: none; }
.note.wedding.catch .wn-ico.ava { width: 38px; height: 38px; box-shadow: 0 0 0 2.5px #f7c66b, 0 2px 8px rgba(0, 0, 0, .2); }
.note.wedding.catch .wn-text { font-weight: 800; line-height: 1.3; }
.wn-tag.pic { width: 40px; height: 40px; display: grid; place-items: center; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); animation: wc-sway 1.6s ease-in-out infinite; }
.wn-bq { width: 100%; height: 100%; object-fit: contain; font-size: 28px; line-height: 1; display: grid; place-items: center; }
@keyframes wn-shine { to { transform: translateX(100%); } }
.reply-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; font-size: .82rem; background: #fff0f6; color: var(--ink); }
.reply-bar .icon-btn { color: var(--muted); width: 28px; height: 28px; font-size: 14px; }
.chat-input-row { display: flex; align-items: center; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-input-row .icon-btn { color: var(--brand); flex: none; }
.chat-input-row .send { background: var(--brand); color: #fff; }
[dir="rtl"] .chat-input-row .send { transform: scaleX(-1); }
.chat-input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: .5em 1em; outline: none; user-select: text; }
.chat-input:focus { border-color: var(--brand); }
.chat-picker { max-height: 46%; overflow-y: auto; padding: 8px; border-top: 1px solid var(--line); background: #fbfaff; }
.picker-row { display: flex; flex-wrap: wrap; gap: 2px; }
.emo { font-size: 22px; width: 36px; height: 36px; border-radius: 8px; }
.emo:hover { background: #f0eafc; }
.picker-title { display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); font-size: .8rem; margin: 8px 2px 4px; }
.picker-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sticker { aspect-ratio: 1; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); display: grid; place-items: center; }
.sticker .sticker-pic { width: 70%; height: 70%; font-size: 36px; object-fit: contain; display: grid; place-items: center; }
.dm-heads { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dm-head { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f3eefc; font-weight: 700; white-space: nowrap; }
.dm-head.on { background: var(--brand); color: #fff; }
.dm-head img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.dm-msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.dm-msg { align-self: flex-start; background: #f5f1fc; padding: 6px 12px; border-radius: 14px; max-width: 80%; }
.dm-msg.mine { align-self: flex-end; background: #ffe3f0; }
.empty-note { color: var(--muted); text-align: center; padding: 20px; }

/* ── panels & dialogs ──────────────────────────────────── */
#layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
#layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(10, 4, 25, .5); opacity: 0; transition: opacity .25s; }
.scrim.in { opacity: 1; }
.panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease-out; box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
[dir="rtl"] .panel { transform: translateX(-100%); }
.panel.wide { width: min(560px, 100%); }
.panel.in { transform: none !important; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.panel-title { font-weight: 800; font-size: 1.1rem; }
.panel .close { color: var(--muted); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px; }
.section-title { font-weight: 800; color: var(--muted); font-size: .85rem; margin: 18px 0 8px; }
.dialog-wrap { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 4, 25, .55); } /* a question is answered before anything else: above windows and drawers */
.dialog { background: #fff; border-radius: 22px; padding: 22px; width: min(340px, 92%); text-align: center; font-weight: 700; }
/* a choice from a list (the languages): two columns of buttons, the current one marked */
.pick-box .pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; max-height: 60vh; overflow-y: auto; }
.pick-box .pick-list button { padding: 10px 8px; border-radius: 12px; border: 1.5px solid #e6e1ee; background: #faf8fd; font: inherit; font-weight: 700; color: #3a2d4f; cursor: pointer; }
.pick-box .pick-list button:hover { border-color: #b98cf0; }
.pick-box .pick-list button.on { border-color: #7b2ff7; background: #f1e9ff; color: #5b17c9; }
.dialog-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
#toasts { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; pointer-events: none; }
.toast { background: rgba(30, 16, 56, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; transform: translateY(-10px); transition: all .25s; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.toast.in { opacity: 1; transform: none; }
.toast.error { background: #e03131; }
.toast.good { background: #2b8a3e; }

/* player card */
.pc-head { display: flex; gap: 14px; align-items: center; }
.pc-photo { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.pc-name { font-size: 1.3rem; font-weight: 800; }
.pc-sub { color: var(--muted); font-size: .9rem; }
.pc-status { font-style: italic; margin-top: 4px; }
.pc-tag { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f1f3f5; color: var(--muted); }
.pc-tag.online { background: #ebfbee; color: #2b8a3e; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; text-align: center; }
.pc-stats > div { background: #f8f6fc; border-radius: 14px; padding: 8px 4px; color: var(--muted); font-size: .8rem; }
.pc-stats b { display: block; font-size: 1.2rem; color: var(--ink); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-row, .qty-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gift-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .12s; }
.gift-cell:hover { transform: translateY(-2px); }
.gift-pic { width: 46px; height: 46px; font-size: 38px; object-fit: contain; display: grid; place-items: center; }
.gift-name { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gift-cell .price { font-size: .78rem; }
.vip-tag { position: absolute; top: 4px; inset-inline-end: 4px; font-size: 9px; font-weight: 800; background: var(--gold); color: #fff; padding: 1px 5px; border-radius: 6px; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.emo-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: #f8f6fc; font-size: .75rem; }
.emo-cell .emo-pic { font-size: 32px; width: 40px; height: 40px; object-fit: contain; display: grid; place-items: center; }
.emo-cell.locked { opacity: .5; }
.emo-cell small { color: var(--muted); font-weight: 700; }
.gift-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.wall-item { display: flex; flex-direction: column; align-items: center; font-size: .75rem; font-weight: 800; color: var(--muted); }
.wall-pic { width: 40px; height: 40px; font-size: 32px; object-fit: contain; display: grid; place-items: center; }

/* profile form */
.profile-form { display: grid; gap: 12px; }
.profile-form label { display: grid; gap: 4px; font-weight: 800; font-size: .85rem; color: var(--muted); }
.profile-form input, .profile-form select { border: 2px solid var(--line); border-radius: 12px; padding: .6em .8em; color: var(--ink); background: #fff; user-select: text; }
.profile-form input:focus, .profile-form select:focus { outline: none; border-color: var(--brand); }
.pf-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf-photo { width: 110px; height: 110px; border-radius: 28px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.sex-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sex-btn { padding: .7em; border-radius: 14px; border: 2px solid var(--line); font-weight: 800; color: var(--ink); }
.sex-btn.on { border-color: var(--brand); background: #f3eefc; color: var(--brand); }
.sex-btn:disabled { opacity: .4; }
.hint { color: var(--muted); font-size: .78rem; font-weight: 600; }
.form-err { color: var(--bad); font-weight: 800; min-height: 1.2em; }
.panel.onboarding { width: min(460px, 100%); }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 20px; background: linear-gradient(180deg, #fff, #f6f0ff); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.pack.best { box-shadow: 0 0 0 3px var(--accent), 0 8px 20px rgba(255, 61, 139, .25); }
.pack-ribbon { position: absolute; top: -10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.pack-pic { width: 64px; height: 64px; object-fit: contain; font-size: 48px; display: grid; place-items: center; }
.pack-coins { font-weight: 800; font-size: 1.05rem; }
.pack-bonus { font-size: .78rem; font-weight: 800; color: var(--good); }

/* menu */
.menu { display: grid; gap: 4px; }
.menu-me { display: flex; align-items: center; gap: 12px; padding: 8px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-me img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-weight: 700; text-align: start; }
.menu-item:hover { background: #f5f1fc; }
.mi-ico { font-size: 20px; width: 28px; text-align: center; }

.ring-box.kissing .bottle-wrap { opacity: 0; transition: opacity .3s; }

/* ══ phase 2: the original's frame — feed 122 | table | chat 375 | rail 72, footer 47 ══ */
/* the icon rail and the chat sit on the side a line starts from: left in English, right in Arabic (the grid's
   columns follow the page's direction); the leaders' feed is on the other side */
.shell { display: grid; height: 100%; grid-template-columns: 72px 375px minmax(0, 1fr) 122px; grid-template-rows: minmax(0, 1fr) 47px; }
/* (a phone's table switch + pause: shown by mobile.css only) */
.m-tablebtns { display: none; }
.room { grid-column: 3; grid-row: 1; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.room .table-area { flex: 1; min-height: 0; }
.topbar { position: absolute; top: 0; left: 0; right: 0; height: 60px; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent); backdrop-filter: none; color: #fff; }
.top-spacer { flex: 0 0 24px; }
.coins-btn { height: 42px; padding-block: 0; padding-inline: 12px 6px; font-size: 1.05rem; border: 2px solid #f5b301; background: rgba(0, 0, 0, .45); }
.top-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(0, 0, 0, .35); color: #fff; }
.top-btn:hover { background: rgba(0, 0, 0, .55); }
.top-btn .dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: #ff3d4f; box-shadow: 0 0 0 2px #fff; }
.top-btn .dot.count { top: 0; right: 0; width: auto; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.top-btn .dot[hidden] { display: none; }
.league-badge { --lc: #f5b301; position: relative; height: 42px; min-width: 155px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); border: 2px solid var(--lc); color: #fff; }
.lb-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--lc); color: #1b1030; }
.lb-num.staff { background: radial-gradient(circle at 35% 30%, #7b4fe0, #3a1a86 65%, #24105a); box-shadow: inset 0 0 0 2px #f5c542, 0 1px 3px rgba(0, 0, 0, .4); font-size: 18px; line-height: 1; }
.lb-num.img { background: center / 120% no-repeat; border-radius: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.lb-texts { display: flex; flex-direction: column; line-height: 1.1; font-size: 12px; text-align: start; }
.lb-time { opacity: .8; }
.lb-pts { font-weight: 800; }
.lb-plus { position: absolute; right: 8px; top: -6px; color: #ffd43b; font-weight: 800; animation: float 1.6s ease-out forwards; }

/* the feed column */
.feed { grid-column: 4; grid-row: 1; background: #252529; overflow-y: auto; overflow-x: hidden; padding: 6px 7px 12px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed-bar { display: contents; }
.feed-pause .fp-short { display: none; }
.feed-pause { align-self: center; font-size: 11px; font-weight: 700; color: #fff; background: #5b3fd1; border-radius: 999px; padding: 3px 10px; }
.feed-pause.on { background: #2f9e44; }
.feed-buy { position: relative; width: 108px; height: 130px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px;
  background: linear-gradient(180deg, #4dabf7, #1971c2); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); flex: none; }
.feed-buy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.feed-buy-text { position: relative; font-weight: 800; font-size: 15px; text-align: center; line-height: 1.1; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.feed-buy-price { position: relative; margin-top: 6px; background: #2f9e44; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.feed-list { display: flex; flex-direction: column; gap: 9px; }
.feed-item { position: relative; width: 108px; height: 130px; margin: 0 auto; border-radius: 8px; overflow: hidden; flex: none; border: 3px solid var(--nc, rgba(255, 255, 255, .55)); box-shadow: 0 0 8px var(--nc, transparent), 0 3px 8px rgba(0, 0, 0, .4); }
.feed-item img { width: 100%; height: 100%; object-fit: cover; }
.feed-item.new { animation: feedIn .5s ease-out; }
@keyframes feedIn { from { transform: translateY(-40px); opacity: 0; } }
/* the name: centred and bold on a dark band across the photo's foot, clear on any picture (the owner, 2026-11-01) */
.feed-name { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; font-size: 12px; line-height: 1.25; color: #fff; padding: 4px 5px; background: rgba(0, 0, 0, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); white-space: nowrap; }
.feed-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; text-align: center; }
.feed-name i { flex: none; font-style: normal; }

/* the chat column with the video player on top */
.messenger { grid-column: 2; grid-row: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.messenger .chat { flex: 1; min-height: 0; border-radius: 0; }
.video-player { flex: none; background: #000; color: #fff; }
.vp-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* (the frame only: the controls bar is a div of the stage too, and must take clicks) */
.vp-stage iframe, .vp-stage > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vp-info { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #17121f; }
.vp-ava { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.vp-texts { flex: 1; min-width: 0; line-height: 1.2; }
.vp-by { font-size: 12px; font-weight: 800; }
.vp-title { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-buttons { display: flex; gap: 4px; }
.vp-btn { min-width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 14px; padding: 0 6px; }
.vp-btn small { font-size: 10px; }
.vp-btn:disabled { opacity: .4; }
/* the song's volume: − | 🔊 70% | + in one pill */
.vp-vol { display: inline-flex; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.vp-vol .vp-btn { background: transparent; }
.vp-vol .vp-step { min-width: 24px; font-size: 16px; font-weight: 800; }
.vp-vol .vp-mute small { min-width: 26px; }
/* the staff's buttons on the song */
.vp-btn.vp-staff { background: rgba(253, 111, 113, .85); }
/* the song's line, then its controls on a row of their own (the title keeps its width) */
.vp-info { flex-wrap: wrap; row-gap: 6px; }
.vp-info .vp-buttons { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
.vp-vol { direction: ltr; margin-inline-end: auto; }
.vp-info .vp-btn { height: 32px; min-width: 34px; font-size: 15px; }
.vp-fav.on { color: #ff4f8b; }
.vp-vol .vp-step { min-width: 30px; font-size: 18px; }
.video-panel .vp-add { display: flex; gap: 8px; }
.vp-input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: .55em .8em; user-select: text; }
.vp-priority { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; font-weight: 700; font-size: .85rem; }
.vp-results { display: grid; gap: 6px; margin-top: 8px; }
.vp-result { display: flex; gap: 8px; align-items: center; text-align: start; padding: 4px; border-radius: 10px; background: #f8f6fc; }
.vp-result img { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; }
.vp-result b { display: block; font-size: .85rem; }
.vp-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }

/* the icon rail and the footer */
.rail { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; background: linear-gradient(180deg, #6a35c9, #3c1a86); }
.rail-btn { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; background: rgba(255, 255, 255, .08); transition: background .15s, transform .15s; }
.rail-btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.05); }
.footer { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: #1b1530; color: rgba(255, 255, 255, .75); font-size: 12px; }
.footer a { color: inherit; }
.foot-brand { font-weight: 800; color: #fff; }
.foot-id { color: inherit; font-size: 12px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px 12px; }

/* panels: leagues, achievements, calendar, design, courtship, balances */
.progress { height: 8px; border-radius: 999px; background: #eee8f7; overflow: hidden; margin: 6px 0 2px; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: inherit; }
.big-ico { font-size: 54px; text-align: center; }
.league-locked { text-align: center; }
.lg-head { --lc: #f5b301; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #2a1250, #5b1fa8); color: #fff; }
.lg-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; background: var(--lc); color: #1b1030; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.lg-name-big { font-weight: 800; font-size: 1.1rem; }
.lg-time { font-size: .85rem; opacity: .85; }
.lg-points { margin-inline-start: auto; text-align: center; }
.lg-points b { display: block; font-size: 1.5rem; line-height: 1; }
.lg-points small { font-size: .7rem; opacity: .8; }
.league-last { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: #fff9db; font-weight: 700; font-size: .85rem; }
.lg-entry { margin-top: 10px; font-weight: 700; font-size: .9rem; }
.lg-list { display: grid; gap: 4px; }
.lg-row { display: grid; grid-template-columns: 26px 34px 1fr auto auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 12px; background: #f8f6fc; cursor: pointer; }
.lg-row img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.lg-row.up { background: #ebfbee; }
.lg-row.down { background: #fff5f5; }
.lg-row.me { box-shadow: inset 0 0 0 2px var(--brand); }
.lg-place { font-weight: 800; text-align: center; color: var(--muted); }
.lg-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pts { color: var(--brand); }
.lg-how { margin: 0; padding-inline-start: 18px; line-height: 1.9; font-size: .9rem; }
.ach-grid { display: grid; gap: 8px; }
.ach-card { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #f8f6fc; opacity: .8; }
.ach-card.got { opacity: 1; background: linear-gradient(135deg, #fff9db, #fff); box-shadow: 0 2px 8px rgba(245, 179, 1, .25); }
.ach-ico { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: #fff; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.ach-level { position: absolute; bottom: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ach-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; }
.ach-body small { color: var(--muted); }
.ach-count { display: flex; justify-content: space-between; align-items: center; }
.rw { display: inline-flex; align-items: center; gap: 2px; }
.rw b { font-size: .8rem; }
.design-panel .dz-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dz-reset { margin-bottom: 10px; }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.dz-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; background: #f8f6fc; text-align: center; }
.dz-cell.on { box-shadow: inset 0 0 0 2px var(--good); background: #ebfbee; }
.dz-cell.locked .dz-frame, .dz-cell.locked .dz-table, .dz-cell.locked .dz-bottle, .dz-cell.locked .dz-color { filter: saturate(.6); }
.dz-name { font-weight: 700; font-size: .82rem; }
.dz-on { font-weight: 800; color: var(--good); font-size: .8rem; }
.dz-reward { color: var(--muted); }
.dz-frame { position: relative; width: 62px; height: 80px; border-radius: 6px; box-shadow: 0 0 0 4px var(--fc), 0 0 12px var(--fc); }
.dz-frame .dz-ava { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.dz-frame img:not(.dz-ava) { position: absolute; left: -15px; top: -19px; width: 92px; height: 118px; object-fit: contain; z-index: 1; }
.dz-color { font-weight: 800; font-size: 1.2rem; padding: 18px 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.dz-table { width: 100%; height: 70px; border-radius: 10px; }
.dz-bottle { height: 80px; width: 30px; }
.dz-bottle svg, .dz-bottle img { width: 100%; height: 100%; object-fit: contain; }
.vip-tag.static { position: static; font-size: .75rem; padding: 2px 8px; }
.dz-open { width: 100%; margin-top: 10px; }
.pc-stats.four { grid-template-columns: repeat(4, 1fr); }
.pc-stats button { background: #f8f6fc; border-radius: 14px; padding: 8px 4px; color: var(--muted); font-size: .8rem; }
.court { margin-top: 4px; }
.court-who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #fff0f6; }
.court-who img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.court-who > div { flex: 1; display: flex; flex-direction: column; font-size: .85rem; }
.court-who small { color: var(--muted); }
.court-ph, .court-name { all: unset; cursor: pointer; }
.court-ph { display: block; line-height: 0; flex: none; }
.court-name { font-weight: 700; align-self: flex-start; }
.court-name:hover { text-decoration: underline; }
.court-none { color: var(--muted); font-weight: 700; padding: 6px 2px; }
.court-btn { width: 100%; margin-top: 8px; }
.court-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.court-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #f3eefc; font-weight: 700; font-size: .8rem; }
.court-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
/* whom I court, on the Relationships card (2026-11-16): their photos in a little overlapping row, +N for the rest,
   and the button that opens the whole list */
.court-stack { display: inline-flex; align-items: center; direction: ltr; }
.court-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(40, 20, 70, .25); }
.court-av + .court-av { margin-inline-start: -12px; }
.court-more { padding: 2px 8px; border-radius: 999px; background: #efe6ff; color: #6b3fb5; font-size: .78rem; font-weight: 900; }
.court-count { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; background: #fdeaf4; color: #b23a76; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.court-count b { font-weight: 900; }
.court-mine { justify-content: flex-start; }
.court-see { margin-inline-start: auto; }
.court-see { flex: none; }
/* the list itself */
.cm-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 16px; }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 6px; font-weight: 900; color: #4a2f7a; }
.cm-total { display: inline-flex; align-items: baseline; gap: 2px; font-size: .86rem; font-weight: 900; color: #7a5fae; white-space: nowrap; }
.cm-total small { font-size: .72rem; font-weight: 700; opacity: .85; }
.cm-count { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; background: #fdeaf4; color: #b23a76; font-size: .86rem; font-weight: 900; white-space: nowrap; }
.cm-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(50, 25, 90, .10); }
.cm-ph { flex: none; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; }
.cm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cm-name { flex: 1; min-width: 0; text-align: start; max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font-size: .95rem; font-weight: 900; color: #2e1b50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cm-fact { display: inline-flex; align-items: baseline; gap: 3px; font-size: .78rem; color: #6b5a86; }
.cm-fact b { font-weight: 900; color: #3a2a5e; }
.cm-fact i { font-style: normal; }
.cm-bar { position: relative; height: 16px; border-radius: 999px; overflow: hidden; background: #ece4f8; }
.cm-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, #ff8cc6, #b07cff); }
.cm-bar b { position: relative; display: block; text-align: center; font-size: .68rem; font-weight: 800; line-height: 16px; color: #43305f; }
.cm-head { display: flex; align-items: baseline; gap: 8px; }
.cm-tabs { display: flex; gap: 6px; padding: 2px 0 8px; }
.cm-tabs button { flex: 1; min-width: 0; display: grid; place-items: center; height: 38px; padding: 0; border: 0; border-radius: 12px; background: #f1ebfd; color: #6b5a86; cursor: pointer; }
.cm-tabs button.on { background: linear-gradient(180deg, #8b5cf6, #6d35d6); color: #fff; box-shadow: 0 2px 6px rgba(90, 50, 170, .35); }
.cm-tab-ico { display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
.cm-tab-ico img { width: 20px; height: 20px; }
.cm-rows { display: flex; flex-direction: column; gap: 8px; }
.cm-next { display: flex; align-items: baseline; gap: 4px; font-size: .74rem; font-weight: 700; color: #7a5fae; }
.cm-next b { color: #3a2a5e; font-weight: 900; }
.cm-time { flex: none; display: inline-flex; align-items: baseline; gap: 3px; color: #6b5a86; font-size: .72rem; white-space: nowrap; }
.cm-time b { font-size: .78rem; font-weight: 900; color: #3a2a5e; }
.cm-ext { width: 100%; margin-top: 2px; padding: 7px 10px; border: 0; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; cursor: pointer; }
.cm-ext .coin-tag, .cm-ext .coin { font-size: .74rem; }
.bal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bal { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: #f8f6fc; }
.bal span { font-size: 22px; }
.bal small { color: var(--muted); font-size: .72rem; }
.price.tokens { color: #c2255c; }

.room .table { padding: 60px 0 12px; }
.room .ring-box { margin-bottom: 0; }
.vip-perks { padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff9db, #fff0f6); margin-bottom: 12px; }
.vip-perks ul { margin: 6px 0 0; padding-inline-start: 18px; line-height: 1.8; font-size: .9rem; }
.pack-name { font-size: .78rem; color: var(--muted); }
.pay-box { min-height: 200px; }
.pay-summary { display: flex; justify-content: space-between; font-size: 1.1rem; padding: 12px; border-radius: 14px; background: #f8f6fc; margin-bottom: 12px; }
.pay-methods { display: grid; gap: 10px; }
.pay-frame { min-height: 360px; }
.pay-wait { text-align: center; padding: 30px 0; }
/* the payment window (js/payelements.js): Google Pay / Apple Pay / Link on top, "or pay by card", the card form, Pay */
.pay-express { margin: 4px 0 2px; min-height: 48px; }
.pay-or { display: flex; align-items: center; gap: 10px; color: #8a80a0; font-size: .85rem; margin: 12px 0; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: #e6e1ef; }
.pay-card { min-height: 120px; }
.pay-err { margin: 10px 0 0; }
.pay-now { width: 100%; margin-top: 14px; padding: 13px 16px; font-size: 1.05rem; border-radius: 14px; }
.pay-now:disabled { opacity: .55; cursor: default; }
.pay-now.busy { opacity: .7; }
.pay-test { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #fff6d6; color: #7a5a00; font-size: .85rem; font-weight: 700; }
.pay-secure { margin: 10px 0 0; text-align: center; color: #8a80a0; font-size: .78rem; }
.pay-wait .btn { display: block; margin: 10px auto 0; min-width: 220px; }

/* ══ the messenger, measured from the original: video 375×221 · tabs 30px · header 32px · #F5EFFF body · input 50px ══ */
.video-player { position: relative; flex: none; height: 221px; background: #000; color: #fff; overflow: hidden; }
.video-player[hidden] { display: block !important; }
.vp-stage { position: absolute; inset: 0; aspect-ratio: auto; }
.vp-stage iframe, .vp-stage > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vp-stage .vp-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); padding: 18px 8px 6px; }
.vp-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  background: linear-gradient(180deg, #f3e8ff 0%, #e2ccff 100%); color: #6b5a8e; }
.vp-idle-text { font-size: 18px; line-height: 1.3; max-width: 220px; }
.btn.vp-on { background: #13b33b; color: #fff; padding: .7em 1.8em; font-size: 15px; box-shadow: 0 4px 10px rgba(19, 179, 59, .35); }
.mtabs { flex: none; height: 30px; display: flex; gap: 2px; padding-inline-start: 0; background: #e6d6fb; }
.mtab { position: relative; width: 60px; height: 30px; display: grid; place-items: center; font-size: 16px; background: #7957b2; color: #fff; border-radius: 6px 6px 0 0; }
.mtab.on { background: #fff; }
.mtab .dot { position: absolute; top: 3px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff3d4f; }
.chat-header { flex: none; height: 32px; display: flex; align-items: center; justify-content: center; position: relative; background: #fff; }
.chat-title { font-size: 13px; font-weight: 700; color: #6b4fa0; }
.chat-switch { position: relative; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f1ebfb; }
.chat-sw { height: 24px; padding: 0 12px; border-radius: 999px; background: none; color: #7a64a8; font-size: 12px; font-weight: 800; white-space: nowrap; transition: background .15s, color .15s; }
.chat-sw.on { background: #fff; color: #4b2f8f; box-shadow: 0 1px 4px rgba(75, 47, 143, .18); }
.chat-sw-emblem { font-size: 12px; }
.chat-sw-dot { position: absolute; top: 0; inset-inline-end: 2px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 0 2px #fff; }
.club-list .club-quiet { margin: auto; }
.chat.in-club .side-btns > :is(.side-design, .music, .sound) { display: none !important; }
.chat.no-club .side-btns { display: none; }
.chat.no-club .chat-body.with-side > .club-list { display: flex; flex-direction: column; justify-content: center; padding-inline: 16px; }
.club-locked { margin: auto; }
.club-locked small { display: block; max-width: 230px; margin: -4px auto 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.club-tipinfo { display: grid; gap: 4px; text-align: start; font-size: 12.5px; }
.club-tipinfo > b { font-size: 13.5px; }
.chat-menu { position: absolute; inset-inline-end: 12px; top: 6px; font-size: 16px; letter-spacing: -1px; color: #6b4fa0; font-weight: 800; line-height: 1; }
.chat-body { position: relative; flex: 1; min-height: 0; display: flex; background: #f5efff; }
.chat-body > .chat-list, .chat-body > .chat-top, .chat-body > .chat-music, .chat-body > .dm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
/* the table's chat keeps clear of its side buttons (on the reading end) */
.chat-body.with-side > div:not(.side-btns) { padding-inline-end: 62px; }
.chat-body:not(.with-side) > .side-btns { display: none; }
/* clear of the list's scroll bar (which runs along that edge): a little inside the chat */
.side-btns { position: absolute; top: 6px; inset-inline-end: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
/* a short chat (the keyboard open on a phone): the buttons scroll inside the chat, never over the message box */
.side-btns { max-height: calc(100% - 12px); overflow-y: auto; scrollbar-width: none; }
.side-btns::-webkit-scrollbar { display: none; }
.side-btns > * { flex-shrink: 0; }
.side-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; background: rgba(121, 87, 178, .64); }
.side-btn.music, .side-btn.sound { background: #8b5cf6; font-size: 14px; }
.chat-body.with-side > div:not(.side-btns) { padding-inline-end: 14px; }
/* the side buttons live in the ••• window now (main.js tableInfo); only the club's donation box stays here */
.side-btns:not(.open) > .side-btn:not(.side-fold) { display: none !important; }
/* the floating arrow: folded it is the only button (the messages keep the whole width); open, the buttons float under it */
.side-btn.side-fold { width: 34px; height: 34px; background: #7957b2; color: #fff; box-shadow: 0 4px 12px rgba(80, 40, 160, .35); border: 2px solid #fff; }
.side-fold svg { display: block; transition: transform .2s; }
.side-btns.open > .side-fold svg { transform: rotate(180deg); }
.side-btns.open > .side-btn:not(.side-fold) { box-shadow: 0 3px 10px rgba(60, 30, 120, .25); }
.chat-body.with-side:has(.cs-fab-slot:not([hidden])) > div:not(.side-btns) { padding-inline-end: 62px; }
/* the ••• window's row: design, songs, sounds */
.ti-quick { display: flex; gap: 6px; padding: 8px 0 2px; border-top: 1px solid #f1ecfa; }
.ti-q { flex: 1; min-width: 0; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; background: #8b5cf6; color: #fff; font-size: 16px; }
.ti-q.off { background: #fd6f71; }
/* off (muted): red, so it reads at a glance */
.side-btn.music.off, .side-btn.sound.off { background: #fd6f71; }
/* "i": the table's card beside the button */
.ti-pop { position: fixed; z-index: 60; width: 230px; padding: 10px 12px 12px; border-radius: 14px; background: #fff; color: #2a2140; box-shadow: 0 12px 32px -10px rgba(40, 20, 90, .45), 0 0 0 1px #ece6f7; font-size: 13px; }
/* the VIP chat's window (no table number, no table music) */
.ti-pop.ti-vip { width: 260px; }
.ti-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ti-head b { font-size: 14px; }
.ti-x { width: 24px; height: 24px; border-radius: 50%; background: #f3eefc; color: #6a5f85; font-size: 16px; line-height: 1; }
.ti-row, .ti-song { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f1ecfa; }
.ti-ico { width: 22px; text-align: center; }
.ti-label { flex: 1; color: #6a5f85; }
.ti-val { font-variant-numeric: tabular-nums; }
.ti-copy { width: 24px; height: 24px; border-radius: 6px; background: #f3eefc; color: #6b2ff8; }
.ti-song span:last-child { display: grid; min-width: 0; }
.ti-song b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-song small, .ti-none { color: #8a80a3; }
.msg-box { background: #fff; }
.msg.mine .msg-box { background: #ffe3f0; }
.chat-input-row { flex: none; height: 50px; padding: 0 8px 0 16px; gap: 8px; background: #fff; border-top: 1px solid #f0f1f6; }
.input-block { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.input-block .chat-input { border: 0; padding: 0; border-radius: 0; font-size: 14px; }
.emoji-btn { font-size: 20px; width: 24px; height: 24px; display: grid; place-items: center; }
.send-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #7957b2; color: #fff; font-size: 15px; }
[dir="rtl"] .send-btn { transform: scaleX(-1); }
.top-row { display: grid; grid-template-columns: 22px 34px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fff; text-align: start; }
.top-row img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.top-place { font-weight: 800; color: var(--muted); text-align: center; }
.top-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-add { width: 100%; }
.chat-music .vp-row { background: #fff; padding: 6px 10px; border-radius: 10px; border: 0; }
.mtab svg { width: 20px; height: 18px; }
.mtab.on { color: #7957b2; }
/* the tabs share the whole width */
.mtabs { gap: 3px; padding: 0 3px; }
.mtab { flex: 1; width: auto; min-width: 0; }
.mtab.on { box-shadow: 0 -2px 6px rgba(121, 87, 178, .15); }
.vip-locked { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; padding: 20px; }
.vip-list .msg-box { background: #fff8e1; }
/* the input bar as before: emoji · rounded field · gift · send */
.chat-input-row { height: 56px; padding: 0 8px; gap: 6px; }
.chat-input-row .chat-input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: .5em 1em; font-size: 14px; }
.chat-input-row .chat-input:focus { border-color: var(--brand); }
.chat-input-row .icon-btn { width: 38px; height: 38px; flex: none; font-size: 20px; border-radius: 50%; color: var(--brand); }
.chat-input-row .icon-btn:hover { background: #f3eefc; }
.chat-input-row .send { background: var(--brand); color: #fff; font-size: 16px; }
.chat-input-row .send:hover { background: var(--brand); filter: brightness(1.1); }
.gift-who { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.gift-who-btn { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; font-size: .72rem; font-weight: 700; }
.gift-who-btn img { width: 52px; height: 66px; object-fit: cover; border-radius: 6px; }
.gift-who-btn span { max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-who-btn.on { background: #f3eefc; box-shadow: inset 0 0 0 2px var(--brand); }

/* ══ phase 3: leaders, collections, clubs, weddings ══ */
/* leaders (side panel like the original: board icons, title, Day/Week/Month, rows, my row, "ends in") */
.leaders-panel .panel-body { padding: 0; display: flex; flex-direction: column; }
.leaders { display: flex; flex-direction: column; min-height: 100%; }
.lb-boards { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #5b2bb5; scrollbar-width: none; }
.lb-board { flex: none; height: 34px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .15); font-size: 18px; }
.lb-board b { font-size: 12px; }
.lb-board.on { background: #fff; color: #5b2bb5; }
.lb-head { text-align: center; padding: 12px 12px 4px; display: grid; }
.lb-head small { color: var(--muted); }
.lb-periods { display: flex; justify-content: center; gap: 8px; padding: 6px; }
.lb-periods .chip.on { background: #2f9e44; color: #fff; border-color: #2f9e44; }
.lb-cols { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 6px 14px; font-size: 11px; color: var(--muted); }
.lb-list { flex: 1; overflow-y: auto; padding: 0 10px; display: grid; gap: 6px; align-content: start; }
.lb-row { display: grid; grid-template-columns: 30px 38px 1fr auto 64px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); text-align: start; }
.lb-row.top { background: #fff9e6; }
.lb-row.me { box-shadow: inset 0 0 0 2px var(--brand); }
.lb-row img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.lb-medal { font-size: 22px; text-align: center; }
.lb-place { font-weight: 800; color: var(--muted); text-align: center; }
.lb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-score { font-weight: 800; color: #e8114a; }
.lb-emblem { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: #f3eefc; }
.lb-pair { display: flex; }
.lb-pair img { width: 26px; height: 34px; border-radius: 6px; }
.lb-pair img + img { margin-inline-start: -8px; }
.lb-row.me.out { grid-template-columns: 30px 38px 1fr auto; margin: 8px 10px 0; background: #f3eefc; }
.lb-row.me.out small { color: var(--muted); }
.lb-ends { margin-top: 8px; padding: 8px; text-align: center; color: #fff; background: #e8114a; font-weight: 700; font-size: .85rem; }

/* collections (gauge, then a card per collection with five round items and an exchange bar) */
.col-gauge { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: #2a1250; color: #fff; }
.col-gauge .progress { flex: 1; margin: 0; background: rgba(255, 255, 255, .2); }
.col-gauge .bar { background: linear-gradient(90deg, #8ce99a, #2f9e44); }
.col-card { margin-top: 12px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.col-card.closed { opacity: .6; }
.col-name { text-align: center; font-weight: 800; color: var(--muted); padding: 8px 0 4px; font-size: .85rem; }
.col-items { display: flex; justify-content: space-around; padding: 6px 8px 10px; }
.col-item { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f8f6fc; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.col-item.missing { filter: grayscale(1); opacity: .45; }
.col-item .col-pic { font-size: 28px; width: 34px; height: 34px; object-fit: contain; display: grid; place-items: center; }
.col-qty { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: #495057; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.col-exchange { width: 100%; padding: 8px; font-weight: 800; color: #fff; background: #adb5bd; display: flex; align-items: center; justify-content: center; gap: 6px; }
.col-exchange.ready { background: #2f9e44; }
.col-exchange { flex-wrap: wrap; row-gap: 4px; }
.col-exchange .col-rw { margin: 0; justify-content: center; }
.col-exchange .col-rw .rw-chip { background: rgba(255, 255, 255, .22); color: #fff; }

/* clubs */
.club-mine { width: 100%; margin-bottom: 10px; }
.club-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.club-search { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: .5em 1em; }
.club-add { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); line-height: 0; }
.club-add svg { display: block; }
.club-list { display: grid; gap: 6px; }
.club-more { display: block; width: 100%; margin-top: 8px; padding: 9px; border-radius: 12px; background: #f3edff; color: #6a4bc4; font-size: 13px; font-weight: 800; }
.club-more:hover { background: #ebe2fd; }
.club-create-cta { width: 100%; margin-top: 14px; }
.clubs-empty { display: grid; justify-items: center; gap: 8px; margin-top: 18px; padding: 22px 16px; border-radius: 18px; background: linear-gradient(160deg, #fdeef4, #f1eafd); text-align: center; }
.clubs-empty-ico { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.clubs-empty > b { font-size: 17px; font-weight: 900; color: #2b1a55; }
.clubs-empty > p { margin: 0; color: #5b4b8a; font-size: 13px; font-weight: 700; }
.clubs-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 6px 0 4px; }
.club-perk { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(60, 30, 110, .1); }
.club-perk i { font-style: normal; font-size: 24px; line-height: 1; }
.club-perk b { color: #4b2f8f; font-size: 12px; font-weight: 800; }
.clubs-empty .btn { width: 100%; }
/* the clubs list's tabs: five equal icon columns, so no language's words can wrap them; the chosen tab's
   full words are the line under the row (and the title / tap bubble of every tab) */
.club-sorts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.club-sort { display: grid; place-items: center; min-width: 0; height: 38px; padding: 0; border-radius: 12px; background: #f4f0fc; font-size: 19px; line-height: 1; box-shadow: inset 0 0 0 2px transparent; }
.club-sort:hover { background: #ebe4fb; }
.club-sort.on { background: linear-gradient(180deg, #fde9f1, #f1e6fd); box-shadow: inset 0 0 0 2px var(--brand); }
.club-sort-now { margin: 0 0 10px; color: #6a4bc4; font-size: 12px; font-weight: 800; text-align: center; }
.club-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); text-align: start; }
/* a row's two calm lines: the club's name, then its owner */
.club-row-mid { display: grid; gap: 2px; min-width: 0; }
.club-row-mid > .club-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-owner { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.club-owner img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.club-owner i { font-style: normal; font-size: .72rem; line-height: 1; flex: none; }
.club-owner b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.club-row-end { display: grid; justify-items: end; gap: 2px; }
/* the club's door (its owner only): open or closed, for the panel's price every time */
.club-door-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #2b1a55; font-size: 11.5px; font-weight: 800; line-height: 1.5; max-width: 100%; }
.club-door-btn:hover { background: #fff; }
.club-door-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-door-ico { font-size: 12px; line-height: 1; }
.club-door-btn .price { font-size: 11px; }
.club-door-btn.to-closed { box-shadow: inset 0 0 0 1.5px #c2255c; }
.club-door-btn.to-open { box-shadow: inset 0 0 0 1.5px #12b886; }
/* the same door inside the ✏️ form: the state it is in now, then the button that flips it */
.club-door-field .club-door-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.club-door-field .club-door-btn { margin-top: 0; background: #fff; }
.club-door-field .cc-hint { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.club-emblem { width: 40px; height: 48px; border-radius: 8px 8px 20px 20px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(180deg, #ff6b6b, #c2255c); color: #fff; }
.club-emblem.big { width: 64px; height: 76px; font-size: 34px; }
.club-name { font-weight: 800; }
.club-pts { color: #4c6ef5; font-weight: 800; font-size: .85rem; }
.club-count { color: var(--muted); font-size: .8rem; }
.club-back { color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.club-head { display: flex; gap: 12px; align-items: center; }
.club-head > div { display: grid; }
.club-sub { color: var(--muted); font-size: .85rem; }
.club-members { display: grid; gap: 6px; }
.club-member { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #f8f6fc; }
.club-member img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; cursor: pointer; }
.cm-name { display: grid; font-weight: 700; }
.cm-name small { color: var(--muted); font-weight: 600; }
.cm-pts { color: #4c6ef5; font-weight: 800; font-size: .8rem; }
.cm-actions { display: flex; gap: 4px; }
.mini { width: 28px; height: 28px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-size: 13px; }
.mini.danger { color: var(--bad); }
.mini.ok { color: var(--good); }
.club-join { width: 100%; margin-top: 14px; }
.club-go-chat { width: 100%; margin-top: 16px; }
.cm-wait { cursor: help; font-size: 15px; }
/* the club's card: a soft wash of its colour, the shield, the name with open/closed, three numbers, the description */
.club-hero { position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--club, #e8467c) 16%, #fff), #fff 70%); box-shadow: 0 2px 10px rgba(60, 30, 110, .1); border: 1px solid color-mix(in srgb, var(--club, #e8467c) 22%, #fff); }
.club-hero-top { display: flex; align-items: center; gap: 14px; }
.club-hero-top .club-emblem.big { flex: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.club-hero-name { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.club-hero-name > b { font-size: 18px; font-weight: 900; color: #2b1a55; overflow-wrap: anywhere; }
.club-hero-name .mm-tr { margin: 0; font-size: 12px; }
.club-badge { padding: 3px 10px; border-radius: 999px; background: #e6f7ec; color: #1d7a3b; font-size: 11px; font-weight: 800; }
.club-badge.closed { background: #fff1e0; color: #b25d00; }
.club-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.club-stat { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(80, 50, 140, .08); text-align: center; }
.club-stat b { font-size: 14px; font-weight: 900; color: #2b1a55; white-space: nowrap; }
.club-stat small { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.club-desc { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .85); color: #3d2a7a; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; border-inline-start: 3px solid var(--club, #e8467c); }
.club-desc .mm-tr { margin-top: 6px; }
/* a card of the club page (the treasure, the chat) */
.club-card { margin-top: 14px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(60, 30, 110, .08); border: 1px solid #efe8fb; }
.club-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.club-card-head b { font-size: 14px; font-weight: 900; color: #2b1a55; }
.club-ends { padding: 3px 9px; border-radius: 999px; background: #f3edff; color: #6a4bc4; font-size: 11px; font-weight: 800; white-space: nowrap; }
/* the treasure, kept short: chests in a row (what is inside on hover), my points, the top-3 prizes */
.club-card-head .club-ends { margin-inline-start: auto; }
.club-info-i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #ece4fb; color: #6a4bc4; font: 900 11px/18px Georgia, serif; text-align: center; }
.chest-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chest-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 14px; background: linear-gradient(180deg, #fbf8ff, #f1eafd); border: 1px solid #e7dcfa; cursor: pointer; }
.chest-card.ready { background: linear-gradient(180deg, #fff9e6, #ffe9ad); border-color: #ffcf4a; box-shadow: 0 0 0 2px rgba(255, 191, 0, .35); }
.chest-card.claimed { background: linear-gradient(180deg, #f1fbf3, #dcf5e2); border-color: #a8e2b7; }
.chest-art { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .2)); }
.chest-card.locked .chest-art { filter: grayscale(.85) opacity(.7); }
.chest-card.ready .chest-art { animation: chestWobble 1.6s ease-in-out infinite; }
@keyframes chestWobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg) scale(1.05); } 40% { transform: rotate(5deg) scale(1.05); } 60% { transform: none; } }
.chest-need { font-size: 12px; font-weight: 900; color: #4c6ef5; }
.chest-flag { position: absolute; top: -7px; inset-inline-end: -4px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 900; color: #fff; }
.chest-flag.done { background: #2fb344; }
.chest-flag.go { background: #ff8f1f; box-shadow: 0 2px 6px rgba(255, 143, 31, .45); }
/* what a chest holds: a bubble over it on hover (a tap shows the same in the tip bubble) */
.chest-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; display: none; gap: 5px; justify-items: center; min-width: 120px; padding: 8px 10px; border-radius: 12px; background: rgba(40, 30, 70, .95); color: #fff; font-size: 11.5px; transform: translateX(-50%); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none; }
.chest-tip .rw-chip { background: rgba(255, 255, 255, .15); color: #fff; }
@media (hover: hover) { .chest-card:hover .chest-tip { display: grid; } }
.tip-bubble .chest-tip { position: static; display: grid; transform: none; padding: 0; background: none; box-shadow: none; }
.chest-mine { display: flex; align-items: center; gap: 8px; margin-top: 10px; cursor: help; }
.chest-mine-bar { flex: 1; height: 6px; border-radius: 999px; background: #eee8f8; overflow: hidden; }
.chest-mine-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7b5cff, #b06cff); }
.chest-mine b { color: #5b4b8a; font-size: 11.5px; }
.club-tops { display: flex; gap: 6px; margin-top: 10px; cursor: help; }
.club-top { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; border-radius: 10px; background: #fff8e6; font-size: 13px; font-weight: 800; }
/* the club contests: a small card per contest (its banner, icon and colour), the first three clubs, my club's place,
   my points towards the minimum; the prizes per place on hover (a tap shows them in the tip bubble) */
.cc-list { display: grid; gap: 8px; }
.cc-card { --cc: #7b2ff7; display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 14%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--cc) 30%, #fff); background-size: cover; background-position: center; }
.cc-card.has-banner { color: #fff; border-color: transparent; }
.cc-card.soon { opacity: .85; }
.cc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--cc); font-size: 20px; object-fit: contain; }
img.cc-icon { padding: 2px; }
.cc-name { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.cc-name b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: anywhere; font-size: 13px; font-weight: 900; color: #2b1a55; cursor: help; }
.cc-card.has-banner .cc-name b { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.cc-tag { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--cc); color: #fff; font-size: 10.5px; font-weight: 800; }
.cc-time { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #6a4bc4; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: help; }
.cc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cc-club { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .88); color: #2b1a55; font-size: 12px; }
.cc-club i { font-style: normal; }
.cc-club b { font-weight: 900; }
.club-emblem.small { width: 22px; height: 24px; font-size: 13px; }
.cc-empty { color: var(--muted); font-size: 11.5px; }
.cc-card.has-banner .cc-empty { color: #fff; }
.cc-foot { display: flex; align-items: center; gap: 8px; }
.cc-mine, .cc-me { display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #5b4b8a; font-size: 11.5px; font-weight: 800; cursor: help; white-space: nowrap; }
.cc-me { flex: 1; min-width: 0; }
.cc-me .chest-mine-bar { min-width: 30px; }
.cc-prizes { position: relative; margin-inline-start: auto; padding: 3px 9px; border-radius: 999px; background: var(--cc); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.cc-prizes .cc-tip { left: auto; inset-inline-end: 0; transform: none; min-width: 180px; }
@media (hover: hover) { .cc-prizes:hover .cc-tip { display: grid; } }
.cc-tip { justify-items: stretch; text-align: start; }
.cc-tip-row { display: flex; align-items: center; gap: 6px; }
.tip-bubble .cc-tip small { opacity: .8; }
.cc-entry { display: block; width: 100%; margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, #7b2ff7, #e8467c); color: #fff; font-size: 13px; font-weight: 800; text-align: start; }
/* the members: medal, photo, name with role, points */
.club-admins { margin-bottom: 4px; }
.club-member { grid-template-columns: 22px 40px 1fr auto auto; padding: 8px 10px; background: #fff; border: 1px solid #efe8fb; }
.club-member.me { border-color: #c9b5f5; background: #faf7ff; }
.cm-place { font-size: 14px; font-weight: 900; color: #9a8cc0; text-align: center; }
.club-member img { border-radius: 50%; }
.cm-role { font-size: 11px; }
.cm-role.leader { color: #c77d00; }
.cm-role.deputy { color: #6a4bc4; }
/* creating a club: a live preview, then the fields, the emblem and colour grids, the closed switch */
.cc-form { display: grid; gap: 14px; }
.cc-intro { display: grid; gap: 4px; }
.cc-intro b { font-size: 17px; font-weight: 900; color: #2b1a55; }
.cc-intro small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cc-preview { padding-top: 22px; }
.cc-pv-label { position: absolute; top: 8px; inset-inline-end: 12px; color: #9a8cc0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cc-field { display: grid; gap: 6px; }
.cc-field > span { color: #5b4b8a; font-size: 12px; font-weight: 800; }
.cc-field input, .cc-field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 2px solid #e7dcfa; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; resize: none; }
.cc-field input:focus, .cc-field textarea:focus { border-color: #8b5cf6; outline: none; }
.cc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cc-pick { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #f6f2fd; font-size: 22px; transition: transform .12s; }
.cc-pick:hover { transform: scale(1.06); }
.cc-pick.on { background: #fff; box-shadow: 0 0 0 2px #8b5cf6, 0 3px 8px rgba(109, 63, 224, .25); }
.cc-colors { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cc-colors .cc-pick { border-radius: 50%; }
.cc-colors .cc-pick.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8b5cf6; }
.cc-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f6f2fd; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cc-switch-ui { flex: none; position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d6cbee; transition: background .15s; }
.cc-switch-ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: inset-inline-start .15s; }
.cc-switch input:checked + .cc-switch-ui { background: #8b5cf6; }
.cc-switch input:checked + .cc-switch-ui::after { inset-inline-start: 21px; }
.cc-switch input:focus-visible + .cc-switch-ui { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.cc-switch-txt { flex: 1; display: grid; gap: 2px; }
.cc-switch-txt b { font-size: 13px; color: #2b1a55; }
.cc-switch-txt small { color: var(--muted); font-size: 11px; }
.cc-hint { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.cc-create { width: 100%; }
.emblem-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emblem { width: 38px; height: 38px; border-radius: 10px; font-size: 20px; background: #f8f6fc; }
.emblem.on { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.profile-form label.inline { display: flex; align-items: center; gap: 6px; color: var(--ink); }

/* weddings: a centred sky-blue window with three tabs (like the original) */
.wd-wrap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 4, 25, .6); }
.wd-window { position: relative; width: min(560px, 94vw); max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px;
  background: linear-gradient(180deg, #7cc7f2 0%, #5ab4ea 100%); color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.wd-close { position: absolute; top: 10px; inset-inline-end: 14px; color: #fff; font-size: 20px; z-index: 2; }
.wd-tabs { display: flex; justify-content: center; gap: 4px; padding: 12px 40px 0; border-bottom: 2px solid rgba(255, 255, 255, .35); }
.wd-tab { padding: 8px 18px; font-weight: 800; color: rgba(255, 255, 255, .85); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.wd-tab.on { color: #1c4f8a; border-color: #2f9e44; }
.wd-body { position: relative; z-index: 1; overflow-y: auto; padding: 22px 24px 90px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.wd-body h3 { margin: 0; font-size: 1.3rem; }
.wd-body p { margin: 0; opacity: .9; }
.wd-body label { display: grid; gap: 4px; font-weight: 700; width: 100%; max-width: 320px; }
.wd-body select { padding: .55em; border-radius: 12px; border: 0; color: var(--ink); }
.wd-clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: radial-gradient(circle at 10% 100%, #fff 0 38px, transparent 39px), radial-gradient(circle at 28% 110%, #fff 0 50px, transparent 51px),
              radial-gradient(circle at 50% 105%, #fff 0 44px, transparent 45px), radial-gradient(circle at 72% 110%, #fff 0 52px, transparent 53px),
              radial-gradient(circle at 92% 100%, #fff 0 40px, transparent 41px); opacity: .95; }
.btn.wd-green { background: #6cbf1f; color: #fff; padding: .7em 2em; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.wd-warn { color: #fff3bf; font-weight: 700; }
.wd-decor { display: grid; gap: 8px; width: 100%; }
.wd-type { display: grid; gap: 4px; text-align: start; }
.wd-type small { font-weight: 800; }
.wd-opts { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.wd-opt { flex: none; min-width: 70px; display: grid; justify-items: center; gap: 2px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: .72rem; font-weight: 700; }
.wd-opt.on { box-shadow: inset 0 0 0 3px #2f9e44; }
.wd-opt .wd-pic { font-size: 24px; width: 30px; height: 30px; object-fit: contain; display: grid; place-items: center; }
.wd-opts.rings { flex-wrap: wrap; justify-content: center; }
.wd-cost { font-weight: 800; }
.wd-happy { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; max-width: 360px; }
.wd-happy .progress { background: rgba(255, 255, 255, .4); margin: 0; }
.wd-happy .bar { background: linear-gradient(90deg, #ff8787, #e8114a); }
.wd-ava { width: 90px; height: 117px; border-radius: 8px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.wd-actions { display: flex; gap: 10px; }
.wd-inv { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .2); text-align: start; }
/* the wedding room: no bottle; in its place the couple's ring, a heart per "I do" and the "I do" button, between
   the couple's seats (top) and the guests' two rows (table.js WEDDING_12) */
.table.is-wedding .bottle-wrap, .table.is-wedding .table-bar { display: none; }
.wedding-center { position: absolute; left: 50%; top: 38.5%; transform: translate(-50%, -50%); z-index: 7; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  align-items: center; justify-items: center; column-gap: 8px; row-gap: 4px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(3px); }
.wedding-center .wc-ring { grid-row: span 2; }
.wc-ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 214, 236, .85) 60%, rgba(255, 122, 162, .55)); box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255, 122, 180, .8); animation: pulse 2.4s ease-in-out infinite; }
.wc-ring-pic { width: 80%; height: 80%; object-fit: contain; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.wc-vows { display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); font-size: 1rem; }
.wc-vow { transition: transform .3s; }
.wc-vow.on { transform: scale(1.2); }
.wedding-center .btn { white-space: nowrap; border-radius: 999px; padding: 4px 12px; min-height: 0; animation: pulse 1.2s ease-in-out infinite; }
.wc-wait { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.wc-wait span { opacity: .75; }
.wc-wait span.ok { opacity: 1; color: #7dffa8; }
.wedding-center.married .wc-ring { box-shadow: 0 0 0 3px #ffd84a, 0 0 34px rgba(255, 216, 74, .9); }
/* "Do you agree?": a card with a beating heart (Yes inside), a small No under it */
.wc-ask { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(60, 0, 50, .35); backdrop-filter: blur(2px); }
.wc-ask-box { display: grid; justify-items: center; gap: 10px; padding: 16px 22px 12px; border-radius: 24px; background: linear-gradient(160deg, #fff, #ffe3f0); box-shadow: 0 14px 40px rgba(120, 0, 80, .4); color: #9c1f5c; }
.wc-ask-box > b { font-size: 1.1rem; }
.wc-ask-yes { width: 120px; height: 110px; display: grid; place-items: center; padding: 0 0 12px; border: 0; color: #fff; font-size: 1.25rem; font-weight: 900; text-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  background: linear-gradient(#ff7aa2, #ff2d6f); animation: wc-beat 1s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(255, 45, 111, .45));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 1.7 11.5C-1.6 8.2.4 1.2 6 1c2.6-.1 4.5 1.5 6 3.4C13.5 2.5 15.4.9 18 1c5.6.2 7.6 7.2 4.3 10.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 1.7 11.5C-1.6 8.2.4 1.2 6 1c2.6-.1 4.5 1.5 6 3.4C13.5 2.5 15.4.9 18 1c5.6.2 7.6 7.2 4.3 10.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wc-ask-no { padding: 3px 14px; border-radius: 999px; border: 0; background: transparent; color: #9c6b85; font-weight: 700; font-size: .8rem; text-decoration: underline; }
@keyframes wc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
/* married: the bride holds the bouquet until she throws it; a small "Throw" banner for her */
.wc-hand { position: absolute; inset-inline-end: -10px; bottom: -8px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; animation: wc-sway 1.6s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); pointer-events: none; }
.wc-hand-pic { width: 100%; height: 100%; object-fit: contain; font-size: 32px; line-height: 1; display: grid; place-items: center; }
@keyframes wc-sway { 50% { transform: rotate(-12deg) translateY(-3px); } }
.wc-throw { grid-column: 2; padding: 5px 14px; border: 0; border-radius: 999px; color: #fff; font-weight: 900; white-space: nowrap; background: linear-gradient(135deg, #ff7aa2, #ff2d6f); box-shadow: 0 4px 0 #c2185b, 0 0 16px rgba(255, 45, 111, .5); animation: pulse 1s ease-in-out infinite; }
.wc-done { grid-column: 2; padding: 5px 14px; border: 0; border-radius: 999px; color: #fff; font-weight: 900; white-space: nowrap; background: linear-gradient(135deg, #3bc46b, #1f9d55); box-shadow: 0 4px 0 #157a40, 0 0 16px rgba(59, 196, 107, .45); }
.wc-done:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #157a40; }
/* the groom's and the bride's seats: a gold frame around their photo, a soft glow (navy-gold for him, rose-gold for her),
   their sign on top and their name on a gold ribbon; no kiss counter at a wedding */
.seat.couple-seat .seat-photo { border-radius: calc(10 * var(--u)); box-shadow: 0 0 0 calc(3 * var(--u)) #f7d774, 0 0 0 calc(6 * var(--u)) rgba(255, 255, 255, .85), 0 calc(6 * var(--u)) calc(22 * var(--u)) rgba(120, 60, 0, .45); }
.seat.couple-seat .seat-shape, .seat.couple-seat .seat-shape img { border-radius: calc(10 * var(--u)); }
.seat.couple-seat.groom .seat-photo { box-shadow: 0 0 0 calc(3 * var(--u)) #f7d774, 0 0 0 calc(6 * var(--u)) rgba(255, 255, 255, .85), 0 0 calc(24 * var(--u)) rgba(90, 120, 255, .65); }
.seat.couple-seat.bride .seat-photo { box-shadow: 0 0 0 calc(3 * var(--u)) #f7d774, 0 0 0 calc(6 * var(--u)) rgba(255, 255, 255, .85), 0 0 calc(24 * var(--u)) rgba(255, 105, 170, .75); }
.seat.couple-seat .seat-kisses { display: none; }
/* the panel's picture for the seat: drawn over it (a transparent frame), instead of the gold frame */
.seat.couple-seat.framed .seat-photo { box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .45); }
.couple-frame { position: absolute; inset: calc(-10 * var(--u)); width: calc(100% + 20 * var(--u)); height: calc(100% + 20 * var(--u)); object-fit: fill; z-index: 3; pointer-events: none; }
.seat.couple-seat .seat-name { background: linear-gradient(90deg, #b8860b, #f7d774 50%, #b8860b); color: #4a2a00; font-weight: 800; text-shadow: none; }
.seat.couple-seat.empty .seat-photo { background: rgba(255, 255, 255, .25); }
.couple-badge { position: absolute; left: 50%; top: calc(-14 * var(--u)); transform: translateX(-50%); z-index: 4; width: calc(30 * var(--u)); height: calc(30 * var(--u)); min-width: 24px; min-height: 24px; display: grid; place-items: center;
  border-radius: 50%; font-size: calc(17 * var(--u)); line-height: 1; background: #fff; box-shadow: 0 0 0 2px #f7d774, 0 3px 8px rgba(0, 0, 0, .3); pointer-events: none; }
/* the bouquet's flight, and the card that got it */
.wc-fly { position: absolute; left: 0; top: 0; z-index: 11; width: 52px; height: 52px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.wc-fly-pic { width: 100%; height: 100%; object-fit: contain; font-size: 40px; line-height: 1; display: grid; place-items: center; }
.seat.wc-caught .seat-photo { box-shadow: 0 0 0 4px #ffd84a, 0 0 26px rgba(255, 216, 74, .9); transition: box-shadow .3s; }
.pc-line { display: block; margin-top: 4px; font-weight: 700; color: #c2255c; text-align: start; }
/* the original wedding window is about 836×509 */
.wd-window { width: min(836px, 94vw); min-height: min(509px, 86vh); }
.wd-body { flex: 1; align-content: center; }
.wd-body h3 { font-size: 1.5rem; }
/* Google's own sign-in button on the login card (shown only when the panel has a Google client id) */
.login-google { display: flex; justify-content: center; min-height: 44px; margin: 10px 0 2px; }
/* achievements: filters, gift icons, sent / received mark, milestones with their rewards and states */
.ach-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ach-f { position: relative; padding: 4px 10px; border-radius: 999px; background: #f1edf9; color: #46288c; font-weight: 700; font-size: 12px; }
.ach-f.on { background: #7957b2; color: #fff; }
.ach-f .pp-dot { position: absolute; top: -2px; inset-inline-end: -2px; }
.ach-ico { position: relative; }
.ach-img, .ach-gift { width: 36px; height: 36px; object-fit: contain; font-size: 30px; line-height: 36px; }
.ach-dir { position: absolute; bottom: -4px; inset-inline-start: -4px; font-style: normal; font-size: 11px; background: #fff; border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ach-card { align-items: flex-start; }
.ach-card.inactive { filter: grayscale(.8); }
.ach-note { display: block; color: #8a7aa8; font-size: 11px; }
.ach-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ach-tier { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 10px; background: #fff; border: 1px solid #ece6f7; font-size: 11px; }
.ach-tier.st-granted { background: #ebfbee; border-color: #b2f2bb; }
.ach-tier.st-claimable, .ach-tier.st-failed { background: #fff9db; border-color: #ffe066; }
.ach-tier.st-locked { opacity: .7; }
.ach-tier-n { font-weight: 800; }
.ach-tier .btn.small { padding: 1px 8px; font-size: 11px; }
.ach-ok { font-style: normal; color: #2f9e44; font-weight: 800; }
.ach-lock { font-style: normal; font-size: 10px; }
.chat .note.ach, .note.ach { color: #b07a00; font-weight: 700; }
/* ── achievements, like the original: count on top, "Rewards", groups that open, badge cards ─────────────── */
.acx-title { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.acx-count { font-size: 11px; font-weight: 700; opacity: .85; }
.acx { padding: 8px 8px 16px; background: #fff; min-height: 100%; }
.acx-group { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; margin-top: 12px; padding: 8px 14px; border-radius: 16px; background: #f8eeff; color: #46288c; font-size: 13px; text-align: start; }
.acx-group b { font-weight: 800; }
.acx-group small { color: #7957b2; font-weight: 700; }
.acx-arrow { font-style: normal; font-size: 12px; transition: transform .15s; }
.acx-group.open .acx-arrow { transform: rotate(90deg); }
.acx-gbar { margin-inline-start: auto; width: 38%; height: 9px; border-radius: 9px; background: #dccff0; overflow: hidden; box-shadow: inset 0 1px 2px rgba(70, 40, 140, .2); }
.acx-gbar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(180deg, #5cc8ff, #2d8fe6); }
.acx-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 2px 2px; }
.acx-card { position: relative; display: flex; align-items: center; gap: 6px; min-height: 88px; padding: 6px 2px 6px 6px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.acx-card.ready { background: #eeffeb; }
.acx-card.inactive { opacity: .7; }
.acx-badge { position: relative; flex: 0 0 63px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.acx-medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff6c9, #ffd34f 45%, #e79a12 100%); box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(120, 60, 0, .35), inset 0 -3px 6px rgba(160, 80, 0, .35); }
.acx-pic { width: 40px; height: 40px; object-fit: contain; font-size: 28px; line-height: 40px; text-align: center; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.acx-badge.off .acx-medal { filter: grayscale(1); opacity: .5; }
.acx-ribbon { margin-top: -10px; min-width: 50px; height: 18px; padding: 0 9px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
  text-shadow: 0 1px 0 #82079e; background: linear-gradient(180deg, #c45ae6, #8d24b8); clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%); }
.acx-dir { position: absolute; top: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: #fff; color: #7957b2; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.acx-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 8px 0 4px; }
.acx-name { color: #0c021e; font-size: 13px; font-weight: 700; line-height: 1.1; }
.acx-desc { color: #463f52; font-size: 11px; font-weight: 500; line-height: 14px; }
.acx-note { color: #8a7aa8; font-size: 10px; }
.acx-bar { position: relative; max-width: 190px; height: 15px; border-radius: 8px; background: #ded6ea; box-shadow: inset 0 1px 2px rgba(40, 20, 80, .25); overflow: hidden; }
.acx-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(180deg, #8ef06c, #3fbf2e 55%, #2fa224); }
[dir="rtl"] .acx-bar i { inset: 0 0 0 auto; }
.acx-bar b { position: relative; display: block; text-align: center; color: #fff; font-size: 10px; font-weight: 800; line-height: 15px; text-shadow: 0 1px 1px rgba(0, 60, 0, .7); }
.acx-bar.done i { background: linear-gradient(180deg, #ffd85a, #f0a400); }
.acx-side { flex: 0 0 94px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-inline-start: 8px; position: relative; }
.acx-side::before { content: ''; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(rgba(153, 153, 153, 0), rgba(153, 153, 153, .8) 20%, rgba(153, 153, 153, .8) 82%, rgba(153, 153, 153, 0)); }
.acx-prize { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: #46288c; }
.acx-prize .coin-tag, .acx-prize .rw { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.acx-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; font-size: 10px; }
.acx-claim { min-width: 70px; height: 26px; padding: 0 12px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(180deg, #47d65f, #1f9f3a); box-shadow: 0 2px 0 #157a2b; }
.acx-claim:disabled { opacity: .6; }
/* the milestones waiting to be claimed, gathered at the top of the window (always open) */
.acx-ready { margin-top: 4px; padding: 8px 6px 6px; border-radius: 16px; background: linear-gradient(180deg, #e3ffdc, #f6fff3); box-shadow: inset 0 0 0 2px #9fe38f; }
.acx-ready-head { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px; color: #1f7a2e; font-size: 13px; }
.acx-ready-head b { font-weight: 800; }
.acx-ready-head small { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: #ff3d5a; color: #fff; font-size: 11px; font-weight: 800; }
.acx-claim.all { margin-inline-start: auto; min-width: 96px; }

/* ── gift combos (combos.js): a bundle's card in the Store and in a gift screen, the recipient picker ── */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 4px 2px 10px; }
.cb-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cb-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #fff, #fbf3ff); box-shadow: 0 3px 12px rgba(80, 30, 120, .12); border: 2px solid color-mix(in srgb, var(--cb, #ff3d8b) 35%, transparent); }
.cb-card.off { opacity: .7; }
.cb-card.compact { padding: 9px; gap: 6px; border-radius: 12px; }
/* the badge sits where a line starts: left in English, right in Arabic */
.cb-badge { position: absolute; top: -8px; inset-inline-start: 10px; padding: 1px 8px; border-radius: 999px; background: var(--cb, #ff3d8b); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.cb-head { display: flex; align-items: center; gap: 10px; }
.cb-art { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--cb, #ff3d8b) 14%, #fff); overflow: hidden; }
.cb-art img { width: 100%; height: 100%; object-fit: cover; }
.cb-card.compact .cb-art { width: 38px; height: 38px; font-size: 24px; }
.cb-titles { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cb-titles b { font-size: .95rem; color: #3a2463; }
.cb-titles small { color: var(--muted); font-size: .75rem; }
.cb-items { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-item { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 3px; border-radius: 999px; background: #f2ebfb; font-size: .78rem; font-weight: 800; color: #5b3d8f; }
.cb-item i { font-style: normal; unicode-bidi: isolate; direction: ltr; }
.cb-pic { width: 22px; height: 22px; object-fit: contain; font-size: 17px; line-height: 22px; text-align: center; }
.cb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cb-price { display: inline-flex; align-items: baseline; gap: 6px; }
.cb-price b { font-size: 1rem; color: #2b1d4a; }
.cb-price s { color: var(--muted); font-size: .8rem; }
.cb-timer, .cb-limit { font-size: .72rem; color: var(--muted); font-weight: 700; }
.cb-why { margin-inline-start: auto; font-size: .75rem; font-weight: 800; color: #c2255c; }
.cb-send { margin-inline-start: auto; padding: 6px 14px; border-radius: 999px; background: linear-gradient(180deg, #ff5fa2, #e8317b); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 2px 8px rgba(232, 49, 123, .35); }
.cb-send:hover { filter: brightness(1.06); }
.cb-pick .cb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 10px 0; max-height: 50vh; overflow-y: auto; }
.cb-person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; background: #f8f6fc; font-size: .78rem; font-weight: 700; }
.cb-person img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.gc.combo .gc-combo { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.gc.combo .gc-gift-pic.emoji { font-size: 40px; line-height: 1; }
/* a gift screen's two tabs under the counts: the gifts, the bundles (a bundle's quantities are its own: the counts rest) */
.gs-tabs { display: flex; gap: 6px; margin: 4px 16px 6px; padding: 3px; border-radius: 12px; background: #efe8f8; }
.gs-tab { flex: 1; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 800; color: #7d6a9e; background: none; }
.gs-tab.on { background: #fff; color: #5b3d8f; box-shadow: 0 1px 4px rgba(60, 20, 110, .15); }
.gs-tab-n { display: inline-block; min-width: 18px; margin-inline-start: 4px; padding: 0 5px; border-radius: 9px; background: #ff5fa2; color: #fff; font-style: normal; font-size: 11px; line-height: 17px; }
.gs-counts.idle { opacity: .35; pointer-events: none; }
.cb-list { padding: 4px 12px 12px; }

/* the game's administrator: a white "A" in a red circle (on the seat it takes the league icon's corner); a moderator:
   the same circle with an "M" (badges.js) */
.admin-a { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-inline: 4px; border-radius: 50%; vertical-align: middle;
  background: radial-gradient(circle at 35% 30%, #ff5a5a, #d6001c 70%); color: #fff; font: 900 .78em/1 system-ui, sans-serif; box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(160, 0, 20, .45); }
/* every badge (badges.js): the panel's picture / animation, its text, or the game's own look */
.bdg { flex: none; }
.bdg.has-img { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-inline: 4px; vertical-align: middle; background: none; box-shadow: none; }
.bdg.has-img img { width: 100%; height: 100%; object-fit: contain; }
.bdg.bdg-emoji { margin-inline: 3px; vertical-align: middle; }
.bdg.at-seat.bdg-admin, .bdg.at-seat.bdg-admin.has-img, .bdg.at-seat.bdg-moderator, .bdg.at-seat.bdg-moderator.has-img { position: absolute; top: 0; right: 0; z-index: 3; width: 26px; height: 26px; margin: -10px -9px 0 0; font-size: 15px; }
@media (min-width: 950px) { .bdg.at-seat.bdg-admin, .bdg.at-seat.bdg-admin.has-img, .bdg.at-seat.bdg-moderator, .bdg.at-seat.bdg-moderator.has-img { width: 34px; height: 34px; margin: -14px -12px 0 0; font-size: 19px; } }
/* the staff's mark in place of a level: a friend's photo (leagues), a notice's sender */
.lg7-role { position: absolute; inset-inline-start: -6px; bottom: -6px; width: 26px; height: 26px; pointer-events: none; }
.lg7-role .bdg.at-seat, .nt-role .bdg.at-seat { position: static; margin: 0; width: 26px; height: 26px; font-size: 15px; }
.bdg.at-seat.bdg-newcomer.has-img { position: absolute; z-index: 3; left: 50%; bottom: 18%; width: 40%; height: auto; margin: 0; transform: translateX(-50%); }
.bdg.at-profile.has-img { width: 1.5em; height: 1.5em; }

/* the staff's window on a player: what is in force, the duration, clearing their lines, the reason */
.st-dialog { width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; text-align: start; }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-head > div { display: flex; flex-direction: column; }
.st-head small { color: var(--muted); font-size: 12px; }
.st-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; margin: 12px 0 4px; }
.st-pick-one { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.05); color: inherit; cursor: pointer; font: inherit; }
.st-pick-one:hover { background: rgba(255,255,255,.12); }
.st-pick-one:disabled { opacity: .5; }
.st-pick-one span { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-state:empty { display: none; }
.st-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border-radius: 10px; background: #fff4d6; font-size: 13px; }
.st-now.ban { background: #ffe1e3; color: #b0101d; }
.st-now small { flex-basis: 100%; color: #6b5d8a; font-style: italic; }
.st-lift { margin-inline-start: auto; padding: 3px 10px; border-radius: 14px; background: #2e9e5b; color: #fff; font-size: 12px; font-weight: 700; }
.st-row { display: flex; align-items: center; gap: 8px; }
.st-row > span { min-width: 54px; font-size: 13px; color: #4b3d73; }
.st-num { width: 80px; padding: 6px 8px; border: 1px solid #ddd3f0; border-radius: 8px; }
.st-unit { padding: 6px 8px; border: 1px solid #ddd3f0; border-radius: 8px; background: #fff; }
.st-purge { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #f6f2fd; font-size: 13px; }
.st-days { display: flex; flex-wrap: wrap; gap: 6px; }
.st-day { padding: 7px 14px; border-radius: 18px; border: 1.5px solid #ddd3f0; background: #fff; font-weight: 700; color: #4b3d73; }
.st-day.on { border-color: #d6001c; background: #d6001c; color: #fff; }
.st-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #4b3d73; }
.st-reason { width: 100%; padding: 8px 10px; border: 1px solid #ddd3f0; border-radius: 10px; font: inherit; resize: vertical; }
.st-hint { margin: 0; font-size: 12px; color: var(--muted); }
.st-err { margin: 0; min-height: 0; color: #d6001c; font-size: 13px; font-weight: 700; }
.st-err:empty { display: none; }

/* a banned player: the whole screen bright red, the words in white */
.ban-page { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: radial-gradient(circle at 50% 20%, #ff3b47, #e0001b 55%, #b30016); color: #fff; font-family: Cairo, Montserrat, sans-serif; }
.ban-card { width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ban-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.ban-card h1 { margin: 0; font-size: clamp(24px, 5vw, 34px); font-weight: 900; letter-spacing: .3px; }
.ban-until { margin: 0; font-size: 16px; font-weight: 700; opacity: .95; }
.ban-reason { width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ban-reason small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; opacity: .8; }
.ban-reason p { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ban-contact { margin: 6px 0 0; font-size: 14px; line-height: 1.7; opacity: .95; }
.ban-id { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.ban-id small { font-size: 12px; font-weight: 700; opacity: .85; }
.ban-id code { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 13px; user-select: all; word-break: break-all; }
.ban-copy { padding: 6px 14px; border-radius: 18px; background: #fff; color: #c3001a; font-weight: 800; font-size: 13px; }
/* in pause mode the room's music is off: its rail button looks it */
body.paused .rail-btn[data-action="music"] { opacity: .4; filter: grayscale(1); }
/* the design window in pause mode: the table's background and the bottle wait for the table */
.dz-paused { grid-column: 1 / -1; padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #7a5a00; font-size: 12px; font-weight: 700; text-align: center; }

/* the league result: the move between leagues, what was won, confetti for a place won */
.ed.league .ed-head { background: linear-gradient(135deg, #7b4dff, #b05cff 60%, #ff7ab8); }
.ed.league .ed-art span { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; font-size: 52px;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #ffd447 55%, #f5a300); box-shadow: 0 8px 24px rgba(245, 163, 0, .45), inset 0 -4px 10px rgba(180, 100, 0, .25); }
.lr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 12px; }
.lr-stat { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 14px; background: #f6f2fd; box-shadow: inset 0 0 0 1px #ebe3fa; }
.lr-stat b { font-size: 22px; font-weight: 900; color: #3b2370; line-height: 1.1; }
.lr-stat small { font-size: 11px; font-weight: 800; color: #8a7bb5; text-transform: uppercase; letter-spacing: .04em; }
.lr-move { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 4px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #faf7ff, #f1eafd); }
.lr-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #ece6f8; color: #6b4fa0; font-size: 20px; font-weight: 900; opacity: .75; }
.lr-badge.now { width: 66px; height: 66px; font-size: 28px; opacity: 1; background: linear-gradient(135deg, #ffd447, #f5a300); color: #fff; box-shadow: 0 4px 14px rgba(245, 163, 0, .45); animation: lrPop .6s .3s both; }
.lr-move.up .lr-badge.now { filter: drop-shadow(0 0 10px rgba(255, 196, 0, .6)); }
.lr-badge.art, .lr-badge.now.art, .lg-badge.art { background: none; box-shadow: none; }
.lr-badge.art img, .lg-badge.art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(53, 41, 93, .3)); }
.lr-move.down .lr-badge.now { background: linear-gradient(135deg, #b9b4c7, #8b84a3); box-shadow: none; }
.lr-arrow { font-style: normal; font-size: 22px; font-weight: 900; color: #8a7bb5; }
.lr-move.up .lr-arrow { color: #2fb344; animation: lrNudge 1.2s ease-in-out infinite; }
.lr-move.down .lr-arrow { color: #e03131; }
[dir="rtl"] .lr-arrow { transform: scaleX(-1); }
@keyframes lrNudge { 0%, 100% { translate: 0; } 50% { translate: 4px; } }
[dir="rtl"] .lr-move.up .lr-arrow { animation-name: lrNudgeRtl; }
@keyframes lrNudgeRtl { 0%, 100% { translate: 0; } 50% { translate: -4px; } }
.lr-say { margin: 6px 0 12px; font-size: 14px; font-weight: 900; color: #3b2370; text-align: center; }
.lr-say.up { color: #1e8e3e; }
.lr-say.down { color: #c92a2a; }
.lr-won { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lr-won small { font-weight: 800; color: #6b4fa0; }
.ed.league.win .ed-art span { display: inline-block; font-size: 64px; animation: lrPop .7s both, lrSwing 2.4s 1s ease-in-out infinite; }
@keyframes lrPop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes lrSwing { 50% { transform: rotate(-8deg) scale(1.05); } }
.ed-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ed-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); animation: lrFall 2.8s var(--d) ease-in forwards; }
@keyframes lrFall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
.ed.league .ed-extra { flex-direction: column; align-items: center; gap: 8px; }
/* the Events list: the next ten, and how long a notice lives */
.nt-more { display: block; margin: 10px auto 4px; padding: 8px 22px; border-radius: 20px; background: #f1ebfb; color: #6b4fa0; font-weight: 800; font-size: 13px; }
.nt-more:hover { background: #e6dcf8; }
.nt-more:disabled { opacity: .5; }
.nt-life { display: block; margin: 6px 0 10px; text-align: center; font-size: 11px; color: #a097b5; }

/* a guest: the door to sign in, and the note on its profile form */
.guest-door { padding: 18px 20px 22px; text-align: center; }
/* the address a player must confirm before sitting at a table (needemail.js) */
.ne-door { padding: 18px 20px 22px; text-align: center; }
.ne-ico { font-size: 40px; line-height: 1; }
.ne-lead { margin: 10px 0 4px; font-weight: 800; }
.ne-why { margin: 0 0 14px; color: #6b5e86; font-size: 13px; line-height: 1.7; }
.ne-in { width: 100%; max-width: 320px; padding: 11px 14px; border: 1px solid #e3d9f6; border-radius: 12px; font-size: 15px; }
.ne-note { margin: 10px 0 0; color: #6b5e86; font-size: 13px; line-height: 1.6; }
.ne-note.on { color: #1d7a4c; font-weight: 700; }
.ne-acts { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ne-send, .ne-again { padding: 10px 18px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.ne-send { background: #7b4ddb; color: #fff; }
.ne-again { background: #efe7fb; color: #4b2f87; }
.ne-send:disabled, .ne-again:disabled { opacity: .6; cursor: default; }
.guest-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #efe9ff; display: grid; place-items: center; font-size: 32px; }
.guest-lead { margin: 0 0 10px; font-weight: 700; color: #3b2a6b; }
.guest-list { list-style: none; margin: 0 0 16px; padding: 0; text-align: start; }
.guest-list li { padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; background: #f6f3ff; color: #4a3b7a; font-size: 14px; }
.guest-list li::before { content: '✓'; color: #20c997; font-weight: 700; margin-inline-end: 8px; }
.guest-google { display: flex; justify-content: center; min-height: 44px; }
.guest-none { color: #8a80a8; font-size: 13px; margin: 0; }
.pf-guest { padding: 12px 14px; border-radius: 12px; background: #f6f3ff; color: #4a3b7a; font-size: 13px; text-align: center; }
.pf-guest p { margin: 0 0 8px; line-height: 1.5; }
/* the first visit: "I am 18 or older" (a dating game) */
.profile-form .pf-adult, .pf-adult { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff4f7; border: 1px solid #ffd0dc; color: #7a2944; font-weight: 700; font-size: 14px; cursor: pointer; }
.pf-adult input { width: 20px; height: 20px; margin: 0; accent-color: #ff3d8b; flex: none; }
.pf-adult-box { display: grid; gap: 6px; }
.pf-field { display: grid; gap: 4px; font-weight: 800; font-size: .85rem; color: var(--muted); }
.bd-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; }
.profile-form .bd-row select { min-width: 0; width: 100%; height: 46px; padding: 0 .6em; font-size: 15px; font-weight: 700; }
.pf-adult-why { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: #f3f0ff; border: 1px solid #ddd5ff; color: #4b3b7a; font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.pf-adult-why > span:first-child { flex: none; font-size: 15px; line-height: 1.3; }
/* a deleted account in conversations and notices */
.dm-name.gone, .dm-who.gone b { color: #9a93ad; font-style: italic; }
.dm-gone { margin: 6px 10px; padding: 8px 12px; border-radius: 10px; background: #f3f1f7; color: #7d7590; font-size: 13px; text-align: center; }
.nt-gone { color: #9a93ad; font-size: 12px; font-style: italic; white-space: nowrap; }

/* Top 100: all-time / half year / quarter — three joined tabs, each with the TOP 100 badge */
.lg7-subs { display: flex; margin: 8px 10px 4px; border-radius: 12px; overflow: hidden; background: #ece6fb; box-shadow: inset 0 0 0 1px #d7ccf5; }
.lg7-sub { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border: 0; background: transparent; color: #5b46a3; font: inherit; font-size: 13px; cursor: pointer; }
.lg7-sub + .lg7-sub { border-inline-start: 1px solid #d7ccf5; }
.lg7-sub.on { background: linear-gradient(180deg, #8b5cf6, #6d3fd8); color: #fff; }
.lg7-sub-ico { width: 24px; height: 24px; object-fit: contain; flex: none; }
/* a season's prizes */
.lg7-prizes { margin: 8px 10px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #fff8e6, #fff); box-shadow: 0 0 0 1px #ffe2a6; }
.lg7-prizes-title { font-weight: 800; color: #8a5a00; font-size: 13px; margin-bottom: 8px; text-align: center; }
.lg7-prize-row { display: flex; gap: 8px; }
.lg7-prize { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(140, 90, 0, .12); text-align: center; }
.lg7-prize.p1 { box-shadow: 0 0 0 2px #ffc94a, 0 2px 6px rgba(140, 90, 0, .15); }
.lg7-prize.p2 { box-shadow: 0 0 0 2px #b9c3d6; }
.lg7-prize.p3 { box-shadow: 0 0 0 2px #e59a62; }
.lg7-prize-place { font-size: 11px; font-weight: 800; color: #6d3fd8; }
.lg7-prize-pic { width: 56px; height: 56px; object-fit: contain; }
.lg7-prize-emoji { font-size: 34px; line-height: 56px; }
.lg7-prize-name { font-size: 12px; color: #3b2a6b; line-height: 1.3; }
.lg7-prizes-note { margin: 8px 2px 0; font-size: 11px; color: #8a7f9f; text-align: center; line-height: 1.5; }
.lg7-win-prize { font-size: 12px; color: #8a5a00; font-weight: 700; max-width: 120px; text-align: end; }
.lg7-won { padding: 24px 18px; text-align: center; }
.lg7-won-art img { width: 120px; height: 120px; object-fit: contain; }
.lg7-won-art span { font-size: 80px; }
.lg7-won h3 { margin: 12px 0 6px; color: #3b2a6b; font-size: 18px; }
.lg7-won-prize { font-size: 20px; font-weight: 800; color: #b8860b; margin: 0 0 10px; }
.lg7-won-note { color: #6f6590; font-size: 13px; line-height: 1.6; }
/* a Top 100 season not joined yet: the devices, "starts soon", the conditions and the lock */
.tq-hero { margin: 8px 10px; padding: 14px 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #f3edff, #fff); text-align: center; box-shadow: 0 0 0 1px #e2d8fb; }
.tq-devices svg { max-width: 100%; height: auto; }
.tq-soon { margin: 6px 0 2px; font-size: 17px; color: #3b2a6b; }
.tq-date { margin: 0 0 8px; color: #6f6590; font-size: 13px; }
.tq-overall { margin: 4px 12px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5b46a3; font-weight: 700; }
.tq-bar { position: relative; height: 14px; border-radius: 7px; background: #ece6fb; overflow: hidden; }
.tq-bar.big { height: 18px; border-radius: 9px; }
.tq-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: inherit; transition: width .4s; }
[dir="rtl"] .tq-bar i { inset: 0 0 0 auto; }
.tq-bar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 14px; font-weight: 800; color: #2f2457; }
.tq-bar.big span { line-height: 18px; font-size: 11px; }
.tq-lock { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 4px 12px 6px; padding: 10px 12px; border: 0; border-radius: 14px; background: #f6f3ff; color: #5b46a3; font: inherit; text-align: start; }
.tq-lock.open { background: linear-gradient(90deg, #22c55e, #16a34a); color: #fff; cursor: pointer; animation: tq-pulse 1.4s infinite; }
.tq-lock b { font-size: 14px; }
@keyframes tq-pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .25); } }
.tq-ring { --p: 0; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#22c55e calc(var(--p) * 1%), #ddd3f7 0); }
.tq-lock-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 22px; }
.tq-window { margin: 0 14px 6px; font-size: 11px; color: #8a7f9f; }
.tq-list { display: flex; flex-direction: column; gap: 6px; margin: 0 10px 10px; }
.tq-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(60, 30, 120, .1); }
.tq-row.done { background: #effcf3; }
.tq-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1ecff; font-size: 18px; }
.tq-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tq-mid b { font-size: 13px; color: #2f2457; }
.tq-hint { font-size: 11px; color: #8a7f9f; }
.tq-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-weight: 800; }
.tq-go { flex: none; padding: 5px 10px; border: 0; border-radius: 9px; background: #ff3d8b; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tq-joined { margin: 8px 10px; padding: 12px; border-radius: 12px; background: #effcf3; color: #15803d; font-weight: 700; font-size: 13px; text-align: center; }
.guest-acts { display: grid; gap: 8px; margin: 0 0 12px; }
.guest-create { height: 46px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #ff4fa3, #e3268f); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.guest-signin { height: 40px; border: 1.5px solid #d9cdf7; border-radius: 14px; background: #fff; color: #6d3fd8; font: inherit; font-weight: 700; cursor: pointer; }

/* a throwing game at the table (snowballs, hot potato): a strip on top of a player's gifts — throw it at them */
.gs-throw { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; box-shadow: 0 2px 8px rgba(57, 45, 96, .12); }
.gs-throw.snow { background: linear-gradient(135deg, #eaf6ff, #bfe3ff); }
.gs-throw.potato { background: linear-gradient(135deg, #fff1dc, #ffc98a); }
.gs-throw-ico { flex: none; font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); animation: bob 1.3s ease-in-out infinite; }
.gs-throw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: #2b1a55; }
.gs-throw-text b { font-size: 14px; }
.gs-throw-text small { font-size: 12px; opacity: .8; }
.gs-throw-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 18px; background: #7b3ff2; color: #fff; font-weight: 800; font-size: 13px; }
.gs-throw.potato .gs-throw-btn { background: #e8590c; }
.gs-throw-btn:disabled { opacity: .6; }

/* the panel's events on the gift screen: a gift sale, ×N gift points — with the time left */
.gs-offers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gs-offer { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 7px 10px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.gs-offer small { font-weight: 600; opacity: .9; }
.gs-offer.sale { background: linear-gradient(135deg, #ff6b6b, #f03e3e); }
.gs-offer.pts { background: linear-gradient(135deg, #845ef7, #5f3dc4); }
.gs-lp.boost { background: #845ef7; color: #fff; }
/* gift combos' seat effects (combofx.js): over the player's photo, clipped to the card's frame (its centre in the middle) */
.combo-fx-card { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; pointer-events: none; }
.combo-fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.combo-fx span { position: absolute; line-height: 1; white-space: nowrap; pointer-events: none; }
.combo-fx i { position: absolute; left: 0; top: 0; pointer-events: none; }
.combo-fly { position: absolute; line-height: 1; white-space: nowrap; pointer-events: none; z-index: 7; }

/* the round man / woman picture used as a sex's icon (art.js sexIconSrc) */
.sex-ico { width: 1.7em; height: 1.7em; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }
.sex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
/* the 18+ box and its why: long words in any language break instead of pushing the sign-up out of the screen */
.pf-adult > span, .pf-adult-why > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.gs-rec-item .gs-rec-ico { width: auto; min-width: 24px; display: inline-flex; }
.gs-rec-item .gs-rec-ico .sex-ico { width: 24px; height: 24px; }
.gs-rec-item .gs-rec-ico .sex-ico + .sex-ico { margin-inline-start: -9px; }
.iv2-tabs .sex-ico { width: 26px; height: 26px; }

/* free-text boxes are search inputs (no Android autofill bar, js/ui.js h()): drawn exactly like text boxes */
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* the apps' gates (appgate.js): the maintenance page and the update page, a window with the stores' buttons */
.ag-page { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; overflow: auto;
  background: radial-gradient(1200px 700px at 20% -10%, #7b3fe4 0%, transparent 60%), radial-gradient(900px 600px at 110% 110%, #e2408d 0%, transparent 55%), #1b1036; color: #fff; }
.ag-card { width: min(460px, 100%); padding: 32px 26px 26px; border-radius: 26px; text-align: center; background: rgba(255, 255, 255, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(14px); animation: agIn .5s ease-out; }
@keyframes agIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ag-card h1 { margin: 14px 0 8px; font-size: 24px; line-height: 1.25; }
.ag-text { margin: 0 0 14px; font-size: 15px; line-height: 1.6; opacity: .9; white-space: pre-line; }
.ag-art { position: relative; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.ag-art.small { width: 72px; height: 72px; font-size: 34px; margin-bottom: 10px; }
.ag-gear { position: absolute; top: 18px; inset-inline-start: 20px; font-size: 46px; animation: agSpin 6s linear infinite; }
.ag-gear.small { top: auto; bottom: 20px; inset-inline-start: auto; inset-inline-end: 18px; font-size: 30px; animation-direction: reverse; animation-duration: 4s; }
.ag-tool { position: absolute; bottom: 14px; inset-inline-start: 26px; font-size: 34px; animation: agTap 1.6s ease-in-out infinite; }
.ag-rocket { font-size: 58px; animation: agFloat 2.4s ease-in-out infinite; }
@keyframes agSpin { to { transform: rotate(360deg); } }
@keyframes agTap { 50% { transform: rotate(-18deg) translateY(-3px); } }
@keyframes agFloat { 50% { transform: translateY(-8px) rotate(-6deg); } }
.ag-wait { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffcf4a; box-shadow: 0 0 0 0 rgba(255, 207, 74, .7); animation: agPulse 1.6s infinite; }
@keyframes agPulse { 70% { box-shadow: 0 0 0 9px rgba(255, 207, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 207, 74, 0); } }
.ag-count { font-variant-numeric: tabular-nums; }
.ag-btn { display: block; width: 100%; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #ff5fa2, #9b5cff); color: #fff; font-weight: 800; font-size: 15px; }
/* the maintenance page's small link for the administrator (who passes a maintenance) */
.ag-admin { display: block; margin: 12px auto 0; background: none; color: #8a7fb0; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-ver { margin: -4px 0 14px; font-size: 12.5px; opacity: .7; }
.ag-stores { display: grid; gap: 9px; margin: 6px 0 10px; }
.ag-store { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #2a1458; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.ag-store.ag-apk { background: linear-gradient(135deg, #2fbf71, #14935a); color: #fff; }
.ag-store-ico { font-size: 18px; }
.ag-dialog { text-align: center; max-width: 380px; }
.ag-dialog .ag-art { background: linear-gradient(135deg, #9b5cff, #ff5fa2); }
.ag-dialog .ag-text { color: inherit; opacity: 1; }

/* gift effects drawn by the page (giftfx.js): its pieces in the table's effects layer */
.gfx { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.gfx-glove { z-index: 4; }
.gfx-glove svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.gfx-peach { z-index: 3; }
.gfx-peach img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(255, 107, 107, .5)); }
.gfx-count { z-index: 4; padding: .3em .75em; border-radius: 12px; border: 3px solid #1a1a1a; background: linear-gradient(135deg, #ff6b9d, #ffd166);
  color: #fff; font: 900 17px/1.1 system-ui, sans-serif; text-shadow: 0 0 6px #ff6b9d, 2px 2px 0 #1a1a1a; white-space: nowrap; }
.gfx-flash { border-radius: 50%; background: radial-gradient(circle, rgba(255, 225, 160, 1) 0%, rgba(255, 150, 80, .7) 35%, rgba(255, 107, 53, .4) 60%, transparent 75%); }
.gfx-splat { z-index: 2; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.gfx-splat svg { display: block; width: 100%; height: 100%; }
.gfx-drop { z-index: 2; line-height: 1; filter: drop-shadow(0 0 3px rgba(255, 140, 60, .7)); }
.gfx-blush { z-index: 3; border-radius: 50%; background: radial-gradient(circle, #ff6b9d 0%, rgba(255, 107, 157, 0) 70%); animation: gfxBlush .6s ease-in-out infinite; }
@keyframes gfxBlush { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.1); } }
.gfx-jelly { animation: gfxJelly .6s ease-out 2; }
@keyframes gfxJelly { 0%, 100% { transform: none; } 20% { transform: scale(1.15, .85); } 40% { transform: scale(.9, 1.1); } 60% { transform: scale(1.05, .95); } 80% { transform: scale(.98, 1.02); } }
.gfx-pow { z-index: 5; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
/* the club page's ✏️ (its owner and deputies): the name and the description */
.club-hero > .club-edit, .clb > .club-edit { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(60, 30, 110, .2); font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.club-edit:hover { background: #fff; }
.club-edit-form input:disabled { opacity: .6; }
.club-edit-btns { display: flex; gap: 10px; justify-content: flex-end; }
.club-edit-btns .btn { min-width: 110px; }
/* the gift screen in a bot's name (the staff's "Give a gift as this bot") */
.gs-asbot { display: flex; align-items: center; gap: 8px; margin: 6px 24px 2px; padding: 6px 10px; border-radius: 10px; background: rgba(124, 77, 255, .14); color: #6a3fd8; font-size: 13px; font-weight: 600; }
.gs-asbot .gs-mini { width: 22px; height: 22px; }
/* the bot I drive (botdrive.js): its bar over the chat input; the input is tinted while the chat writes as the bot */
.bot-drive { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: linear-gradient(90deg, #efe6ff, #f8f3ff); border-top: 1px solid #d9c8fb; }
.bot-drive[hidden] { display: none; }
.bd-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #7c4dff; }
.bd-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.bd-who b { font-size: 12px; color: #4b2aa8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-left { font-size: 11px; color: #7a6aa6; font-variant-numeric: tabular-nums; }
.bd-acts { display: flex; gap: 4px; flex: none; }
.bd-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(60, 20, 140, .2); font-size: 15px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bd-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
.bd-btn.end { color: #c2185b; font-weight: 700; }
.as-bot .chat-input { background: #f3ecff; box-shadow: inset 0 0 0 2px #b79cff; }
/* the league window of a member of the staff: no league, their rank */
.lg7-staff { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; }
.lg7-staff-ico { font-size: 44px; }
.lg7-staff b { font-size: 17px; color: #4b2aa8; }
.lg7-staff p { margin: 0; max-width: 340px; color: #6b6290; font-size: 14px; line-height: 1.45; }
/* the staff's rank where a league would show (pause page, profile) */
.ps-league-box.staff, .pf-league.staff { display: flex; align-items: center; gap: 10px; cursor: default; }
.ps-league-box.staff .ps-league-right, .pf-league.staff .pf-league-text { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.ps-league-box.staff small, .pf-league.staff small { color: #6b6290; font-size: 11px; line-height: 1.3; }
.pf-league.staff .pf-league-img { font-size: 26px; display: grid; place-items: center; }
.lg7-role .bdg-emoji, .nt-role .bdg-emoji { display: grid; place-items: center; background: #fff; border-radius: 50%; font-size: 14px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }

/* the VIP levels' own icons (badges.js vipIcon): beside words, in a tag, a bar, a reward, the shop */
.vip-ic { display: inline-block; width: auto; height: 1.9em; vertical-align: middle; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.vip-ic.in-text { height: 1.7em; margin: -.35em .1em; }
.vip-ic.in-tag { height: 1.9em; margin: -.45em 0; }
.vip-ic.in-bar { height: 30px; }
.vip-ic.in-reward { height: 2.4em; }
.vip-ic.in-shop { height: 58px; }
.vip-ic.in-pack { height: 64px; }
.vip-ic.in-art { height: 72px; }
.vip-ic.in-rail { height: 26px; }
.vip-ic.in-tab { height: 1.6em; margin: -.3em 0; }
.bdg.vip-lv img { object-fit: contain; }
.st-lv-badge.has-ic { background: none; box-shadow: none; padding: 0; }

/* a warning in a window (ui.js alertBox: the flood warning …) */
.alert-box { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; text-align: center; }
.alert-box-ico { font-size: 40px; }
.alert-box-title { font-size: 17px; color: #c92a2a; }
.alert-box p { margin: 0; font-size: 14px; color: #4a3f6b; }
.alert-box .btn { min-width: 120px; margin-top: 4px; }

/* "Last seen 3 hours ago" / "Online now": the profile's header and the players' lists (social.js seenText) */
/* (the profile's header: name and country on the first line, this one under them) */
.pf-hid:has(> .pf-seen) { flex-wrap: wrap; row-gap: 0; line-height: 1.15; }
.pf-hid > .pf-seen { flex-basis: 100%; text-align: center; font-size: 11px; color: #6b6880; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hid > .pf-seen.on { color: #2fbf71; font-weight: 700; }
.soc-seen { display: block; font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the unique gifts' picture (uqicon.js) where 💎 was: sized like the text and emoji around it */
.uq-ic { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -0.22em; }
.md-res .uq-ic { width: 24px; height: 24px; vertical-align: middle; }

/* the club points' icon (uqicon.js clubPtsIcon) where 💎 was */
.cp-ic { display: inline-block; vertical-align: -0.1em; }
img.cp-ic { width: 1.15em; height: 1.15em; object-fit: contain; }

/* a pause on the seat (room.pauseSeat): a calm screen over the photo — the player stays, the bottle skips them */
.seat-pause { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2 * var(--u, 1px));
  background: rgba(20, 16, 40, .62); backdrop-filter: grayscale(.6); color: #fff; pointer-events: none; border-radius: inherit; text-align: center; }
.seat-pause .sp-ico { font-size: calc(26 * var(--u, 1px)); line-height: 1; }
.seat-pause b { font-size: calc(11 * var(--u, 1px)); font-weight: 800; }
.seat-pause .seat-pause-time { font-style: normal; font-size: calc(11 * var(--u, 1px)); font-weight: 700; direction: ltr; unicode-bidi: isolate; opacity: .9; }
.seat-pause.auto { background: rgba(60, 30, 120, .38); backdrop-filter: none; }
.seat-pause .seat-pause-renew { font-style: normal; font-size: calc(10 * var(--u, 1px)); line-height: 1; }
/* my own Happy Hours on the league badge (main.js setHappy): ⏰×2 and the time left */
.lb-happy { position: absolute; inset-inline-end: -6px; bottom: -9px; padding: 1px 6px; border-radius: 999px; background: linear-gradient(135deg, #ff9f1c, #ff3d7f); color: #fff; font-size: 10.5px; font-weight: 900; line-height: 15px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); direction: ltr; pointer-events: none; }
.gs-lp.boost b { color: #fff; }

/* the 🪙 in texts shown as Girvoo's coin picture (coinemoji.js) */
.coin-e { width: 1.15em; height: 1.15em; vertical-align: -0.22em; object-fit: contain; display: inline-block; margin: 0 .05em; }

/* the top bar's «More» (layout.js moreButton, 2026-11-09): the buttons that did not fit, their dots on it as one dot */
.top-more .dot { top: 4px; right: 4px; width: 10px; height: 10px; min-width: 0; padding: 0; font-size: 0; }
.top-more-pop { position: fixed; z-index: 60; width: 220px; padding: 6px; border-radius: 14px; background: #fff; color: #2a2438;
  box-shadow: 0 10px 30px rgba(30, 20, 60, .28); display: flex; flex-direction: column; gap: 2px; }
.top-more-pop .tmp-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px;
  background: none; color: inherit; font-size: 14px; font-weight: 600; text-align: start; }
.top-more-pop .tmp-item:hover { background: #f3eefc; }
.top-more-pop .tmp-ic { width: 26px; display: grid; place-items: center; font-size: 20px; }
.top-more-pop .tmp-ic img { width: 24px; height: 24px; object-fit: contain; }
.top-more-pop .tmp-name { flex: 1; }
.top-more-pop .dot { position: static; width: 10px; height: 10px; border-radius: 50%; background: #ff3d4f; }
.top-more-pop .dot.count { width: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.top-more-pop .dot[hidden] { display: none; }

/* someone named me ("@my name") in the table's chat or the VIP lounge (chat.js mentionCard, 2026-11-09): a small card
   under the top bar for a few seconds, a tap opens that chat */
.mention-pop { position: fixed; top: 66px; left: 50%; z-index: 70; transform: translateX(-50%); width: min(360px, calc(100vw - 20px));
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 16px; background: #fff; color: #2a2438;
  box-shadow: 0 10px 28px rgba(40, 20, 80, .28), inset 0 0 0 1.5px #c9b6f2; text-align: start; font: inherit; cursor: pointer;
  animation: mp-in .28s ease-out; transition: opacity .4s, transform .4s; }
.mention-pop.out { opacity: 0; transform: translate(-50%, -10px); }
@keyframes mp-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mention-pop .mp-ava { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.mention-pop .mp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mention-pop .mp-txt b { font-size: 14px; color: #6741d9; }
.mention-pop .mp-txt small { font-size: 11px; color: #8a80a3; }
.mention-pop .mp-words { margin-top: 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-pop .mp-go { flex: none; width: auto; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 22px; line-height: 1; color: #a28ad9; }
[dir="rtl"] .mention-pop .mp-go { transform: scaleX(-1); }

/* what Girvoo is, written into the page for search engines (admin lib/SpinSeo.php): readable under the loading screen
   until the game starts (the game then draws the same words in the player's language) */
.seo-about { max-width: 760px; margin: 0 auto; padding: 24px 18px 48px; color: #efe9ff; font: 15px/1.65 system-ui, sans-serif; text-align: start; }
.seo-about h1 { font-size: 1.4rem; margin: 0 0 12px; }
.seo-about h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.seo-about h3 { font-size: 1rem; margin: 14px 0 4px; }
.seo-about a { color: #ffd1ec; }
/* the floating arrow keeps the first message free (the list starts under it); opened, its buttons sit on a white
   card — solid, nothing shows through them */
.chat-body.with-side > .chat-list { padding-top: 46px; }
.side-btns.open { padding: 4px; margin: -4px; border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(60, 30, 120, .28); }
.side-btns.open > .side-btn:not(.side-fold) { background: #8b5cf6; }
.side-btns.open > .side-btn.off { background: #fd6f71; }
/* the folded arrow: its shadow is not cut square at the sides (the column scrolls only when open) */
.side-btns:not(.open) { overflow: visible; }
/* the table / club / couple switch never runs under the ••• button (2026-11-12, the owner — long names in some
   languages): room kept free on both sides, the switch shrinks, a name too long ends with "…" */
/* the table / club / couple switches (2026-11-12, the owner): from the header's start up to the ••• at its end, each
   with the count of lines not seen there */
.chat-header.has-sw { justify-content: flex-start; padding-inline: 6px 44px; }
.chat-header.has-sw > .chat-menu { inset-inline-end: 6px; }
.chat-header.has-sw > .chat-title { flex: 1; min-width: 0; display: flex; }
.chat-switch { flex: 1; min-width: 0; }
.chat-sw { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 8px; }
.chat-sw-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chat-sw-emblem { flex: none; }
.chat-sw-n { flex: none; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff3b6b; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 1.5px #fff; animation: swPop .25s ease-out; }
@keyframes swPop { from { transform: scale(.4); } }
.chat-sw-n { direction: ltr; unicode-bidi: isolate; }
.chat-menu { font-family: 'Nunito', system-ui, sans-serif; }
@media (max-width: 400px) { .chat-sw { padding: 0 5px; font-size: 11px; gap: 2px; } .chat-switch { gap: 0; } }

/* a league passed (2026-11-12, the owner): the icons over the celebration's title, the Events card, the friend's
   "where now" window */
.lp-art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 0 auto 6px; animation: lpRise .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.lp-icon { display: grid; place-items: center; width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(255, 190, 60, .55)); }
.lp-icon:last-child { width: 110px; height: 110px; }
.lp-icon img, .lp-icon .lg-art { width: 100%; height: 100%; object-fit: contain; }
.lp-art-sm .lp-icon { width: 48px; height: 48px; } .lp-art-sm .lp-icon:last-child { width: 80px; height: 80px; }
@keyframes lpRise { from { transform: translateY(24px) scale(.6); opacity: 0; } }
.nt-row.nt-lp { display: flex; align-items: center; gap: 10px; cursor: pointer; background: linear-gradient(100deg, #fff7e0, #fff 60%); border: 1px solid #f6d77a; }
.nt-lp-icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; }
.nt-lp-icon img, .nt-lp-icon .lg-art { width: 100%; height: 100%; object-fit: contain; }
.nt-lp-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-lp-title { font-size: 13px; color: #6b3d00; line-height: 1.3; }
.nt-lp-go { flex: none; }
.lp-where-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(20, 8, 40, .55); animation: lpFade .2s; }
.lp-where-wrap.pr-out { opacity: 0; transition: opacity .2s; }
.lp-where { width: min(300px, 86vw); padding: 18px 16px 14px; border-radius: 20px; background: linear-gradient(180deg, #fff8e6, #fff); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lp-where-ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #f5b301; }
.lp-where-name { font-size: 15px; color: #3d2470; }
.lp-where-icon { width: 120px; height: 120px; display: grid; place-items: center; animation: lpRise .6s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 6px 14px rgba(255, 190, 60, .5)); }
.lp-where-icon img, .lp-where-icon .lg-art { width: 100%; height: 100%; object-fit: contain; }
.lp-where-say { margin: 0; font-size: 13.5px; color: #5b4380; }
.lp-where-btns { display: flex; gap: 8px; margin-top: 6px; }
@keyframes lpFade { from { opacity: 0; } }

/* the payment window's two tabs (2026-11-12): card / Telegram Stars (the website and the game's own app) */
.pay-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: #f1ebfb; }
.pay-tab { flex: 1; height: 40px; border-radius: 999px; background: none; color: #6b4fa0; font-size: 14px; font-weight: 800; transition: background .15s, color .15s; }
.pay-tab.on { background: #fff; color: #3d2470; box-shadow: 0 1px 6px rgba(75, 47, 143, .2); }
.pay-tab.stars.on { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; }
.pay-stars-price { font-weight: 900; color: #e3a008; }
.pay-stars { display: grid; gap: 12px; text-align: center; }
.pay-stars p { margin: 0; color: #5b4380; font-size: 13.5px; line-height: 1.5; }
.pay-stars-go { background: linear-gradient(135deg, #2aabee, #229ed9) !important; border: 0; }
.pay-stars-wait { display: grid; gap: 10px; text-align: center; }
.pay-stars-wait a.btn { text-decoration: none; }

/* the team goal's rail / drawer button (teamgoal.js): its picture at the size of the other icons */
.tg-act-ic { display: inline-block; width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: middle; }
/* the same sticker sent again in a row: one message with ×N (chat.js) */
.msg-sticker { position: relative; }
.msg-stk-n { position: absolute; inset-block-end: 2px; inset-inline-end: -4px; min-inline-size: 26px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #ff4f8b, #8a3cff); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.2; text-align: center; box-shadow: 0 2px 6px rgba(80, 20, 90, .35); direction: ltr; }
.msg-stk-n.pop { animation: stkPop .35s ease; }
@keyframes stkPop { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* the game's news told to everyone, opened from the Events list (menu.js newsAllRow): the whole text in a window */
/* the window's own panel scrolls: a height cap here cut the last rules off behind a white edge (2026-11-15) */
.nt-news-box { padding: 4px 2px 28px; }
.nt-news-p { margin: 0 0 10px; line-height: 1.65; font-size: 14px; white-space: pre-wrap; }
.nt-news-p:first-child { font-weight: 700; }
.nt-news-img { display: block; width: 100%; max-width: 420px; margin: 0 auto 12px; border-radius: 14px; }
.nt-news-thumb { width: 42px; height: 42px; border-radius: 10px; background: center / cover no-repeat; flex: none; }

/* the window that ends a courtship so the player can switch courting off: the word and what it costs on one button */
.court-pay { display: inline-flex; align-items: center; gap: 6px; }
.court-pay .price { display: inline-flex; align-items: center; gap: 3px; }
