/* Switchback's daily site: the drive (index.html) and the board
   (board.html). The game's own font and mark; dark olive and paper, the
   orange of the expedition. */
@font-face { font-family: Fredoka; src: url(Fredoka.ttf); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #14130f; --panel: #1d1c17; --panel2: #24231d; --edge: rgba(236,226,200,.12);
  --paper: #ece2c8; --dim: rgba(236,226,200,.58); --faint: rgba(236,226,200,.3);
  --orange: #e2672a; --orange-soft: rgba(226,103,42,.16); --olive: #9aa067;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--paper); font: 15px/1.45 Fredoka, system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; }
.caps { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }

/* the header: mark, the day's stamp, the two pages, the time to the next
   valley, the player */
.top { display: flex; align-items: center; gap: 18px; padding: 10px 22px; flex-wrap: wrap;
  background: repeating-linear-gradient(135deg, #1a1913 0 14px, #1d1c16 14px 28px); border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { letter-spacing: .26em; font-size: 18px; }
.stamp { border: 2px solid var(--orange); color: var(--orange); padding: 2px 10px; border-radius: 4px; transform: rotate(-2deg);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.stamp:empty { display: none; }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; padding: 6px 12px; border-radius: 6px; color: var(--dim); }
nav a:hover { color: var(--paper); background: rgba(236,226,200,.06); }
nav a[aria-current] { color: var(--paper); background: rgba(236,226,200,.1); }
.spacer { flex: 1; }
.countdown { color: var(--dim); font-size: 13px; white-space: nowrap; }
.countdown b { color: var(--paper); font-weight: 500; }

/* the player: a chip, and a popover to give a name */
.who { position: relative; }
.chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--panel); color: var(--paper); }
.chip:hover, .chip[aria-expanded="true"] { border-color: rgba(226,103,42,.6); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); font-weight: 600; font-size: 13px; }
.chip .label { color: var(--dim); font-size: 13px; }
.chip .name { font-weight: 500; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); width: 310px; padding: 18px; z-index: 10;
  background: rgba(29,28,23,.98); border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.pop[hidden] { display: none; }
.pop h3 { margin: 0 0 4px; font-weight: 500; font-size: 16px; }
.pop p { margin: 0 0 14px; color: var(--dim); font-size: 13px; }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; font: inherit; color: var(--paper); background: var(--bg); border: 1px solid var(--edge);
  border-radius: 8px; padding: 8px 10px; outline: none; }
.field input:focus { border-color: var(--orange); }
.btn { font-weight: 600; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; background: var(--orange); color: #1b0d05; }
.btn.big { font-size: 17px; letter-spacing: .05em; padding: 13px 28px; border-radius: 6px; box-shadow: 0 8px 24px rgba(226,103,42,.35); }
.link { background: none; border: 0; color: var(--dim); font-size: 13px; padding: 10px 0 0; cursor: pointer; }
.link:hover { color: var(--paper); }
.pop .error { color: #e08a6a; font-size: 12px; min-height: 1em; margin-top: 6px; }

@media (max-width: 760px) { .countdown { display: none; } .top { gap: 10px; padding: 10px 14px; } }
