/* ==========================================================================
   EraRing / I Know Your Age — Sea-Salt Paper + Cobalt & Coral Ticket Stylesheet
   Rule A: ALL base desktop/component styles MUST appear BEFORE @media queries.
   ========================================================================== */

:root {
  --bg-paper: #eef3f7;
  --bg-dark: #0f1b2e;
  --card-white: #ffffff;
  --card-tint: #f5f8fc;
  --ink: #132238;
  --ink-muted: #4b607a;
  --ink-soft: #7588a1;
  --coral: #ff5a36;
  --coral-deep: #e24320;
  --cobalt: #2457d6;
  --cobalt-deep: #1b43ab;
  --cobalt-soft: #e6eeff;
  --mint-mark: #99f6e4;
  --amber-soft: #fff6d6;
  --border: #132238;
  --radius-card: 22px;
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Apple SD Gothic Neo', sans-serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft JhengHei', 'Apple SD Gothic Neo', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: radial-gradient(rgba(19, 34, 56, 0.085) 1px, transparent 1px);
  background-size: 22px 22px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.is-reveal-dark {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 22%, rgba(36, 87, 214, 0.28), transparent 62%);
  background-size: 100% 100%;
  color: #f4f7fb;
}

a {
  color: inherit;
}

/* Main Shell */
.site-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px 52px;
}

.game-stage {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* Floating Archival Pill Header */
.pill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card-white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 8px 10px;
  box-shadow: 0 4px 0 var(--border);
  margin-bottom: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-tint);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.pill-btn:hover {
  background: var(--cobalt);
  color: #ffffff;
}

.header-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.header-logo-svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.header-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--card-white);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.icon-btn:hover {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

/* Crisp Mint-Aqua Marker Highlight */
.marker-highlight {
  display: inline;
  background: linear-gradient(180deg, transparent 48%, var(--mint-mark) 48%, var(--mint-mark) 94%, transparent 94%);
  padding: 0 7px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Start Screen */
.stage-start {
  text-align: center;
  padding: 4px 6px 18px;
}

.challenge-pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cobalt);
  border: 2px solid var(--border);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 3px 0 var(--border);
}

.lang-suggest-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 6px 10px 6px 14px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--border);
}

.lang-suggest-cta {
  padding: 4px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--cobalt);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-suggest-cta:hover {
  background: var(--cobalt-deep);
}

.lang-suggest-dismiss {
  border: none;
  background: none;
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-strata-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(19, 34, 56, 0.14));
}

.start-title {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 6.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.start-tagline {
  margin: 0 auto 6px;
  max-width: 480px;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
}

.start-rules {
  margin: 0 auto 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mode-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mode-chip {
  padding: 7px 15px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.mode-chip:hover {
  background: var(--cobalt-soft);
}

.mode-chip.active {
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 2px 0 var(--border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  min-height: 54px;
  padding: 12px 24px;
  border: 2.5px solid var(--border);
  border-radius: 16px;
  background: var(--coral);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--border);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border);
}

.honesty-tip {
  margin: 16px auto 12px;
  max-width: 440px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.start-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.just-for-fun {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Question HUD & Card */
.hud-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hud-row.hud-wobble {
  animation: hudShake 0.35s ease;
}

@keyframes hudShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.q-counter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--cobalt);
  white-space: nowrap;
}

.conf-label {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.conf-track {
  flex: 1;
  min-width: 60px;
  height: 12px;
  background: var(--card-white);
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.conf-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.32s ease;
}

.conf-fill.low { background: #2457d6; }
.conf-fill.mid { background: #f59e0b; }
.conf-fill.high { background: #ff5a36; }

.conf-pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.96rem;
  min-width: 42px;
  text-align: end;
}

.conf-pct.high { color: var(--coral); }

/* Archival Ticket Specimen Card */
.taped-card {
  position: relative;
  margin-top: 12px;
  background: var(--card-white);
  color: var(--ink);
  border: 2.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px 26px;
  box-shadow: 0 6px 0 rgba(19, 34, 56, 0.14);
}

.masking-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--cobalt);
  border: 2px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--border);
  pointer-events: none;
}

.masking-tape::before,
.masking-tape::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
}

.masking-tape::before {
  left: 12px;
}

.masking-tape::after {
  right: 12px;
}

.question-card {
  text-align: center;
  margin-bottom: 16px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--card-tint);
  border: 1.5px solid #cbd8e8;
  border-radius: 999px;
  padding: 3px 12px 3px 4px;
  margin-bottom: 14px;
}

.cat-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink);
  border: 1.8px solid var(--border);
  background: #dbeafe;
}

.cat-tech .cat-dot { background: #ccfbf1; }
.cat-media .cat-dot { background: #ffe4e6; }
.cat-fads .cat-dot { background: #fef3c7; }
.cat-slang .cat-dot { background: #ede9fe; }
.cat-milestone .cat-dot { background: #ffedd5; }
.cat-quiz .cat-dot { background: #99f6e4; }

.q-item-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.36rem, 3.8vw, 1.84rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.q-item-title.q-prompt-question {
  font-size: clamp(1.14rem, 3.2vw, 1.44rem);
}

.q-item-sub {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.q-prompt-wrap {
  margin-top: 6px;
}

.q-prompt {
  font-weight: 800;
  font-size: 1.04rem;
}

/* Choices Stack */
.choices-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border);
  transition: transform 0.08s ease, background-color 0.1s ease, border-color 0.1s ease;
}

.choice-btn:hover {
  background: var(--cobalt-soft);
}

.choice-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}

.choice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dots-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dots-group .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.8px solid var(--cobalt);
  background: transparent;
}

.dots-group .dot.filled {
  background: var(--cobalt);
}

.choice-label {
  overflow-wrap: break-word;
}

.choice-key {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--card-tint);
  border: 1px solid #d5e0ec;
  border-radius: 6px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.question-foot-tip {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Reveal & Calibrate Dark Stage */
.stage-reveal {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
}

.reveal-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 12px;
}

.reveal-lead {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #93a8c4;
}

.reveal-sub {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 800;
  color: #f4f7fb;
}

.reveal-age-wrap {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-bottom: 24px;
}

.reveal-age-wrap.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-age {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 9vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f4f7fb;
}

.reveal-underline {
  height: 6px;
  margin: 10px auto 0;
  width: 86%;
  border-radius: 999px;
  background: var(--coral);
}

.reveal-ask {
  margin: 0 0 16px;
  font-size: 1.14rem;
  font-weight: 800;
}

.reveal-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 380px;
}

.reveal-yes {
  flex: 1;
}

.btn-dark-outline {
  flex: 1;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 2.5px solid #e2eaf4;
  background: transparent;
  color: #f4f7fb;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}

.btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.reveal-skip-btn {
  margin-top: 24px;
  background: none;
  border: none;
  color: #93a8c4;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.reveal-watermark {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(244, 247, 251, 0.36);
  user-select: none;
}

.calibrate-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.cal-step {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #d5e0ec;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cal-step:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cal-input {
  width: 88px;
  height: 54px;
  border-radius: 14px;
  border: 2.5px solid var(--coral);
  background: #0a1322;
  color: #f4f7fb;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
}

/* Verdict Ticket Card */
.verdict-card {
  text-align: center;
}

.verdict-kicker {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.verdict-you {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
}

.verdict-age {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stamp {
  display: inline-block;
  margin: 4px auto 10px;
  padding: 6px 22px;
  border: 3.5px solid var(--coral);
  border-radius: 10px;
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.04em;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(255, 90, 54, 0.18);
}

.stamp.close {
  border-color: var(--cobalt);
  color: var(--cobalt);
  box-shadow: inset 0 0 0 2px rgba(36, 87, 214, 0.18);
}

.stamp.miss {
  border-color: #64748b;
  color: #475569;
  box-shadow: inset 0 0 0 2px rgba(100, 116, 139, 0.16);
}

.verdict-sub {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.archetype-badge {
  display: inline-block;
  margin: 4px auto 4px;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint-mark);
  font-size: 0.82rem;
  font-weight: 800;
  max-width: 100%;
}

.vs-friend-pill {
  display: inline-block;
  margin: 6px auto 4px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  max-width: 100%;
}

.verdict-quick-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px auto 2px;
  max-width: 420px;
}

.verdict-quick-actions .btn-quick-share {
  flex: 1.3;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 0.94rem;
  max-width: none;
}

.verdict-quick-actions .btn-quick-challenge {
  flex: 1;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 0.86rem;
}

.dashed-rule {
  border: none;
  border-top: 2px dashed #c9d6e5;
  margin: 20px 0;
}

.strata-block,
.clincher-block {
  text-align: start;
}

.section-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
}

.strata-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.strata-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  border-radius: 10px;
  overflow: hidden;
}

.strata-row.not-dug {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(19, 34, 56, 0.05) 8px,
    rgba(19, 34, 56, 0.05) 14px
  );
}

.strata-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 10px;
  z-index: 0;
}

.strata-decade {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--ink);
  white-space: nowrap;
}

.strata-empty {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.strata-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.strata-tag {
  background: #ffffff;
  border: 1.5px solid rgba(19, 34, 56, 0.16);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.richest-line {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.clincher-main {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.clincher-arrow {
  color: var(--coral);
  font-weight: 900;
}

[dir='rtl'] .strata-bar-fill {
  inset: 0 0 0 auto;
}

[dir='rtl'] .clincher-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

.clincher-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.verdict-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-share {
  max-width: 100%;
}

.verdict-secondary-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-outline {
  flex: 1;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.btn-outline:hover {
  background: var(--cobalt-soft);
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.answers-list {
  width: 100%;
  margin-top: 8px;
  text-align: start;
  border-top: 1.5px solid #d7e2ee;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  padding: 7px 10px;
  background: var(--card-tint);
  border-radius: 8px;
}

.answer-q {
  font-weight: 700;
  color: var(--ink);
}

.answer-r {
  font-weight: 800;
  color: var(--cobalt);
  flex-shrink: 0;
}

.cross-modes {
  margin-top: 20px;
  text-align: center;
}

.cross-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.cross-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cross-card {
  display: block;
  padding: 12px 14px;
  background: var(--card-white);
  border: 2px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--border);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.cross-card:hover {
  background: var(--cobalt);
  color: #ffffff;
}

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 27, 46, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-white);
  color: var(--ink);
  border: 2.5px solid var(--border);
  border-radius: 22px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(19, 34, 56, 0.2);
}

.modal-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 800;
}

.modal-sub {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.howto-list {
  text-align: start;
  padding-inline-start: 20px;
  margin: 0 0 18px;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cta {
  max-width: 100%;
}

.lang-dialog {
  max-width: 460px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: var(--cobalt-soft);
}

.lang-option > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-option.active {
  background: var(--cobalt);
  color: #ffffff;
}

.lang-option.active .lang-code {
  color: rgba(255, 255, 255, 0.85);
}

.lang-code {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.privacy-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-tint);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.privacy-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--cobalt);
  cursor: pointer;
}

.share-preview-wrap {
  margin: 8px 0 12px;
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-paper);
}

.share-preview-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-touch-callout: default;
  pointer-events: auto;
}

.share-longpress-tip {
  margin: -6px 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cobalt-soft);
  border: 1.5px solid #bcd0fb;
  border-radius: 10px;
  padding: 7px 10px;
}

.btn-native-share {
  max-width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.share-social-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}

.btn-x-post {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: #132238;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.btn-wa-share {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.share-note {
  margin: 6px 0 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.share-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.share-btn-grid .btn-outline {
  min-width: 0;
  font-size: 0.84rem;
  padding: 8px 10px;
}

.toast-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ink);
  color: var(--mint-mark);
  border: 2px solid var(--cobalt);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(15, 27, 46, 0.3);
}

/* Below-the-fold Editorial Content & Articles */
.seo-section {
  margin-top: 40px;
  background: var(--card-white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 4px 0 rgba(19, 34, 56, 0.1);
}

.seo-section h1,
.seo-section h2,
.seo-section h3 {
  font-family: var(--font-display);
  margin-top: 0;
  line-height: 1.28;
}

.seo-section h2 {
  font-size: 1.32rem;
  margin-top: 24px;
}

.seo-section h2:first-child {
  margin-top: 0;
}

.seo-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px dashed #c9d6e5;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--cobalt);
  text-decoration: none;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}

.seo-links a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.seo-links a:hover {
  border-color: var(--border);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.edition-card {
  display: block;
  text-align: center;
  padding: 11px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-tint);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.edition-card:hover {
  background: var(--cobalt);
  color: #ffffff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid #d5e0ec;
  border-radius: 12px;
  padding: 13px 15px;
  background: var(--card-tint);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Site Footer */
.site-footer {
  margin-top: 28px;
  padding: 18px 16px 10px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

body.is-reveal-dark .site-footer {
  color: #93a8c4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.footer-notice {
  margin: 0 auto;
  max-width: 600px;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Media Queries (Strictly AFTER all base rules)
   ========================================================================== */

@media (max-width: 600px) {
  .site-shell {
    padding: 10px 12px 36px;
  }

  .pill-header {
    padding: 6px 8px;
    margin-bottom: 18px;
  }

  .header-title {
    font-size: 0.88rem;
  }

  .pill-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .icon-btn {
    width: 31px;
    height: 31px;
  }

  .taped-card {
    padding: 26px 14px 20px;
  }

  .verdict-secondary-row,
  .cross-links {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .edition-card {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .strata-tag {
    max-width: 120px;
    font-size: 0.7rem;
  }

  .seo-section {
    padding: 18px 16px;
  }
}
