/* ============================================================
   ΚΑΤΑΙΓΙΣΜΟΣ · Reimagined — styling (Obsidian / Mediterranean)
   gold #C9A44A · gold-hi #F0C878 · aegean #5EA8D8 · crimson #d64545 · ink #0E0B07
   Touch-first: ≥56px answer targets, no hover dependence, full-bleed storm.
   ============================================================ */

#rf-wrap {
  /* CHROME tokens follow the live site theme (--sym-*); originals kept as fallbacks.
     Gameplay/atmosphere (--aeg storm, --crim/--warn/--ok semantics) stay hardcoded. */
  --gold: var(--sym-gold, #C9A44A);
  --gold-hi: color-mix(in srgb, var(--sym-gold, #F0C878) 78%, #fff 22%);
  --aeg: #5EA8D8; --crim: #d64545; --warn: #D9694A;
  --ink: var(--sym-bg, #0E0B07); --ink2: var(--sym-bg-card, #171009);
  --line: color-mix(in srgb, var(--sym-gold, #C9A44A) 22%, transparent);
  --txt: var(--sym-fg, #E8DCC8); --dim: var(--sym-stone, #8a7a60);
  --ok: #5dca8a;
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  background: var(--ink);
  font-family: 'Crimson Text', 'Noto Serif', Georgia, serif;
  color: var(--txt);
  -webkit-tap-highlight-color: transparent;
}
#rf-wrap * { box-sizing: border-box; }
.sf-cinzel { font-family: 'Cinzel', serif; }

.sf-screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.sf-screen.active { display: flex; }

/* ───────────────────── LOBBY ───────────────────── */
.sf-lobby { overflow-y: auto; align-items: center; justify-content: flex-start;
  padding: 30px 18px 40px; text-align: center; }
.sf-l-inner { max-width: 660px; width: 100%; margin: auto; }
.sf-l-kicker { font-family: 'Cinzel', serif; font-size: .64rem; letter-spacing: .32em; color: var(--gold); opacity: .82; }
.sf-l-title {
  font-family: 'Cinzel', serif; font-weight: 700; line-height: .95; margin: 8px 0 6px;
  font-size: clamp(2.4rem, 9vw, 4.2rem); letter-spacing: .02em;
  color: var(--gold-hi);
  text-shadow: 0 0 28px rgba(240,200,120,.28), 0 2px 0 rgba(0,0,0,.5);
}
.sf-l-en { font-family: 'Noto Serif', serif; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--warn); opacity: .8; }
.sf-l-sub { color: var(--dim); font-style: italic; font-size: 1.05rem; max-width: 460px; margin: 16px auto 26px; line-height: 1.5; }
.sf-l-sub strong { color: var(--gold-hi); font-style: normal; }

.sf-l-label { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; text-align: left; }
.sf-l-label-hint { color: color-mix(in srgb, var(--gold) 70%, var(--dim)); letter-spacing: .12em; }

/* ── source picker (all classes / theory) ── */
.sf-src-search { margin-bottom: 10px; }
.sf-src-search input {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-family: 'Crimson Text', serif; font-size: 1rem;
  background: var(--ink2); border: 1px solid var(--line); color: var(--txt); outline: none; transition: border-color .15s;
}
.sf-src-search input:focus { border-color: var(--gold); }
.sf-src-search input::placeholder { color: var(--dim); }
.sf-sources {
  text-align: left; max-height: 268px; overflow-y: auto; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 13px; padding: 6px; background: rgba(0,0,0,.2);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sf-sources::-webkit-scrollbar { width: 8px; }
.sf-sources::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.sf-src-group { margin-bottom: 6px; }
.sf-src-cat {
  position: sticky; top: 0; z-index: 1; font-family: 'Cinzel', serif; font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); padding: 9px 10px 6px;
  background: linear-gradient(180deg, var(--ink) 70%, transparent);
}
.sf-src-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 4px 4px; }
.sf-source {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; min-height: 54px; cursor: pointer; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
  border: 1.5px solid var(--line); color: var(--txt); transition: border-color .15s, box-shadow .15s;
}
.sf-source:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.sf-source.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 22px -14px rgba(201,164,74,.7); }
.sf-source.selected::after { content: '⚡'; position: absolute; top: 6px; right: 9px; font-size: .72rem; color: var(--gold-hi); }
/* Pro-gated source: dimmed, not selectable; tapping routes to subscribe */
.sf-source.locked { opacity: .58; }
.sf-source.locked:hover { border-color: var(--line); box-shadow: none; }
.sf-source.locked .sf-source-name { color: var(--dim); }
.sf-source-lock {
  position: absolute; top: 6px; right: 8px; font-family: 'Cinzel', serif; font-size: .56rem;
  letter-spacing: .06em; color: var(--gold-hi); padding: 2px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 16%, rgba(0,0,0,.5));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.sf-source-icon { font-size: 1.35rem; flex: 0 0 auto; }
.sf-source-text { min-width: 0; display: flex; flex-direction: column; }
.sf-source-name { font-family: 'Cinzel', serif; font-size: .9rem; color: var(--gold-hi); line-height: 1.15; }
.sf-source-meta { font-size: .76rem; color: var(--dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-src-empty { padding: 22px; text-align: center; color: var(--dim); font-style: italic; }

.sf-set-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sf-set-row { margin-bottom: 22px; }
.sf-set-grid2 .sf-set-row { margin-bottom: 22px; }
.sf-seg { display: flex; gap: 6px; }
.sf-seg button {
  flex: 1; min-height: 44px; padding: 9px 8px; cursor: pointer; white-space: nowrap;
  font-family: 'Cinzel', serif; font-size: .82rem; border-radius: 9px;
  background: var(--ink2); color: var(--dim); border: 1px solid var(--line); transition: all .15s;
}
.sf-seg button:hover { color: var(--txt); }
.sf-seg button.on { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-hi); border-color: var(--gold); }

.sf-start-btn {
  width: 100%; padding: 17px; min-height: 60px; cursor: pointer; border: none; border-radius: 13px;
  font-family: 'Cinzel', serif; font-size: 1.06rem; font-weight: 700; letter-spacing: .05em; color: #1a1304;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, color-mix(in srgb, var(--sym-gold, #8a6a30) 60%, #000 40%));
  box-shadow: 0 8px 26px -8px rgba(201,164,74,.6); transition: transform .12s, opacity .2s;
}
.sf-start-btn:hover:not(:disabled) { transform: translateY(-2px); }
.sf-start-btn:disabled { background: var(--ink2); color: var(--dim); box-shadow: none; cursor: not-allowed; border: 1px solid var(--line); }
.sf-start-btn.slim { width: auto; padding: 14px 30px; min-height: 52px; }

/* ───────────────────── LEVEL SELECT (screen 2) ───────────────────── */
.sf-levels { text-align: left; }
.sf-lv-back {
  font-family: 'Cinzel', serif; font-size: .8rem; color: var(--gold); background: none;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); padding: 8px 16px; min-height: 40px;
  border-radius: 9px; cursor: pointer; margin-bottom: 18px; transition: .15s;
}
.sf-lv-back:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-hi); }
.sf-lv-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold-hi); margin: 4px 0 6px; }
.sf-lv-sub { color: var(--dim); font-style: italic; font-size: 1rem; margin: 0 0 22px; }
.sf-lv-groups { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.sf-lv-group-hd { font-family: 'Cinzel', serif; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; opacity: .85; }
.sf-lv-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-lv-chip {
  position: relative; min-width: 46px; min-height: 46px; padding: 8px 12px; cursor: pointer; border-radius: 10px;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 1rem; color: var(--txt);
  background: var(--ink2); border: 1.5px solid var(--line); transition: all .14s;
}
.sf-lv-chip::before { content: ''; position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; opacity: .9; }
.sf-lv-chip { padding-left: 20px; }
.sf-lv-chip.tier-green::before { background: #5dca8a; }
.sf-lv-chip.tier-gold::before { background: var(--gold); }
.sf-lv-chip.tier-red::before { background: var(--crim); }
.sf-lv-chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.sf-lv-chip.selected { border-color: var(--gold-hi); background: color-mix(in srgb, var(--gold) 18%, var(--ink2)); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi); }
.sf-lv-chip.all { width: 100%; padding-left: 14px; text-align: center; font-size: 1.02rem; color: var(--gold-hi); border-style: dashed; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.sf-lv-chip.all::before { display: none; }
.sf-lv-chip.all.selected { border-style: solid; }
.sf-lv-desc {
  min-height: 2.4em; display: flex; align-items: center; padding: 11px 15px; margin-bottom: 18px; border-radius: 11px;
  font-family: 'Crimson Text', serif; font-size: 1.02rem; color: var(--txt);
  background: rgba(0,0,0,.22); border: 1px solid var(--line);
}

/* ───────────────────── COUNTDOWN ───────────────────── */
.sf-countdown { align-items: center; justify-content: center; background: var(--ink); }
.sf-cd-canvas { position: absolute; inset: 0; }
.sf-cd-num {
  position: relative; z-index: 2;
  font-family: 'Cinzel', serif; font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 22vw, 11rem); color: var(--gold-hi);
  text-shadow: 0 0 40px rgba(240,200,120,.5);
  animation: sf-cd-pop .5s cubic-bezier(.16,1,.3,1);
}
.sf-cd-label { position: relative; z-index: 2; font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }
/* transform-only entrance — never hides the number if animations are throttled/paused */
@keyframes sf-cd-pop { from { transform: scale(1.7); } to { transform: scale(1); } }

/* ───────────────────── GAME ───────────────────── */
.sf-game { padding: 0; }
#storm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.sf-game-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,11,7,.55) 0%, rgba(14,11,7,.15) 30%, rgba(14,11,7,.35) 62%, rgba(14,11,7,.82) 100%); }
.sf-game-inner {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 720px; width: 100%; margin: 0 auto; padding: 14px 16px 18px;
}

/* HUD */
.sf-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sf-score-box { justify-self: start; }
.sf-score-val { font-family: 'Cinzel', serif; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--gold-hi); text-shadow: 0 0 18px rgba(240,200,120,.3); }
.sf-score-lbl { font-family: 'Cinzel', serif; font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }
.sf-mult {
  justify-self: center; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem;
  padding: 6px 14px; border-radius: 999px; color: var(--gold); letter-spacing: .04em;
  border: 1.5px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s, color .2s, border-color .2s;
}
.sf-mult.show { opacity: 1; transform: scale(1); }
.sf-mult.big { color: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 0 18px -2px rgba(240,200,120,.6); }
.sf-clock-num {
  justify-self: end; text-align: right; font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 2.1rem; line-height: 1; color: var(--txt); font-variant-numeric: tabular-nums;
}
.sf-clock-num .sf-clock-unit { font-size: .8rem; color: var(--dim); margin-left: 3px; }
.sf-clock-num.low { color: var(--crim); animation: sf-clock-flash .6s ease-in-out infinite; }
@keyframes sf-clock-flash { 0%,100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 18px rgba(214,69,69,.8); } }

/* CHARGE gauge (gold, fills toward overdrive) */
.sf-gauges { display: flex; flex-direction: column; gap: 8px; }
.sf-gauge { position: relative; }
.sf-gauge-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.sf-gauge-name { font-family: 'Cinzel', serif; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.sf-gauge-name.charge { color: var(--gold); }
.sf-gauge-name.storm { color: var(--aeg); }
.sf-gauge-track { height: 9px; border-radius: 999px; background: rgba(0,0,0,.45); overflow: hidden; border: 1px solid rgba(0,0,0,.4); }
.sf-charge-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 100%);
  box-shadow: 0 0 14px rgba(240,200,120,.6); transition: width .25s ease;
}
.sf-charge-fill.full { animation: sf-charge-ready .5s ease-in-out infinite; }
@keyframes sf-charge-ready { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }
.sf-storm-track { height: 13px; }
.sf-storm-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2E6F94, var(--aeg) 70%, #9fd0ee);
  box-shadow: 0 0 12px rgba(94,168,216,.4); transition: width .12s linear, background .3s;
}
.sf-storm-fill.warn { background: linear-gradient(90deg, #9A4428, var(--warn)); box-shadow: 0 0 12px rgba(217,105,74,.5); }
.sf-storm-fill.danger { background: linear-gradient(90deg, #7a1f1f, var(--crim)); box-shadow: 0 0 14px rgba(214,69,69,.6); }

/* overdrive banner */
.sf-od-banner {
  text-align: center; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .12em;
  font-size: 1.05rem; color: #1a1304; padding: 9px; border-radius: 11px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, color-mix(in srgb, var(--sym-gold, #8a6a30) 60%, #000 40%));
  box-shadow: 0 0 26px -2px rgba(240,200,120,.7);
  max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0;
  transition: max-height .3s, opacity .3s, padding .3s;
}
.sf-od-banner.on { max-height: 60px; padding-top: 11px; padding-bottom: 11px; opacity: 1; animation: sf-od-pulse 1s ease-in-out infinite; }
@keyframes sf-od-pulse { 0%,100% { box-shadow: 0 0 26px -2px rgba(240,200,120,.7); } 50% { box-shadow: 0 0 40px 2px rgba(240,200,120,.95); } }

/* question */
.sf-q-zone { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 6px 4px; }
.sf-q-num { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: .75; }
.sf-q-stem {
  font-family: 'Cinzel', serif; font-weight: 600; line-height: 1.2;
  font-size: clamp(1.35rem, 4.2vw, 2.1rem); color: #F6F2EB; max-width: 600px;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.sf-q-stem strong { color: var(--gold-hi); font-style: italic; font-weight: 600; }
.sf-q-stem.in { animation: sf-q-in .34s cubic-bezier(.16,1,.3,1); }
/* transform-only entrance — the stem stays fully legible even if the animation is paused */
@keyframes sf-q-in { from { transform: translateY(16px); } to { transform: translateY(0); } }

/* answers */
.sf-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-answer {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 62px; padding: 13px 15px; cursor: pointer;
  background: color-mix(in srgb, var(--ink2) 80%, transparent);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--txt);
  font-family: 'Crimson Text', serif; font-size: 1.16rem; line-height: 1.3;
  transition: all .14s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.sf-answer:hover:not(.disabled) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--ink2)); }
.sf-answer:active:not(.disabled) { transform: scale(.98); }
.sf-answer.disabled { cursor: default; }
.sf-answer-key {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  font-family: 'Cinzel', serif; font-size: .86rem; color: var(--dim); background: rgba(0,0,0,.4); border: 1px solid var(--line);
}
.sf-answer.correct { background: rgba(39,174,96,.26); border-color: var(--ok); color: #aef0c8; }
.sf-answer.correct .sf-answer-key { color: #0c2417; background: var(--ok); border-color: var(--ok); }
.sf-answer.wrong { background: rgba(214,69,69,.26); border-color: var(--crim); color: #f0a89c; }
.sf-answer.wrong .sf-answer-key { color: #2a0d08; background: var(--crim); border-color: var(--crim); }

/* ── Σωστό / Λάθος ── */
.sf-tf { display: flex; flex-direction: column; gap: 12px; }
.sf-tf-claim {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center;
  font-family: 'Cinzel', serif; font-size: clamp(1.2rem, 3.6vw, 1.7rem); color: var(--gold-hi);
  padding: 14px 18px; border-radius: 13px; border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--ink2) 80%, transparent); backdrop-filter: blur(2px);
}
.sf-tf-arrow { color: var(--aeg); }
.sf-tf-claim.was-true { border-color: var(--ok); }
.sf-tf-claim.was-false { border-color: var(--crim); }
.sf-tf-verdict { width: 100%; font-family: 'Crimson Text', serif; font-style: italic; font-size: .98rem; color: var(--dim); }
.sf-tf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-tf-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 70px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 600; border-radius: 13px; color: var(--txt);
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--ink2) 80%, transparent);
  transition: all .14s; touch-action: manipulation; user-select: none;
}
.sf-tf-btn .sf-tf-ic { font-size: 1.3rem; }
.sf-tf-btn.yes:hover:not(.disabled) { border-color: var(--ok); color: #aef0c8; }
.sf-tf-btn.no:hover:not(.disabled) { border-color: var(--crim); color: #f0a89c; }
.sf-tf-btn:active:not(.disabled) { transform: scale(.98); }
.sf-tf-btn.disabled { cursor: default; opacity: .6; }
.sf-tf-btn.correct { background: rgba(39,174,96,.28); border-color: var(--ok); color: #aef0c8; opacity: 1; }
.sf-tf-btn.wrong { background: rgba(214,69,69,.28); border-color: var(--crim); color: #f0a89c; opacity: 1; }

/* ── Αντιστοίχιση ── */
.sf-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.sf-match-col { display: flex; flex-direction: column; gap: 8px; }
.sf-match-tile {
  display: flex; align-items: center; gap: 9px; text-align: left; min-height: 52px; padding: 10px 12px; cursor: pointer;
  font-family: 'Crimson Text', serif; font-size: 1rem; line-height: 1.25; color: var(--txt); border-radius: 11px;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--ink2) 80%, transparent);
  transition: all .14s; touch-action: manipulation;
}
.sf-match-tile.r { justify-content: flex-end; text-align: right; }
.sf-match-tile:hover:not(.done):not(.disabled) { border-color: var(--gold); }
.sf-match-dot { flex: 0 0 auto; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--dim); transition: all .14s; }
.sf-match-tile.sel { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi); }
.sf-match-tile.sel .sf-match-dot { background: var(--gold-hi); border-color: var(--gold-hi); }
.sf-match-tile.shake { animation: sf-shake .35s; border-color: var(--crim); }
@keyframes sf-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sf-match-tile.done { cursor: default; }
.sf-match-tile.disabled { cursor: default; }
.sf-match-tile.miss { opacity: .65; }
.sf-match-tile.c-m1 { border-color: #5EA8D8; } .sf-match-tile.c-m1 .sf-match-dot { background: #5EA8D8; border-color: #5EA8D8; }
.sf-match-tile.c-m2 { border-color: #C9A44A; } .sf-match-tile.c-m2 .sf-match-dot { background: #C9A44A; border-color: #C9A44A; }
.sf-match-tile.c-m3 { border-color: #5dca8a; } .sf-match-tile.c-m3 .sf-match-dot { background: #5dca8a; border-color: #5dca8a; }

/* ── Σωστή σειρά ── */
.sf-order { display: flex; flex-direction: column; gap: 8px; }
.sf-order-list { display: flex; flex-direction: column; gap: 8px; }
.sf-order-tile {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 52px; padding: 10px 14px; cursor: pointer;
  font-family: 'Crimson Text', serif; font-size: 1.05rem; line-height: 1.25; color: var(--txt); border-radius: 11px;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--ink2) 80%, transparent);
  transition: all .14s; touch-action: manipulation;
}
.sf-order-tile:hover:not(.disabled) { border-color: var(--gold); }
.sf-order-badge {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; color: var(--dim);
  background: rgba(0,0,0,.4); border: 1px solid var(--line); transition: all .14s;
}
.sf-order-tile.chosen { border-color: var(--gold); }
.sf-order-tile.chosen .sf-order-badge { color: #1a1304; background: var(--gold-hi); border-color: var(--gold-hi); }
.sf-order-label { flex: 1; }
.sf-order-reveal { font-family: 'Cinzel', serif; font-size: .9rem; color: var(--aeg); }
.sf-order-tile.right { border-color: var(--ok); background: rgba(39,174,96,.18); }
.sf-order-tile.right .sf-order-badge { color: #0c2417; background: var(--ok); border-color: var(--ok); }
.sf-order-tile.wrong { border-color: var(--crim); background: rgba(214,69,69,.16); }
.sf-order-tile.wrong .sf-order-badge { color: #2a0d08; background: var(--crim); border-color: var(--crim); }
.sf-order-hint { text-align: center; font-family: 'Cinzel', serif; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* floating score pop */
.sf-pop {
  position: absolute; left: 50%; top: 42%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 2rem;
  animation: sf-pop-up .8s forwards;
}
.sf-pop.pos { color: var(--gold-hi); text-shadow: 0 0 20px rgba(240,200,120,.7); }
.sf-pop.neg { color: var(--crim); text-shadow: 0 0 18px rgba(214,69,69,.6); }
.sf-pop.time { color: var(--aeg); }
@keyframes sf-pop-up {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.7); }
  18% { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.12); }
  72% { opacity: 1; transform: translateX(-50%) translateY(-34px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-58px) scale(.9); }
}

/* ───────────────────── END ───────────────────── */
.sf-end { overflow-y: auto; align-items: center; justify-content: center; text-align: center; padding: 40px 22px; }
.sf-end-inner { max-width: 480px; width: 100%; margin: auto; }
.sf-end-glyph { font-size: 3.4rem; margin-bottom: 8px; }
.sf-end-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--gold-hi); margin: 0 0 4px; }
.sf-end-sub { color: var(--dim); font-style: italic; margin-bottom: 4px; }
.sf-end-score { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(3.4rem, 12vw, 5rem); color: var(--gold-hi); line-height: 1; margin: 14px 0 4px; text-shadow: 0 0 30px rgba(240,200,120,.4); }
.sf-end-score-lbl { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; }
.sf-end-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.sf-end-stat { flex: 1; min-width: 90px; padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(0,0,0,.22); }
.sf-end-stat b { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.7rem; color: var(--gold-hi); }
.sf-end-stat span { font-family: 'Cinzel', serif; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sf-end-stat.best b { color: var(--aeg); }
.sf-end-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sf-ghost-btn {
  padding: 14px 24px; min-height: 52px; cursor: pointer; border-radius: 11px;
  font-family: 'Cinzel', serif; font-size: .88rem; background: var(--ink2); color: var(--dim); border: 1px solid var(--line); transition: all .15s;
}
.sf-ghost-btn:hover { color: var(--txt); border-color: var(--gold); }

/* phones */
@media (max-width: 480px) {
  .sf-answers { grid-template-columns: 1fr; gap: 8px; }
  .sf-answer { min-height: 56px; font-size: 1.08rem; }
  .sf-score-val, .sf-clock-num { font-size: 1.7rem; }
  .sf-end-stats { gap: 10px; }
  .sf-src-list { grid-template-columns: 1fr; }
  .sf-sources { max-height: 230px; }
  .sf-match { grid-template-columns: 1fr auto 1fr; gap: 7px; }
  .sf-match-tile { font-size: .9rem; padding: 9px 10px; min-height: 48px; }
  .sf-order-tile { font-size: .98rem; }
}
