:root {
  color-scheme: light;
  --cream: #fff8ec;
  --paper: #fffdf7;
  --ink: #062b52;
  --muted: #6f6256;
  --teal: #19a9a0;
  --teal-dark: #0b827c;
  --coral: #fa6857;
  --coral-dark: #d94f41;
  --gold: #f3ad28;
  --gold-soft: #f7d68b;
  --line: #efbd4b;
  --shadow: 0 22px 60px rgba(22, 31, 45, 0.16);
  --soft-shadow: 0 12px 28px rgba(22, 31, 45, 0.13);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-button: var(--font-body);
  --heading-weight: 900;
  --body-weight: 750;
  --button-weight: 850;
  --heading-letter-spacing: 0;
  --heading-transform: none;
  --body-letter-spacing: 0;
  --app-max-width: 760px;
  --app-padding: 18px;
  --shell-padding-block: 42px;
  --shell-padding-inline: 28px;
  --content-gap: 14px;
  --home-title-align: center;
  --card-content-align: center;
  --prompt-color: var(--ink);
  --card-title-color: var(--coral-dark);
  --card-subtitle-color: var(--teal-dark);
  --button-primary-bg: var(--coral);
  --button-primary-text: #fff;
  --button-secondary-bg: var(--teal);
  --button-secondary-text: #fff;
  --button-quiet-bg: var(--ink);
  --button-quiet-text: #fff;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: var(--body-letter-spacing);
}

button,
select,
textarea {
  font: inherit;
}

button {
  min-height: 54px;
  border: 0;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-family: var(--font-button);
  font-weight: var(--button-weight);
  box-shadow: var(--soft-shadow);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(25, 169, 160, 0.35);
  outline-color: var(--focus-ring);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, var(--app-max-width));
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--app-padding);
  display: grid;
  align-items: center;
}

[data-theme-review="true"] .app-shell {
  align-content: start;
  align-items: start;
  gap: 10px;
}

.theme-review-bar {
  position: sticky;
  top: 8px;
  z-index: 30;
  width: 100%;
  min-height: 42px;
  padding: 6px;
  display: grid;
  grid-template-columns: max-content 36px minmax(0, 1fr) 36px max-content;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(6, 43, 82, 0.18);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.94);
  color: #102033;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.14);
  backdrop-filter: blur(10px);
}

.theme-review-kicker {
  padding: 0 6px;
  color: #596579;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-review-button {
  width: 36px;
  min-height: 30px;
  padding: 0;
  border-radius: 10px;
  background: #102033;
  color: #fff;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
}

.theme-review-current {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: center;
}

.theme-review-current strong,
.theme-review-current span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-review-current strong {
  color: #102033;
  font-size: 0.72rem;
  font-weight: 950;
}

.theme-review-current span {
  color: #354257;
  font-size: 0.76rem;
  font-weight: 850;
}

.theme-review-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(16, 32, 51, 0.18);
  border-radius: 8px;
  background: #fff;
}

.screen {
  width: 100%;
}

.screen:not(.shell-card) {
  min-height: calc(100svh - 36px);
  min-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.shell-card {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 36px));
  padding: clamp(24px, 8vw, var(--shell-padding-block)) clamp(18px, 7vw, var(--shell-padding-inline));
  display: grid;
  align-content: center;
  gap: var(--content-gap);
  background: var(--cream);
  border: var(--main-card-border);
  border-radius: var(--main-card-radius);
  box-shadow: var(--shadow);
}

.shell-card::before,
.shell-card::after {
  content: "";
  position: absolute;
  display: var(--decorative-motif-display);
  width: 132px;
  height: 132px;
  border-radius: 0 0 100% 0;
  opacity: var(--decorative-motif-opacity);
  pointer-events: none;
}

.shell-card > * {
  position: relative;
  z-index: 1;
}

.shell-card::before {
  top: 0;
  left: 0;
  background: var(--coral);
}

.shell-card::after {
  right: 0;
  bottom: 0;
  background: var(--teal);
  transform: rotate(180deg);
}

.home-screen {
  text-align: center;
}

.start-screen {
  min-height: min(760px, calc(100dvh - 36px));
  padding-top: clamp(22px, 5vw, 38px);
  padding-bottom: clamp(18px, 4vw, 32px);
  align-content: start;
  gap: clamp(10px, 2.6vw, 18px);
}

.start-screen h1 {
  max-width: min(100%, 14.5ch);
  font-size: clamp(2.35rem, 10vw, 4.35rem);
  line-height: 0.98;
  text-wrap: balance;
}

.start-screen .brand-mark {
  margin-bottom: 0;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 0.86;
}

.brand-mark {
  position: relative;
  z-index: 1;
  margin: 0 auto 10px;
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  color: var(--heading-color);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 9vw, 4.2rem);
  font-weight: var(--heading-weight);
  line-height: 0.78;
  letter-spacing: 0;
}

.brand-home {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.brand-home:hover {
  transform: translateY(-1px);
}

.brand-home:focus-visible {
  outline: 3px solid rgba(25, 169, 160, 0.35);
  outline-color: var(--focus-ring);
  outline-offset: 4px;
}

.app-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.app-header .brand-mark {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.25rem, 5vw, 2.4rem);
  text-align: left;
}

.cracker-icon {
  width: 58px;
  height: 34px;
  display: inline-block;
  position: relative;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 253, 247, 0.9) 18% 29%, transparent 29% 100%),
    linear-gradient(90deg, var(--coral) 0 34%, var(--gold-soft) 34% 66%, var(--teal) 66% 100%);
  border: 2px solid rgba(6, 43, 82, 0.2);
  border-radius: 11px;
  box-shadow:
    inset 0 -3px 0 rgba(6, 43, 82, 0.08),
    0 6px 0 rgba(6, 43, 82, 0.08);
  transform: rotate(-5deg);
  filter: var(--logo-filter);
}

.cracker-icon::before,
.cracker-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 19px;
  height: 24px;
  background: var(--paper);
  border: 2px solid rgba(6, 43, 82, 0.18);
  transform: translateY(-50%);
}

.cracker-icon::before {
  left: -15px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, var(--paper), var(--gold-soft));
}

.cracker-icon::after {
  right: -15px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(90deg, var(--gold-soft), var(--paper));
}

.brand-logo-mark {
  width: 58px;
  height: 42px;
  display: inline-block;
  object-fit: contain;
  filter: var(--logo-filter);
}

.brand-logo-lockup {
  width: min(72vw, 292px);
  max-height: 168px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
}

.brand-logo-mark + span {
  display: inline-block;
}

.cracker-icon.small {
  width: 38px;
  height: 24px;
  border-radius: 9px;
}

.cracker-icon.small::before,
.cracker-icon.small::after {
  width: 13px;
  height: 17px;
}

.cracker-icon.small::before {
  left: -10px;
}

.cracker-icon.small::after {
  right: -10px;
}

.eyebrow,
.mode-pill {
  position: relative;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  justify-self: center;
  min-height: 34px;
  padding: 6px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border-radius: var(--badge-radius);
  background: var(--coral);
  background: var(--badge-bg);
  color: #fff;
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(141, 58, 46, 0.12);
}

.mode-pill {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 38vw;
  padding-inline: 12px;
  line-height: 22px;
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 60%;
}

.share-link,
.end-link {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.76rem;
  box-shadow: none;
  white-space: nowrap;
}

.share-link {
  width: 38px;
  aspect-ratio: 1;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #25d366;
  color: #fff;
}

.share-link:hover,
.share-link:active {
  background: #1da851;
}

.share-link:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 3px;
}

.share-icon {
  width: 24px;
  height: 24px;
  display: block;
  color: inherit;
}

.end-link {
  min-width: 46px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
}

h1,
h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  color: var(--heading-color);
  line-height: 0.92;
  letter-spacing: var(--heading-letter-spacing);
  text-transform: var(--heading-transform);
}

h1 {
  margin-inline: auto;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 14vw, 6.7rem);
  font-weight: var(--heading-weight);
}

.home-screen h1 {
  font-size: clamp(3rem, 12vw, 6.2rem);
}

h2 {
  font-size: clamp(2.05rem, 8vw, 4.2rem);
  text-align: center;
}

p {
  color: var(--muted);
  font-weight: var(--body-weight);
  line-height: 1.5;
}

.home-copy {
  position: relative;
  z-index: 1;
  max-width: min(31rem, 100%);
  margin: 0 auto;
  color: var(--teal-dark);
  color: var(--accent-secondary-dark);
  font-size: clamp(1.22rem, 4.5vw, 1.75rem);
  font-weight: 850;
  line-height: 1.22;
  text-wrap: balance;
}

.home-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(10px, 2.7vw, 18px);
  text-align: var(--home-title-align);
}

.table-object {
  width: min(52vw, 190px);
  min-height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(6, 43, 82, 0.13), transparent 64%),
    rgba(255, 253, 247, 0.5);
}

.table-object-image {
  width: 100%;
  max-width: 340px;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-family-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.24));
}

.hero-cracker {
  width: clamp(88px, 30vw, 138px);
  height: clamp(44px, 14vw, 62px);
  border-radius: 15px;
  transform: rotate(-7deg);
}

.hero-cracker::before,
.hero-cracker::after {
  width: clamp(26px, 9vw, 38px);
  height: clamp(34px, 11vw, 48px);
}

.hero-cracker::before {
  left: clamp(-30px, -7vw, -22px);
}

.hero-cracker::after {
  right: clamp(-30px, -7vw, -22px);
}

.home-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 340px);
  margin-top: 2px;
}

.pull-button {
  width: 100%;
  min-height: 58px;
  border-radius: var(--button-radius);
  font-size: 1.05rem;
}

.how-link {
  color: var(--ink);
}

.home-microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.paywall-screen {
  justify-items: center;
  text-align: center;
}

.paywall-screen .home-copy {
  max-width: 28rem;
}

.how-steps {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 12px;
  display: grid;
  gap: 8px;
  list-style: none;
  border: 1px solid rgba(25, 169, 160, 0.24);
  border-radius: var(--panel-radius);
  background: rgba(255, 253, 247, 0.75);
  text-align: left;
}

.how-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "badge title"
    "badge copy";
  gap: 10px;
  align-items: center;
}

.how-steps li::before {
  content: none;
  display: none;
}

.step-badge {
  grid-area: badge;
  align-self: start;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #00d4c4;
  background-color: #00d4c4;
  color: #10143a;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.how-steps li:nth-child(2) .step-badge {
  background: #ff8a7d;
  background-color: #ff8a7d;
  color: #10143a;
}

.how-steps li:nth-child(3) .step-badge {
  background: #ffc93d;
  background-color: #ffc93d;
  color: #10143a;
}

.how-steps li:nth-child(4) .step-badge {
  background: #c7a8ff;
  background-color: #c7a8ff;
  color: #10143a;
}

.how-steps strong {
  grid-area: title;
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.how-steps span {
  grid-area: copy;
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
}

.rule {
  position: relative;
  z-index: 1;
  width: min(220px, 58%);
  height: 18px;
  margin: 0 auto;
}

.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: 8px;
  width: calc(50% - 20px);
  border-top: 2px solid rgba(25, 169, 160, 0.7);
}

.rule::before {
  left: 0;
}

.rule::after {
  right: 0;
}

.rule {
  background: radial-gradient(circle at center, var(--teal) 0 6px, transparent 7px);
}

.button-row,
.feedback-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.button-row {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.mode-menu {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.mode-drawer {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin-inline: auto;
  justify-self: center;
  color: var(--muted);
}

.mode-drawer summary {
  width: 100%;
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border: 2px solid rgba(25, 169, 160, 0.72);
  border-radius: var(--button-radius);
  background: rgba(255, 253, 247, 0.9);
  color: var(--teal-dark);
  box-shadow: var(--soft-shadow);
  font-size: 0.95rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.mode-drawer summary::-webkit-details-marker,
.mode-drawer summary::marker {
  display: none;
  content: "";
}

.mode-drawer summary:focus-visible {
  outline: 3px solid rgba(25, 169, 160, 0.35);
  outline-color: var(--focus-ring);
  outline-offset: 3px;
}

.compact-mode-menu {
  width: 100%;
  margin-top: 8px;
  gap: 6px;
}

.install-card {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(25, 169, 160, 0.32);
  border-radius: var(--panel-radius);
  background: rgba(255, 253, 247, 0.78);
  text-align: left;
}

.install-card strong,
.install-card span,
.install-card small {
  display: block;
}

.install-card strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.install-card span,
.install-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.22;
}

.install-card small {
  margin-top: 3px;
  color: var(--teal-dark);
}

.install-card-ios,
.install-card-manual {
  grid-template-columns: 1fr;
}

.install-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--compact-button-radius);
  background: var(--teal);
  color: #fff;
  box-shadow: none;
  font-size: 0.82rem;
}

.install-button:hover,
.install-button:active {
  background: var(--teal-dark);
}

.start-footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
}

.seo-discovery-links {
  max-width: 34ch;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
}

.seo-discovery-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-discovery-links a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.noscript-seo-links {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: #fff8dc;
  font-size: 0.85rem;
  font-weight: 850;
}

.noscript-seo-links a {
  color: inherit;
}

.start-footer p {
  max-width: 32ch;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.terms-link {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-dark);
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-link:hover,
.terms-link:active {
  color: var(--ink);
}

.mode-button {
  position: relative;
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 2px;
  border-radius: var(--compact-button-radius);
  background: var(--paper);
  border: 1px solid rgba(239, 173, 40, 0.62);
  color: var(--ink);
  text-align: left;
}

.mode-button span {
  font-weight: 950;
}

.mode-button small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

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

.secondary {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.secondary:hover {
  background: var(--teal-dark);
}

.quiet {
  background: var(--button-quiet-bg);
  color: var(--button-quiet-text);
}

.danger {
  background: #fff4ee;
  color: #8f321f;
  border: 1px solid rgba(250, 104, 87, 0.34);
}

.danger:hover {
  background: #ffe5db;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: clamp(22px, 5vw, 60px) clamp(18px, 6vw, 56px) clamp(70px, 14vw, 132px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--paper);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.inner-rule {
  position: absolute;
  inset: 30px;
  border: 1.5px solid rgba(239, 173, 40, 0.88);
  border-radius: calc(var(--card-radius) - 8px);
  pointer-events: none;
}

.corner {
  position: absolute;
  z-index: 1;
  width: clamp(82px, 22vw, 132px);
  aspect-ratio: 1;
  pointer-events: none;
}

.corner::after {
  content: "*";
  position: absolute;
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
}

.corner-coral {
  background: var(--coral);
}

.corner-teal {
  background: var(--teal);
}

.corner-top-left {
  top: 0;
  left: 0;
  border-radius: 0 0 100% 0;
}

.corner-top-left::after {
  top: 24px;
  left: 26px;
}

.corner-top-right {
  top: 0;
  right: 0;
  border-radius: 0 0 0 100%;
}

.corner-top-right::after {
  top: 24px;
  right: 26px;
}

.corner-bottom-left {
  bottom: 0;
  left: 0;
  border-radius: 0 100% 0 0;
}

.corner-bottom-left::after {
  bottom: 18px;
  left: 26px;
}

.corner-bottom-right {
  right: 0;
  bottom: 0;
  border-radius: 100% 0 0 0;
}

.corner-bottom-right::after {
  right: 26px;
  bottom: 18px;
}

.card-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  min-height: 30px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border-radius: var(--badge-radius);
  background: var(--coral);
  background: var(--badge-bg);
  color: #fff;
  color: var(--badge-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pill:nth-child(2) {
  background: var(--teal);
  background: var(--badge-alt-bg);
  color: var(--badge-alt-text);
}

.pill:nth-child(3) {
  background: var(--gold);
  background: var(--badge-warm-bg);
  color: var(--ink);
  color: var(--badge-warm-text);
}

.card > .cracker-icon {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  width: 52px;
  height: 31px;
}

.prompt {
  position: relative;
  z-index: 2;
  max-width: min(12ch, 100%);
  margin: 0;
  color: var(--prompt-color);
  font-size: clamp(1.95rem, 9vw, 5.6rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.card-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--card-title-color);
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.joke-prompt {
  max-width: min(15ch, 100%);
}

.punchline {
  position: relative;
  z-index: 2;
  max-width: min(18rem, 100%);
  margin: 0;
  color: var(--card-subtitle-color);
  font-size: clamp(1.45rem, 6vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.secret-answer span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.card-subtitle {
  position: relative;
  z-index: 2;
  max-width: min(20rem, 100%);
  margin: 0;
  color: var(--card-subtitle-color);
  font-size: clamp(1.18rem, 4.5vw, 1.8rem);
  font-weight: 850;
  line-height: 1.16;
}

.grownups-card {
  position: relative;
  z-index: 2;
  width: min(100%, 30rem);
  display: grid;
  gap: 8px;
}

.grownups-card section {
  padding: 12px 14px;
  border: 1px solid rgba(239, 173, 40, 0.55);
  border-radius: var(--panel-radius);
  background: rgba(255, 248, 236, 0.74);
}

.grownups-intro,
.grownups-adult-note,
.timer-status {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 900;
  line-height: 1.12;
}

.grownups-intro {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

.grownups-adult-note,
.timer-status {
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
}

.grownups-card p:not(.grownups-intro):not(.grownups-adult-note) {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 4.4vw, 1.62rem);
  font-weight: 950;
  line-height: 1.12;
}

.mini-label {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  display: grid;
  justify-items: center;
  gap: 7px;
}

.timer-panel strong {
  color: var(--ink);
  font-size: clamp(3.45rem, 17vw, 7rem);
  line-height: 0.9;
}

.timer-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.timer-button {
  min-height: 42px;
  padding: 0 8px;
  border-radius: var(--compact-button-radius);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  box-shadow: none;
}

.card-footer {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 14px clamp(76px, 19vw, 140px) 16px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(0.92rem, 3.5vw, 1.35rem);
  font-weight: 800;
  white-space: nowrap;
}

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

.actions.single-action {
  grid-template-columns: 1fr;
}

.reveal-button {
  background: var(--coral);
}

.actions .wide {
  grid-column: 1 / -1;
}

.share-modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(6, 43, 82, 0.46);
}

.share-modal {
  position: relative;
  width: min(100%, 370px);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  display: grid;
  gap: 12px;
  overflow: auto;
  border: 1.5px solid rgba(239, 173, 40, 0.74);
  border-radius: var(--card-radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  text-align: center;
}

.share-modal h2 {
  margin: 8px 34px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3.1rem);
  line-height: 0.95;
}

.confirm-modal h2 {
  margin-inline: 18px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.share-modal p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.share-modal .share-notice {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.terms-modal {
  text-align: left;
}

.terms-modal h2 {
  margin-right: 44px;
  margin-left: 0;
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  text-align: left;
}

.terms-modal p {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 760;
}

.share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border-radius: var(--badge-radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  box-shadow: none;
}

.share-whatsapp,
.share-copy {
  min-height: 50px;
  border-radius: var(--compact-button-radius);
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(25, 169, 160, 0.34);
  border-radius: var(--panel-radius);
  background: rgba(255, 253, 247, 0.82);
}

.qr-panel span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.qr-panel img {
  width: min(220px, 68vw);
  height: auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(22, 31, 45, 0.1);
}

.summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.stat {
  padding: 16px;
  background: var(--paper);
  border: 1px solid rgba(239, 173, 40, 0.55);
  border-radius: var(--panel-radius);
  color: var(--muted);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
}

.field {
  position: relative;
  z-index: 1;
  margin: 10px 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 850;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--field-border-color);
  border-radius: var(--compact-button-radius);
  background: var(--paper);
  color: var(--ink);
}

select {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.4;
}

.choice {
  background: var(--paper);
  border: 1px solid rgba(25, 169, 160, 0.45);
  color: var(--ink);
}

.choice[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.error {
  position: relative;
  z-index: 1;
  padding: 18px;
  background: #fff4ee;
  border: 1px solid rgba(250, 104, 87, 0.42);
  border-radius: 18px;
  color: #8f321f;
}

.tester-tools {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px dashed rgba(239, 173, 40, 0.7);
  border-radius: var(--panel-radius);
  background: rgba(255, 253, 247, 0.74);
  text-align: left;
}

.tester-title,
.tester-copy {
  margin: 0;
}

.tester-title {
  color: var(--ink);
  font-weight: 900;
}

.tester-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.tester-source-list li {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.tester-source-list strong {
  color: var(--ink);
}

.tester-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.align--left .home-screen,
.align--left .home-hero,
.align--left h1,
.align--left h2 {
  text-align: left;
}

.align--left .home-hero,
.align--left .home-actions,
.align--left .mode-drawer,
.align--left .start-footer,
.align--left .home-copy,
.align--left .home-microcopy,
.align--left .start-screen h1 {
  justify-items: start;
  margin-inline: 0;
}

.align--left .eyebrow,
.align--left .mode-pill {
  justify-self: start;
}

.density--compact .table-object {
  width: min(42vw, 142px);
  min-height: 52px;
}

.density--compact .home-copy {
  font-size: clamp(1.05rem, 3.8vw, 1.34rem);
}

.density--roomy .home-hero {
  gap: clamp(14px, 3.4vw, 24px);
}

.density--roomy .home-actions {
  margin-top: 8px;
}

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

.button-group--inline .button-row,
.button-group--inline .feedback-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-group--inline .home-actions {
  width: min(100%, 470px);
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.button-group--inline .pull-button {
  min-width: 0;
}

.shell--plain .shell-card {
  background: color-mix(in srgb, var(--cream) 94%, white);
}

.shell--poster .shell-card {
  align-content: start;
  border-width: 2px;
  text-transform: none;
}

.shell--poster .start-screen {
  border-color: color-mix(in srgb, var(--ink) 34%, transparent);
}

.shell--app .app-shell {
  width: min(100%, var(--app-max-width));
}

.shell--app .shell-card {
  border-color: color-mix(in srgb, var(--accent-secondary) 22%, transparent);
  box-shadow: 0 16px 46px rgba(16, 24, 40, 0.1);
}

.shell--paper .shell-card {
  background:
    linear-gradient(90deg, rgba(80, 55, 31, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(80, 55, 31, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 16px 16px, 16px 16px, auto;
}

.shell--soft .shell-card {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent-primary) 12%, transparent), transparent 12rem),
    var(--cream);
}

.shell--editorial .shell-card {
  align-content: stretch;
  border-radius: max(10px, var(--main-card-radius));
}

.shell--stage .shell-card {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent-warm) 16%, transparent), transparent 18rem),
    var(--cream);
  border-color: color-mix(in srgb, var(--accent-warm) 46%, transparent);
}

.header--bar .app-header {
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--border-color) 36%, transparent);
  border-radius: var(--panel-radius);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}

.header--banner .brand-mark {
  padding: 5px 10px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--panel-radius);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
}

.header--refined .brand-mark {
  gap: 8px;
  font-size: clamp(1.1rem, 4.2vw, 2rem);
}

.header--refined .cracker-icon.small {
  transform: rotate(0deg) scale(0.88);
}

.logo--stamp .cracker-icon {
  border-radius: 7px;
  border-width: 3px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 12%, transparent);
  transform: rotate(-8deg);
}

.logo--friendly .cracker-icon {
  border-radius: 999px;
  transform: rotate(-4deg);
}

.logo--paper .cracker-icon {
  border-radius: 4px;
  box-shadow: none;
  transform: rotate(-2deg);
}

.logo--wordmark .cracker-icon {
  width: 44px;
  border-radius: 999px;
  transform: rotate(0deg);
}

.logo--marquee .cracker-icon {
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent-warm) 42%, transparent));
}

.logo--app .cracker-icon {
  border-radius: 12px;
  transform: rotate(0deg);
}

.card--bold .card,
.card--bold .shell-card {
  border-width: 2px;
}

.card--bold .card {
  box-shadow: 0 14px 0 color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow);
}

.card--soft .card {
  border-color: color-mix(in srgb, var(--accent-primary) 22%, transparent);
  box-shadow: 0 18px 54px rgba(73, 58, 74, 0.11);
}

.card--paper .card {
  background:
    linear-gradient(90deg, rgba(80, 55, 31, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(80, 55, 31, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 14px 14px, 14px 14px, auto;
  box-shadow: 0 10px 24px rgba(70, 46, 25, 0.13);
}

.card--outlined .card,
.card--outlined .shell-card {
  box-shadow: none;
}

.card--outlined .card {
  border: 1.5px solid color-mix(in srgb, var(--ink) 26%, var(--border-color));
}

.card--floating .card {
  border-color: color-mix(in srgb, var(--accent-secondary) 18%, transparent);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.18);
}

.card--premium .card {
  border: 1px solid color-mix(in srgb, var(--border-color) 48%, transparent);
  box-shadow: 0 28px 76px rgba(22, 35, 53, 0.16);
}

.card--stage .card {
  border-color: color-mix(in srgb, var(--accent-warm) 68%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-warm) 10%, transparent), var(--shadow);
}

.card {
  justify-items: var(--card-content-align);
}

.align--left .card {
  text-align: left;
}

.align--left .card-meta {
  justify-content: start;
  justify-self: stretch;
}

.align--left .prompt,
.align--left .card-subtitle,
.align--left .punchline {
  margin-right: auto;
  margin-left: 0;
}

.button--pill button,
.button--pill .primary,
.button--pill .secondary,
.button--pill .choice,
.button--pill .mode-button {
  border-radius: 999px;
}

.button--chunky button {
  min-height: 58px;
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}

.button--outlined .primary,
.button--outlined .secondary,
.button--outlined .mode-button,
.button--outlined .choice {
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, var(--border-color));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  box-shadow: none;
}

.button--outlined .primary {
  background: var(--ink);
  color: #fff;
}

.button--flat button {
  box-shadow: none;
}

.button--flat .primary {
  background: var(--ink);
}

.button--flat .secondary {
  background: var(--accent-secondary);
}

.button--refined button {
  min-height: 50px;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--ticket .eyebrow,
.badge--ticket .mode-pill,
.badge--ticket .pill {
  border-radius: 4px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}

.badge--minimal .eyebrow,
.badge--minimal .mode-pill,
.badge--minimal .pill {
  padding-inline: 0;
  background: transparent;
  color: var(--accent-secondary-dark);
  box-shadow: none;
  letter-spacing: 0.12em;
}

.badge--soft .eyebrow,
.badge--soft .mode-pill,
.badge--soft .pill {
  background: color-mix(in srgb, var(--badge-bg) 18%, var(--paper));
  color: var(--badge-text);
  box-shadow: none;
}

.badge--tab .eyebrow,
.badge--tab .mode-pill,
.badge--tab .pill {
  border-radius: var(--compact-button-radius) var(--compact-button-radius) 3px 3px;
  box-shadow: none;
}

.decor--minimal .corner,
.decor--minimal .shell-card::before,
.decor--minimal .shell-card::after,
.decor--minimal .inner-rule,
.decor--minimal .rule,
.decor--rule .corner,
.decor--paper .corner {
  display: none;
}

.decor--rule .shell-card::before,
.decor--rule .shell-card::after {
  width: 44%;
  height: 3px;
  border-radius: 999px;
}

.decor--rule .shell-card::before {
  top: 18px;
  left: 24px;
  background: var(--accent-warm);
}

.decor--rule .shell-card::after {
  right: 24px;
  bottom: 18px;
  background: var(--accent-secondary);
  transform: none;
}

.decor--blocks .corner {
  width: clamp(58px, 17vw, 94px);
  border-radius: 0;
}

.decor--bubbles .shell-card::before,
.decor--bubbles .shell-card::after {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  filter: blur(0.2px);
}

.decor--sparks .corner {
  width: clamp(54px, 16vw, 88px);
  background: transparent;
}

.decor--sparks .corner::after {
  color: var(--accent-warm);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent-warm) 40%, transparent);
}

.decor--stage .inner-rule {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent-warm) 72%, transparent);
}

.decor--stage .card-footer {
  background: color-mix(in srgb, var(--ink) 90%, black);
}

/* Shortlist visual audit fixes: restrained concept-specific systems. */
[data-theme^="shortlist-"] .brand-logo-mark {
  width: 64px;
  height: 44px;
}

[data-theme^="shortlist-"] .app-header .brand-logo-mark {
  width: 44px;
  height: 32px;
}

[data-theme^="shortlist-"] .brand-mark {
  gap: 10px;
  line-height: 0.9;
}

[data-theme^="shortlist-"] .brand-mark > span:last-child {
  font-family: var(--font-display);
  font-size: 0.96em;
  font-weight: var(--heading-weight);
  letter-spacing: 0;
}

[data-theme="shortlist-pop-notelets"] .brand-mark > span:last-child {
  color: var(--heading-color);
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--accent-warm) 34%, transparent);
}

[data-theme="shortlist-bold-family"] .brand-mark > span:last-child {
  color: var(--heading-color);
  font-size: 0.92em;
  line-height: 0.82;
  text-transform: uppercase;
}

[data-theme="shortlist-bright-social"] .brand-mark > span:last-child {
  color: var(--heading-color);
  font-weight: 850;
}

[data-theme="shortlist-illustrated-table-ritual"] .brand-mark > span:last-child,
[data-theme="shortlist-neighbourhood-ritual"] .brand-mark > span:last-child {
  color: var(--heading-color);
  font-family: var(--font-body);
  font-weight: 900;
}

[data-theme="shortlist-modern-placemat"] .brand-mark > span:last-child {
  color: var(--heading-color);
  font-family: var(--font-button);
  font-weight: 950;
  text-transform: uppercase;
}

[data-theme="default-current"] .table-object .cracker-icon,
[data-theme="default-current"] .card > .cracker-icon,
[data-theme^="shortlist-"] .table-object .cracker-icon,
[data-theme^="shortlist-"] .card > .cracker-icon {
  display: none;
}

[data-theme="default-current"] .table-object:not(.table-object-image),
[data-theme^="shortlist-"] .table-object:not(.table-object-image) {
  position: relative;
  width: 164px;
  min-height: 84px;
  border: 1px solid color-mix(in srgb, var(--border-color) 34%, transparent);
  background: color-mix(in srgb, var(--paper) 84%, white);
  box-shadow: var(--soft-shadow);
}

[data-theme="default-current"] .table-object:not(.table-object-image)::before,
[data-theme^="shortlist-"] .table-object:not(.table-object-image)::before {
  content: "";
  width: 82px;
  height: 56px;
  display: block;
  margin: 12px auto;
  background: var(--theme-logo-mark) center / contain no-repeat;
}

[data-theme^="shortlist-"] .mode-button {
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

[data-theme^="shortlist-"] .mode-button::before {
  width: 28px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 950;
  line-height: 1;
  content: "TC";
  font-size: 0.68rem;
  letter-spacing: 0;
}

[data-theme^="shortlist-"] .mode-button span,
[data-theme^="shortlist-"] .mode-button small {
  grid-column: 2;
}

[data-theme^="shortlist-"] .actions button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

[data-theme^="shortlist-"] .actions button::before {
  font-weight: 950;
  line-height: 1;
}

[data-theme^="shortlist-"] .actions button:nth-child(1)::before {
  content: "+";
}

[data-theme^="shortlist-"] .actions button:nth-child(2)::before {
  content: ">";
}

[data-theme^="shortlist-"] .actions button:nth-child(3)::before {
  content: "x";
}

[data-theme="shortlist-pop-notelets"] {
  --theme-logo-mark: url("/app/assets/theme-logos/pop-notelets.svg");
}

[data-theme="shortlist-pop-notelets"] .shell-card,
[data-theme="shortlist-pop-notelets"] .card {
  background:
    linear-gradient(178deg, transparent 0 76%, color-mix(in srgb, var(--accent-warm) 16%, transparent) 76% 87%, transparent 87%),
    var(--paper);
}

[data-theme="shortlist-pop-notelets"] .mode-button {
  border: 2px solid color-mix(in srgb, var(--border-color) 22%, transparent);
  border-radius: 16px 16px 5px 5px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--border-color) 10%, transparent);
}

[data-theme="shortlist-pop-notelets"] .mode-button:nth-child(1)::before { content: "N"; background: var(--accent-warm); color: var(--ink); }
[data-theme="shortlist-pop-notelets"] .mode-button:nth-child(2)::before { content: "F"; background: var(--accent-secondary); color: #fff; }
[data-theme="shortlist-pop-notelets"] .mode-button:nth-child(3)::before { content: "P"; background: var(--accent-primary); color: #fff; }
[data-theme="shortlist-pop-notelets"] .mode-button:nth-child(4)::before { content: "?"; background: #7652db; color: #fff; }
[data-theme="shortlist-pop-notelets"] .mode-button:nth-child(5)::before { content: "+"; background: var(--border-color); color: #fff; }

[data-theme="default-current"],
[data-theme="shortlist-bold-family"] {
  --theme-logo-mark: url("/app/assets/theme-logos/bold-family.svg?v=3");
}

[data-theme="default-current"] .shell-card,
[data-theme="default-current"] .card,
[data-theme="shortlist-bold-family"] .shell-card,
[data-theme="shortlist-bold-family"] .card {
  border-width: 3px;
  border-color: color-mix(in srgb, var(--accent-warm) 58%, transparent);
}

[data-theme="default-current"] .prompt,
[data-theme="shortlist-bold-family"] .prompt {
  max-width: min(10.5ch, 100%);
  text-transform: uppercase;
}

[data-theme="default-current"] .mode-button,
[data-theme="shortlist-bold-family"] .mode-button {
  --mode-bg: #fff8dc;
  --mode-fg: #10143a;
  --mode-muted: rgba(16, 20, 58, 0.78);
  --mode-glow: rgba(255, 255, 255, 0.18);
  min-height: 64px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  column-gap: 12px;
  align-items: center;
  border: 2px solid rgba(255, 248, 220, 0.32);
  background:
    radial-gradient(circle at 18% 20%, var(--mode-glow), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--mode-bg) 100%, white 8%), var(--mode-bg));
  background-color: var(--mode-bg);
  color: var(--mode-fg);
  box-shadow: 0 8px 0 rgba(5, 9, 31, 0.18);
  overflow: hidden;
}

[data-theme="default-current"] .mode-button::before,
[data-theme="shortlist-bold-family"] .mode-button::before {
  content: "";
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  display: block;
  justify-self: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.28),
    inset 0 -4px 0 rgba(5, 9, 31, 0.08);
  transform: rotate(-5deg);
}

[data-theme="default-current"] .mode-button small,
[data-theme="shortlist-bold-family"] .mode-button small {
  grid-column: 1;
  color: var(--mode-muted);
}

[data-theme="default-current"] .mode-button span,
[data-theme="shortlist-bold-family"] .mode-button span {
  grid-column: 1;
  color: var(--mode-fg);
}

[data-theme="default-current"] .mode-button[data-mode="quick_crackers"],
[data-theme="shortlist-bold-family"] .mode-button[data-mode="quick_crackers"] {
  --mode-bg: #ffc531;
  --mode-fg: #10143a;
  --mode-muted: rgba(16, 20, 58, 0.78);
  --mode-glow: rgba(255, 255, 255, 0.38);
}

[data-theme="default-current"] .mode-button[data-mode="family_mix"],
[data-theme="shortlist-bold-family"] .mode-button[data-mode="family_mix"] {
  --mode-bg: #00d4c4;
  --mode-fg: #071d35;
  --mode-muted: rgba(7, 29, 53, 0.76);
  --mode-glow: rgba(255, 255, 255, 0.34);
}

[data-theme="default-current"] .mode-button[data-mode="groaners"],
[data-theme="shortlist-bold-family"] .mode-button[data-mode="groaners"] {
  --mode-bg: #ff5a4d;
  --mode-fg: #10143a;
  --mode-muted: rgba(16, 20, 58, 0.78);
  --mode-glow: rgba(255, 255, 255, 0.24);
}

[data-theme="default-current"] .mode-button[data-mode="all_cards"],
[data-theme="shortlist-bold-family"] .mode-button[data-mode="all_cards"] {
  --mode-bg: #b48cff;
  --mode-fg: #10143a;
  --mode-muted: rgba(16, 20, 58, 0.78);
  --mode-glow: rgba(255, 255, 255, 0.24);
}

[data-theme="default-current"] .mode-button[data-mode="quick_crackers"]::before,
[data-theme="shortlist-bold-family"] .mode-button[data-mode="quick_crackers"]::before {
  background:
    linear-gradient(120deg, transparent 0 42%, #10143a 42% 58%, transparent 58%),
    #fff8dc;
}

[data-theme="default-current"] .mode-button[data-mode="family_mix"]::before,
[data-theme="shortlist-bold-family"] .mode-button[data-mode="family_mix"]::before {
  background:
    radial-gradient(circle at 50% 34%, #10143a 0 4px, transparent 5px),
    radial-gradient(circle at 34% 62%, #10143a 0 4px, transparent 5px),
    radial-gradient(circle at 66% 62%, #10143a 0 4px, transparent 5px),
    #fff8dc;
}

[data-theme="default-current"] .mode-button[data-mode="groaners"]::before,
[data-theme="shortlist-bold-family"] .mode-button[data-mode="groaners"]::before {
  background:
    linear-gradient(90deg, #10143a 0 36%, transparent 36% 64%, #10143a 64%),
    #fff8dc;
}

[data-theme="default-current"] .mode-button[data-mode="all_cards"]::before,
[data-theme="shortlist-bold-family"] .mode-button[data-mode="all_cards"]::before {
  background:
    radial-gradient(circle at 50% 50%, #10143a 0 4px, transparent 5px),
    conic-gradient(from 18deg, #10143a 0 12%, transparent 12% 25%, #10143a 25% 37%, transparent 37% 50%, #10143a 50% 62%, transparent 62% 75%, #10143a 75% 87%, transparent 87%),
    #fff8dc;
}

[data-theme="default-current"] .card-footer,
[data-theme="shortlist-bold-family"] .card-footer {
  background: var(--accent-warm);
  color: #10143a;
}

[data-theme="default-current"] .brand-mark {
  border: 0;
  background: transparent;
  box-shadow: none;
}

[data-theme="default-current"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(180, 140, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 82% 80%, rgba(22, 199, 196, 0.16), transparent 18rem),
    linear-gradient(180deg, #0f143e 0%, #070b28 100%);
}

[data-theme="default-current"] .app-shell {
  width: min(100%, 430px);
  padding: 14px;
}

[data-theme="default-current"] .screen:not(.shell-card) {
  min-height: calc(100dvh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

[data-theme="default-current"] .app-header {
  margin-bottom: 0;
  padding: 4px 0;
  align-items: center;
}

[data-theme="default-current"] .app-header .brand-mark {
  display: inline-grid;
  justify-content: start;
  justify-items: start;
  color: #fff8dc;
  text-align: left;
}

[data-theme="default-current"] .app-header .brand-logo-lockup {
  width: clamp(78px, 21vw, 104px);
  max-height: 92px;
}

[data-theme="default-current"] .header-actions {
  max-width: 62%;
  gap: 7px;
}

[data-theme="default-current"] .mode-pill {
  max-width: none;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--accent-warm);
  color: #10143a;
  box-shadow: none;
  letter-spacing: 0.03em;
}

[data-theme="default-current"] .share-link,
[data-theme="default-current"] .end-link {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
}

[data-theme="default-current"] .share-link {
  background: #50d46b;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="default-current"] .end-link {
  background: #fff8dc;
  color: #10143a;
  box-shadow: none;
}

[data-theme="default-current"] .card {
  min-height: min(470px, calc(100dvh - 210px));
  padding: clamp(58px, 14vw, 82px) clamp(24px, 6.5vw, 40px) clamp(68px, 15vw, 92px);
  align-content: center;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 201, 61, 0.11), transparent 8rem),
    linear-gradient(135deg, rgba(255, 248, 220, 0.98), #fff6df);
  border: 3px solid rgba(255, 201, 61, 0.72);
  border-radius: 28px;
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.18), 0 24px 54px rgba(0, 0, 0, 0.28);
}

[data-theme="default-current"] .inner-rule {
  inset: 30px;
  border-color: rgba(255, 201, 61, 0.92);
  border-radius: 22px;
}

[data-theme="default-current"] .corner {
  width: clamp(72px, 18vw, 98px);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 70% 28%, 100% 52%, 70% 74%, 100% 100%, 0 100%);
}

[data-theme="default-current"] .corner-top-left,
[data-theme="default-current"] .corner-bottom-left {
  left: 0;
}

[data-theme="default-current"] .corner-top-right,
[data-theme="default-current"] .corner-bottom-right {
  right: 0;
  transform: scaleX(-1);
}

[data-theme="default-current"] .corner-bottom-left,
[data-theme="default-current"] .corner-bottom-right {
  bottom: 0;
  transform: scaleY(-1);
}

[data-theme="default-current"] .corner-bottom-right {
  transform: scale(-1);
}

[data-theme="default-current"] .corner::after {
  content: "*";
  color: #fff8dc;
  font-size: 2.25rem;
}

[data-theme="default-current"] .card > .cracker-icon {
  display: none;
}

[data-theme="default-current"] .card-meta {
  gap: 10px;
}

[data-theme="default-current"] .pill {
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 10px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: 0.06em;
}

[data-theme="default-current"] .prompt {
  max-width: min(12.5ch, 100%);
  color: #10143a;
  font-size: clamp(1.92rem, 9.2vw, 3.65rem);
  line-height: 0.98;
  text-transform: none;
}

[data-theme="default-current"] .card-type-groaner .prompt {
  max-width: min(13.5ch, 100%);
  font-size: clamp(1.82rem, 8.3vw, 3rem);
  line-height: 1;
}

[data-theme="default-current"] .card-type-grownups_talk .prompt,
[data-theme="default-current"] .card-type-grownups_talk .grownups-card p:not(.grownups-intro):not(.grownups-adult-note) {
  font-size: clamp(1.3rem, 5.2vw, 2rem);
}

[data-theme="default-current"] .joke-prompt {
  max-width: min(14ch, 100%);
}

[data-theme="default-current"] .card-title {
  color: var(--accent-primary-dark);
  font-size: clamp(0.9rem, 3.4vw, 1.2rem);
}

[data-theme="default-current"] .card-subtitle,
[data-theme="default-current"] .grownups-intro,
[data-theme="default-current"] .grownups-adult-note,
[data-theme="default-current"] .timer-status {
  color: #217f83;
}

[data-theme="default-current"] .rule {
  width: min(230px, 68%);
}

[data-theme="default-current"] .rule::before,
[data-theme="default-current"] .rule::after {
  border-color: rgba(22, 199, 196, 0.74);
}

[data-theme="default-current"] .card-footer {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px 28px;
  background: var(--accent-warm);
  color: #10143a;
  font-size: 1.05rem;
  font-weight: 950;
}

[data-theme="default-current"] .punchline {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-warm);
  color: #10143a;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.12);
}

[data-theme="default-current"] .grownups-card section {
  border: 2px solid rgba(22, 199, 196, 0.34);
  background: rgba(255, 255, 255, 0.58);
}

[data-theme="default-current"] .timer-panel strong {
  color: #10143a;
}

[data-theme="default-current"] .timer-button {
  background: var(--accent-secondary);
  color: #10143a;
  font-weight: 950;
}

[data-theme="default-current"] .actions {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

[data-theme="default-current"] .actions button {
  min-height: 62px;
  padding: 10px 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.2);
  color: #fff8dc;
  font-size: 0.92rem;
}

[data-theme="default-current"] .actions button::before {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.26);
  font-size: 1.05rem;
  line-height: 1;
}

[data-theme="default-current"] .action-good {
  background: var(--accent-secondary);
}

[data-theme="default-current"] .action-good::before {
  content: "OK";
  color: #10143a;
  font-size: 0.68rem;
  font-weight: 950;
}

[data-theme="default-current"] .action-skip {
  background: #8b5cf6;
}

[data-theme="default-current"] .action-skip::before {
  content: ">";
  font-weight: 950;
}

[data-theme="default-current"] .action-not-us {
  background: var(--accent-primary);
}

[data-theme="default-current"] .action-not-us::before {
  content: "x";
  font-weight: 950;
}

[data-theme="default-current"] .actions.single-action {
  grid-template-columns: 1fr;
}

[data-theme="default-current"] .reveal-button,
[data-theme="default-current"] .actions .wide {
  min-height: 58px;
  border-radius: 18px;
  background: var(--accent-primary);
  color: #fff8dc;
}

[data-theme="default-current"] .reveal-button::before {
  content: "?";
  font-weight: 950;
}

[data-theme="default-current"] .start-screen {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 91, 79, 0.18), transparent 11rem),
    radial-gradient(circle at 86% 68%, rgba(22, 199, 196, 0.16), transparent 14rem),
    var(--main-card-background);
  gap: clamp(8px, 2.2vw, 14px);
  padding-top: clamp(18px, 4.5vw, 30px);
}

[data-theme="default-current"] .start-screen::before {
  width: 118px;
  height: 118px;
  border-radius: 0 0 30px 0;
  clip-path: polygon(0 0, 100% 0, 70% 28%, 100% 52%, 70% 74%, 100% 100%, 0 100%);
}

[data-theme="default-current"] .start-screen::after {
  top: 0;
  right: 0;
  bottom: auto;
  width: 124px;
  height: 124px;
  border-radius: 30px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 74%, 0 52%, 30% 28%);
  transform: none;
}

[data-theme="default-current"] .start-screen .brand-mark {
  width: min(100%, 312px);
  margin: 0 auto 2px;
  justify-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff8dc;
}

[data-theme="default-current"] .start-screen .brand-logo-lockup {
  width: min(58vw, 236px);
  max-height: 208px;
}

[data-theme="default-current"] .start-screen .eyebrow {
  background: rgba(180, 140, 255, 0.26);
  color: #fff8dc;
  box-shadow: none;
}

[data-theme="default-current"] .start-screen h1 {
  max-width: min(100%, 17ch);
  color: #fff8dc;
  font-size: clamp(1.42rem, 5.6vw, 2.45rem);
  line-height: 0.98;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

[data-theme="default-current"] .start-screen .home-copy {
  max-width: 22rem;
  color: var(--accent-secondary);
  font-size: clamp(1rem, 3.8vw, 1.34rem);
}

[data-theme="default-current"] .start-screen .table-object-image {
  width: 100%;
  max-width: 340px;
  margin: -2px auto -6px;
}

[data-theme="default-current"] .start-screen .home-family-image {
  max-height: 225px;
  object-fit: contain;
}

[data-theme="default-current"] .start-screen .home-actions {
  width: 100%;
  max-width: 360px;
  gap: 10px;
}

[data-theme="default-current"] .start-screen .primary {
  background: linear-gradient(180deg, #00a86b 0%, #007d56 48%, #006446 100%);
  background-color: #007d56;
  color: #ffffff;
  border: 2px solid rgba(255, 248, 220, 0.24);
  box-shadow: 0 11px 0 rgba(0, 0, 0, 0.22), 0 24px 38px rgba(0, 168, 107, 0.32);
  text-transform: none;
}

[data-theme="default-current"] .paywall-screen .primary {
  background: #006f4d;
  color: #ffffff;
}

[data-theme="default-current"] .start-screen .how-link {
  min-height: 42px;
  padding-inline: 22px;
  border: 2px solid var(--accent-secondary);
  border-radius: 999px;
  color: #fff8dc;
  background: rgba(5, 9, 31, 0.28);
}

[data-theme="default-current"] .start-screen .how-steps {
  padding: 14px;
  gap: 10px;
  border: 2px solid rgba(255, 201, 61, 0.9);
  background:
    linear-gradient(90deg, #ff5a4d, #ffc531 36%, #00d4c4 70%, #b48cff) top / 100% 8px no-repeat,
    linear-gradient(135deg, #fff8dc 0%, #ffffff 56%, #e9fbf8 100%);
  background-color: #fff8dc;
  box-shadow: 0 16px 34px rgba(5, 9, 31, 0.42);
}

[data-theme="default-current"] .start-screen .how-steps li {
  min-height: 48px;
  padding: 5px 0 8px;
  border-bottom: 1px solid rgba(18, 48, 74, 0.14);
}

[data-theme="default-current"] .start-screen .how-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

[data-theme="default-current"] .start-screen .how-steps strong {
  color: #12304a;
  font-size: 0.9rem;
}

[data-theme="default-current"] .start-screen .how-steps span {
  color: #24394c;
  font-size: 0.78rem;
}

[data-theme="default-current"] .start-screen .install-card {
  border: 2px solid rgba(255, 201, 61, 0.86);
  background:
    linear-gradient(90deg, rgba(0, 212, 196, 0.18), transparent 44%),
    #10143a;
  background-color: #10143a;
  box-shadow: 0 14px 30px rgba(5, 9, 31, 0.36);
}

[data-theme="default-current"] .start-screen .install-card strong {
  color: #ffffff;
}

[data-theme="default-current"] .start-screen .install-card span,
[data-theme="default-current"] .start-screen .install-card small {
  color: #fff8dc;
}

[data-theme="default-current"] .start-screen .install-card small {
  color: #ffc531;
}

[data-theme="default-current"] .start-screen .install-button {
  background: #ffc531;
  color: #10143a;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="default-current"] .start-screen .install-button:hover,
[data-theme="default-current"] .start-screen .install-button:active {
  background: #fff8dc;
}

[data-theme="default-current"] .start-screen .mode-drawer summary {
  border-color: rgba(0, 212, 196, 0.88);
  background: rgba(255, 248, 220, 0.96);
  background-color: #fff8dc;
  color: #0b4f56;
  box-shadow: 0 7px 0 rgba(5, 9, 31, 0.16), 0 16px 28px rgba(0, 212, 196, 0.14);
}

[data-theme="default-current"] .start-screen .home-microcopy,
[data-theme="default-current"] .start-screen .start-footer p,
[data-theme="default-current"] .start-screen .seo-discovery-links {
  color: rgba(255, 248, 220, 0.84);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

[data-theme="default-current"] .start-screen .terms-link:not(.how-link) {
  color: var(--accent-secondary);
}

[data-theme="default-current"] .share-modal {
  border: 2px solid rgba(255, 201, 61, 0.72);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 91, 79, 0.18), transparent 9rem),
    #111642;
  color: #fff8dc;
}

[data-theme="default-current"] .share-modal h2 {
  margin: 0 54px 0 10px;
  color: #fff8dc;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.35rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-theme="default-current"] .share-modal h2 span {
  display: block;
}

[data-theme="default-current"] .share-modal p {
  color: var(--accent-secondary);
}

[data-theme="default-current"] .share-modal .share-notice {
  color: rgba(255, 248, 220, 0.88);
}

[data-theme="default-current"] .share-close {
  background: #fff8dc;
  color: #10143a;
  border: 2px solid rgba(255, 201, 61, 0.62);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="default-current"] .qr-panel {
  border: 2px solid rgba(22, 199, 196, 0.52);
  background: #fff8dc;
}

[data-theme="default-current"] .qr-panel span {
  color: #10143a;
}

[data-theme="default-current"] .feedback-screen {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 91, 79, 0.18), transparent 12rem),
    radial-gradient(circle at 88% 78%, rgba(22, 199, 196, 0.16), transparent 12rem),
    var(--main-card-background);
}

[data-theme="default-current"] .feedback-screen h2 {
  color: #fff8dc;
  font-size: clamp(2rem, 9vw, 3.45rem);
}

[data-theme="default-current"] .summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

[data-theme="default-current"] .stat {
  min-height: 84px;
  padding: 12px 10px;
  display: grid;
  align-content: center;
  border: 2px solid rgba(255, 248, 220, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 220, 0.1);
  color: rgba(255, 248, 220, 0.72);
  text-align: center;
}

[data-theme="default-current"] .stat strong {
  color: #fff8dc;
  font-size: clamp(1.15rem, 6vw, 2rem);
}

[data-theme="default-current"] .field label {
  color: #fff8dc;
}

[data-theme="default-current"] select,
[data-theme="default-current"] textarea {
  border: 2px solid rgba(22, 199, 196, 0.45);
  background: rgba(255, 248, 220, 0.98);
}

[data-theme="default-current"] .choice {
  border: 2px solid rgba(22, 199, 196, 0.72);
  background: rgba(255, 248, 220, 0.08);
  color: #fff8dc;
}

[data-theme="default-current"] .choice[aria-pressed="true"] {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #10143a;
}

[data-theme="shortlist-bright-social"] {
  --theme-logo-mark: url("/app/assets/theme-logos/bright-social.svg");
}

[data-theme="shortlist-bright-social"] .shell-card {
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--accent-warm) 24%, transparent), transparent 11rem),
    var(--cream);
}

[data-theme="shortlist-bright-social"] .table-object {
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-secondary) 18%, white), white);
}

[data-theme="shortlist-bright-social"] .mode-button {
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 24%, transparent);
  background: #fff;
}

[data-theme="shortlist-bright-social"] .mode-button:nth-child(1)::before { content: "Q"; background: var(--accent-secondary); color: #fff; }
[data-theme="shortlist-bright-social"] .mode-button:nth-child(2)::before { content: "F"; background: var(--accent-primary); color: #fff; }
[data-theme="shortlist-bright-social"] .mode-button:nth-child(3)::before { content: "T"; background: var(--accent-warm); color: var(--ink); }
[data-theme="shortlist-bright-social"] .mode-button:nth-child(4)::before { content: "?"; background: #725cff; color: #fff; }
[data-theme="shortlist-bright-social"] .mode-button:nth-child(5)::before { content: "+"; background: var(--ink); color: #fff; }

[data-theme="shortlist-illustrated-table-ritual"] {
  --theme-logo-mark: url("/app/assets/theme-logos/illustrated-table-ritual.svg");
}

[data-theme="shortlist-neighbourhood-ritual"] {
  --theme-logo-mark: url("/app/assets/theme-logos/neighbourhood-ritual.svg");
}

[data-theme="shortlist-illustrated-table-ritual"] .shell-card,
[data-theme="shortlist-neighbourhood-ritual"] .shell-card {
  background:
    linear-gradient(90deg, rgba(49, 92, 69, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(49, 92, 69, 0.04) 1px, transparent 1px),
    var(--cream);
  background-size: 22px 22px, 22px 22px, auto;
}

[data-theme="shortlist-illustrated-table-ritual"] .home-hero::before,
[data-theme="shortlist-neighbourhood-ritual"] .home-hero::before {
  content: "PASS  TALK  PLAY";
  color: var(--accent-secondary-dark);
  font-weight: 950;
  letter-spacing: 0.12em;
}

[data-theme="shortlist-illustrated-table-ritual"] .mode-button,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button {
  border-style: dashed;
  background: color-mix(in srgb, var(--paper) 88%, white);
}

[data-theme="shortlist-illustrated-table-ritual"] .mode-button:nth-child(1)::before,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button:nth-child(1)::before { content: "P"; background: var(--accent-warm); color: var(--ink); }
[data-theme="shortlist-illustrated-table-ritual"] .mode-button:nth-child(2)::before,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button:nth-child(2)::before { content: "F"; background: var(--accent-secondary); color: #fff; }
[data-theme="shortlist-illustrated-table-ritual"] .mode-button:nth-child(3)::before,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button:nth-child(3)::before { content: "T"; background: var(--accent-primary); color: #fff; }
[data-theme="shortlist-illustrated-table-ritual"] .mode-button:nth-child(4)::before,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button:nth-child(4)::before { content: "?"; background: var(--ink); color: #fff; }
[data-theme="shortlist-illustrated-table-ritual"] .mode-button:nth-child(5)::before,
[data-theme="shortlist-neighbourhood-ritual"] .mode-button:nth-child(5)::before { content: "+"; background: var(--accent-warm); color: var(--ink); }

[data-theme="shortlist-neighbourhood-ritual"] .card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-secondary) 10%, transparent) 0 20%, transparent 20%),
    var(--paper);
}

[data-theme="shortlist-modern-placemat"] {
  --theme-logo-mark: url("/app/assets/theme-logos/modern-placemat.svg");
}

[data-theme="shortlist-modern-placemat"] .shell-card,
[data-theme="shortlist-modern-placemat"] .card {
  background:
    linear-gradient(90deg, rgba(18, 48, 74, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(18, 48, 74, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px, 18px 18px, auto;
}

[data-theme="shortlist-modern-placemat"] .table-object {
  border-style: dashed;
}

[data-theme="shortlist-modern-placemat"] .card {
  border-style: dashed;
}

[data-theme="shortlist-modern-placemat"] .prompt::after {
  content: "";
  display: block;
  width: 4.4rem;
  height: 0.24rem;
  margin: 0.22em auto 0;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--accent-primary) 0 0.5rem, transparent 0.5rem 0.75rem), var(--accent-warm);
}

[data-theme="shortlist-modern-placemat"] .mode-button:nth-child(1)::before { content: "M"; background: var(--accent-warm); color: var(--ink); }
[data-theme="shortlist-modern-placemat"] .mode-button:nth-child(2)::before { content: "F"; background: var(--accent-secondary); color: #fff; }
[data-theme="shortlist-modern-placemat"] .mode-button:nth-child(3)::before { content: "3"; background: var(--accent-primary); color: #fff; }
[data-theme="shortlist-modern-placemat"] .mode-button:nth-child(4)::before { content: "?"; background: var(--ink); color: #fff; }
[data-theme="shortlist-modern-placemat"] .mode-button:nth-child(5)::before { content: "+"; background: var(--accent-warm); color: var(--ink); }

.decor--paper .inner-rule {
  display: block;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--border-color) 68%, transparent);
}

@media (max-width: 390px) {
  .app-shell {
    padding: 12px;
  }

  .theme-review-bar {
    grid-template-columns: max-content 34px minmax(0, 1fr) 34px;
    top: 6px;
  }

  .theme-review-thumb {
    display: none;
  }

  .theme-review-kicker {
    max-width: 4.5rem;
    padding-inline: 2px;
    white-space: normal;
    line-height: 1;
  }

  .shell-card {
    min-height: calc(100vh - 24px);
    border-radius: 28px;
  }

  .start-screen {
    padding: 18px 18px 16px;
    gap: 8px;
  }

  .start-screen .brand-mark {
    font-size: 1.35rem;
  }

  .start-screen h1 {
    font-size: clamp(2.15rem, 9vw, 3.05rem);
  }

  .home-hero {
    gap: 8px;
  }

  .table-object {
    width: 142px;
    min-height: 52px;
  }

  .hero-cracker {
    width: 92px;
    height: 42px;
  }

  .home-actions {
    gap: 4px;
  }

  .pull-button {
    min-height: 52px;
  }

  .home-microcopy {
    font-size: 0.8rem;
  }

  .how-steps {
    padding: 8px;
    gap: 5px;
  }

  .how-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px;
  }

  .step-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.86rem;
  }

  .how-steps strong,
  .how-steps span {
    font-size: 0.72rem;
  }

  .card {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 64px;
    gap: 8px;
  }

  .prompt {
    font-size: clamp(1.7rem, 8vw, 3.4rem);
  }

  .home-copy {
    font-size: 1.1rem;
  }

  .mode-button {
    min-height: 52px;
  }

  .install-card {
    padding: 9px;
  }

  .app-header {
    gap: 6px;
  }

  .app-header .brand-mark {
    flex: 0 0 auto;
    gap: 4px;
    font-size: 1.08rem;
  }

  .app-header .brand-mark span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  [data-theme="default-current"] .app-header .brand-mark span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  [data-theme="default-current"] .app-header .brand-logo-mark {
    width: 42px;
    height: 32px;
  }

  [data-theme="default-current"] .app-header .brand-logo-lockup {
    width: 92px;
  }

  [data-theme="default-current"] .header-actions {
    max-width: 58%;
  }

  [data-theme="default-current"] .mode-pill {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.7rem;
  }

  [data-theme="default-current"] .share-link,
  [data-theme="default-current"] .end-link {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .app-header .cracker-icon.small {
    width: 34px;
    height: 22px;
    border-radius: 8px;
  }

  .header-actions {
    flex: 0 1 auto;
    max-width: 63%;
    gap: 4px;
  }

  .mode-pill {
    max-width: none;
    padding-inline: 8px;
    letter-spacing: 0.04em;
  }

  .share-link,
  .end-link {
    font-size: 0.7rem;
  }

  .share-link {
    width: 34px;
    aspect-ratio: 1;
    min-height: 34px;
    padding: 0;
  }

  .share-icon {
    width: 22px;
    height: 22px;
  }

  .end-link {
    min-width: 44px;
    padding-inline: 8px;
  }

  .share-modal {
    padding: 16px;
    gap: 10px;
  }

  .share-modal h2 {
    font-size: 1.9rem;
  }

  .qr-panel img {
    width: min(190px, 62vw);
  }
}

@media (min-width: 640px) {
  .app-shell {
    padding: 36px;
  }

  .button-row {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .actions .wide {
    grid-column: auto;
  }

  .tester-tools {
    grid-template-columns: 1fr max-content;
    align-items: center;
  }

  .tester-actions {
    grid-template-columns: max-content max-content;
  }
}
