/* chalkboard-darts.de – the website in the app's pub look: chalk on a slate in a wooden frame */
@font-face { font-family: "Chalk"; src: url("/static/CabinSketch-Bold.ttf") format("truetype"); font-weight: 700; }

:root {
  --bg: #0f2119; --text: #f4ecd6; --muted: #a9b79f; --accent: #e3a63c; --accent-text: #241600;
  --chalk: #f3efe4; --chalk-dim: rgba(243, 239, 228, .6); --chalk-yellow: #ffe27a;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(12, 22, 17, .4), rgba(8, 14, 11, .92) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Crect width='120' height='60' fill='%232b1a14'/%3E%3Crect x='2' y='2' width='56' height='26' rx='2' fill='%23743a29'/%3E%3Crect x='62' y='2' width='56' height='26' rx='2' fill='%23803f2c'/%3E%3Crect x='-28' y='32' width='56' height='26' rx='2' fill='%236b3426'/%3E%3Crect x='32' y='32' width='56' height='26' rx='2' fill='%23773b2a'/%3E%3Crect x='92' y='32' width='56' height='26' rx='2' fill='%236b3426'/%3E%3C/svg%3E") 0 0 / 120px 60px fixed;
  min-height: 100vh;
}
a { color: var(--chalk-yellow); }
.hero { display: flex; gap: 32px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 40px 16px 16px; }
.hero-buddy { height: 260px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
h1 { font-family: "Chalk", cursive; font-size: clamp(48px, 9vw, 96px); margin: 0; color: var(--accent); line-height: 1; }
.sub { margin: 4px 0 16px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 20px; max-width: 620px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.online { color: #7cc46b; font-weight: 600; }
.nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 10px 16px; }
.nav a { color: var(--chalk); text-decoration: none; font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.board {
  margin: 24px 0; padding: 28px 30px; border-radius: 14px; color: var(--chalk);
  background:
    radial-gradient(ellipse 40% 25% at 25% 30%, rgba(255, 255, 255, .05), transparent 70%),
    radial-gradient(ellipse at 50% 40%, #33423c 0%, #253129 60%, #1c2620 100%);
  border: 12px solid #8a5729;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 30px rgba(0, 0, 0, .5);
}
.board h2 { font-family: "Chalk", cursive; font-size: 40px; margin: 0 0 18px; color: var(--chalk-yellow);
  border-bottom: 3px solid var(--chalk-yellow); display: inline-block; }
.board p { font-size: 18px; line-height: 1.6; max-width: 820px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.features div { display: flex; flex-direction: column; gap: 6px; }
.features b { font-size: 19px; }
.features span { color: var(--chalk-dim); line-height: 1.45; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img { width: 100%; border-radius: 8px; border: 2px solid rgba(243, 239, 228, .3); display: block; }
.gallery figcaption { font-size: 14px; color: var(--chalk-dim); margin-top: 6px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; text-decoration: none;
  background: var(--accent); color: var(--accent-text); }
.dl b { font-size: 22px; }
.dl.off { background: rgba(255, 255, 255, .08); color: var(--chalk-dim); pointer-events: none; }
.small { font-size: 15px !important; color: var(--chalk-dim); }
.notes h3 { margin: 18px 0 4px; } .notes small { color: var(--chalk-dim); font-weight: 400; }
.notes ul { margin: 0; color: var(--chalk-dim); }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto;
  padding: 20px 16px 40px; color: var(--muted); font-size: 14px; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; z-index: 10; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox p { color: var(--chalk); }
.legal { max-width: 900px; }
[hidden] { display: none !important; }
.board h3 { font-family: "Chalk", cursive; font-size: 26px; color: var(--chalk); margin: 26px 0 10px; }

/* sub pages: a small header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 54px; }
.brand b { font-family: "Chalk", cursive; font-size: 32px; color: var(--accent); }
.topbar .nav { padding: 0; }

/* likes and counts */
.counts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); margin: 14px 0 0; }
.counts b { color: var(--chalk); }
.like { font: inherit; font-size: 17px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--chalk); border: 1px solid rgba(243, 239, 228, .3); }
.like:hover { border-color: var(--accent); }
.like.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); cursor: default; }
.like.on b { color: var(--accent-text); }

/* support, sponsor, gear */
.btn.pay { font-size: 20px; padding: 14px 28px; }
.sponsor { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--chalk); }
.sponsor img { max-height: 70px; max-width: 200px; background: #fff; border-radius: 8px; padding: 6px; }
.sponsor div { display: flex; flex-direction: column; }
.sponsor span { color: var(--chalk-dim); }
.gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gear-item { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 239, 228, .2); }
.gear-item span { color: var(--chalk-dim); line-height: 1.4; }
.gear-item .ad { color: var(--muted); font-size: 12px; }
.ad-note { border-left: 3px solid var(--accent); padding-left: 12px; }

/* feedback form */
.fb-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.fb-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.fb-form label small { font-weight: 400; color: var(--chalk-dim); }
.fb-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.fb-form select, .fb-form textarea, .fb-form input:not([type=checkbox]) {
  font: inherit; padding: 10px 12px; border-radius: 8px; color: var(--chalk);
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(243, 239, 228, .3); }
.fb-form button { align-self: flex-start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.fb-msg { color: #ff9a8f; min-height: 1em; margin: 0; }
.legal pre { white-space: pre-wrap; font-family: inherit; font-size: 16px; line-height: 1.55; }
@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; padding-top: 24px; }
  .hero-buddy { height: 180px; }
  .hero-actions { justify-content: center; }
  .board { padding: 18px; border-width: 8px; }
}
