:root {
  --overlay-top: rgba(83, 39, 9, 0.25);
  --overlay-bottom: rgba(26, 14, 7, 0.56);
  --cw: 264vw;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: #130a05;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: auto;
  min-height: 100dvh;
}

/* --cw controls the overall scale of the honeycomb.
   All 7 hex PNGs share the same 1920x1080 canvas — stacking them
   as layers at 0,0 inside this container produces the correct honeycomb.
   Container is offset so Hex4's visible center (canvas 845,519) sits
   at exact viewport centre. */
.hex-wrapper {
  width: 100%;
  height: calc(var(--cw) * 0.5625 * 0.883);
  overflow: hidden;
  position: relative;
}

.hex-cluster {
  position: relative;
  width: var(--cw);
  height: calc(var(--cw) * 0.5625); /* 1080/1920 */
  margin-top: 0;
  margin-left: calc(50% - var(--cw) * 0.4401); /* 845/1920 */
  z-index: 1;
  overflow: visible;
}

.hex-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hex2 opaque content sits at canvas (626,520) but belongs at top-right (954,330).
   Translate: Δx=328/1920=17.08%, Δy=-190/1080=-17.59% of element dims. */
.hex-2 {
  transform: translate(17.08%, -17.59%);
}

/* Per-tile corrections to achieve equal D=218.5px spacing on all adjacent pairs.
   Percentages relative to element width (1920px) and height (1080px). */
.hex-1 { transform: translate(0.83%,  -0.19%); }  /* canvas (720,332) → ideal (736,330) */
.hex-6 { transform: translate(-0.21%, -0.19%); }  /* canvas (740,710) → ideal (736,708) */
.hex-7 { transform: translate(-0.31%, -1.11%); }  /* canvas (960,720) → ideal (954,708) */

/* ── Hex labels ─────────────────────────────────────────────────────────────
   Positions are (visual_cx / 1920) left, (text_cy / 1080) top.
   text_cy = visible_top + 28% of visible hex height.
   Hex1/2 visible top ≈ 214, height ≈ 237 → text_cy ≈ 280
   Hex3/4/5 visible top ≈ 401, height ≈ 236 → text_cy ≈ 467
   Hex6/7 visible top ≈ 592, height ≈ 236 → text_cy ≈ 658
   ─────────────────────────────────────────────────────────────────────────── */
.hex-label-btn {
  position: absolute;
  z-index: 3;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: calc(var(--cw) * 0.012);
  line-height: 1;
  color: #fff8e8;
  text-shadow: 0 1px 4px rgba(20,8,0,0.9), 0 0 10px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.hex-label-btn:hover { color: #ffe680; }
.hex-label-btn:active { transform: translate(-50%, -50%) scale(0.97); }

/* ── Popup ────────────────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.72);
  backdrop-filter: blur(3px);
}

.popup-overlay[hidden] { display: none; }

.popup-box {
  position: relative;
  width: min(88vw, 26rem);
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 220, 150, 0.25);
  background: linear-gradient(160deg, rgba(60,28,8,0.92), rgba(25,12,4,0.96));
  color: #fff8e8;
  text-align: center;
}

.popup-title {
  margin: 0 0 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  font-weight: 700;
  color: #ffd97a;
}

.popup-body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.55;
  color: #ffe9cf;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #ffd97a;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

/* Text-only clickable hotspots centered on each hex label position. */
.label-1 { left: 38.33%; top: 29.40%; transform: translate(-50%, -50%); }
.label-2 { left: 49.70%; top: 29.19%; transform: translate(-50%, -50%); }
.label-3 { left: 32.60%; top: 46.70%; transform: translate(-50%, -50%); }
.label-4 { left: 44.00%; top: 46.70%; transform: translate(-50%, -50%); }
.label-5 { left: 55.41%; top: 46.70%; transform: translate(-50%, -50%); }
.label-6 { left: 38.30%; top: 64.40%; transform: translate(-50%, -50%); }
.label-7 { left: 49.70%; top: 64.40%; transform: translate(-50%, -50%); }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to bottom, var(--overlay-top), var(--overlay-bottom)),
    url("Assets/POZADINA.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
}

.logo-corner {
  position: absolute;
  z-index: 2;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-corner {
  top: 20px;
  left: 50%;
  width: min(100vw, 34rem);
  transform: translate(-50%, -36%);
  transform-origin: top center;
  pointer-events: none;
}

.top-right-nav {
  position: relative;
  margin: 0.9rem auto 0.8rem;
  width: fit-content;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  pointer-events: auto;
}

.nav-btn {
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 3.5vw, 1.4rem);
  color: #fff7e8;
  text-shadow: 0 1px 6px rgba(40,12,0,0.7);
  letter-spacing: 0.04em;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover { color: #ffe680; }

.page-title {
  position: fixed;
  top: clamp(6.5rem, 22vw, 9.5rem);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 2.6rem);
  color: #fff7e8;
  text-shadow: 0 1px 8px rgba(40,12,0,0.75);
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
}

.page-title-flow {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: clamp(6.5rem, 22vw, 9.5rem) auto 0;
  width: min(88vw, 34rem);
}

.page-title-flow + .page-content {
  margin-top: 1.6rem;
}

.logo-corner.logo-clickable {
  pointer-events: auto;
}

.back-btn {
  position: fixed;
  top: 1.1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(150deg, rgba(78, 36, 10, 0.82), rgba(30, 14, 5, 0.88));
  border: 1px solid rgba(255, 220, 150, 0.45);
  border-radius: 999px;
  padding: 0.48rem 0.9rem 0.48rem 0.7rem;
  color: #fff7e8;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 5, 2, 0.3);
  text-shadow: 0 1px 4px rgba(20, 8, 0, 0.8);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, color 0.2s;
}

.back-btn:hover {
  border-color: rgba(255, 230, 150, 0.78);
  color: #ffe680;
}

.back-btn svg {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pushes leaderboard below the fixed hex cluster. Height matches the cluster's
   visual bottom: 50vh + cluster-top-offset + 8vw gap. Scales with --cw breakpoints. */
.hex-spacer {
  display: none;
}

.leaderboard-label {
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(1.19rem, 4.9vw, 2.1rem);
  color: #fff7e8;
  text-shadow: 0 1px 6px rgba(40,12,0,0.7);
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
}

.leaderboard-table {
  margin: 0.6em auto 0;
  z-index: 3;
  border-collapse: collapse;
  width: min(88vw, 26rem);
  pointer-events: none;
}

.leaderboard-table tr {
  border-bottom: 1px solid rgba(255, 220, 150, 0.18);
}

.leaderboard-table td {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 3vw, 1rem);
  color: #fff7e8;
  text-shadow: 0 1px 4px rgba(40,12,0,0.8);
  padding: 0.25em 0.4em;
}

.lb-rank { text-align: left; width: 2em; opacity: 0.7; }
.lb-name { text-align: left; }
.lb-pts  { text-align: right; letter-spacing: 0.04em; }

.sm-corner {
  position: relative;
  z-index: 2;
  display: block;
  margin: 1.5rem auto 0;
  width: min(69vw, 24rem);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.sm-corner img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.sm-link {
  position: absolute;
  top: 5%;
  height: 74%;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sm-instagram {
  left: 23%;
  width: 22%;
}

.sm-tiktok {
  left: 44%;
  width: 22%;
}

/* ── Subpage content ──────────────────────────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 3;
  margin: calc(clamp(6.5rem, 22vw, 9.5rem) + clamp(1.4rem, 6vw, 2.6rem) + 2.75rem) auto 3rem;
  width: min(88vw, 34rem);
  color: #fff7e8;
  font-family: 'Source Sans 3', sans-serif;
}

.content-intro {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  line-height: 1.65;
  color: #ffe9cf;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.page-paragraph {
  margin: 0 0 1.1rem;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  line-height: 1.65;
  color: #ffe9cf;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.about-heading {
  margin: 1.65rem 0 0.8rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.98rem, 3.5vw, 1.25rem);
  letter-spacing: 0.02em;
  color: #fff7e8;
  text-shadow: 0 1px 6px rgba(20,8,0,0.75);
}

.about-list {
  margin: 0.2rem 0 1.2rem;
  padding-left: 1.15rem;
  color: #ffe9cf;
}

.about-list li {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.page-cta-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem 0 0.4rem;
  flex-wrap: wrap;
}

.page-cta-row-left {
  justify-content: flex-start;
  margin-top: 0.8rem;
}

.page-cta-btn {
  display: inline-block;
  min-width: 8rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 220, 150, 0.5);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(78, 36, 10, 0.85), rgba(37, 17, 6, 0.88));
  color: #fff7e8;
  text-decoration: none;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.86rem, 3.2vw, 1rem);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
  box-shadow: 0 6px 16px rgba(14, 6, 2, 0.35);
}

.page-cta-btn:hover {
  color: #ffe680;
  border-color: rgba(255, 230, 150, 0.75);
}

.page-cta-btn-secondary {
  background: linear-gradient(160deg, rgba(52, 34, 22, 0.84), rgba(24, 16, 10, 0.88));
}

.leaderboard-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ── Countdown section ───────────────────────────────────────────────────── */
.countdown-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0.7rem auto;
  z-index: 6;
  pointer-events: auto;
}

.countdown-link-btn {
  margin: 0;
  position: relative;
  z-index: 7;
  pointer-events: auto;
}

.countdown-label {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: #fff7e8;
  text-shadow: 0 1px 6px rgba(40,12,0,0.7);
  letter-spacing: 0.03em;
}

.countdown-display {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  color: #ffe680;
  text-shadow: 0 2px 8px rgba(40,12,0,0.8);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.95rem;
}

.admin-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 220, 150, 0.45);
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(78, 36, 10, 0.84), rgba(28, 14, 6, 0.9));
  color: #fff7e8;
  text-decoration: none;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(20,8,0,0.85);
  box-shadow: 0 12px 30px rgba(14, 6, 2, 0.24);
}

.admin-card:hover {
  color: #ffe680;
  border-color: rgba(255, 230, 150, 0.72);
}

.admin-note {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  line-height: 1.65;
  color: #ffe9cf;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-label {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 2.9vw, 0.94rem);
  letter-spacing: 0.05em;
  color: #ffd97a;
  text-shadow: 0 1px 4px rgba(20,8,0,0.7);
}

.field-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: #f3d9b1;
  opacity: 0.9;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="date"],
.admin-form input[type="time"],
.admin-form input[type="number"],
.admin-form select,
.admin-form input[type="file"],
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 0.75rem;
  background: rgba(24, 10, 4, 0.7);
  color: #fff7e8;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  padding: 0.62rem 0.72rem;
}

.admin-form textarea {
  resize: vertical;
  min-height: 5.2rem;
}

.checkbox-group {
  border: 1px solid rgba(255, 220, 150, 0.26);
  border-radius: 0.9rem;
  padding: 0.72rem 0.88rem 0.82rem;
  margin: 0;
}

.checkbox-group label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #ffe9cf;
  margin: 0.24rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.52rem;
}

.registration-consent label {
  margin: 0;
}

.registration-consent .contact-link {
  font-weight: 600;
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: #ffe680;
}

.partner-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.partner-filters input,
.partner-filters select {
  width: 100%;
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 0.75rem;
  background: rgba(24, 10, 4, 0.7);
  color: #fff7e8;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  padding: 0.58rem 0.72rem;
}

.partner-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.partner-card {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 1rem;
  padding: 0.72rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.7), rgba(24, 10, 4, 0.76));
}

.partner-card img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: cover;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 220, 150, 0.35);
}

.partner-card h3 {
  margin: 0 0 0.2rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #fff7e8;
}

.partner-meta {
  margin: 0.18rem 0;
  font-size: 0.95rem;
  line-height: 1.42;
  color: #ffe9cf;
}

.partner-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.partner-action-btn {
  border: 1px solid rgba(255, 220, 150, 0.5);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(78, 36, 10, 0.84), rgba(26, 14, 6, 0.88));
  color: #fff7e8;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.36rem 0.72rem;
  cursor: pointer;
}

.partner-action-btn-secondary {
  background: linear-gradient(160deg, rgba(52, 34, 22, 0.84), rgba(24, 16, 10, 0.88));
}

.partner-action-btn-danger {
  background: linear-gradient(160deg, rgba(116, 29, 18, 0.9), rgba(58, 13, 8, 0.92));
  border-color: rgba(255, 170, 150, 0.55);
}

.partner-card-inactive {
  opacity: 0.68;
}

.award-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.award-card {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 1rem;
  padding: 0.72rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.7), rgba(24, 10, 4, 0.76));
}

.award-card img {
  width: 5.2rem;
  height: 5.2rem;
  object-fit: cover;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 220, 150, 0.35);
}

.award-card h3 {
  margin: 0 0 0.22rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #fff7e8;
}

.tournament-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.tournament-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 220, 150, 0.32);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.74), rgba(24, 10, 4, 0.8));
}

.tournament-table {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
}

.tournament-table th,
.tournament-table td {
  padding: 0.24rem 0.28rem;
  border-bottom: 1px solid rgba(255, 220, 150, 0.18);
  text-align: left;
  color: #ffe9cf;
  font-size: 0.78rem;
  vertical-align: middle;
}

.tournament-table th {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff7e8;
  background: rgba(32, 15, 6, 0.5);
  position: sticky;
  top: 0;
}

.tournament-table tr:last-child td {
  border-bottom: none;
}

.tournament-action-head {
  width: 2.15rem;
}

.tournament-action-cell {
  width: 2.15rem;
  text-align: center;
}

.tournament-icon-btn {
  min-width: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  line-height: 1;
}

.tournament-row-inactive td {
  opacity: 0.68;
}

.tournament-card {
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.74), rgba(24, 10, 4, 0.8));
}

.tournament-card-inactive {
  opacity: 0.68;
}

.tournament-card-title {
  margin: 0 0 0.3rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff7e8;
}

.tournament-card-meta {
  margin: 0.16rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #ffe9cf;
}

.tournament-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.gallery-selected-tournament {
  margin-bottom: 0.9rem;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.gallery-card {
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 0.95rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.74), rgba(24, 10, 4, 0.8));
}

.gallery-image-button {
  width: 100%;
  display: block;
  border: none;
  border-radius: 0.7rem;
  padding: 0;
  margin: 0;
  background: rgba(16, 8, 4, 0.45);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 220, 150, 0.28);
  border-radius: 0.7rem;
}

.gallery-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.42rem;
  margin-top: 0.45rem;
}

.gallery-actions .partner-action-btn {
  flex: 1;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 0.69rem;
}

.gallery-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.85);
  backdrop-filter: blur(3px);
  padding: 0.8rem;
}

.gallery-zoom-overlay[hidden] {
  display: none;
}

.gallery-zoom-box {
  position: relative;
  width: min(96vw, 72rem);
  height: min(90vh, 50rem);
  border: 1px solid rgba(255, 220, 150, 0.38);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(42, 20, 8, 0.95), rgba(18, 8, 3, 0.96));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.55rem;
  padding: 0.9rem 0.85rem 0.85rem;
}

.gallery-zoom-close {
  position: absolute;
  top: 0.42rem;
  right: 0.6rem;
  border: none;
  background: none;
  color: #ffd97a;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-zoom-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding-right: 1.2rem;
}

.gallery-zoom-stage {
  border: 1px solid rgba(255, 220, 150, 0.24);
  border-radius: 0.9rem;
  background: rgba(12, 5, 2, 0.78);
  overflow: auto;
  display: grid;
  place-items: center;
}

.gallery-zoom-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 120ms ease;
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.public-gallery-grid .gallery-image-button {
  border-radius: 0.55rem;
}

.public-gallery-grid .gallery-image-button img {
  border-radius: 0.55rem;
}

.public-gallery-sections {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.public-gallery-section {
  border: 1px solid rgba(255, 220, 150, 0.26);
  border-radius: 1rem;
  padding: 0.62rem 0.62rem 0.12rem;
  background: linear-gradient(160deg, rgba(40, 19, 8, 0.66), rgba(20, 9, 4, 0.68));
}

.public-gallery-section-title {
  margin: 0 0 0.58rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.82rem, 3vw, 1rem);
  font-weight: 700;
  color: #fff7e8;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 5px rgba(20, 8, 0, 0.7);
}

.public-gallery-section .public-gallery-grid {
  margin-bottom: 0.5rem;
}

.public-gallery-card {
  border: 1px solid rgba(255, 220, 150, 0.34);
  border-radius: 0.95rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.74), rgba(24, 10, 4, 0.8));
  box-shadow: 0 10px 22px rgba(14, 6, 2, 0.18);
}

.public-gallery-meta {
  margin: 0.42rem 0 0.1rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #ffdca8;
}

.partner-action-btn:hover {
  color: #ffe680;
  border-color: rgba(255, 230, 150, 0.75);
}

.public-partners-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2.2rem 0 2.2rem;
}

.public-partner-card {
  display: block;
  height: 14rem;
  border: 1px solid rgba(255, 220, 150, 0.35);
  border-radius: 1rem;
  padding: 0.78rem;
  background: linear-gradient(160deg, rgba(50, 24, 9, 0.74), rgba(24, 10, 4, 0.8));
  box-shadow: 0 12px 28px rgba(16, 7, 3, 0.26);
  overflow: hidden;
}

.public-partner-card > div {
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 0.78rem;
  overflow: hidden;
}

.public-partner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.public-partner-square {
  flex-shrink: 0;
  width: 8.708rem;
  height: 8.708rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 220, 150, 0.35);
  background: linear-gradient(135deg, rgba(60, 28, 8, 0.6), rgba(30, 14, 5, 0.7));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-partner-square-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.public-partner-logo-wrap {
  width: 100%;
  height: 4.3rem;
  margin: 0.3rem 0 0.55rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 220, 150, 0.35);
  background: rgba(16, 8, 4, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.public-partner-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.public-partner-name {
  margin: 0 0 0.18rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: #fff7e8;
  text-shadow: 0 1px 6px rgba(20,8,0,0.8);
}

.public-partner-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.public-partner-web {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #ffe680;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.public-partner-types {
  margin: 0 0 0.42rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #ffdca8;
}

.public-partner-description {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #ffe9cf;
  overflow: hidden;
  max-height: calc(1.45em * 4);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 220, 150, 0.18);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  letter-spacing: 0.06em;
  color: #ffd97a;
  text-shadow: 0 1px 4px rgba(20,8,0,0.7);
}

.contact-value {
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.contact-link {
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  color: #fff7e8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 1px 4px rgba(20,8,0,0.8);
}

.contact-link:hover {
  color: #ffe680;
}

.bodovanje-tabs {
  margin-top: 1.4rem;
}

.bodovanje-tablist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
  padding: 0.9rem 0 1.1rem;
}

.bodovanje-tab {
  border: 1.5px solid rgba(255, 220, 150, 0.48);
  border-radius: 0.9rem;
  padding: 0.75rem 1.2rem;
  background: rgba(34, 16, 6, 0.55);
  color: #e8d5a8;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.bodovanje-tab:hover,
.bodovanje-tab:focus-visible {
  border-color: rgba(255, 230, 150, 0.8);
  color: #fff8e8;
  background: rgba(52, 24, 8, 0.68);
  outline: none;
}

.bodovanje-tab.is-active {
  border-color: rgba(255, 230, 150, 0.95);
  background: linear-gradient(135deg, rgba(122, 60, 18, 0.8), rgba(78, 36, 10, 0.85));
  color: #fff8e8;
  box-shadow: 0 4px 12px rgba(14, 6, 2, 0.28);
}

.bodovanje-panel {
  display: none;
  border: 1px solid rgba(255, 220, 150, 0.32);
  border-radius: 1.05rem;
  padding: 1.15rem 1rem;
  background: linear-gradient(165deg, rgba(50, 24, 9, 0.68), rgba(20, 10, 4, 0.76));
  box-shadow: 0 8px 20px rgba(10, 5, 2, 0.2);
}

.bodovanje-panel.is-active {
  display: block;
  animation: slideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bodovanje-panel .about-heading {
  margin-top: 0.2rem;
}

.bodovanje-panel .page-paragraph {
  margin-bottom: 0.8rem;
}

.bodovanje-table-wrap {
  margin: 0.95rem 0 1rem;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 220, 150, 0.27);
  border-radius: 0;
  background: rgba(18, 8, 4, 0.6);
}

.bodovanje-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 16rem;
}

.bodovanje-table th,
.bodovanje-table td {
  padding: 0.52rem 0.6rem;
  border-bottom: 1px solid rgba(255, 220, 150, 0.18);
  text-align: left;
  color: #ffe9cf;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.bodovanje-table th {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff7e8;
  background: rgba(32, 15, 6, 0.42);
}

.bodovanje-table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: grid;
  gap: 0.2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 220, 150, 0.14);
  padding-bottom: 0.55rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bodovanje-ordered-list {
  margin: 0.15rem 0 0.9rem;
  padding-left: 1.25rem;
  color: #ffe9cf;
}

.bodovanje-ordered-list li {
  margin: 0 0 0.38rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(20, 8, 0, 0.8);
}

@media (max-width: 39.99rem) {
  .countdown-section {
    margin-top: -2.6rem;
  }

  .bodovanje-tablist {
    gap: 0.52rem;
    padding: 0.8rem 0 1rem;
  }

  .bodovanje-tab {
    font-size: 0.76rem;
    padding: 0.68rem 1rem;
  }

  .bodovanje-panel {
    padding: 0.95rem 0.8rem 0.88rem;
  }

  .tournament-table-wrap {
    overflow-x: hidden;
  }

  .tournament-table {
    min-width: 0;
    table-layout: fixed;
  }

  .tournament-table th,
  .tournament-table td {
    padding: 0.16rem 0.14rem;
    font-size: 0.72rem;
    white-space: normal;
  }

  .tournament-col-round {
    width: 2.1rem;
    text-align: center;
    padding-right: 0.32rem;
  }

  .tournament-col-termin {
    width: 6.8rem;
    padding-left: 0.12rem;
  }

  .tournament-table th.tournament-col-round {
    padding-right: 0.5rem;
  }

  .tournament-table th.tournament-col-termin {
    padding-left: 0.5rem;
  }

  .tournament-col-status {
    width: 2rem;
    text-align: center;
  }

  .tournament-termin-cell {
    white-space: nowrap;
    padding-left: 0.38rem;
  }

  .tournament-venue-cell {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
  }

  .tournament-action-head,
  .tournament-action-cell {
    width: 1.7rem;
    text-align: center;
  }

  .tournament-icon-btn {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.76rem;
  }

  .logo-corner {
    width: 100vw;
  }
}

@media (min-width: 40rem) {
  .bodovanje-tab {
    font-size: 0.88rem;
    padding: 0.82rem 1.3rem;
  }

  .bodovanje-panel {
    padding: 1.32rem 1.2rem 1.2rem;
  }

  .admin-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .public-gallery-meta {
    font-size: 0.8rem;
  }

  .gallery-actions .partner-action-btn {
    font-size: 0.72rem;
  }

  .bg {
    background-position: center 38%;
    transform: scale(1.02);
  }

  :root {
    --cw: 160vw;
  }

  .logo-corner {
    width: min(100vw, 51.1rem);
  }

  .sm-corner {
    width: min(52.5vw, 27rem);
  }
}

@media (min-width: 64rem) {
  .admin-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .bg {
    background-position: center 33%;
  }

  :root {
    --cw: 104vw;
  }

  .logo-corner {
    width: min(85.75vw, 56rem);
  }

  .sm-corner {
    width: min(36vw, 30rem);
  }
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.85);
  backdrop-filter: blur(3px);
  padding: 0.8rem;
}

.modal-content {
  background: linear-gradient(160deg, rgba(42, 20, 8, 0.98), rgba(18, 8, 3, 0.98));
  border: 1px solid rgba(255, 220, 150, 0.38);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 30rem;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: modalSlideIn 0.3s ease;
}

.modal-content-wide {
  max-width: 44rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  margin: 0 0 1rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffd97a;
  text-shadow: 0 1px 4px rgba(20, 8, 0, 0.7);
}

.modal-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ffe9cf;
}

/* Button icon styles */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  display: inline-block;
  vertical-align: middle;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.btn-icon:active {
  transform: scale(0.95);
}

/* Button styles */
.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Source Sans 3', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd97a 0%, #ffc857 100%);
  color: #1a0a05;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 217, 122, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 220, 150, 0.2);
  border: 1px solid rgba(255, 220, 150, 0.5);
  color: #ffe9cf;
}

.player-row-clickable {
  cursor: pointer;
}

.player-row-clickable:hover td,
.player-row-clickable:focus td {
  background: rgba(255, 220, 150, 0.08);
}

.player-stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.player-stats-pill {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(255, 220, 150, 0.3);
  border-radius: 0.7rem;
  background: rgba(34, 16, 7, 0.58);
  padding: 0.65rem 0.75rem;
}

.player-stats-pill-label {
  font-size: 0.8rem;
  color: #f7dba8;
}

.player-stats-pill-value {
  font-size: 1.25rem;
  line-height: 1.15;
  color: #ffe680;
  font-family: 'Cinzel', serif;
}

.player-stats-table .tournament-table {
  min-width: 26rem;
}

.btn-secondary:hover {
  background: rgba(255, 220, 150, 0.3);
  border-color: rgba(255, 220, 150, 0.7);
}

.btn-danger {
  background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 83, 79, 0.4);
}

.btn-danger:active {
  transform: translateY(0);
}

/* Logout button — fixed top-right on admin pages */
.btn-logout {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  z-index: 200;
  padding: 0.45rem 1.1rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e8d5a3;
  background: rgba(30, 20, 10, 0.75);
  border: 1px solid rgba(232, 213, 163, 0.45);
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-logout:hover {
  background: rgba(217, 83, 79, 0.75);
  border-color: rgba(217, 83, 79, 0.9);
  color: #fff;
}


