:root {
  --bg: #f8f9fa;
  --bg-elevated: #ffffff;
  --surface-low: #ffffff;
  --surface-high: #f3f2f7;
  --ink: #191c1d;
  --muted: #464554;
  --line: #c7c4d7;
  --brand: #8b5cf6;
  --brand-strong: #6063ee;
  --brand-shadow: #2f2ebe;
  --brand-soft: #ede9fe;
  --secondary: #f59e0b;
  --success: #00846e;
  --completed: #006856;
  --danger: #ba1a1a;
  --ok: #00846e;
  --shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --btn-font: "Nunito Sans", system-ui, sans-serif;
  --max: 720px;
  --play-gradient-start: #f8f9ff;
  --play-gradient-end: #e5eeff;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

body.page-home {
  background-color: var(--bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.page-play {
  --max: 560px;
  background: linear-gradient(180deg, var(--play-gradient-start) 0%, var(--play-gradient-end) 100%);
  background-attachment: fixed;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.main {
  flex: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

body.page-play .main {
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

body.page-play .site-footer {
  padding-top: 0.35rem;
}

.site-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }

.seo-about {
  width: min(100%, var(--max));
  margin: 0 auto 1.5rem;
  padding: 0 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.seo-about h1,
.seo-about h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}

.seo-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.seo-doc .lede {
  font-size: 1.05rem;
  color: var(--ink);
}

body.has-home-bottom-nav .seo-about,
body.page-play .seo-about {
  display: none;
}

.d-none { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); margin: 0.5rem 0 0; }

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-family: var(--btn-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 0 var(--brand-shadow);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn-primary:not(:disabled):active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn-secondary:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-block { width: 100%; display: inline-flex; justify-content: center; align-items: center; }
.btn-icon {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.btn-icon-round {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  padding: 0.35rem 0;
}
.link-btn:hover { text-decoration: underline; }

.spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 60vh; }

.screen--center,
.panel--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  min-height: 50vh;
}

.boot-logo,
.site-logo {
  display: block;
  width: 7.5rem;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.site-logo {
  width: 9rem;
  max-width: 55vw;
  margin: 0 auto 0.35rem;
}

.site-logo--compact {
  width: 6.25rem;
  max-width: 38vw;
  margin: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand, .brand-link {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 0.35rem; }
.brand-link { font-size: 1.35rem; }
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; }

.screen-head { text-align: center; margin-bottom: 1.5rem; }
.screen-head .page-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.locale-card,
.panel,
.play-panel,
.dialog-card,
.play-out-of-hearts-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.locale-card {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.select,
.answer-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.select:focus,
.answer-input:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}

.map-head { margin-bottom: 1.25rem; }
.map-head-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.map-pair { margin: 0.65rem 0 0.15rem; }
.map-stats { display: flex; gap: 0.65rem; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.stat--goal { border-color: color-mix(in srgb, var(--secondary) 40%, var(--line)); }

.city-list,
.category-list { display: grid; gap: 1rem; }

.category-card {
  background: var(--surface-low);
  border: 1px solid color-mix(in srgb, var(--brand) 10%, var(--line));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-card.is-coming-soon { opacity: 0.85; }

.category-card-hero {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--brand-soft), var(--play-gradient-end));
  overflow: hidden;
}

.category-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-hero--empty {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.35;
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--btn-font);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border: 1px solid var(--line);
}
.category-badge--completed { color: var(--completed); border-color: color-mix(in srgb, var(--completed) 30%, var(--line)); }
.category-badge--progress { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.category-badge--locked { color: var(--muted); }

.category-card-body { padding: 1rem; }

.category-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.category-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--brand-soft);
  flex-shrink: 0;
}
.category-icon-badge--empty {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand);
}

.category-card-body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.category-desc {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.category-progress-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--btn-font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.category-progress-label.is-completed { color: var(--completed); }
.category-progress-label.is-active { color: var(--brand); }
.category-progress-label.is-idle { color: var(--muted); }

.city-card {
  background: var(--surface-low);
  border: 1px solid color-mix(in srgb, var(--brand) 10%, var(--line));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.city-card-head {
  padding: 1rem 1.1rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.city-card-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.theme-list { list-style: none; margin: 0; padding: 0.25rem 0.6rem 0.75rem; display: grid; gap: 0.4rem; }

.theme-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}
.theme-item:hover { background: var(--surface-high); border-color: var(--line); text-decoration: none; }
.theme-item.is-locked { opacity: 0.55; pointer-events: none; }
.theme-item.is-done { background: color-mix(in srgb, var(--completed) 8%, var(--surface-low)); }
.theme-item.is-coming-soon { opacity: 0.7; pointer-events: none; }

.theme-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--brand-soft);
}
.theme-icon--empty {
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 700;
}

.theme-meta { flex: 1; min-width: 0; }
.theme-name { font-weight: 600; margin: 0; }
.theme-progress { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--muted); }

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-high);
  overflow: hidden;
  margin-top: 0.35rem;
}
.progress-bar--lg { height: 12px; }
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.progress-bar.is-completed > span { background: var(--completed); }

.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(100%, 420px);
}
.dialog::backdrop { background: rgba(28, 25, 23, 0.35); }
.dialog-card { padding: 1.15rem 1.2rem 1.25rem; }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.dialog-head h2 { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.dialog--profile { max-width: min(100%, 480px); }
.dialog--profile .dialog-card {
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
}
.profile-sheet-head { flex-shrink: 0; }
.profile-content {
  overflow-y: auto;
  flex: 1;
  padding-right: 0.15rem;
}
.profile-loading {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
}
.profile-header-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem 1.1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.04));
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
}
.profile-avatar--fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--surface-2);
}
.profile-name {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
}
.profile-email { margin: 0; font-size: 0.92rem; }
.profile-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
}
.profile-badge--verified {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.profile-section {
  margin: 0.85rem 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
}
.profile-section--danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.55);
}
.profile-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-section-lead { margin: 0 0 0.5rem; font-size: 0.92rem; }
.profile-economy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.profile-economy-chip {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
  font-size: 0.88rem;
}
.profile-economy-chip strong { font-family: var(--display); font-size: 1.05rem; }
.profile-premium-note { margin: 0.65rem 0 0; font-size: 0.85rem; }
.profile-stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
}
.profile-action-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.5rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-action-tile:hover { background: var(--surface-2); }
.profile-action-icon { font-size: 1.25rem; }
.profile-action-body { display: grid; gap: 0.1rem; }
.profile-action-title { font-weight: 600; }
.profile-action-sub { font-size: 0.88rem; }
.profile-banner {
  margin: 0.5rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}
.profile-banner--info {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
}
.profile-banner--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.profile-delete-btn { color: #b91c1c; }
.profile-signout { margin-top: 0.5rem; color: #b91c1c; }
.profile-subtitle { margin: 0 0 0.65rem; font-family: var(--display); font-size: 1.15rem; }
.profile-delete-summary {
  margin: 0.65rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 600;
}
.profile-delete-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.profile-delete-field { margin: 0.75rem 0; }
.profile-delete-google { margin: 0.75rem 0; justify-content: center; }
.profile-view--center { text-align: center; padding: 1.5rem 0; }
.profile-hint { font-size: 0.88rem; margin: 0.5rem 0 0; color: var(--muted); }
.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 140px;
}
.btn-account--has-avatar { padding-left: 0.35rem; }
.btn-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.btn-account-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.15);
  color: var(--brand);
}
#btnAccountLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-label { font-weight: 600; margin: 0.75rem 0; }
.auth-actions { display: grid; gap: 0.65rem; margin: 0.85rem 0; }
.google-mount { min-height: 40px; display: flex; justify-content: center; }

.turnstile-host {
  margin-top: 0.75rem;
  min-height: 65px;
}

.turnstile-host--boot {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.turnstile-host--dialog {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-elevated));
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.turnstile-host--dialog > div,
.turnstile-host--dialog iframe {
  border-radius: 8px;
}

.play-app {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 70vh;
  position: relative;
}

.play-app.has-bg-image::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

.play-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 0.75rem;
  align-items: center;
}

.play-topbar-title {
  min-width: 0;
  text-align: center;
}

.play-topbar .page-title {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-topbar .back-link {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin: 0;
}

.play-panel {
  padding: 1.15rem;
  position: relative;
  min-height: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.play-panel--question {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
}

.play-question-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.question-prompt {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.question-prompt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.35rem;
}

.question-prompt-row .question-prompt {
  text-align: center;
  min-width: 0;
}

.play-report-btn {
  appearance: none;
  border: 0;
  background: rgba(139, 92, 246, 0.08);
  color: var(--muted);
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.play-report-btn:hover {
  background: rgba(139, 92, 246, 0.16);
  color: var(--brand);
}

.play-report-btn:active {
  transform: scale(0.96);
}

.question-instruction {
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.question-assets {
  display: grid;
  gap: 0.75rem;
  margin: 0.15rem auto 0.25rem;
  max-width: 100%;
  justify-items: center;
}

.question-assets img {
  max-width: min(100%, 420px);
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.06);
}

.typing-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.mc-grid {
  display: grid;
  gap: 0.6rem;
}

.mc-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mc-option:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.mc-option.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* —— Swipe letters —— */
.answer-swipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  width: 100%;
  touch-action: none;
}

.swipe-instruction {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.swipe-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
}

.swipe-slot {
  width: 2.35rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.swipe-slot--filled {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.swipe-slot--next {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.swipe-slot--space {
  width: 1rem;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.swipe-stage {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  flex: 0 0 auto;
}

.swipe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #f8faf9 55%, #eef6f4 100%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 14px 34px rgba(28, 25, 23, 0.08);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.swipe-wrap--shake {
  animation: swipe-shake 0.38s ease;
}

@keyframes swipe-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.swipe-bg {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.80;
  pointer-events: none;
  z-index: 0;
}

.swipe-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swipe-canvas,
.swipe-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

.swipe-circle {
  z-index: 2;
}

.swipe-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid #d6d3d1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 14px rgba(28, 25, 23, 0.1);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.swipe-letter:active {
  cursor: grabbing;
}

.swipe-letter.in-path {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
}

.swipe-letter.current {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--brand-strong);
}

.swipe-shuffle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-low);
  color: var(--brand);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--brand) 35%, transparent),
    0 6px 16px rgba(139, 92, 246, 0.18);
  cursor: pointer;
  z-index: 4;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.1s ease, background 0.12s ease, color 0.12s ease;
}

.swipe-shuffle:hover {
  background: var(--brand-soft);
}

.swipe-shuffle:active {
  transform: translate(-50%, -50%) translateY(2px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 35%, transparent);
}

.answer-swipe--image .swipe-wrap {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.35) 0%, rgba(248, 250, 249, 0.55) 55%, #eef6f4 100%);
}

.play-result-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(246, 243, 238, 0.9);
  border-radius: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 5;
}

.play-result-overlay.is-correct { color: var(--ok); }
.play-result-overlay.is-wrong { color: var(--danger); }
.play-result-icon {
  width: 2rem;
  height: 2rem;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.play-out-of-hearts {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(28, 25, 23, 0.28);
  border-radius: inherit;
  z-index: 6;
}

.play-out-of-hearts-card {
  width: min(100%, 380px);
  padding: 1.25rem 1.2rem 1.15rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.play-out-of-hearts-card--promo {
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
}

.hearts-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.35rem;
  line-height: 1;
}

.play-out-of-hearts-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
}

.play-out-of-hearts-lead,
.play-out-of-hearts-coins,
.play-out-of-hearts-cost { margin: 0; }

.hearts-balance {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fafaf9;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.hearts-app-promo {
  margin-top: 0.25rem;
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1px solid #99f6e4;
  text-align: center;
}

.hearts-app-promo-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.hearts-app-promo-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: #44403c;
  line-height: 1.45;
}

.store-badges {
  display: grid;
  gap: 0.55rem;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #292524;
  background: #1c1917;
  color: #fff;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.store-badge:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

.store-badge:disabled,
.store-badge[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.store-badge-icon {
  flex: 0 0 auto;
}

.store-badge-text {
  display: grid;
  line-height: 1.15;
}

.store-badge-text small {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
}

.store-badge-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.store-badge--play {
  background: #111827;
  border-color: #111827;
}

.store-badge--apple {
  background: #292524;
  border-color: #292524;
}

.app-interstitial-timer {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  background: #fff;
  border: 2px solid var(--brand-soft);
  box-shadow: inset 0 0 0 3px #f0fdfa;
}

.play-app-interstitial-card #btnAppInterstitialContinue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.play-stat--hint {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.play-hint-count { margin-right: 0.15rem; }

@media (min-width: 640px) {
  .play-topbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .play-topbar .back-link { justify-self: start; }
  .play-meta { justify-self: end; }
  .swipe-stage { width: min(100%, 380px); }
}

.legal-doc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 2rem;
}
.legal-doc-title {
  font-family: var(--display);
  margin: 0 0 0.35rem;
}
.legal-doc-meta { margin: 0.15rem 0; font-size: 0.9rem; }
.legal-doc-section { margin-top: 1.5rem; }
.legal-doc-anchor-target { scroll-margin-top: 5.5rem; }
.legal-doc-section h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.legal-doc-section h3 { font-size: 1rem; margin: 1rem 0 0.35rem; }
.legal-doc-section ol { padding-left: 1.25rem; }
.legal-doc-section ol li { margin: 0.35rem 0; }
.legal-doc-address { font-style: normal; line-height: 1.55; }

.play-result-overlay--correct-pronunciation {
  background: color-mix(in srgb, var(--success) 12%, rgba(248, 249, 250, 0.94));
  padding: 1rem;
}

.play-correct-card {
  width: min(100%, 360px);
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--surface-low);
  border: 1px solid color-mix(in srgb, var(--success) 22%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.play-correct-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.play-result-badge--correct {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--success) 14%, var(--surface-low));
  color: var(--success);
}

.play-result-badge--correct .play-result-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
}

.play-correct-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.play-correct-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.play-pronunciation-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  text-align: left;
}

.play-pronunciation-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-low));
  border: 1px solid var(--line);
}

.play-pronunciation-text {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}

.play-pronunciation-play {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-low);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease;
}

.play-pronunciation-play:hover {
  background: var(--brand-soft);
}

.play-pronunciation-play:active {
  transform: scale(0.96);
}

.play-result-overlay--hint {
  background: rgba(248, 249, 250, 0.94);
  padding: 1rem;
}

.play-hint-overlay-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.play-result-hint--reveal {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.play-result-overlay--correct {
  color: var(--success);
}

.play-result-overlay--wrong {
  color: var(--danger);
}

.play-result-overlay--session {
  color: var(--brand);
  font-size: 1rem;
}

/* —— Home bottom nav + weekly league —— */
.app-shell.has-bottom-nav {
  padding-bottom: 2.5rem;
}

body.page-home.has-home-bottom-nav .site-footer {
  /* Keep Privacy/Terms/KVKK above the floating nav */
  margin-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.home-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
  backdrop-filter: blur(10px);
}

.home-nav-btn {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  border: 0;
  background: transparent;
  min-width: 3.35rem;
  padding: 0.45rem 0.35rem;
  border-radius: 14px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.home-nav-btn.is-active {
  color: var(--brand);
  background: rgba(139, 92, 246, 0.1);
}

.home-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.league-head {
  margin-bottom: 1rem;
}

.league-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.league-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
}

.league-subtitle,
.league-timer {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.league-gate {
  text-align: center;
  padding: 2rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.league-gate-icon {
  font-size: 2.5rem;
}

.league-gate-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.league-pair-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.league-gate-message {
  max-width: 28rem;
  margin: 0;
}

.league-body {
  display: grid;
  gap: 1rem;
}

.league-me-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg, 18px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.league-me-rank strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.league-me-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.league-me-stats > div {
  display: grid;
  gap: 0.1rem;
  text-align: center;
  padding: 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.league-me-stats strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.league-me-name {
  margin: 0;
  font-size: 0.9rem;
}

.league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.league-row,
.league-me-sticky {
  display: grid;
  grid-template-columns: 2.25rem 2.25rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--outline-variant, var(--line));
}

.league-row.is-me {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

.league-rank {
  font-weight: 800;
  font-family: var(--display);
  color: var(--muted);
  text-align: center;
}

.league-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.15);
  color: var(--brand);
}

.league-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-points {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.league-me-sticky {
  position: sticky;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
  border-color: var(--brand);
}

.league-prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.league-prefs-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.league-optout-btn {
  margin-top: 0.85rem;
  color: #b91c1c;
}

/* —— Feedback dialog —— */
.dialog--feedback {
  max-width: min(100%, 440px);
}

.feedback-sheet {
  display: grid;
  gap: 0.85rem;
}

.feedback-head-text {
  min-width: 0;
}

.feedback-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.feedback-field {
  margin: 0;
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.feedback-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.feedback-chip:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.06);
}

.feedback-chip.is-selected {
  border-color: var(--brand);
  background: rgba(139, 92, 246, 0.14);
  color: var(--brand);
}

.feedback-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feedback-message {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.feedback-length-hint {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.feedback-field-error {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.feedback-banner {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.feedback-banner--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--ink);
}

.feedback-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 360px);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(28, 25, 23, 0.92);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.22);
  text-align: center;
}

a.profile-action-tile {
  text-decoration: none;
  color: inherit;
}

/* —— Google Play dock —— */
.play-store-dock {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 36;
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
}

.play-store-dock[hidden] {
  display: none !important;
}

body.has-home-bottom-nav .play-store-dock {
  bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
}

.play-store-fab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.28);
}

.play-store-fab:hover {
  text-decoration: none;
  background: #1f2937;
}

.play-store-fab-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #34a853, #4285f4 55%, #fbbc04);
  color: #fff;
}

.play-store-fab-copy {
  display: grid;
  line-height: 1.05;
}

.play-store-fab-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  opacity: 0.78;
}

.play-store-fab-copy strong {
  font-family: var(--display);
  font-size: 0.92rem;
}

.play-store-fab-dismiss {
  appearance: none;
  border: 0;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.12);
}

.play-store-fab-dismiss:hover {
  color: var(--ink);
}

/* —— Practice + shop —— */
.practice-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.practice-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.practice-item-index {
  font-family: var(--display);
  font-weight: 800;
  color: var(--brand);
}

.practice-item-body {
  display: grid;
  gap: 0.2rem;
}

.practice-item-prompt {
  font-weight: 650;
}

.shop-body {
  display: grid;
  gap: 1.25rem;
}

.shop-buy-row {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.shop-section-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.shop-app-banner,
.shop-reward-path {
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.shop-track-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-track-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-track-chip.is-selected {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(139, 92, 246, 0.1);
}

.shop-step-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.shop-step {
  min-width: 2.1rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--surface-high);
  color: var(--muted);
}

.shop-step.is-done {
  background: rgba(0, 132, 110, 0.14);
  color: var(--completed);
}

.shop-step.is-next {
  background: rgba(139, 92, 246, 0.16);
  color: var(--brand);
}

.shop-step-line {
  width: 0.7rem;
  height: 2px;
  background: var(--line);
}

.shop-reward-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-catalog {
  display: grid;
  gap: 0.75rem;
}

.shop-iap-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.shop-iap-card:hover {
  text-decoration: none;
  border-color: rgba(139, 92, 246, 0.45);
}

.shop-iap-card.is-highlight {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), #fff);
}

.shop-iap-badge {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.shop-iap-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
}

.shop-iap-sub {
  margin: 0;
}

.shop-iap-perks {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.shop-iap-cta {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .shop-buy-row {
    grid-template-columns: 1fr 1fr;
  }
  .shop-catalog {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .main { padding-top: 2rem; }
}
