/* ==========================================================================
   ListeningAgeTest — iknowyourage Tactile Stationery Stylesheet
   ALL base styles strictly precede @media (max-width: 700px).
   ========================================================================== */

:root {
  --bg-cream: #eee7da;
  --bg-dark: #282624;
  --card-white: #ffffff;
  --ink: #22201e;
  --ink-muted: #5d574f;
  --ink-soft: #7e776d;
  --yellow: #ffd84d;
  --yellow-deep: #f4c328;
  --red-stamp: #d94336;
  --tape: rgba(232, 221, 187, 0.92);
  --border: #22201e;
  --radius-card: 20px;
  --font-display: 'Dela Gothic One', 'M PLUS Rounded 1c', system-ui, -apple-system, 'PingFang SC', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Thai', sans-serif;
  --font-ui: 'M PLUS Rounded 1c', system-ui, -apple-system, 'PingFang SC', 'Microsoft JhengHei', 'Apple SD Gothic Neo', 'Noto Sans Thai', sans-serif;
}

:root:lang(zh),
:root:lang(zh-CN),
:root:lang(zh-Hans),
:root:lang(zh-Hant),
:root:lang(zh-TW),
:root:lang(ko),
:root:lang(th) {
  --font-display: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'PingFang TC', 'Microsoft JhengHei', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
}

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

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

body {
  background-image: radial-gradient(rgba(34, 32, 30, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.is-reveal-dark {
  background-color: #0b0d14;
  background-image:
    radial-gradient(circle at 50% 24%, var(--reveal-glow, rgba(192, 132, 252, 0.24)), transparent 58%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  color: #f8f5ef;
}

body.is-ad-hidden .ad-slot {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

a {
  color: inherit;
}

/* Collapsible ad slots */
.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  min-height: 0;
  overflow-x: clip;
  text-align: center;
}

.ad-slot:empty,
.ad-slot[data-active='false'] {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Outer Shell & Stage */
.site-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

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

/* Floating 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: 999px;
  padding: 7px 10px;
  box-shadow: 0 3px 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: 999px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pill-btn:hover {
  background: #f8f4ec;
}

.header-title {
  font-weight: 900;
  font-size: 0.96rem;
  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: 10px;
  background: var(--card-white);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  background: var(--yellow);
}

/* Yellow Highlighter Stroke */
.marker-highlight {
  display: inline;
  background: linear-gradient(180deg, transparent 42%, var(--yellow) 42%, var(--yellow) 92%, transparent 92%);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

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

.challenge-pill,
.challenge-banner {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 10px 18px;
  border-radius: 18px;
  background: #22201e;
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.challenge-banner p {
  margin: 4px 0 0;
  color: #f8f5ef;
  font-size: 0.85rem;
}

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

.quiz-hero-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(34, 32, 30, 0.14));
}

.start-title {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 2.95rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

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

.start-rules {
  margin: 0 auto 16px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-muted);
}

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

.mode-chip {
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
}

.mode-chip.active {
  background: var(--ink);
  color: var(--yellow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 54px;
  padding: 12px 24px;
  border: 2.5px solid var(--border);
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: inherit;
  font-weight: 900;
  font-size: 1.08rem;
  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(--yellow-deep);
}

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

.btn-secondary-inline {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* HUD Confidence Bar */
.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-weight: 900;
  font-size: 1rem;
  white-space: nowrap;
}

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

.conf-track {
  flex: 1;
  min-width: 60px;
  height: 12px;
  background: rgba(34, 32, 30, 0.08);
  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: #5ba8a0; }
.conf-fill.mid { background: #f29f3d; }
.conf-fill.high { background: #e05245; }

.conf-pct {
  font-weight: 900;
  font-size: 0.94rem;
  min-width: 40px;
  text-align: end;
}

.conf-pct.high { color: #d94336; }

/* Taped Card */
.taped-card {
  position: relative;
  margin-top: 8px;
  background: var(--card-white);
  color: var(--ink);
  border: 2.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 20px 22px;
  box-shadow: 0 6px 0 rgba(34, 32, 30, 0.14);
}

.masking-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--tape);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

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

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.8px solid var(--border);
  background: #fef3c7;
  margin-bottom: 10px;
}

.probe-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fde7df;
  border: 1.5px solid var(--red-stamp);
  color: var(--red-stamp);
  font-size: 0.8rem;
  font-weight: 900;
}

.q-item-title {
  margin: 0 0 4px;
  font-size: clamp(1.32rem, 3.6vw, 1.76rem);
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: break-word;
}

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

/* Tactile 8s Audio Snippet Player */
.snippet-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 11px 12px;
  background: #faf6ed;
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 3px 0 rgba(34, 32, 30, 0.12);
  text-align: left;
}

.snippet-art-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #e7decb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.snippet-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.snippet-play-btn {
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--border);
}

.snippet-play-btn:hover {
  background: var(--yellow-deep);
}

.snippet-player.is-blocked {
  border-color: var(--red-stamp);
  background: #fff5f3;
  cursor: pointer;
}

.snippet-player.is-blocked .snippet-play-btn {
  background: var(--red-stamp);
  color: #ffffff;
  animation: unmutePulse 1.2s infinite ease-in-out;
}

.snippet-player.is-blocked .snippet-status {
  color: var(--red-stamp);
}

@keyframes unmutePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.snippet-body {
  flex: 1;
  min-width: 0;
}

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

.snippet-status {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.eq-bars span {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--border);
  transition: height 0.15s ease;
}

.eq-bars.playing span {
  background: var(--red-stamp);
  animation: eqBounce 0.65s infinite ease-in-out alternate;
}

.eq-bars.playing span:nth-child(2n) { animation-delay: 0.15s; }
.eq-bars.playing span:nth-child(3n) { animation-delay: 0.3s; }

@keyframes eqBounce {
  from { height: 4px; }
  to { height: 15px; }
}

.snippet-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snippet-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  overflow: hidden;
}

.snippet-fill {
  display: block;
  height: 100%;
  background: var(--red-stamp);
  transition: width 0.12s linear;
}

.snippet-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
}

.blind-toggle {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.8px solid var(--border);
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.blind-toggle.active {
  background: var(--ink);
  color: var(--yellow);
}

/* Answer Choice Buttons with Dot Gauge */
.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: 54px;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.96rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border);
  transition: transform 0.08s ease, background-color 0.1s ease;
}

.choice-btn:hover {
  background: #fff9df;
}

.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(--ink);
  background: transparent;
}

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

.choice-text-wrap strong {
  display: block;
  font-size: 0.98rem;
}

.choice-text-wrap span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.choice-key {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.question-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.question-foot-tip {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Calculator Mode inside Taped Card */
.calc-sub {
  margin: 6px 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.calc-grid {
  display: grid;
  gap: 10px;
}

.calc-era-row {
  padding: 12px;
  border-radius: 14px;
  background: #faf6ed;
  border: 2px solid var(--border);
}

.calc-era-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.calc-era-year {
  font-weight: 900;
  font-size: 0.9rem;
}

.calc-era-sound {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.calc-pill-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.calc-pill-btn {
  padding: 7px 4px;
  border-radius: 10px;
  border: 1.8px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.calc-pill-btn.active {
  background: var(--yellow);
  box-shadow: 0 2px 0 var(--border);
}

.calc-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

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

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

.reveal-lead {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #b8b0a4;
}

.reveal-sub {
  margin: 0 0 10px;
  font-size: 1.24rem;
  font-weight: 900;
  color: #f8f5ef;
}

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

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

.reveal-age {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 4.3rem);
  line-height: 1.1;
  color: #f8f5ef;
}

.reveal-underline {
  height: 6px;
  margin: 8px auto 0;
  width: 85%;
  border-radius: 999px;
  background: var(--red-stamp);
}

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

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

.reveal-btn-row .btn-primary {
  flex: 1.15;
}

.btn-dark-outline {
  flex: 1;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2.5px solid #f8f5ef;
  background: transparent;
  color: #f8f5ef;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;
}

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

.reveal-skip-btn {
  margin-top: 20px;
  background: none;
  border: none;
  color: #b8b0a4;
  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.08em;
  color: rgba(248, 245, 239, 0.35);
}

.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 #f8f5ef;
  background: rgba(255, 255, 255, 0.08);
  color: #f8f5ef;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cal-input {
  width: 88px;
  height: 54px;
  border-radius: 14px;
  border: 2.5px solid var(--yellow);
  background: #1a1816;
  color: #f8f5ef;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
}

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

.verdict-kicker {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-muted);
}

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

.verdict-age {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 7.5vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

.stamp {
  display: inline-block;
  margin: 4px auto 10px;
  padding: 6px 20px;
  border: 3.5px solid var(--red-stamp);
  border-radius: 10px;
  color: var(--red-stamp);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  transform: rotate(-3deg);
}

.stamp.close {
  border-color: #d97706;
  color: #d97706;
}

.stamp.miss {
  border-color: #6c665e;
  color: #4b4742;
}

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

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

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

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

.verdict-quick-actions .btn-quick-share {
  flex: 1.3;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 0.92rem;
  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 #d7d0c4;
  margin: 20px 0;
}

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

.section-heading {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 900;
}

.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: 40px;
  padding: 5px 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(34, 32, 30, 0.14);
}

.strata-row.not-dug {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(34, 32, 30, 0.045) 8px,
    rgba(34, 32, 30, 0.045) 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: 900;
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
}

.strata-empty {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  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(34, 32, 30, 0.18);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--ink);
  max-width: 165px;
  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.96rem;
  font-weight: 800;
}

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

.persona-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.persona-pill-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #faf6ed;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
}

.real-age-inline {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.real-age-inline input[type='number'] {
  width: 96px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}

.age-gap-result {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--red-stamp);
}

/* Inline Viral Share Hub inside Verdict */
.viral-share-hub {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #faf6ed;
  border: 2px solid var(--border);
  text-align: center;
}

.viral-share-hub h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
}

.viral-sub {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.sr-canvas {
  display: none;
}

.share-preview-wrap {
  margin: 8px auto 12px;
  max-width: 340px;
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-cream);
}

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

.share-longpress-tip {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  background: #fff9df;
  border: 1.5px solid #e6d8a2;
  border-radius: 10px;
  padding: 6px 10px;
}

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

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

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.86rem;
  cursor: pointer;
}

.social-btn.plat-x { background: #171615; }
.social-btn.plat-whatsapp { background: #16a34a; }
.social-btn.plat-line { background: #06c755; }
.social-btn.plat-kakao_kit { background: #fee500; color: #191600; }
.social-btn.plat-telegram { background: #229ed9; }
.social-btn.plat-facebook { background: #1877f2; }
.social-btn.plat-bluesky { background: #0085ff; }
.social-btn.plat-threads { background: #111111; }
.social-btn.plat-reddit { background: #ff4500; }
.social-btn.plat-weibo { background: #e6162d; }
.social-btn.plat-wechat_kit { background: #07c160; }
.social-btn.plat-ig_story {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

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

.util-btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
}

.util-btn:hover,
.btn-outline:hover {
  background: #faf6ed;
}

.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: 6px 8px;
}

.answers-list {
  margin-top: 10px;
  text-align: left;
  border-top: 1.5px solid #ebe4d8;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.answer-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  padding: 6px 8px;
  background: #faf6ee;
  border-radius: 8px;
}

.answer-q {
  font-weight: 700;
}

.answer-r {
  font-weight: 800;
  color: #b45309;
  flex-shrink: 0;
}

.viral-toast,
.toast-banner {
  margin-top: 10px;
  min-height: 20px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #166534;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.viral-toast.visible,
.toast-banner.visible {
  opacity: 1;
}

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

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

.verdict-secondary-row .btn-outline {
  flex: 1;
}

/* Modals */
.modal-backdrop,
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(34, 32, 30, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lang-modal[hidden] {
  display: none;
}

.modal-dialog,
.lang-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-white);
  color: var(--ink);
  border: 2.5px solid var(--border);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 8px 0 var(--border);
}

.lang-modal-dialog {
  max-width: 580px;
}

.modal-x,
.lang-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-title,
.lang-modal-head h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 900;
}

.howto-list {
  text-align: left;
  padding-left: 20px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 11px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
}

.lang-option.is-active,
.lang-option:hover {
  background: var(--yellow);
}

.privacy-toggle,
.hide-age-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: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.privacy-toggle input,
.hide-age-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

/* Below-the-fold Editorial Stationery Card */
.seo-section,
.editorial {
  margin-top: 34px;
  background: var(--card-white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 4px 0 rgba(34, 32, 30, 0.1);
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-stamp);
}

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

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.seo-links a {
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1.5px solid transparent;
}

.seo-links a:hover,
.seo-links a[aria-current='page'] {
  border-color: var(--border);
  background: var(--yellow);
}

.editorial h2 {
  margin: 22px 0 8px;
  font-size: 1.26rem;
}

.editorial h2:first-of-type {
  margin-top: 8px;
}

.editorial p,
.editorial li {
  color: #3a3632;
}

.era-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.era-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.era-table th,
.era-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1.5px solid #e6dfd1;
}

.era-table th {
  background: #faf6ed;
  font-weight: 900;
}

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

.faq-list details {
  border: 1.5px solid #dfd6c7;
  border-radius: 12px;
  padding: 11px 14px;
  background: #fcfaf6;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list details p {
  margin: 7px 0 0;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 12px 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

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

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

/* Sister Quiz Matrix Card */
.matrix-promo-card {
  margin-top: 22px;
  padding: 16px;
  background: #ffffff;
  border: 2.5px solid #22201e;
  border-radius: 20px;
  box-shadow: 4px 4px 0 rgba(34, 32, 30, 0.12);
}

.matrix-promo-heading {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

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

.matrix-promo-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 2px solid #22201e;
  border-radius: 14px;
  background: #faf6ed;
  text-decoration: none;
  color: #22201e;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.matrix-promo-link:hover {
  transform: translateY(-2px);
  background: #fdf3d7;
}

.matrix-promo-title {
  font-weight: 900;
  font-size: 0.96rem;
}

.matrix-promo-desc {
  font-size: 0.8rem;
  line-height: 1.38;
  color: var(--ink-muted);
}

.locale-suggest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 8px 12px;
  max-width: 560px;
  background: #fdf3d7;
  border: 2px solid #22201e;
  border-radius: 14px;
  font-size: 0.84rem;
}

.locale-suggest-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #22201e;
  text-decoration: none;
  font-weight: 700;
}

.locale-suggest-link strong {
  font-weight: 900;
  text-decoration: underline;
}

.locale-suggest-dismiss {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid #22201e;
  background: #ffffff;
  color: #22201e;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.spotify-compare-inline {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.spotify-compare-inline input[type='number'] {
  width: 220px;
  max-width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.spotify-compare-result {
  color: #166534;
}

.ss-preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 18px;
}

.ss-preview-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid #22201e;
  font-size: 0.82rem;
  font-weight: 800;
  color: #22201e;
}

.ss-alt-links {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.ss-alt-links a {
  color: var(--ink-muted);
}

.ss-result-hero {
  margin: 8px auto 12px;
  padding: 18px 16px;
  border: 3px solid #22201e;
  border-radius: 20px;
  max-width: 480px;
}

.ss-result-emoji {
  font-size: 2.6rem;
  line-height: 1.1;
}

.ss-result-name {
  margin-top: 6px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  color: #22201e;
}

.ss-result-tagline {
  margin: 6px 0 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #22201e;
}

.ss-result-desc {
  max-width: 520px;
  margin: 0 auto 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* v2.0 Viral Mechanics: Vinyl Blind Mode, 0.85s Flip Reveal, Midnight Reveal & Card Controls */
.secondary-mode-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vinyl-disc-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd84d 0 5px, #11131a 6px 8px, #262936 9px 11px, #11131a 12px 100%);
  border: 2px solid #22201e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  animation: vinylSpin 3.5s linear infinite;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.turn-reveal-flash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  min-height: 310px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 216, 77, 0.22), transparent 60%), #111522;
  color: #f9fafb;
  cursor: pointer;
  animation: flipIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flipIn {
  from { opacity: 0; transform: scale(0.95) rotateX(8deg); }
  to { opacity: 1; transform: scale(1) rotateX(0deg); }
}

.turn-reveal-art {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.turn-reveal-year-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: #11131a;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 216, 77, 0.3);
}

.turn-reveal-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
}

.turn-reveal-artist {
  margin: 0 0 14px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #cbd5e1;
}

.turn-reveal-tap {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
}

.reveal-vinyl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px;
}

.reveal-vinyl-svg {
  width: 196px;
  height: 196px;
  opacity: 0.32;
  animation: vinylSpin 14s linear infinite;
  pointer-events: none;
}

.reveal-vinyl-hero .reveal-age-wrap {
  position: relative;
  margin-top: -136px;
  margin-bottom: 16px;
}

.cal-name-wrap {
  margin: 0 auto 18px;
  max-width: 280px;
  text-align: center;
}

.cal-name-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.cal-name-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
}

.cal-name-input::placeholder {
  color: #94a3b8;
}

.real-age-inline .nick-inline-input {
  width: 128px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.card-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.format-pills {
  display: inline-flex;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.format-pill {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.format-pill.active {
  background: var(--ink);
  color: var(--yellow);
}

.utility-row-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.utility-row-compact .util-btn {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.78rem;
}

@media (max-width: 700px), (hover: none) {
  .choice-key,
  .question-foot-tip {
    display: none;
  }
}

@media (max-width: 700px) {
  .matrix-promo-grid {
    grid-template-columns: 1fr;
  }
  .site-shell {
    padding: 10px 12px 42px;
  }

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

  .snippet-player {
    display: grid;
    grid-template-columns: 48px 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
  }

  .snippet-art-wrap {
    width: 48px;
    height: 48px;
  }

  .snippet-body {
    grid-column: 3;
    min-width: 0;
  }

  .blind-toggle {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 7px 10px;
  }

  .calc-pill-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .verdict-quick-actions,
  .verdict-secondary-row {
    flex-direction: column;
  }

  .social-grid,
  .share-social-row,
  .utility-grid,
  .share-btn-grid,
  .lang-grid {
    grid-template-columns: 1fr;
  }
}
