:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-2: #111113;
  --panel: #151519;
  --panel-2: #18181d;
  --panel-3: #101012;
  --text: #eee9dd;
  --muted: #a49d91;
  --dim: #77716a;
  --gold: #c7a45a;
  --gold-soft: #e5ca82;
  --gold-dim: rgba(199, 164, 90, 0.28);
  --green: #77a57a;
  --red: #b1675c;
  --line: rgba(199, 164, 90, 0.24);
  --line-soft: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 6px;
  --font: "Cinzel", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 210px),
    radial-gradient(circle at 50% -10%, rgba(199, 164, 90, 0.1), transparent 34%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

::selection {
  color: #0d0d0f;
  background: var(--gold-soft);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page-shell,
.topbar-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.ad-ribbon {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #16161a;
}

.ad-slot {
  display: grid;
  place-items: center;
  color: rgba(238, 233, 221, 0.42);
  text-align: center;
}

.ad-slot-wide {
  width: min(728px, calc(100% - 32px));
  height: 52px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.86rem;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0f11;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-soft);
  font-family: var(--font);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 170ms ease, transform 170ms ease;
}

.brand:hover {
  color: #f6dfa0;
  transform: translateY(-1px);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 202, 130, 0.5);
  border-radius: 6px;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(229, 202, 130, 0.12), rgba(199, 164, 90, 0.035)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.brand-word {
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.beta-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(229, 202, 130, 0.38);
  border-radius: 999px;
  color: var(--text);
  background: rgba(199, 164, 90, 0.09);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 170ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.support-link,
.ghost-button,
.primary-button,
.share-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(229, 202, 130, 0.72);
  border-radius: 4px;
  color: var(--gold-soft);
  text-decoration: none;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, color 170ms ease, background 170ms ease;
}

.support-link {
  position: relative;
  overflow: hidden;
  gap: 9px;
  min-height: 38px;
  padding: 0 17px 0 13px;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(229, 202, 130, 0.12), rgba(199, 164, 90, 0.035)),
    rgba(255, 255, 255, 0.012);
}

.support-link::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 232, 163, 0.22), transparent);
  transition: transform 380ms ease;
}

.support-link:hover,
.ghost-button:hover,
.share-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
  color: #fff4cf;
  background: rgba(199, 164, 90, 0.08);
}

.support-link:hover::before {
  transform: translateX(120%);
}

.support-link span {
  position: relative;
  z-index: 1;
}

.support-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #17120b;
  background: var(--gold-soft);
  box-shadow: 0 8px 18px rgba(199, 164, 90, 0.18);
}

.support-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.primary-button {
  color: #17120b;
  border-color: var(--gold-soft);
  font-weight: 850;
  background: linear-gradient(180deg, #f2d783, #c79f4d);
  box-shadow: 0 10px 24px rgba(199, 164, 90, 0.14);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffe5a0, #cfa852);
}

.primary-button:disabled,
.share-button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.app {
  min-height: 62vh;
}

.home-view {
  width: 100%;
}

.home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 86px 24px 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    #0d0d0f;
}

.hero-copy {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-rule {
  width: 20px;
  height: 3px;
  margin-bottom: 42px;
  border-radius: 999px;
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font);
  letter-spacing: 0;
}

.hero-copy h1 {
  width: min(900px, 100%);
  margin: 0;
  padding: 0 24px 8px;
  border: 1px solid rgba(199, 164, 90, 0.35);
  color: #f4efe5;
  font-size: 4.35rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 210px;
  margin: 16px 0 8px;
  color: var(--gold-soft);
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(199, 164, 90, 0.38);
}

.hero-divider span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
}

.hero-copy p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.countdown-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid rgba(199, 164, 90, 0.35);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}

.countdown-pill span {
  color: var(--gold-soft);
  font-family: var(--font);
}

.countdown-pill strong,
.countdown {
  color: var(--text);
  font-weight: 850;
}

.modes-section {
  padding: 24px 0 20px;
}

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

.daily-record {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(199, 164, 90, 0.18);
}

.daily-record-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
}

.daily-record-heading .eyebrow {
  margin-bottom: 10px;
}

.daily-record-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}

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

.daily-stat {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(199, 164, 90, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(229, 202, 130, 0.055), transparent 52%),
    linear-gradient(180deg, var(--panel), #121216);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.daily-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-stat strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 2rem;
  line-height: 1;
}

.daily-stat p {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mode-card {
  position: relative;
  min-height: 176px;
  padding: 27px;
  border: 1px solid rgba(199, 164, 90, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, var(--panel), #131317);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(229, 202, 130, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 190ms ease;
}

.mode-card:not(:disabled):hover {
  transform: translateY(-4px);
  border-color: rgba(229, 202, 130, 0.62);
  background: linear-gradient(180deg, #19191e, #121216);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.mode-card:not(:disabled):hover::after {
  opacity: 1;
}

.mode-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  border-style: dashed;
}

.mode-card-top,
.mode-card h3,
.mode-card p {
  position: relative;
  z-index: 1;
}

.mode-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mode-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 164, 90, 0.38);
  border-radius: 4px;
  color: var(--gold-soft);
  background: rgba(199, 164, 90, 0.06);
}

.mode-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mode-card h3 {
  margin: 17px 0 12px;
  color: var(--text);
  font-size: 1.4rem;
  text-transform: uppercase;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-pill,
.tag,
.guess-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill.won {
  color: #a8cfa7;
  border-color: rgba(119, 165, 122, 0.48);
  background: rgba(119, 165, 122, 0.12);
}

.status-pill.failed {
  color: #d78e82;
  border-color: rgba(177, 103, 92, 0.52);
  background: rgba(177, 103, 92, 0.12);
}

.how-to-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 34px;
  padding: 72px max(24px, calc((100vw - 1080px) / 2)) 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 164, 90, 0.08), transparent 26%),
    #0d0d0f;
  text-align: center;
}

.how-to-section h2 {
  margin: 0 0 42px;
  color: var(--text);
  font-size: 1.85rem;
  text-transform: uppercase;
}

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

.how-to-card {
  min-height: 154px;
  padding: 24px;
  border: 1px solid rgba(199, 164, 90, 0.2);
  border-radius: var(--radius);
  text-align: left;
  background: linear-gradient(180deg, var(--panel), #121216);
}

.step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
}

.how-to-card h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 1rem;
}

.how-to-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.support-view {
  padding: 54px 0 78px;
}

.support-hero {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.support-back {
  margin: 0 auto 34px;
}

.support-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 3.3rem;
  line-height: 1;
  text-transform: uppercase;
}

.support-hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.support-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid rgba(199, 164, 90, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(229, 202, 130, 0.045), transparent 28%),
    linear-gradient(180deg, var(--panel), #121216);
  box-shadow: var(--shadow);
}

.support-card-primary {
  border-color: rgba(229, 202, 130, 0.42);
}

.support-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(229, 202, 130, 0.42);
  border-radius: 6px;
  color: var(--gold-soft);
  background: rgba(199, 164, 90, 0.07);
}

.support-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.support-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-cta {
  width: 100%;
  margin-top: auto;
}

.support-card .status-pill {
  margin-top: auto;
}

.support-note {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.support-note h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.support-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.game-view {
  padding: 34px 0 46px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.game-panel,
.side-panel {
  border: 1px solid rgba(199, 164, 90, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #111115);
  box-shadow: var(--shadow);
}

.game-panel {
  padding: 32px;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.game-title h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 3.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.game-title .eyebrow {
  margin: 0;
}

.mythology-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(199, 164, 90, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(199, 164, 90, 0.09), transparent 68%),
    rgba(255, 255, 255, 0.026);
}

.mythology-panel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mythology-panel strong {
  color: var(--gold-soft);
  text-align: right;
}

.guess-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 26px 0 12px;
}

.guess-input {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.guess-input:focus {
  border-color: rgba(229, 202, 130, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(199, 164, 90, 0.12);
}

.game-message {
  min-height: 24px;
  margin: 0;
  color: var(--gold-soft);
}

.attempt-line {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.attempt-line strong {
  color: var(--text);
}

.attempt-line span {
  color: var(--dim);
}

.scroll-area {
  position: relative;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(140, 100, 44, 0.42);
  border-radius: var(--radius);
  color: #25190d;
  background:
    linear-gradient(90deg, rgba(104, 70, 33, 0.16), transparent 12%, transparent 88%, rgba(104, 70, 33, 0.16)),
    linear-gradient(180deg, #f3e4be, #d8bd80);
  box-shadow: inset 0 0 30px rgba(88, 54, 18, 0.22);
}

.scroll-area::before,
.scroll-area::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5429, #d7b96b, #7c5429);
}

.scroll-area::before {
  top: -4px;
}

.scroll-area::after {
  bottom: -4px;
}

.scroll-area h2 {
  margin: 0 0 16px;
  color: #352311;
  font-size: 1.28rem;
  text-transform: uppercase;
}

.hint-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hint {
  overflow: hidden;
  border: 1px solid rgba(90, 60, 26, 0.2);
  border-radius: 4px;
  background: rgba(255, 250, 231, 0.36);
  opacity: 0.72;
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.hint-inner {
  max-height: 43px;
  padding: 12px 14px;
  transform-origin: top;
  transition: max-height 270ms ease, background 270ms ease, transform 270ms ease;
}

.hint.is-revealed {
  opacity: 1;
  border-color: rgba(90, 60, 26, 0.34);
}

.hint.is-revealed .hint-inner {
  max-height: 170px;
  background: rgba(255, 249, 225, 0.84);
  animation: unfurl 260ms ease both;
}

.hint strong {
  display: block;
  margin-bottom: 6px;
  color: #70451d;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.hint p {
  margin: 0;
  color: #2d2115;
  line-height: 1.5;
}

.hint:not(.is-revealed) p {
  color: rgba(45, 33, 21, 0.45);
  font-style: italic;
}

.guess-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guess-pill {
  border-radius: 4px;
}

.guess-pill.hit {
  color: #b9d7b6;
  border-color: rgba(119, 165, 122, 0.52);
}

.guess-pill.miss {
  color: #e1a095;
  border-color: rgba(177, 103, 92, 0.48);
}

.result-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(199, 164, 90, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.result-box h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.answer-name {
  color: var(--gold-soft);
}

.result-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.side-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.side-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.countdown {
  display: block;
  margin-top: 12px;
  font-family: var(--font);
  font-size: 2rem;
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.stat {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.stat span {
  display: block;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.42rem;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.side-panel .ad-slot {
  min-height: 76px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.8rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 233, 221, 0.52);
  font-size: 0.84rem;
}

.error-view {
  max-width: 720px;
  margin: 36px 0;
  padding: 28px;
  border: 1px solid rgba(199, 164, 90, 0.28);
  border-radius: var(--radius);
  background: var(--panel);
}

@keyframes unfurl {
  from {
    opacity: 0.72;
    transform: scaleY(0.94);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .home-hero {
    padding-top: 68px;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .mode-grid,
  .how-to-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-record {
    grid-template-columns: 1fr;
  }

  .daily-record-heading {
    min-height: auto;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .page-shell,
  .topbar-inner {
    width: min(100% - 28px, 1080px);
  }

  .ad-ribbon {
    min-height: 58px;
  }

  .ad-slot-wide {
    height: 42px;
  }

  .topbar {
    min-height: 68px;
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .nav-actions {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
  }

  .brand-word {
    font-size: 0.98rem;
  }

  .beta-badge {
    padding: 0 7px;
    font-size: 0.56rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .support-link {
    min-height: 34px;
    padding: 0 12px 0 10px;
  }

  .support-icon {
    width: 20px;
    height: 20px;
  }

  .home-hero {
    padding: 50px 14px 42px;
  }

  .hero-rule {
    margin-bottom: 30px;
  }

  .hero-copy h1 {
    padding: 7px 12px 10px;
    font-size: 2.22rem;
  }

  .hero-copy p {
    font-size: 0.96rem;
  }

  .countdown-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0 12px;
  }

  .modes-section {
    padding-top: 18px;
  }

  .mode-grid,
  .daily-stat-grid,
  .how-to-grid,
  .support-grid,
  .guess-form {
    grid-template-columns: 1fr;
  }

  .support-view {
    padding: 42px 0 62px;
  }

  .support-hero h1 {
    font-size: 2.34rem;
  }

  .mode-card {
    min-height: 166px;
    padding: 24px;
  }

  .how-to-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .game-panel {
    padding: 22px;
  }

  .game-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .mythology-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mythology-panel strong {
    text-align: left;
  }

  .game-title h1 {
    font-size: 2.45rem;
  }

  .primary-button,
  .ghost-button,
  .share-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .brand-word {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .beta-badge {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-link,
  .support-link {
    font-size: 0.86rem;
  }

  .nav-link {
    display: none;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }
}
