/* 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; }
input, select { font: inherit; }
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); }
.seat-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.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; }
.seat.me .seat-photo { outline: calc(3 * var(--u)) solid #fff; outline-offset: calc(2 * var(--u)); }
.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, .bottle img { width: 100%; height: 100%; object-fit: contain; }
.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)); }
.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%; }
[dir="rtl"] .msg-box { border-radius: 14px 4px 14px 14px; }
.msg.mine .msg-box { background: #ffe3f0; }
/* each line on the side of its own language (its dir: Arabic from the right, English from the left), the
   writer's picture first, the bubble's corner pointing at it */
.msg[dir="ltr"] .msg-box { border-radius: 4px 14px 14px 14px; }
.msg[dir="rtl"] .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 { 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; }
.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: 1fr 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; }
.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.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; } }
.feed-name { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; font-size: 11px; color: #fff; padding: 10px 4px 3px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); white-space: nowrap; }
.feed-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.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; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.cal-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; background: #f8f6fc; text-align: center; min-height: 140px; }
.cal-cell.open { background: linear-gradient(180deg, #fff0f6, #fff); box-shadow: 0 0 0 2px var(--accent); }
.cal-cell.claimed { opacity: .55; }
.cal-cell.today { outline: 2px dashed var(--brand); outline-offset: 2px; }
.cal-day { font-weight: 800; color: var(--muted); font-size: .8rem; }
.cal-reward { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; font-size: 1rem; flex: 1; align-items: center; }
.rw { display: inline-flex; align-items: center; gap: 2px; }
.rw b { font-size: .8rem; }
.cal-done { font-size: 1.4rem; color: var(--good); font-weight: 800; }
.cal-lock { font-size: 1.2rem; opacity: .5; }
.cal-task { font-size: .72rem; color: var(--muted); width: 100%; }
.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-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; }
.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 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-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; }
/* 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; }

/* 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-row { display: grid; grid-template-columns: 40px 1fr auto 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; }
.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, .club-leave { width: 100%; margin-top: 14px; }
.club-chests { margin-top: 6px; }
.chest-track { position: relative; height: 44px; margin: 10px 18px 6px; }
.chest-track .progress { position: absolute; left: 0; right: 0; top: 18px; margin: 0; }
.chest { position: absolute; top: 4px; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); font-size: 18px; filter: grayscale(1); }
[dir="rtl"] .chest { transform: translateX(50%); }
.chest.ready { filter: none; animation: pulse 1.4s ease-in-out infinite; }
.chest.claimed { filter: none; animation: none; background: #ebfbee; color: var(--good); font-weight: 800; }
.club-chat { margin-top: 6px; }
.club-chat-list { max-height: 170px; overflow-y: auto; display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: #f5efff; font-size: .85rem; align-content: start; user-select: text; }
.cc-input { display: flex; gap: 6px; margin-top: 6px; }
.cc-input .chat-input { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: .45em .9em; }
.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; }
.wedding-bar { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #c2255c; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.catch-btn { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 9; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; gap: 2px;
  font-size: 46px; background: #fff; box-shadow: 0 0 0 6px #ff6fb5, 0 10px 30px rgba(0, 0, 0, .35); animation: pulse .8s ease-in-out infinite; }
.catch-btn b { font-size: 14px; color: #c2255c; }
.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; }

/* ── 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) */
.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 { 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 { width: 34px; height: 34px; margin: -14px -12px 0 0; font-size: 19px; } }
.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-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 */
.lr-move { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 10px; }
.lr-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ece6f8; color: #6b4fa0; font-size: 20px; font-weight: 900; }
.lr-badge.now { width: 56px; height: 56px; font-size: 26px; background: linear-gradient(135deg, #ffd447, #f5a300); color: #fff; box-shadow: 0 4px 14px rgba(245, 163, 0, .45); animation: lrPop .6s .3s both; }
.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-move > i { font-style: normal; font-size: 20px; color: #2e9e5b; }
.lr-move.down > i { color: #d6001c; }
.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; }
.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: 1.1fr 1.6fr 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; }
.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; }
.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; }
