/* Design tokens + button classes that the shared team-game stylesheet expects (the game is also used on khmerchem.com). */
:root {
  --surface: #fff; --surface-2: #f7f6fd; --bg: #f1effb;
  --line: #e9e6f6; --line-2: #dad5f0;
  --ink: #272a45; --ink-2: #3c3f60; --ink-3: #666a88;
  --teal: var(--brand, #6b63e0); --teal-strong: var(--brand-dark, #5249c6); --teal-soft: var(--brand-soft, #efedff); --amber-soft: #fff4dc;
  --radius: 14px; --shadow: 0 1px 2px rgba(80,70,160,.04), 0 10px 28px rgba(80,70,160,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Kantumruy Pro', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; }
[hidden] { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.4; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-strong); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-sm { padding: 5px 12px; font-size: 14px; }
.tgx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px clamp(12px, 3vw, 28px); background: #fff; border-bottom: 1px solid var(--line); }
.tgx-brand { color: var(--teal-strong); font-weight: 800; font-size: 18px; text-decoration: none; }
.tgx-main { padding: 18px clamp(12px, 3vw, 28px) 40px; }
.tg.tg-live { z-index: 70; }

/* student mode (opened from the student's page): the setup steps are skipped, the game starts by itself */
.tg-student #tg-setup { display: none !important; }
.tg-loading { text-align: center; padding: 80px 20px; font-size: 20px; font-weight: 600; color: #4a5872; }
.tg-student .tg-tctl { display: none !important; }
.tg-student .tg-card.auto .tg-acts { display: none !important; }
.tg-student .tg-o.tg-tap { cursor: pointer; transition: transform .1s, border-color .12s, background .12s; }
.tg-student .tg-o.tg-tap:hover { border-color: var(--teal, #1c9a74); transform: translateX(3px); }
.tg-student .tg-card:not(.revealed) .tg-o.tg-tap:active { transform: scale(.99); }
.tg-student .tg-card.revealed .tg-o.wrong { border-color: #d9454f; background: #fdeceb; color: #7a1f26; opacity: 1; }
.tg-student .tg-card.revealed .tg-o.wrong b { background: #d9454f; }
.tg-student .tg-card.revealed .tg-o.tg-tap { pointer-events: none; }
