/* Predator Fishing · reel.css — Andalusian palette: cobalt tile, gold, terracotta, sandstone */

:root {
  --cobalt: #1d4e89;
  --gold: #e0a526;
  --terracotta: #c4553a;
  --sand: #f6ead6;
  --sand-2: #efdcbd;
  --ink: #2d1710;
  --ink-soft: #5d3a2c;
  --sage: #3b7a57;
  --line: rgba(93, 58, 44, 0.22);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: #1b2c3a;
  color: var(--ink);
  font: 400 15px/1.5 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.reel {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.reel__board {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--cobalt);
  box-shadow: 0 0 0 2px var(--gold);
}

.reel__board canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 440;
  touch-action: none;
  cursor: crosshair;
  outline: none;
}

.reel__board canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }

.reel__panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(19, 40, 58, 0.66);
}

.reel__panel[hidden] { display: none; }

.reel__card {
  background: var(--sand);
  color: var(--ink);
  border-radius: 8px;
  border: 2px solid var(--ink);
  padding: 18px 20px;
  width: min(460px, 100%);
  max-height: 100%;
  overflow: auto;
  box-shadow: 6px 6px 0 var(--sand-2);
}

.reel__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.reel__card h2 {
  margin: 0 0 8px;
  font: 700 1.6rem/1.1 'Zilla Slab', Georgia, serif;
  color: var(--ink);
}

.reel__card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; }
.reel__card b { color: var(--terracotta); }

.reel__log {
  list-style: none;
  margin: 0 0 12px;
  padding: 8px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.reel__log[hidden] { display: none; }
.reel__log li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.reel__log li span:last-child { font-weight: 700; color: var(--sage); }

.reel__btn {
  font: 700 1rem/1 Figtree, system-ui, sans-serif;
  color: #fff6e6;
  background: var(--terracotta);
  border: 0;
  border-radius: 4px 14px 4px 14px;
  padding: 0.9em 1.3em;
  box-shadow: 0 3px 0 #7b2d1e;
  cursor: pointer;
}

.reel__btn:hover { background: #d4663f; }
.reel__btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #7b2d1e; }
.reel__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.reel__bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reel__lures { display: flex; flex-wrap: wrap; gap: 8px; }

.reel__lure {
  font: 600 0.85rem/1 Figtree, system-ui, sans-serif;
  color: #f4e6d0;
  background: transparent;
  border: 1.5px solid #8b6f66;
  border-radius: 999px;
  padding: 0.55em 0.95em;
  cursor: pointer;
}

.reel__lure b { color: var(--gold); margin-right: 4px; }
.reel__lure:hover { border-color: var(--gold); }
.reel__lure[aria-pressed="true"] { background: #f4e6d0; color: #1b2c3a; border-color: #f4e6d0; }
.reel__lure[aria-pressed="true"] b { color: var(--terracotta); }
.reel__lure:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.reel__help { margin: 0; font-size: 0.8rem; color: #bcd0de; }

@media (max-width: 600px) {
  .reel__help { display: none; }
  .reel__card { padding: 12px; }
  .reel__card h2 { font-size: 1.3rem; }
}
