/* The room page. Colours come only from the shared themes (themes.css, --theme-*). */
:root {
  --bg: var(--theme-canvas);
  --card: var(--theme-surface);
  --card-2: var(--theme-surface-2);
  --line: var(--theme-line);
  --text: var(--theme-text);
  --text-2: var(--theme-text-2);
  --accent: var(--theme-accent);
  --accent-hover: var(--theme-accent-hover);
  --accent-ink: var(--theme-accent-ink);
  --on-accent: var(--theme-on-accent);
  --focus: var(--theme-focus);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
}
[hidden] { display: none !important; }
[lang="en"] { display: block; color: var(--text-2); font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 16px;
  flex: 1;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); font-size: 15px; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--theme-accent-soft); color: var(--accent-ink);
}
.title { margin: 20px 0 16px; font-size: 28px; line-height: 1.25; }
.title__en { font-size: 17px; font-weight: 500; margin-top: 4px; }
.loading { color: var(--text-2); }

.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--theme-shadow-1);
}
.card p { margin: 0; }
.when { display: flex; flex-direction: column; gap: 2px; }
.when__label { font-size: 14px; color: var(--text-2); font-weight: 600; }
.when__label [lang="en"] { display: inline; }
.when__date { font-size: 22px; line-height: 1.3; }
.countdown { font-weight: 600; color: var(--accent-ink); }
.note audio { width: 100%; }
.note p + p { margin-top: 8px; }
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; color: var(--theme-success); }
.live [lang="en"] { display: inline; color: inherit; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.live__until { color: var(--text-2); font-weight: 500; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__label [lang="en"] { display: inline; font-weight: 500; }
.field input {
  font: inherit; color: var(--text);
  min-height: 48px; padding: 10px 14px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-field-line);
  border-radius: 12px;
}
.field input::placeholder { color: var(--theme-text-3); }

.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn__en { font-size: 14px; font-weight: 500; color: inherit; opacity: 0.92; }
.btn--join { min-height: 72px; font-size: 22px; background: var(--accent); color: var(--on-accent); }
.btn--join:hover { background: var(--accent-hover); }
.btn--join:disabled { opacity: 0.7; cursor: progress; }
.btn--quiet { background: var(--card-2); color: var(--text); border-color: var(--line); }
.btn [lang="en"] { color: inherit; }

.notice { font-size: 15px; color: var(--text-2); }
.notice [lang="en"] { margin-top: 4px; }
.error { color: var(--theme-danger); font-weight: 600; }
.error [lang="en"] { color: inherit; }
.ended { font-size: 19px; font-weight: 600; }
.hint { color: var(--text-2); }
.hint [lang="en"] { display: inline; }

.room { position: fixed; inset: 0; z-index: 10; background: var(--bg); }
.room rtk-meeting { display: block; width: 100%; height: 100%; }

.foot { padding: 16px; display: flex; justify-content: center; }
.looks { display: flex; align-items: center; gap: 10px; }
.looks__label { display: inline; font-size: 14px; }
#looks { display: flex; gap: 8px; }
.theme-swatch {
  position: relative; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; cursor: pointer;
  background: var(--swatch-ground);
  border: 1px solid var(--swatch-line);
  overflow: hidden;
}
.theme-swatch::before { content: ''; position: absolute; inset: 50% 0 0 0; background: var(--swatch-surface); }
.theme-swatch::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; left: 11px; top: 11px; background: var(--swatch-accent); }
.theme-swatch[aria-pressed="true"] { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
@media (pointer: coarse) { .theme-swatch { width: 44px; height: 44px; } .theme-swatch::after { left: 15px; top: 15px; } }

@media (min-width: 900px) {
  .page { padding-top: 56px; }
  .title { font-size: 34px; }
}

/* Team page */
.team .card + .card { margin-top: 16px; }
.team h2 { margin: 0; font-size: 19px; }
.team .row { display: flex; flex-wrap: wrap; gap: 10px; }
.team .row .btn { flex: 1 1 200px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.ok { color: var(--theme-success); font-weight: 600; }
.small { font-size: 14px; color: var(--text-2); }
