@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-Bold.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-ExtraBold.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #0f1222;
  --surface: #181c33;
  --surface-2: #20253f;
  --line: #2c3254;
  --text: #eef0fa;
  --muted: #9aa1c2;
  --accent: #7c6cff;
  --accent-2: #3dd6c6;
  --gold: #ffc94d;
  --ok: #33d17a;
  --warn: #f5a623;
  --bad: #ff5d6c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* A quiet starfield behind everything. */
body {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 64%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 48%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 36%, #fff4 50%, transparent 51%),
    radial-gradient(120% 60% at 50% 0%, #1c1f45 0%, var(--bg) 70%);
  background-attachment: fixed;
}
body {
  font-family: Vazirmatn, "Segoe UI", Tahoma, system-ui, sans-serif;
  min-height: 100dvh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding: 16px; }
[hidden] { display: none !important; }
h1 { font-size: 24px; margin: 8px 0; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.8; }
.center { text-align: center; }

button { font: inherit; color: inherit; cursor: pointer; border: none; }
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; margin-top: 16px;
}
.wide { width: 100%; }
.ghost { background: transparent; color: var(--muted); padding: 6px 4px; }
.danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); padding: 10px 14px; border-radius: 10px; margin-top: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.hero { text-align: center; padding: 24px 8px 16px; }
.logo {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center;
  font-size: 40px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.lead { color: var(--muted); line-height: 1.9; }
.facts { padding-inline-start: 18px; line-height: 1.9; font-size: 14px; margin: 0; }
.facts li { margin-bottom: 6px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label {
  flex: 1; min-width: 80px; text-align: center; padding: 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); }
.choice input { display: none; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
select, input:not([type]) {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px;
}
.field { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.small { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 8px; }

.wallet {
  text-align: center; padding: 24px 16px; border-radius: 20px; margin-bottom: 16px;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 35%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
}
.coins { font-size: 48px; font-weight: 800; color: var(--gold); margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.coins small { font-size: 16px; color: var(--muted); margin-inline-start: 6px; }
.split { display: flex; justify-content: center; gap: 18px; font-size: 14px; color: var(--muted); }
.split b { color: var(--text); margin-inline-start: 4px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; background: var(--surface-2); }
.pill.ok { color: var(--ok); }
.pill.ok::before { content: '● '; }
.pill.wait { color: var(--warn); }
.pill.off { color: var(--bad); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-weight: 700; }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .4s; }

.tabs {
  position: fixed; inset: auto 0 0 0; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { flex: 1; background: none; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 20px; color: var(--muted); }
.tabs button span { font-size: 11px; }
.tabs button.active { color: var(--text); }

/* games */
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.game-tile .emoji { font-size: 40px; }
.game-tile small { color: var(--muted); }
.stage-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#gameArea { display: flex; flex-direction: column; align-items: center; gap: 12px; touch-action: none; }
.game-msg { min-height: 1.5em; color: var(--gold); text-align: center; }

.g2048 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 360px); aspect-ratio: 1; padding: 8px; background: var(--surface); border-radius: 12px; direction: ltr; }
.g2048 .t { display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-weight: 800; font-size: clamp(16px, 6vw, 28px); }
.g2048 .t2 { background: #2f3762; } .g2048 .t4 { background: #3a3f7a; }
.g2048 .t8 { background: #5b4bd6; } .g2048 .t16 { background: #6a55f0; }
.g2048 .t32 { background: #2fa59a; } .g2048 .t64 { background: #3dd6c6; color: #0f1222; }
.g2048 .t128, .g2048 .t256 { background: #f5a623; color: #0f1222; }
.g2048 .t512, .g2048 .t1024, .g2048 .t2048, .g2048 .t4096 { background: var(--gold); color: #0f1222; }

.snake { width: min(100%, 360px); aspect-ratio: 1; border-radius: 12px; }
.pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 48px); gap: 6px; direction: ltr; }
.pad button { background: var(--surface-2); border-radius: 10px; font-size: 18px; }
.pad button:nth-child(1) { grid-column: 2; }
.pad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.pad button:nth-child(3) { grid-column: 2; grid-row: 2; }
.pad button:nth-child(4) { grid-column: 3; grid-row: 2; }

.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 360px); }
.memory .card { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 30px; transition: transform .2s; }
.memory .card.open { background: var(--surface-2); transform: rotateY(180deg); }
.memory .card.done { opacity: .55; }

/* ranking */
.prize { background: color-mix(in srgb, var(--gold) 15%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.7; }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin: 8px 0 12px; }
.seg button { flex: 1; background: none; padding: 7px 0; border-radius: 8px; color: var(--muted); }
.seg button.active { background: var(--accent); color: #fff; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.board li.me { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 8px; }
.board li.empty { color: var(--muted); justify-content: center; }
.board .rank { width: 2em; text-align: center; font-variant-numeric: tabular-nums; }
.board .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board b { color: var(--gold); font-variant-numeric: tabular-nums; }
.me-rank { font-weight: 600; margin: 12px 0 4px; }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  text-align: center; font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / .35);
  pointer-events: none; /* never block taps on what is underneath (cards, buttons) */
}

/* ---- home: planet, streak, level, chest, missions ---- */
.hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.streak { display: flex; align-items: center; gap: 4px; font-size: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.streak .flame { animation: flicker 1.6s ease-in-out infinite; display: inline-block; }
.streak.cold .flame { filter: grayscale(1); animation: none; opacity: .6; }
.lvl { background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; font-size: 14px; }
.lvl b { color: var(--accent-2); }
@keyframes flicker { 50% { transform: scale(1.15) rotate(-4deg); } }

.planet-wrap { width: min(70vw, 260px); aspect-ratio: 1; margin: 8px auto 0; animation: float 6s ease-in-out infinite; }
.planet-wrap.pulse { animation: pulse 1.5s ease-out; }
.planet { width: 100%; height: 100%; overflow: visible; }
.planet .spin { animation: spin 40s linear infinite; }
.planet .moon { transform-box: view-box; transform-origin: 120px 120px; animation: orbit linear infinite; }
@keyframes spin { to { transform: translateX(calc(-1 * var(--w))); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 30% { transform: scale(1.12); filter: brightness(1.4); } }

.xp { max-width: 280px; margin: 4px auto 0; text-align: center; }
.xpbar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.xpbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s; }
.xp small { color: var(--muted); font-size: 12px; }
section[data-view="home"] .coins { text-align: center; margin-top: 10px; }
section[data-view="home"] .split { flex-wrap: wrap; gap: 12px; }

.chest {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 14px 0 0; padding: 14px;
  border-radius: 14px; font-weight: 700; color: #1a1300;
  background: linear-gradient(135deg, #ffd86b, #ffb13d); box-shadow: 0 6px 20px rgb(255 190 60 / .25);
}
.chest-icon { font-size: 24px; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }

.missions { margin-top: 14px; }
.missions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.missions li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.missions li.done { outline: 1px solid var(--gold); }
.missions li.claimed { opacity: .55; }
.m-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-text small { color: var(--gold); font-size: 12px; }
.missions .small { min-width: 64px; }
.small:disabled { background: var(--line); color: var(--muted); }
.missions li.done .small:not(:disabled) { background: var(--gold); color: #1a1300; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgb(255 201 77 / .25); } }

.network { margin-top: 14px; }
.network summary { cursor: pointer; color: var(--muted); }
.network .stats { margin-top: 12px; }

/* ---- pop-ups ---- */
.modal { position: fixed; inset: 0; background: rgb(5 6 18 / .72); display: grid; place-items: center; padding: 20px; z-index: 70; backdrop-filter: blur(4px); }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; width: min(100%, 380px); text-align: center; animation: pop .35s ease-out; }
.modal-card p { color: var(--muted); line-height: 1.8; }
.modal-art { width: 160px; height: 160px; margin: 0 auto; display: grid; place-items: center; }
.big-emoji { font-size: 84px; }
.chest-open { animation: pop .6s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---- new games ---- */
.blocks { height: min(56vh, 480px); aspect-ratio: 1 / 2; border-radius: 10px; }
.bricks, .flappy { width: min(100%, 360px); border-radius: 12px; touch-action: none; }
.pad-wide { grid-template-columns: repeat(4, 64px); grid-template-rows: 48px; }
.pad-wide button:nth-child(n) { grid-column: auto; grid-row: auto; }
.mines-bar { display: flex; justify-content: space-between; align-items: center; width: min(100%, 360px); gap: 8px; }
.mines-bar button { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.mines-bar button.on { background: var(--accent); color: #fff; }
.mines { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; width: min(100%, 360px); direction: ltr; user-select: none; -webkit-user-select: none; }
.mines .cell { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #5b4bd6); font-weight: 800; font-size: 16px; padding: 0; touch-action: manipulation; }
.mines .cell.open { background: var(--surface-2); }
.mines .n1 { color: #5fb8ff; } .mines .n2 { color: #33d17a; } .mines .n3 { color: #ff5d6c; }
.mines .n4 { color: #c58cff; } .mines .n5, .mines .n6, .mines .n7, .mines .n8 { color: var(--gold); }

/* ---- earning now ---- */
.earning {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 8px; width: fit-content;
  padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #1a1300;
  background: linear-gradient(135deg, #ffd86b, #ffb13d); animation: glow 1.2s ease-in-out infinite;
}
.earning .bolt { animation: flicker .8s ease-in-out infinite; display: inline-block; }
.notify-ask { width: 100%; margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); }

/* ---- two currencies ---- */
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bal .sym { font-size: 20px; }
.bal b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bal small { font-weight: 700; }
.bal .src { color: var(--muted); font-size: 11px; }
.bal.ocoin { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface)); }
.bal.ocoin b, .bal.ocoin .sym { color: var(--gold); }
.bal.coins b { color: var(--accent-2); }
.convert { width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.convert:disabled { opacity: .55; }
.small-note { font-size: 12px; margin: 6px 0 0; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); font-size: 22px; }
.stepper button:disabled { opacity: .4; }
.stepper b { font-size: 22px; min-width: 110px; }
.conv-result { color: var(--gold) !important; font-weight: 700; }

/* ---- usability pass ---- */
.big { padding: 16px; font-size: 17px; border-radius: 14px; }
.points { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.points .ic { font-size: 24px; line-height: 1; }
.points div { display: flex; flex-direction: column; gap: 2px; }
.points small { color: var(--muted); line-height: 1.7; }
.more { margin-top: 14px; color: var(--muted); font-size: 13px; }
.more summary { cursor: pointer; text-align: center; padding: 6px; }
.more .facts { margin-top: 8px; }

.paused-card { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.7;
  background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); }
.balances { cursor: pointer; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 18px 0 8px; }
.sec-head h2 { margin: 0; }
.missions .sec-head { margin-top: 0; }
.link { background: none; color: var(--accent-2); font-size: 14px; padding: 4px; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.quick span { font-size: 30px; }
.quick small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.quick:active, .game-tile:active, .chest:active, .primary:active { transform: scale(.97); }
.notify-ask { display: flex; gap: 8px; margin-top: 14px; padding: 0; border: none; background: none; }
.notify-yes { flex: 1; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); color: var(--text); }
.notify-no { width: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.page-title { margin: 4px 0 12px; }

/* ---- titles ---- */
.bal { font: inherit; color: inherit; text-align: center; }
.bal .title { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.bal .tbar { display: block; width: 100%; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.bal .tbar span { display: block; height: 100%; width: 0; transition: width .6s; }
.bal.ocoin .tbar span { background: var(--gold); }
.bal.coins .tbar span { background: var(--accent-2); }
.bal .tnext { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 2px; }
.ladder-card { max-height: 86vh; display: flex; flex-direction: column; }
.ladder-card p { font-size: 13px; }
.ladder { list-style: none; margin: 0 0 12px; padding: 0; overflow-y: auto; text-align: start; }
.ladder li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; }
.ladder li small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder li.here { background: color-mix(in srgb, var(--accent) 25%, transparent); outline: 1px solid var(--accent); font-weight: 700; }
.ladder li.here small { color: var(--text); }
.ladder li.locked { opacity: .55; }

/* ---- cute pass ---- */
.planet .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.planet.mood-excited .body { transform-box: view-box; transform-origin: 120px 120px; animation: bounce .5s ease-in-out infinite; }
.planet .zzz { animation: zzz 3s ease-in-out infinite; }
.planet .cloud { animation: drift 14s linear infinite; }
.planet .sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes bounce { 50% { transform: translateY(-5px) scale(1.02, .98); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 6px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -8px); } }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

.tabs button i { display: block; width: 26px; height: 26px; }
.tabs button i svg { width: 100%; height: 100%; }
.tabs button.active { color: var(--accent-2); }
.tabs button.active i { transform: translateY(-2px); transition: transform .2s; }
.bal .sym { width: 38px; height: 38px; }
.bal .sym svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .3)); }
.bal:active .sym { animation: pop .3s; }

.game-tile, .quick {
  background: linear-gradient(145deg, var(--g1, var(--surface)), var(--g2, var(--surface)));
  border: none; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 6px 16px rgb(0 0 0 / .3), inset 0 1px 0 rgb(255 255 255 / .35);
}
.game-tile::after, .quick::after {
  content: ''; position: absolute; inset: -40% 40% 55% -20%; background: rgb(255 255 255 / .18); border-radius: 50%; pointer-events: none;
}
.game-tile .emoji, .quick span { filter: drop-shadow(0 4px 4px rgb(0 0 0 / .3)); transition: transform .2s; }
.game-tile:hover .emoji, .game-tile:active .emoji { transform: rotate(-8deg) scale(1.1); }
.game-tile strong { text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.game-tile small, .quick small { color: rgb(255 255 255 / .85); }

/* ---- storybook planet ---- */
.planet .smoke circle { animation: puff 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.planet .smoke circle:nth-child(2) { animation-delay: .6s; }
.planet .blades { animation: spin-blades 6s linear infinite; }
.planet .blades.fast { animation-duration: 1.2s; }
.planet .blades.still { animation: none; }
.planet .glow { animation: lamp 2.6s ease-in-out infinite; }
.planet .flagcloth { transform-box: fill-box; transform-origin: left center; animation: wave 1.6s ease-in-out infinite; }
.planet.mood-excited .body { animation: none; }
@keyframes puff { 0% { opacity: 0; transform: translateY(4px) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px) scale(1.4); } }
@keyframes spin-blades { to { transform: rotate(360deg); } }
@keyframes lamp { 50% { opacity: .55; } }
@keyframes wave { 50% { transform: scaleX(.8) skewY(-6deg); } }

/* ---- level character ---- */
.lvl { display: flex; align-items: center; gap: 4px; white-space: nowrap; font: inherit; color: inherit; padding: 2px 10px 2px 4px; }
.avatar-mini { width: 30px; height: 30px; display: block; }
.avatar-mini svg, .modal-art .avatar { width: 100%; height: 100%; }
.avatar .scarf { transform-box: fill-box; transform-origin: right center; animation: wave 1.4s ease-in-out infinite; }
.avatar .blink-dot { animation: lamp 1s steps(2) infinite; }
.avatar .flame-jet { transform-box: fill-box; transform-origin: top center; animation: flicker .4s ease-in-out infinite; }
.avatar .twinkle-star { transform-box: fill-box; transform-origin: center; animation: twinkle 2s ease-in-out infinite; }
.avatar .mini-orbit { transform-box: view-box; transform-origin: 32px 24px; animation: orbit 5s linear infinite; }

/* ---- O-Coin lock ---- */
.bal.locked { position: relative; }
.bal.locked::after { content: '🔒'; position: absolute; top: 8px; inset-inline-end: 10px; font-size: 16px; }
.unlock-card {
  display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; text-align: start;
  background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--text); font: inherit;
}
.unlock-card .lock { font-size: 26px; }
.unlock-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.unlock-text small { color: var(--muted); }
.unlock-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.unlock-bars .tbar { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.unlock-bars .tbar span { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---- chat hall ---- */
.tabs button { position: relative; }
.badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.room-list, .people { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.room-icon { font-size: 24px; width: 32px; text-align: center; }
.room-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { color: var(--muted); }
.room-meta.online { color: var(--ok); }
.invite { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-top: 10px; }
.invite .primary { margin-top: 4px; }
.code { background: var(--surface-2); border-radius: 12px; padding: 8px 18px; font: inherit; color: var(--text); letter-spacing: 4px; font-size: 22px; direction: ltr; }
.add-friend { margin-top: 12px; }
.add-friend input, #inviteCode { text-transform: uppercase; letter-spacing: 2px; direction: ltr; }
.person { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.person .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.person .dot.on { background: var(--ok); }
.ghost-btn { background: var(--surface-2) !important; color: var(--muted) !important; }
.ok-text { color: var(--ok); }
.danger-text { color: var(--bad) !important; }

.room-view { display: flex; flex-direction: column; height: calc(100dvh - 120px); }
.room-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.room-head { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.room-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.room-head small { color: var(--muted); font-size: 12px; }
.msg-list { flex: 1; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.msg.mine { align-self: flex-end; cursor: default; }
.bubble { background: var(--surface-2); padding: 8px 12px; border-radius: 14px; border-end-start-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--accent), #5b4bd6); color: #fff; border-end-start-radius: 14px; border-end-end-radius: 4px; }
.msg-from { color: var(--accent-2); font-size: 12px; }
.msg-time { color: var(--muted); font-size: 10px; }
.msg.mine .msg-time { align-self: flex-end; }
.composer { display: flex; gap: 8px; padding-top: 8px; }
.composer input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; }
.sheet { text-align: start; }
.sheet input:not([type]) { width: 100%; padding: 10px; margin: 8px 0; }
.sheet-item { display: block; width: 100%; text-align: start; padding: 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; font: inherit; color: var(--text); }
.pick { display: flex; flex-direction: column; gap: 4px; max-height: 30vh; overflow-y: auto; margin: 6px 0; }

/* ---- messenger ---- */
.seg button { position: relative; }
.seg-dot { position: absolute; top: 6px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.room.has-unread b { color: var(--text); }
.room-icon.online::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-inline-start: -6px; vertical-align: bottom; }
.room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.room-time { color: var(--muted); font-size: 11px; }
.unread { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent-2); color: #0f1222; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.unread.quiet { background: var(--line); color: var(--muted); }
.room-head { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; background: none; color: inherit; font: inherit; }
.icon-btn { font-size: 18px; }
.search-bar { padding: 8px 0; }
.search-bar input { width: 100%; padding: 10px; }
.search-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.search-hit { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: var(--surface); margin-bottom: 6px; cursor: pointer; }
.search-hit b { font-size: 12px; color: var(--accent-2); }
.pinned-bar { display: flex; gap: 6px; align-items: center; width: 100%; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; text-align: start; }
.pinned-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-sep { align-self: center; font-size: 11px; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 99px; margin: 6px 0; }
.msg-from { background: none; padding: 0; font: inherit; font-size: 12px; color: var(--accent-2); text-align: start; }
.msg.deleted .bubble { opacity: .6; font-style: italic; }
.quote { display: flex; flex-direction: column; gap: 1px; border-inline-start: 3px solid var(--accent-2); padding: 2px 8px; margin-bottom: 4px; background: rgb(0 0 0 / .15); border-radius: 6px; font-size: 12px; cursor: pointer; }
.quote span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.react { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; font-size: 13px; color: var(--text); }
.react.on { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 20%, var(--surface-2)); }
.ticks { letter-spacing: -3px; margin-inline-start: 4px; }
.ticks.seen { color: var(--accent-2); }
.typing { min-height: 18px; font-size: 12px; color: var(--accent-2); padding: 0 4px; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border-inline-start: 3px solid var(--accent-2); font-size: 13px; }
.reply-bar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .send { width: 48px; font-size: 18px; }
.react-row { display: flex; justify-content: space-between; gap: 4px; margin: 8px 0 12px; }
.react-pick { flex: 1; font-size: 24px; padding: 8px 0; border-radius: 12px; background: var(--surface-2); }
.react-pick.on { background: color-mix(in srgb, var(--accent-2) 30%, var(--surface-2)); }
.person { cursor: pointer; }
.person .name { display: flex; flex-direction: column; }
.person .seen { color: var(--muted); font-size: 11px; font-weight: 400; }
.role { color: var(--gold); font-weight: 400; }
.profile-card { text-align: center; }
.profile-card .modal-art { width: 110px; height: 110px; }
.titles-line { font-size: 13px; color: var(--muted); }
.bio { background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.chip { background: var(--surface-2); border-radius: 99px; padding: 3px 10px; font-size: 12px; }
#profileActions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.people.scroll { max-height: 34vh; overflow-y: auto; }
.my-profile { margin-top: 12px; }
.my-profile summary { cursor: pointer; }
.my-profile textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: none; }
.info-actions { display: flex; flex-direction: column; }

/* ---- game shell ---- */
.stage-tools { display: flex; gap: 4px; }
.tool { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; color: var(--text); }
.score-row { display: flex; justify-content: space-between; margin: -4px 4px 8px; font-size: 14px; }
.game-wrap { position: relative; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(8 9 25 / .7); backdrop-filter: blur(3px); border-radius: 16px; z-index: 5; }
.overlay-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; width: min(88%, 320px); text-align: center; animation: pop .3s ease-out; }
.over-score b { font-size: 44px; font-weight: 800; color: var(--gold); display: block; }
.over-score small { color: var(--muted); }
.over-reward { color: var(--accent-2); font-weight: 700; min-height: 1.4em; }
.over-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.board.scroll { max-height: 50vh; overflow-y: auto; }
.ach-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ach-list li { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.ach-list li.locked { opacity: .55; }
.ach-list li div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ach-list small { color: var(--muted); font-size: 12px; }
.ach-icon { font-size: 26px; width: 34px; text-align: center; }
.ach-xp { color: var(--gold) !important; white-space: nowrap; }
.ach-list li.got { outline: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---- Hokm ---- */
.game-tile.featured { grid-column: 1 / -1; flex-direction: row; gap: 14px; justify-content: flex-start; padding: 16px 18px; text-align: start; }
.game-tile.featured .emoji { font-size: 46px; }
.game-tile.featured strong { font-size: 20px; }
.hokm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hokm-head h2 { margin: 0; flex: 1; text-align: center; }
.small-seg { margin-top: 4px; }
.hokm-friends { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.hokm-table { position: relative; display: flex; flex-direction: column; gap: 8px; height: calc(100dvh - 130px); }
.ht-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ht-score { display: flex; align-items: center; gap: 10px; }
.ht-score .team { display: flex; flex-direction: column; align-items: center; min-width: 54px; line-height: 1.2; }
.ht-score .team b { font-size: 22px; }
.ht-score .team small { font-size: 10px; color: var(--muted); }
.ht-score .us b { color: var(--accent-2); }
.ht-score .them b { color: var(--bad); }
.trump-badge { font-size: 26px; width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: #1d1f2b; border-radius: 10px; box-shadow: 0 0 0 3px var(--gold); }
.trump-badge.red { color: #d6334a; }
.ht-felt { position: relative; flex: 1; min-height: 300px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 40%, #1f8a55, #0d4a30); box-shadow: inset 0 0 0 6px #6b3d1f, inset 0 0 30px rgb(0 0 0 / .4); }
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seat.top { top: 10px; left: 50%; transform: translateX(-50%); }
.seat.left { left: 10px; top: 38%; }
.seat.right { right: 10px; top: 38%; }
.seat.me { bottom: 8px; left: 50%; transform: translateX(-50%); }
.seat-name { background: rgb(0 0 0 / .35); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: 12px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.seat.turn .seat-name { background: var(--gold); color: #1a1300; box-shadow: 0 0 0 3px rgb(255 201 77 / .35); }
.backs { display: flex; }
.backs .pcard { width: 14px; height: 22px; margin-inline-start: -8px; border-radius: 3px; }
.seat.left .backs, .seat.right .backs { flex-direction: column; }
.seat.left .backs .pcard, .seat.right .backs .pcard { margin: -16px 0 0; width: 22px; height: 14px; }
.pcard { width: 46px; height: 66px; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; line-height: 1; user-select: none; direction: ltr; }
.pcard b { font-size: 18px; }
.pcard span { font-size: 22px; }
.pcard.black { color: #1d1f2b; }
.pcard.red { color: #d6334a; }
.pcard.back { background: repeating-linear-gradient(45deg, #7c6cff 0 4px, #5b4bd6 4px 8px); border: 2px solid #fff; }
.trick { position: absolute; inset: 0; pointer-events: none; }
.trick .pcard { position: absolute; left: 50%; top: 50%; animation: deal .25s ease-out; }
.trick .pos0 { transform: translate(-50%, 0%); }
.trick .pos1 { transform: translate(15%, -50%) rotate(8deg); }
.trick .pos2 { transform: translate(-50%, -100%); }
.trick .pos3 { transform: translate(-115%, -50%) rotate(-8deg); }
.trick .winner { box-shadow: 0 0 0 3px var(--gold), 0 2px 10px rgb(0 0 0 / .4); }
.card-count { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; }
.card-count .pcard { width: 16px; height: 24px; border-radius: 3px; border-width: 1px; }
.seat-name { max-width: 90px; }
@keyframes deal { from { opacity: 0; transform: translate(-50%, 60%) scale(.8); } }
.ht-msg { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgb(0 0 0 / .5); white-space: nowrap; }
.ht-clock { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.ht-clock span { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .25s linear; }
.ht-clock span.urgent { background: var(--bad); }
.my-hand { display: flex; justify-content: center; padding: 6px 4px 4px; min-height: 76px; direction: ltr; }
.my-hand .pcard { margin-inline-start: calc(min(0px, (100vw - 40px - 46px * var(--n)) / (var(--n) - 1 + .001))); transition: transform .15s; flex-shrink: 0; }
.my-hand .pcard:first-child { margin-inline-start: 0; }
.my-hand .pcard.legal { transform: translateY(-10px); box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgb(0 0 0 / .4); cursor: pointer; }
.my-hand .pcard.dim { filter: brightness(.6); }
.ht-waiting { padding: 10px; text-align: center; }
.ht-overlay { position: absolute; inset: 40px 10px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; z-index: 6; box-shadow: 0 10px 30px rgb(0 0 0 / .5); animation: pop .3s ease-out; }
.suit-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.suit { font-size: 34px; padding: 10px 0; border-radius: 14px; background: #fff; color: #1d1f2b; }
.suit.red { color: #d6334a; }
.ht-chat { position: absolute; inset: auto 0 0; height: 62%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding: 10px; z-index: 7; box-shadow: 0 -8px 24px rgb(0 0 0 / .4); }
.ht-chat-head { display: flex; justify-content: space-between; align-items: center; }
.emotes { display: flex; gap: 6px; justify-content: space-between; padding: 6px 0; }
.emote { flex: 1; font-size: 22px; padding: 4px 0; border-radius: 10px; background: var(--surface-2); }
body.in-table .toast { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }

/* ---- Table games: Shelem, Pasur, Haft Khabis, Mench ---- */
.ht-score .mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bid-badge { font-size: 11px; font-weight: 800; color: var(--gold); }
.ht-score.chips { flex: 1; justify-content: center; flex-wrap: wrap; gap: 4px; }
.ht-score .chip { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 2px 8px; border-radius: 12px; background: var(--surface-2); line-height: 1.15; border-bottom: 3px solid var(--pc, transparent); }
.ht-score .chip small { font-size: 10px; color: var(--muted); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-score .chip b { font-size: 16px; }
.ht-score .chip.mine b { color: var(--accent-2); }
.ht-score .chip.turn { box-shadow: 0 0 0 2px var(--gold); }
.ht-score .goal { font-size: 11px; color: var(--muted); }
.seat-extra { font-size: 11px; font-weight: 700; color: #fff; background: rgb(0 0 0 / .25); padding: 1px 8px; border-radius: 99px; }
.felt-center { position: absolute; inset: 70px 70px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.felt-center > * { pointer-events: auto; }
.pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 100%; direction: ltr; }
.pool .pcard { width: 40px; height: 58px; animation: pop .25s ease-out; }
.pcard.glow { box-shadow: 0 0 0 3px var(--gold), 0 2px 10px rgb(0 0 0 / .4); }
.pcard.mini { width: 26px; height: 38px; border-radius: 5px; }
.pcard.mini b { font-size: 12px; }
.pcard.mini span { font-size: 13px; }
.deck-chip { font-size: 12px; color: #fff; background: rgb(0 0 0 / .3); padding: 2px 10px; border-radius: 99px; }
.took { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center; color: #fff; font-size: 11px; background: rgb(0 0 0 / .25); padding: 4px 8px; border-radius: 12px; direction: ltr; }
.took small { direction: rtl; unicode-bidi: plaintext; margin-inline-end: 4px; }
.my-hand .pcard.takes { box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--gold); }
.my-hand .pcard.picked { transform: translateY(-18px); box-shadow: 0 0 0 3px var(--accent-2), 0 4px 10px rgb(0 0 0 / .4); }
.my-hand .pcard.selectable { cursor: pointer; }
.my-hand .pcard.drawn { outline: 3px dashed var(--accent-2); outline-offset: 2px; }
.ht-actions { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 0; }
.ht-actions:empty { display: none; }
.khabis-piles { display: flex; gap: 18px; align-items: center; }
.pile { position: relative; background: none; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 11px; }
.pile .pcard { width: 52px; height: 74px; }
.pile .pcard.top { animation: pop .25s ease-out; }
.pile.can .pcard { box-shadow: 0 0 0 3px var(--gold), 0 0 14px var(--gold); cursor: pointer; }
.khabis-meta { display: flex; gap: 10px; align-items: center; color: #fff; }
.suit-now { font-size: 22px; background: #fff; color: #1d1f2b; border-radius: 10px; padding: 0 8px; }
.suit-now.red { color: #d6334a; }
.khabis-meta .dir { font-size: 22px; }
.khabis-meta .penalty { background: var(--bad); color: #fff; border-radius: 99px; padding: 2px 10px; animation: pop .3s ease-out; }
.summary { background: rgb(0 0 0 / .35); color: #fff; border-radius: 16px; padding: 10px 14px; text-align: center; max-width: 100%; animation: pop .3s ease-out; }
.summary p { margin: 6px 0 2px; font-size: 13px; }
.summary .muted { color: #d8dbe8; }
table.points { border-collapse: collapse; margin-top: 6px; font-size: 12px; }
table.points th, table.points td { padding: 2px 6px; text-align: center; }
table.points tr:first-child th { font-size: 10px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
table.points tr.total td, table.points tr.total th { border-top: 1px solid rgb(255 255 255 / .4); font-weight: 800; color: var(--gold); }
.bid-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.bid { padding: 10px 0; border-radius: 12px; background: var(--surface-2); font-weight: 800; }
.bid.shelem { background: var(--gold); color: #1a1300; }
.take-option { display: flex; align-items: center; gap: 4px; justify-content: center; width: 100%; padding: 8px; margin: 6px 0; border-radius: 14px; background: var(--surface-2); direction: ltr; }
.game-tile.online small { opacity: .9; }

.mench-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; }
.mench-players { min-height: 22px; font-weight: 700; text-align: center; }
.mench-board { --turn: 0deg; position: relative; direction: ltr; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); grid-template-rows: repeat(11, minmax(0, 1fr)); gap: 2px; width: min(100%, calc(100dvh - 250px), 460px); box-sizing: border-box; aspect-ratio: 1; padding: 8px; border-radius: 22px; background: radial-gradient(circle at 50% 50%, #fff6dc, #f3d9a4); box-shadow: inset 0 0 0 5px #b07a3c, 0 6px 18px rgb(0 0 0 / .3); transform: rotate(var(--turn)); }
.mench-board .cell { border-radius: 50%; margin: 1px; }
.mench-board .track { background: #fff; box-shadow: inset 0 0 0 2px #c9a46a; }
.mench-board .track.start { background: var(--pc); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .2); }
.mench-board .home { background: color-mix(in srgb, var(--pc) 45%, #fff); box-shadow: inset 0 0 0 2px var(--pc); }
.mench-board .yard { background: color-mix(in srgb, var(--pc) 30%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 70%, #000); }
.mench-board .die { grid-column: 6; grid-row: 6; z-index: 3; font-size: clamp(22px, 7vw, 36px); line-height: 1; padding: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: #fff; color: #1d1f2b; box-shadow: 0 0 0 3px var(--pc), 0 3px 8px rgb(0 0 0 / .3); transform: rotate(calc(-1 * var(--turn))); }
.mench-board .die.can { animation: glow 1.4s ease-in-out infinite; cursor: pointer; }
.mench-board .pawns { position: absolute; inset: 8px; pointer-events: none; }
.mench-board .pawn { position: absolute; width: 7%; aspect-ratio: 1; padding: 0; border-radius: 50% 50% 45% 45%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff9, transparent 45%), var(--pc); border: 2px solid rgb(0 0 0 / .35); box-shadow: 0 2px 4px rgb(0 0 0 / .4); transition: left .35s ease, top .35s ease; pointer-events: none; }
.mench-board .pawn.movable { pointer-events: auto; cursor: pointer; animation: ring 1s ease-in-out infinite; box-shadow: 0 0 0 3px var(--gold), 0 0 12px var(--gold); z-index: 2; }
@keyframes ring { 50% { box-shadow: 0 0 0 6px var(--gold), 0 0 18px var(--gold); } }
.my-hand.two-rows { display: grid; grid-template-columns: repeat(var(--n), min(40px, calc((100vw - 60px) / var(--n)))); justify-content: center; row-gap: 12px; padding-top: 16px; }
.my-hand.two-rows .pcard { margin: 0; }
.seat.ring { transform: translate(-50%, -50%); }
.seat.ring .seat-name { max-width: 72px; font-size: 11px; }

/* ---- Rank halos: blue for the first half of a level (Rise), red for the second (Blaze) ---- */
.rank-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; margin-inline-end: 5px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #fff; vertical-align: middle; box-sizing: border-box; }
.rank-chip.rise { background: radial-gradient(circle at 35% 30%, #6fd0ff, #1f6fe0); box-shadow: 0 0 0 2px #7cc7ff66, 0 0 8px #3aa0ff; }
.rank-chip.blaze { background: radial-gradient(circle at 35% 30%, #ffb36b, #e0312f); box-shadow: 0 0 0 2px #ff8a6b66, 0 0 10px #ff4a2a; animation: blaze 1.8s ease-in-out infinite; }
@keyframes blaze { 50% { box-shadow: 0 0 0 3px #ffb36b88, 0 0 14px #ff4a2a; } }
.lvl.rise .avatar-mini { border-radius: 50%; box-shadow: 0 0 0 2px #3aa0ff, 0 0 10px #3aa0ff; }
.lvl.blaze .avatar-mini { border-radius: 50%; box-shadow: 0 0 0 2px #ff4a2a, 0 0 12px #ff6a2a; animation: blaze-ring 1.8s ease-in-out infinite; }
@keyframes blaze-ring { 50% { box-shadow: 0 0 0 3px #ff8a3d, 0 0 18px #ff4a2a; } }
.rank-title { text-align: center; font-weight: 800; font-size: 14px; margin-bottom: 4px; color: var(--gold); }
.halo-big { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.halo-big svg { width: 90%; height: 90%; }
.halo-big.rise { box-shadow: 0 0 0 5px #3aa0ff, 0 0 30px #3aa0ff; background: radial-gradient(circle, #3aa0ff33, transparent 70%); }
.halo-big.blaze { box-shadow: 0 0 0 5px #ff4a2a, 0 0 34px #ff6a2a; background: radial-gradient(circle, #ff6a2a33, transparent 70%); animation: blaze-ring 1.8s ease-in-out infinite; }
.seat-name .rank-chip { min-width: 16px; height: 16px; font-size: 9px; margin-inline-end: 3px; }

/* ---- Home feed: meteors, signals, bazaar, planets (feed.js) ---- */
.tabs .create-tab { flex: 0 0 auto; width: 58px; }
.tabs .create-tab span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-top: -14px; border-radius: 16px; font-size: 30px; color: #fff; background: linear-gradient(135deg, var(--accent), #ff5fa2); box-shadow: 0 6px 16px rgb(124 108 255 / .45); }
.home-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.home-tools .my-planet { flex: 1; margin: 0; text-align: center; font-weight: 700; }
.home-tools .tool i { display: block; width: 22px; height: 22px; }
.home-tools .tool i svg { width: 100%; height: 100%; }
.feed-top { display: flex; align-items: center; justify-content: space-between; }
.feed-top h2 { margin: 0; background: linear-gradient(90deg, #f7d6c8, #d99a8c 45%, #3fb3b9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meteor-rail { display: flex; gap: 12px; overflow-x: auto; padding: 10px 2px; scrollbar-width: none; }
.meteor-rail::-webkit-scrollbar { display: none; }
.meteor-bubble { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; padding: 0; width: 66px; color: var(--text); }
.meteor-bubble small { font-size: 11px; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meteor-bubble .ring { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 3px; box-sizing: border-box; background: var(--line); }
.meteor-bubble.unseen .ring { background: conic-gradient(#ffb02e, #ff5fa2, #7c6cff, #3dd6c6, #ffb02e); animation: spin-ring 6s linear infinite; }
.meteor-bubble.add .ring { background: var(--surface-2); font-size: 28px; color: var(--accent-2); border: 2px dashed var(--accent-2); }
.meteor-bubble.mine { position: relative; }
.meteor-bubble.mine .ring { background: conic-gradient(#ffb02e, #ff5fa2, #7c6cff, #3dd6c6, #ffb02e); }
.meteor-bubble .add-badge { position: absolute; top: 40px; inset-inline-start: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-2); color: #0f1222; font-size: 15px; font-weight: 700; border: 2px solid var(--bg); }
@keyframes spin-ring { to { filter: hue-rotate(360deg); } }
.face { display: inline-flex; border-radius: 50%; background: var(--surface-2); overflow: hidden; flex: 0 0 auto; }
.face svg { width: 100%; height: 100%; }
.face.sm { width: 34px; height: 34px; }
.face.md { width: 52px; height: 52px; }
.face.rise { box-shadow: 0 0 0 2px #3aa0ff; }
.face.blaze { box-shadow: 0 0 0 2px #ff4a2a, 0 0 8px #ff6a2a; }
.orbit-bar { display: flex; gap: 6px; align-items: center; margin: 4px 0 10px; }
.orbit-seg { flex: 1; margin: 0; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.post header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; }
.post-who { display: flex; align-items: center; gap: 8px; background: none; padding: 0; color: var(--text); text-align: start; }
.post-who .lines { display: flex; flex-direction: column; line-height: 1.3; }
.post-who small { font-size: 11px; }
.who { font-size: 14px; }
.dots { font-size: 20px; padding: 0 8px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; max-height: 70vh; object-fit: contain; scroll-snap-align: center; }
.gallery-wrap { position: relative; }
.dots-row { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.dots-row i { width: 6px; height: 6px; border-radius: 50%; background: #fff8; }
.dots-row i.on { background: #fff; }
.post-text { margin: 8px 12px; white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; }
.post footer { display: flex; gap: 4px; padding: 4px 6px 8px; }
.post .act { background: none; padding: 6px 10px; font-size: 15px; color: var(--text); border-radius: 12px; }
.post .act.on { background: var(--surface-2); }
.post .warn { display: block; margin: 0 12px; color: var(--gold); }
.empty-orbit { padding: 30px 10px; line-height: 1.9; }
.more { margin-top: 8px; }
.bazaar-search { display: flex; gap: 6px; }
.bazaar-search input { flex: 1; }
.cat-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .chip, .ad-body .chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--text); white-space: nowrap; font-size: 13px; }
.cat-row .chip.on, .ad-body .chip.on { background: var(--accent); color: #fff; }
.ad-body .chip.sold { background: var(--bad); color: #fff; }
.filter-row { display: flex; gap: 6px; margin-bottom: 10px; }
.filter-row input { flex: 1; min-width: 0; }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-grid > p { grid-column: 1 / -1; }
.ad-tile { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: start; color: var(--text); }
.ad-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.ad-tile.sold img { filter: grayscale(1) brightness(.6); }
.ad-info { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.ad-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-price { color: var(--accent-2); font-weight: 800; font-size: 13px; }
.ad-price.big { font-size: 20px; margin: 4px 0 8px; }
.sold-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--bad); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.fsheet { position: fixed; inset: 0; z-index: 40; background: rgb(5 6 18 / .7); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.fsheet-card { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg, #0f1222); border-radius: 22px 22px 0 0; padding: 44px 14px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; animation: slide-up .25s ease-out; }
.fsheet.menu .fsheet-card { padding-top: 40px; }
.fsheet-close { position: absolute; top: 6px; inset-inline-end: 8px; font-size: 20px; z-index: 5; }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.ad-sheet .gallery img { max-height: 50vh; }
.ad-body h2 { margin: 12px 0 0; }
.ad-meta { display: block; margin: 6px 0; }
.seller { width: 100%; padding: 10px; margin: 10px 0; border-radius: 14px; background: var(--surface); }
.ad-actions { display: flex; flex-direction: column; gap: 6px; }
.safety { display: block; margin: 8px 0; line-height: 1.7; }
.comments h3 { margin: 14px 0 8px; }
.comment { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); position: relative; }
.comment p { margin: 2px 0 0 42px; margin-inline-start: 42px; margin-inline-end: 0; overflow-wrap: anywhere; }
.comment small { margin-inline-start: 42px; font-size: 11px; }
.comment .tiny { position: absolute; inset-inline-end: 0; top: 8px; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.create-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.create-item .big-emoji { font-size: 36px; }
.compose-form { display: flex; flex-direction: column; gap: 8px; }
.compose-form .field { display: flex; flex-direction: column; gap: 4px; }
.compose-form textarea, .compose-form input:not([type]), .compose-form select { width: 100%; box-sizing: border-box; }
.price-row { display: flex; gap: 6px; }
.price-row input { flex: 1; min-width: 0; }
.add-pic { position: relative; display: block; text-align: center; cursor: pointer; padding: 14px; border-radius: 14px; border: 2px dashed var(--accent-2); background: none; color: var(--accent-2); font-weight: 700; }
.add-pic.busy { opacity: .6; pointer-events: none; }
/* Kept in the page (not display:none) so every browser lets it open the picker. */
.file-pick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tiny { position: absolute; top: 2px; inset-inline-end: 2px; background: #0008; color: #fff; border-radius: 50%; width: 22px; height: 22px; padding: 0; font-size: 12px; }
.meteor-preview { height: 220px; border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #fff; font-size: 20px; font-weight: 800; background-size: cover; background-position: center; text-shadow: 0 2px 6px #0008; white-space: pre-wrap; }
.colours { display: flex; gap: 8px; justify-content: center; }
.colour { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid #fff6; }
.meteor-view { align-items: stretch; background: #000; }
.meteor-view .fsheet-card { max-width: 560px; max-height: none; height: 100dvh; border-radius: 0; padding: 0; background: #000; }
.meteor-view .fsheet-close { color: #fff; top: 22px; }
.meteor-stage { position: relative; height: 100%; display: flex; flex-direction: column; }
.meteor-bars { display: flex; gap: 4px; padding: 10px 10px 0; z-index: 3; }
.meteor-bars i { flex: 1; height: 3px; border-radius: 2px; background: #fff4; overflow: hidden; position: relative; }
.meteor-bars i.done { background: #fff; }
.meteor-bars i.now::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: meteor-bar linear forwards; animation-duration: inherit; }
[dir="rtl"] .meteor-bars i.now::after { transform-origin: right; }
@keyframes meteor-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.meteor-head { display: flex; align-items: center; gap: 8px; padding: 10px 50px 10px 12px; color: #fff; z-index: 3; }
.meteor-head small { opacity: .7; }
.meteor-canvas { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.meteor-canvas img { width: 100%; height: 100%; object-fit: contain; }
.meteor-text { position: absolute; left: 16px; right: 16px; text-align: center; color: #fff; font-size: 22px; font-weight: 800; text-shadow: 0 2px 8px #000a; white-space: pre-wrap; overflow-wrap: anywhere; }
.meteor-foot { display: flex; gap: 8px; justify-content: center; padding: 12px; z-index: 3; flex-wrap: wrap; }
.meteor-foot .ghost { color: #fff; }
.meteor-stage .tap { position: absolute; top: 60px; bottom: 80px; width: 35%; background: none; padding: 0; z-index: 2; }
.meteor-stage .tap.prev { left: 0; }
.meteor-stage .tap.next { right: 0; }
.planet-page .fsheet-card { height: 100dvh; max-height: none; border-radius: 0; }
.planet-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.planet-head h2 { margin: 8px 0 0; }
.land-name { font-weight: 700; color: var(--accent-2); }
.land-name.editable { text-decoration: underline dotted; cursor: pointer; }
.planet-stats { display: flex; gap: 22px; margin: 8px 0; }
.planet-stats div { display: flex; flex-direction: column; align-items: center; }
.planet-stats small { color: var(--muted); font-size: 11px; }
.planet-actions { display: flex; gap: 8px; margin: 6px 0; }
.sky { position: relative; height: 170px; margin: 10px -14px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background .6s; }
.sky.life { background: radial-gradient(circle at 80% 20%, #fff 0 1px, transparent 2px) 0 0 / 46px 46px, radial-gradient(circle at 30% 60%, #fff 0 1px, transparent 2px) 0 0 / 70px 70px, linear-gradient(#0b0a24, #24164f); }
.sky.work { background: radial-gradient(circle at 85% 18%, #fff6c9 0 18px, #ffd36b 19px 26px, transparent 27px), linear-gradient(#7fd3ff, #c9ecff); }
.sky-planet { width: 150px; height: 150px; animation: float 5s ease-in-out infinite; }
.sky-planet svg { width: 100%; height: 100%; }
.side-seg { margin: 10px 0; }
.planet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.planet-grid > p { grid-column: 1 / -1; }
.pg-tile { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); color: var(--text); }
.pg-tile img { width: 100%; height: 100%; object-fit: cover; }
.pg-text { display: block; padding: 6px; font-size: 11px; line-height: 1.5; overflow: hidden; height: 100%; box-sizing: border-box; }
.pg-price { position: absolute; bottom: 4px; inset-inline-start: 4px; background: #000a; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.pg-multi { position: absolute; top: 4px; inset-inline-end: 6px; color: #fff; text-shadow: 0 1px 3px #000; }
.compose-form textarea, .fsheet textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; resize: vertical; }
.price-row select { flex: 0 0 110px; width: 110px !important; }

/* ---- views board, ticker, paid extras, Oversians ---- */
.feed-tools { display: flex; gap: 6px; }
.news-ticker { display: block; width: 100%; margin: 8px 0 0; padding: 8px 12px; border-radius: 14px; text-align: start; font-size: 13px; font-weight: 700; color: #1a1300; background: linear-gradient(90deg, #ffd36b, #ff9e5e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgb(255 158 94 / .35); }
.news-ticker.roll { animation: ticker-in .45s ease-out; }
@keyframes ticker-in { from { transform: translateY(8px); opacity: 0; } }
.post .views { margin-inline-start: auto; align-self: center; font-size: 12px; color: var(--muted); padding: 0 8px; }
.star-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: linear-gradient(90deg, #ffd36b, #ff9e5e); color: #1a1300; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 8px #0006; }
.board-sheet .seg { margin-top: 10px; }
.board-list { margin-top: 10px; max-height: calc(5 * 68px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scroll-snap-type: y proximity; }
.board-row { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: start; scroll-snap-align: start; flex-shrink: 0; }
.board-row.me { outline: 2px solid var(--accent-2); }
.board-row .rank { width: 28px; text-align: center; font-size: 18px; font-weight: 800; }
.board-row .lines { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.board-row .lines b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .views-n { color: var(--gold); white-space: nowrap; }
.board-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.board-thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-me { text-align: center; color: var(--accent-2); font-weight: 700; }
.face { background: radial-gradient(circle at 50% 30%, #2d2a5c, #14122e); }
.avatar-mini svg, .halo-big svg { width: 100%; height: 100%; }
.sky-oversian { position: absolute; bottom: 6px; inset-inline-start: 18%; width: 60px; height: 92px; animation: float 4s ease-in-out infinite reverse; }
.sky-oversian svg { width: 100%; height: 100%; }
.look-preview { width: 150px; height: 220px; margin: 0 auto; }
.look-preview svg { width: 100%; height: 100%; }
.look-sheet h3 { margin: 12px 0 6px; font-size: 14px; }
.look-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.look-row::-webkit-scrollbar { display: none; }
.look-opt { position: relative; flex: 0 0 auto; width: 62px; height: 84px; padding: 2px; border-radius: 14px; background: var(--surface); border: 2px solid transparent; }
.look-row.face .look-opt { width: 56px; height: 56px; border-radius: 50%; }
.look-row.skin .look-opt, .look-row.moon .look-opt { width: 38px; height: 38px; border-radius: 50%; border-color: #fff3; }
.look-opt svg { width: 100%; height: 100%; }
.look-opt.on { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgb(61 214 198 / .3); }
.look-opt.locked svg { filter: grayscale(1) brightness(.5); }
.look-opt .lock { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 10px; }

/* ---- stickers ---- */
.composer .sticker-btn { flex: 0 0 auto; font-size: 20px; padding: 0 10px; }
#stickerBox, [data-x="stickers"] { max-height: 46vh; overflow-y: auto; }
.sticker-picker { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; margin-bottom: 6px; }
.sp-head { display: flex; gap: 6px; align-items: center; }
.sp-head .seg { flex: 1; margin: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.sp-item { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 12px; background: var(--surface-2); height: 118px; overflow: hidden; }
.sp-item svg { height: 80px; width: auto; order: 2; }
.sp-cap { order: 1; display: block; max-width: 100%; background: #fff; color: #111; font-size: 10px; font-weight: 800; line-height: 1.4; padding: 2px 6px; border-radius: 8px; box-shadow: 0 2px 0 #111; transform: rotate(-3deg); text-align: center; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-cap.big { font-size: 13px; margin-bottom: -6px; position: relative; z-index: 1; }
.sp-preview { display: flex; flex-direction: column; align-items: center; height: 190px; margin: 6px 0; }
.sp-preview svg { height: 160px; width: auto; }
.sp-body input { width: 100%; box-sizing: border-box; margin: 4px 0 8px; }
.sp-body .look-row { margin-bottom: 6px; }
.sp-body .look-opt { width: 48px; height: 64px; }
.bubble.sticker-bubble { background: none !important; box-shadow: none !important; padding: 0 !important; display: flex; flex-direction: column; align-items: center; }
.sticker-art { width: 96px; height: 140px; }
.sticker-art svg { width: 100%; height: 100%; }
.bubble.sticker-bubble .sp-cap { font-size: 12px; max-width: 140px; margin-bottom: -6px; position: relative; z-index: 1; }
.room-view.stickers-open .small-note { display: none; }
.room-view .msg-list { min-height: 0; }
.sticker-art { order: 2; }

/* ---- lands and group planets ---- */
.land .blades { animation: spin-blades 6s linear infinite; }
.land.sleepy .blades { animation: none; }
.land.excited .blades { animation-duration: 2s; }
@keyframes spin-blades { to { transform: rotate(360deg); } }
.land .bob { animation: float 5s ease-in-out infinite; }
.land .spin-slow { transform-origin: 110px 100px; animation: wobble 8s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(4deg); } }
.world-art { width: 100%; height: 100%; overflow: visible; }
.worlds-card h3 { margin: 0 0 8px; }
.world-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.world-tile { flex: 0 0 auto; width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 16px; background: var(--surface-2); color: var(--text); }
.world-tile b { font-size: 12px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-thumb { width: 80px; height: 80px; flex: 0 0 auto; }
.world-actions { display: flex; gap: 8px; margin-top: 10px; }
.world-actions > * { flex: 1; }
.world-list { display: flex; flex-direction: column; gap: 8px; }
.world-line { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: start; }
.world-line .world-thumb { width: 64px; height: 64px; }
.world-line .lines { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.world-line .motto { color: var(--accent-2); font-size: 12px; }
.world-state { font-size: 18px; }
.world-page .fsheet-card { height: 100dvh; max-height: none; border-radius: 0; }
.world-sky { margin: -44px -14px 0; height: 240px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--wc, #6f4cff) 35%, transparent), transparent 65%), radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 2px) 0 0 / 50px 50px, linear-gradient(#0b0a24, #1a1240); }
.world-big { width: 220px; height: 220px; animation: float 6s ease-in-out infinite; }
.world-page .motto { margin: 2px 0; color: var(--accent-2); font-weight: 700; }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.member { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 14px; background: var(--surface); color: var(--text); }
.member small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.member .crown { position: absolute; top: 2px; inset-inline-end: 6px; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.member-row .who { flex: 1; }
.world-preview { width: 180px; height: 180px; margin: 0 auto; }
.field-label { font-size: 13px; color: var(--muted); }
.look-opt.mini { width: 42px; height: 42px; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.world-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.world-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; color: #fff; background: color-mix(in srgb, var(--wc) 70%, #000); }

/* ---- video ---- */
.gallery video { flex: 0 0 100%; width: 100%; max-height: 70vh; background: #000; scroll-snap-align: center; }
.video-wrap { position: relative; display: block; width: 100%; height: 100%; }
.thumb-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ad-tile .video-wrap { aspect-ratio: 1; }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #000a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none; }
.meteor-canvas video { width: 100%; height: 100%; object-fit: contain; }
.meteor-canvas .sound { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 4; font-size: 20px; color: #fff; }
.meteor-preview .video-wrap { position: absolute; inset: 0; }
.meteor-preview { position: relative; overflow: hidden; }
.storage-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0; padding: 12px 14px; border-radius: 18px; text-align: start; color: var(--text); background: linear-gradient(120deg, rgb(61 214 198 / .18), rgb(124 108 255 / .18)); border: 1px solid rgb(61 214 198 / .4); }
.storage-card .big-emoji { font-size: 30px; }
.storage-card .lines { display: flex; flex-direction: column; gap: 3px; }
.storage-card small { color: var(--muted); line-height: 1.6; }
#quotaPick small { color: var(--accent-2); font-size: 11px; }
.sticker-art, .sp-item, .sp-preview { position: relative; }
.pack-badge { position: absolute; top: 18px; inset-inline-end: 4px; font-size: 18px; filter: drop-shadow(0 2px 2px #0008); }
.sp-grid.locked .sp-item { opacity: .45; }
.sticker-picker .cat-row { padding: 6px 0 2px; }
.planet-head .bio { margin: 4px 16px; text-align: center; line-height: 1.8; }
.showcase { margin-top: 16px; }
.showcase h3 { margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fact { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: var(--surface); }
.fact .fi { font-size: 20px; }
.fact small { font-size: 10px; color: var(--muted); text-align: center; }
.ach-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ach-badge { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 1px rgb(255 201 77 / .4); cursor: pointer; }
.showcase .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.showcase .chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }
.share-sheet input { width: 100%; box-sizing: border-box; margin: 10px 0 4px; }
.share-list { display: flex; flex-direction: column; gap: 6px; }
.share-room { text-align: start; padding: 12px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.share-room.sent { border-color: var(--accent-2); }
.share-card { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px; border-radius: 12px; background: rgb(0 0 0 / .2); color: inherit; text-align: start; min-width: 180px; }
.share-card .lines { display: flex; flex-direction: column; min-width: 0; }
.share-card .lines b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.share-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #000; font-size: 22px; }

/* Live table chat: bubbles over seats, mute controls */
.ht-chat-tools { display: flex; gap: 2px; margin-inline-start: auto; }
.chat-tog { padding: 2px 6px; font-size: 16px; opacity: .55; }
.chat-tog.on { opacity: 1; }
.msg.muted { opacity: .35; }
.msg.muted .bubble { filter: blur(3px); }
.msg-from.linkish { background: none; border: 0; padding: 0; color: var(--muted, #999); font-size: 11px; cursor: pointer; }
.seat-bubble { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; z-index: 6;
  max-width: 160px; width: max-content; padding: 6px 10px; border-radius: 14px; background: #fff; color: #1d1d2b;
  font-size: 13px; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.3); pointer-events: none; animation: bubble-pop .25s ease-out; }
.seat-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.seat.top .seat-bubble { bottom: auto; top: 100%; margin: 4px 0 0; }
.seat.top .seat-bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
.seat-bubble.sticker { padding: 4px; text-align: center; }
.seat-bubble.sticker .sticker-art { width: 64px; height: 64px; margin: 0 auto; }
.seat-bubble.sticker .sticker-art svg { width: 100%; height: 100%; }
.seat-bubble .sp-cap { display: block; font-size: 11px; }
@keyframes bubble-pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* The bell and its list */
.bell { position: fixed; top: calc(10px + env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 9; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 19px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.bell[hidden], body.in-table .bell { display: none; }
.bell.ring { border-color: var(--gold, #ffc94d); }
.bell.shake { animation: bell-shake .6s ease; }
.bell-count { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ff4d6d; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@keyframes bell-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.feed-tools { margin-inline-end: 50px; }
/* Room for the bell at the end of each top bar */
.home-tools, .room-bar, .hokm-head { margin-inline-end: 50px; }
.notes-panel { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .45); display: flex; justify-content: center; align-items: flex-start; }
.notes-card { width: min(520px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 0 0 18px 18px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 16px; animation: notes-in .2s ease-out; }
@keyframes notes-in { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.notes-head { display: flex; justify-content: space-between; align-items: center; }
.notes-head h2 { margin: 0; font-size: 18px; }
.notes-list { list-style: none; margin: 8px 0 0; padding: 0; }
.note { display: flex; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line, rgb(255 255 255 / .08)); cursor: pointer; border-radius: 12px; }
.note.is-new { background: rgb(111 76 255 / .14); }
.note.system { cursor: default; }
.note-pic { position: relative; flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: var(--surface-2); }
.note-pic svg { width: 44px; height: 44px; border-radius: 50%; }
.note-badge { position: absolute; bottom: -3px; inset-inline-end: -3px; font-size: 13px; }
.note-body { flex: 1; min-width: 0; }
.note-body p { margin: 0 0 2px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.note-actions { display: flex; gap: 8px; margin-top: 6px; }
.note-actions button { flex: 0 0 auto; }

/* An invitation that pops up wherever you are */
.invite-pop { position: fixed; z-index: 55; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(360px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--accent); border-radius: 18px;
  padding: 14px; text-align: center; box-shadow: 0 10px 30px rgb(0 0 0 / .45); animation: invite-in .25s ease-out; display: grid; gap: 6px; }
@keyframes invite-in { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.invite-emoji { font-size: 34px; }
.invite-row { display: flex; gap: 8px; margin-top: 4px; }
.invite-row button { flex: 1; }

/* Message requests */
.request-bar { padding: 10px 12px; margin: 6px 0; border-radius: 14px; background: rgb(111 76 255 / .14); text-align: center; }
.request-bar p { margin: 0 0 8px; font-size: 14px; }
.request-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sub-head { font-size: 14px; margin: 8px 4px; opacity: .8; }

/* Spark reactions */
.spark-reacts { display: flex; gap: 6px; justify-content: center; width: 100%; }
.spark-reacts .react { font-size: 22px; padding: 4px 8px; background: rgb(0 0 0 / .35); border-color: rgb(255 255 255 / .2); }
.spark-reacts .react.pop { animation: react-pop .35s ease; }
@keyframes react-pop { 50% { transform: scale(1.4); } }

/* First screen: pick a language */
.lang-pick { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 35%, #2a2160, var(--bg) 70%); }
.lang-pick[hidden] { display: none; }
.lang-box { width: min(340px, 100%); display: grid; gap: 14px; text-align: center; }
.lang-box .logo { font-size: 56px; line-height: 1; }
/* The OVerse mark on the first screens */
.logo-mark { display: block; margin: 0 auto 6px; border-radius: 22%; box-shadow: 0 10px 34px rgb(217 154 140 / .28); }
.lang-box h1 { margin: 0; font-size: 30px; }
.lang-box p { margin: 0 0 10px; color: var(--muted); line-height: 1.7; }
.lang-box .big { font-size: 20px; padding: 16px; }

/* Account recovery and moving between devices */
.acct-sheet { position: fixed; inset: 0; z-index: 75; background: rgb(5 6 18 / .72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.acct-sheet.acct-moved { z-index: 74; background: var(--bg); }
.acct-card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.acct-moved .acct-card { text-align: center; }
.acct-head { display: flex; justify-content: space-between; align-items: center; }
.acct-head h2 { margin: 0; font-size: 18px; }
.acct-card p { margin: 0; line-height: 1.7; }
.acct-code { font: 700 clamp(15px, 5.2vw, 22px)/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; text-align: center; padding: 14px 6px; border-radius: 14px;
  background: var(--surface-2); border: 2px dashed var(--accent-2); user-select: all; white-space: nowrap; overflow-x: auto; }
.acct-warn { color: #ffb4a8; font-size: 13px; }
.acct-row { display: flex; gap: 8px; }
.acct-row button { flex: 1; }
.acct-input { width: 100%; box-sizing: border-box; padding: 12px; font: 600 18px ui-monospace, Menlo, Consolas, monospace; text-align: center; letter-spacing: 1px; text-transform: uppercase; }
.center-link { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--accent-2); font: inherit; text-decoration: underline; }
.secure-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: start; padding: 12px 14px; margin: 0 0 12px; border-radius: 16px;
  border: 1px solid #ffb02e; background: rgb(255 176 46 / .1); color: var(--text); font: inherit; }
.secure-card b { display: block; }
.secure-card .big-emoji { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.secure-card small { color: var(--muted); }
.panel.security button { margin-top: 8px; }

/* Mafia */
.mafia-wrap { display: grid; gap: 10px; padding: 8px 4px; border-radius: 18px; transition: background .6s; }
.mafia-wrap.night { background: radial-gradient(120% 80% at 50% 0%, #1b1640 0%, #07081a 75%); }
.mf-banner { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.mf-banner b { font-variant-numeric: tabular-nums; }
.mf-banner b.urgent { color: #ff6b6b; }
.mf-role { display: grid; gap: 2px; text-align: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #2a1d4d, #141634); color: var(--text); font: inherit; }
.mf-role-emoji { font-size: 30px; }
.mf-role.hidden-role > * { filter: blur(9px); }
.mf-team { color: #ff9aa8; }
.mf-circle { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.mf-player { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; border: 2px solid transparent;
  background: var(--surface); color: var(--text); font: inherit; }
.mf-player:not(:disabled) { cursor: pointer; border-color: var(--line); }
.mf-player:not(:disabled):active { transform: scale(.96); }
.mf-player.chosen { border-color: #ffc94d; box-shadow: 0 0 0 3px rgb(255 201 77 / .25); }
.mf-player.me .mf-name { color: var(--accent-2); }
.mf-player.dead { opacity: .45; filter: grayscale(1); }
.mf-face { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.mf-face svg { width: 54px; height: 54px; }
.mf-bot { font-size: 30px; }
.mf-name { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-tags { position: absolute; top: 2px; inset-inline-end: 4px; font-size: 12px; }
.mf-help { text-align: center; display: grid; gap: 6px; justify-items: center; }
.mf-help p { margin: 0; }
.mf-log p { margin: 2px 0; font-size: 13px; color: var(--muted); text-align: center; }
.ht-overlay p { white-space: pre-line; }

/* Voice */
.voice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; margin: 4px 0; border-radius: 14px; background: var(--surface-2); }
.voice-join { flex: 1; padding: 9px; border-radius: 12px; border: 1px dashed var(--accent-2); background: none; color: var(--accent-2); font: inherit; font-weight: 700; }
.voice-ctl { width: 38px; height: 38px; border-radius: 50%; border: 0; font-size: 17px; background: var(--surface); color: var(--text); }
.voice-ctl.off { background: #4a2030; }
.voice-ctl.leave { background: #c0392b; }
.voice-people { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.voice-face { padding: 4px 9px; border-radius: 99px; border: 2px solid transparent; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; transition: border-color .15s; }
.voice-face.speaking { border-color: #3ddc84; box-shadow: 0 0 10px rgb(61 220 132 / .5); }
.voice-face.silenced { opacity: .5; }
.voice-face.connecting { opacity: .7; border-style: dashed; border-color: var(--line); }
.voice-note { width: 100%; text-align: center; color: var(--muted); }
.call-pill { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 9; max-width: 60vw;
  padding: 7px 14px; border-radius: 99px; border: 0; background: #1e8a4e; color: #fff; font: inherit; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgb(0 0 0 / .35); }
.call-pill[hidden] { display: none; }

/* Emoji keyboard */
.emoji-picker { display: grid; grid-template-rows: auto 1fr; height: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.emoji-tabs { display: flex; gap: 2px; padding: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.emoji-tab { flex: 0 0 auto; width: 34px; height: 30px; border-radius: 8px; border: 0; background: none; font-size: 18px; opacity: .6; }
.emoji-tab.on { opacity: 1; background: var(--surface-2); }
.emoji-close { margin-inline-start: auto; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; padding: 6px; overflow-y: auto; align-content: start; }
.emoji-key { height: 38px; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; padding: 0; }
.emoji-key:active { background: var(--surface-2); transform: scale(1.2); }
.no-prop { font-size: 26px; color: var(--muted); display: grid; place-items: center; height: 100%; }

/* Pilot: feedback icons and sheet */
.fb-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; margin-inline-start: 4px; vertical-align: middle;
  border-radius: 50%; border: 1px dashed #ffc94d; background: rgb(255 201 77 / .12); font-size: 13px; line-height: 1; cursor: pointer; }
.fb-icon[hidden] { display: none; }
.fb-text { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 12px; font: inherit; resize: vertical; }
.fb-mine p { margin: 4px 0; font-size: 13px; color: var(--muted); }

/* Onboarding: the main features at a glance. */
.features { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.features li span { font-size: 22px; }
.features li b { font-size: 14px; }
.features li small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.onb-sub { margin: 14px 0 4px; font-size: 15px; }
.app-get { display: block; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; text-align: center; }
/* Profile photos, wherever an Oversian would be. */
.av-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.halo-big .av-photo { width: 100%; height: 100%; }
.note-pic .av-photo { width: 44px; height: 44px; }
.photo-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0 4px; flex-wrap: wrap; }
.home-tools .app-dl { display: grid; place-items: center; text-decoration: none; font-size: 18px; }
.lang-app { margin-top: 14px; font-size: 14px; }
