/* ===== Change the colours here ===== */
:root {
  --green: #7ac143;        /* Phaneroo green */
  --green-dark: #4f8a1f;   /* green for text on white */
  --orange: #f7941d;       /* Phaneroo orange */
  --black: #000000;
  --bg: #ffffff;           /* ask and moderator pages */
  --soft: #f4f6f1;
  --text: #15171a;
  --muted: #6a7078;
  --line: #e3e6e0;
  --bad: #c0392b;
  --screen-bg: #000000;    /* projector background */
  --screen-text: #ffffff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--green-dark); font-weight: 600; }
h1, h2 { letter-spacing: -.02em; line-height: 1.15; }

/* ---------- Ask page ---------- */
.hero { background: var(--black); text-align: center; padding: 22px 16px 30px; border-bottom: 5px solid var(--green); }
.hero img { width: 150px; height: 150px; display: block; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 4px 0 6px; }
.hero p { color: var(--green); margin: 0; font-weight: 500; }
main, .narrow { max-width: 620px; margin: 0 auto; padding: 22px 16px 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 16px 0; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.warn { border: 2px solid var(--bad); }
.ok { color: var(--green-dark); font-weight: 700; }
.bad { color: var(--bad); font-weight: 600; }
.small { color: var(--muted); font-size: .85rem; }
label { display: block; font-weight: 600; margin: 4px 0 10px; }
input[type=password], input[type=text], textarea { width: 100%; padding: 16px; font: inherit; color: var(--text); background: var(--soft); border: 2px solid transparent; border-radius: 14px; outline: none; transition: border-color .15s, background .15s; }
textarea { min-height: 160px; resize: vertical; font-size: 1.1rem; }
input:focus, textarea:focus { border-color: var(--green); background: #fff; }
.row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.btn { display: inline-block; min-height: 54px; padding: 12px 22px; font: inherit; font-weight: 700; border: 0; border-radius: 14px; cursor: pointer; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(.95); }
.btn-primary { background: var(--orange); color: #111; width: 100%; font-size: 1.15rem; margin-top: 8px; }
.btn-ghost { background: var(--soft); color: var(--text); }
.btn:disabled { opacity: .5; cursor: default; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; line-height: 56px; text-align: center; margin-bottom: 10px; }
.code { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
pre.code { background: #111; color: #e8ecef; padding: 12px; border-radius: 10px; white-space: pre-wrap; }
footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 10px 16px 28px; }

/* ---------- Moderator ---------- */
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adminhead { background: var(--black); color: #fff; border-bottom: 5px solid var(--green); }
.adminhead .in { max-width: 920px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.adminhead img { width: 48px; height: 48px; vertical-align: middle; }
.adminhead b { font-size: 1.1rem; margin-left: 8px; vertical-align: middle; }
.adminhead a { color: var(--green); margin-left: 14px; }
.wide { max-width: 920px; margin: 0 auto; padding: 18px 16px 40px; }
.switch { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--green-dark); }
.q { background: #fff; border: 1px solid var(--line); border-left: 8px solid #c9cdc6; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.q.pending { border-left-color: var(--orange); background: #fffaf2; }
.q.approved { border-left-color: var(--green); }
.q.answered { border-left-color: #8a9099; opacity: .65; }
.q.hidden { border-left-color: var(--bad); opacity: .65; }
.q.live { box-shadow: 0 0 0 3px var(--orange); }
.q p { margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; font-size: 1.1rem; font-weight: 500; }
.q .btn { min-height: 44px; padding: 8px 14px; margin: 4px 6px 0 0; font-size: .9rem; }
.q .btn.go { background: var(--green); color: #111; }
.q .btn.sh { background: var(--orange); color: #111; }
.tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Projector (one question at a time) ---------- */
body.screen { background: var(--screen-bg); color: var(--screen-text); overflow: hidden; height: 100vh; }
.screen .top { display: flex; justify-content: space-between; align-items: center; padding: 16px 44px; border-bottom: 4px solid var(--green); }
.screen .brand { display: flex; align-items: center; gap: 20px; }
.screen .brand img { width: 84px; height: 84px; }
.screen .title { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.screen .title span { display: block; font-size: 1.05rem; font-weight: 600; color: var(--green); letter-spacing: 0; margin-top: 4px; }
.screen .join { display: flex; align-items: center; gap: 18px; font-size: 1.1rem; font-weight: 600; color: var(--green); text-align: right; line-height: 1.3; }
.screen #qr { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.screen #qr img, .screen #qr canvas { width: 108px !important; height: 108px !important; }
.screen #stage { width: 100%; }
.screen .stage { height: calc(100vh - 118px); padding: 36px 56px; display: flex; align-items: center; justify-content: center; }
.screen .big { width: 100%; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-align: center; white-space: pre-wrap; word-break: break-word; animation: fade .7s ease; }
.screen .big.plain { color: #fff; }
.screen .big.live { background: #fff; color: #0a0a0a; border-radius: 32px; padding: 44px 60px; border-bottom: 12px solid var(--green); }
.screen .big.live small { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; color: var(--green-dark); }
.screen .empty { font-size: 3rem; font-weight: 700; color: #8b9288; text-align: center; }
@keyframes fade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
