/* 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); }

/* ---------------------------------------------------------------- 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);
}

.dark { background: var(--walnut); color: var(--on-dark); }

/* ---------------------------------------------------------------- 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; }

/* ---------------------------------------------------------------- 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%; }

/* The homepage: a kafana album, menu and evening notice. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 5px; }
[id] { scroll-margin-top: 90px; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 30; background: var(--paper); padding: 12px 20px; font-weight: 900; }
.skip:focus { top: 8px; }
.opening { padding: 34px 0 38px; }
.opening h1 { font-size: clamp(54px,7.3vw,90px); max-width: 1060px; margin: 0 0 24px; line-height: 1.04; }
.opening h1 em { font-style: normal; color: var(--red); }
.opening-bottom { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.opening-bottom > p { max-width: 510px; font-size: 18px; color: var(--ink-soft); }
.opening .stores { flex-shrink: 0; }
.album { padding: 8px 0 52px; }
.album-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.album-heading h2 { font-size: 26px; }
.album-heading p { font-size: 13px; color: var(--ink-soft); }
.album-strip { display: grid; grid-template-columns: 1fr 1.45fr 1fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 8px 6px 18px; }
.album-shot { margin: 0; min-width: 0; }
.album-shot .shot-open { display: block; appearance: none; padding: 5px; border: 1px solid var(--brass); border-radius: 12px; background: var(--walnut); cursor: zoom-in; width: 100%; box-shadow: 0 18px 22px -18px rgba(42,26,16,.65); transition: transform 180ms ease; }
.shot-open:hover { transform: translateY(-5px); }
.shot-open img { width: 100%; height: auto; border-radius: 7px; }
.album-shot figcaption { font-size: 14px; font-weight: 800; margin-top: 12px; }
.shot-home { transform: rotate(-2deg); }
.shot-lobby { align-self: end; padding-bottom: 20px; }
.shot-friends { transform: rotate(2deg); }
.shot-chat { align-self: start; padding-top: 12px; }
.house { padding: 60px 0; background: var(--paper); }
.house-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 44px 70px; }
.house h2 { font-size: 40px; }
.menu-intro { margin-top: 14px; font-size: 17px; color: var(--ink-soft); max-width: 600px; }
.menu-lines { margin: 28px 0 0; }
.menu-lines > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; border-top: 1px solid var(--brass-soft); padding: 20px 0; }
.menu-lines dt { font-family: "Lobster",Georgia,serif; font-size: 23px; line-height: 1.2; }
.menu-lines dd { margin: 0; font-size: 15px; color: var(--ink-soft); }
.menu-lines dd p + p { margin-top: 8px; }
.company { border-top: 2px solid var(--walnut); padding-top: 26px; margin-top: 28px; }
.company > p { margin-top: 14px; color: var(--ink-soft); }
.company-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.company-notes h3 { font-size: 16px; font-weight: 900; }
.company-notes p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.tournament-notice { align-self: start; color: var(--cream); padding: 30px; background: linear-gradient(rgba(42,26,16,.9),rgba(42,26,16,.9)),url("/assets/img/wood_panel.jpg") center / cover; border: 2px solid var(--brass); outline: 1px solid var(--brass-soft); outline-offset: -9px; transform: rotate(1deg); box-shadow: 0 20px 34px -24px rgba(42,26,16,.5); }
.tournament-notice > img { margin-bottom: 16px; }
.notice-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.tournament-notice h2 { font-size: 38px; }
.notice-times { margin: 28px 0; border-top: 1px solid var(--brass-soft); }
.notice-times > div { padding: 16px 0; border-bottom: 1px solid var(--brass-soft); }
.notice-times time { font-size: 44px; font-weight: 900; line-height: 1.1; color: var(--brass); }
.notice-times h3 { font-size: 18px; margin: 5px 0; }
.notice-times p { font-size: 14px; }
.tournament-notice > p:not(.notice-label) { margin-top: 16px; font-size: 15px; color: var(--on-dark-soft); }
.tournament-notice > p.fine { font-size: 12px; }
.rulebook { margin: 38px 0; border-top: 2px solid var(--walnut); border-bottom: 1px solid var(--brass-soft); }
.rulebook > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 24px 0; font-size: 32px; }
.rulebook > summary::-webkit-details-marker { display: none; }
.rule-toggle { font-family: "Nunito",sans-serif; font-size: 30px; transition: transform 150ms ease; }
.rulebook[open] .rule-toggle { transform: rotate(45deg); }
.rulebook .rules { padding: 10px 0 36px; }
.rulebook .rules .wrap { padding: 0; }
.rulebook .steps { margin-top: 0; }
.last-seat { padding: 32px 0 48px; }
.last-seat .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.last-seat h2 { font-size: 38px; }
.last-seat p { font-size: 13px; color: var(--ink-soft); margin-top: 10px; max-width: 450px; }
.last-seat .stores { flex-shrink: 0; }
.shot-dialog { background: var(--walnut); color: var(--cream); border: 1px solid var(--brass); padding: 18px; border-radius: 16px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.shot-dialog::backdrop { background: rgba(20,12,7,.88); }
.shot-dialog > img { max-height: calc(100dvh - 114px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.shot-dialog > p { margin-top: 10px; padding-right: 32px; font-size: 15px; }
.shot-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brass); background: var(--walnut); color: var(--cream); font-size: 28px; cursor: pointer; }
@media (max-width: 1100px) {
 .nav { gap: 16px; }
 .house-grid { gap: 36px; }
 .opening .stores, .last-seat .stores { flex-direction: column; }
 .menu-lines > div { grid-template-columns: 125px 1fr; gap: 20px; }
}
@media (max-width: 960px) {
 .nav { display: none; }
 .opening h1 { font-size: 70px; }
 .album-strip { grid-template-columns: repeat(6,150px); align-items: center; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 6px 26px; }
 .album-shot { scroll-snap-align: center; }
 .shot-lobby, .shot-chat { align-self: center; padding: 0; }
 .house-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 32px; }
 .menu-lines > div { grid-template-columns: 1fr; gap: 8px; }
 .company-notes { grid-template-columns: 1fr; gap: 20px; }
 .tournament-notice { padding: 26px 22px; }
 .rules .wrap { gap: 36px; }
}
@media (max-width: 760px) {
 .wrap { padding: 0 20px; }
 .opening { padding: 24px 0 26px; }
 .opening h1 { font-size: clamp(48px,10vw,68px); margin: 0 0 24px; }
 .opening-bottom, .last-seat .wrap { align-items: start; flex-direction: column; gap: 22px; }
 .opening-bottom > p { font-size: 17px; }
 .opening .stores, .last-seat .stores { flex-direction: row; }
 .store { min-width: 0; padding: 12px 14px; gap: 8px; }
 .store b { font-size: 17px; }
 .store small { font-size: 10px; }
 .store svg { width: 23px; }
 .album-heading { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 14px; }
 .album { padding-bottom: 28px; }
 .album-strip { margin-right: -20px; padding-right: 20px; }
 .house { padding: 36px 0; }
 .house-grid { grid-template-columns: 1fr; gap: 32px; }
 .house h2 { font-size: 36px; }
 .menu-lines > div { grid-template-columns: 110px 1fr; gap: 18px; }
 .menu-lines dt { font-size: 22px; }
 .company-notes { grid-template-columns: 1fr; }
 .tournament-notice { transform: none; }
 .notice-times { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
 .notice-times time { font-size: 36px; }
 .notice-times h3 { font-size: 16px; }
 .rules .wrap { grid-template-columns: 1fr; }
 .rulebook > summary { font-size: 28px; }
 .last-seat { padding-top: 0; }
 .last-seat h2 { font-size: 34px; }
 .brand .word { height: 26px; }
 .header-right .btn { display: none; }
 .header .wrap { gap: 8px; }
 .lang button { padding: 10px 8px; }
 .doc { margin: 24px 16px 64px; padding: 32px 22px; }
}
@media (max-width: 380px) {
 .opening h1 { font-size: 40px; }
 .wrap { padding: 0 16px; }
 .brand .mark { width: 30px; height: 30px; }
 .brand .word { height: 23px; }
 .store { padding: 12px; }
 .menu-lines > div { grid-template-columns: 1fr; gap: 8px; }
 .album-strip { margin-right: -16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .btn, .store, .shot-open, .rule-toggle { transition: none; }
}
