
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;background:#0b1742;overflow-x:hidden}
body[data-theme="overground"],body{background:linear-gradient(180deg,#60cfff,#1d7ee8 48%,#1559bc)}body[data-theme="arcane"]{background:linear-gradient(135deg,#12051f,#26104a)}body[data-theme="luxury"]{background:linear-gradient(135deg,#070508,#1d1430)}
.bg{position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 15% 12%,rgba(255,255,255,.9) 0 22px,transparent 23px),radial-gradient(circle at 22% 11%,rgba(255,255,255,.86) 0 30px,transparent 31px),linear-gradient(180deg,#62cfff,#2189eb 52%,#1559bc)}
.bg:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 18% 100%,#66e85e 0 130px,transparent 131px),radial-gradient(ellipse at 72% 100%,#66e85e 0 160px,transparent 161px),linear-gradient(to top,#155b1d 0 92px,#58dd53 92px 118px,transparent 119px)}
.wrap{width:min(1120px,calc(100% - 24px));margin:0 auto;padding:28px 0 120px}.hero,.panel,.card{border:2px solid rgba(255,228,92,.82);border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(7,31,82,.76));box-shadow:0 8px 0 rgba(86,42,13,.45),0 0 0 1px rgba(255,255,255,.13) inset,0 0 32px rgba(255,228,92,.20);padding:22px;backdrop-filter:blur(8px)}
.hero{text-align:center}.eyebrow{color:#ffe45c;font-weight:900;text-transform:uppercase;letter-spacing:.14em;font-size:13px;margin:0 0 8px}h1{font-size:clamp(38px,7vw,76px);line-height:.95;margin:0;text-shadow:5px 5px 0 rgba(0,0,0,.35)}h2{font-size:clamp(28px,4vw,46px);margin:0 0 12px}.muted{color:rgba(255,255,255,.82);line-height:1.4}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}label{display:block;color:#38dfff;font-weight:900;text-transform:uppercase;font-size:11px;margin:0 0 6px}input,select,textarea{width:100%;padding:12px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:#07102a;color:#fff;font:inherit}button,.btn{border:0;border-radius:14px;padding:12px 16px;min-height:46px;background:linear-gradient(180deg,#fff7b8,#ffe45c 48%,#ff9c3d);color:#241100;font-weight:950;text-transform:uppercase;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 0 rgba(0,0,0,.38);cursor:pointer}button.green,.btn.green{background:linear-gradient(180deg,#d4ffd0,#58dd53 55%,#1f8a25);color:#062707}button.red{background:linear-gradient(180deg,#ff9fb3,#ff4d6d);color:#24040b}.button-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}.score{font-family:Consolas,monospace;color:#ffe45c;font-size:clamp(26px,5vw,48px);font-weight:900;text-shadow:0 0 18px rgba(255,228,92,.5)}.game-area{margin-top:18px}.answer,.big-input{font-size:22px;text-align:center}.letters,.hive,.choices{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:16px 0}.tile{min-width:48px;height:48px;border-radius:12px;background:linear-gradient(180deg,#fff0a6,#f2a13d);display:grid;place-items:center;color:#291300;font-weight:950;box-shadow:0 5px 0 rgba(0,0,0,.38)}.tile.center{background:linear-gradient(180deg,#b7ffbc,#58dd53)}.word-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pill{padding:8px 10px;border-radius:999px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.14)}.boss{font-size:64px}.health{height:20px;border-radius:999px;background:rgba(0,0,0,.3);overflow:hidden;border:1px solid rgba(255,255,255,.2)}.health span{display:block;height:100%;background:linear-gradient(90deg,#58dd53,#ffe45c,#ff4d6d)}.leader-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.leader-list li{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:14px;background:rgba(0,0,0,.22)}.admin-table{display:grid;gap:8px;max-height:420px;overflow:auto}.admin-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center;padding:8px;background:rgba(0,0,0,.2);border-radius:12px}
@media(max-width:760px){.wrap{width:calc(100% - 16px);padding-top:16px}.hero,.panel,.card{padding:14px;border-radius:22px}.grid,.controls{grid-template-columns:1fr}.tile{min-width:42px;height:42px}.button-row{display:grid;grid-template-columns:1fr}.boss{font-size:48px}.admin-row{grid-template-columns:1fr}.score{font-size:34px}}


/* v3 gameplay polish */
.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.feedback {
  min-height: 26px;
  font-weight: 900;
  color: #ffe45c;
  text-align: center;
}

.compact-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.hud-tile {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
}

.hud-tile span {
  display: block;
  color: #38dfff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hud-tile strong {
  font-size: 24px;
  color: #ffe45c;
}

.word-target {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.word-target span {
  min-width: 38px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.16);
  color: #ffe45c;
  font-weight: 950;
  font-size: 22px;
}

.word-target span.hidden-letter {
  color: rgba(255,255,255,.28);
}

.small-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.small-actions button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
}

.timer-bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.16);
  margin: 12px 0;
}

.timer-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#58dd53,#ffe45c,#ff4d6d);
  transition: width .25s linear;
}

@media(max-width:760px) {
  .form-row,
  .compact-hud {
    grid-template-columns: 1fr;
  }

  .hud-tile {
    padding: 9px;
  }

  .hud-tile strong {
    font-size: 21px;
  }
}

/* v14 global dark luxe game skin */
body, body[data-theme], body[data-theme="overground"], body[data-theme="arcane"], body[data-theme="luxury"] {
  background: radial-gradient(circle at 50% -10%, rgba(201,146,46,.16), transparent 32%), linear-gradient(135deg, #030303 0%, #0b0b0b 42%, #181008 76%, #050505 100%) !important;
  color: #f8f1df !important;
}
.bg {
  background: radial-gradient(circle at 20% 0%, rgba(248,223,144,.10), transparent 26%), radial-gradient(circle at 82% 14%, rgba(183,121,31,.12), transparent 28%), linear-gradient(135deg, #030303 0%, #0b0b0b 42%, #181008 76%, #050505 100%) !important;
}
.bg::before,.bg:before {
  background: linear-gradient(90deg, rgba(248,223,144,.045) 1px, transparent 1px), linear-gradient(rgba(248,223,144,.045) 1px, transparent 1px) !important;
  background-size: 54px 54px !important;
}
.hero,.panel,.card,.modal-card {
  border-color: rgba(248,223,144,.22) !important;
  background: radial-gradient(circle at 50% 0%, rgba(248,223,144,.08), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.020)) !important;
  box-shadow: 0 26px 76px rgba(0,0,0,.44), 0 0 0 1px rgba(255,255,255,.025) inset !important;
  color: #f8f1df !important;
}
.eyebrow,.feedback,.score,.hud-tile strong,.ladder-label,.centre-callout,.instruction-card .tip { color: #f8df90 !important; }
h1,h2 { font-family: Georgia, "Times New Roman", serif !important; letter-spacing: -.04em; }
.muted,.hero p,.panel p,.card p { color: rgba(248,241,223,.72) !important; }
button,.btn { color:#090909 !important; background:linear-gradient(135deg,#fff8d6,#d6a84d 48%,#8f5d1c) !important; box-shadow:0 7px 0 rgba(0,0,0,.45),0 0 22px rgba(183,121,31,.18) !important; }
button.green,.btn.green { background:linear-gradient(135deg,#fff8d6,#d6a84d 48%,#8f5d1c) !important; color:#090909 !important; }
button.red,.btn.red { background:linear-gradient(135deg,#4b1c1c,#a34132 48%,#d6a84d) !important; color:#fff8d6 !important; }
input,select,textarea,.big-input,.ladder-input { background:rgba(0,0,0,.45) !important; color:#f8f1df !important; border-color:rgba(248,223,144,.24) !important; }
.tile,.game-icon,.show-icon { background:linear-gradient(135deg,#fff8d6,#b7791f) !important; color:#080808 !important; }
.hud-tile,.pill,.word-list .pill { background:rgba(255,255,255,.035) !important; border:1px solid rgba(248,223,144,.14) !important; color:#f8f1df !important; }
.health { border-color:rgba(248,223,144,.20) !important; }
.health span,.timer-bar span { background:linear-gradient(90deg,#8f5d1c,#d6a84d,#fff8d6) !important; }
.ladder-word.start,.ladder-word.target,.ladder-word.fixed { border-color:rgba(248,223,144,.38) !important; color:#f8df90 !important; }
.ladder-input.active { border-color:rgba(248,223,144,.85) !important; box-shadow:0 0 18px rgba(248,223,144,.24) !important; }

/* v15 premium visual polish */
.wrap {
  max-width: 1180px !important;
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px !important;
}

.hero::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,248,214,.12), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(214,168,77,.10), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,0));
  z-index: 0;
}

.hero > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.hero,
.panel,
.card {
  border: 1px solid rgba(248,223,144,.34) !important;
  box-shadow:
    0 22px 60px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 42px rgba(183,121,31,.10) !important;
}

h1 {
  background: linear-gradient(135deg, #fff8d6, #f8df90 32%, #b7791f 70%, #fff2b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}

h2 {
  color: #fff8d6 !important;
  text-shadow: 0 0 24px rgba(248,223,144,.14);
}

.compact-hud {
  gap: 14px !important;
}

.hud-tile {
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.24) inset;
}

.hud-tile span {
  color: rgba(248,223,144,.72) !important;
}

.hud-tile strong {
  font-family: Georgia, "Times New Roman", serif;
}

.big-input,
.ladder-input {
  border-radius: 18px !important;
  min-height: 56px !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.28) inset !important;
}

button,
.btn {
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.word-list {
  justify-content: center;
}

.pill {
  border-radius: 999px !important;
}

.ladder-board {
  max-width: 560px !important;
  gap: 12px !important;
}

.ladder-word,
.ladder-input {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.32)) !important;
  border: 1px solid rgba(248,223,144,.20) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.025) inset !important;
}

.ladder-word.start,
.ladder-word.target {
  background:
    linear-gradient(135deg, rgba(248,223,144,.16), rgba(183,121,31,.10)) !important;
}

.letter-check {
  border-color: rgba(248,223,144,.20) !important;
  background: rgba(0,0,0,.30) !important;
}

@media(max-width:760px) {
  .hero,
  .panel {
    border-radius: 24px !important;
  }
}

/* Trivia mode */
.trivia-controls {
  grid-template-columns: 1fr 1fr !important;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quiz-card {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(248,223,144,.20);
  background:
    radial-gradient(circle at 20% 0%, rgba(248,223,144,.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.24));
  box-shadow: 0 16px 32px rgba(0,0,0,.30);
}

.quiz-card.done {
  border-color: rgba(248,223,144,.48);
  background:
    radial-gradient(circle at 20% 0%, rgba(248,223,144,.16), transparent 32%),
    linear-gradient(180deg, rgba(143,93,28,.22), rgba(0,0,0,.28));
}

.quiz-card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.quiz-topic,
.quiz-status,
.difficulty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(248,223,144,.20);
  background: rgba(0,0,0,.32);
  color: rgba(248,223,144,.84);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.quiz-status {
  color: #090909;
  background: linear-gradient(135deg,#fff8d6,#d6a84d 58%,#8f5d1c);
}

.quiz-card h3 {
  margin: 0;
  color: #fff8d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.quiz-card p {
  margin: 9px 0;
}

.personal-score strong {
  color: #f8df90;
}

.mini-leader,
.source-line {
  color: rgba(248,241,223,.62);
  font-size: 13px;
}

.progress-bar {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media(max-width:980px) {
  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:760px) {
  .trivia-controls,
  .quiz-grid {
    grid-template-columns: 1fr !important;
  }

  .quiz-card {
    border-radius: 20px;
  }

  .quiz-card h3 {
    font-size: 22px;
  }
}
/* v17 trivia progression, accounts and answer pattern */
.account-strip{max-width:820px;margin:16px auto 0;padding:12px 14px;border-radius:18px;border:1px solid rgba(248,223,144,.18);background:rgba(255,255,255,.045);color:rgba(248,241,223,.78);line-height:1.4}.account-strip a{color:#f8df90;font-weight:900}.account-strip.guest{border-color:rgba(255,190,120,.28);background:rgba(255,180,80,.07)}.featured-quiz{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;margin:18px 0}.stage-section{margin-bottom:28px}.stage-section:last-child{margin-bottom:0}.stage-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:8px 0 14px}.stage-heading h2{margin-bottom:0}.question-labels{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:12px 0}.answer-pattern{margin:18px auto 12px;text-align:center}.answer-blocks{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:10px}.answer-word{display:inline-flex;gap:5px;padding:9px 12px;border-radius:18px;background:rgba(0,0,0,.28);border:1px solid rgba(248,223,144,.18);box-shadow:0 12px 26px rgba(0,0,0,.22) inset}.blank,.punct{display:inline-grid;place-items:center;min-width:18px;height:28px;font-size:24px;font-weight:950;color:rgba(248,241,223,.46);font-family:Georgia,"Times New Roman",serif}.blank.shown{color:#f8df90;text-shadow:0 0 18px rgba(248,223,144,.22)}.word-gap{width:14px}.answer-reveal{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center;text-align:left;max-width:680px;margin:18px auto;padding:16px;border-radius:22px;border:1px solid rgba(248,223,144,.16);background:rgba(0,0,0,.22)}.answer-reveal span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:rgba(248,223,144,.72);font-weight:950}.answer-reveal strong{font-size:20px;color:#fff8d6}.review-list{display:grid;gap:14px}.review-card{border:1px solid rgba(248,223,144,.16);border-radius:24px;padding:18px;background:rgba(255,255,255,.035)}.review-card.ok{border-color:rgba(248,223,144,.36)}.review-card.bad{border-color:rgba(190,80,65,.34)}.review-card h2{font-size:clamp(22px,3vw,34px)}.quiz-card .button-row{justify-content:flex-start}.quiz-card.done .quiz-status::before{content:'✓';margin-right:5px}@media(max-width:760px){.featured-quiz{grid-template-columns:1fr}.stage-heading{display:block}.answer-reveal{grid-template-columns:1fr;text-align:center}.blank,.punct{min-width:16px;font-size:21px}.answer-word{gap:4px;padding:8px 10px}.quiz-card .button-row{justify-content:center}}
/* v19 trivia admin builder */
.builder-grid .card{padding:16px;border-radius:22px;border:1px solid rgba(248,223,144,.16);background:rgba(255,255,255,.035)}
.question-list .admin-row{grid-template-columns:minmax(160px,.8fr) 1.6fr auto}
.notice.error{border-color:rgba(255,100,100,.35);background:rgba(120,20,20,.22)}
.card h3{margin:0 0 12px;color:#fff8d6;font-family:Georgia,"Times New Roman",serif;font-size:24px}
#questionForm{margin-top:18px}
@media(max-width:760px){.question-list .admin-row{grid-template-columns:1fr}.builder-grid{grid-template-columns:1fr!important}}
