:root {
  --bg-a: #f3fbff;
  --bg-b: #eaf7dd;
  --ink: #13232f;
  --muted: #546572;
  --primary: #0b6e4f;
  --primary-dark: #06563d;
  --accent: #f08a24;
  --line: #dbe6eb;
  --card: #ffffff;
  --danger: #b43f3f;
  --shadow: 0 16px 44px rgba(9, 33, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, #ffffff 0%, var(--bg-a) 48%, var(--bg-b) 100%);
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body.modal-open {
  overflow: hidden;
}

.quick-menu {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 40;
}

.quick-menu-shell {
  position: relative;
}

.quick-menu-toggle {
  list-style: none;
  border: 1px solid #c7d9e5;
  border-radius: 10px;
  background: linear-gradient(120deg, #f6fbff, #f5fff9);
  color: #1b4a66;
  padding: 0.46rem 0.82rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 20px rgba(10, 36, 55, 0.16);
}

.quick-menu-toggle::-webkit-details-marker {
  display: none;
}

.quick-menu-shell[open] .quick-menu-toggle {
  border-color: #96b8cb;
}

.quick-menu-list {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cadeea;
  border-radius: 11px;
  padding: 0.45rem;
  min-width: 190px;
  box-shadow: 0 12px 26px rgba(8, 33, 50, 0.14);
}

.quick-menu-btn {
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 28, 44, 0.58);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100svh - 2rem);
  border: 1px solid #c9dbe6;
  border-radius: 16px;
  background: linear-gradient(120deg, #f7fcff, #f5fff9);
  box-shadow: 0 22px 44px rgba(7, 27, 40, 0.28);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  justify-self: end;
  position: sticky;
  top: 0;
  z-index: 1;
  border: 1px solid #c5d7e3;
  border-radius: 8px;
  background: #ffffff;
  color: #1f445d;
  font: inherit;
  font-weight: 700;
  padding: 0.32rem 0.68rem;
  cursor: pointer;
}

.modal-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2b6b51;
  font-weight: 800;
  font-size: 0.76rem;
}

.modal-sponsor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.modal-sponsor-item {
  border: 1px solid #d2e1ea;
  border-radius: 11px;
  background: #ffffff;
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
}

.modal-note {
  margin: 0;
  color: #445f72;
  font-size: 0.92rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
  opacity: 0.6;
  animation: drift 16s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(20, 137, 97, 0.3), rgba(20, 137, 97, 0));
  top: -80px;
  right: -80px;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(240, 138, 36, 0.22), rgba(240, 138, 36, 0));
  bottom: -100px;
  left: -100px;
  animation-delay: 4s;
}

@keyframes drift {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.03);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 3rem 0 2rem;
  animation: fade-up 0.8s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 800;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 0.95;
  margin-top: 0.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1;
}

.hero-text {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-live {
  margin-top: 0.85rem;
  border: 1px solid #cfe0ea;
  border-radius: 14px;
  background: linear-gradient(120deg, #f5fbff, #f7fff9);
  padding: 0.75rem;
}

.hero-live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.hero-live-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1b4f70;
}

.live-updated {
  margin: 0;
  font-size: 0.8rem;
  color: #4e6d82;
  font-weight: 700;
}

.live-best-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #285a75;
  font-weight: 700;
}

.live-source {
  margin: 0.18rem 0 0;
  font-size: 0.76rem;
  color: #4b6a7f;
}

.live-source a {
  color: #1c6496;
  font-weight: 700;
  text-decoration: underline;
}

.live-match-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.live-card {
  border: 1px solid #d4e2ea;
  border-radius: 11px;
  background: #ffffff;
  padding: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.live-stage {
  margin: 0;
  color: #1f3f56;
  font-weight: 800;
  font-size: 0.9rem;
}

.live-status {
  border-radius: 999px;
  border: 1px solid #c2d7e6;
  background: #f5fbff;
  color: #2f5e7b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
}

.live-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.26rem;
}

.live-line {
  border: 1px solid #e1eaf1;
  border-radius: 8px;
  background: #f9fcff;
  padding: 0.26rem 0.4rem;
  color: #3b596f;
  font-size: 0.79rem;
  line-height: 1.3;
}

.live-h-scroll-wrap {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.64rem;
}

.live-h-scroll-heading {
  margin: 0;
  color: #174b67;
  font-size: 0.92rem;
  font-weight: 800;
}

.live-h-row {
  display: grid;
  gap: 0.35rem;
}

.live-h-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.live-h-row-head h5 {
  margin: 0;
  color: #1c4d68;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.live-h-meta {
  margin: 0;
  color: #547186;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-h-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.12rem 0.05rem 0.3rem;
  scrollbar-width: thin;
}

.live-h-card {
  flex: 0 0 clamp(220px, 46vw, 300px);
  border: 1px solid #d0e1eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.5rem;
  display: grid;
  gap: 0.22rem;
}

.live-h-comp {
  margin: 0;
  color: #2f617f;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.live-h-teams {
  margin: 0;
  color: #163f58;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.live-h-stage,
.live-h-kickoff,
.live-h-venue {
  margin: 0;
  color: #4a6779;
  font-size: 0.72rem;
  line-height: 1.25;
}

.live-h-kickoff-local {
  color: #60788b;
}

.live-today-details {
  display: grid;
  gap: 0.35rem;
}

.live-details-track {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.1rem 0.05rem 0.32rem;
  scrollbar-width: thin;
}

.live-detail-card {
  flex: 0 0 clamp(245px, 52vw, 320px);
  border: 1px solid #d1e1eb;
  border-radius: 11px;
  background: #ffffff;
  padding: 0.54rem;
  display: grid;
  gap: 0.3rem;
}

.live-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.live-detail-status {
  border-radius: 999px;
  border: 1px solid #b9d6ca;
  background: #ecfbf1;
  color: #1f6643;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.14rem 0.46rem;
  white-space: nowrap;
}

.live-detail-status.is-idle {
  border-color: #d1d9e2;
  background: #f5f8fb;
  color: #546474;
}

.live-detail-status.is-upcoming {
  border-color: #e7cf98;
  background: #fff7e6;
  color: #7a5a18;
}

.live-detail-when {
  margin: 0;
  color: #506b7d;
  font-size: 0.71rem;
  font-weight: 700;
  text-align: right;
}

.live-detail-when-local {
  margin: -0.16rem 0 0;
  color: #60798a;
  font-size: 0.69rem;
  font-weight: 700;
}

.live-detail-visual {
  border: 1px solid #dce8f0;
  border-radius: 9px;
  background: linear-gradient(122deg, #f8fbff, #f7fffb);
  padding: 0.42rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.38rem;
}

.live-detail-flag {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d2e0ea;
  object-fit: cover;
  justify-self: center;
  background: #eef5fb;
}

.live-detail-vs {
  color: #2e5873;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.live-detail-name {
  margin: 0;
  color: #153f58;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.live-detail-goals {
  margin: 0;
  color: #24526d;
  font-size: 0.8rem;
  font-weight: 800;
}

.live-detail-penalties {
  margin: -0.06rem 0 0;
  color: #7a4d14;
  font-size: 0.74rem;
  font-weight: 800;
}

.live-detail-goal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.live-detail-goal-item {
  border: 1px solid #e2ebf1;
  border-radius: 7px;
  background: #f9fcff;
  padding: 0.22rem 0.34rem;
  color: #3c5b70;
  font-size: 0.72rem;
  line-height: 1.25;
}

.live-detail-goal-item.is-empty {
  color: #70889a;
}

.live-detail-goal-item.is-penalty {
  border-color: #e8d7c0;
  background: #fff7ea;
  color: #725420;
}

.hero-ticket-strip {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  max-width: 100%;
}

.hero-help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 700;
}

.hero-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
}

.ticket-scenario-toggle {
  white-space: normal;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ticket-scenario-toggle.is-open {
  border-color: #3d7f97;
  background: #e9f6ff;
  color: #16526a;
}

.ticket-scenario-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.ticket-scenario-toggle-label {
  font-weight: 700;
}

.ticket-cta {
  white-space: normal;
  max-width: 100%;
  text-align: center;
}

.ticket-scenario-panel {
  margin-top: 0.55rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2e2eb;
  border-radius: 12px;
  background: linear-gradient(118deg, #f7fcff, #f5fff9);
  padding: 0.68rem;
  display: grid;
  gap: 0.55rem;
  overflow-x: hidden;
}

.ticket-scenario-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #144763;
}

.ticket-scenario-lead {
  margin: 0.24rem 0 0;
  color: #456273;
  font-size: 0.82rem;
}

.ticket-scenario-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.ticket-scenario-label {
  font-weight: 700;
  color: #1a506b;
  font-size: 0.82rem;
}

.ticket-scenario-select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #c4d6e2;
  border-radius: 8px;
  background: #ffffff;
  color: #1e4a61;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-scenario-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem;
}

.ticket-scenario-card {
  border: 1px solid #d6e4ed;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.58rem;
  display: grid;
  gap: 0.36rem;
}

.ticket-scenario-card h4 {
  margin: 0;
  color: #184761;
  font-size: 0.87rem;
}

.ticket-scenario-prediction {
  margin: 0;
  color: #325f77;
  font-size: 0.76rem;
  font-weight: 700;
}

.ticket-scenario-prediction-subtitle {
  color: #3c6176;
}

.ticket-scenario-prediction-matchup {
  color: #195b86;
  background: #eef7ff;
  border: 1px solid #d4e8f9;
  border-radius: 8px;
  padding: 0.24rem 0.38rem;
}

.ticket-scenario-prediction-winner {
  color: #11643f;
  background: #ebfaef;
  border: 1px solid #cae9d5;
  border-radius: 8px;
  padding: 0.24rem 0.38rem;
}

.ticket-scenario-heading {
  margin: 0.1rem 0 0;
  color: #1e506a;
  font-size: 0.76rem;
  font-weight: 800;
}

.ticket-scenario-list {
  margin: 0;
  padding-left: 1rem;
  color: #446174;
  font-size: 0.73rem;
  line-height: 1.3;
  max-height: 160px;
  overflow: auto;
}

.ticket-scenario-list li + li {
  margin-top: 0.15rem;
}

.ticket-scenario-empty {
  margin: 0;
  color: #6f8798;
  font-size: 0.75rem;
}

.ticket-scenario-advance {
  margin: 0.08rem 0 0;
  color: #315f76;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-sponsors {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid #cfe0ea;
  border-radius: 12px;
  background: linear-gradient(115deg, #f8fcff, #f4fff8);
  max-width: 660px;
}

.hero-sponsors-title {
  margin: 0;
  font-weight: 800;
  color: #194f71;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.hero-sponsors-layout {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.4fr);
  gap: 0.6rem;
}

.hero-sponsor-main,
.hero-sponsor-side-item {
  border: 1px solid #d2e1eb;
  border-radius: 11px;
  background: #ffffff;
  padding: 0.55rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.36rem;
}

.hero-sponsor-main {
  min-height: 134px;
}

.hero-sponsor-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-sponsor-side-item {
  min-height: 134px;
}

.hero-sponsor-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px dashed #adc1cf;
  background: #f7fbff;
  color: #557184;
  font-size: 0.69rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #c4d6e2;
  background: #ffffff;
  object-fit: cover;
}

.hero-sponsor-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1f3d53;
  text-align: center;
}

.hero-more-sponsor {
  justify-self: start;
}

.sponsor-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #a9c3d3;
  background: linear-gradient(135deg, #2d8a66, #1b6f9f);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sponsor-icon-image {
  background: #ffffff;
  object-fit: cover;
  padding: 0;
}

.main-grid {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.notice {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid #f5d8bd;
  background: linear-gradient(92deg, #fff7ec, #fff1df);
  font-size: 0.95rem;
}

.notice-highlight {
  color: #8f3510;
  font-weight: 800;
}

.tabs-shell {
  display: grid;
  gap: 1rem;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 13px;
  border: 1px solid #cedce4;
  background: rgba(251, 255, 255, 0.78);
}

.tab-btn {
  border: 1px solid #d4e2ea;
  border-radius: 10px;
  background: #fff;
  color: #265066;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  border-color: #93b8ca;
  background: linear-gradient(120deg, #edf7ff, #ebfff7);
  color: #0f4f72;
}

.tab-panel {
  display: grid;
  gap: 1rem;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  animation: fade-up 0.7s ease;
}

.panel-lead {
  margin-top: 0.3rem;
  color: var(--muted);
}

.progress-wrap {
  margin: 0.8rem 0;
}

.step-meta {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #dce8e5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #19aa7a);
  transition: width 0.35s ease;
}

.step-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: #fbfdff;
  min-height: 240px;
}

.step-help {
  color: var(--muted);
  margin: 0.2rem 0 0.8rem;
}

.step-error {
  color: var(--danger);
  font-weight: 700;
  min-height: 1.2rem;
  margin: 0.2rem 0 0.6rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.playoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.group-card {
  border: 1px solid #d6e2e7;
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
}

.group-card h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.path-slot {
  margin: 0 0 0.5rem;
  color: #41657b;
  font-size: 0.8rem;
  font-weight: 700;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.3rem 0;
}

.team-name {
  font-size: 0.93rem;
  font-weight: 600;
}

select,
input[type="text"],
input[type="email"],
input[type="search"] {
  border: 1px solid #cfdce2;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.knockout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.pick-item {
  border: 1px solid #d1dfe5;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: #fff;
}

.pick-item label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.pick-tip {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.6rem;
}

.selector-match {
  border: 1px solid #d2e0eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
  display: grid;
  gap: 0.22rem;
}

.winner-options {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.3rem;
}

.winner-option {
  border: 1px solid #d8e4ee;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  background: #f9fcff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.winner-option input {
  margin: 0;
}

.winner-option.is-selected,
.winner-option:has(input:checked) {
  border-color: #7fb2d6;
  background: #eef7ff;
}

.winner-option.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.step-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(110deg, var(--primary), #169e70);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(110deg, var(--primary-dark), #10845d);
}

.btn-ghost {
  color: var(--primary-dark);
  background: #e9f8f2;
  border: 1px solid #c7e6da;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.table-wrap {
  overflow-x: hidden;
  margin-top: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  table-layout: fixed;
}

th,
td {
  padding: 0.55rem;
  border-bottom: 1px solid #e2ebef;
  text-align: left;
  overflow-wrap: anywhere;
}

th {
  color: #244a5d;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
}

.summary-card {
  border: 1px solid #d6e2e7;
  background: #fff;
  border-radius: 11px;
  padding: 0.65rem;
}

.summary-card h4 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: #1f4d5e;
  font-size: 0.95rem;
}

.summary-card p {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1rem;
}

.sponsor-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.sponsor-card {
  border: 1px solid #d4e2ea;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.75rem;
}

.sponsor-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sponsor-card-head h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #0f3f5c;
}

.sponsor-card p {
  margin: 0.4rem 0 0;
  color: #4e687a;
  font-size: 0.9rem;
}

.sponsor-category-wall {
  margin-top: 0.85rem;
  border: 1px solid #d4e2ea;
  border-radius: 12px;
  background: linear-gradient(118deg, #f8fcff, #f4fff8);
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.sponsor-category-wall h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  color: #124765;
}

.sponsor-category-lead {
  margin: 0;
  color: #456273;
  font-size: 0.82rem;
}

.sponsor-sync-note {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c8e0d6;
  border-radius: 10px;
  background: #f1fbf5;
  color: #1f5b45;
  font-size: 0.82rem;
  font-weight: 700;
}

.sponsor-category-cta {
  justify-self: start;
  width: auto;
  padding: 0.52rem 0.92rem;
  font-size: 0.9rem;
}

.sponsor-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.68rem;
}

.sponsor-tier-card {
  --slot-min: 170px;
  --slot-height: 64px;
  --slot-max-height: 260px;
  --slot-icon-size: 28px;
  --slot-name-size: 0.74rem;
  --slot-link-size: 0.66rem;
  --slot-gap: 0.34rem;
  border: 1px solid #d5e3ec;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.62rem;
  display: grid;
  gap: 0.42rem;
}

.sponsor-tier-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sponsor-tier-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #98b9cc;
  background: linear-gradient(145deg, #2d8a66, #1f6799);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sponsor-tier-title {
  margin: 0;
  font-weight: 800;
  color: #19415a;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.sponsor-tier-audience {
  margin: 0;
  color: #4d6779;
  font-size: 0.76rem;
  font-weight: 700;
}

.sponsor-tier-limit {
  margin: 0;
  color: #1d5c84;
  font-size: 0.72rem;
  font-weight: 800;
}

.sponsor-tier-progress {
  margin: 0;
  font-size: 0.72rem;
  color: #496476;
}

.sponsor-tier-progress strong {
  color: #1b4a69;
}

.sponsor-tier-slots {
  margin-top: 0.06rem;
  border: 1px solid #e0e9ef;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--slot-min), 1fr));
  align-content: start;
  gap: var(--slot-gap);
  min-height: 88px;
  max-height: var(--slot-max-height);
  overflow: auto;
}

.sponsor-slot-card {
  min-height: var(--slot-height);
  border-radius: 8px;
  border: 1px solid #d6e3ec;
  background: #ffffff;
  padding: 0.32rem 0.36rem;
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: #1c3e55;
  text-decoration: none;
}

.sponsor-slot-card.sponsor-slot-empty {
  border-style: dashed;
  background: #f7fbff;
}

.sponsor-slot-icon {
  width: var(--slot-icon-size);
  height: var(--slot-icon-size);
  border-radius: 8px;
  border: 1px solid #b6cad8;
  background: linear-gradient(145deg, #f8fcff, #eff8ff);
  color: #4f7187;
  font-size: 0.56rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.sponsor-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-slot-text {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.sponsor-slot-name {
  margin: 0;
  color: #174360;
  font-size: var(--slot-name-size);
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-slot-link {
  margin: 0;
  color: #3f6380;
  font-size: var(--slot-link-size);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-slot-note {
  margin: 0;
  color: #577286;
  font-size: 0.61rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-slot-card.sponsor-slot-empty .sponsor-slot-name,
.sponsor-slot-card.sponsor-slot-empty .sponsor-slot-link,
.sponsor-slot-card.sponsor-slot-empty .sponsor-slot-note {
  color: #7a93a3;
}

.tier-major {
  --slot-min: 300px;
  --slot-height: 132px;
  --slot-max-height: 640px;
  --slot-icon-size: 62px;
  --slot-name-size: 1.08rem;
  --slot-link-size: 0.92rem;
  --slot-gap: 0.5rem;
  border-color: #ebaeae;
  box-shadow: inset 0 0 0 1px rgba(186, 67, 67, 0.12);
  padding: 0.82rem;
}

.tier-premium {
  --slot-min: 225px;
  --slot-height: 90px;
  --slot-max-height: 420px;
  --slot-icon-size: 40px;
  --slot-name-size: 0.88rem;
  --slot-link-size: 0.78rem;
  border-color: #f2c496;
  box-shadow: inset 0 0 0 1px rgba(186, 116, 31, 0.12);
}

.tier-featured {
  --slot-min: 200px;
  --slot-height: 78px;
  --slot-max-height: 360px;
  --slot-icon-size: 34px;
  --slot-name-size: 0.82rem;
  --slot-link-size: 0.72rem;
  border-color: #ceb8e3;
  box-shadow: inset 0 0 0 1px rgba(137, 78, 185, 0.16);
}

.tier-official {
  --slot-min: 180px;
  --slot-height: 66px;
  --slot-max-height: 320px;
  --slot-icon-size: 30px;
  --slot-name-size: 0.76rem;
  --slot-link-size: 0.67rem;
  border-color: #a9cddd;
}

.tier-supporter {
  --slot-min: 165px;
  --slot-height: 62px;
  --slot-max-height: 280px;
  --slot-icon-size: 27px;
  --slot-name-size: 0.73rem;
  --slot-link-size: 0.65rem;
  border-color: #b7d4c6;
}

.rank-path-board {
  margin-top: 0.85rem;
  border: 1px solid #cfe0ea;
  border-radius: 16px;
  background: linear-gradient(120deg, #f5fbff, #f7fff9);
  padding: 0.75rem;
  overflow-x: auto;
}

.rank-path-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 0.6rem;
}

.rank-path-col {
  border: 1px solid #c8d9e4;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.55rem;
  min-height: 220px;
}

.rank-path-title {
  margin: 0;
  color: #16508f;
  letter-spacing: 0.03em;
  font-size: 1.06rem;
}

.rank-path-count {
  margin: 0.2rem 0 0.45rem;
  color: #4d6f89;
  font-weight: 700;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rank-path-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-height: 460px;
  overflow-y: auto;
}

.rank-path-item {
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  padding: 0.28rem 0.45rem;
  background: #f9fcff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.rank-path-team {
  font-size: 0.77rem;
  font-weight: 800;
  color: #122b42;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-path-meta {
  font-size: 0.67rem;
  font-weight: 700;
  color: #51728d;
  white-space: nowrap;
}

.rank-path-empty {
  justify-content: center;
  color: #5f7689;
  font-size: 0.75rem;
}

.search-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.search {
  margin-top: 0.25rem;
  width: min(360px, 100%);
}

.global-prediction {
  margin-top: 0.8rem;
  border: 1px solid #d7e3e9;
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(110deg, #f5fcff, #f0fff8);
}

.global-prediction h3 {
  margin-bottom: 0.35rem;
}

.global-prediction p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.bracket-board {
  margin-top: 0.85rem;
  border: 1px solid #cfe0ea;
  border-radius: 16px;
  background: linear-gradient(120deg, #edf5ff, #eef8ff, #eefcf6);
  padding: 0.75rem;
  overflow-x: hidden;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.bracket-col {
  position: relative;
  border: 1px solid #bcd0e2;
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(58, 119, 234, 0.1), rgba(130, 186, 255, 0.04));
  padding: 0.55rem;
  min-height: 220px;
}

.bracket-stage-title {
  margin: 0;
  color: #184e9a;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

.bracket-list {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.5rem;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}

.bracket-match {
  border: 1px solid #cfdeeb;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.45rem;
  display: grid;
  gap: 0.24rem;
}

.match-id {
  margin: 0;
  color: #124a8e;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-when,
.match-where {
  margin: 0;
  font-size: 0.7rem;
  color: #4f6f89;
  line-height: 1.25;
}

.match-teams {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.28rem;
}

.team-slot {
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  padding: 0.27rem 0.46rem;
  background: #f9fcff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.team-slot.is-winner {
  border-color: #8fc96d;
  background: #effbe8;
}

.bracket-team {
  font-size: 0.72rem;
  font-weight: 800;
  color: #122b42;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bracket-meta {
  font-size: 0.66rem;
  font-weight: 700;
  color: #50718e;
}

.match-pick {
  margin: 0.16rem 0 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #2b6f34;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .bracket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 2rem;
  }

  .modal-sponsor-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .hero-ticket-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ticket-actions {
    width: 100%;
  }

  .hero-ticket-actions .btn {
    width: 100%;
  }

  .hero-ticket-strip .ticket-cta {
    width: 100%;
  }

  .ticket-scenario-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-scenario-select {
    min-width: 0;
  }

  .ticket-scenario-content {
    grid-template-columns: 1fr;
  }

  .hero-sponsors-layout {
    grid-template-columns: 1fr;
  }

  .hero-sponsors .hero-more-sponsor {
    width: auto;
  }

  .sponsor-category-cta {
    width: auto;
  }

  .tab-btn {
    flex: 1 1 140px;
  }

  .step-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .bracket-grid {
    grid-template-columns: 1fr;
  }

  .rank-path-grid {
    grid-template-columns: 1fr;
  }

  .quick-menu {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}

@media (max-width: 420px) {
  .modal-overlay {
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-right: max(0.65rem, env(safe-area-inset-right));
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    padding-left: max(0.65rem, env(safe-area-inset-left));
  }

  .modal-card {
    max-height: calc(100svh - 1.3rem);
    padding: 0.82rem;
  }
}

@media (pointer: coarse) {
  .btn,
  .tab-btn,
  select,
  input[type="text"],
  input[type="email"],
  input[type="search"] {
    min-height: 44px;
  }

  .winner-option {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-sponsor-side {
    grid-template-columns: 1fr;
  }

  .live-match-grid {
    grid-template-columns: 1fr;
  }

  .live-h-card {
    flex-basis: min(86vw, 285px);
  }

  .live-detail-card {
    flex-basis: min(88vw, 305px);
  }

  select,
  input[type="text"],
  input[type="email"],
  input[type="search"] {
    font-size: 16px;
  }
}
