/* RockPaperScissor.org — global styles */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #fbf7f0;
  --bg-2: #f3ece0;
  --surface: #ffffff;
  --text: #1d1a24;
  --muted: #5d5868;
  --line: #e6dfd2;
  --brand: #ff5a36;
  --brand-ink: #ffffff;
  --brand-2: #6a4cff;
  --win: #14a86b;
  --lose: #e0344b;
  --tie: #d99a00;
  --shadow: 0 1px 2px rgb(30 20 10 / 6%), 0 8px 24px rgb(30 20 10 / 8%);
  --radius: 18px;
  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14121a; --bg-2: #1c1924; --surface: #221f2c; --text: #f3f0f8; --muted: #a9a3b6;
    --line: #34303f; --brand: #ff6b4a; --brand-2: #8c75ff; --win: #2fcb88; --lose: #ff5d72; --tie: #f2b929;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #14121a; --bg-2: #1c1924; --surface: #221f2c; --text: #f3f0f8; --muted: #a9a3b6;
  --line: #34303f; --brand: #ff6b4a; --brand-2: #8c75ff; --win: #2fcb88; --lose: #ff5d72; --tie: #f2b929;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.3em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -100px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--brand); }
.logo-mark { font-size: 1.5rem; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current='page'] { background: var(--bg-2); color: var(--brand); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--bg-2); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 65%, #000); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-secondary { background: var(--brand-2); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--brand-2) 65%, #000); }
.btn-secondary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; border-radius: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── cards / layout ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3-fixed { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .grid-3-fixed { gap: 10px; } .grid-3-fixed .card { padding: 14px 8px; } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
section { padding: 48px 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* ── hero ── */
.hero { padding: 56px 0 32px; text-align: center; background: radial-gradient(1000px 400px at 50% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }
.hero-hands { font-size: clamp(3rem, 12vw, 5.5rem); display: flex; justify-content: center; gap: .3em; margin-bottom: 8px; }
.hero-hands span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.hero-hands span:nth-child(2) { animation-delay: .2s; }
.hero-hands span:nth-child(3) { animation-delay: .4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-6deg); } }
.feature-icon { font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.stat-strip { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-weight: 600; }

/* ── game ── */
.game-wrap { padding-top: 24px; padding-bottom: 48px; }
.game { max-width: 760px; margin: 0 auto; }
.game-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.game-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); color: var(--text); padding: 9px 34px 9px 12px; border-radius: 12px; font: 600 .95rem var(--font-body); cursor: pointer; }
.input { background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: 12px; font: 600 1rem var(--font-body); width: 100%; }
.input:focus { border-color: var(--brand-2); outline: none; }
label.field { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
label.field > span { display: block; margin-bottom: 6px; color: var(--muted); }

.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 20px; }
.player { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.player-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: flex; align-items: center; gap: 6px; }
.player-score { font: 700 2.6rem/1 var(--font-display); }
.vs { font: 700 1rem var(--font-display); color: var(--muted); text-align: center; }
.vs small { display: block; font-weight: 600; font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.on { background: var(--win); box-shadow: 0 0 0 3px color-mix(in srgb, var(--win) 25%, transparent); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); }
.badge.ready { background: color-mix(in srgb, var(--win) 18%, transparent); color: var(--win); }

.arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 28px 12px; min-height: 210px; }
.hand { font-size: clamp(4rem, 18vw, 7.5rem); line-height: 1; text-align: center; transition: transform .2s; user-select: none; }
.hand.left { transform: scaleX(-1); }
.hand.shake { animation: shake .28s ease-in-out 3; }
.hand.left.shake { animation-name: shake-l; }
@keyframes shake { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(-12deg); } }
@keyframes shake-l { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(0); } 50% { transform: scaleX(-1) translateY(-22px) rotate(-12deg); } }
.hand.win { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--win) 70%, transparent)); }
.hand.lose { opacity: .45; }
.hand-label { text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: 6px; min-height: 1.5em; }
.result { text-align: center; font: 700 clamp(1.3rem, 4.5vw, 1.8rem)/1.2 var(--font-display); min-height: 2.6em; margin: 0; }
.result small { display: block; font: 600 .95rem var(--font-body); color: var(--muted); margin-top: 4px; }
.result.win { color: var(--win); } .result.lose { color: var(--lose); } .result.tie { color: var(--tie); }

.moves { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.move-btn { width: 112px; padding: 14px 8px 10px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .95rem var(--font-body); box-shadow: 0 4px 0 var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; }
.move-btn .e { font-size: 2.6rem; line-height: 1.1; }
.move-btn kbd { font: 600 .7rem var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.move-btn:hover:not([disabled]) { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 7px 0 color-mix(in srgb, var(--brand) 40%, var(--line)); }
.move-btn:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.move-btn.selected { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); }
.move-btn[disabled] { opacity: .5; cursor: not-allowed; }
.moves.five .move-btn { width: 96px; }
@media (max-width: 480px) { .move-btn { width: 92px; } .moves.five .move-btn { width: 30%; } }

.timer { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.timer > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--bg-2); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font: 700 1.5rem var(--font-display); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.history { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 34px; }
.history i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; }
.history .w { background: var(--win); } .history .l { background: var(--lose); } .history .t { background: var(--tie); }

.emotes { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.emotes button { font-size: 1.35rem; background: var(--bg-2); border: 0; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.emotes button:hover { transform: scale(1.1); }
.emote-pop { position: absolute; font-size: 3rem; pointer-events: none; animation: pop 1.6s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-80px) scale(1); } }

.overlay { position: fixed; inset: 0; background: rgb(10 8 16 / 55%); display: grid; place-items: center; z-index: 80; padding: 16px; animation: fade .2s; }
.overlay[hidden] { display: none; }
.overlay .card { max-width: 420px; width: 100%; text-align: center; }
.overlay .big { font-size: 4rem; line-height: 1; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; z-index: 90; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: fade .2s; }
.code-box { font: 700 2.2rem/1 var(--font-display); letter-spacing: .2em; padding: 16px; background: var(--bg-2); border-radius: 14px; text-align: center; user-select: all; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 8px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 14px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 10px; font: 700 .95rem var(--font-body); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ── prose / blog ── */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--brand); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.callout { background: color-mix(in srgb, var(--brand-2) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--line)); padding: 18px 20px; border-radius: 14px; margin: 1.5em 0; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin: 24px 0 12px; }
.breadcrumbs a { color: var(--muted); }
.post-meta { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .15s; }
.post-card:hover { transform: translateY(-3px); color: var(--text); }
.post-card .thumb { font-size: 2.6rem; height: 110px; display: grid; place-items: center; border-radius: 14px; margin: -8px -8px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg-2)), color-mix(in srgb, var(--brand-2) 22%, var(--bg-2))); }
.post-card h3 { margin-top: 0; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.cta-box { text-align: center; margin: 48px 0; padding: 32px 20px; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 28px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.copyright { margin-top: 28px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ── header tools: language menu, account ── */
.nav-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.nav-links { margin-inline-start: auto; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: 46px; z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 190px; max-height: 70vh; overflow-y: auto; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-menu a:hover { background: var(--bg-2); color: var(--brand); }
.lang-menu a[aria-current] { color: var(--brand); }
.lang-menu a[aria-current]::after { content: ' ✓'; }
.account { position: relative; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brand); padding: 0; overflow: hidden; cursor: pointer; background: var(--brand-2); color: #fff; font-weight: 700; display: grid; place-items: center; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.account-panel { position: absolute; inset-inline-end: 0; top: 50px; z-index: 60; width: 290px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.account-panel p { margin: 0; font-size: .92rem; }
.account-stats { font-size: .92rem; line-height: 1.6; }
.signin-slot { min-height: 44px; }
.lang-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 8px 16px; background: color-mix(in srgb, var(--brand-2) 14%, var(--bg)); border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.lang-banner .icon-btn { width: 32px; height: 32px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--brand); }
@media (max-width: 760px) {
  .nav-tools { margin-inline-start: auto; gap: 6px; }
  .menu-btn { margin: 0; }
}
@media (max-width: 420px) { .logo-text { display: none; } }

/* ── game extras ── */
.kbd-hint { font-size: .85rem; margin-top: 10px; }
.code-input { max-width: 220px; text-transform: uppercase; letter-spacing: .15em; }
.room-code { letter-spacing: .12em; color: var(--brand); }
.signin-hint { margin: 16px 0 0; font-size: .92rem; }
.rated-line { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 10px 0; min-height: 1.2em; }
.rated-line.is-rated { color: var(--tie); }
.rating-change { font: 700 1.3rem var(--font-display); margin: 0 0 16px; }
.rating-change.up { color: var(--win); } .rating-change.down { color: var(--lose); }

/* ── leaderboard ── */
.lb-teaser { display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), color-mix(in srgb, var(--brand-2) 14%, var(--surface))); }
.lb-teaser .feature-icon { font-size: 4rem; }
@media (max-width: 560px) { .lb-teaser { flex-direction: column; text-align: center; } }
.lb-card { padding: 0; overflow: hidden; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th, .lb-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.lb-table th { background: var(--bg-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lb-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tr.is-you td { background: color-mix(in srgb, var(--brand-2) 12%, transparent); }
.lb-player { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lb-player > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.lb-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.lb-initial { display: grid; place-items: center; background: var(--brand-2); color: #fff; font-weight: 700; font-size: .8rem; }
.lb-empty { padding: 32px 16px !important; }
.lb-me { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 16px; }
.lb-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 16px; }
@media (max-width: 520px) { .hide-sm { display: none; } .lb-table th, .lb-table td { padding: 10px 8px; } }

/* ── right-to-left (Arabic) ── */
[dir='rtl'] .select { background-position: left 12px center; padding: 9px 12px 9px 34px; }
[dir='rtl'] .prose ul, [dir='rtl'] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir='rtl'] .prose blockquote { border-left: 0; border-right: 4px solid var(--brand); border-radius: 12px 0 0 12px; }
[dir='rtl'] .prose th, [dir='rtl'] .prose td { text-align: right; }
.room-title { font-size: 1.4rem; margin: 0; }

/* ── blog table of contents / generator ── */
.toc { background: var(--bg-2); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; font-size: .97rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin: 3px 0; }
.prose h2[id] { scroll-margin-top: 84px; }
.settle-log { margin: 18px 0 8px; padding-inline-start: 1.4em; font-size: .97rem; }
.settle-log li { margin: 4px 0; animation: fade .3s; }
