  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  :root {
    --accent: #ff7c00; /* was #00a2ec */
    --secondary: #34005f;
    --neutral: #767676;
    --border: #d3d1c7;
    --border-strong: #b4b2a9;
    --surface-0: #ffffff;
    --surface-1: #f7f7f7;
    --surface-2: #eee;
    --surface-3: #e2e2e2;
    --text-primary: #1a1a19;
    --text-secondary: #5f5e5a;
    --text-muted: #888780;
    --radius: 8px;
    --accent-bg: #e6f1fb;
    --accent-text: #0c447c;
    --good: #1a7f37;
    --good-bg: #e6f6ea;

    /* --- Map: dot sizing (read once by JS at load) --- */
    --dot-radius: 1; /* base dot radius (SVG user units) on mouse/desktop, flat map */
    --dot-radius-touch: 1.5; /* base dot radius on touch/coarse-pointer devices, flat map */
    --dot-zoom-power: 0.8; /* 1 = constant apparent size regardless of zoom (current default); 0 = grows linearly with zoom; try ~0.4-0.6 for dots that grow a little */
    --dot-radius-globe: 1.1; /* base dot radius on the globe view — separate from flat since globe uses a different zoom range/mechanism entirely */
    --dot-tap-radius: 8; /* mouse: a click within this many screen px of a live dot opens it */
    --dot-tap-radius-touch: 24; /* touch: a tap within this many screen px of a live dot opens it */
    --dot-zoom-power-globe: 0; /* same idea as --dot-zoom-power, tuned independently for globe */

    /* --- Map: colours (read once by JS at load) --- */
    --map-ocean: #b8d8ec; /* flat map ocean + lakes + globe sphere fill */
    --map-space: #0a0a0f; /* globe view background (space) */
    --map-city-live: #e84200; /* still-possible city dot */
    --map-city-dead: #5a5852; /* eliminated city dot */
    --map-country-fill: #f1efe8;
    --map-line-grey: #8a8880; /* shared by country borders, equator line, tropic lines */
    --map-tool-accent: #2a78d6; /* radius/equator custom-tool circles, bands, handles */
    --map-pin: #2a78d6; /* radius/equator draggable pin marker */
    --map-ruler-line: #111111;

    /* --- Map: depth (read once by JS at load) --- */
    --vignette-color: #0b2a45; /* tint used for the edge darkening and globe shading */
    --vignette-strength: 0.35; /* opacity at the very edge (0 = off) */
    --vignette-inner: 0.45; /* 0-1: how far out from the centre the darkening starts */
    --vignette-blend: multiply; /* try: multiply, color-burn, soft-light, normal */
    --globe-shade-strength: 0.45; /* rim darkness of the lit-sphere shading on the globe */

    /* --- Eliminated dot sweep --- */
    --elim-sweep-ms: 900; /* whole west-to-east sweep */
    --elim-pulse: 1.35; /* swell size (1 = no swell) */
    --elim-pulse-ms: 160; /* swell time */
    --elim-fade-ms: 450; /* fade to grey */
    --elim-pulse-colour: #e84200; /* colour while pulsing (default: the live orange) */
    --win-fade-ms: 700; /* right guess: other dots fading out */
  }

    /* ===== Discreet sidebar scrollbar (desktop) ===== */
  /* ===== Sidebar: scrolls, but with no visible scrollbar (so the padding stays even) ===== */
  .sidebar {
    scrollbar-width: none;            /* Firefox, Chrome/Edge 121+, Safari 18.2+ */
  }

  .sidebar::-webkit-scrollbar {
    display: none;                    /* older Safari and Chrome */
  }

  @media (pointer: coarse) {
    /* tweak touch-specific sizing here without touching JS */
  }


  * {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }

  html,
  body {
    height: 100%;
  }

  /* Pinch-zooming the whole page is what leaves it stuck off-screen. This allows normal scrolling
     but not page zoom; the map still pinch-zooms itself, as it handles its own gestures. */
  html {
    touch-action: pan-x pan-y;
  }

  body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: var(--surface-0);
    color: var(--text-primary);
    overflow: hidden;
  }

  h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  h2 {
    line-height: 1.15;
  }

  img {
    display: block;
  }

  strong, b {
    font-weight: 600;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .separator {
    color: var(--border);
  }

  .primary {
    background: var(--accent) !important;
    color: var(--surface-0) !important;
  }

  button, .btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    background: var(--surface-3);
    border: 0;
    border-radius: var(--radius);
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-primary);
  }

  button:hover,
  .btn:hover {
    opacity: 0.85;
  }

  button:active {
    transform: scale(0.98);
  }

  button:disabled {
    opacity: 0.5;
    cursor: default;
  }

  select,
  input[type=range] {
    font-family: inherit;
  }

  .app {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 450px;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
  }

  .sidebar > * {
    flex-shrink: 0; /* never squash the header or cards to make room */
  }

  header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .header-row {
    display: flex;
    justify-content: space-between;
    
  }

  .status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    width: 180px;
  }

  /* ===== Burger menu ===== */
  .header-row {
    position: relative;
    z-index: 50;
    --menu-gutter: 30px;          /* matches .sidebar padding, so the panel spans the full sidebar */
  }

  .burger {
    position: relative;
    top: -2px;
    right: -8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .burger span {
    position: absolute;
    left: 8px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
  }

  .burger span:nth-child(1) { top: 10px; }
  .burger span:nth-child(2) { top: 16px; }
  .burger span:nth-child(3) { top: 22px; }

  .menu-open .burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

  /* Everything above the bottom of the logo row is clipped, so the panel
     looks like it slides out from under the logo and burger */
  .menu-drop {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--menu-gutter));
    right: calc(-1 * var(--menu-gutter));
    height: 0;
    clip-path: inset(0 -40px -200vh -40px);
    pointer-events: none;
  }

  .menu-panel {
    display: flex;
    flex-direction: column;
    padding: 20px var(--menu-gutter) 12px;
    background: var(--surface-0);
    box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), visibility 0s linear 0.35s;
    visibility: hidden;
  }

  .menu-open .menu-panel {
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), visibility 0s;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.18);
  }

  .menu-item {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
  }

  .menu-item + .menu-item {
    border-top: 1px solid var(--border);
  } 


  /* ===== Daily / practice line under the logo ===== */
  .mode-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-size: 13px;
    
  }

  .mode-line .mode-name {
    font-weight: 600;
  }

  .mode-line .mode-link {
    color: var(--text-secondary);
    text-decoration: none;
  }

  .mode-line .mode-link:hover {
    text-decoration: underline;
  }

  .stat-label {
    font-weight: 600;
    font-size: 18px;
    margin-top: 16px;
  }

  .stat-label span:first-child {
    border-right: 1px solid var(--border);
    padding-right: 10px;
    margin-right: 10px;
  }

  .stat-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 16px;
  }

  /* Game panels */

  .view-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .view-btn {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--neutral);
    cursor: pointer;
  }

  .view-btn.active {
    color: var(--accent);
  }

  .history-view {
    display: flex;
    flex-direction: column;
  }

  .history-row {
    display: flex;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
  }

  .history-move {
    flex-basis: 5%;
    font-weight: 700;
    color: var(--text-secondary);
  }

  .history-name {
    flex-basis: 70%;
    color: var(--text-primary);
  }

  .history-result {
    font-weight: 600;
  }

  .history-result.yes {
    color: var(--good);
  }

  .history-result.no {
    color: var(--text-secondary);
  }

  .history-elim {
    flex-basis: 25%;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: right;
  }

  .history-empty {
    font-size: 13px;
    color: var(--text-secondary);
  }

  /* ===== Move results in History and the map toast =====
     Green = true / inside, orange = false / outside. Add anywhere outside the media queries. */
  .move-result {
    font-weight: 700;
  }
 
  .history-name .res-true { color: var(--good); }
  .history-name .res-false { color: var(--accent); }
 
  /* Brighter versions for the dark toast */
  .map-toast .res-true { color: #5fd38a; }
  .map-toast .res-false { color: #ff9a3c; }
 
  /* View score / Play again / Practice at the top of History once the game is over.
     Replaces the old .history-play-again rule. */
  .history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
  }
 
  .history-actions button {
    flex: 1 1 auto;
  }

  .add-card-btn {
    background: var(--surface-2);
    font-size: 12px;
    padding: 8px;
  }

  .colour-option-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
  }

  .colour-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    background: var(--surface-2);
  }

  .colour-option.selected {
    background: var(--accent-bg);
    border-color: var(--accent);
  }

  .colour-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 0.5px solid var(--border-strong);
    flex-shrink: 0;
  }

  .confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
  }

  .confirm-box {
    background: var(--surface-0);
    border-radius: 12px;
    padding: 22px;
    max-width: 320px;
    text-align: center;
  }

  .confirm-box p {
    font-size: 14px;
    margin: 0 0 16px;
  }

  .confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .confirm-actions button {
    padding: 8px 16px;
  }

  .confirm-actions .confirm-yes {
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
  }

  .grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 140px;
    background: var(--surface-0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6) translateY(-24px);
    transition: opacity .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  }

  .card-box.played {
    background: var(--surface-1);
  }

  .card-box.dealt {
    opacity: 1;
    transform: none;
  }

  .card-box.just-swapped {
    animation: swapPulse 2.4s ease-out;
  }

  @keyframes swapPulse {
    0% {
      box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(0, 0, 0, 0.1);
    }

    100% {
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
  }

  .card-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 4px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--surface-2);
  }

  .card-label {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    /*text-wrap: pretty;*/
  }

  .card-label.played-text {
    color: var(--text-secondary);
  }

  .slider-view {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
  }

  .slider-nav {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .slider-nav svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
  }

  .slider-card {
    width: 250px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
  }

  .slider-card .card-category {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .slider-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-2);
    margin: 0 auto 20px;
  }

  .slider-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    text-wrap: balance;
    margin: 0 0 12px;
  }

  .slider-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px;
  }

  .slider-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 6px;
  }

  .slider-result {
    background: var(--accent-bg);
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius);
    display: inline-block;
  }

  .card-input {
    margin-bottom: 10px;
  }

  .card-input select,
  .card-input input[type=range] {
    width: 100%;
  }

  /* ===== Card inputs: consistent look on iOS / Android / desktop =====
     iOS draws its own grey pill for <select>; appearance:none removes that so our styles apply.
     16px text stops iOS zooming the page when a select is tapped. */
  .card-input select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text-primary);
    background-color: var(--surface-0);
    /* chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f5e5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px 36px 10px 12px;
    cursor: pointer;
  }

  .card-input select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 124, 0, 0.2);
  }

  /* Single-handle range sliders (the two-handle ones already use .range2-track) */
  .card-input > input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    margin: 0;
  }

  .card-input > input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: var(--border-strong);
  }

  .card-input > input[type=range]::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: var(--border-strong);
  }

  .card-input > input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7.5px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
  }

  .card-input > input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
  }

  .play-btn {
    width: 100%;
    margin-top: 8px;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
  }

  .swap-card-btn {
    width: 100%;
    margin-top: 8px;
  }

  .swap-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .map-col {
    flex: 1;
    min-width: 340px;
    height: 100vh;
    position: relative;
  }

  #map {
    width: 100%;
    height: 100%;
  }

  #map svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* ===== Map buttons (Flat / Globe / Ruler) as icons ===== */
  .map-toggle {
    display: flex;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
 
  .map-toggle button {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease-in-out;
  }
 
  .map-toggle button:hover {
    color: var(--text-primary);
  }
 
  .map-toggle button.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.1);
    border: none;
  }
 
  .map-icon {
    width: 100%;
    height: 100%;
    overflow: visible;                    /* don't clip the stroke at the edges */
  }

  .radius-close {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0.5px solid var(--border-strong);
    background: var(--surface-2);
    font-size: 12px;
    line-height: 1;
    padding: 0;
    display: none;
    z-index: 7;
    cursor: pointer;
  }

  .guesses-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: -12px 0 16px;
  }

  .range2-track {
    position: relative;
    height: 28px;
    --thumb-half: 7px;            /* half the handle width: app.js uses this to place the orange fill */
  }

  .range2-track::before {
    content: '';
    position: absolute;
    top: 14px;
    left: var(--thumb-half);
    right: var(--thumb-half);
    height: 3px;
    border-radius: 2px;
    background: var(--border-strong);
  }

  .range2-fill {
    position: absolute;
    top: 14px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    pointer-events: none;
  }

  .range2-track input[type=range] {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    margin: 0;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
  }

  .range2-track input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
  }

  .range2-track input[type=range]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
  }

  /* ===== Touch screens: easier-to-grab slider handles =====
     The dots look the same as on desktop. Each handle is a larger, see-through circle with the
     orange dot painted in its centre, so the area you can touch is about 32px across.
     (box-shadow / background-color are reset because iPhone Safari adds its own white disc and shadow.) */
  @media (pointer: coarse) {
    /* single-handle sliders: 18px dot, 34px touch area */
    .card-input > input[type=range] {
      height: 40px;
    }

    .card-input > input[type=range]::-webkit-slider-thumb {
      width: 34px;
      height: 34px;
      margin-top: -15.5px;
      border: none;
      box-shadow: none;
      background: radial-gradient(circle, var(--accent) 0 9px, transparent 9.5px);
    }

    .card-input > input[type=range]::-moz-range-thumb {
      width: 34px;
      height: 34px;
      border: none;
      box-shadow: none;
      background: radial-gradient(circle, var(--accent) 0 9px, transparent 9.5px);
    }

    /* two-handle sliders: 14px dots, 32px touch area */
    .range2-track {
      --thumb-half: 16px;
      height: 40px;
    }

    .range2-track::before,
    .range2-fill {
      top: 19px;
    }

    .range2-track input[type=range] {
      top: 0;
      height: 40px;
    }

    .range2-track input[type=range]::-webkit-slider-thumb {
      width: 32px;
      height: 32px;
      border: none;
      box-shadow: none;
      background: radial-gradient(circle, var(--accent) 0 7px, transparent 7.5px);
    }

    .range2-track input[type=range]::-moz-range-thumb {
      width: 32px;
      height: 32px;
      border: none;
      box-shadow: none;
      background: radial-gradient(circle, var(--accent) 0 7px, transparent 7.5px);
    }
  }

  .hover-label {
    position: absolute;
    pointer-events: none;
    background: var(--surface-2);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, -130%);
    z-index: 5;
    white-space: nowrap;
  }

  .map-toast {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 20px);
    background: #1c1b19;
    color: #f4f1e8;
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  #map.ruler-active {
    cursor: crosshair;
  }

  #map.ruler-active circle.city {
    cursor: crosshair !important;
  }

  .ruler-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
  }

  .ruler-measure-label {
    position: absolute;
    pointer-events: none;
    background: rgba(244, 241, 232, 0.92);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #111111;
    transform: translate(-50%, -50%);
    z-index: 9;
    white-space: nowrap;
    display: none;
  }

  .info-box {
    position: absolute;
    background: var(--surface-2);
    border: 0.5px solid var(--border-strong);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 20;
    width: 240px;
    display: none;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 0.5px solid var(--border);
  }

  .info-row:last-of-type {
    border-bottom: none;
  }

  .info-label {
    color: var(--text-secondary);
  }

  .info-value {
    font-weight: 600;
    text-align: right;
  }

  .info-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .flag-swatch {
    display: inline-block;
    width: 42px;
    height: 26px;
    border: 0.5px solid var(--border-strong);
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
  }

  span.flag-emoji {
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    border: none;
  }

  .guess-btn {
    width: 100%;
    margin-top: 10px;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
  }

  .info-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 14px;
    padding: 2px 6px;
  }

  /* ===== End-game modal: close button ===== */
  .win-end {
    position: relative;
  }

  .win-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
  }

  .win-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .win-actions > button {
    padding-left: 14px; 
    padding-right: 14px; 
    white-space: nowrap; 
    min-width: 0; 
  }

  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 350ms ease;
  }

  .modal-overlay.show {
    opacity: 1;
  }

  .win-modal {
    background: var(--surface-0);
    border-radius: 10px;
    padding: 30px 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
  }

  .swap-choice-modal {
    max-width: 760px;
    position: relative;
  }

  .swap-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
  }

  .swap-close-btn:hover {
    color: var(--text-primary);
  }

  .swap-choice-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
  }

  .swap-choice-row .card-box {
    flex: 1 1 0;
    min-width: 0;
    opacity: 1;
    transform: none;
  }

  .swap-mini-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .swap-mini-slider .slider-card {
    cursor: default;
  }

  .swap-choice-row .card-box {
    cursor: default;
    display: flex;
    flex-direction: column;
  }

  .swap-choice-desc {
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-secondary);
    margin: 6px 0 0;
    flex: 1;
  }

  .swap-choice-count {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 8px 0 0;
  }

  .swap-select-btn {
    width: 100%;
    margin-top: 10px;
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    font-weight: 500;
  }

  .swap-select-btn:hover {
    filter: brightness(1.08);
  }


  /* End-game modal: full-bleed 2:1 photo, text below */
  .win-end {
    padding: 0;
    overflow-x: hidden;
  }

  .win-end .win-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    background: var(--surface-1);
  }

  .win-body {
    padding: 20px 28px 28px;
  }

  .win-place {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neutral);
    margin: 0 0 6px;
  }

  .win-end .win-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
  }

  .win-end .win-score {
    color: var(--accent);
    white-space: nowrap;
  }

  .win-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
  }

  .win-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
  }

  .win-photo {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    background: var(--surface-1);
  }

  .win-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
    text-align: center;
  }

  .win-sub {
    text-align: center; 
    margin-bottom: 15px;
    text-wrap: balance;
  }

  .win-score {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 14px;
  }

  .win-blurb {
    font-size: 13px;
    text-align: center;
    text-wrap: pretty;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .play-again-btn {
    background: var(--accent);
    color: white;
  }

  /* ===== Intro modal ======================== */
  .intro-modal { 
    font-size: 15px; 
    padding: 30px;
    max-width: 450px;
  }

  .intro-modal p {
    margin-bottom: 10px;
  }
  
  .intro-modal .win-title {
    text-align: center;
  }
  
  .intro-lead { 
    font-weight: 600;
  }
  
  .intro-steps { 
    margin: 0 0 14px; 
    padding-left: 22px; 
    line-height: 1.45; 
  }
  
  .intro-steps li { 
    margin-bottom: 8px; 
  }
  
  .intro-tour {
    width: 100%; 
    margin-top: 8px; 
  }

  .action-buttons {
    display: flex;
    gap: 16px;
  }

  /* ===== Leaderboard view (sidebar tab) ===== */
  .leaderboard-view {
    font-size: 13px;
  }

  .lb-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .lb-head h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
  }

  .lb-date,
  .lb-foot,
  .lb-status {
    color: var(--text-secondary);
  }

  .lb-foot .lb-flag {
    margin-left: 4px;
  }

  .lb-foot a:hover {
    text-decoration: underline;
  }

  .lb-status {
    margin: 8px 0;
  }

  .lb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
  }

  .lb-table th,
  .lb-table td {
    text-align: center;
    width: 15%;
    padding: 6px;
    border-bottom: 1px solid var(--border);
  }

  .lb-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
  }

  .lb-table th:nth-child(-n + 2),
  .lb-table td:nth-child(-n + 2) {
    text-align: left;
    padding-right: 8px;
  }

  .lb-table th:nth-child(1),
  .lb-table td:nth-child(1) {
    width: 6%;
  }

  .lb-table th:nth-child(2),
  .lb-table td:nth-child(2) {
    width: 55%;
  }
  
  .lb-table th:last-child,
  .lb-table td:last-child {
    text-align: right;
  }

  .lb-table tr.lb-me td {
    background: var(--surface-1);
  }

  .lb-you {
    font-weight: 600;
    margin: 6px 0;
  }

  .lb-name-form {
    background: var(--surface-1);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
  }

  .lb-name-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .lb-name-form input,
  .lb-name-form select {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 14px;              /* stops iOS zooming in */
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background-color: var(--surface-0);
  }

  .lb-name-actions {
    display: flex;
    gap: 8px;
  }

  .lb-name-actions button {
    width: auto;
    margin: 0;
    padding: 8px 16px;
  }

  .lb-flag {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  }

  .lb-error {
    color: #b43c3c;
    margin: 6px 0 0;
  }

  .lb-error:empty {
    display: none;
  }

  .lb-see-all { 
    margin: -8px 0 12px; 
  }

  .lb-link {
    background: none; 
    border: 0; 
    padding: 4px; 
    cursor: pointer;
    font: inherit; 
    font-weight: 600; 
    color: var(--accent);
  }

  .lb-link:hover { 
    text-decoration: underline; 
  }

  .lb-more {
    text-align: center;
  }

  .lb-jump {
    position: sticky; 
    bottom: 12px;
    display: flex; 
    justify-content: center;
    pointer-events: none; /* only the button itself is clickable */
  }

  .lb-jump-btn {
    pointer-events: auto;
    background: var(--accent); 
    color: #fff;
    border: 0; 
    border-radius: 10px; 
    padding: 8px 18px;
    font: inherit; 
    font-weight: 600; 
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }

  @media (max-width: 900px) {
    .lb-jump {
      position: fixed;
      left: 0; right: 0;
      bottom: calc(16px + env(safe-area-inset-bottom));
      z-index: 50;
    }
  }

  /* ===== Leaderboard: Today / Yesterday switch, yesterday's place, unregistered players ===== */
  .lb-day {
    margin: -2px 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .lb-day .lb-flag {
    margin: 0 5px 0 2px;
    vertical-align: -2px;
  }

  .lb-sep {
    margin: 0 10px;
    color: var(--border);
  }

  .lb-day-link {
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
  }

  @media (hover: hover) {
    .lb-day-link:hover {
      color: var(--accent);
    }
  }

  .lb-others {
    margin: 10px 0 5px; 
    font-size: 13px; 
    color: var(--text-secondary); 
  }

  /* ===== Leaderboard invitation toast (same look as the achievement toasts) ===== */
  .ach-notice { 
    cursor: pointer;
  }

  .ach-notice-badge {
    flex: 0 0 44px; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--accent); 
    color: #fff; font-weight: 600; 
    font-size: 15px;
  }
  .ach-notice-go {
    margin-left: auto; 
    padding-left: 8px; 
    font-size: 26px; 
    line-height: 1; 
    color: var(--accent); 
  }

  /* === Footer ========================= */

   footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--neutral);
  }

  *:has(+ footer) {
    margin-bottom: 30px; /* minimum space above the footer, on every page */
  }


  @media (max-width: 1600px) {
    :root {
      --dot-radius: 1;
      /* base dot radius (SVG user units) on mouse/desktop, flat map */
      --dot-radius-touch: 1.2;
      /* base dot radius on touch/coarse-pointer devices, flat map */
      --dot-zoom-power: 0.7;
      /* 1 = constant apparent size regardless of zoom (current default); 0 = grows linearly with zoom; try ~0.4-0.6 for dots that grow a little */
      --dot-radius-globe: 1.1;
      /* base dot radius on the globe view — separate from flat since globe uses a different zoom range/mechanism entirely */
      --dot-zoom-power-globe: -0.4;
      /* same idea as --dot-zoom-power, tuned independently for globe */
    }
  }


  @media (min-width: 901px) {
    html,
    body {
      height: 100%;
      overflow: hidden;
      overscroll-behavior: none;
    }
 
    .app {
      position: fixed;
      inset: 0;
      height: auto;
    }
 
    .sidebar,
    .map-col {
      height: 100%;
    }
  }


  @media (max-width: 900px) {
    :root {
      --dot-radius-touch: 1.5;
      /* base dot radius on touch/coarse-pointer devices, flat map */
      --dot-zoom-power: 0.5;
      /* 1 = constant apparent size regardless of zoom (current default); 0 = grows linearly with zoom; try ~0.4-0.6 for dots that grow a little */
      --dot-radius-globe: 1.5;
      /* base dot radius on the globe view — separate from flat since globe uses a different zoom range/mechanism entirely */
      --dot-zoom-power-globe: -0.5;
    }

    html,
    body {
      height: auto;
      overflow: auto;
    }

    h2 {
      font-size: 1.3em;
    }

    .app {
      width: 100%;
      height: auto;
      flex-direction: column;
      height: auto;
      overflow: visible;
      padding: 0;
    }

    .sidebar {
      flex: none;
      width: 100%;
      height: auto;
      overflow: visible;
      padding: 20px;
      display: contents;
    }

    header {
      order: -1;
      padding: 15px 20px;
      margin-bottom: 0;
      border: 0;
    }

    header { 
      position: relative; 
      z-index: 50; 
    }
    .header-row { 
      --menu-gutter: 20px;  /* matches mobile header padding */
    }   


    .mode-line {
      margin: 0;
    }

    .status-col {
      justify-content: center;
    }

    .logo {
      display: none;
    }

    .stat-label {
      font-size: 17px;
      margin-top: 8px;
    }

    .view-btn {
      font-size: 13px;
    }

    .game-panels {
      order: 3;
      padding: 20px;
    }

    .grid-view {
      margin-bottom: 0;
      gap: 12px;
    }

    .card-box {
      min-height: 130px;
      padding: 15px 8px;
    }

    .card-category {
      letter-spacing: 0.02em;
    }

    .card-label {
      font-size: 13px;
    }

    .card-icon {
      width: 45px;
      height: 45px;
    }

    .map-col {
      height: 50vh;
      flex: none;
      order: 2;
    }

    .win-body {
      padding: 20px;
    }

    /* Mobile: text on the left, buttons on the right, so Play sits above the fold */
    .slider-card.landscape {
      width: auto;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      min-height: 0;
      text-align: left;
      padding: 16px;
    }

    /*.slider-info {
      flex: 1 1 0;
      min-width: 0;
      align-self: stretch;
    }*/

    .slider-card.landscape .slider-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .slider-head .slider-icon {
      width: 44px;
      height: 44px;
      margin: 0;
      flex-shrink: 0;
    }

    .slider-head .card-category,
    .slider-card .card-category {
      margin: 0;
      white-space: nowrap;
    }

    .slider-title {
      text-wrap: wrap;
      margin: 0 0 8px;
    }

    .slider-desc {
      margin: 0;
      text-wrap: pretty;
    }

    .card-input {
      margin: 10px 0;
    }

    .slider-actions {
      flex: 0 0 auto;
      width: 100%;
      display: flex;
      gap: 8px;
    }

    .slider-actions .play-btn,
    .slider-actions .swap-card-btn {
      margin-top: 0;
      white-space: nowrap;
      padding: 8px 12px;
    }

    /* Cards with a slider or dropdown need the full width for the control */
    .slider-card:has(.card-input) .slider-actions {
      flex-basis: 100%;
    }

    /* Slimmer arrows so the card gets more width */
    .slider-view {
      gap: 0;
    }

    .slider-nav {
      width: 24px;
      padding: 2px;
    }

    .slider-nav.prev {
      left: -10px;
    }

    .slider-nav.next {
      right: -10px;
    }

    footer {
      order: 4;
      margin: 0 20px;
      padding: 20px 0 30px;
    }

  }

  /* ===== Card categories =====
     Each card carries class cat-<category>. Set the colour once here; the icon and the
     category label both pick it up. Icon artwork lives in js/icons.js. */
  .card-box,
  .slider-card {
    --cat-color: var(--accent);
  }

  .cat-identity {
    --cat-color: #7a4fd1;
  }

  .cat-nature {
    --cat-color: #2e9e5b;
  }

  .cat-geography {
    --cat-color: #2a78d6;
  }

  .cat-proximity {
    --cat-color: #e0662b;
  }

  .cat-latitude {
    --cat-color: #1f9fb3;
  }

  .cat-climate {
    --cat-color: #d6a31e;
  }

  .cat-population {
    --cat-color: #c2417a;
  }

  .cat-elevation {
    --cat-color: #7d6a4f;
  }

  .cat-place-name {
    --cat-color: #4f5bd5;
  }

  .cat-national-flag {
    --cat-color: #d43c3c;
  }

  .cat-language {
    --cat-color: #3f8f8a;
  }

  .cat-currency {
    --cat-color: #5c8a2f;
  }

  .cat-transport {
    --cat-color: #5f6b7a;
  }

  .card-category {
    color: var(--cat-color);
  }

  /* icons are inline SVG drawn in currentColor, so they take the category colour on the white card */
  .card-icon,
  .slider-icon {
    background: none;
    border-radius: 0;
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-icon svg,
  .slider-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }


  /* ===== Tablets (iPad): pin the app to the screen so the page itself can never scroll =====
     Replaces the previous tablet snippet. In the side-by-side layout the whole app is fixed to
     the visible screen, so there's no page scroll position for Safari to get stuck in, and it's
     sized to what's actually visible (no hidden strip under the toolbars cropping Antarctica). */
  @media (min-width: 901px) {
    html,
    body {
      height: 100%;
      overflow: hidden;
      overscroll-behavior: none;
    }

    .app {
      position: fixed;
      inset: 0;
      height: auto;
    }

    .sidebar,
    .map-col {
      height: 100%;
    }
  }


  /* Stops the whole page being pinch-zoomed (the map still pinch-zooms itself) */
  html {
    touch-action: pan-x pan-y;
  }
  
  /* ===== Streak on the end-game modal (after "Found in 9 moves · 4:48") =====
   Paste into css/styles.css, near .win-meta */
.win-meta .separator {
  margin-left: 10px;
}

.win-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin: -2px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  text-decoration: none;
  vertical-align: middle;
  background: #fff;
  border: 0;
  border-radius: 999px;
}

.win-streak svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
}

@media (hover: hover) {
  .win-streak:hover {
    background: var(--surface-1);
  }
}

/* ===== Achievement toast (js/achievements.js) =====
   Slides up from the bottom when you earn an achievement; tap it to open My passport. */
.ach-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 400;                          /* above the end-game modal */
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 10px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--surface-0);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.2), opacity 0.4s ease;
}

.ach-toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ach-toast-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ach-toast-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.ach-toast-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  .ach-toast { transition: opacity 0.3s ease; transform: translate(-50%, 0); }
}


/* ===== Achievement badges and toast icon (js/achievements.js) =====
   Each icon is an SVG used as a stencil: background-color paints it.
   Locked: grey icon on a light grey roundel. Earned: white icon on the group's colour. */

/* Colours by group. They all start orange: change any of these to give a group its own colour.
   --ach-colour: the earned roundel, the group's heading and the progress bar */
.ach-streaks  { --ach-colour: var(--accent); }
.ach-scores   { --ach-colour: var(--accent); }
.ach-explorer { --ach-colour: var(--accent); }
.ach-regular  { --ach-colour: var(--accent); }
.ach-special  { --ach-colour: var(--accent); }
.ach-regions  { --ach-colour: var(--accent); }

/* Progress bars use the group colour. To keep them all orange instead, use:  :root { --ach-bar: var(--accent); } */

.ach-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--surface-3);
}

.ach-glyph {
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--text-muted);                 /* the locked icon colour */
  /* the icon file itself is set on each element by js/achievements.js */
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.is-earned .ach-icon {
  background: var(--ach-colour, var(--accent));
}

.is-earned .ach-glyph {
  background-color: #fff;
}

/* The toast: always earned */
.ach-toast .ach-toast-icon {
  background: var(--ach-colour, var(--accent));
}

.ach-toast .ach-glyph {
  background-color: #fff;
}

  /* ===== Searchable country picker (js/countries.js) ===== */
  .cty-pick {
    position: relative;
  }

  .cty-input {
    width: 100%;
    box-sizing: border-box;
  }

  .cty-pick.has-flag .cty-input {
    padding-left: 40px;
  }

  .cty-flag {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    border-radius: 2px;
    pointer-events: none;
  }

  .cty-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .cty-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
  }

  .cty-list li img {
    flex-shrink: 0;
    border-radius: 2px;
  }

  .cty-list li[aria-selected="true"] {
    background: var(--surface-2);
  }

  @media (hover: hover) {
    .cty-list li:hover {
      background: var(--surface-2);
    }
  }

  .cty-list .cty-none {
    color: var(--text-secondary);
    cursor: default;
  }
