/* CMC Bilingual Community — hotel bintang 5, malam hari */
:root {
  --bg: #070b16;
  --bg2: #0d1428;
  --panel: rgba(11, 17, 33, .94);
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .08);
  --line: rgba(232, 196, 122, .2);
  --line2: rgba(255, 255, 255, .1);
  --ink: #f4efe4;
  --muted: #a3abbf;
  --gold: #e8c47a;
  --gold2: #b8913f;
  --good: #4fd1a1;
  --mid: #f5c451;
  --bad: #ff7a6b;
  --pearl: #f1ece2;
  --ruby: #e0475b;
  --sapphire: #5b86ec;
  --emerald: #2fb37a;
  --diamond: #9fe3ff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --top: 60px;
  --dock: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
p { margin: 0 0 .8em; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.gold { color: var(--gold); }

/* ---------- Scene & labels ---------- */
#scene { position: fixed; inset: 0; }
#scene canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.lbl {
  position: absolute; left: 0; top: 0;
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 24, .78);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(6px);
  transform: translate(-50%, -100%);
  transition: background .2s, border-color .2s, opacity .25s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.lbl::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 1px; height: 7px;
  background: var(--line);
}
.lbl:hover, .lbl:focus-visible { background: rgba(30, 24, 10, .92); border-color: var(--gold); outline: none; }
.lbl .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; flex: none; }
.lbl .lk { opacity: .75; font-size: 11px; }
.lbl.off { opacity: 0; pointer-events: none; }
.lbl.you { border-color: var(--gold); }

#loading {
  position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; text-align: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 30%, #16213f, var(--bg) 70%);
  transition: opacity .6s;
}
#loading p { color: var(--muted); font-family: var(--serif); font-size: 20px; }
#loading.gone { opacity: 0; pointer-events: none; }
.spinner { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Topbar & dock ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(7, 11, 22, .92), rgba(7, 11, 22, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.crest {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font: 700 12px var(--serif); letter-spacing: .08em;
  background: radial-gradient(circle, rgba(232, 196, 122, .15), transparent 70%);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-txt b { font-family: var(--serif); font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand-txt small { color: var(--gold); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
#stats { display: flex; gap: 6px; flex-wrap: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
#dock {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 2px; padding: 5px;
  background: rgba(9, 14, 28, .9); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
#dock a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 12px; border-radius: 15px; color: var(--muted); font-size: 18px; min-width: 62px;
}
#dock a span { font-size: 10.5px; font-weight: 600; }
#dock a.on, #dock a:hover { color: var(--ink); background: rgba(232, 196, 122, .12); }
.hidden { display: none !important; }

/* ---------- Panel ---------- */
#panel {
  position: fixed; z-index: 15; top: var(--top); right: 16px; bottom: calc(var(--dock) + 26px);
  width: min(540px, calc(100% - 32px));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  animation: slideIn .35s ease;
}
#panel.full { left: 50%; right: auto; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); animation: fadeUp .35s ease; }
#panel.solo { bottom: 16px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes fadeUp { from { opacity: 0; margin-top: 16px; } }
.close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -6px -6px 0 8px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2);
  background: rgba(20, 26, 44, .9); color: var(--ink); cursor: pointer; font-size: 16px;
}
.back { display: inline-block; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; }
.eyebrow { color: var(--gold); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.room-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.gem {
  width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 60%), var(--gc, #444);
  box-shadow: 0 0 24px color-mix(in srgb, var(--gc, #444) 50%, transparent);
}

/* ---------- Cards / lists ---------- */
.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.card.gold { border-color: var(--line); background: linear-gradient(160deg, rgba(232, 196, 122, .1), rgba(255, 255, 255, .02)); }
.note {
  border-left: 3px solid var(--gold); background: rgba(232, 196, 122, .07);
  padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: 13.5px; color: #e9e2d2; margin: 12px 0;
}
.note.warn { border-color: var(--mid); }
.list { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card);
  color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.item:hover { border-color: var(--line); background: var(--card2); }
.item .ic { font-size: 24px; width: 34px; text-align: center; flex: none; }
.item .tx { flex: 1; min-width: 0; }
.item .tx b { display: block; font-size: 15px; }
.item .tx small { color: var(--muted); font-size: 12.5px; }
.item .st { font-size: 13px; color: var(--muted); flex: none; }
.item.done .st { color: var(--good); }
.item.locked { opacity: .55; cursor: default; }
.item.hl { border-color: var(--gold); background: linear-gradient(160deg, rgba(232, 196, 122, .14), rgba(255, 255, 255, .02)); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.tag.g { color: var(--gold); border-color: var(--line); }
ul.clean { margin: 6px 0 10px; padding-left: 18px; }
ul.clean li { margin: 3px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.statbox { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 12px; text-align: center; }
.statbox b { display: block; font-size: 22px; font-family: var(--serif); }
.statbox small { color: var(--muted); font-size: 12px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 99px; transition: width .4s; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs button { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; font-size: 13px; font-weight: 600; }
.tabs button.on { border-color: var(--gold); color: var(--gold); background: rgba(232, 196, 122, .1); }
table.fame { width: 100%; border-collapse: collapse; font-size: 14px; }
table.fame td, table.fame th { padding: 9px 6px; border-bottom: 1px solid var(--line2); text-align: left; }
table.fame th { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- Buttons ---------- */
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.row.left { justify-content: flex-start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .06); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: transform .1s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--line); background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #f0d28f, var(--gold2)); color: #1a1205; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(232, 196, 122, .08);
  font-size: 21px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: rgba(232, 196, 122, .16); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 5px; margin-bottom: 13px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .05); outline: none;
}
.field select option { background: var(--bg2); }
.field input:focus, .field select:focus { border-color: var(--gold); }
.field .err { color: var(--bad); font-size: 12px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }

/* ---------- Lesson stage ---------- */
.stage { text-align: center; position: relative; }
.progress-dots { display: flex; gap: 5px; justify-content: center; margin: 4px 0 12px; flex-wrap: wrap; }
.progress-dots i { width: 22px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.progress-dots i.done { background: var(--good); }
.progress-dots i.now { background: var(--gold); }
.steps { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.steps span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.steps span.on { border-color: var(--gold); color: var(--gold); }
.steps span.ok { color: var(--good); border-color: rgba(79, 209, 161, .35); }
.pic { font-size: 54px; line-height: 1.1; margin: 4px 0 8px; }
.en { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.2; margin: 4px 0; }
.idn { color: var(--muted); font-size: 15px; }
.baca {
  display: inline-block; margin: 10px 0 4px; padding: 6px 14px; border-radius: 10px;
  background: rgba(232, 196, 122, .1); border: 1px dashed var(--line); font-size: 14px; letter-spacing: .02em;
}
.baca b { color: var(--gold); }
.typer {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 26px; line-height: 1.5;
  padding: 14px 10px; margin: 10px auto 4px; border-radius: 14px; border: 1px dashed var(--line2); cursor: text;
  word-break: break-word; max-width: 100%;
}
.typer.small { font-size: 19px; }
.typer.focus { border-color: var(--gold); background: rgba(232, 196, 122, .05); }
.typer .ch { color: rgba(255, 255, 255, .28); border-bottom: 2px solid transparent; }
.typer .ch.done { color: var(--ink); }
.typer .ch.auto { color: rgba(255, 255, 255, .45); }
.typer .ch.cur { border-bottom-color: var(--gold); animation: blink 1s steps(2) infinite; }
.typer .ch.hint { color: var(--mid); }
.typer.hide .ch:not(.done):not(.hint) { color: transparent; border-bottom-color: rgba(255, 255, 255, .2); }
.typer.hide .ch.cur { border-bottom-color: var(--gold); }
.typer.shake { animation: shake .3s; }
@keyframes blink { 50% { border-bottom-color: transparent; } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tap-hint { font-size: 12px; color: var(--muted); }
#typeTrap { position: fixed; left: -100px; top: 50%; width: 10px; height: 10px; opacity: 0; font-size: 16px; }
.mic {
  width: 86px; height: 86px; border-radius: 50%; border: 2px solid var(--gold); margin: 14px auto 8px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(232, 196, 122, .25), rgba(232, 196, 122, .05)); font-size: 34px; cursor: pointer;
}
.mic.live { animation: pulse 1.2s infinite; border-color: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 107, .5); } 100% { box-shadow: 0 0 0 22px rgba(255, 122, 107, 0); } }
.target-say { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.3; }
.target-say .wd { display: inline-block; margin: 0 3px; transition: color .2s; }
.target-say .wd.hit { color: var(--good); }
.target-say .wd.miss { color: var(--bad); }
.heard { min-height: 24px; font-size: 14px; color: var(--muted); }
.score { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.score.good { background: rgba(79, 209, 161, .18); color: var(--good); }
.score.mid { background: rgba(245, 196, 81, .18); color: var(--mid); }
.score.bad { background: rgba(255, 122, 107, .18); color: var(--bad); }
.opts { display: grid; gap: 9px; margin-top: 14px; text-align: left; }
.opt {
  padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; text-align: left; font-size: 15px;
}
.opt:hover { border-color: var(--line); }
.opt.right { border-color: var(--good); background: rgba(79, 209, 161, .12); }
.opt.wrong { border-color: var(--bad); background: rgba(255, 122, 107, .1); }
.opt[disabled] { cursor: default; }
.textin {
  width: 100%; max-width: 360px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  font-size: 22px; text-align: center; letter-spacing: .12em; text-transform: uppercase; outline: none; margin-top: 10px;
}
.textin:focus { border-color: var(--gold); }
.result .big { font-size: 64px; }
.tipcard { text-align: left; }
.tipcard em { color: var(--gold); font-style: normal; font-weight: 600; }
.alpha { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-top: 10px; }
.alpha button { padding: 7px 4px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; font-size: 13px; }
.alpha button b { display: block; font-size: 18px; font-family: var(--serif); }
.alpha button span { color: var(--muted); font-size: 11.5px; }

/* chat simulation */
.chat { display: grid; gap: 10px; text-align: left; margin: 10px 0; }
.bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; }
.bub small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.bub.them { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; justify-self: start; }
.bub.me { background: rgba(232, 196, 122, .16); border: 1px solid var(--line); border-bottom-right-radius: 4px; justify-self: end; }
.who { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 6px; }
.who .av { font-size: 34px; }

/* room card (kartu kamar) */
.keycard {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px; margin: 6px 0 14px; text-align: left;
  background: linear-gradient(135deg, #1b1407, #3a2b10 40%, #120d05);
  border: 1px solid var(--gold2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.keycard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--gc, #e8c47a) 45%, transparent), transparent 45%);
}
.keycard > * { position: relative; }
.keycard .kc-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.keycard .kc-no { font-family: var(--serif); font-size: 46px; font-weight: 700; margin: 12px 0 0; line-height: 1; }
.keycard .kc-room { font-family: var(--serif); font-size: 22px; }
.keycard .kc-name { margin-top: 14px; font-size: 18px; font-weight: 700; }
.keycard .kc-meta { color: #d6c6a1; font-size: 13px; }
.keycard .chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f3d995, #a98535); }

/* toast & confetti */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--dock) + 34px); transform: translate(-50%, 20px); z-index: 50;
  background: #1d2440; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --top: 56px; --dock: 58px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  #panel, #panel.full {
    left: 0; right: 0; transform: none; width: auto;
    top: var(--top); bottom: calc(var(--dock) + 16px);
    border-radius: 20px 20px 0 0; border-bottom: 0; padding: 18px 16px 24px; margin: 0 8px;
  }
  #panel.solo { bottom: 0; }
  #dock { left: 8px; right: 8px; transform: none; bottom: 8px; justify-content: space-between; border-radius: 16px; }
  #dock a { min-width: 0; flex: 1; padding: 5px 2px; font-size: 17px; }
  #dock a span { font-size: 9.5px; }
  .brand-txt small { display: none; }
  .brand-txt b { font-size: 17px; }
  .crest { width: 34px; height: 34px; }
  .hide-sm { display: none !important; }
  .en { font-size: 27px; }
  .typer { font-size: 22px; }
  .typer.small { font-size: 17px; }
  .target-say { font-size: 23px; }
  .lbl { font-size: 11px; padding: 5px 9px 5px 7px; }
  .keycard .kc-no { font-size: 38px; }
}

/* ---------- Permainan Level 2–10 ---------- */
.wa .who { background: rgba(37, 211, 102, .08); border-radius: 12px; padding: 6px 10px; }
.wa .bub.them { background: rgba(37, 211, 102, .12); }
.blank { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--gold); color: var(--gold); }
.blank.ok { color: var(--good); border-color: var(--good); }
.blank.no { color: var(--bad); border-color: var(--bad); }
.built { min-height: 56px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 10px; margin: 12px 0; border: 1px dashed var(--line); border-radius: 14px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.tile { padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.tile:hover { border-color: var(--line); }
.tile.on { border-color: var(--gold); background: rgba(232, 196, 122, .14); }
.tile.used { visibility: hidden; }
.card.form { text-align: left; margin-top: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.seg button.on { border-color: var(--gold); color: var(--gold); }
.seg button.right { border-color: var(--good); color: var(--good); background: rgba(79, 209, 161, .12); }
.seg button.wrong { border-color: var(--bad); color: var(--bad); }
.done-list { text-align: left; margin: 8px 0; padding-left: 22px; color: var(--good); font-size: 14px; }
.done-list li { margin: 3px 0; }
.card.bio { text-align: left; border-color: var(--line); }
.card.bio div { margin: 3px 0; }
.words { line-height: 2.4; margin: 14px 0; }
.words .w { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.words .w.on { border-color: var(--bad); background: rgba(255, 122, 107, .12); }
.words .w.fixw { border-color: var(--good); color: var(--good); }
.words .w.fixw s { color: var(--bad); }
.words .w.wrongw { border-color: var(--mid); }
.idline { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 8px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); }
.target-say.blur .wd { filter: blur(8px); user-select: none; }
.card.emg { border-color: var(--bad); background: rgba(255, 122, 107, .08); text-align: left; }
.timer { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 10px 0 4px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--bad), var(--gold)); transition: width .2s linear; }
.mood { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); margin: 8px 0 4px; }
.card.script { text-align: left; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.gauge { position: relative; display: flex; justify-content: space-between; margin: 14px 0 6px; padding-top: 16px; font-size: 11.5px; color: var(--muted);
  background: linear-gradient(90deg, rgba(255,122,107,.35) 0 40%, rgba(79,209,161,.45) 40% 60%, rgba(255,122,107,.35) 60%) top / 100% 8px no-repeat; }
.gauge .ok { color: var(--good); }
.gauge i { position: absolute; top: -4px; left: 50%; width: 3px; height: 16px; background: var(--ink); border-radius: 2px; transition: left .5s; }
.cert-wrap { min-height: 120px; display: grid; place-items: center; margin: 10px 0; }
