/* Borders: orange. An atlas-style map up top (pale sea, sand-colored land,
   the start and finish in orange), your guesses filling in green to red,
   and a plain text box with country suggestions. */

:root { --orange: #ff922b; --orange-ink: #c45a00; --sea: #8fc4e8; --land: #fbf8f1; --edge: #a9a091;
  --g: #3e9e5c; --y: #e5b53b; --o: #f08c3a; --r: #d9534f; }
.borders { --game: var(--orange); gap: 12px; padding-top: 14px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--wash); }
.mode { height: 38px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 15px var(--ui); color: var(--muted); }
.mode.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.trip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 4px 0 0; font: 700 clamp(22px, 6.5vw, 28px)/1.15 var(--slab); text-align: center; }
.trip .arrow { color: var(--orange-ink); }
.status { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

.map { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--sea); }
.map .sea { fill: var(--sea); }
.map .land { fill: var(--land); stroke: var(--edge); stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map .land.end { fill: var(--orange); stroke: var(--orange-ink); }
.map .land.green { fill: var(--g); }
.map .land.yellow { fill: var(--y); }
.map .land.orange { fill: var(--o); }
.map .land.red { fill: var(--r); }
.map .land.hint { fill: #fff7ec; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 4 3; }
.map .land.missed { fill: #fff; stroke: var(--g); stroke-width: 1.6; stroke-dasharray: 4 3; }
.map .lbl { font-family: var(--ui); font-weight: 700; text-anchor: middle; dominant-baseline: central; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; vector-effect: non-scaling-stroke; pointer-events: none; }

.ask { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ask input {
  height: 48px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px;
  font: 500 17px var(--ui); background: var(--paper);
}
.ask input:focus { outline: none; border-color: var(--orange-ink); }
.ask .btn { height: 48px; }
.sugg {
  position: absolute; left: 0; right: 0; top: 52px; z-index: 5; margin: 0; padding: 4px; list-style: none;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.sugg li { padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.sugg li:hover, .sugg li.on { background: #fff1e3; }

.guesses { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.guesses li { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; }
.guesses .green { background: var(--g); }
.guesses .yellow { background: var(--y); color: var(--ink); }
.guesses .orange { background: var(--o); color: var(--ink); }
.guesses .red { background: var(--r); }

.extra { margin: 0; text-align: center; }
.link { padding: 6px 2px; border: 0; background: none; color: var(--muted); font: 600 14px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }

/* modals */
.chips { display: flex; justify-content: center; gap: 5px; margin: -6px 0 14px; }
.chips i, .legend i { width: 22px; height: 22px; border-radius: 4px; }
.chips .green, .legend .green { background: var(--g); }
.chips .yellow, .legend .yellow { background: var(--y); }
.chips .orange, .legend .orange { background: var(--o); }
.chips .red, .legend .red { background: var(--r); }
.best { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--wash); text-align: center; font-size: 14px; }
.legend { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: 15px; }
.credit { font-size: 13px; color: var(--muted); }
