/* BK BOARD GAMES — the front page (the Game Shelf): a cosy game café, dark wood and warm paper.
   Phone first: one column; from 760px the hero and the shelf spread out. */
:root {
  --wood: #2A1E16; --wood-2: #3E2716; --plank: #6B4428; --paper: #F3E6D0; --paper-2: #FFF8EC;
  --ink: #2A1E16; --ink-soft: #5E4A36; --cream: #F3E6D0; --muted: #CDB592; --amber: #E8A23A; --gold: #F2C679; --rust: #7A3B1C;
  --serif: Fraunces, Georgia, serif; --sans: 'Work Sans', system-ui, -apple-system, sans-serif; --hand: Caveat, 'Segoe Print', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wood); color: var(--cream); font: 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--gold); }
a:hover { color: #FFE0A8; }
.hand { font-family: var(--hand); font-weight: 700; }

.top { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; min-height: 44px; }
.brand span { font: 900 21px/1 var(--serif); }
.top nav { display: flex; align-items: center; gap: 22px; }
.nav-link { display: none; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.pill:hover { background: #FFF1DA; color: var(--ink); }
.pill .dot { width: 26px; height: 26px; border-radius: 50%; background: #2F6B3A; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--sans); }

.hero { max-width: 1200px; margin: 0 auto; padding: 24px 16px 8px; display: flex; flex-direction: column; gap: 28px; }
.hero .hand { margin: 0 0 4px; font-size: 26px; color: var(--amber); }
.hero h1 { margin: 0; font: 900 clamp(42px, 11vw, 84px)/0.98 var(--serif); letter-spacing: -0.5px; }
.lead { margin: 16px 0 0; font-size: 18px; color: #D8C6A8; max-width: 520px; }

.note { background: var(--paper); color: var(--ink); padding: 20px; border-radius: 4px; transform: rotate(-1.2deg); box-shadow: 0 14px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.note label { font-size: 28px; line-height: 1; }
.note .small { font-size: 15px; color: var(--ink-soft); }
.note .row { display: flex; gap: 8px; }
.note input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-2); font: 17px var(--sans); color: var(--ink); text-transform: uppercase; }
.note input::placeholder { color: #7D6A55; text-transform: none; }
.note button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--ink); color: var(--cream); font: 600 16px var(--sans); cursor: pointer; white-space: nowrap; }
.note button:hover { background: #3E2C20; }
.note .msg { min-height: 1.2em; font-size: 14px; color: #9A2A1A; }

.shelf-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 16px 0; }
.shelf-title { margin: 0 0 18px; font: 700 15px/1 var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.shelf { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: end; padding: 0 6px; }
.game { position: relative; display: block; text-decoration: none; color: var(--ink); }
.under { display: inline-block; margin-top: 12px; font-size: 25px; color: var(--amber); }
.under.muted { color: var(--muted); }

.box-open { transform: rotate(-1deg); transition: transform .25s ease; }
.box-open:hover, .box-open:focus-visible { transform: rotate(0deg) translateY(-6px); }
.box-open .lid { display: block; background: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: 0 18px 30px rgba(0,0,0,.45), inset 0 0 0 6px var(--rust); }
.box-open img { display: block; width: 100%; height: 230px; object-fit: cover; }
.box-open .band { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; background: var(--rust); color: #FFF1DA; }
.box-open strong { font: 900 32px/1 var(--serif); }
.box-open .band span { font-size: 15px; color: #F0D7B4; }
.tag { position: absolute; z-index: 1; top: -12px; right: 14px; transform: rotate(6deg); background: var(--amber); color: var(--wood); font: 700 22px/1 var(--hand); padding: 6px 14px 8px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }

.box-wrapped { transform: rotate(1.2deg); }
.box-wrapped .paper { position: relative; display: block; height: 200px; border-radius: 6px; background: #B98F5E; box-shadow: 0 18px 30px rgba(0,0,0,.45); overflow: hidden; }
.box-wrapped .paper::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px); }
.twine-h, .twine-v { position: absolute; background: #EBDDBF; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.twine-h { left: 0; right: 0; top: 46%; height: 9px; }
.twine-v { top: 0; bottom: 0; left: 58%; width: 9px; }
.box-wrapped .label { position: absolute; left: 50%; top: 100px; transform: translate(-50%, -50%) rotate(-4deg); background: var(--paper); color: var(--ink); padding: 10px 18px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.box-wrapped .label b { font-size: 28px; line-height: 1; }
.box-wrapped .label span { font-size: 14px; color: var(--ink-soft); }

.box-empty { transform: rotate(-0.6deg); color: var(--cream); }
.box-empty .spot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 24px; border: 3px dashed #7D6A55; border-radius: 6px; text-align: center; }
.box-empty .spot b { font: 700 26px/1.1 var(--serif); }
.box-empty .spot span { font-size: 16px; color: var(--muted); max-width: 260px; }
.pill-line { margin-top: 6px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--gold); text-decoration: none; font-weight: 600; }

.plank { margin-top: 22px; height: 24px; border-radius: 3px; background: var(--plank); box-shadow: 0 12px 0 var(--wood-2), 0 22px 30px rgba(0,0,0,.5); }

.rules-wrap { max-width: 1200px; margin: 0 auto; padding: 72px 16px 56px; }
.rules { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.rules h2 { margin: 0; font: 900 40px/1.05 var(--serif); }
.rules .hand { margin: 10px 0 0; font-size: 25px; color: var(--rust); }
.rules ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 22px; }
.rules li { display: flex; flex-direction: column; gap: 4px; }
.rules li b { font: 900 21px/1.2 var(--serif); }
.rules li span { font-size: 16px; color: #4A3826; }

.foot { max-width: 1200px; margin: 0 auto; padding: 0 16px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 15px; color: #B7A285; }
.foot-name { font: 900 18px var(--serif); color: var(--cream); }
.foot nav { display: flex; gap: 22px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 760px) {
  .top { padding: 20px 24px; }
  .brand span { font-size: 25px; }
  .nav-link { display: inline-flex; }
  .hero { padding: 44px 24px 16px; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .hero-text { flex: 1 1 520px; min-width: 0; }
  .note { flex: 0 1 380px; }
  .shelf-wrap { padding: 48px 24px 0; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0 12px; }
  .box-open img { height: 270px; }
  .box-wrapped .paper { height: 330px; }
  .box-wrapped .label { top: 152px; }
  .box-empty .spot { min-height: 280px; }
  .rules-wrap { padding: 96px 24px 72px; }
  .rules { flex-direction: row; padding: 48px; gap: 40px; }
  .rules > div { flex: 1 1 260px; }
  .rules ol { flex: 2 1 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .foot { padding: 0 24px 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .box-open { transition: none; } }
