* { box-sizing: border-box; }
:root {
  --field: #008a2e;
  --field-bright: #20d943;
  --field-soft: #e8f8ed;
  --yellow: #ffc928;
  --blue: #053d95;
  --blue-strong: #0f62d8;
  --deep: #062a67;
  --night: #041230;
  --ink: #0d1b2a;
  --muted: #6e7687;
  --line: #d9e3ef;
  --off: #f6f9fe;
  --glass: rgba(10,47,104,.72);
  --shadow-soft: 0 10px 30px rgba(20,42,80,.10);
  --shadow-lift: 0 16px 42px rgba(4,18,48,.18);
}
html {
  background:
    radial-gradient(circle at top, rgba(15,98,216,.12), transparent 34rem),
    linear-gradient(180deg, #edf3fb 0%, #dfe7f1 100%);
  scrollbar-color: #b9c8d8 transparent;
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  background: transparent;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.phone {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), transparent 180px),
    var(--off);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 70px rgba(4,18,48,.18);
}
.screen { min-height: 100vh; padding-bottom: 86px; }
.screen.dark {
  background:
    linear-gradient(180deg, rgba(4,18,48,.90), rgba(4,18,48,.98)),
    url("stadium_night_bg.png") center/cover fixed;
  color: #fff;
}
.hero {
  min-height: 330px;
  padding: 24px 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(3,27,69,.92), rgba(5,61,149,.75) 56%, rgba(0,138,46,.60)),
    linear-gradient(rgba(3,27,69,.58), rgba(3,27,69,.90)),
    url("stadium_night_bg.png") center/cover;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
}
.hero.round { min-height: 150px; }
.hero > * { position: relative; z-index: 1; }
.logo {
  width: 246px;
  max-width: 78%;
  height: auto;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 30px rgba(4,18,48,.18);
  object-fit: contain;
}
.top-row, .row { display: flex; align-items: center; gap: 12px; }
.top-row { justify-content: space-between; margin-bottom: 28px; }
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  z-index: 20;
  min-height: 78px;
  padding: max(9px, env(safe-area-inset-top)) 14px 9px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4,18,48,.96), rgba(5,36,88,.90)),
    url("stadium_night_bg.png") center/cover;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(4,18,48,.22);
  backdrop-filter: blur(14px);
}
.screen:has(.site-header) > .content,
.screen:has(.site-header) .content {
  padding-top: calc(100px + env(safe-area-inset-top));
}
.site-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32,217,67,.48), transparent);
}
.header-brand {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.icon-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(4,18,48,.20));
}
.menu-button {
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.menu-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.menu-button:active { transform: scale(.97); }
.notify {
  width: 42px;
  height: 42px;
  color: #fff;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.notify::before { content: "!";
  font-weight: 900;
  opacity: .86;
}
.notify::after { content: ""; position: absolute; right: 9px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--field-bright); box-shadow: 0 0 0 3px rgba(32,217,67,.16); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.08; font-weight: 900; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.15; font-weight: 900; color: var(--deep); text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.2; font-weight: 900; color: var(--deep); text-wrap: balance; }
p { line-height: 1.42; }
.dark h2, .dark h3 { color: #fff; }
.muted { color: var(--muted); }
.dark .muted { color: rgba(255,255,255,.72); }
.green { color: var(--field-bright); }
.content { padding: 24px 22px; display: grid; gap: 20px; }
.stack { display: grid; gap: 15px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  background: linear-gradient(180deg, #0a9f3a, var(--field));
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,138,46,.26);
}
.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 1.4px solid #b9c5d3;
  box-shadow: 0 8px 18px rgba(20,42,80,.06);
}
.btn.dark-outline { color: #fff; background: rgba(255,255,255,.07); border: 1.4px solid rgba(32,217,67,.82); }
.btn:disabled { background: #b6c8be; cursor: not-allowed; }
.btn.disabled,
.btn.disabled:visited {
  background: linear-gradient(180deg, #e8eef6, #d6e0eb);
  color: #6b7788;
  border: 1px solid #c8d4e2;
  box-shadow: none;
  cursor: default;
  pointer-events: auto;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(217,227,239,.78);
  box-shadow: 0 8px 24px rgba(20,42,80,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:active, a.glass:active { transform: scale(.992); }
@media (hover: hover) {
  a.card:hover, form.card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(15,98,216,.22);
  }
}
.glass {
  background:
    linear-gradient(180deg, rgba(15,98,216,.14), rgba(4,18,48,.04)),
    var(--glass);
  border: 1px solid rgba(19,111,234,.74);
  color: #fff;
  border-radius: 18px;
  padding: 17px;
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
  backdrop-filter: blur(8px);
}
.field {
  width: 100%;
  min-height: 58px;
  border: 1.4px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  padding: 10px 14px;
  outline: 0;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field:focus {
  border-color: var(--field);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,138,46,.12);
}
label { display: grid; gap: 7px; font-weight: 800; color: var(--deep); }
.dark label { color: #fff; }
.alert { padding: 14px 15px; border-radius: 16px; font-weight: 800; border: 1px solid transparent; box-shadow: 0 8px 18px rgba(20,42,80,.06); }
.alert.error { color: #711515; background: #ffe9e9; border-color: #ffc8c8; }
.alert.success { color: #0b642a; background: #e8f8ed; border-color: #bce9c9; }
.pool-card {
  display: grid;
  gap: 15px;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(15,98,216,.10);
  background: #fff;
  box-shadow: 0 14px 34px rgba(4,18,48,.12);
}
.pool-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.pool-title { flex: 1; min-width: 0; }
.pool-title h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.18;
}
.pool-emblem {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid #e1eaf4;
}
.pool-emblem img { width: 46px; height: 46px; object-fit: contain; }
.slot-block { display: grid; gap: 8px; }
.slot-block strong { color: var(--deep); }
.slot-block .green { color: var(--field); font-size: 19px; }
.spread { justify-content: space-between; }
.pool-meta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pool-meta-chip {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f0f6ff;
  color: var(--blue);
}
.pool-meta-chip.yellow { background: #fff8de; color: #806000; }
.pool-meta-chip small {
  opacity: .72;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}
.pool-meta-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf7ef;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid rgba(0,138,46,.10);
}
.chip { display: inline-flex; border-radius: 999px; padding: 7px 10px; background: #eaf4ff; color: var(--blue); font-weight: 900; font-size: 13px; border: 1px solid rgba(5,61,149,.08); }
.chip.yellow { background: #fff7d8; color: #7a5a00; }
.progress { height: 10px; border-radius: 99px; overflow: hidden; background: #e8eef5; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #11a94c, #18c75a); border-radius: inherit; }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  width: min(calc(100vw - 24px), 406px);
  transform: translateX(-50%);
  background: rgba(255,255,255,.92);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(4,18,48,.22);
  border: 1px solid rgba(217,227,239,.92);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  z-index: 5;
}
.nav-item {
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: #7d8795;
  font-size: 11px;
  font-weight: 900;
  border-radius: 15px;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.nav-item:active { transform: scale(.98); }
.nav-item.active {
  color: var(--deep);
  background: linear-gradient(180deg, rgba(0,138,46,.10), rgba(0,138,46,.04));
}
.nav-item.active .nav-icon {
  background: linear-gradient(180deg, #0a9f3a, var(--field));
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,138,46,.28);
}
.nav-icon {
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #8a94a3;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.nav-item.active .nav-icon svg { width: 21px; height: 21px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat strong { display: block; color: var(--field); font-size: 28px; }
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  position: relative;
  z-index: 1;
}
.page-head-copy { min-width: 0; display: grid; gap: 5px; }
.page-head-copy h1 {
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.12;
  max-height: 46px;
  overflow: hidden;
}
.back {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.back:active { transform: scale(.97); }
.back svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}
.section-title { display: flex; gap: 10px; align-items: flex-start; }
.section-title::before { content: ""; width: 5px; height: 34px; border-radius: 99px; background: linear-gradient(180deg, var(--field-bright), var(--field)); flex: 0 0 auto; box-shadow: 0 0 18px rgba(32,217,67,.24); }
.round-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}
.round-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.round-arrow:active { transform: scale(.97); }
.choice-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.choice-grid::-webkit-scrollbar { display: none; }
.choice {
  min-width: 150px;
  scroll-snap-align: center;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,.24);
  background: rgba(16,54,111,.56);
  padding: 14px;
  font-weight: 900;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.choice.selected {
  border-color: var(--field-bright);
  background: rgba(18,216,90,.18);
  color: #67f245;
  box-shadow: 0 0 0 3px rgba(32,217,67,.10), inset 0 1px 0 rgba(255,255,255,.14);
}
.deadline-card {
  display: grid;
  gap: 16px;
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  background:
    linear-gradient(145deg, rgba(6,42,103,.92), rgba(5,61,149,.70) 54%, rgba(0,138,46,.42)),
    url("stadium_night_bg.png") center/cover;
}
.deadline-card.closed {
  background:
    linear-gradient(145deg, rgba(63,20,20,.92), rgba(103,37,37,.72) 54%, rgba(5,61,149,.34)),
    url("stadium_night_bg.png") center/cover;
}
.deadline-main { display: grid; gap: 7px; }
.deadline-main h2 { color: #fff; }
.deadline-main p { color: rgba(255,255,255,.78); font-weight: 700; }
.deadline-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(18,216,90,.18);
  color: #67f245;
  border: 1px solid rgba(103,242,69,.34);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.deadline-card.closed .deadline-kicker {
  background: rgba(255,233,233,.14);
  color: #ffd4d4;
  border-color: rgba(255,212,212,.30);
}
.deadline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.deadline-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(4,18,48,.38);
  border: 1px solid rgba(255,255,255,.12);
}
.deadline-grid div:last-child { grid-column: 1 / -1; }
.deadline-grid span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
}
.deadline-grid strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
}
.soon-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,244,255,.96)),
    #fff;
  border: 1px solid rgba(15,98,216,.14);
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.soon-badge {
  justify-self: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff7d8;
  color: #7a5a00;
  border: 1px solid rgba(255,201,40,.34);
  font-size: 12px;
  font-weight: 900;
}
.form-disabled {
  opacity: .48;
  filter: grayscale(.2);
}
.form-disabled button,
.form-disabled input,
.form-disabled select {
  pointer-events: none;
}
.match-card {
  gap: 18px;
  padding: 18px;
}
.match-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.match-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.match-meta strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}
.match-meta p {
  overflow-wrap: anywhere;
}
.match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  text-align: center;
}
.team-block {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.team-block strong {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.score-separator {
  align-self: center;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  padding-top: 36px;
}
.score,
.score:focus,
.score:active {
  width: 78px;
  min-height: 58px;
  text-align: center;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(180deg, rgba(16,76,162,.72), rgba(8,43,104,.86));
  border-color: rgba(255,255,255,.36);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  caret-color: var(--field-bright);
}
.score:focus {
  border-color: var(--field-bright);
  box-shadow: 0 0 0 4px rgba(32,217,67,.16), inset 0 1px 0 rgba(255,255,255,.12);
}
.score:disabled {
  opacity: .72;
  color: rgba(255,255,255,.76);
  -webkit-text-fill-color: rgba(255,255,255,.76);
}
.prediction-progress-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  background: rgba(4,18,48,.38);
  border: 1px solid rgba(255,255,255,.12);
}
.prediction-progress-card.pending {
  border-color: rgba(255,201,40,.42);
  background: linear-gradient(135deg, rgba(4,18,48,.42), rgba(125,88,0,.20));
}
.prediction-progress-card.complete {
  border-color: rgba(103,242,69,.46);
  background: linear-gradient(135deg, rgba(4,18,48,.42), rgba(18,216,90,.16));
}
.prediction-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.prediction-progress-head h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.2;
}
.prediction-progress-head strong {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #67f245;
  font-weight: 900;
}
.prediction-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.prediction-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc928, #67f245);
}
.prediction-progress-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-weight: 800;
  line-height: 1.35;
}
.match-card.score-risk {
  border-color: rgba(255,201,40,.72);
  box-shadow: 0 0 0 3px rgba(255,201,40,.10), 0 12px 34px rgba(0,0,0,.18);
}
.score-warning {
  display: none;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,201,40,.46);
  background: rgba(255,201,40,.13);
  color: #ffe08a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}
.match-card.score-risk .score-warning {
  display: block;
}
.score-warning.locked {
  display: block;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}
.score::-webkit-outer-spin-button,
.score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.result-summary {
  display: grid;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(4,18,48,.36);
  border: 1px solid rgba(255,255,255,.12);
}
.result-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.result-score span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}
.result-score strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.result-score b {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(18,216,90,.16);
  color: #67f245;
  white-space: nowrap;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.result-tag.green { background: rgba(103,242,69,.14); color: #67f245; border-color: rgba(103,242,69,.36); }
.result-tag.blue { background: rgba(139,215,255,.14); color: #8bd7ff; border-color: rgba(139,215,255,.36); }
.result-tag.yellow { background: rgba(255,201,40,.14); color: #ffc928; border-color: rgba(255,201,40,.36); }
.result-tag.soft { background: rgba(232,248,237,.14); color: #e8f8ed; border-color: rgba(232,248,237,.30); }
.result-tag.red { background: rgba(255,212,212,.14); color: #ffd4d4; border-color: rgba(255,212,212,.34); }
.prediction-hub {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6,42,103,.94), rgba(5,61,149,.66), rgba(0,138,46,.34)),
    url("stadium_night_bg.png") center/cover;
  border: 1px solid rgba(32,217,67,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.prediction-hub h2 { color: #fff; }
.prediction-hub p { color: rgba(255,255,255,.76); font-weight: 700; margin-top: 6px; }
.save-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw,430px);
  padding: 16px 18px max(16px, env(safe-area-inset-bottom));
  background: rgba(4,18,48,.94);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--deep), var(--blue-strong)); color: #fff; font-weight: 900; font-size: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); flex: 0 0 auto; }
.avatar.small { width: 38px; height: 38px; font-size: 14px; }
.participant-filter {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(4,18,48,.42);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.participant-filter h3 {
  margin: 3px 0 0;
  font-size: 17px;
}
.participant-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}
.participant-filter-form > label {
  gap: 6px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-group {
  display: grid;
  gap: 8px;
}
.filter-select {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
}
.filter-select summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.filter-select summary::-webkit-details-marker { display: none; }
.filter-select summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #67f245;
  border-bottom: 2px solid #67f245;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.filter-select[open] summary::after { transform: rotate(225deg); }
.filter-select summary span {
  grid-column: 1;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-select summary strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}
.filter-select-list {
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(4,18,48,.34);
}
.filter-option {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.90);
  cursor: pointer;
}
.filter-option input {
  width: 22px;
  height: 22px;
  margin: 0;
}
.filter-option b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.filter-option em {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.filter-option.selected {
  background: rgba(18,216,90,.12);
  color: #67f245;
}
.filter-option input[type="checkbox"],
.filter-option input[type="checkbox"]:checked {
  position: static;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #20d943;
  background: initial;
  border: initial;
  border-radius: 3px;
  opacity: 1;
  pointer-events: auto;
}
.filter-option input[type="checkbox"]::after {
  display: none;
}
.filter-group > span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-token-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-token {
  min-height: 38px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.filter-token:active { transform: scale(.98); }
.filter-token input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter-token b {
  max-width: min(245px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
}
.filter-token em {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.filter-token.selected {
  border-color: rgba(103,242,69,.78);
  background: rgba(18,216,90,.18);
  color: #67f245;
  box-shadow: 0 0 0 3px rgba(18,216,90,.08);
}
.filter-token.selected em {
  background: rgba(103,242,69,.18);
  color: #67f245;
}
.participant-select {
  width: 100%;
  min-width: 0;
  color: var(--deep);
  font-weight: 900;
  min-height: 52px;
}
.participant-apply {
  min-height: 50px;
  padding: 0 14px;
  white-space: nowrap;
}
.clear-filters {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 900;
}
.public-board { display: grid; gap: 14px; }
.public-game {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15,98,216,.14), rgba(4,18,48,.04)),
    var(--glass);
  border: 1px solid rgba(19,111,234,.74);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.public-game summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}
.public-game summary::-webkit-details-marker { display: none; }
.public-game-main { min-width: 0; display: grid; gap: 4px; }
.public-game-main strong { overflow-wrap: anywhere; font-size: 17px; }
.public-game-main span { color: rgba(255,255,255,.62); font-weight: 800; font-size: 13px; }
.public-game-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.public-game-meta b {
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(18,216,90,.16);
  color: #67f245;
}
.public-game-meta em {
  color: rgba(255,255,255,.66);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.public-predictions-table {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.public-prediction-line {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(4,18,48,.34);
  border: 1px solid rgba(255,255,255,.12);
}
.public-prediction-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.public-player {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.public-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
}
.public-player span {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 800;
}
.public-prediction-scorebox {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
}
.public-score {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18,216,90,.14);
  color: #67f245;
  text-align: center;
  font-weight: 900;
}
.public-points {
  color: rgba(255,255,255,.74);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  font-size: 14px;
}
.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.reaction-form { margin: 0; }
.reaction-button {
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.reaction-button:hover {
  transform: translateY(-1px);
  border-color: rgba(103,242,69,.55);
  background: rgba(18,216,90,.12);
}
.reaction-button.active {
  border-color: rgba(103,242,69,.82);
  background: rgba(18,216,90,.20);
  box-shadow: 0 0 0 3px rgba(18,216,90,.10), inset 0 1px 0 rgba(255,255,255,.12);
}
.reaction-button span {
  font-size: 17px;
  line-height: 1;
}
.reaction-button b {
  min-width: 12px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.public-match { gap: 14px; }
.public-predictions { display: grid; gap: 10px; }
.public-prediction-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(4,18,48,.34);
  border: 1px solid rgba(255,255,255,.12);
}
.public-prediction-row strong { overflow-wrap: anywhere; }
.public-prediction-row span {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18,216,90,.14);
  color: #67f245;
  text-align: center;
  font-weight: 900;
}
.public-prediction-row em {
  color: rgba(255,255,255,.72);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.public-result-tags { grid-column: 2 / -1; }
.public-prediction-line > .public-result-tags {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 48px;
}
.round-awards-hero {
  display: grid;
  gap: 12px;
  min-height: 220px;
  align-content: end;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  background:
    linear-gradient(145deg, rgba(6,42,103,.90), rgba(5,61,149,.62), rgba(0,138,46,.48)),
    url("ranking_trophy_art.png") center/cover;
}
.round-awards-hero.gold {
  background:
    linear-gradient(145deg, rgba(6,42,103,.90), rgba(120,90,0,.50), rgba(0,138,46,.44)),
    url("ranking_trophy_art.png") center/cover;
}
.round-awards-hero.danger {
  background:
    linear-gradient(145deg, rgba(63,20,20,.92), rgba(103,37,37,.72), rgba(5,61,149,.36)),
    url("stadium_night_bg.png") center/cover;
}
.round-awards-hero p { color: rgba(255,255,255,.78); font-weight: 800; }
.award-row { min-height: 86px; }
.art { width: 100%; max-height: 230px; object-fit: contain; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select.field {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--deep) 50%),
    linear-gradient(135deg, var(--deep) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
input[type="checkbox"] {
  width: 48px;
  height: 28px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid #c9d3e0;
  background: #d7dfea;
  position: relative;
  transition: background .16s ease;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .16s ease;
}
input[type="checkbox"]:checked { background: var(--field); border-color: var(--field); }
input[type="checkbox"]:checked::after { transform: translateX(20px); }
.filter-token input[type="checkbox"],
.filter-token input[type="checkbox"]:checked {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  appearance: none;
  pointer-events: none;
}
.filter-token input[type="checkbox"]::after { display: none; }
.filter-option input[type="checkbox"],
.filter-option input[type="checkbox"]:checked {
  position: static;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #20d943;
  background: initial;
  border: initial;
  border-radius: 3px;
  opacity: 1;
  pointer-events: auto;
}
.filter-option input[type="checkbox"]::after { display: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(125,135,149,.42); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(5,61,149,.44); }
@media (max-width: 360px) {
  h1 { font-size: 30px; }
  .content, .hero { padding-left: 18px; padding-right: 18px; }
  .actions, .split { grid-template-columns: 1fr; }
  .round-carousel { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 6px; }
  .round-arrow { width: 38px; height: 38px; }
  .choice { min-width: 132px; }
  .public-prediction-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .public-prediction-row em { grid-column: 2 / -1; }
  .public-game summary { grid-template-columns: 1fr; }
  .public-game-meta { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .participant-filter-form { grid-template-columns: 1fr; }
  .participant-apply { width: 100%; }
  .public-prediction-line { padding: 11px; }
  .public-prediction-main { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .public-prediction-scorebox { grid-column: 2; justify-self: start; margin-top: 2px; }
  .public-prediction-line > .public-result-tags { margin-left: 0; }
  .reaction-button { min-width: 39px; padding: 0 8px; }
}
