body {
  min-height: 100dvh;
  background: var(--green-deep);
  color: #fff;
}
/* Επίσημο brand gradient, σταθερό πίσω από το περιεχόμενο (το background-attachment:fixed δεν δουλεύει σε iOS) */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--brand-bg); }
.globe-deco.player { top: -28vw; right: -34vw; width: 100vw; height: 100vw; opacity: .09; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(0, 36, 26, .72); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .cyta-logo-img { height: 30px; }
.topbar-title { font-weight: 700; letter-spacing: .02em; color: var(--gold); font-size: 15px; text-transform: uppercase; }

.app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }

.card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.card + .card { margin-top: 14px; }
.card.glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.center { text-align: center; }

h1 { font-size: 30px; line-height: 1.1; margin: 0 0 8px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; font-weight: 700; }
p { line-height: 1.5; margin: 0 0 10px; }
.muted { color: var(--grey); }
.glass .muted { color: rgba(255,255,255,.7); }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--cyta-green); margin-bottom: 6px; }
.glass .eyebrow, .hero .eyebrow { color: var(--gold); }

.hero { text-align: center; padding: 26px 6px 18px; }
.hero h1 { font-size: 40px; }
.hero h1 span { color: var(--orange); }

/* Φόρμα */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 17px; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--cyta-green); box-shadow: 0 0 0 3px rgba(0,123,78,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #444; margin: 6px 0 16px; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--cyta-green); margin-top: 1px; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 0 0 10px; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px; font-size: 18px; font-weight: 700;
  background: var(--cyta-green); color: #fff; transition: transform .1s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; }
.btn.orange { background: var(--orange); color: var(--ink); }

/* Κανόνες */
.rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.rules b.n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 14px; }

/* Ερώτηση */
.qhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qnum { font-weight: 700; font-size: 15px; color: var(--gold); letter-spacing: .04em; }
.timer {
  min-width: 74px; text-align: center; font-weight: 800; font-size: 20px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-variant-numeric: tabular-nums;
}
.timer.low { background: var(--orange); color: var(--ink); animation: pulse 1s infinite; }
.timer.paused { background: rgba(255,255,255,.25); }
@keyframes pulse { 50% { transform: scale(1.07); } }
.tbar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 16px; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); transform-origin: left; }

.scenario { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.qtext { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.qhint { font-size: 14px; color: var(--gold); margin-bottom: 16px; }

.opts { display: grid; gap: 12px; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  background: #fff; color: var(--ink); border: 3px solid transparent; border-radius: 16px; padding: 16px 14px;
  font-size: 16.5px; line-height: 1.4; box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: transform .12s, border-color .15s, opacity .2s;
  min-height: 72px;
}
.opt:active { transform: scale(.98); }
.opt .l { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--cyta-green); color: #fff; font-size: 17px; }
.opt.sel { border-color: var(--orange); }
.opt.sel .l { background: var(--orange); color: var(--ink); }
.opts.has-sel .opt:not(.sel) { opacity: .62; }
.opt[disabled] { cursor: default; }
.voted-note { text-align: center; font-size: 14px; color: rgba(255,255,255,.8); margin-top: 14px; min-height: 1.4em; }

/* Αποτελέσματα */
.verdict { text-align: center; padding: 26px 18px; }
.verdict .big { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.verdict.win { background: linear-gradient(160deg, #fff, #eaf7ef); }
.verdict.lose { background: linear-gradient(160deg, #fff, #fff4e3); }
.res { display: grid; gap: 10px; margin-top: 6px; }
.res-row { position: relative; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.08); padding: 12px 14px 12px 52px; font-size: 14.5px; line-height: 1.35; }
.res-row .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.12); transition: width 1s ease; }
.res-row.maj .fill { background: linear-gradient(90deg, rgba(245,144,0,.55), rgba(255,210,122,.35)); }
.res-row .l { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.18); }
.res-row.maj .l { background: var(--orange); color: var(--ink); }
.res-row .t { position: relative; }
.res-row .p { position: relative; font-weight: 800; float: right; margin-left: 10px; }
.res-row.mine { outline: 2px solid #fff; }

.score { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.score i { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.08); display: grid; place-items: center; font-size: 12px; font-style: normal; font-weight: 700; }
.score i.ok { background: var(--cyta-green); color: #fff; }
.score i.no { background: #f1d3cf; color: #a33; }

.winner-card { background: linear-gradient(160deg, var(--orange), var(--gold)); color: var(--ink); text-align: center; padding: 34px 20px; }
.winner-card .big { font-size: 64px; }

.closing h1 { color: var(--orange); font-size: 34px; }
.closing p { font-size: 16px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(0,0,0,.1); border-top-color: var(--cyta-green); animation: spin 1s linear infinite; margin: 6px auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-dots::after { content: '…'; animation: dots 1.4s steps(4) infinite; display: inline-block; width: 1em; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0 } 100% { width: 1.1em } }

.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--danger); color: #fff; text-align: center; font-size: 14px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.foot { text-align: center; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 22px; }
.linkbtn { background: none; border: 0; color: rgba(255,255,255,.6); text-decoration: underline; font-size: 13px; padding: 8px; }
