/* ============================================================
   velokari.pro — Cold Snap
   Winter bay: graphite panels, pale ice, one red flag
   Layout: notes column on the LEFT, board on the right
   ============================================================ */
:root {
  --ink: #16202a;
  --slate: #223243;
  --steel: #3d5165;
  --ice: #dcebf4;
  --ice-2: #c3dced;
  --frost: #f2f8fc;
  --flag: #d8382f;
  --flag-dk: #ab241c;
  --cyan: #4ea8c9;
  --soft: rgba(22,32,42,.72);
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--frost);
  background-image: linear-gradient(180deg, rgba(220,235,244,.7), rgba(242,248,252,1) 220px);
  font-family: "Trebuchet MS", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }

/* topbar: dark bar, brand left, language left of nav on the right */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 11px clamp(16px, 4vw, 46px);
  background: var(--ink);
  border-bottom: 3px solid var(--flag);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; letter-spacing: .6px; text-transform: lowercase; text-decoration: none; color: var(--frost); }
.brand img { width: 34px; height: 34px; }
.topbar nav { min-width: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a { padding: 8px 12px; text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: rgba(242,248,252,.7); }
.topbar nav a:hover { color: var(--frost); background: var(--slate); }
.topbar nav a.active { color: var(--ink); background: var(--ice); }
.language { display: inline-flex; gap: 3px; }
.language button { min-width: 34px; min-height: 28px; border: 1px solid rgba(242,248,252,.28); color: rgba(242,248,252,.78); background: transparent; font-weight: 800; cursor: pointer; font-size: 10px; letter-spacing: .5px; }
.language button:hover { border-color: var(--cyan); color: var(--frost); }
.language button.active { background: var(--flag); border-color: var(--flag); color: #fff; }

/* hero: copy on a slate panel, illustration on the ice */
.hero { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(340px,1fr); border-bottom: 3px solid var(--ink); }
.hero-copy { min-width: 0; display: grid; align-content: center; gap: 18px; padding: clamp(28px,5.5vw,64px); background: var(--slate); color: var(--frost); }
.hero-copy p { margin: 0; color: rgba(242,248,252,.8); font-size: 15px; font-weight: 500; line-height: 1.78; }
.hero-map { position: relative; display: grid; place-items: center; padding: clamp(18px,4vw,40px); background: var(--ice); }
.hero-img { width: 100%; max-width: 520px; height: auto; }
.hero-badge { position: absolute; left: clamp(14px,3vw,32px); bottom: clamp(14px,3vw,30px); width: 88px; height: 88px; }
.label { width: fit-content; padding: 6px 12px; color: #fff; background: var(--flag); font-weight: 900; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(32px,5vw,58px); line-height: 1.02; word-break: break-word; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border: 2px solid var(--flag); background: var(--flag); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--flag-dk); border-color: var(--flag-dk); }
.btn.secondary { background: transparent; border-color: rgba(242,248,252,.5); color: var(--frost); }
.btn.secondary:hover { border-color: var(--cyan); color: var(--cyan); background: transparent; }

/* board block: notes column first (left), board second (right) */
.play-section { display: grid; grid-template-columns: 300px minmax(320px,1fr); gap: 24px; padding: clamp(22px,4vw,50px) clamp(18px,4vw,46px); }
.side { display: grid; align-content: start; gap: 12px; }
.board-col { min-width: 0; }
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.game-head h2, .page-head h1 { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(28px,4vw,48px); line-height: 1.04; }
.scorebar { display: grid; grid-template-columns: repeat(4,minmax(78px,1fr)); gap: 2px; margin-bottom: 14px; background: var(--ink); }
.scorebar div { padding: 11px 12px; background: var(--ink); }
.scorebar span { display: block; color: rgba(242,248,252,.62); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.scorebar strong { display: block; margin-top: 3px; font-family: Georgia,serif; font-size: 26px; line-height: 1; color: var(--frost); }
.board-panel, .info-block, .page-card, .contact-card { background: #fff; border: 2px solid var(--ink); }
.board-panel { padding: clamp(8px,1.6vw,14px); }
.game-canvas { display: block; width: 100%; max-width: 100%; background: var(--ice); }
.board-overlay { margin-top: 10px; padding: 12px; background: var(--ink); color: var(--frost); font-weight: 700; font-size: 13px; text-align: center; }
.info-block { padding: 17px; }
.info-block h3, .page-card h2, .contact-card h2 { margin: 0 0 8px; font-family: Georgia,"Times New Roman",serif; font-size: 21px; line-height: 1.1; }
.info-block p, .info-block li, .page-card p, .contact-card p { margin: 0; color: var(--soft); font-weight: 500; font-size: 13.5px; line-height: 1.7; }
.info-block ul { margin: 0; padding-left: 17px; display: grid; gap: 7px; }
.info-block ul li::marker { color: var(--flag); }
.status { min-height: 42px; padding: 11px; background: var(--ice); border-left: 4px solid var(--flag); font-weight: 700 !important; color: var(--ink) !important; }
.inline-mail { color: var(--flag-dk); font-weight: 800; text-decoration: none; }
.inline-mail:hover { text-decoration: underline; }

/* inner pages */
.page { padding: clamp(24px,5.5vw,64px) clamp(18px,4vw,46px); }
.page-head { max-width: 900px; margin-bottom: 26px; display: grid; gap: 13px; }
.page-head p { margin: 0; color: var(--soft); font-size: 15px; font-weight: 500; line-height: 1.78; }
.page-grid, .contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.page-card, .contact-card { padding: 22px; }
.page-card.wide { grid-column: 1 / -1; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px clamp(18px,4vw,46px); color: rgba(242,248,252,.76); background: var(--ink); border-top: 3px solid var(--flag); font-weight: 600; font-size: 13px; }
.footer a { color: var(--frost); font-weight: 800; text-decoration: none; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .play-section { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(2,minmax(0,1fr)); order: 2; }
  .board-col { order: 1; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
  h1 { font-size: 32px; }
  .hero-copy, .page, .play-section { padding: 22px 15px; }
  .hero-badge { width: 62px; height: 62px; }
  .scorebar, .side, .page-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* consent strip: bottom-left card */
.cookie-popup { position: fixed; bottom: 16px; left: 16px; right: auto; max-width: 380px; z-index: 9999; transform: translateY(140%); transition: transform .4s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
.cookie-popup.visible { transform: translateY(0); pointer-events: auto; }
.cookie-inner { background: #fff; border: 2px solid var(--ink); border-left: 6px solid var(--flag); padding: 16px; display: grid; gap: 12px; box-shadow: 0 12px 26px rgba(22,32,42,.2); }
.cookie-text { margin: 0; font-size: 13px; font-weight: 600; color: var(--soft); line-height: 1.6; }
.cookie-text a { color: var(--flag-dk); font-weight: 800; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btn-accept { flex: 1; padding: 10px 14px; background: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 12px; cursor: pointer; color: var(--frost); }
.cookie-btn-decline { flex: 1; padding: 10px 14px; background: transparent; border: 2px solid var(--ink); font-weight: 800; font-size: 12px; cursor: pointer; color: var(--ink); }
@media (max-width: 640px) {
  .cookie-popup { left: 10px; right: 10px; max-width: none; }
}
