/* Partija website. Kafana palette, same as the app. */

@font-face {
  font-family: "Lobster";
  src: url("/assets/fonts/lobster.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #f4ebdd;
  --paper: #fbf6ee;
  --wall: #ead9a8;
  --walnut: #2a1a10;
  --walnut-2: #3b2416;
  --walnut-3: #4a3020;
  --red: #b3262e;
  --red-dark: #8f1d24;
  --brass: #d9a441;
  --brass-soft: rgba(217, 164, 65, 0.45);
  --ink: #2a1a10;
  --ink-soft: rgba(42, 26, 16, 0.72);
  --ink-faint: rgba(42, 26, 16, 0.5);
  --on-dark: #f4ebdd;
  --on-dark-soft: rgba(244, 235, 221, 0.72);
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(42, 26, 16, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
.display { font-family: "Lobster", Georgia, serif; font-weight: 400; letter-spacing: 0.2px; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 48px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 235, 221, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--brass-soft);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 36px; height: 36px; }
.brand .word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--red); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--walnut);
  border: 1px solid var(--brass-soft);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-dark-soft);
  font: 800 12px/1 "Nunito", sans-serif;
  letter-spacing: 0.6px;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brass); color: var(--walnut); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--on-dark); box-shadow: 0 10px 22px -12px rgba(179, 38, 46, 0.8); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(42, 26, 16, 0.25); }
.btn-line:hover { border-color: var(--ink); }
.btn-brass { background: var(--brass); color: var(--walnut); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Store buttons: walnut plaques with a brass edge (cream on dark sections). */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  min-width: 196px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--walnut);
  color: var(--on-dark);
  border: 1.5px solid var(--brass);
  box-shadow: 0 12px 24px -16px rgba(42, 26, 16, 0.9);
  transition: transform 0.15s ease;
}
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; color: var(--brass); }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; opacity: 0.75; }
.store b { font-size: 19px; font-weight: 900; }
.stores.light .store { background: var(--cream); color: var(--walnut); }
.stores.light .store svg { color: var(--red); }
.howto { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--red); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 76px); color: var(--walnut); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .stores { margin-top: 32px; }
.hero .meta { margin-top: 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.3px; color: var(--ink-faint); }

.stage { position: relative; display: flex; justify-content: center; min-height: 600px; }
.stage::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.35), rgba(217, 164, 65, 0) 70%);
}
.playing-card {
  position: absolute;
  width: 140px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.playing-card img { border-radius: 4px; }
.playing-card .idx {
  position: absolute;
  font: 800 15px/1 Georgia, serif;
  top: 10px;
  left: 12px;
  background: #fff;
  padding: 2px 3px;
  border-radius: 3px;
}
.playing-card.red .idx { color: #c8202a; }
.pc-1 { top: 110px; left: 4%; transform: rotate(-16deg); }
.pc-2 { top: 330px; left: 0; transform: rotate(-6deg); }
.pc-3 { top: 150px; right: 2%; transform: rotate(13deg); }

.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 10px;
  background: var(--walnut);
  box-shadow: 0 40px 70px -30px rgba(42, 26, 16, 0.75), inset 0 0 0 1.5px rgba(217, 164, 65, 0.5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.hero .phone { z-index: 2; transform: rotate(2deg); }

/* ---------------------------------------------------------------- gingham divider */
.gingham {
  height: 28px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(179, 38, 46, 0.55) 50%, transparent 50%),
    linear-gradient(rgba(179, 38, 46, 0.55) 50%, transparent 50%);
  background-size: 28px 28px;
  border-top: 3px solid var(--walnut);
  border-bottom: 3px solid var(--walnut);
}

/* ---------------------------------------------------------------- menu (features) */
.features {
  background: var(--walnut-2) url("/assets/img/wood_panel.jpg") center / cover;
  position: relative;
}
.features::before { content: ""; position: absolute; inset: 0; background: rgba(29, 18, 11, 0.35); }
.features .wrap { position: relative; }
.menu {
  max-width: 820px;
  margin: 0 auto;
  background: #fbf5e8;
  padding: 14px;
  border-radius: 6px;
  transform: rotate(-0.8deg);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.8), 0 2px 0 rgba(0, 0, 0, 0.08);
}
.menu-inner {
  border: 2px solid var(--walnut);
  outline: 1px solid var(--walnut);
  outline-offset: -8px;
  padding: 48px 56px 40px;
  text-align: center;
}
.menu-mark { width: 64px; height: 64px; margin: 0 auto 10px; }
.menu h2 { font-size: clamp(40px, 6vw, 58px); color: var(--walnut); }
.menu-sub {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--ink-soft);
}
.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(42, 26, 16, 0.25);
  text-align: left;
}
.dish-head { display: flex; align-items: baseline; gap: 10px; }
.dish h3 { font-family: "Lobster", Georgia, serif; font-weight: 400; font-size: 25px; color: var(--walnut); white-space: nowrap; }
.dish .dots { flex: 1; border-bottom: 2px dotted rgba(42, 26, 16, 0.45); transform: translateY(-5px); min-width: 18px; }
.dish .tag { font-weight: 900; font-size: 14px; color: var(--red); white-space: nowrap; }
.dish p {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.menu-foot {
  margin-top: 40px;
  font-family: "Lobster", Georgia, serif;
  font-size: 22px;
  color: var(--red);
}

/* ---------------------------------------------------------------- screens */
.dark { background: var(--walnut); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-soft); }
.dark .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; justify-items: center; }
.screen { text-align: center; margin: 0; }
.screen .phone { width: 250px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1.5px rgba(217, 164, 65, 0.6); background: #140c07; }
.screen h3 { margin-top: 24px; font-size: 18px; font-weight: 800; }
.screen p { margin-top: 6px; color: var(--on-dark-soft); font-size: 15px; max-width: 260px; }

/* ---------------------------------------------------------------- rules */
.rules .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps .n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--brass);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.steps h3 { font-size: 18px; font-weight: 800; }
.steps p { margin-top: 4px; color: var(--ink-soft); font-size: 16px; }

.table-demo {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(179, 38, 46, 0.22) 50%, transparent 50%),
    linear-gradient(rgba(179, 38, 46, 0.22) 50%, transparent 50%);
  background-size: 44px 44px;
  border: 6px solid var(--walnut);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.demo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-row + .demo-row { margin-top: 22px; }
.demo-label {
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  color: var(--walnut);
  background: rgba(251, 246, 238, 0.9);
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}
.mini {
  width: 64px;
  height: 90px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 14px -8px rgba(42, 26, 16, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 700 24px/1 Georgia, serif;
  color: var(--walnut);
}
.mini.red { color: #c8202a; }
.mini img { width: 26px; height: 26px; margin-top: 6px; }
.mini.court { padding: 5px; }
.mini.court img { width: 100%; height: 100%; margin: 0; border-radius: 3px; }
.arrow { font-weight: 900; color: var(--walnut); font-size: 22px; }

.points { margin-top: 28px; background: var(--paper); border: 1px solid var(--brass-soft); border-radius: var(--radius); overflow: hidden; }
.points div { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-weight: 700; }
.points div + div { border-top: 1px solid var(--brass-soft); }
.points b {
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brass);
  color: var(--walnut);
  font-weight: 900;
}
.points .note { display: block; padding: 14px 20px; font-weight: 600; color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------- tournaments */
.cups {
  position: relative;
  background: var(--red) url("/assets/img/table_checkered.jpg") center / cover;
}
.cups::before { content: ""; position: absolute; inset: 0; background: rgba(42, 26, 16, 0.35); }
.cups .wrap { position: relative; }
.cup-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--brass);
  border-radius: 24px;
  padding: 44px 40px 36px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.cup-card h2 { font-size: clamp(32px, 4.6vw, 44px); }
.cup-card > p { margin-top: 12px; color: var(--ink-soft); }
.cup-list { margin-top: 28px; display: grid; gap: 12px; text-align: left; }
.cup {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
}
.cup time { font-weight: 900; font-size: 22px; color: var(--red); }
.cup h3 { font-size: 17px; font-weight: 800; }
.cup span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.prizes { display: flex; gap: 10px; font-weight: 800; font-size: 14px; }
.prizes i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.prizes i::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* ---------------------------------------------------------------- download */
.download { text-align: center; }
.download .mark { width: 96px; height: 96px; margin: 0 auto 18px; }
.download h2 { font-size: clamp(38px, 5.6vw, 56px); }
.download p { margin: 14px auto 0; max-width: 520px; color: var(--on-dark-soft); font-size: 18px; }
.download .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.download .btn-line { color: var(--on-dark); border-color: rgba(244, 235, 221, 0.3); }
.download .btn-line:hover { border-color: var(--on-dark); }
.download .stores { justify-content: center; margin-top: 30px; }
.download .beta { font-size: 16px; margin-top: 22px; }
.download .beta a { color: var(--brass); font-weight: 800; }

/* ---------------------------------------------------------------- footer */
.footer { background: #1d120b; color: var(--on-dark-soft); padding: 36px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { color: var(--on-dark); font-weight: 700; }

/* ---------------------------------------------------------------- documents (privacy, terms) */
.doc { max-width: 760px; margin: 56px auto 96px; background: var(--paper); border: 1px solid var(--brass-soft); border-radius: 24px; padding: 48px 52px; }
.doc h1 { font-size: 44px; }
.doc .date { margin-top: 8px; color: var(--ink-faint); font-weight: 700; font-size: 14px; }
.doc h2 { font-size: 20px; font-weight: 900; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 20px; }
.doc li + li { margin-top: 6px; }

/* ---------------------------------------------------------------- invite page */
.invite { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 24px; }
.invite-card { max-width: 460px; width: 100%; text-align: center; background: var(--paper); border: 2px solid var(--brass); border-radius: 24px; padding: 40px 32px; box-shadow: var(--shadow); }
.invite-card .mark { width: 84px; height: 84px; margin: 0 auto 16px; }
.invite-card h1 { font-size: 36px; }
.invite-card .code { margin: 18px auto 0; display: inline-block; background: var(--walnut); color: var(--brass); font-weight: 900; letter-spacing: 3px; font-size: 22px; border-radius: 12px; padding: 10px 18px; }
.invite-card p { margin-top: 16px; color: var(--ink-soft); }
.invite-card .btn { margin-top: 24px; width: 100%; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero .wrap, .rules .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero .copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions, .hero .stores { justify-content: center; }
  .stage { min-height: 560px; }
  .screens { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .screen .phone { width: 100%; max-width: 230px; border-radius: 36px; }
  .screen .phone img { border-radius: 28px; }
}
@media (max-width: 760px) {
  .menu { transform: none; padding: 8px; }
  .menu-inner { padding: 36px 20px 30px; }
  .menu-cols { grid-template-columns: 1fr; gap: 24px; }
  .dish h3 { font-size: 22px; }
  .nav { display: none; }
  .section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .screens {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-items: stretch;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .screen { scroll-snap-align: center; }
  .screen .phone { margin: 0 auto; }
  .playing-card { width: 104px; }
  .pc-1 { left: -2%; top: 90px; }
  .pc-2 { display: none; }
  .pc-3 { right: -2%; top: 130px; }
  .phone { width: 250px; }
  .stage { min-height: 520px; }
  .stage::before { width: 320px; height: 320px; }
  .cup-card { padding: 32px 18px 22px; }
  .cup { grid-template-columns: 1fr; gap: 6px; }
  .doc { margin: 24px 16px 64px; padding: 32px 22px; }
  .brand .word { height: 26px; }
  .header-right .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
