/* ===== Kmpcamp – retro pixel theme (lekki, bez animacji w pętli) ===== */
:root {
  --bg: #0d0d10;
  --panel: #1c1c24;
  --line: #2e2e3a;
  --text: #f2ede4;
  --muted: #9a96a6;
  --yellow: #ffd23f;
  --orange: #ff8a1f;
  --red: #ff3b1f;
  --crt: #a8d38a;
  --font-pixel: "Press Start 2P", monospace;
  --font-term: "VT323", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: radial-gradient(ellipse at 50% 0%, #2a1a10 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font-term);
  font-size: 22px;
  line-height: 1.35;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 4px solid var(--line);
}
.nav { padding-top: 6px; padding-bottom: 6px; }
.nav__brand { display: block; flex: none; }
.nav__brand picture { display: block; }
.nav__brand img { height: 52px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > a, .nav__menu > span, .dropdown__toggle {
  font-family: var(--font-pixel); font-size: 10px; text-transform: uppercase;
  padding: 12px; position: relative; display: block;
}
.nav__menu > a:hover, .dropdown__toggle:hover, .dropdown.open .dropdown__toggle { color: var(--yellow); }
.nav__menu .active { color: var(--orange); box-shadow: inset 0 -4px 0 var(--orange); }
.soon { color: #5f5c6b; cursor: default; }
.soon::after {
  content: attr(data-soon);
  position: absolute; top: -2px; right: 2px;
  font-size: 6px; background: var(--red); color: var(--text); padding: 2px 3px;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown__arrow { font-size: 8px; margin-left: 4px; }
.dropdown__list {
  list-style: none; display: none;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--panel); border: 4px solid var(--line); padding: 6px;
}
.dropdown.open .dropdown__list { display: block; }
.dropdown__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; font-family: var(--font-pixel); font-size: 10px;
}
.dropdown__list a:hover, .dropdown__list a:focus-visible { background: var(--orange); color: var(--bg); outline: none; }
.dl-icon { width: 24px; height: 36px; flex: none; object-fit: cover; }
.dropdown__list a { padding-top: 6px; padding-bottom: 6px; }
.dl-all { border-top: 2px dashed var(--line); margin-top: 4px; justify-content: flex-end; color: var(--orange); }

/* Burger */
.nav__burger { display: none; width: 36px; height: 30px; position: relative; }
.nav__burger span { position: absolute; left: 4px; right: 4px; height: 4px; background: var(--yellow); }
.nav__burger span:nth-child(1) { top: 5px; }
.nav__burger span:nth-child(2) { top: 13px; }
.nav__burger span:nth-child(3) { top: 21px; }

/* ===== HERO (strona główna) ===== */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 16px 48px;
}
.hero picture { display: block; width: min(640px, 100%); }
.hero__logo { width: 100%; }
.hero__tag {
  font-family: var(--font-pixel); font-size: clamp(9px, 2vw, 13px);
  color: var(--crt); letter-spacing: 1px; margin: 8px 0 24px;
}

.countdown { display: flex; gap: 10px; }
.countdown__cell {
  background: var(--panel); border: 4px solid var(--line);
  padding: 12px 10px 8px; min-width: 84px;
}
.countdown__cell span {
  display: block; font-family: var(--font-pixel);
  font-size: clamp(18px, 4vw, 28px); color: var(--yellow); text-shadow: 3px 3px 0 var(--red);
}
.countdown__cell small { display: block; margin-top: 8px; font-family: var(--font-pixel); font-size: 8px; color: var(--muted); }
.countdown__note { font-family: var(--font-pixel); font-size: 9px; color: var(--muted); margin: 14px 0 28px; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-pixel); font-size: 12px;
  padding: 14px 20px;
  background: var(--orange); color: var(--bg);
  border: 4px solid var(--red);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.3);
}
.btn:hover { background: var(--yellow); }
.btn:active { transform: translate(2px, 2px); }
.btn--ghost { background: transparent; color: var(--orange); border-color: var(--orange); box-shadow: none; }
.btn--ghost:hover { background: var(--orange); color: var(--bg); }

/* ===== Podstrony ===== */
.section { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; }
.section__title {
  font-family: var(--font-pixel); font-size: clamp(20px, 4vw, 30px);
  color: var(--yellow); text-shadow: 4px 4px 0 var(--red); margin-bottom: 18px;
}
.lead { color: var(--muted); max-width: 720px; margin-bottom: 32px; font-size: 24px; }
.hint { color: var(--orange); }

/* Gry */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.game { background: var(--panel); border: 4px solid var(--line); display: flex; flex-direction: column; }
.game:hover { border-color: var(--c); }
.game__cover { display: block; aspect-ratio: 2 / 3; background: var(--c); border-bottom: 4px solid var(--line); }
.game__cover img { width: 100%; height: 100%; object-fit: cover; }
.game__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game__title { font-family: var(--font-pixel); font-size: 11px; line-height: 1.5; }
.game__genre { color: var(--muted); font-size: 20px; flex: 1; }
.game__source {
  align-self: flex-start; font-family: var(--font-pixel); font-size: 7px;
  color: var(--crt); border: 2px solid currentColor; padding: 3px 5px;
}
.game .btn { margin-top: 8px; font-size: 10px; padding: 10px; }

.game__cover { position: relative; }
.game__title a:hover { color: var(--yellow); }
.game__cup {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-pixel); font-size: 7px;
  background: var(--yellow); color: var(--bg); padding: 4px 6px;
}

/* Podstrona gry */
.back { display: inline-block; font-family: var(--font-pixel); font-size: 9px; color: var(--muted); margin-bottom: 24px; }
.back:hover { color: var(--yellow); }
.gp { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.gp__cover { width: 100%; border: 4px solid var(--c); box-shadow: 8px 8px 0 #000; }
.gp__meta { font-family: var(--font-pixel); font-size: 9px; color: var(--crt); margin-bottom: 14px; }
.gp .section__title { line-height: 1.4; }
.gp__tagline { font-size: 30px; color: var(--orange); line-height: 1.2; margin-bottom: 20px; }
.gp__desc { font-size: 24px; color: var(--text); max-width: 640px; margin-bottom: 14px; }
.gp__cup { color: var(--yellow); margin: 8px 0 14px; }
.gp__cup a { text-decoration: underline; }
.gp__actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.gp__nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 4px dashed var(--line);
  font-family: var(--font-pixel); font-size: 9px; color: var(--muted);
}
.gp__nav a:hover { color: var(--yellow); }
@media (max-width: 700px) {
  .gp { grid-template-columns: 1fr; gap: 20px; }
  .gp__cover { max-width: 220px; }
}

/* Turnieje */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 4px solid var(--line); padding: 28px 20px; text-align: center; }
.card__icon { font-size: 40px; margin-bottom: 14px; }
.card h2 { font-family: var(--font-pixel); font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card--soon { border-style: dashed; }
.card--special { border-color: var(--orange); }
.card--soon .card__icon, .card--soon h2 { opacity: .5; }
.badge {
  display: inline-block; font-family: var(--font-pixel); font-size: 8px;
  color: var(--crt); border: 2px solid currentColor; padding: 6px 8px;
}
.badge--prize { color: var(--yellow); }

/* Jednoręki Barman */
.slot-section { margin-top: 64px; }
.section__title--sm { font-size: clamp(14px, 3vw, 22px); line-height: 1.5; }
.slot {
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(#3a1d10, #1c1c24);
  border: 6px solid var(--orange);
  box-shadow: 0 0 0 4px var(--red), inset 0 0 0 4px #000;
  padding: 18px; text-align: center;
}
.slot__top {
  font-family: var(--font-pixel); font-size: clamp(11px, 2.6vw, 16px);
  color: var(--yellow); text-shadow: 3px 3px 0 var(--red);
  background: #000; border: 4px solid var(--line); padding: 12px; margin-bottom: 16px;
}
.slot__reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #000; padding: 10px; border: 4px solid var(--line); }
.reel { height: 96px; overflow: hidden; background: var(--text); position: relative; }
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45));
}
.reel__item {
  height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-pixel); font-size: clamp(7px, 1.6vw, 10px); color: var(--bg);
}
.reel__item span { font-size: 38px; line-height: 1; }
.slot__result {
  font-family: var(--font-pixel); font-size: 11px; color: var(--crt);
  min-height: 64px; margin: 16px 0; display: grid; place-content: center; gap: 8px;
}
.slot__result.win { color: var(--yellow); font-size: clamp(14px, 3vw, 20px); text-shadow: 3px 3px 0 var(--red); }
.slot__result small { font-family: var(--font-term); font-size: 22px; color: var(--text); text-shadow: none; }
.slot__lever { width: 100%; font-size: 13px; }
.slot__lever:disabled { opacity: .6; cursor: wait; }
.slot__note { text-align: center; margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Footer */
.footer {
  text-align: center; padding: 24px 16px;
  border-top: 4px solid var(--line);
  font-family: var(--font-pixel); font-size: 9px; color: var(--muted);
}

/* ===== Mobile ===== */
@media (max-width: 1180px) {
  .nav { padding: 10px 16px; }
  .nav__burger { display: block; }
  .nav__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 4px solid var(--line); padding: 8px 16px 12px;
  }
  .nav__menu.open { display: flex; }
  .nav__menu > a, .nav__menu > span, .dropdown__toggle { width: 100%; text-align: left; padding: 14px 4px; }
  .soon::after { top: 50%; right: 4px; transform: translateY(-50%); font-size: 7px; padding: 4px; }
  .dropdown__list { position: static; min-width: 0; margin-bottom: 8px; }
  .section { padding: 32px 16px 48px; }
  .countdown { gap: 6px; }
  .countdown__cell { min-width: 0; flex: 1; padding: 10px 6px 8px; }
}
