/* AOV Game Night. Three colours: ink (60), cream (30), amber (10). */
:root {
  --ink: #15120F;
  --cream: #F3EBDD;
  --amber: #F2B544;
  --cream-70: rgba(243, 235, 221, 0.72);
  --cream-30: rgba(243, 235, 221, 0.3);
  --cream-12: rgba(243, 235, 221, 0.12);
  --cream-06: rgba(243, 235, 221, 0.06);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --pad: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 1rem; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
.label {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cream-70);
}
.label b { color: var(--amber); font-weight: 500; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.muted { color: var(--cream-70); }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--r);
  border: 1px solid var(--amber); background: var(--amber); color: var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream-30); font-weight: 500; }
.btn.ghost:hover { border-color: var(--cream); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 0.92rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.field {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--cream-30); background: var(--cream-06); color: var(--cream);
  font-size: 1.15rem;
}
.field::placeholder { color: var(--cream-70); }

/* The time bar */
.timebar { height: 6px; background: var(--cream-12); border-radius: 3px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left center; }

/* Answer tiles, shared by both screens */
.opts { display: grid; gap: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--cream-30);
  background: var(--cream-06); color: var(--cream); overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
button.opt { cursor: pointer; }
button.opt:hover { border-color: var(--cream); }
.opt .key {
  flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: var(--r);
  border: 1px solid currentColor; font-family: var(--mono); font-size: 0.95em;
}
.opt .txt { flex: 1; font-weight: 500; position: relative; }
.opt .cnt { position: relative; font-family: var(--mono); }
.opt .fill {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cream-12);
  transition: width 0.9s var(--ease);
}
.opt.right { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.opt.right .fill { background: rgba(21, 18, 15, 0.14); }
.opt.dim { opacity: 0.55; }
.opt.mine { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.opt.right.mine { background: var(--amber); border-color: var(--amber); }

.banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9;
  padding: 10px 16px; border-radius: var(--r); background: var(--cream); color: var(--ink);
  font-size: 0.9rem; font-weight: 500;
}
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.rise { animation: rise 0.5s var(--ease) both; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
