    /* Blazter, from Typography Assets: the locked display face for country
       names. Nothing else uses it, so it loads on demand. */
    @font-face {
      font-family: 'Blazter';
      src: url('../Typography%20Assets/blazter/BLAZTER.ttf') format('truetype');
      font-weight: 400;
      font-display: swap;
    }

    /* =================== APP COLOUR TOKENS ===================
       Two locked themes: Harmattan Sand by day, Midnight Gold by night,
       switched from the pill beside the menu button. The destination cards
       paint themselves from the flag table further down and sit outside all
       of this — the flag palettes, the scene illustrations and the text
       sitting directly on that art hold their colours in both themes, so
       the artwork reads the same day or night.

       Everything else — grounds, surfaces, ink, accent, pills, elevation,
       the gallery's dark room — reads from the table below, so these two
       blocks colour the whole application.

       LIGHT — Harmattan Sand. The warmest ground the app can carry without
       arguing with the cards: a deep golden sand, an espresso accent, and
       gold on the dark pill. */
    :root {
      color-scheme: light;

      /* grounds and surfaces */
      --app-bg: #FAEED2;          /* the page itself */
      --detail-bg: #FDF7E6;       /* destination detail screen */
      --surface: #FFFCF4;         /* anything floating: sheets, rows, buttons */
      --surface-2: #F1E2BE;       /* resting chips and map tags */
      --surface-3: #FBF4E2;       /* a row under the finger */
      --hairline: #ECDDBA;        /* 1px rules and card borders */
      --handle: #DCC99F;          /* the grab handle on a sheet */

      /* ink */
      --ink: #1D1608;             /* titles and primary copy */
      --ink-rgb: 29, 22, 8;       /* same, for translucent rules */
      --ink-2: #57492F;           /* body copy */
      --ink-3: #756441;           /* meta and captions */
      --ink-4: #8C7A51;           /* eyebrows, placeholders, hints */

      /* accent */
      --accent: #7A4A1E;
      --accent-rgb: 122, 74, 30;
      --accent-press: #5E3714;    /* the accent with a finger on it */
      --accent-soft: #F3E3C0;     /* accent-tinted fill */
      --accent-soft-press: #EAD5A8;
      --accent-ink: #7A4A1E;      /* accent-toned heading on a soft fill */
      --accent-ink-2: #3A2208;    /* accent-toned body on a soft fill */
      --on-accent: #FFF3D6;       /* text sitting on the accent */

      /* the dark pill: an active chip or map tag */
      --pill-bg: #241B0C;
      --pill-ink: #FFD34D;

      /* overlays */
      --scrim: rgba(29, 22, 8, 0.42);
      --veil: rgba(29, 22, 8, 0.74);
      --toast-bg: rgba(29, 22, 8, 0.93);
      --toast-ink: #FFF5DA;
      --on-dark: #FFFFFF;

      /* elevation and the Ridge light */
      --shade-rgb: 148, 114, 46;
      --ridge-hi: rgba(255, 255, 255, 1);
      --ridge-hi-soft: rgba(255, 255, 255, 0.8);
      --ridge-lo: rgba(194, 166, 104, 0.38);
      --sweep-rgb: 255, 232, 168;   /* the light that crosses a category disc */

      /* odds and ends */
      --marker-bg: #F6E8C4;
      --dot-bg: #E8D9B4;
      --dot-skip: #CBB78A;
      --map-ground: #F3E8CB;

      /* Illustration. Every scene in the app that is NOT a destination card
         is drawn from these: the pillar tiles, tour and item thumbnails,
         photo strips, map markers, the About and Build heroes. The
         destination cards keep their flag colours and are set further
         down, untouched by either theme. */
      --art-ground: #F3E3C0;      /* behind a scene before it paints */
      --fc-veil-rgb: 255, 250, 238;  /* the scrim that lets a title read */
      --m-ink: #3B211A;           /* motif silhouettes and frames */
      --m-shadow: #5E2F1B;        /* the darkest motif detail */
      --m-wood: #A2612F;          /* main warm mass */
      --m-wood-lt: #D89A55;       /* lighter warm mass */
      --m-light: #F3E2C2;         /* cream highlight */
      --m-gold: #E0A02F;
      --m-green: #6B7A3C;
      --m-hull: #4A3520;

      /* the gallery is its own dark room in both themes */
      --gallery-bg: #171105;
      --gallery-stage: #251C0B;
      --gallery-ink: #FFF7E4;
      --gallery-meta: #A39277;
    }

    /* DARK — Midnight Gold. The app goes dark and the flag cards become the
       only bright objects on the screen. Gold accent with dark text on it,
       and elevation flips from a warm cast shadow to a thin top light. */
    body[data-theme="dark"] {
      color-scheme: dark;

      --app-bg: #14110E;
      --detail-bg: #191511;
      --surface: #221D18;
      --surface-2: #2C251E;
      --surface-3: #2A231C;
      --hairline: #332B23;
      --handle: #3E3529;

      --ink: #F7EFE2;
      --ink-rgb: 247, 239, 226;
      --ink-2: #CFC3B2;
      --ink-3: #9C9081;
      --ink-4: #948877;

      --accent: #F0B429;
      --accent-rgb: 240, 180, 41;
      --accent-press: #D69C16;
      --accent-soft: #2E2517;
      --accent-soft-press: #3A2E1B;
      --accent-ink: #F0B429;
      --accent-ink-2: #E8D6AE;
      --on-accent: #16120C;

      --pill-bg: #F0B429;
      --pill-ink: #16120C;

      --scrim: rgba(6, 5, 3, 0.62);
      --veil: rgba(6, 5, 3, 0.78);
      --toast-bg: rgba(247, 239, 226, 0.95);
      --toast-ink: #14110E;
      --on-dark: #FFFFFF;

      --shade-rgb: 0, 0, 0;
      --ridge-hi: rgba(255, 255, 255, 0.08);
      --ridge-hi-soft: rgba(255, 255, 255, 0.06);
      --ridge-lo: rgba(0, 0, 0, 0.55);
      --sweep-rgb: 240, 180, 41;

      --marker-bg: #2E2517;
      --dot-bg: #332B23;
      --dot-skip: #4A4036;
      --map-ground: #1E1A15;

      /* Illustration, inverted: the scenes go dark with the app and the
         motifs turn to cream so they still read against them. */
      --art-ground: #2A2218;
      --fc-veil-rgb: 18, 15, 11;
      --m-ink: #EADCC0;
      --m-shadow: #191209;
      --m-wood: #C07E3A;
      --m-wood-lt: #E3AC61;
      --m-light: #2A2017;
      --m-gold: #F0B429;
      --m-green: #9AA85E;
      --m-hull: #D6C29C;

      --gallery-bg: #0C0A08;
      --gallery-stage: #17130F;
      --gallery-ink: #F7EFE2;
      --gallery-meta: #9C9081;
    }

    /* =================== LOCKED DESIGN VALUES ===================
       Signed off on device. Each screen scopes its own values, so a
       shared class (.feature-card, .screen-head) can differ per screen. */
    #home-view {
      --cat-circle-size: 57px;
    }

    #destinations-view {
      --crop-offset: 22px;
      --fc-height: 200px;
      --fc-radius: 35px;
      --fc-title-size: 21px;
    }

    #grouptours-view {
      --crop-offset: 22px;
    }

    #detail-view {
      --detail-hero-h: 50%;
      --sheet-radius: 34px;
      --sheet-overlap: -8px;
      --detail-title-size: 25px;
      --thumb-h: 75px;
      --book-btn-h: 57px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      user-select: none;
    }

    html, body {
      width: 100%;
      height: 100%;
      height: 100dvh;
      overflow: hidden;
      background-color: var(--app-bg);
      position: fixed;
      overscroll-behavior: none;
      /* the grounds cross-fade when the day/night switch is tapped */
      transition: background-color 0.4s ease;
    }

    .app-container {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .view-screen {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      background: var(--app-bg);
      display: flex;
      flex-direction: column;
      transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.38s ease,
                  background-color 0.4s ease;
      will-change: transform, opacity;
    }

    .view-screen.view-hidden-left {
      transform: translateX(-100%);
      opacity: 0.85;
      pointer-events: none;
    }

    .view-screen.view-hidden-right {
      transform: translateX(100%);
      opacity: 0.85;
      pointer-events: none;
    }

    .view-screen.view-active {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }

