:root {
  --navy: #0e2240;
  --navy2: #16325c;
  --gold: #d4a017;
  --gold2: #f0c94a;
  --cream: #fdf6e3;
  --wood: #7a5230;
  --wood2: #5d4023;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(160deg, var(--navy) 0%, #0a1930 100%);
  color: var(--cream);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 10px 12px 24px; }
header.site { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
header.site img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; background: var(--cream); padding: 2px; }
header.site .titles { flex: 1; }
header.site h1 { margin: 0; font-size: 20px; color: var(--gold2); letter-spacing: 0.5px; white-space: nowrap; }
header.site .sub { font-size: 11px; color: #b9c6dd; }
button.plain {
  background: var(--navy2); color: var(--cream); border: 1px solid #33507f;
  border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer;
}
button.plain:active { transform: scale(0.96); }
button.gold {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #221a04; border: none; border-radius: 10px; padding: 10px 16px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
button.gold:active { transform: scale(0.96); }
.statusbar { display: flex; gap: 8px; margin-bottom: 8px; }
.stat {
  flex: 1; background: var(--navy2); border: 1px solid #33507f; border-radius: 10px;
  padding: 6px 10px; text-align: center;
}
.stat .lab { font-size: 11px; color: #9db1d1; text-transform: uppercase; letter-spacing: 0.5px; }
.stat .val { font-size: 18px; font-weight: 800; color: var(--cream); }
.howto { font-size: 12.5px; color: #9db1d1; margin: 10px 2px 0; line-height: 1.5; }
footer { text-align: center; margin-top: 18px; font-size: 11px; color: #7488a8; }
.overlay {
  position: fixed; inset: 0; background: rgba(5, 12, 25, 0.82);
  display: flex; align-items: center; justify-content: center; z-index: 20;
}
.overlay.hidden { display: none; }
.panel {
  background: var(--navy); border: 2px solid var(--gold); border-radius: 18px;
  padding: 26px 22px; text-align: center; max-width: 320px; width: 86%;
}
.panel h2 { margin: 0 0 6px; color: var(--gold2); font-size: 26px; }
.panel p { margin: 6px 0 16px; color: #cfdaf0; font-size: 15px; line-height: 1.5; }
.panel .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
