:root {
  --bg: #050711;
  --bg2: #0a1022;
  --card: rgba(255,255,255,.09);
  --card-strong: rgba(255,255,255,.14);
  --text: #ffffff;
  --muted: #b9c2d6;
  --accent: #ffd43b;
  --accent2: #17d17d;
  --danger: #ff4d6d;
  --border: rgba(255,255,255,.16);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(23, 209, 125, .20), transparent 28%),
    radial-gradient(circle at 86% 5%, rgba(255, 212, 59, .22), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(37, 99, 235, .18), transparent 28%),
    linear-gradient(135deg, #050711, #12172b 52%, #070914);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 20, .78);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand img { width: 150px; max-height: 50px; object-fit: contain; }
.brand span { display: none; }

.menu-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: "";
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
  display: block;
  transition: .2s ease;
}
.menu-btn { gap: 5px; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.56); opacity: 0; pointer-events: none; z-index: 30; transition: .2s ease; }
.drawer { position: fixed; top: 0; right: 0; width: min(410px, 92vw); height: 100vh; padding: 22px; background: #0b1020; border-left: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(104%); transition: .25s ease; z-index: 31; overflow: auto; }
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.close-btn { background: var(--card); color: white; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.drawer-padding { padding: 18px; }
.drawer-gap { height: 14px; }
.drawer-admin-btn { display: block; text-align: center; }

.hero { padding: 42px 0 18px; }
.hero-centered { text-align: center; }
.hero-copy, .guess-card, .panel-card, .drawer-card, .winners-card, .promo-card {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.065));
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.hero-main-card { padding: 38px; position: relative; overflow: hidden; }
.hero-main-card::before, .hero-main-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero-main-card::before { width: 220px; height: 220px; background: rgba(23,209,125,.16); left: -70px; top: -90px; }
.hero-main-card::after { width: 300px; height: 300px; background: rgba(255,212,59,.12); right: -120px; bottom: -140px; }

.badge, .mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,212,59,.15);
  color: #ffe789;
  border: 1px solid rgba(255,212,59,.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}
h1 { position: relative; margin: 18px auto 12px; font-size: clamp(36px, 6vw, 72px); line-height: .95; letter-spacing: -.065em; max-width: 880px; }
.subtitle { position: relative; color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 720px; margin: 0 auto; }

.match-title-pill { display: inline-flex; margin: 28px auto 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #e5e7eb; font-weight: 900; }
.match-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 18px;
  align-items: center;
  margin: 0 auto;
  max-width: 760px;
}
.team-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
}
.team-card img { width: min(155px, 40vw); height: 130px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.38)); }
.team-card strong { font-size: clamp(24px, 4vw, 36px); line-height: 1; letter-spacing: -.04em; }
.team-card-home { background: linear-gradient(160deg, rgba(22,163,74,.24), rgba(255,255,255,.07)); }
.team-card-away { background: linear-gradient(160deg, rgba(37,99,235,.20), rgba(255,255,255,.07)); }
.versus-stack {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #121212;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(255,212,59,.30);
  border: 6px solid rgba(255,255,255,.22);
}
.versus-stack span { font-size: 28px; line-height: 1; }
.versus-stack small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }

.timer-panel {
  position: relative;
  margin: 24px auto 0;
  max-width: 760px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.16);
}
.timer-label { color: #ffe789; font-weight: 900; margin-bottom: 12px; }
.timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timer-grid div { padding: 14px 10px; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); }
.timer-grid strong { display: block; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; line-height: 1; }
.timer-grid span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.timer-panel p { margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.timer-panel.is-closed { border-color: rgba(255,77,109,.45); background: rgba(255,77,109,.10); }
.info-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.centered-info { justify-content: center; }
.info-pill { background: rgba(255,255,255,.09); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.info-pill strong { color: white; }
.hero-notice { margin-top: 24px; }

.entry-section { padding: 8px 0 28px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
.guess-card { padding: 28px; }
.card-headline { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.card-title { margin: 0 0 7px; font-size: 26px; letter-spacing: -.03em; }
.card-desc { margin: 0 0 20px; color: var(--muted); line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field-help { margin: -3px 0 8px; color: var(--muted); font-size: 13px; }
label { font-size: 13px; font-weight: 900; color: #eef2ff; }
input, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  color: white;
  background: rgba(0,0,0,.25);
  outline: none;
}
input:focus, select:focus { border-color: rgba(255,212,59,.65); box-shadow: 0 0 0 4px rgba(255,212,59,.12); }
.score-box { padding: 14px; margin-bottom: 14px; border-radius: 24px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); }
.score-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.score-divider { padding-bottom: 22px; color: var(--accent); font-weight: 950; font-size: 24px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.product-check { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.06); cursor: pointer; }
.product-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.product-card-option { align-items: stretch; padding: 10px; min-height: 98px; transition: .18s ease; }
.product-card-option:hover { transform: translateY(-1px); border-color: rgba(255,212,59,.40); }
.product-card-option:has(input:checked) { border-color: rgba(255,212,59,.70); background: rgba(255,212,59,.12); }
.product-art { width: 82px; min-width: 82px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.25); }
.product-art img { width: 100%; height: 70px; object-fit: contain; padding: 4px; }
.product-info { min-width: 0; display: grid; align-content: center; gap: 5px; text-align: left; }
.product-info strong { display: block; font-size: 15px; color: white; }
.product-info small { color: var(--muted); font-size: 12px; line-height: 1.25; }

.btn { border: 0; border-radius: 18px; padding: 14px 18px; font-weight: 950; cursor: pointer; transition: .18s ease; }
.btn-primary { background: var(--accent); color: #161616; width: 100%; box-shadow: 0 16px 34px rgba(255,212,59,.22); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary { background: rgba(255,255,255,.10); color: white; border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.notice { border-radius: 18px; padding: 14px; margin-bottom: 16px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.07); }
.notice.success { border-color: rgba(23, 209, 125, .45); background: rgba(23,209,125,.10); color: #b7ffd9; }
.notice.error { border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.10); color: #ffd0d9; }
.notice.warning { border-color: rgba(255,212,59,.55); background: rgba(255,212,59,.10); color: #ffedac; }
.status-card { text-align: center; padding: 28px; }
.status-icon { font-size: 48px; margin-bottom: 10px; }

.promo-card { padding: 28px; position: sticky; top: 96px; overflow: hidden; }
.promo-card h2 { margin: 16px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -.05em; }
.promo-card p { color: var(--muted); line-height: 1.5; }
.showcase-products { display: grid; gap: 10px; margin-top: 20px; }
.showcase-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.showcase-item img { width: 74px; height: 48px; border-radius: 12px; object-fit: contain; padding: 3px; background: rgba(0,0,0,.24); }
.showcase-item span { font-weight: 900; }

.winners-section { padding: 18px 0 46px; }
.winners-card { padding: 26px; }
.winner-list { display: grid; gap: 10px; margin-top: 18px; }
.winner-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.winner-item small { color: var(--muted); display: block; margin-top: 4px; }
.score-tag { background: rgba(255,212,59,.18); color: #ffe58a; border: 1px solid rgba(255,212,59,.35); padding: 9px 12px; border-radius: 999px; font-weight: 900; }
.footer { color: var(--muted); text-align: center; padding: 22px 0 34px; font-size: 13px; }
.lookup-result { margin-top: 14px; display: grid; gap: 10px; }
.lookup-box { padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.07); }
.lookup-box strong { display: block; margin-bottom: 4px; }
.lookup-box p { margin: 4px 0; color: var(--muted); }

.admin-body { background: #f4f6fb; color: #111827; }
.admin-body::before { display: none; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { background: #0b1020; color: white; padding: 24px; }
.sidebar img { width: 170px; margin-bottom: 20px; }
.sidebar a { display: block; padding: 12px 14px; border-radius: 14px; color: #dbe3ff; margin-bottom: 8px; }
.sidebar a:hover { background: rgba(255,255,255,.08); }
.admin-main { padding: 28px; overflow: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.panel-card { background: white; border: 1px solid #e5e7eb; color: #111827; box-shadow: 0 12px 30px rgba(15,23,42,.06); padding: 20px; border-radius: 22px; }
.panel-card h3 { margin: 0 0 12px; }
.metric strong { display:block; font-size: 30px; }
.admin-form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.admin-body input, .admin-body select { color:#111827; background:#fff; border-color:#d7dce8; }
.admin-body label { color:#111827; }
.admin-check { background:#fff; color:#111827; }
.table-wrap { overflow:auto; border-radius: 18px; border:1px solid #e5e7eb; }
table { width:100%; border-collapse: collapse; background:white; }
th, td { padding:12px; border-bottom:1px solid #edf0f6; text-align:left; vertical-align: top; font-size: 14px; }
th { background:#f9fafb; font-weight:900; }
.admin-alert { padding: 13px 14px; border-radius: 16px; margin-bottom: 16px; background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.login-page { min-height:100vh; display:grid; place-items:center; padding: 20px; background: linear-gradient(135deg, #070914, #12172b); color:white; }
.login-card { width:min(430px, 100%); padding:28px; border-radius:28px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.login-card img { width:170px; display:block; margin:0 auto 18px; }
.login-card input { color:white; }
.actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tiny { color:#6b7280; font-size:12px; }
.admin-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.admin-product-card { border: 1px solid #e5e7eb; border-radius: 20px; padding: 16px; background: #f9fafb; }
.admin-product-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 12px; }
.admin-product-logo img { width: 160px; height: 95px; object-fit: contain; }

@supports not selector(:has(*)) {
  .product-card-option input:checked + .product-art { outline: 3px solid rgba(255,212,59,.70); }
}

@media (max-width: 1000px) {
  .entry-grid { grid-template-columns: 1fr; }
  .promo-card { position: relative; top: auto; }
  .admin-products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 22px, 1120px); }
  .hero { padding-top: 24px; }
  .hero-main-card, .guess-card, .winners-card, .promo-card { border-radius: 24px; padding: 22px; }
  .match-stage { grid-template-columns: 1fr; max-width: 420px; }
  .versus-stack { margin: -4px auto; width: 82px; height: 82px; }
  .team-card { min-height: 170px; }
  .team-card img { height: 105px; }
  .form-grid, .products, .admin-form-grid, .admin-grid, .product-logo-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 1fr auto 1fr; }
  .timer-grid { gap: 7px; }
  .timer-grid div { padding: 12px 6px; border-radius: 16px; }
  .product-art { width: 92px; min-width: 92px; }
}
