@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap");
:root {
  --ink: #1a2035;
  --muted: #5f6b85;
  --paper: #f4f6fb;
  --card: #fff;
  --primary: #1e3a6d;
  --primary-dark: #142a52;
  --primary-light: #3f66a8;
  --accent: #c99a2e;
  --accent-dark: #a67c1e;
  --accent-light: #e8c468;
  --red: #dc2626;
  --violet: var(--primary);
  --violet-dark: var(--primary-dark);
  --blue: var(--primary-light);
  --cyan: var(--primary-light);
  --pink: var(--red);
  --amber: var(--accent);
  --grad-primary: linear-gradient(135deg, #1e3a6d, #3f66a8);
  --grad-warm: linear-gradient(135deg, #c99a2e, #e8c468);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 10px rgba(26, 32, 53, 0.06);
  --shadow-md: 0 14px 34px rgba(26, 32, 53, 0.1);
  --shadow-lg: 0 26px 60px rgba(26, 32, 53, 0.16);
  --shadow-violet: 0 16px 40px rgba(30, 58, 109, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(620px circle at 12% 8%, rgba(30, 58, 109, 0.1), transparent 60%), radial-gradient(560px circle at 88% 4%, rgba(201, 154, 46, 0.1), transparent 55%), radial-gradient(520px circle at 92% 60%, rgba(30, 58, 109, 0.06), transparent 55%), var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 100% - 40px);
  margin: auto;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: blobfloat 16s ease-in-out infinite;
}
.blob-1 {
  width: 380px;
  height: 380px;
  background: var(--primary);
  top: -140px;
  left: -90px;
}
.blob-2 {
  width: 340px;
  height: 340px;
  background: var(--accent);
  top: 20px;
  right: -110px;
  animation-delay: -5s;
}
.blob-3 {
  width: 280px;
  height: 280px;
  background: var(--primary-light);
  bottom: -120px;
  left: 32%;
  animation-delay: -10s;
}

@keyframes blobfloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0;
}

.nav {
  min-height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full);
  padding: 9px 10px 9px 22px;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 800 20px "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  box-shadow: var(--shadow-violet);
  display: block;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  align-items: center;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-violet);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(30, 58, 109, 0.36);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn:disabled {
  background: rgba(95, 107, 133, 0.25);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(26, 32, 53, 0.1);
}
.btn-light:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-coral {
  background: var(--grad-warm);
  box-shadow: 0 16px 36px rgba(201, 154, 46, 0.32);
}
.btn-coral:hover {
  box-shadow: 0 20px 44px rgba(201, 154, 46, 0.4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-warm);
}

.eyebrow-light {
  color: #f0dfae;
}
.eyebrow-light:before {
  background: #fff;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  max-width: 700px;
  margin: 16px 0 22px;
  background: linear-gradient(135deg, #1e3a6d, #3f66a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--ink);
}

h3 {
  font-size: 18px;
  color: var(--ink);
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 580px;
}

.hero {
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-chip strong {
  display: block;
  font: 800 30px "Plus Jakarta Sans", sans-serif;
  background: linear-gradient(135deg, #1e3a6d, #3f66a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-chip span {
  color: var(--muted);
  font-size: 13px;
}

.hero-art {
  min-height: 420px;
  border-radius: 32px;
  background: var(--ink) url("images/hero-action.jpg") center/cover no-repeat;
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 32, 53, 0) 40%, rgba(26, 32, 53, 0.7) 100%);
}

.hero-art-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  font-size: 13px;
  color: #f2f4fb;
  font-weight: 600;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
  gap: 20px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

#tournaments, #rules, #why {
  scroll-margin-top: 100px;
}

.announce-bar {
  background: var(--grad-primary);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 0 auto 8px;
  box-shadow: var(--shadow-violet);
}
.announce-bar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
.announce-bar strong {
  font-weight: 700;
}
.announce-bar a {
  text-decoration: underline;
  margin-left: 10px;
  font-weight: 700;
  color: #fff;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-form select {
  width: auto;
  padding: 10px 14px;
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  font-size: 21px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-violet);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 194px 194px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-md);
}
.gallery-item.tall {
  grid-row: 1/3;
}
.gallery-item span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}
.gallery-item:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 32, 53, 0) 55%, rgba(26, 32, 53, 0.65) 100%);
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-violet);
}

.card-photo {
  height: 190px;
  margin: -24px -24px 18px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 32, 53, 0) 55%, rgba(26, 32, 53, 0.55) 100%);
}

.card-photo-tags {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-photo-tags .tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
}
.card-photo-tags .tag-completed {
  color: var(--primary-light);
}
.card-photo-tags .tag-closed {
  color: var(--red);
}
.card-photo-tags .tag-draft {
  color: var(--muted);
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 20px;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  background: rgba(30, 58, 109, 0.12);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-completed {
  background: rgba(63, 102, 168, 0.14);
  color: var(--primary-light);
}

.tag-closed {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
}

.tag-draft {
  background: rgba(95, 107, 133, 0.14);
  color: var(--muted);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.rule-grid article {
  position: relative;
}
.rule-grid p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.rule-index {
  display: block;
  font: 800 13px "Plus Jakarta Sans", sans-serif;
  background: linear-gradient(135deg, #c99a2e, #e8c468);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.cta-band {
  background: linear-gradient(120deg, rgba(20, 42, 82, 0.92), rgba(63, 102, 168, 0.85)), url("images/cta-action.jpg") center 25%/cover no-repeat;
  color: #fff;
  border-radius: 32px;
  padding: 52px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  max-width: 420px;
  margin-top: 10px;
  -webkit-text-fill-color: #fff;
}
.cta-band p {
  color: #dce6f7;
  margin: 10px 0 0;
  max-width: 420px;
}

.footer {
  border-top: 1px solid rgba(26, 32, 53, 0.08);
  padding: 48px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-grid h4 {
  font: 700 13px "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  padding: 5px 0;
}
.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(26, 32, 53, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, rgba(20, 42, 82, 0.93), rgba(63, 102, 168, 0.88)), url("images/gallery-1.jpg") center/cover no-repeat;
}
.auth-visual .brand {
  color: #fff;
  position: relative;
  z-index: 1;
}

.auth-quote {
  font: 800 30px "Plus Jakarta Sans", sans-serif;
  line-height: 1.25;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.auth-quote span {
  display: block;
  font: 500 15px "Inter", sans-serif;
  color: #dce6f7;
  margin-top: 14px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-mobile-brand {
    display: flex;
  }
}
.form-wrap {
  max-width: 760px;
  margin: 55px auto;
}

.form-card {
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(26, 32, 53, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 109, 0.14);
}

textarea {
  min-height: 115px;
  resize: vertical;
}

.field-full {
  grid-column: 1/-1;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.notice {
  border-left: 4px solid var(--primary);
  background: rgba(30, 58, 109, 0.08);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 4px;
}

.error {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.08);
}

.payment-card {
  background: linear-gradient(160deg, #142a52, #1e3a6d);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.payment-card h2 {
  margin: 8px 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.payment-kicker {
  color: #e8c468;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-total {
  font: 800 42px "Plus Jakarta Sans", sans-serif;
  margin: 26px 0;
}

.payment-note {
  color: #cbd6ea;
  font-size: 13px;
  margin: 18px 0 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: calc(100vh - 76px);
}

.sidebar {
  background: linear-gradient(165deg, #142a52, #1e3a6d);
  color: #cfdaf0;
  padding: 28px 20px;
}
.sidebar h3 {
  color: #fff;
  margin-bottom: 24px;
}
.sidebar a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #b7c6e6;
  font-size: 14px;
  margin: 4px 0;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-main {
  padding: 38px;
}

.rating-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px;
}
.rating-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.rating-card .rc-name {
  font: 800 22px "Plus Jakarta Sans", sans-serif;
}
.rating-card .rc-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.rating-card .rc-points {
  margin-left: auto;
  text-align: center;
}
.rating-card .rc-points strong {
  display: block;
  font: 800 42px "Plus Jakarta Sans", sans-serif;
  background: linear-gradient(135deg, #1e3a6d, #3f66a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.rating-card .rc-points span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.stat {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font: 800 34px "Plus Jakarta Sans", sans-serif;
  margin-top: 8px;
  background: linear-gradient(135deg, #1e3a6d, #3f66a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-wrap {
  overflow: auto;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(26, 32, 53, 0.08);
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(95, 107, 133, 0.12);
}
.pill.open, .pill.confirmed {
  color: var(--primary);
  background: rgba(30, 58, 109, 0.14);
}

@media (max-width: 900px) {
  .tournament-grid, .rule-grid, .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item.tall {
    grid-row: auto;
    grid-column: 1/3;
  }
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-art {
    min-height: 260px;
  }
  .menu-toggle {
    display: flex;
  }
  #siteNav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.18s ease;
  }
  #siteNav.open {
    max-height: min(70vh, 560px);
    opacity: 1;
    pointer-events: auto;
  }
  #siteNav a {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }
  #siteNav a:hover {
    background: rgba(30, 58, 109, 0.08);
  }
  #siteNav .btn {
    margin-top: 4px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
  .admin-main {
    padding: 25px 20px;
  }
  .sidebar {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .tournament-grid, .rule-grid, .feature-grid, .stats, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  .cta-band {
    padding: 36px 26px;
  }
  .section {
    padding: 52px 0;
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery-item, .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    height: 200px;
  }
}
