/* ============================================================
   RESPONSIVE LAYER — single source of truth.
   Tiers: 1200 wide / 1024 tablet / 768 phone / 480 small / 380 tiny.
   Do not add @media blocks anywhere above this line.
   ============================================================ */

/* ---- WIDE — gallery drops to 2 columns ---- */
@media (max-width: 1200px) {
}

/* ---- TABLET — table tightens, genre column hides ---- */
@media (max-width: 1024px) {
  .main-content {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
  }

  .table-row {
    grid-template-columns: 2.5fr 0.6fr 1.4fr 1fr 36px;
    padding: 10px 24px;
    gap: var(--spacing-sm);
  }

  .table-row.header {
    padding: var(--spacing-xs) 24px;
  }

  /* Hide genre column on tablet */
  .table-cell.genre {
    display: none;
  }

  .hybrid-synopsis {
    -webkit-line-clamp: 3;
  }
}

/* ---- PHONE — primary mobile layout ---- */
@media (max-width: 768px) {
  /* Search clear button: 44px tap target (glyph stays centered) */
  .search-close {
    width: 44px;
    height: 44px;
    right: 0;
  }

  .search-input {
    padding-right: 48px;
  }

  /* Art scroll on phone too: one poster per screen, tap opens film */
  .gallery-view {
    gap: var(--spacing-3xl);
    padding: 0 var(--spacing-md);
  }

  /* Collapse the desktop interlock: full-width posters, no stagger, no pull-up.
     :nth-child(2n) included so this outweighs the desktop -margin rule. */
  .gallery-view .gallery-item,
  .gallery-view .gallery-item:nth-child(2n),
  .gallery-view .gallery-item:nth-child(3n + 1),
  .gallery-view .gallery-item:nth-child(3n + 2) {
    width: 100%;
    align-self: auto;
    margin-top: 0;
  }

  .gallery-overlay {
    padding: var(--spacing-sm);
  }

  .gallery-title {
    font-size: var(--font-size-md); /* full-width poster card carries a real title */
    white-space: normal;
  }

  .gallery-meta {
    font-size: var(--font-size-sm);
    gap: 4px;
  }

  .gallery-meta span:not(:last-child)::after {
    display: none;
  }

  .hybrid-view {
    padding: 0 var(--spacing-md);
    gap: var(--spacing-2xl);
  }

  /* Stacked card: the fluid clamp() column is for the two-column desktop row */
  .hybrid-item {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    height: auto;
    padding: 0;
  }

  /* Tighter title, clamped so long/short titles don't make cards uneven */
  .hybrid-title {
    font-size: var(--font-size-xl);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Footer vibe line clamped to one row for the same reason; compact tier so
     typical lines fit instead of truncating */
  .hybrid-footer {
    padding-top: var(--spacing-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-size-compact);
  }

  /* Image leads the card on phone, bleeds to the box edges */
  .hybrid-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16/9;
    order: -1;
  }

  /* Text inset from the card border — roomier than the old 16px, and the
     title gets its own air below the full-bleed image */
  .hybrid-info {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    gap: 0;
  }

  .hybrid-title {
    margin-bottom: var(--spacing-sm);
  }

  .hybrid-meta {
    flex-wrap: wrap;
    gap: 4px var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  /* Phone cards stay clean: year · genre — director/country/runtime live
     in the modal */
  .hybrid-meta span:nth-child(n + 3) {
    display: none;
  }
  .hybrid-meta span:nth-child(2)::after {
    content: none;
  }

  .hybrid-synopsis {
    font-size: var(--font-size-base);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .expanded-inner {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg) var(--spacing-md);
    gap: var(--spacing-md);
    overflow-x: hidden;
    word-wrap: break-word;
  }

  .expanded-poster {
    order: -1;
    display: flex;
    gap: var(--spacing-md);
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    margin: 0 0 var(--spacing-md);
    background: transparent;
    overflow: visible;
  }

  .expanded-poster img {
    width: 108px;
    aspect-ratio: 2/3;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, var(--opacity-border));
  }

  .expanded-facts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-width: 0;
  }

  .expanded-synopsis,
  .expanded-recommendations,
  .expanded-tags {
    margin-bottom: var(--spacing-md);
  }

  .expanded-synopsis strong,
  .expanded-recommendations strong,
  .expanded-tags strong {
    margin-bottom: var(--spacing-xs);
  }

  :root {
    --spacing-xl: 20px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --page-gutter: 24px; /* scales with the vertical rhythm (~0.66 of desktop), not below it */

    /* Phone reads +1px across the whole type scale (desktop values in tokens.css) */
    --font-size-3xs: 9px;
    --font-size-2xs: 11px;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-compact: 14px;
    --font-size-base: 16px;
    --font-size-md: 17px;
    --font-size-lg: 19px;
    --font-size-xl: 25px;
    --font-size-2xl: 29px;
    --font-size-display: 33px;
    --font-size-3xl: 39px;
  }

  .logo {
    font-size: var(--font-size-xs);
    letter-spacing: var(--letter-spacing-wide);
  }

  .main-nav {
    gap: 2px;
  }

  .nav-button {
    font-size: var(--font-size-sm); /* bigger tap/read target on phone */
    padding: var(--spacing-xs) var(--spacing-sm);
    letter-spacing: var(--letter-spacing-nav);
  }

  .nav-button.search-button {
    display: none;
  }

  .nav-button.mobile-search-btn {
    display: flex;
  }

  .view-controls-bottom {
    left: calc(var(--spacing-md) + env(safe-area-inset-left, 0px));
    bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom, 0px));
  }

  .view-button {
    /* wider than tall — reads as rectangles, not squares */
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-xs);
    min-height: 44px; /* tap target */
  }

  .nav-button {
    min-height: 44px; /* tap target inside 56px header */
    display: inline-flex;
    align-items: center;
  }

  .nav-button.mobile-search-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .main-content {
    padding-top: calc(var(--header-height) + var(--spacing-md));
  }

  .table-row {
    grid-template-columns: 1fr auto 36px;
    padding: 10px 16px;
    min-height: 40px;
    gap: var(--spacing-lg);
  }

  .table-row.header {
    top: var(--header-height);
    padding: var(--spacing-xs) 16px;
    gap: var(--spacing-lg);
  }

  .table-cell:not(.title):not(.year):not(.expand) {
    display: none;
  }

  .table-cell.year {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, var(--opacity-quiet));
    text-align: right;
    padding-right: var(--spacing-md);
  }

  .table-cell.expand {
    padding-left: var(--spacing-sm);
  }

  .filter-sidebar {
    width: 100%;
    border-left: none;
    background: rgb(10, 10, 10);
  }

  /* Drawer is full-screen on phone: floating controls would sit on top of it */
  .filter-sidebar ~ .view-controls-bottom,
  .filter-sidebar ~ .recommend-fab {
    display: none;
  }

  .main-content.filter-open {
    margin-right: 0;
    display: none;
  }

  .movie-modal-inner {
    grid-template-columns: 1fr;
  }

  /* Unwrap the aside so poster and actions can reorder independently:
     backdrop stays a hero up top, actions drop to the very bottom instead of
     wedging between the backdrop and the title. */
  .movie-modal-aside {
    display: contents;
  }

  .movie-modal-poster {
    width: 100%;
    max-width: none;
    aspect-ratio: 16/9;
    margin: 0 auto;
    order: -1;
  }

  /* actions row layout lives after the base rules (below) so it isn't clobbered
     by source order — media queries add no specificity */

  .submit-button {
    width: 100%;
  }

  .recommend-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
  }

  .recommend-modal-content {
    max-width: 100%;
    margin: 0;
    max-height: 100vh;
    max-height: 100dvh; /* full sheet — matches the other mobile modals */
    border: none;
  }

  .recommend-modal-inner {
    padding: 36px 24px 28px;
  }

  .recommend-form .form-group input,
  .recommend-form .form-group textarea,
  .recommend-form .form-group select {
    padding: 8px 10px;
    font-size: var(--font-size-md);
  }

  .recommend-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tournament-champion-split {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }

  .tournament-champion-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-border));
  }

  .tournament-champion-right {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .tournament-champion-title {
    font-size: var(--font-size-xl);
  }

  /* Stack: hero band on top, content column below (left-aligned) */
  .season-result-left {
    flex-basis: 38vh;
  }

  /* On mobile the hero becomes a full-bleed band — drop the desktop inset */
  .season-result-left {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, var(--opacity-border));
  }

  .season-result-hero-img {
    border: none;
  }

  /* Text sits below the image here, so the overlay earns a bottom fade */
  .season-result-hero-overlay {
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 40%);
  }

  .season-result-sign {
    font-size: var(--font-size-xl);
  }

  .season-result-right {
    padding: var(--spacing-xl) var(--spacing-lg);
    justify-content: flex-start;
    gap: var(--spacing-lg);
    text-align: left;
  }

  .season-result-reading {
    font-size: var(--font-size-md);
    max-width: none;
  }

  .season-result-title {
    font-size: var(--font-size-xl);
  }

  .season-result-right .quiz-buttons {
    align-items: center;
  }

  .tarot-spread-cards {
    gap: var(--spacing-sm);
  }
  .tarot-spread-card-img {
    width: 108px;
  }
  .tarot-spread-pos-top {
    margin-bottom: var(--spacing-sm);
  }
  .tarot-spread-card-name {
    font-size: var(--font-size-xs);
  }

  .tarot-reading-split {
    grid-template-columns: 1fr;
    grid-template-rows: 35vh 1fr;
  }

  .tarot-reading-left-text {
    padding: var(--spacing-lg) var(--spacing-lg);
  }

  .tarot-reading-cardname {
    font-size: clamp(22px, 6vw, 32px);
  }

  .tarot-reading-right-scroll {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  }

  .tarot-reading-nav-bar {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .tarot-picker-prompt {
    font-size: var(--font-size-base);
  }

  .tarot-reading-film-title {
    font-size: var(--font-size-md);
  }

  .glossary-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .glossary-inner {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .glossary-section {
    padding: 0 0 var(--spacing-md);
  }

  .glossary-term-row {
    flex-direction: column;
    gap: 1px;
    font-size: var(--font-size-sm);
    padding: 4px 0;
  }

  .glossary-term-row dt::after {
    display: none;
  }

  .glossary-term-row dd {
    padding-left: 0;
  }

  .glossary-category-desc {
    font-size: var(--font-size-sm);
  }
}

/* ---- PHONE additions: tarot void ---- */
@media (max-width: 768px) {
  /* Bracket is a desktop-side companion to the duel; below the fold on mobile
     it stacks misaligned and clipped. The round header already names progress. */
  .tournament-side {
    display: none;
  }

  .tarot-void-head {
    padding-top: calc(var(--spacing-2xl) + env(safe-area-inset-top, 0px));
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
  }

  .tarot-void-prompt {
    font-size: var(--font-size-base);
  }

  .tarot-void-stage {
    perspective: 760px;
  }

  .tarot-void-card {
    width: 94px;
  }

  .tarot-void-step-line {
    width: 28px;
  }

  .tarot-void-stepper {
    gap: var(--spacing-sm);
  }

  /* Mode select: slabs become horizontal rows on phone */
  .quiz-mode-options {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .quiz-mode-card {
    text-align: left;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .quiz-mode-slab {
    min-height: 0;
    width: 72px;
    flex-shrink: 0;
    justify-content: center;
    font-size: var(--font-size-2xs);
  }
}

/* ---- SMALL PHONE — compact modals, controls, FAB ---- */
@media (max-width: 480px) {
  /* Search bar is shorter on phones (16px padding) — keep sticky offsets honest */
  :root {
    --search-height: calc(var(--spacing-md) * 2 + 40px + 1px);
  }

  .quiz-modal-content {
    width: 96%;
    min-height: 340px;
  }

  .quiz-question {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
  }

  /* Mode selection small phone */
  .quiz-mode-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .quiz-mode-title {
    font-size: var(--font-size-base);
  }

  .quiz-mode-desc {
    font-size: var(--font-size-compact);
  }

  /* Tournament mobile */
  .tournament-modal {
    max-width: 100%;
  }

  .tournament-grid {
    gap: var(--spacing-sm);
    max-width: none;
  }

  /* full 2/3 posters — the 160px cap cropped titles mid-word and the two
     cards read as different shapes */
  .tournament-poster-wrap {
    max-height: none;
  }

  .tournament-poster-wrap.no-poster {
    max-height: none;
  }

  .tournament-title {
    font-size: var(--font-size-sm);
    -webkit-line-clamp: 1;
  }

  .tournament-footer {
    gap: var(--spacing-xs);
  }

  /* Fixed-geometry bracket scrolls horizontally; start at Round 1 */
  .bracket-overview {
    justify-content: flex-start;
  }

  .bracket-col {
    width: 96px;
  }

  /* Modal */
  .quiz-inner {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  }

  /* Tarot spread */
  .tarot-card {
    width: 90px;
  }

  .tarot-card-name {
    font-size: var(--font-size-xs);
    padding: 0 8px;
  }

  .tarot-card-numeral {
    font-size: var(--font-size-2xs);
    top: 10px;
  }

  .tarot-card-meaning {
    font-size: var(--font-size-2xs);
    bottom: 10px;
    padding: 0 10px;
  }

  .tarot-card-front {
    padding: 0;
    gap: 0;
  }

  /* Reveal */
  .quiz-reveal-poster {
    width: 160px;
    height: 240px;
  }

  .quiz-reveal-title {
    font-size: var(--font-size-lg);
  }

  .movie-modal-inner {
    padding: var(--spacing-lg) var(--spacing-md);
    gap: var(--spacing-md);
  }

  .movie-modal-synopsis p,
  .movie-modal-recommendations p,
  .movie-modal-trivia p {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Recommend modal - handled in dedicated media query */

  /* Search container - reduce padding */
  .search-container {
    padding: var(--spacing-md) var(--spacing-md);
  }

  /* View controls - smaller buttons; keep the 16px gutter alignment */
  .view-controls-bottom {
    left: calc(var(--spacing-md) + env(safe-area-inset-left, 0px));
    bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom, 0px));
  }

  .view-button {
    font-size: var(--font-size-xs);
    padding: var(--spacing-sm) var(--spacing-sm);
  }

  /* FAB */
  .recommend-fab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: calc(18px + env(safe-area-inset-right, 0px));
    width: 46px;
    height: 46px;
    font-size: var(--font-size-xl);
  }

  /* Header fine-tune */
  .fixed-header {
    padding: 0 12px;
  }

  /* Glossary improvements */
  .glossary-inner {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .glossary-term-row {
    gap: var(--spacing-xs);
  }

  /* Filter sidebar - mobile sizes */
  .filter-sidebar-header {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .filter-sidebar-title {
    font-size: var(--font-size-base);
  }

  .filter-sections {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .filter-category-title {
    font-size: var(--font-size-compact);
  }

  .filter-category {
    margin-bottom: var(--spacing-sm);
  }

  .filter-items {
    gap: 4px;
  }

  .filter-item {
    padding: 8px 10px;
  }

  .filter-item-name {
    font-size: var(--font-size-md);
    line-height: 1.4;
  }

  .filter-item-count {
    font-size: var(--font-size-compact);
  }

  .male-gaze-toggle-section {
    padding: var(--spacing-sm);
  }

  .toggle-label {
    font-size: var(--font-size-compact);
  }

  .filter-sidebar-footer {
    padding: var(--spacing-sm);
  }

  .filter-group-label {
    font-size: var(--font-size-sm);
  }

  .filter-chip {
    font-size: var(--font-size-compact);
    padding: 6px 10px;
    gap: 4px;
  }
}

/* ---- TINY PHONE — safety net, extra compact ---- */
@media (max-width: 380px) {
  /* Movie modal - extra compact */
  .movie-modal-inner {
    padding: var(--spacing-md) var(--spacing-md);
  }

  .movie-modal-title {
    font-size: var(--font-size-xl);
  }

  /* Quiz - extra compact */
  .quiz-modal-content {
    width: 98%;
    min-height: 280px;
  }

  .quiz-inner {
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
  }

  .quiz-question {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
  }

  /* Tournament - extra compact */
  .tournament-modal {
    max-width: 100%;
  }

  .tournament-title {
    font-size: var(--font-size-sm);
    -webkit-line-clamp: 1;
  }

  .tournament-meta {
    font-size: var(--font-size-xs);
  }

  .tournament-poster-wrap {
    max-height: 120px;
  }

  .tournament-poster-wrap.no-poster {
    max-height: 120px;
  }

  /* Glossary */
  .glossary-modal-content {
    width: 98%;
  }

  .glossary-title {
    font-size: var(--font-size-base);
  }

  .glossary-subtitle {
    font-size: var(--font-size-xs);
  }

  /* View controls */
  .view-button {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    letter-spacing: var(--letter-spacing-body);
  }

  /* FAB */
  .recommend-fab {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-xl);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  /* Header */
  .logo {
    font-size: var(--font-size-2xs);
  }

  .main-nav {
    gap: 2px;
  }

  .nav-button {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-xs); /* vertical constant across tiers */
  }

  .nav-button.mobile-search-btn {
    min-width: 36px;
  }

  /* phone: single calm column is inherited from the 768 tier; only sizing here */
  .gallery-view {
    max-width: 480px;
    padding: 0 var(--page-gutter);
  }

  /* Filter sidebar */

  .male-gaze-toggle-section {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* ---- DESKTOP ONLY — full-bleed quiz experience ---- */
@media (min-width: 769px) {
  /* ── Foundation ── */

  /* Desktop: × hangs in the box corner; the inner grid opens enough top air
     that the button clears the poster instead of riding a chrome lane. */
  .movie-modal-inner {
    padding-top: var(--spacing-3xl);
  }

  .quiz-modal-content {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: none; /* base 90vh cap let the page ghost through at the bottom */
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    overflow-y: auto;
  }

  .quiz-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 48px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  .quiz-close {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    font-size: var(--font-size-lg);
    font-weight: var(--font-light);
    border: 1px solid rgba(255, 255, 255, var(--opacity-border));
    background: #0a0a0a;
    z-index: 20;
    border-radius: var(--border-radius);
  }

  .quiz-close:hover {
    border-color: rgba(255, 255, 255, var(--opacity-subtle));
    color: rgba(255, 255, 255, var(--opacity-secondary));
  }

  .quiz-back {
    position: fixed;
    top: 24px;
    left: 32px;
    font-size: var(--font-size-compact);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, var(--opacity-border));
    background: rgba(0, 0, 0, 0.85);
    z-index: 20;
  }

  .quiz-back:hover {
    border-color: rgba(255, 255, 255, var(--opacity-subtle));
    color: rgba(255, 255, 255, var(--opacity-secondary));
  }

  .quiz-buttons {
    max-width: 400px;
    margin: 24px auto 0;
  }

  /* ── Global reveal overrides ── */

  .quiz-reveal-film {
    margin: var(--spacing-sm) 0;
  }

  .quiz-reveal-poster {
    width: 160px;
    height: 240px;
    margin-bottom: var(--spacing-md);
  }

  .quiz-reveal-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
  }

  .quiz-reveal-meta {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
  }

  /* ── Mode Selector ── */

  .quiz-mode-select {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
  }

  .quiz-mode-select .quiz-question {
    font-size: var(--font-size-xl);
    font-weight: var(--font-regular);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.2;
    margin-bottom: 0;
    text-align: left;
  }

  /* ── The Reading ── */

  .tarot-reading-meaning {
    font-size: var(--font-size-base);
    line-height: 1.5;
  }

  /* ── The Reading — Full reading view (desktop) ── */

  .tarot-reading-fullview {
    padding: 0 !important;
    overflow: hidden;
  }

  .tarot-reading-fullview .quiz-close {
    position: absolute;
    top: 24px;
    right: 32px;
  }

  .tarot-reading-split {
    height: 100vh;
  }

  /* ── The Reading — Spread overview (desktop) ── */

  .tarot-spread-modal {
    max-width: none;
  }

  .tarot-spread-cards {
    gap: var(--spacing-2xl);
    margin: auto 0 var(--spacing-xl);
  }

  .tarot-spread-card-img {
    width: min(20vw, 220px);
  }

  .tarot-spread-card-name {
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing);
  }

  .tarot-spread-hint {
    font-size: var(--font-size-xs);
    letter-spacing: var(--letter-spacing-label);
  }

  /* ── Cosmic Weather ── */

  /* ── Split layout buttons: left-align, don't stretch ── */

  /* ── Season Result (Cosmic Weather) — desktop handled by base styles ── */

  /* ── Tournament ── */

  .tournament-modal {
    max-width: none;
    width: 100%;
    height: 100%;
    background: #000;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tournament-modal .quiz-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 32px 32px;
    justify-content: center;
    min-height: 100vh;
  }

  /* Stacked: the duel is the task and leads at full width; the live bracket
     sits below as its own centered strip. The bracket tree is ~5 columns
     wide — beside the duel it bled off the edge, so it gets its own row. */
  .tournament-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 48px);
    margin-top: var(--spacing-lg);
  }

  .tournament-side {
    width: 100%;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, var(--opacity-faint));
  }

  .tournament-side .bracket-overview {
    justify-content: center;
    margin-top: 0;
  }

  .tournament-poster-wrap {
    max-height: 400px;
  }

  .tournament-poster-wrap.no-poster {
    max-height: 400px;
  }

  /* ── Mood Match ── */

  /* ── Back button label ── */
}

/* ---- POINTER DEVICES — hover states ---- */
@media (hover: hover) and (pointer: fine) {
  html,
  body,
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

/* ---- REDUCED MOTION — must stay last ---- */
@media (prefers-reduced-motion: reduce) {
  .tarot-card-inner {
    transition: none !important;
  }

  .quiz-inner {
    animation: none !important;
  }

  .quiz-film-card {
    animation: none !important;
  }

  .quiz-reveal-line,
  .quiz-reveal-poster,
  .quiz-reveal-title,
  .quiz-reveal-meta,
  .quiz-reveal-vibe {
    animation: none !important;
    opacity: 1 !important;
  }

  .tarot-reading-backdrop,
  .tournament-champion-img,
  .tarot-spread-poster,
  .tarot-reading-left,
  .tarot-reading-right,
  .pull-instruction,
  .season-stagger,
  .season-stagger > * {
    animation: none !important;
  }
  .gallery-item .dust {
    display: none !important;
  }
  .season-result-hero-img {
    animation: none !important;
    opacity: 1 !important;
  }
  .quiz-mode-card::after,
  .scene-option::after {
    transition: none !important;
  }
  .bracket-match.active {
    animation: none !important;
  }
  .quiz-close:hover {
    transform: none !important;
  }
}
