/* We Practice theme: trust blue + calm teal, with warm coral and sunny yellow accents. */
:root {
  color-scheme: light;
  --wp-blue: #1d4fd8;
  --wp-blue-deep: #14308f;
  --wp-teal: #0e8f8a;
  --wp-teal-soft: #d9f4ef;
  --wp-coral: #d9481f;
  --wp-coral-hover: #c23f19;
  --wp-sun: #ffc233;
  --wp-sky: #eaf2ff;

  --text-primary: #12263f;
  --text-secondary: #4a5d78;
  --text-primary-on: #ffffff;
  --text-secondary-on: #d7e3ff;
  --fill-primary: #1d4fd8;
  --fill-primary-on: #f5f9ff;
  --fill-secondary: rgb(18 38 63 / 0.55);
  --fill-tertiary: #e6effd;
  --fill-system-green: #12a579;
  --fill-system-orange: #f0731f;
  --fill-system-red: #c9303a;
  --stroke-primary: #c3d3ee;
  --stroke-secondary: #dbe5f6;
  --hover-wash: rgb(29 79 216 / 0.08);
  --hover-wash-primary-on: rgb(255 255 255 / 0.14);
  --mat-agent: rgb(255 255 255 / 0.88);
  --wp-shadow: 0 10px 34px rgb(29 79 216 / 0.14);
  --sans: "Plus Jakarta Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --hero-surface: #14308f;
  --hero-text: #ffffff;
  --hero-text-muted: rgb(255 255 255 / 0.88);
  --hero-glass: rgb(255 255 255 / 0.16);
  --hero-glass-stroke: rgb(255 255 255 / 0.4);
}
html, body { color-scheme: light; }
body {
  background:
    radial-gradient(900px 500px at 105% -5%, rgb(255 194 51 / 0.22), transparent 60%),
    radial-gradient(800px 520px at -10% 8%, rgb(14 143 138 / 0.14), transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  background-attachment: fixed;
}
h1, h2, h3 { letter-spacing: -0.01em; }
.hero h1, .x-roomhead h1, .head h2 { font-weight: 800; }

/* top bar */
.x-bar { background: rgb(255 255 255 / 0.92); border-color: var(--stroke-primary); }
.x-logo { gap: 10px; font-weight: 800; font-size: 17px; color: var(--wp-blue-deep); }
.x-logoimg { width: 63px; height: 36px; background: none; padding: 0; border-radius: 0; object-fit: contain; }
.x-bar .btn { background: var(--fill-tertiary); color: var(--text-primary); border: 0; }

/* hero */
.hero, .hero:not(:has(.hero__img)) {
  background:
    radial-gradient(520px 340px at 92% 100%, rgb(255 194 51 / 0.55), transparent 70%),
    radial-gradient(480px 360px at 78% -10%, rgb(14 143 138 / 0.75), transparent 70%),
    linear-gradient(135deg, #1d4fd8 0%, #1a3fb4 48%, #0e7a86 100%);
}
.hero::after, .hero:not(:has(.hero__img))::after { background: none; }
.hero { display: grid; align-items: center; }
@media (min-width: 861px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero__copy { max-width: none; }
.hero__eyebrow { background: rgb(255 255 255 / 0.18); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 58px); line-height: 1.08; }
.hero__sub { font-weight: 500; max-width: 30ch; }
.hero__logo {
  justify-self: center; align-self: center; width: min(420px, calc(100% - 32px)); margin: 16px;
  padding: 22px 26px; border-radius: 28px; background: rgb(255 255 255 / 0.96);
  box-shadow: 0 24px 60px rgb(10 25 80 / 0.35);
}
.hero__logo img { width: 100%; height: auto; }
@media (max-width: 860px) { .hero__logo { order: -1; width: min(320px, calc(100% - 32px)); margin: 20px auto 0; padding: 14px 18px; } }

/* buttons: friendly, with a gentle grow */
.x-btn { font-weight: 700; transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background-color 200ms ease, opacity 160ms ease; }
.x-btn:hover { box-shadow: 0 6px 18px rgb(29 79 216 / 0.28); background: #1a45bd; }
.x-btn--ghost { background: var(--fill-tertiary); color: var(--text-primary); }
.x-btn--ghost:hover { background: #d6e4fb; box-shadow: none; }
.x-btn--danger:hover { background: #b0262f; box-shadow: 0 6px 18px rgb(201 48 58 / 0.3); }
#create-open, [data-create], #create-submit { background: var(--wp-coral); color: #fff; will-change: transform; transform-origin: center; }
#create-open:hover, [data-create]:hover, #create-submit:hover,
#create-open:focus-visible, [data-create]:focus-visible, #create-submit:focus-visible,
#create-open:active, [data-create]:active, #create-submit:active { background: var(--wp-coral-hover); transform: scale(1.08); box-shadow: 0 10px 24px rgb(217 72 31 / 0.35); }
.x-google, .x-email__submit { background: #fff; color: var(--wp-blue-deep); }
.x-google:hover, .x-email__submit:hover { background: #fff; box-shadow: 0 8px 22px rgb(10 25 80 / 0.3); }
.x-email__tabs { background: rgb(255 255 255 / 0.18); }
.x-email__tabs button[aria-selected="true"] { background: #fff; color: var(--wp-blue-deep); font-weight: 700; }
.x-email .x-input { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.5); }
.x-email .x-input::placeholder { color: rgb(255 255 255 / 0.85); }
.x-email__err { background: #fff1f0; color: #a3232b; }
.x-email__ok { background: #e6f8ee; color: #0d6b43; }
@media (prefers-reduced-motion: reduce) { #create-open:hover, [data-create]:hover, #create-submit:hover { transform: none; } }

/* how-it-works cards */
.cards > div { background: #fff; border: 1px solid var(--stroke-secondary); box-shadow: 0 6px 20px rgb(29 79 216 / 0.07); border-top: 5px solid var(--wp-blue); }
.cards > div:nth-child(2) { border-top-color: var(--wp-teal); }
.cards > div:nth-child(3) { border-top-color: var(--wp-sun); }
.cards h3 { font-weight: 700; color: var(--wp-blue-deep); }
.cards p { color: var(--text-secondary); }

/* lobby */
.head h2, .x-lobbyhead h2 { color: var(--wp-blue-deep); }
.x-filter { background: #fff; border-color: var(--stroke-primary); font-weight: 600; }
.x-filter[aria-pressed="true"] { background: var(--wp-teal); border-color: var(--wp-teal); color: #fff; }
.x-room { background: #fff; border: 1px solid var(--stroke-secondary); border-top: 5px solid var(--wp-blue); box-shadow: 0 6px 20px rgb(29 79 216 / 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease; }
.x-room:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(29 79 216 / 0.16); }
.x-room:nth-child(4n+2) { border-top-color: var(--wp-teal); }
.x-room:nth-child(4n+3) { border-top-color: var(--wp-sun); }
.x-room:nth-child(4n+4) { border-top-color: var(--wp-coral); }
.x-room__topic { font-weight: 700; color: var(--text-primary); }
.x-empty { background: #fff; border-color: var(--stroke-primary); }
.pill { background: var(--wp-teal-soft); color: #075e5a; border: 0; font-weight: 600; }

/* room */
.x-person { background: #fff; border: 1px solid var(--stroke-secondary); box-shadow: 0 6px 18px rgb(29 79 216 / 0.07); }
.x-person__ring { box-shadow: 0 0 0 3px #fff, 0 0 0 3px transparent; }
.x-person.is-speaking .x-person__ring { box-shadow: 0 0 0 3px #fff, 0 0 0 calc(5px + var(--lvl, 0) * 7px) var(--fill-system-green); }
.x-person .x-av { background: var(--wp-sky); color: var(--wp-blue-deep); }
.x-person__mute { box-shadow: 0 0 0 3px #fff; }
.x-stack .x-av { box-shadow: 0 0 0 2px #fff; }
.x-mini { background: var(--fill-tertiary); font-weight: 600; }
.x-mini.is-on { background: var(--wp-teal); color: #fff; }
.x-controls { background: rgb(255 255 255 / 0.94); }
.x-chat { background: #fff; border: 1px solid var(--stroke-secondary); box-shadow: 0 6px 20px rgb(29 79 216 / 0.07); }
.x-msg__text { background: var(--fill-tertiary); }
.x-msg.is-me .x-msg__text { background: var(--wp-blue); color: #fff; }
.x-badge { background: var(--wp-coral); }

/* dialog, inputs */
.x-modal { background: #fff; }
.x-input { background: #fff; border-color: var(--stroke-primary); }
.x-input:focus { outline-color: var(--wp-blue); }
.x-opts input:checked + label { background: var(--wp-blue); border-color: var(--wp-blue); color: #fff; }
.x-notice { background: #fff6dc; color: #5a4300; }
.x-toast { background: var(--wp-blue-deep); }
.foot { color: var(--text-secondary); }
:focus-visible { outline-color: var(--wp-blue); }

/* v2: slower grow, softer (darker) surfaces, flag-coloured language chips, messages */
#create-open, [data-create], #create-submit { transition: transform 700ms ease-out, box-shadow 500ms ease, background-color 300ms ease; }
#create-open:hover, [data-create]:hover, #create-submit:hover,
#create-open:focus-visible, [data-create]:focus-visible, #create-submit:focus-visible,
#create-open:active, [data-create]:active, #create-submit:active { transform: scale(1.12); transition: transform 1800ms cubic-bezier(0.25, 0.6, 0.3, 1), box-shadow 1800ms ease, background-color 300ms ease; }

:root { --soft: #e7ecf5; --stroke-primary: #a4b6d6; --stroke-secondary: #b9c8e2; --fill-tertiary: #d2dcef; --wp-sky: #cfdcf2; --mat-agent: rgb(231 236 245 / 0.9); --text-primary: #0f2038; --text-secondary: #3b4d68; }
body {
  background:
    radial-gradient(900px 500px at 105% -5%, rgb(255 194 51 / 0.12), transparent 60%),
    radial-gradient(800px 520px at -10% 8%, rgb(14 143 138 / 0.12), transparent 60%),
    linear-gradient(180deg, #c3cfe3 0%, #b2c1db 100%);
  background-attachment: fixed;
}
.x-bar { background: rgb(228 234 244 / 0.95); }
.x-room, .x-person, .x-empty, .x-chat, .x-modal, .x-controls, .cards > div, .x-dm { background: var(--soft); }
.x-input { background: #f1f4fa; }
.hero__logo { background: #eef2f9; }
.hero, .hero:not(:has(.hero__img)) {
  background:
    radial-gradient(520px 340px at 92% 100%, rgb(255 194 51 / 0.4), transparent 70%),
    radial-gradient(480px 360px at 78% -10%, rgb(14 143 138 / 0.65), transparent 70%),
    linear-gradient(135deg, #17399f 0%, #142f88 48%, #0b5f6d 100%);
}
.x-filter { background: var(--lg, #e7ecf5); border: 2px solid var(--lc, var(--stroke-primary)); color: var(--text-primary); font-weight: 700; }
.x-filter:hover { filter: brightness(0.97); }
.x-filter[aria-pressed="true"] { background: var(--lgs, var(--wp-teal)); border-color: var(--lc, var(--wp-teal)); color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.55); }
.x-filter[data-lang="All"] { --lc: #1d4fd8; --lg: linear-gradient(90deg, rgba(29,79,216,.2), rgba(14,143,138,.2)); --lgs: linear-gradient(90deg, #1d4fd8, #0e8f8a); }
.x-room { border-top-width: 6px; }
.x-mini--block { color: #8a1f27; }
.x-mini--block.is-on { background: #8a1f27; color: #fff; }
.x-mini--msg { background: var(--wp-blue); color: #fff; }
.x-msgbtn { margin-right: 6px; }

/* direct messages drawer */
.x-dm { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(400px, 100%); display: flex; flex-direction: column; border-left: 1px solid var(--stroke-primary); box-shadow: -12px 0 40px rgb(10 25 60 / 0.3); }
.x-dm[hidden] { display: none; }
.x-dm__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--stroke-secondary); }
.x-dm__head h2 { flex: 1; margin: 0; font-size: 18px; text-align: center; color: var(--wp-blue-deep); }
.x-dm__list { display: grid; gap: 8px; padding: 16px; align-content: start; overflow: auto; }
.x-dm__friend { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-primary); background: #f1f4fa; font: inherit; font-weight: 700; color: var(--text-primary); cursor: pointer; }
.x-dm__friend:hover { background: #fff; }
.x-dm__empty { color: var(--text-secondary); margin: 0; }
.x-dm__thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.x-dm__thread[hidden], .x-dm__list[hidden] { display: none; }
.x-dm__thread .x-msgs { flex: 1; overflow: auto; padding: 14px 16px; }
#dm-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--stroke-secondary); }
#dm-form .x-input { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .x-user__name { display: none; }
  .x-bar .btn { white-space: nowrap; padding: 6px 12px; font-size: 13px; min-height: 0; }
  .x-msgbtn { margin-right: 2px; }
  .x-user { gap: 6px; }
}
@media (max-width: 560px) { #user-av { display: none; } .x-logo { font-size: 15px; gap: 6px; } }

.x-confirm { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgb(8 20 45 / 0.6); }
.x-confirm[hidden] { display: none; }
.x-confirm__box { width: min(400px, 100%); padding: 24px; border-radius: 20px; background: var(--soft); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); }
.x-confirm__box p { margin: 0 0 18px; font-size: 17px; font-weight: 600; color: var(--text-primary); }
.x-confirm__btns { display: flex; gap: 10px; justify-content: flex-end; }
#dm-open .x-badge { margin-left: 4px; }

.x-mine__title { margin: 36px 0 4px; font-size: 22px; font-weight: 800; color: var(--text-primary); }
.x-mine__sub { margin: 0 0 14px; color: var(--text-secondary, #44527a); }
.x-editbtn { padding: 6px 14px; min-height: 0; font-size: 14px; }
#room-edit { margin: 6px 0; }
#room-edit { align-self: flex-start; justify-self: start; width: auto; max-width: max-content; display: inline-flex; }
.x-room__foot { flex-wrap: wrap; gap: 8px; }
.x-room__foot .x-count { margin-right: auto; }

.x-search { width: 100%; margin: 0 0 12px; }
#f-suggest { margin-top: 8px; }
#room-sound { margin: 6px 0 6px 8px; }

.x-emoji { padding: 8px 10px; border-top: 1px solid rgb(0 0 0 / 0.1); background: var(--soft); }
.x-emoji[hidden] { display: none; }
.x-emoji__row { display: flex; flex-wrap: wrap; gap: 4px; }
.x-emoji__row--stk { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgb(0 0 0 / 0.12); }
.x-emo { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 4px; border-radius: 8px; cursor: pointer; }
.x-emo:hover { background: rgb(0 0 0 / 0.08); }
.x-emo--big { font-size: 34px; }
.x-msg__sticker { font-size: 64px; line-height: 1.1; padding: 2px 6px; }
.x-msg__img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin-top: 4px; }
.x-chat__tool { padding: 6px 10px; min-height: 0; font-size: 18px; }
.x-hand { display: inline-block; }

.x-mini--like.is-on { background: #e11d48; color: #fff; }
#room-sound { align-self: flex-start; justify-self: start; width: auto; max-width: max-content; display: inline-flex; }

/* private messages: small popup docked bottom right */
.x-dm { top: auto; left: auto; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 24px)); height: min(460px, 70vh); border: 1px solid var(--stroke-primary); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px rgb(10 25 60 / 0.35); }
.x-dm__head { padding: 10px 12px; }
.x-dm__head h2 { font-size: 16px; }
#dm-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--stroke-secondary); }
#dm-form .x-input { min-width: 0; flex: 1; }

/* ===== v3: Graphite copper (dark charcoal, warm copper accent, nothing bright) ===== */
:root {
  color-scheme: dark;
  --gc-bg: #1f2326; --gc-bar: #272c30; --gc-card: #2d3236; --gc-card2: #353b40; --gc-line: #454c52; --gc-line2: #3a4046;
  --gc-text: #ece9e4; --gc-muted: #a9b1b6; --gc-copper: #a9683f; --gc-copper-h: #bb7a50; --gc-copper-soft: #d29b78; --gc-input: #262b2f;
  --text-primary: var(--gc-text); --text-secondary: var(--gc-muted); --text-primary-on: #fff; --text-secondary-on: #e6ddd6;
  --fill-primary: var(--gc-copper); --fill-primary-on: var(--gc-card2); --fill-tertiary: var(--gc-card2); --fill-secondary: rgb(0 0 0 / 0.45);
  --stroke-primary: var(--gc-line); --stroke-secondary: var(--gc-line2); --soft: var(--gc-card); --wp-sky: var(--gc-card2);
  --wp-blue: var(--gc-copper); --wp-blue-deep: var(--gc-text); --wp-teal: var(--gc-copper); --wp-teal-soft: #3b3430; --wp-coral: var(--gc-copper); --wp-coral-hover: var(--gc-copper-h); --wp-sun: var(--gc-copper-soft);
  --mat-agent: rgb(45 50 54 / 0.92); --hover-wash: rgb(255 255 255 / 0.06); --hero-surface: #2a2d30;
}
html, body { color-scheme: dark; background: var(--gc-bg); color: var(--gc-text); }
body { background: var(--gc-bg); background-attachment: fixed; }
.x-bar { background: var(--gc-bar); border-color: var(--gc-line); }
.x-logo, .x-logo * { color: var(--gc-text); }
.x-logoimg { background: #e3e6e4; border-radius: 8px; padding: 2px 4px; width: 63px; height: 36px; }
.x-bar .btn, .btn { background: var(--gc-card2); color: var(--gc-text); border: 1px solid var(--gc-line); }
.x-bar .btn:hover, .btn:hover { background: #3d444a; }
.hero, .hero:not(:has(.hero__img)) { background: linear-gradient(135deg, #2f3337 0%, #2b2e31 50%, #3a2f2a 100%); border: 1px solid var(--gc-line); }
.hero h1, .hero__sub, .hero p, .hero__note { color: var(--gc-text); }
.hero__eyebrow { background: rgb(255 255 255 / 0.08); border: 1px solid var(--gc-line); color: var(--gc-text); }
.hero__logo { background: #dfe3e1; box-shadow: 0 20px 50px rgb(0 0 0 / 0.45); }
.x-btn { background: var(--gc-copper); color: #fff; }
.x-btn:hover { background: var(--gc-copper-h); box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.x-btn--ghost { background: var(--gc-card2); color: var(--gc-text); border: 1px solid var(--gc-line); }
.x-btn--ghost:hover { background: #40474d; }
.x-btn--danger { background: #9b3a38; color: #fff; }
.x-btn--danger:hover { background: #b04643; box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
#create-open, [data-create], #create-submit { background: var(--gc-copper); color: #fff; }
#create-open:hover, [data-create]:hover, #create-submit:hover, #create-open:focus-visible, [data-create]:focus-visible, #create-submit:focus-visible, #create-open:active, [data-create]:active, #create-submit:active { background: var(--gc-copper-h); box-shadow: 0 10px 24px rgb(0 0 0 / 0.4); }
.x-google, .x-email__submit { background: #dfe3e1; color: #1f2326; }
.x-google:hover, .x-email__submit:hover { background: #eceeed; box-shadow: 0 8px 22px rgb(0 0 0 / 0.35); }
.x-email__tabs { background: rgb(255 255 255 / 0.1); }
.x-email__tabs button { color: var(--gc-muted); }
.x-email__tabs button[aria-selected="true"] { background: #dfe3e1; color: #1f2326; }
.x-email .x-input { background: rgb(255 255 255 / 0.07); border-color: var(--gc-line); color: var(--gc-text); }
.x-email .x-input::placeholder, .x-input::placeholder { color: #8d969c; }
.x-email__err { background: #3b2523; color: #f1b5b0; }
.x-email__ok { background: #243529; color: #a9dbb8; }
.cards > div, .x-room, .x-person, .x-empty, .x-chat, .x-modal, .x-controls, .x-dm, .x-confirm__box, .x-panel { background: var(--gc-card); border: 1px solid var(--gc-line2); box-shadow: 0 8px 24px rgb(0 0 0 / 0.28); color: var(--gc-text); }
.cards > div, .x-room { border-top: 5px solid var(--gc-copper); }
.cards > div:nth-child(n), .x-room:nth-child(n) { border-top-color: var(--gc-copper); }
.cards h3, .head h2, .x-lobbyhead h2, .x-mine__title, .x-room__topic { color: var(--gc-text); }
.cards p, .x-mine__sub, .foot, .x-panel__note { color: var(--gc-muted); }
.x-room:hover { box-shadow: 0 14px 32px rgb(0 0 0 / 0.4); }
.x-filter { background: var(--gc-card); color: var(--gc-text); border: 2px solid var(--lc, var(--gc-line)); }
.x-filter[aria-pressed="true"], .x-filter[data-lang="All"][aria-pressed="true"] { background: var(--gc-copper); border-color: var(--gc-copper); color: #fff; text-shadow: none; }
.x-filter[data-lang="All"] { --lc: var(--gc-copper); --lg: var(--gc-card); }
.pill { background: #3b3430; color: var(--gc-copper-soft); }
.x-input, .x-modal .x-input, input, select, textarea { background: var(--gc-input); color: var(--gc-text); border-color: var(--gc-line); }
.x-input:focus, :focus-visible { outline-color: var(--gc-copper-soft); }
.x-person .x-av, .x-av { background: #3b4248; color: var(--gc-text); }
.x-person__ring { box-shadow: 0 0 0 3px var(--gc-card); }
.x-person__mute, .x-stack .x-av { box-shadow: 0 0 0 3px var(--gc-card); }
.x-person.is-speaking .x-person__ring { box-shadow: 0 0 0 3px var(--gc-card), 0 0 0 calc(5px + var(--lvl, 0) * 7px) #5fa383; }
.x-mini { background: var(--gc-card2); color: var(--gc-text); border: 1px solid var(--gc-line2); }
.x-mini.is-on { background: var(--gc-copper); color: #fff; }
.x-mini--block { color: #e0928d; } .x-mini--block.is-on { background: #9b3a38; color: #fff; }
.x-mini--msg { background: var(--gc-copper); color: #fff; }
.x-mini--like.is-on { background: #a8445a; color: #fff; }
.x-controls { background: rgb(39 44 48 / 0.96); }
.x-msg__text { background: var(--gc-card2); color: var(--gc-text); }
.x-msg.is-me .x-msg__text { background: var(--gc-copper); color: #fff; }
.x-chat .x-msg__text { background: var(--gc-card2); }
.x-chat .x-msg.is-me .x-msg__text, .x-msg.is-me .x-msg__text { background: var(--gc-copper); }
.x-msg__name, .x-msg__edited, .x-msg__acts button { color: var(--gc-muted); }
.x-chat__head, .x-dm__head, #dm-form, .x-emoji { border-color: var(--gc-line2); }
.x-emoji { background: var(--gc-card); } .x-emo:hover { background: rgb(255 255 255 / 0.08); }
.x-emoji__row--stk { border-top-color: var(--gc-line2); }
.x-dm__head h2 { color: var(--gc-text); }
.x-dm__friend { background: var(--gc-card2); border-color: var(--gc-line); color: var(--gc-text); } .x-dm__friend:hover { background: #3f464c; }
.x-notice { background: #3a3128; color: #ecd7b8; }
.x-toast { background: #15181a; color: var(--gc-text); border: 1px solid var(--gc-line); }
.x-badge { background: var(--gc-copper); color: #fff; }
.x-opts label { background: var(--gc-input); color: var(--gc-text); border-color: var(--gc-line); }
.x-opts input:checked + label { background: var(--gc-copper); border-color: var(--gc-copper); color: #fff; }
.x-confirm { background: rgb(8 10 12 / 0.7); }
.x-ver { background: #5b8fb0; }
.x-edit__in { background: var(--gc-input); color: var(--gc-text); border-color: var(--gc-line); }
#board-cv { border-color: var(--gc-line); }
a { color: var(--gc-copper-soft); }
.x-fcount { color: var(--gc-muted); }
::selection { background: var(--gc-copper); color: #fff; }
.x-vtile:not(.is-screen) { max-width: 360px; }
.x-room, .x-room:nth-child(n), .cards > div, .cards > div:nth-child(n) { border-top: 5px solid var(--gc-copper) !important; }
.x-filter { border-color: var(--gc-line) !important; }
.x-filter[aria-pressed="true"] { border-color: var(--gc-copper) !important; }
.x-person__ring { background: var(--gc-card); }
@media (max-width: 480px) { .x-logo span:not(.x-logoimg) { display: none; } .x-bar { padding-left: 8px; padding-right: 8px; gap: 6px; } .x-bar .btn { padding: 6px 10px; } }

.x-skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gc-copper); color: #fff; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; }
.x-skip:focus { top: 8px; }
.x-modal__body { display: grid; gap: 14px; padding: 24px; }
.x-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--gc-muted); }
.x-steps b { color: var(--gc-text); }
.x-welcome__rules { margin: 0; color: var(--gc-muted); font-size: 14px; }
.x-modal textarea.x-input { resize: vertical; font: inherit; }
dialog.x-modal { color: var(--gc-text); }
dialog.x-modal::backdrop { background: rgb(8 10 12 / 0.7); }
@media (max-width: 560px) {
  .x-controls { gap: 6px; padding: 8px; border-radius: 22px; max-width: calc(100vw - 16px); }
  .x-controls .x-btn { padding: 6px 10px; min-height: 0; font-size: 13px; }
  .x-stage { padding-bottom: 150px; }
}


.x-splash { display: none; }
body.booting .x-splash { display: grid; place-items: center; align-content: center; justify-items: center; gap: 14px; position: fixed; inset: 0; background: #1f2326; z-index: 9999; }
body.booting .x-splash img { animation: spl 1.2s ease-in-out infinite alternate; }
@keyframes spl { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.booting .x-splash img { animation: none; } }
#lobby { grid-template-columns: minmax(0, 1fr); }
#lobby .x-lobbyhead .head { flex: 1 1 0; min-width: 0; } #lobby .x-lobbyhead .head__sub { margin-top: 4px; }
.x-splash img { background: #e6e8e6; border-radius: 14px; padding: 4px; }

.faq { display: grid; gap: 8px; max-width: 760px; margin: 12px auto 0; width: 100%; }
.faq h2 { margin: 8px 0; font-size: 22px; }
.faq details { background: #2d3236; border: 1px solid #3a4046; border-radius: 14px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; color: #ece9e4; }
.faq details p { margin: 8px 0 2px; color: #c9ced1; }
.faq a { color: #d29b78; }
.x-showpw { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #c9ced1; cursor: pointer; }
.x-showpw input { width: 18px; height: 18px; accent-color: #a9683f; }

.x-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #3a4046; border-top-color: #d29b78; animation: xspin .9s linear infinite; }
.x-splash__msg { color: #a9b1b6; font-size: 14px; }
@keyframes xspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .x-spin { animation-duration: 3s; } }

.x-retry { margin-left: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid #d29b78; background: transparent; color: #d29b78; cursor: pointer; }
.x-splash__msg { text-align: center; }

/* Advertising board: one element, shown on every screen (landing, lobby, room).
   Class names avoid ad-blocker filter words (EasyList hides ".side-ad"). */
.x-board { box-sizing: border-box; display: grid; gap: 6px; place-content: center; text-align: center; background: #ffffff; color: #1f2326; border: 1px solid #d9dcdf; border-radius: 18px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.30); padding: 16px 18px; order: 10; justify-self: center; width: min(100%, 420px); margin: 4px auto 0; }
.x-board .x-board__t { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: #1f2326; }
.x-board .x-board__m { color: #8a4f2d; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.x-board .x-board__m:hover, .x-board .x-board__m:focus-visible { color: #6b3a1f; }
body.booting .x-board { visibility: hidden; }
@media (max-width: 860px) { body[data-screen="room"] .x-board { margin-bottom: 64px; } }
@media (max-width: 560px) { body[data-screen="room"] .x-board { margin-bottom: 96px; } }
@media (min-width: 1024px) {
  .main { position: relative; }
  .x-board { position: absolute; top: 0; right: 0; width: 250px; margin: 0; z-index: 5; }
  body[data-screen="landing"] .x-board { top: 32px; right: 32px; width: 300px; }
  #lobby { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; column-gap: 24px; }
  #lobby > * { grid-column: 1; }
  #room .x-roomhead { padding-right: 274px; }
}

/* Email verification screen */
.x-verify { padding: 24px 0 8px; }
.x-verify__card { box-sizing: border-box; max-width: 560px; margin: 0 auto; padding: 32px 28px; border-radius: 22px; background: linear-gradient(135deg, #2f3337 0%, #2b2e31 50%, #3a2f2a 100%); border: 1px solid var(--gc-line, #3a4046); color: var(--gc-text, #eef0f1); text-align: center; display: grid; gap: 14px; }
.x-verify__icon { font-size: 44px; line-height: 1; }
.x-verify h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; font-weight: 800; color: inherit; }
.x-verify__lead { margin: 0; font-size: 16px; line-height: 1.5; color: #dfe3e5; overflow-wrap: anywhere; }
.x-verify__hint { margin: 0; font-size: 14px; line-height: 1.5; color: #a9b1b6; }
.x-verify .x-email__err, .x-verify .x-email__ok { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.x-verify__actions { display: grid; gap: 10px; margin-top: 4px; }
.x-verify__actions .x-btn { width: 100%; justify-content: center; }
.x-verify__actions .x-btn:disabled { opacity: .6; cursor: not-allowed; }
@media (min-width: 1024px) { body[data-screen="verify"] .x-verify { padding-right: 274px; } }
@media (min-width: 1024px) and (max-width: 1300px) { body[data-screen="verify"] .x-verify { padding-right: 0; padding-top: 150px; } }
.lang-links{font-size:13px;opacity:.85;line-height:1.9}
.lang-links a{white-space:nowrap}

/* Mutual friends launcher. Inset from viewport edges and kept clear of room controls. */
.x-friends-fab { position: fixed; right: max(28px, min(7vw, 96px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); width: 66px; height: 66px; border-radius: 50%; border: 2px solid #d29b78; background: #fffaf4; color: #20282d; display: grid; place-items: center; padding: 7px; cursor: pointer; z-index: 35; box-shadow: 0 6px 24px rgb(0 0 0 / .32); }
.x-friends-fab:hover { background: #f5e5d4; }
.x-friends-fab:focus-visible { outline: 3px solid #d29b78; outline-offset: 4px; }
body:has(#dm:not([hidden])) .x-friends-fab { visibility: hidden; }
@media (max-width: 860px) { body[data-screen="room"] .x-friends-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 168px); } }
@media (max-width: 560px) { .x-friends-fab { width: 58px; height: 58px; right: 28px; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); } body[data-screen="lobby"] .page { padding-bottom: 100px; } }
/* Keep room actions outside the floating launcher's narrow-screen lane. */
@media (max-width: 560px) { body[data-screen="lobby"] .x-rooms { margin-right: 84px; } }
@media (min-width: 561px) and (max-width: 1100px) { body[data-screen="lobby"] .x-rooms { margin-right: 100px; } }
