:root {
  --bg: #070b10;
  --ink: #f4f7f5;
  --muted: #9ca8a5;
  --line: #26343a;
  --panel: #101820;
  --panel-strong: #16222b;
  --green: #22c77a;
  --mint: #123d2c;
  --yellow: #f2b84b;
  --sun: #3f2f14;
  --blue: #58a6ff;
  --sky: #142d48;
  --red: #ff6b6b;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, #070b10 0%, #0d1418 48%, #111b18 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: none;
}

body.app-open .app-shell {
  display: grid;
}

body.app-open .landing-page {
  display: none;
}

.landing-page {
  min-height: 100vh;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.landing-brand,
.landing-actions {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.landing-brand strong {
  font-size: 1.1rem;
}

.landing-actions {
  gap: 0.65rem;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 10px 30px rgba(35, 31, 24, 0.07);
}

.language-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.language-select select {
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  outline: none;
}

.login-button,
.close-button,
.google-button {
  border: 0;
}

.login-button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
}

.landing-main {
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: 2rem 2rem 2rem;
}

.landing-hero {
  display: block;
  min-height: min(42rem, calc(100vh - 7rem));
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 46rem;
  padding-top: clamp(1rem, 5vh, 4rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-login {
  margin-top: 0.6rem;
  min-width: 9.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.features-section {
  padding: clamp(2rem, 5vw, 4rem) 0 3rem;
}

.features-section h2 {
  max-width: 40rem;
  margin: 0 auto 0.55rem;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
  text-align: center;
  letter-spacing: 0;
}

.features-section > .eyebrow {
  text-align: center;
}

.features-subtitle {
  max-width: 36rem;
  margin: 0 auto clamp(1.25rem, 3vw, 2.1rem);
  color: #aebbd6;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  line-height: 1.55;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.45rem);
}

.feature-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(16rem, 26vw, 24rem);
  overflow: hidden;
  padding: clamp(1.35rem, 2.6vw, 2.05rem);
  border: 1px solid rgba(47, 125, 255, 0.35);
  border-radius: 1.15rem;
  color: #ffffff;
  background: #07101f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(47, 125, 255, 0.16);
  cursor: pointer;
  text-align: left;
  transform: translateZ(0);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.feature-card::before,
.feature-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.feature-card::before {
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.88;
  transform: scale(1.01);
  transition: transform 260ms ease, opacity 200ms ease;
}

.feature-card::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.2) 0%, rgba(4, 9, 20, 0.58) 48%, rgba(4, 9, 20, 0.97) 100%),
    radial-gradient(circle at 18% 14%, rgba(104, 224, 255, 0.2), transparent 28%);
}

.feature-card-round::before {
  background-image: url("./assets/features/feature-round.png");
}

.feature-card-competitions::before {
  background-image: url("./assets/features/feature-competitions.png");
}

.feature-card-rules::before {
  background-image: url("./assets/features/feature-rules.png");
}

.feature-card-live::before {
  background-image: url("./assets/features/feature-live.png");
}

.feature-card-competitions,
.feature-card-live {
  border-color: rgba(195, 62, 255, 0.42);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(195, 62, 255, 0.14);
}

.feature-card-rules {
  border-color: rgba(0, 212, 255, 0.34);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(0, 212, 255, 0.13);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(104, 224, 255, 0.72);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.46), 0 0 44px rgba(47, 125, 255, 0.25);
  outline: none;
}

.feature-card:active {
  transform: scale(0.985);
}

.feature-card:hover::before,
.feature-card:focus-visible::before {
  opacity: 0.98;
  transform: scale(1.055);
}

.feature-icon {
  position: absolute;
  top: clamp(1rem, 2vw, 1.55rem);
  left: clamp(1rem, 2vw, 1.55rem);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(4rem, 7vw, 5.5rem);
  height: clamp(4rem, 7vw, 5.5rem);
  border: 1px solid rgba(104, 224, 255, 0.58);
  border-radius: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30, 116, 255, 0.7), rgba(11, 34, 74, 0.76));
  box-shadow: 0 0 26px rgba(47, 125, 255, 0.28), inset 0 0 26px rgba(104, 224, 255, 0.08);
}

.feature-card-competitions .feature-icon,
.feature-card-live .feature-icon {
  border-color: rgba(232, 79, 255, 0.68);
  background: linear-gradient(135deg, rgba(169, 54, 255, 0.76), rgba(74, 18, 108, 0.78));
  box-shadow: 0 0 26px rgba(195, 62, 255, 0.28), inset 0 0 26px rgba(255, 255, 255, 0.08);
}

.feature-card-rules .feature-icon {
  border-color: rgba(0, 212, 255, 0.58);
  background: linear-gradient(135deg, rgba(0, 182, 216, 0.62), rgba(8, 55, 75, 0.78));
}

.feature-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:nth-child(2) .feature-icon {
  color: #ffffff;
}

.feature-card:nth-child(3) .feature-icon {
  color: #ffffff;
}

.feature-card:nth-child(4) .feature-icon {
  color: #ffffff;
}

.feature-card h3 {
  max-width: 100%;
  margin: 0 0 0.55rem;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
  font-size: clamp(1.45rem, 3.1vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-card p {
  max-width: 100%;
  margin: 0;
  color: #b9c5dc;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  font-size: clamp(0.98rem, 1.65vw, 1.34rem);
  line-height: 1.28;
}

.feature-copy {
  position: absolute;
  left: clamp(1.25rem, 2.6vw, 2.05rem);
  right: clamp(5.15rem, 8vw, 6.8rem);
  bottom: clamp(1.25rem, 2.6vw, 2.05rem);
  z-index: 4;
  display: block;
}

.feature-arrow {
  position: absolute;
  right: clamp(1rem, 2vw, 1.45rem);
  bottom: clamp(1rem, 2vw, 1.45rem);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(3.35rem, 5.6vw, 4.9rem);
  height: clamp(3.35rem, 5.6vw, 4.9rem);
  border: 2px solid rgba(104, 224, 255, 0.72);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(7, 17, 35, 0.54);
  box-shadow: 0 0 28px rgba(47, 125, 255, 0.22);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card-competitions .feature-arrow,
.feature-card-live .feature-arrow {
  border-color: rgba(232, 79, 255, 0.72);
  box-shadow: 0 0 28px rgba(195, 62, 255, 0.2);
}

.feature-arrow svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:hover .feature-arrow,
.feature-card:focus-visible .feature-arrow {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 34px rgba(104, 224, 255, 0.28);
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1rem;
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(23, 32, 28, 0.1);
}

.landing-footer button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-footer button:hover {
  color: var(--green);
}

.login-dialog {
  width: min(92vw, 27rem);
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
}

.nickname-dialog {
  width: min(92vw, 30rem);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
}

.legal-dialog {
  width: min(92vw, 42rem);
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
}

.legal-dialog::backdrop {
  background: rgba(23, 32, 28, 0.42);
  backdrop-filter: blur(6px);
}

.nickname-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.nickname-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nickname-panel h2,
.nickname-panel p {
  margin: 0;
}

.nickname-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.nickname-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.legal-panel {
  position: relative;
  max-height: min(78vh, 42rem);
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 0.7rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-panel h2 {
  margin-bottom: 0.8rem;
  font-size: 1.65rem;
}

.legal-content {
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
  line-height: 1.58;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content ul {
  padding-left: 1.1rem;
}

.legal-content strong {
  color: var(--ink);
}

.wizard-dialog {
  width: min(94vw, 48rem);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
}

.wizard-dialog::backdrop {
  background: rgba(23, 32, 28, 0.42);
  backdrop-filter: blur(6px);
}

.wizard-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  max-height: min(86vh, 46rem);
  overflow: auto;
  padding: 1.2rem 1.2rem 1.6rem;
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wizard-topline {
  display: grid;
  gap: 0.45rem;
  padding-right: 2.5rem;
}

.wizard-progress {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7dc;
}

.wizard-progress span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: grid;
  gap: 1rem;
}

.wizard-step h2 {
  max-width: 34rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  display: grid;
  gap: 0.45rem;
  min-height: 10rem;
  padding: 0.9rem;
  border: 1px solid #e8e0d4;
  border-radius: 0.6rem;
  background: #fffaf1;
  cursor: pointer;
}

.choice-card .choice-recommendation {
  justify-self: end;
  align-self: start;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #06111f;
  background: #68e0ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.choice-card:has(input:checked) {
  border-color: rgba(23, 111, 76, 0.5);
  background: var(--mint);
  box-shadow: 0 10px 28px rgba(23, 111, 76, 0.1);
}

.choice-card input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
}

.choice-card span {
  color: var(--ink);
  font-weight: 900;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.logo-choice {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.95rem;
  min-height: 6.25rem;
}

.logo-choice > input {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.logo-choice > span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.competition-choice-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.competition-choice-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.competition-choice-icon {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(104, 224, 255, 0.22));
}

.wizard-mode-config {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(104, 224, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(10, 17, 24, 0.56);
}

.wizard-mode-config[hidden] {
  display: none;
}

.wizard-mode-config select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #0b1117;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 0 0.8rem;
}

.wizard-selection-count {
  justify-self: start;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(104, 224, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(104, 224, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-match-picker {
  display: grid;
  gap: 0.5rem;
  max-height: 18rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.wizard-match-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(16, 24, 32, 0.78);
}

.wizard-match-option input {
  grid-row: span 2;
  width: 1rem;
  height: 1rem;
}

.wizard-match-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.wizard-match-option small {
  color: var(--muted);
  font-weight: 750;
}

.large-field {
  max-width: 34rem;
}

.auth-choice {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.already-authenticated {
  display: none;
  gap: 0.55rem;
  padding: 1.05rem;
  border: 1px solid rgba(34, 199, 122, 0.38);
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(34, 199, 122, 0.14), rgba(88, 166, 255, 0.1));
}

.already-authenticated span,
.already-authenticated small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.already-authenticated strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.15;
}

.wizard-auth-note {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(104, 224, 255, 0.22);
  border-radius: 0.75rem;
  color: var(--muted);
  background: rgba(8, 15, 28, 0.62);
  line-height: 1.55;
}

.wizard-actions {
  position: sticky;
  bottom: -1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 -1.2rem -1.2rem;
  padding: 0.9rem 1.2rem 1.2rem;
  border-top: 1px solid rgba(23, 32, 28, 0.08);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(8px);
}

.wizard-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 11rem);
  max-width: 13rem;
  flex: 0 1 13rem;
  text-align: center;
}

#wizardSubmit {
  display: none;
}

.login-dialog::backdrop {
  background: rgba(23, 32, 28, 0.42);
  backdrop-filter: blur(6px);
}

.login-panel {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid rgba(23, 32, 28, 0.1);
  border-radius: 0.7rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  font-size: 1.65rem;
}

.close-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  color: var(--muted);
  background: #f0e9dd;
  font-size: 1.35rem;
  line-height: 1;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  background: #fff;
}

.google-button span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: #fff;
  background: #4285f4;
  font-weight: 900;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.field-label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.field-label input,
.field-label textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 0.75rem;
  outline: none;
}

.field-label textarea {
  min-height: 7rem;
  padding: 0.75rem;
  resize: vertical;
}

.field-label input:focus,
.field-label textarea:focus {
  border-color: rgba(23, 111, 76, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(23, 111, 76, 0.12);
}

.full-button {
  width: 100%;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-links button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 850;
  padding: 0;
}

.app-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(19rem, calc(100vw - 3rem));
  height: 100vh;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 16, 22, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.46);
  transform: translateX(-110%);
  transition: transform 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .sidebar {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-close {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  background: var(--panel-strong);
  font-size: 1.4rem;
  font-weight: 900;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.nav-overlay[hidden] {
  display: none;
}

.brand,
.profile,
.leader-row,
.member-row,
.match-card,
.tip-row,
.league-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
}

.brand-mark,
.avatar,
.club-logo,
.rank-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #17382d);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand-logo {
  overflow: hidden;
  padding: 0;
  background: #050b15;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.label,
.eyebrow,
.profile-score span,
.stat-card span,
.stat-card small,
.leader-meta,
.match-time,
.rules span {
  color: var(--muted);
}

.brand span {
  margin-top: 0.1rem;
  font-size: 0.84rem;
}

.nav-list {
  display: grid;
  gap: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
}

.nav-item:last-child {
  border-bottom-color: transparent;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  background: rgba(34, 199, 122, 0.16);
}

.create-round-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid #2f8cff;
  border-radius: 0.6rem;
  color: #ffffff;
  background: #0b74ff;
  box-shadow: 0 12px 28px rgba(11, 116, 255, 0.3);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.create-round-nav:hover {
  color: #fff;
  background: #005fe0;
}

.icon {
  width: 1.18rem;
  height: 1.18rem;
  color: var(--green);
  text-align: center;
  font-weight: 900;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.create-round-nav .icon {
  display: none;
}

.sidebar-bottom {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.sidebar-create-round {
  width: 100%;
  max-width: none;
  margin: 0;
}

.league-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel-strong);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 118, 118, 0.5);
  border-radius: 0.6rem;
  color: #ffffff;
  background: #b4232a;
  box-shadow: 0 12px 28px rgba(180, 35, 42, 0.22);
  font-weight: 900;
}

.mobile-tabbar {
  display: none;
}

body:not(.app-open) .mobile-tabbar {
  display: none !important;
}

.simple-page-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  margin-bottom: 1rem;
  padding-inline: 0.75rem;
}

.simple-page-head h2 {
  margin: 0;
  text-align: center;
  width: 100%;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

.invite-page,
.rulebook-page {
  gap: 1rem;
}

.invite-share-card,
.invite-link-card,
.rulebook-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(13, 23, 39, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.invite-share-card,
.invite-link-card {
  padding: clamp(1rem, 4vw, 1.5rem);
}

.invite-share-card > p,
.invite-link-card > p {
  max-width: 34rem;
  margin: 0 auto 0.8rem;
  color: var(--muted);
  text-align: center;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  line-height: 1.45;
}

.invite-share-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.invite-share-row:last-child {
  border-bottom: 0;
}

.invite-share-row:disabled,
.invite-link-box:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.invite-channel-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}

.facebook-icon,
.whatsapp-icon,
.email-icon {
  background: #3925d4;
}

.invite-chevron {
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.invite-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.invite-divider::before,
.invite-divider::after {
  height: 1px;
  background: rgba(255, 255, 255, 0.11);
  content: "";
}

.invite-link-box {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(83, 212, 255, 0.25);
  border-radius: 0.65rem;
  color: #78e6ff;
  background: rgba(3, 10, 19, 0.58);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.rulebook-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 4vw, 1.45rem);
}

.rulebook-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 4.4vw, 1.8rem);
}

.rulebook-card p,
#rulebookBetText p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.4vw, 1.16rem);
  line-height: 1.58;
}

.rulebook-page .rules div {
  background: rgba(8, 16, 28, 0.78);
  border: 1px solid rgba(83, 212, 255, 0.16);
}

.rulebook-page .rules strong {
  color: #78e6ff;
}

.rulebook-table-wrap {
  overflow-x: visible;
}

.rulebook-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rulebook-table th,
.rulebook-table td {
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow-wrap: anywhere;
}

.rulebook-table th {
  color: var(--ink);
}

.rulebook-table td {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 520px) {
  .rulebook-table th,
  .rulebook-table td {
    font-size: clamp(0.84rem, 3.6vw, 1rem);
  }
}

.sidebar-logout:hover {
  border-color: rgba(255, 150, 150, 0.68);
  background: #981b22;
}

.label,
.eyebrow {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.league-card strong {
  display: block;
  margin-bottom: 0.75rem;
}

.league-meta {
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.main {
  width: min(100%, 82rem);
  margin: 0 auto;
  padding: 2rem;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.topbar-title {
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  display: grid;
  place-items: center;
  gap: 0.17rem;
  width: 2.38rem;
  height: 2.38rem;
  flex: 0 0 auto;
  border: 1px solid rgba(83, 212, 255, 0.18);
  border-radius: 0.78rem;
  color: var(--ink);
  background: rgba(7, 15, 27, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.menu-toggle span {
  width: 1.05rem;
  height: 0.11rem;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle span:nth-child(2) {
  width: 0.82rem;
}

.menu-toggle:hover {
  border-color: rgba(83, 212, 255, 0.34);
  background: rgba(10, 22, 39, 0.94);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-actions:has(.hidden-league-picker:only-child) {
  display: none;
}

.top-notification-button {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border: 1px solid rgba(125, 166, 255, 0.18);
  border-radius: 0.9rem;
  color: #ffffff;
  background: rgba(7, 15, 28, 0.62);
  box-shadow: 0 0 18px rgba(42, 142, 255, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.top-notification-button:hover,
.top-notification-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 231, 255, 0.45);
  box-shadow: 0 0 22px rgba(42, 142, 255, 0.18);
}

.top-notification-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-picker,
.league-picker,
.matchday-picker,
.source-pill {
  display: grid;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(23, 32, 28, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 10px 30px rgba(35, 31, 24, 0.07);
}

.round-picker {
  min-width: min(14rem, 38vw);
  min-height: 2.85rem;
  padding: 0.35rem 0.55rem;
  justify-content: center;
}

.settings-active-round-picker {
  width: 100%;
  margin: 0 0 1rem;
  border-color: var(--line);
  background: rgba(7, 15, 27, 0.72);
}

.league-picker {
  min-width: 13rem;
}

.matchday-picker {
  min-width: 13rem;
}

.hidden-league-picker {
  display: none;
}

.source-pill {
  min-width: 10rem;
}

.round-picker span,
.league-picker span,
.matchday-picker span,
.source-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-picker span {
  margin-bottom: 0;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.source-pill strong {
  font-size: 0.9rem;
}

.round-picker select,
.league-picker select {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  outline: none;
}

.round-picker select {
  max-width: 12.5rem;
  font-size: 0.84rem;
  line-height: 1.05;
}

.matchday-picker select {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  outline: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 46rem;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.profile {
  gap: 0.75rem;
  padding: 0.45rem;
  border: 1px solid rgba(23, 32, 28, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 10px 30px rgba(35, 31, 24, 0.07);
}

.account-meta {
  display: grid;
  min-width: 9.5rem;
  max-width: 14rem;
  gap: 0.1rem;
}

.account-meta span,
.account-meta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-score {
  text-align: right;
}

.profile-score span,
.profile-score strong {
  display: block;
}

.profile-score strong {
  font-size: 1.35rem;
}

.avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  overflow: hidden;
}

.avatar img,
.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logout-button {
  min-height: 2.35rem;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 0.5rem;
  padding: 0 0.65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.logout-button:hover {
  background: #f7efe2;
}

.logout-button[hidden] {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid,
.content-grid,
.group-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.content-grid,
.group-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.65fr);
}

#groups .group-grid {
  grid-template-columns: minmax(0, 1fr);
}

.stat-card,
.panel {
  border: 1px solid rgba(23, 32, 28, 0.08);
  border-radius: 0.6rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  padding: 1.1rem;
}

.stat-card::after {
  position: absolute;
  right: -1rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  content: "";
  opacity: 0.95;
}

.accent-green::after {
  background: var(--mint);
}

.accent-yellow::after {
  background: var(--sun);
}

.accent-blue::after {
  background: var(--sky);
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0.4rem 0;
  font-size: 3.35rem;
  line-height: 1;
}

.stat-card small {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 1rem;
}

.wide-panel {
  max-width: 64rem;
}

.settings-panel {
  max-width: 78rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ghost-button,
.primary-button,
.segmented button {
  min-height: 2.35rem;
  border-radius: 0.45rem;
  font-weight: 800;
}

.ghost-button {
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #faf6ee;
}

.primary-button {
  padding: 0 1rem;
  border: 0;
  color: #fff;
  background: var(--green);
}

.match-list,
.tip-list,
.leaderboard,
.member-list {
  display: grid;
  gap: 0.65rem;
}

.match-card,
.tip-row,
.leader-row,
.member-row {
  position: relative;
  gap: 0.8rem;
  min-height: 4.6rem;
  padding: 0.75rem;
  border: 1px solid #ebe4d8;
  border-radius: 0.5rem;
  background: #fffaf1;
}

.club-logo {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  overflow: hidden;
}

.club-logo::after {
  position: absolute;
  inset: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.32rem;
  content: "";
}

.club-logo span {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.match-info,
.leader-info,
.member-info {
  min-width: 0;
  flex: 1;
}

.match-title,
.leader-name,
.member-name {
  display: block;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-time,
.leader-meta,
.member-meta {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.84rem;
}

.score-pill {
  min-width: 4.2rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  text-align: center;
  font-weight: 900;
}

.live-score {
  display: grid;
  min-width: 6.8rem;
  gap: 0.15rem;
  text-align: right;
}

.live-score strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.live-score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.points-now {
  color: var(--green);
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.28rem rgba(23, 111, 76, 0.12);
  vertical-align: middle;
}

#tips .panel-head > div {
  display: none;
}

.tips-save-bar {
  display: flex;
  justify-content: center;
}

.tips-save-bar-top {
  display: none;
}

.tips-save-bar-bottom {
  position: sticky;
  bottom: 0.75rem;
  z-index: 4;
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.tips-save-button {
  width: min(100%, 18rem);
  min-height: 2.9rem;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 45px rgba(38, 120, 255, 0.24);
}

.tip-time-group {
  display: grid;
  gap: 0.3rem;
}

.tip-time-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.05rem 0.1rem 0;
  color: rgba(166, 179, 195, 0.72);
  font-size: clamp(0.72rem, 2.9vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0;
}

.tip-time-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(7, 15, 27, 0.78);
}

.tip-team {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  overflow: hidden;
}

.tip-team-home {
  justify-content: flex-start;
  text-align: left;
}

.tip-team-away {
  justify-content: flex-end;
  text-align: right;
}

.tip-team span {
  display: block;
  max-width: none;
  min-width: 0;
  overflow: visible;
  color: var(--ink);
  font-size: clamp(0.82rem, 3.35vw, 1rem);
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.tip-versus {
  color: var(--muted);
  font-weight: 900;
}

.tip-score {
  display: grid;
  grid-template-columns: 2.2rem auto 2.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-width: 5.3rem;
}

.score-separator {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
}

.tip-score input {
  width: 100%;
  min-height: 2.05rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fffdf8;
  text-align: center;
  font-weight: 900;
}

.tip-time-card .tip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 3.7rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.tip-time-card .tip-row:last-child {
  border-bottom: 0;
}

.rank-number {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: #eee7dc;
  font-weight: 900;
}

.leader-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(104, 224, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #2f7dff 55%, #7c5cff);
  font-size: 0.72rem;
  font-weight: 950;
}

.leader-row.me {
  border-color: rgba(23, 111, 76, 0.35);
  background: var(--mint);
}

.leader-points {
  min-width: 4rem;
  text-align: right;
  font-weight: 900;
}

.segmented {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #f4eee3;
}

.segmented button {
  padding: 0 0.75rem;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(35, 31, 24, 0.09);
}

.rules {
  display: grid;
  gap: 0.75rem;
}

.rules div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #f8f2e7;
}

.rules strong {
  color: var(--red);
  font-size: 1.7rem;
}

.round-section {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.round-section h3 {
  margin: 0;
  font-size: 1rem;
}

.round-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.round-card {
  display: grid;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding: 0.9rem;
  border: 1px solid #e8e0d4;
  border-radius: 0.6rem;
  background: #fffaf1;
  text-align: left;
}

.round-card:hover {
  border-color: rgba(23, 111, 76, 0.45);
  box-shadow: 0 12px 30px rgba(35, 31, 24, 0.08);
}

.round-card.active {
  border-color: rgba(23, 111, 76, 0.75);
  background: #eef8ef;
  box-shadow: inset 0 0 0 1px rgba(23, 111, 76, 0.18);
}

.round-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.round-card strong {
  font-size: 1.1rem;
}

.round-card small {
  color: var(--muted);
  line-height: 1.45;
}

.round-card em {
  color: var(--green);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.active-round-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.active-round-note strong {
  color: var(--ink);
}

.empty-round-state {
  min-height: 5rem;
  padding: 1rem;
  border: 1px dashed #d9cbbb;
  border-radius: 0.6rem;
  color: var(--muted);
  background: #fffaf1;
  font-weight: 800;
}

.create-empty-round {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  border-style: solid;
  border-color: rgba(34, 199, 122, 0.55);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(34, 199, 122, 0.16), rgba(88, 166, 255, 0.14));
  text-align: left;
}

.create-empty-round span {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.55rem;
  color: #06120d;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-size: 1.25rem;
  font-weight: 950;
}

.create-empty-round strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.create-empty-round small {
  color: var(--muted);
  font-weight: 760;
}

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.6rem;
  background: var(--mint);
}

.invite-banner p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-home {
  display: grid;
  gap: 1rem;
}

.settings-title h2 {
  margin: 0;
}

.settings-list {
  display: grid;
  gap: 0.7rem;
}

.settings-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 1rem 3.1rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  background: rgba(16, 24, 32, 0.92);
  box-shadow: var(--shadow);
  text-align: left;
}

.settings-list-item::after {
  position: absolute;
  right: 1rem;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
  content: ">";
}

.settings-list-item:hover {
  border-color: rgba(34, 199, 122, 0.58);
  background: #182935;
}

.settings-list-item span {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
}

.settings-list-item strong {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
  text-align: right;
}

.danger-list-item::after,
.danger-list-item span {
  color: #ff9b9b;
}

.settings-back {
  min-height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--ink);
  background: #14202a;
  font-weight: 850;
}

.settings-page > article,
.settings-page > .settings-account-card {
  display: grid;
  gap: 0.85rem;
  min-height: 7.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(16, 24, 32, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(18rem, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.settings-grid article {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 7.25rem;
  padding: 1rem;
  border: 1px solid #e8e0d4;
  border-radius: 0.7rem;
  background: #fffaf1;
}

.settings-grid > .settings-accordion {
  grid-column: 1 / -1;
}

.settings-accordion {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(124, 167, 255, 0.18);
  border-radius: 0.7rem;
  background: rgba(12, 18, 24, 0.96);
}

.settings-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.settings-accordion > summary::-webkit-details-marker {
  display: none;
}

.settings-accordion > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(104, 224, 255, 0.24);
  border-radius: 999px;
  color: #68e0ff;
  background: rgba(14, 28, 50, 0.92);
}

.settings-accordion[open] > summary::after {
  content: "-";
}

.settings-accordion-body {
  display: grid;
  gap: 1rem;
}

.settings-save-inline {
  margin-top: 0.15rem;
}

.settings-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.settings-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.35;
}

.settings-account-card {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(12rem, 1fr) minmax(18rem, 1.35fr) auto auto auto;
  align-items: center;
  min-height: 7rem;
}

.settings-account-card .account-meta {
  min-width: 0;
}

.settings-account-card .account-meta strong,
.settings-account-card .account-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.profile-photo-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.profile-photo-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.nickname-field input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: #0b1117;
  font: inherit;
  font-weight: 800;
}

.round-edit-card input,
.round-edit-card textarea,
.settings-language-card select,
.round-logo-card input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #ded2c2;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.round-logo-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.round-logo-card input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(104, 224, 255, 0.28);
  border-radius: 0.55rem;
  color: #ffffff;
  background: #13243d;
  font-weight: 900;
}

.round-logo-card input::-webkit-file-upload-button {
  margin-right: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(104, 224, 255, 0.28);
  border-radius: 0.55rem;
  color: #ffffff;
  background: #13243d;
  font-weight: 900;
}

.round-edit-card {
  min-height: 8.5rem;
}

.round-edit-card input {
  font-weight: 850;
}

.round-edit-card textarea {
  min-height: 7.25rem;
  line-height: 1.5;
  resize: vertical;
}

.round-edit-card input:disabled,
.round-edit-card textarea:disabled,
.round-logo-card input:disabled,
.round-save-card button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.round-logo-preview,
.round-card-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.round-logo-preview {
  width: 5.25rem;
  height: 5.25rem;
}

.round-logo-card {
  grid-template-columns: minmax(0, 1fr);
}

.round-logo-preview img,
.round-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.round-card-logo {
  width: 2.6rem;
  height: 2.6rem;
}

.points-rule-card {
  grid-column: 1 / -1;
  min-height: 10rem;
}

.points-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.points-rules label {
  display: grid;
  gap: 0.4rem;
  min-height: 4.9rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(7, 11, 16, 0.24);
}

.points-rules .team-goals-rule {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.team-goals-rule > span {
  grid-column: 1;
}

.team-goals-rule > input {
  grid-column: 1 / -1;
}

.three-way-scoring .point-exact-rule,
.three-way-scoring .point-difference-rule,
.three-way-scoring .team-goals-rule {
  display: none;
}

.three-way-scoring .point-outcome-rule {
  grid-column: 1 / -1;
}

.three-way-rules .rules-exact,
.three-way-rules .rules-difference,
.three-way-rules .rules-team-goals {
  display: none;
}

.switch-row {
  grid-column: 2;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 0.45rem;
  min-height: 1.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  position: relative;
  display: block;
  width: 2.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #e05263;
  transition: background 0.18s ease;
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch-row.is-on i {
  background: #22c779;
}

.switch-row.is-on i::after {
  transform: translateX(1rem);
}

.switch-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.points-rules input,
.points-rules select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #ded2c2;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.points-rules input:disabled,
.points-rules select:disabled,
.compact-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.compact-save {
  width: 100%;
  min-height: 2.85rem;
  padding-inline: 0.9rem;
}

.round-save-card {
  align-content: center;
}

.special-questions-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e8e0d4;
  border-radius: 0.6rem;
  background: rgba(255, 250, 241, 0.68);
}

.compact-head {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.compact-head p:not(.eyebrow) {
  margin-top: 0.25rem;
  color: var(--muted);
}

.special-question-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.special-options-field {
  grid-column: 1 / -1;
}

.special-options-field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.special-question-list,
.special-answer-list {
  display: grid;
  gap: 0.75rem;
}

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

.bonus-results-list {
  display: grid;
  gap: 0.85rem;
}

.bonus-results-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #d8e6dc;
  border-radius: 0.6rem;
  background: #f1fbf5;
}

.bonus-results-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1rem;
}

.bonus-results-card h3 span {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-size: 0.78rem;
}

.bonus-results-card p {
  color: var(--muted);
}

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

.bonus-answer {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid rgba(23, 111, 76, 0.14);
  border-radius: 0.5rem;
  background: #fff;
}

.bonus-answer span {
  color: var(--muted);
  font-size: 0.78rem;
}

.special-question-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid #e8e0d4;
  border-radius: 0.55rem;
  background: var(--panel);
}

.special-question-card div {
  display: grid;
  gap: 0.2rem;
}

.solution-editor {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto auto;
  gap: 0.55rem;
  align-items: end;
  min-width: min(100%, 28rem);
}

.solution-editor label {
  display: grid;
  gap: 0.25rem;
}

.solution-editor input,
.solution-editor select {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid #ded2c2;
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.answer-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.answer-option-list em {
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(34, 199, 122, 0.12);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.special-answer-choice {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(18, 28, 36, 0.96);
}

.special-answer-choice > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.bonus-question-title {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.special-answer-choice span {
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-choice-list {
  display: grid;
  gap: 0.5rem;
}

.answer-choice-list label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #0b1117;
}

.answer-choice-list label span {
  flex: 1;
}

.answer-choice-list input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
}

.answer-choice-list label:has(input:checked) {
  border-color: rgba(34, 199, 122, 0.72);
  background: rgba(18, 61, 44, 0.76);
}

.answer-choice-list .correct-answer-option {
  border-color: rgba(34, 199, 122, 0.82);
  background: rgba(18, 61, 44, 0.68);
}

.answer-choice-list .member-correct-answer {
  box-shadow: inset 0 0 0 1px rgba(34, 199, 122, 0.34), 0 10px 28px rgba(34, 199, 122, 0.16);
}

.answer-choice-list .member-wrong-answer {
  border-color: rgba(255, 107, 107, 0.8);
  background: rgba(92, 28, 34, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.28), 0 10px 28px rgba(255, 107, 107, 0.16);
}

.correct-answer-check,
.wrong-answer-mark {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  font-weight: 950;
}

.correct-answer-check {
  color: #04100b;
  background: var(--green);
}

.wrong-answer-mark {
  color: #fff;
  background: var(--red);
}

.answer-lock-note {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.locked-answer-choice {
  opacity: 0.78;
}

.locked-answer-choice .answer-choice-list label {
  cursor: not-allowed;
}

.locked-answer-choice .answer-choice-list input {
  cursor: not-allowed;
}

.official-solution {
  padding: 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
}

.special-question-card span,
.special-question-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.muted-card {
  color: var(--muted);
}

.small-action {
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
}

.special-answer-field input:disabled,
#saveSpecialAnswers:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e0d4;
}

.danger-button {
  color: var(--red);
  border-color: rgba(166, 63, 59, 0.28);
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  transform: translateY(150%);
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

/* Dark high-contrast interface */
.landing-header,
.landing-main,
.landing-footer,
.main {
  color: var(--ink);
}

.landing-header {
  background: rgba(7, 11, 16, 0.72);
  backdrop-filter: blur(16px);
}

.brand-mark,
.round-logo-preview,
.round-card-logo,
.account-avatar {
  background: linear-gradient(135deg, var(--green), #1b6dff);
  color: #04100b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 36px rgba(34, 199, 122, 0.16);
}

.language-select,
.login-panel,
.legal-panel,
.wizard-panel,
.wizard-actions,
.choice-card,
.wizard-authenticated,
.sidebar,
.profile,
.source-pill,
.round-picker,
.league-picker,
.matchday-picker,
.stat-card,
.panel,
.match-card,
.tip-row,
.leader-row,
.member-row,
.segmented,
.round-card,
.empty-round-state,
.invite-banner,
.settings-grid article,
.special-questions-panel,
.round-edit-card input,
.round-edit-card textarea,
.settings-language-card select,
.round-logo-card input,
.points-rules input,
.points-rules select,
.special-question-form,
.bonus-answer,
.bonus-answer-card,
.bonus-results-card,
.bonus-result-row,
.special-question-card,
.special-answer-list,
.solution-editor input,
.solution-editor select,
.special-answer-field input,
.special-answer-choice,
.toast {
  border-color: var(--line);
  background: rgba(16, 24, 32, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sidebar {
  background: rgba(9, 14, 20, 0.94);
}

.login-panel,
.legal-panel,
.wizard-panel {
  background: #101820;
}

.landing-footer {
  border-top-color: var(--line);
  background: rgba(7, 11, 16, 0.76);
}

.danger-button {
  border-color: rgba(255, 107, 107, 0.36);
  color: #ff9b9b;
}

.login-button,
.primary-button,
.full-button {
  background: linear-gradient(135deg, #22c77a, #1f7bff);
  color: #03100b;
  box-shadow: 0 12px 30px rgba(34, 199, 122, 0.2);
}

.ghost-button,
.logout-button,
.close-button,
.google-button,
.small-action {
  border-color: var(--line);
  background: #14202a;
  color: var(--ink);
}

.ghost-button:hover,
.logout-button:hover,
.google-button:hover,
.nav-item:hover,
.round-card:hover {
  border-color: rgba(34, 199, 122, 0.46);
  background: #182935;
}

.nav-item {
  color: var(--muted);
}

.nav-item.active,
.segmented button.active,
.round-card.active,
.choice-card:has(input:checked) {
  border-color: rgba(34, 199, 122, 0.68);
  background: rgba(18, 61, 44, 0.82);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(34, 199, 122, 0.22), 0 14px 36px rgba(34, 199, 122, 0.12);
}

.league-card,
.divider span,
.tip-lock,
.tip-status,
.badge-pill {
  background: #14202a;
  color: var(--ink);
  border-color: var(--line);
}

.match-status,
.live-dot,
.profile-card,
.rank-number,
.score-pill {
  background: var(--green);
  color: #03100b;
}

.profile-card {
  background: linear-gradient(135deg, #123d2c, #15324d);
  color: var(--ink);
}

.field-label input,
.field-label textarea,
.matchday-picker select,
.language-select select,
.points-rules select,
.tip-score input {
  border-color: var(--line);
  background: #0b1117;
  color: var(--ink);
}

.field-label input:focus,
.field-label textarea:focus,
.round-edit-card input:focus,
.round-edit-card textarea:focus,
.settings-language-card select:focus,
.points-rules input:focus,
.points-rules select:focus,
.solution-editor input:focus,
.solution-editor select:focus,
.special-answer-field input:focus,
.tip-score input:focus {
  border-color: rgba(34, 199, 122, 0.72);
  box-shadow: 0 0 0 0.2rem rgba(34, 199, 122, 0.16);
  outline: none;
}

.wizard-progress,
.divider::before,
.danger-zone,
.special-answer-list {
  border-color: var(--line);
}

.wizard-progress,
.tip-score span,
.segmented {
  background: #0b1117;
}

.club-logo::after {
  border-color: rgba(255, 255, 255, 0.24);
}

.leader-row.me {
  border-color: rgba(34, 199, 122, 0.72);
  background: rgba(18, 61, 44, 0.78);
}

.points-now,
.leader-points {
  color: var(--green);
}

.wizard-progress span {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.stat-card::after {
  opacity: 0.82;
}

.stat-card:nth-child(1)::after,
.round-create-card {
  background: rgba(34, 199, 122, 0.16);
}

.stat-card:nth-child(2)::after {
  background: rgba(242, 184, 75, 0.18);
}

.stat-card:nth-child(3)::after {
  background: rgba(88, 166, 255, 0.18);
}

.bonus-results-card h3 span,
.live-pill,
.round-card em,
.login-links button,
.landing-footer button:hover {
  color: var(--green);
}

.special-questions-panel {
  border-color: var(--line);
  background: rgba(12, 18, 24, 0.96);
}

.special-question-form,
.special-question-card,
.special-answer-list,
.bonus-results-card,
.bonus-answer {
  border-color: var(--line);
  background: rgba(18, 28, 36, 0.96);
}

.special-question-form {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.special-question-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.bonus-create-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(34, 199, 122, 0.5);
  background: linear-gradient(135deg, rgba(18, 61, 44, 0.82), rgba(20, 45, 72, 0.76));
}

.bonus-create-card small {
  display: block;
  margin-top: 0.3rem;
}

.special-question-card .ghost-button {
  background: #132431;
}

.profile-score strong,
.stat-card strong,
.round-card strong,
.settings-grid strong,
.match-title,
.leader-row strong,
.member-row strong {
  color: var(--ink);
}

.profile-score span,
.stat-card span,
.stat-card small,
.match-time,
.settings-grid span,
.round-card span,
.round-card small,
.choice-card p,
.hero-copy p:not(.eyebrow),
.landing-footer button,
.muted-card,
.bonus-results-card p,
.bonus-result-row span,
.special-question-card span,
.special-question-card small,
.special-answer-field small {
  color: var(--muted);
}

.login-dialog::backdrop,
.legal-dialog::backdrop,
.nickname-dialog::backdrop,
.wizard-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.toast {
  background: #0f1a22;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .landing-header {
    padding: 0.85rem 1rem;
  }

  .landing-main {
    padding: 1.25rem 1rem 2rem;
  }

  .landing-hero {
    min-height: auto;
  }

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

  .choice-grid,
  .choice-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 0.85rem;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem;
    font-size: 0.86rem;
  }

  .nav-item .icon,
  .league-card {
    display: none;
  }

  .sidebar-bottom {
    margin-top: auto;
  }

  .main {
    padding: 1rem;
  }

  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile {
    align-self: flex-start;
  }

  .round-picker,
  .league-picker,
  .source-pill {
    min-width: 0;
  }

  .stats-grid,
  .content-grid,
  .group-grid,
  .settings-grid,
  .bonus-answer-grid,
  .round-card-grid {
    grid-template-columns: 1fr;
  }

  .settings-account-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-account-card .nickname-field,
  .settings-account-card .profile-photo-field,
  .settings-account-card #saveNickname,
  .settings-account-card .profile-score,
  .settings-account-card .logout-button {
    grid-column: 1 / -1;
  }

  .special-question-form,
  .special-question-card {
    grid-template-columns: 1fr;
  }

  .special-question-card {
    align-items: stretch;
    flex-direction: column;
  }

  .bonus-create-card {
    grid-template-columns: 1fr;
  }

  .solution-editor {
    grid-template-columns: 1fr;
  }

  .invite-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-card {
    min-height: 8.5rem;
  }

  .tip-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .tip-match-info {
    width: 100%;
    flex-basis: 100%;
    padding-inline: 2.05rem;
  }

  .tip-teams {
    gap: 0.28rem;
  }

  .tip-team {
    gap: 0.28rem;
  }

  .tip-score {
    width: auto;
    grid-template-columns: 2.65rem auto 2.65rem;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .nickname-actions {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .wizard-actions button {
    width: min(100%, 13rem);
  }
}

@media (max-width: 520px) {
  .landing-header {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .language-select {
    min-width: 0;
  }

  .login-button {
    min-width: 5.5rem;
  }

  .login-panel {
    padding: 1rem;
  }

  .wizard-panel {
    padding: 1rem;
  }

  .wizard-actions {
    bottom: -1rem;
    margin: 0 -1rem -1rem;
    padding: 0.8rem 1rem 1rem;
  }

  .feature-card {
    min-height: 14rem;
    padding: 1rem;
  }

  .brand {
    justify-content: center;
  }

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

  h1 {
    font-size: 2.25rem;
  }

  .match-card,
  .leader-row,
  .member-row {
    min-height: 4.2rem;
  }
}

body.app-open .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
}

.nav-list {
  grid-template-columns: 1fr;
}

.nav-item {
  justify-content: flex-start;
}

.nav-item .icon {
  display: inline-block;
}

.league-card {
  display: block;
}

@media (max-width: 900px) {
  .sidebar {
    width: min(19rem, calc(100vw - 2rem));
    padding: 1rem;
    overflow-y: auto;
  }

  .sidebar .league-card {
    display: none;
  }

  .sidebar-bottom {
    margin-top: 0.75rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.85rem;
  }

  .top-actions {
    margin-left: auto;
    align-items: flex-end;
    flex-direction: row;
  }

  .round-picker {
    width: auto;
    min-width: 0;
    max-width: min(52vw, 12.5rem);
  }

  .round-picker select {
    max-width: 10.5rem;
  }
}

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

  .settings-account-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-account-card .nickname-field,
  .settings-account-card .profile-photo-field,
  .settings-account-card #saveNickname,
  .settings-account-card .profile-score,
  .settings-account-card .logout-button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 680px) {
  .settings-panel {
    padding: 0.8rem;
  }

  .settings-list-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-right: 2.7rem;
  }

  .settings-list-item strong {
    text-align: left;
  }

  .settings-grid,
  .points-rules {
    grid-template-columns: 1fr;
  }

  .settings-grid article {
    min-height: 0;
  }

  .round-edit-card textarea {
    min-height: 8rem;
  }
}

/* Modern dark sports-app refresh */
:root {
  --bg: #05070d;
  --ink: #f7f9ff;
  --muted: #8d9ab8;
  --line: rgba(91, 132, 255, 0.22);
  --panel: rgba(11, 17, 30, 0.84);
  --panel-strong: rgba(16, 27, 50, 0.92);
  --green: #2f7dff;
  --mint: rgba(47, 125, 255, 0.14);
  --yellow: #68e0ff;
  --sun: rgba(104, 224, 255, 0.14);
  --blue: #7ca7ff;
  --sky: rgba(36, 84, 195, 0.22);
  --red: #ff5f7e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 125, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(104, 224, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #04060b 0%, #081120 48%, #03050a 100%);
}

.landing-page {
  position: relative;
  overflow: hidden;
}

.landing-page::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
  content: "";
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(124, 167, 255, 0.16);
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(18px);
}

.brand-mark,
.round-logo-preview,
.round-card-logo,
.account-avatar {
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #2f7dff 55%, #7c5cff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(47, 125, 255, 0.28);
}

.brand-mark.brand-logo {
  overflow: hidden;
  padding: 0;
  background: #050b15;
  box-shadow: 0 0 0 1px rgba(82, 165, 255, 0.35), 0 14px 34px rgba(47, 125, 255, 0.22);
}

.brand-mark.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(46rem, calc(100vh - 6rem));
}

.hero-copy h1 {
  max-width: 46rem;
  margin: 0.35rem 0 1rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: 39rem;
  color: #b8c4dd;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.eyebrow {
  color: #68e0ff;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  min-height: 35rem;
  perspective: 900px;
}

.hero-visual::before {
  position: absolute;
  inset: 11% 4% 8% 7%;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 125, 255, 0.38), transparent 38%),
    linear-gradient(135deg, rgba(104, 224, 255, 0.14), rgba(124, 92, 255, 0.16));
  filter: blur(18px);
  content: "";
}

.phone-preview {
  position: absolute;
  display: grid;
  gap: 0.85rem;
  width: min(18rem, 52vw);
  padding: 0.85rem;
  border: 1px solid rgba(104, 224, 255, 0.28);
  border-radius: 1.85rem;
  background:
    linear-gradient(180deg, rgba(15, 25, 46, 0.96), rgba(4, 8, 17, 0.98)),
    #07101f;
  box-shadow:
    0 0 0 0.45rem rgba(18, 29, 52, 0.78),
    0 24px 80px rgba(0, 0, 0, 0.56),
    0 0 42px rgba(47, 125, 255, 0.2);
}

.phone-preview-main {
  top: 1.5rem;
  left: 8%;
  min-height: 29rem;
  transform: rotate(-9deg) rotateY(12deg);
}

.phone-preview-side {
  right: 7%;
  bottom: 1.2rem;
  min-height: 20rem;
  transform: rotate(9deg) rotateY(-12deg);
}

.phone-bar,
.phone-mini-match,
.phone-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.phone-bar {
  padding: 0.35rem 0.35rem 0.1rem;
  color: #dce7ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.phone-bar strong {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  color: #021124;
  background: #68e0ff;
  font-size: 0.65rem;
}

.phone-hero-card {
  display: grid;
  gap: 0.28rem;
  min-height: 10.5rem;
  align-content: end;
  padding: 1rem;
  border: 1px solid rgba(104, 224, 255, 0.22);
  border-radius: 1.15rem;
  background:
    linear-gradient(to top, rgba(4, 8, 17, 0.94), rgba(7, 17, 34, 0.24)),
    radial-gradient(circle at 50% 18%, rgba(47, 125, 255, 0.42), transparent 42%),
    #0b1629;
}

.phone-hero-card small,
.phone-hero-card span {
  color: #9fafc9;
}

.phone-hero-card strong {
  font-size: 1.25rem;
}

.phone-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.phone-score-row b,
.phone-mini-match,
.phone-list {
  border: 1px solid rgba(124, 167, 255, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
}

.phone-score-row b {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  font-size: 1.45rem;
}

.phone-score-row em {
  color: #68e0ff;
  font-style: normal;
  font-weight: 900;
}

.phone-list {
  padding: 0.8rem;
  color: #dce7ff;
  font-size: 0.82rem;
}

.phone-list strong {
  color: #68e0ff;
}

.phone-mini-match {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 3.1rem;
  padding: 0.7rem;
  color: #dce7ff;
  font-size: 0.78rem;
}

.phone-mini-match b {
  color: #68e0ff;
}

.login-panel,
.legal-panel,
.wizard-panel,
.choice-card,
.sidebar,
.profile,
.source-pill,
.stat-card,
.panel,
.match-card,
.tip-row,
.leader-row,
.member-row,
.segmented,
.round-card,
.empty-round-state,
.invite-banner,
.round-edit-card,
.round-logo-card,
.round-save-card,
.points-rule-card,
.settings-accordion,
.special-questions-panel,
.bonus-answer-card,
.bonus-results-card,
.special-question-card {
  border-color: rgba(124, 167, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.primary-button,
.full-button {
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #2f7dff 56%, #775dff);
  box-shadow: 0 14px 34px rgba(47, 125, 255, 0.34);
}

.ghost-button,
.login-button,
.logout-button,
.close-button,
.google-button {
  color: #e8efff;
  border-color: rgba(124, 167, 255, 0.24);
  background: rgba(12, 22, 39, 0.82);
}

.ghost-button:hover,
.login-button:hover,
.google-button:hover,
.round-card:hover {
  border-color: rgba(104, 224, 255, 0.5);
  background: rgba(20, 43, 79, 0.92);
}

.round-card.active,
.choice-card:has(input:checked),
.leader-row.me {
  border-color: rgba(104, 224, 255, 0.68);
  background: rgba(33, 84, 165, 0.24);
  box-shadow: 0 0 0 1px rgba(104, 224, 255, 0.12), 0 18px 55px rgba(47, 125, 255, 0.18);
}

.stat-card::after {
  background: rgba(47, 125, 255, 0.18);
}

.stat-card:nth-child(2)::after {
  background: rgba(104, 224, 255, 0.16);
}

.stat-card:nth-child(3)::after {
  background: rgba(124, 92, 255, 0.16);
}

.rank-number,
.score-pill,
.live-pill {
  color: #06101f;
  background: linear-gradient(135deg, #68e0ff, #2f7dff);
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .phone-preview-main {
    left: 5%;
  }

  .phone-preview-side {
    right: 5%;
  }
}

@media (max-width: 680px) {
  .hero-copy h1 {
    font-size: clamp(2.45rem, 16vw, 4.1rem);
  }

  .hero-visual {
    min-height: 24rem;
  }

  .phone-preview {
    width: min(15rem, 68vw);
    border-radius: 1.45rem;
  }

  .phone-preview-main {
    left: 0;
    min-height: 23rem;
  }

  .phone-preview-side {
    right: 0;
    bottom: 0;
    min-height: 16rem;
  }
}

/* Header and mobile hero polish */
.landing-header {
  width: min(100%, 82rem);
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-page::after {
  content: none;
}

.landing-brand {
  gap: 0.65rem;
}

.landing-brand .brand-logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-brand .brand-logo img {
  object-fit: contain;
}

.landing-actions {
  gap: 0.85rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.language-select {
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.language-select span {
  display: none;
}

.language-select select {
  min-width: auto;
  padding: 0;
  border: 0;
  color: #e8efff;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 900;
}

.login-button {
  min-height: 2.5rem;
  border-radius: 0.75rem;
}

.landing-main {
  position: relative;
  z-index: 1;
}

.landing-hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: min(46rem, calc(100vh - 6rem));
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, 0.96) 0%, rgba(8, 17, 35, 0.82) 42%, rgba(9, 18, 37, 0.46) 100%),
    url("./assets/hero/landing-fans.png") center 34% / cover no-repeat;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 18%, rgba(104, 224, 255, 0.18), transparent 28%),
    radial-gradient(circle at 56% 28%, rgba(124, 92, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.04) 0%, rgba(5, 10, 22, 0.68) 74%, rgba(5, 10, 22, 0.96) 100%);
  content: "";
}

.landing-hero > * {
  position: relative;
  z-index: 2;
}

.landing-hero .hero-copy {
  z-index: 3;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 1.2rem;
  background: linear-gradient(90deg, rgba(4, 9, 20, 0.64), rgba(4, 9, 20, 0.18) 74%, transparent);
}

.landing-hero .hero-copy h1 {
  display: block;
  color: #ffffff;
}

.landing-hero .hero-copy p:not(.eyebrow) {
  display: block;
  color: #d6deef;
}

.landing-hero .hero-copy h1,
.landing-hero .hero-copy p,
.landing-hero .hero-copy .eyebrow {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
}

@media (max-width: 680px) {
  .landing-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.85rem 0.75rem;
  }

  .landing-brand .brand-logo {
    width: 3.65rem;
    height: 3.65rem;
  }

  .landing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .language-select {
    min-width: 0;
  }

  .language-select select {
    min-width: 0;
    max-width: 6.8rem;
  }

  .login-button {
    min-width: 5.15rem;
    padding-inline: 0.85rem;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: min(44rem, calc(100vh - 6.5rem));
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5, 10, 22, 0.34) 0%, rgba(5, 10, 22, 0.74) 42%, rgba(5, 10, 22, 0.98) 100%),
      url("./assets/hero/landing-fans.png") center top / cover no-repeat;
  }

  .hero-copy {
    position: relative;
    z-index: 6;
    order: 1;
    max-width: none;
    padding-top: 1.2rem;
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.68), rgba(4, 9, 20, 0.2));
  }

  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 20rem;
    margin-top: 0.2rem;
    overflow: hidden;
    opacity: 0.92;
  }

  .features-section {
    position: relative;
    z-index: 3;
    padding-top: 1.2rem;
  }

  .phone-preview-main {
    top: 0.7rem;
    left: 0.4rem;
    width: min(13rem, 57vw);
    min-height: 19rem;
    transform: rotate(-5deg);
  }

  .phone-preview-side {
    right: 0.4rem;
    bottom: 0.8rem;
    width: min(12.2rem, 54vw);
    min-height: 13.6rem;
    transform: rotate(5deg);
  }
}

/* Final in-app polish */
.table-round-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.8rem;
}

.table-round-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(104, 224, 255, 0.26);
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #2f7dff 55%, #7c5cff);
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(47, 125, 255, 0.24);
}

.table-round-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-round-title h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.tip-overview-panel .panel-head {
  align-items: flex-start;
}

.tip-overview-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tip-overview-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(104, 224, 255, 0.16);
  border-radius: 0.75rem;
  background: rgba(7, 13, 20, 0.72);
}

.tip-overview-scroll::after {
  content: "";
  position: sticky;
  right: 0;
  display: block;
  width: 2.2rem;
  height: 0;
  margin-left: auto;
  box-shadow: -1.4rem 0 1.6rem rgba(7, 13, 20, 0.84);
  pointer-events: none;
}

.tip-overview-table {
  width: 100%;
  min-width: max-content;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--ink);
}

.tip-overview-table th,
.tip-overview-table td {
  padding: 0.52rem 0.28rem;
  border-bottom: 1px solid rgba(104, 224, 255, 0.11);
  border-right: 1px solid rgba(104, 224, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.tip-overview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101923;
  color: var(--muted);
  font-size: clamp(0.55rem, 1.25vw, 0.72rem);
  text-transform: uppercase;
}

.tip-overview-table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease;
}

.tip-overview-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.tip-overview-table tbody tr.me {
  background: rgba(33, 84, 165, 0.24);
}

.tip-overview-table .overview-rank {
  width: 2rem;
  color: var(--muted);
  font-weight: 900;
}

.tip-overview-table .overview-name {
  position: sticky;
  left: 0;
  z-index: 2;
  width: clamp(6.1rem, 25vw, 11rem);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  background: #101923;
  color: var(--ink);
  font-weight: 900;
}

.tip-overview-table tbody .overview-name {
  background: #0c141d;
}

.tip-overview-table tbody tr.me .overview-name {
  background: #15243b;
}

.tip-overview-table .overview-total {
  width: 3rem;
  color: var(--green);
  font-weight: 950;
}

.overview-match {
  width: clamp(4.2rem, 12vw, 6.4rem);
}

.overview-match span,
.overview-match strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-match strong {
  margin: 0.08rem 0;
  color: var(--blue);
  font-size: clamp(0.66rem, 1.6vw, 0.86rem);
}

.overview-tip {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 2.8rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  font-weight: 950;
}

.overview-tip sup {
  margin-left: 0.12rem;
  font-size: 0.66rem;
}

.overview-tip.perfect {
  color: #37e889;
}

.overview-tip.points {
  color: #ffd166;
}

.overview-tip.zero {
  color: var(--ink);
}

.overview-tip.missing,
.overview-tip.locked {
  color: rgba(226, 236, 246, 0.48);
}

.topbar-title,
#tipsRoundLabel {
  display: none;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.top-actions:has(.hidden-league-picker:only-child) {
  display: none;
}

.settings-active-round-picker,
.settings-active-round-picker select {
  width: 100%;
  max-width: none;
}

#tips .panel-head {
  align-items: end;
}

#tips .panel-head h2 {
  margin: 0;
}

@media (max-width: 680px) {
  .tip-teams {
    width: 100%;
    gap: 0.35rem;
  }

  .tip-team span {
    font-size: 1rem;
  }
}

#tips .tip-time-card .tip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  flex-wrap: nowrap;
}

#tips .tip-time-card .tip-score {
  width: auto;
  grid-template-columns: 2.2rem auto 2.2rem;
  margin-inline: 0;
}

#tips .score-separator {
  background: transparent;
}

@media (max-width: 520px) {
  #tips .tip-time-card .tip-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.42rem;
    padding: 0.58rem 0.62rem;
  }

  #tips .tip-time-card .tip-score {
    grid-template-columns: 1.9rem auto 1.9rem;
    min-width: 4.7rem;
  }

  #tips .tip-score input {
    min-height: 1.9rem;
    border-radius: 0.38rem;
    font-size: 0.95rem;
  }

  #tips .tip-team span {
    font-size: clamp(0.78rem, 3.55vw, 0.94rem);
  }

}

.sidebar-create-round.create-round-nav {
  justify-content: center !important;
  text-align: center !important;
}

.sidebar-create-round.create-round-nav .icon {
  display: none !important;
}

.sidebar .sidebar-brand-logo {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar .sidebar-brand-logo img {
  object-fit: contain;
}

.sidebar .nav-list {
  gap: 0.35rem;
}

.sidebar .nav-item {
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border-bottom-color: rgba(125, 166, 255, 0.12);
  border-radius: 0.75rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.sidebar .nav-item:hover {
  transform: scale(1.02);
  color: #ffffff;
  background: rgba(47, 125, 255, 0.13);
  box-shadow: 0 0 0 1px rgba(94, 181, 255, 0.22), 0 12px 28px rgba(47, 125, 255, 0.13);
}

.sidebar .nav-item.active {
  color: #ffffff;
  border-color: rgba(104, 216, 255, 0.48);
  background: linear-gradient(135deg, rgba(35, 129, 255, 0.24), rgba(124, 92, 255, 0.2));
  box-shadow: 0 0 0 1px rgba(104, 216, 255, 0.26), 0 0 22px rgba(47, 125, 255, 0.22);
}

.sidebar .nav-item .icon {
  width: 1.34rem;
  height: 1.34rem;
  flex: 0 0 1.34rem;
  color: #6fe7ff;
  stroke-width: 2.25;
}

.sidebar-create-round.create-round-nav {
  justify-content: center !important;
  gap: 0.55rem;
  border-color: rgba(104, 216, 255, 0.72);
  color: #ffffff;
  background: #227cff;
  box-shadow: 0 14px 30px rgba(34, 124, 255, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.sidebar-create-round.create-round-nav .icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  border-radius: 999px;
  color: #06111f;
  background: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

.sidebar-create-round.create-round-nav:hover {
  background: #3b6dff;
  box-shadow: 0 16px 36px rgba(59, 109, 255, 0.34), 0 0 24px rgba(104, 216, 255, 0.18);
}

.sidebar-logout {
  gap: 0.55rem;
  background: #d83b45;
  border-color: rgba(255, 132, 142, 0.64);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.sidebar-logout::before {
  content: "↪";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1rem;
  line-height: 1;
}

.sidebar-logout:hover {
  transform: scale(1.02);
  background: #f04a55;
  box-shadow: 0 16px 34px rgba(216, 59, 69, 0.3);
}

@media (max-width: 900px) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }

  .sidebar-bottom {
    margin-top: 1rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .sidebar-logout {
    margin-bottom: 1rem;
  }
}

.dashboard-today-panel,
.countdown-panel {
  margin-bottom: 1rem;
}

.dashboard-today-panel {
  background: linear-gradient(135deg, rgba(14, 25, 43, 0.98), rgba(10, 18, 31, 0.98));
  border-color: rgba(104, 216, 255, 0.18);
}

.today-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: #06111f;
  background: #6fe7ff;
  font-weight: 950;
}

.today-match-list {
  display: grid;
  gap: 0.55rem;
}

.today-match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(125, 166, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(3, 9, 18, 0.42);
}

.today-match-item span {
  color: #ffffff;
  font-weight: 850;
}

.today-match-item strong {
  color: #6fe7ff;
  font-weight: 950;
  white-space: nowrap;
}

.empty-dashboard-note,
.countdown-match {
  margin: 0;
  color: rgba(166, 179, 195, 0.86);
  font-weight: 700;
}

.countdown-panel {
  text-align: center;
  background: rgba(18, 25, 41, 0.96);
  border-color: rgba(124, 92, 255, 0.22);
}

.countdown-panel h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.35rem, 4.4vw, 2.2rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 0.85rem);
  max-width: 34rem;
  margin: 0 auto 0.85rem;
}

.countdown-grid div {
  padding: 0.85rem 0.35rem;
  border: 1px solid rgba(125, 166, 255, 0.16);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
}

.countdown-grid strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.65rem, 6vw, 3rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(166, 179, 195, 0.9);
  font-weight: 850;
}

.accent-red::after {
  background: rgba(255, 91, 107, 0.16);
}

.accent-purple::after {
  background: rgba(124, 92, 255, 0.18);
}

.accent-cyan::after {
  background: rgba(104, 216, 255, 0.15);
}

.dashboard-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-mini-panel {
  min-height: 9rem;
  background: rgba(13, 22, 36, 0.96);
  border-color: rgba(125, 166, 255, 0.14);
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(104, 216, 255, 0.12);
  font-size: 1.55rem;
}

.winner-card strong,
.winner-card small {
  display: block;
}

.winner-card strong {
  color: #ffffff;
  font-size: 1.25rem;
}

.winner-card small {
  margin-top: 0.2rem;
  color: rgba(166, 179, 195, 0.9);
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-list li,
.feature-chip-grid span {
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  color: rgba(244, 247, 245, 0.94);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.feature-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .dashboard-feature-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.45rem;
  }

  .today-match-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Premium UI polish */
.view.active {
  animation: viewFadeIn 220ms ease both;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid,
.content-grid,
.dashboard-feature-grid,
.group-grid {
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.stats-grid {
  margin-bottom: clamp(1.1rem, 2.4vw, 1.45rem);
}

.panel,
.stat-card,
.match-card,
.tip-row,
.leader-row,
.member-row {
  border-color: rgba(93, 130, 255, 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(15, 24, 42, 0.98), rgba(8, 16, 29, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(113, 184, 255, 0.04) inset;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.panel:hover,
.stat-card:hover,
.match-card:hover,
.tip-row:hover,
.leader-row:hover,
.member-row:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 150, 255, 0.34);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38), 0 0 30px rgba(70, 105, 255, 0.12);
}

.panel:active,
.stat-card:active,
.match-card:active,
.tip-row:active,
.leader-row:active,
.member-row:active {
  transform: scale(0.992);
}

.stat-card {
  min-height: 8.5rem;
  padding: 0.95rem 1rem;
}

.stat-card::after {
  width: 6.5rem;
  height: 6.5rem;
  right: -1.25rem;
  bottom: -2.25rem;
  opacity: 0.72;
}

.stat-card strong {
  margin: 0.3rem 0;
  font-size: clamp(2.35rem, 5.4vw, 2.85rem);
}

.stat-card span {
  color: rgba(190, 205, 255, 0.9);
}

.stat-card small {
  color: rgba(166, 179, 195, 0.84);
}

.accent-green::after,
.accent-yellow::after,
.accent-blue::after,
.accent-red::after,
.accent-purple::after,
.accent-cyan::after {
  background: radial-gradient(circle, rgba(93, 130, 255, 0.3), rgba(124, 92, 255, 0.08) 62%, transparent 70%);
}

.match-card.is-live {
  border-color: rgba(34, 199, 122, 0.48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 26px rgba(34, 199, 122, 0.16);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(34, 199, 122, 0.42);
  border-radius: 999px;
  color: #8ff5ba;
  background: rgba(34, 199, 122, 0.12);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  animation: liveGlow 1.6s ease-in-out infinite;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c77a;
  box-shadow: 0 0 0 0 rgba(34, 199, 122, 0.6);
  animation: livePulse 1.5s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 199, 122, 0.58);
  }
  70% {
    box-shadow: 0 0 0 0.5rem rgba(34, 199, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 199, 122, 0);
  }
}

@keyframes liveGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.countdown-panel {
  overflow: hidden;
  border-color: rgba(118, 150, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 130, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(18, 27, 47, 0.98), rgba(8, 15, 29, 0.98));
}

.countdown-panel h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.18rem, 3.6vw, 1.8rem);
}

.countdown-grid div {
  position: relative;
  overflow: hidden;
  padding: 0.7rem 0.35rem;
  border-color: rgba(118, 150, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  animation: countdownBreathe 2.6s ease-in-out infinite;
}

.countdown-grid div::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: translateX(-120%);
  animation: countdownSheen 3.2s ease-in-out infinite;
  content: "";
}

.countdown-grid strong,
.countdown-grid span {
  position: relative;
  z-index: 1;
}

.countdown-grid strong {
  font-size: clamp(1.45rem, 5vw, 2.55rem);
}

.countdown-grid span {
  margin-top: 0.25rem;
  font-size: clamp(0.62rem, 2.3vw, 0.74rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes countdownBreathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes countdownSheen {
  0%,
  45% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}

.empty-dashboard-note {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  padding: 1.15rem;
  border: 1px dashed rgba(118, 150, 255, 0.32);
  border-radius: 0.95rem;
  color: rgba(224, 232, 255, 0.88);
  background: rgba(93, 130, 255, 0.07);
  text-align: center;
  font-size: 0.98rem;
}

.empty-dashboard-note::before {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.65rem;
  border-radius: 1rem;
  background: rgba(111, 231, 255, 0.1);
  color: #6fe7ff;
  font-size: 1.65rem;
  content: "⚽";
}

.rank-number {
  font-size: 1.4rem;
}

.leader-row:nth-child(-n + 3) .rank-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
}

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

  .stat-card {
    min-height: 7.8rem;
    padding: 0.85rem;
  }

  .stat-card strong {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .panel {
    padding: 0.9rem;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    gap: 0.85rem;
  }

  .stat-card {
    min-height: 7.3rem;
  }

  .stat-card strong {
    font-size: 2.1rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown-grid div {
    padding: 0.58rem 0.2rem;
    border-radius: 0.62rem;
  }
}

#dashboard.view.active {
  display: flex;
  flex-direction: column;
}

#dashboard .dashboard-today-panel {
  display: none !important;
}

#dashboard .dashboard-feature-grid {
  display: contents;
}

#dashboard .dashboard-feature-grid .dashboard-mini-panel:first-child {
  order: -20;
  margin-bottom: clamp(1rem, 2.2vw, 1.35rem);
}

#dashboard .dashboard-feature-grid .dashboard-mini-panel:nth-child(2) {
  display: none !important;
}

#dashboard .dashboard-feature-grid .dashboard-mini-panel:last-child {
  order: 4;
  margin-bottom: clamp(1rem, 2.2vw, 1.35rem);
}

#dashboard .countdown-panel {
  order: -10;
}

#dashboard .stats-grid {
  order: 1;
}

#dashboard .content-grid {
  order: 5;
  grid-template-columns: minmax(0, 1fr);
}

#dashboard .content-grid > .panel:first-child {
  display: none !important;
}

#dashboard .dashboard-winner-panel,
#dashboard .dashboard-feature-grid .dashboard-mini-panel:first-child {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

#dashboard .dashboard-winner-panel:hover,
#dashboard .dashboard-feature-grid .dashboard-mini-panel:first-child:hover {
  transform: none;
  box-shadow: none;
}

#dashboard .dashboard-winner-panel .eyebrow,
#dashboard .dashboard-feature-grid .dashboard-mini-panel:first-child .eyebrow {
  justify-content: center;
  text-align: center;
}

#dashboard .winner-card {
  justify-content: center;
  flex-direction: row;
  gap: 0.9rem;
  text-align: left;
}

#dashboard .dashboard-icon {
  width: 4.8rem;
  height: 4.8rem;
  flex: 0 0 4.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

#dashboard .dashboard-icon.has-profile-avatar {
  border-radius: 999px;
}

#dashboard .dashboard-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#dashboard .dashboard-icon.has-profile-avatar img {
  object-fit: cover;
}

#dashboard .dashboard-icon span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

#dashboard .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.6vw, 0.95rem);
}

#dashboard .stat-card {
  min-height: 6.9rem;
  padding: 0.72rem 0.75rem;
}

#dashboard .stat-card strong {
  margin: 0.18rem 0;
  font-size: clamp(1.75rem, 4.8vw, 2.35rem);
}

#dashboard .stat-card span,
#dashboard .stat-card small {
  font-size: clamp(0.76rem, 2.15vw, 0.92rem);
  line-height: 1.18;
}

#dashboard .stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

#dashboard .stat-card small {
  display: none;
}

#dashboard .stat-card span {
  font-weight: 900;
}

#dashboard .stat-card::after {
  width: 5.25rem;
  height: 5.25rem;
  right: -1.6rem;
  bottom: -2.1rem;
}

@media (max-width: 520px) {
  #dashboard .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #dashboard .stat-card {
    min-height: 6.35rem;
    padding: 0.6rem 0.5rem;
    border-radius: 0.72rem;
  }

  #dashboard .stat-card strong {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
  }

  #dashboard .stat-card span,
  #dashboard .stat-card small {
    font-size: clamp(0.66rem, 2.9vw, 0.78rem);
  }
}

/* Dashboard redesign */
#dashboard.view.active {
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

#dashboard .dashboard-hero-card,
#dashboard .countdown-panel,
#dashboard .dashboard-today-panel,
#dashboard .dashboard-mini-panel,
#dashboard .dashboard-top-panel {
  border-color: rgba(83, 128, 255, 0.24);
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 92, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(10, 22, 40, 0.94), rgba(5, 13, 26, 0.96));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 26px rgba(45, 139, 255, 0.08) inset;
}

#dashboard .dashboard-hero-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  overflow: hidden;
}

.dashboard-hero-main,
.dashboard-hero-footer {
  display: grid;
  align-items: center;
  gap: 1rem;
}

.dashboard-hero-main {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dashboard-hero-avatar {
  display: grid;
  place-items: center;
  width: clamp(4.4rem, 18vw, 5.8rem);
  height: clamp(4.4rem, 18vw, 5.8rem);
  border: 2px solid rgba(42, 142, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #24d1ff, #765cff);
  font-size: 1.25rem;
  font-weight: 950;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(42, 142, 255, 0.28);
}

.dashboard-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-hero-copy p,
.dashboard-hero-copy h2 {
  margin: 0;
}

.dashboard-hero-copy p {
  color: rgba(214, 224, 238, 0.86);
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  font-weight: 750;
}

.dashboard-hero-copy h2 {
  margin-top: 0.2rem;
  color: #ffffff;
  font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  line-height: 1.05;
}

.dashboard-rank-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(255, 194, 71, 0.28);
  border-radius: 999px;
  color: #ffd976;
  background: rgba(255, 194, 71, 0.12);
  font-weight: 950;
}

.dashboard-hero-cup {
  display: grid;
  place-items: center;
  width: clamp(4rem, 16vw, 5.6rem);
  height: clamp(4rem, 16vw, 5.6rem);
  border-radius: 1.25rem;
  color: #6fe7ff;
  background: radial-gradient(circle, rgba(111, 231, 255, 0.26), rgba(124, 92, 255, 0.08) 56%, transparent 70%);
}

.dashboard-hero-cup svg {
  width: 72%;
  height: 72%;
  fill: currentColor;
  filter: drop-shadow(0 0 16px rgba(111, 231, 255, 0.45));
}

.dashboard-hero-footer {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(129, 166, 255, 0.14);
}

.dashboard-hero-footer article {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 0.5rem;
}

.dashboard-hero-symbol {
  color: #ffd24a;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  line-height: 1;
}

.dashboard-hero-symbol-hot {
  color: #ff794a;
}

.dashboard-hero-symbol-target {
  color: #55e6ff;
}

.dashboard-hero-footer strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  line-height: 1;
}

.dashboard-hero-footer small {
  grid-column: 2;
  color: rgba(214, 224, 238, 0.78);
  font-weight: 800;
}

.dashboard-hero-cta {
  min-width: clamp(9rem, 26vw, 13rem);
  min-height: 3.2rem;
  padding-inline: 1.15rem;
}

#dashboard .countdown-panel {
  position: relative;
  text-align: left;
}

#dashboard .countdown-panel h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

#dashboard .countdown-grid {
  margin: 0 auto 0.8rem;
  max-width: 30rem;
}

#dashboard .countdown-match {
  text-align: center;
}

#dashboard .countdown-grid div {
  animation: countdownBreathe 2.8s ease-in-out infinite;
}

.countdown-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  color: #45ee75;
  font-size: 0.82rem;
  font-weight: 950;
}

.countdown-status::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(69, 238, 117, 0.45);
  animation: livePulse 1.5s ease-in-out infinite;
}

.countdown-status.closed {
  color: #ff5f73;
}

#dashboard .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

#dashboard .stat-card {
  min-height: 7.6rem;
  padding: 0.9rem 0.65rem;
}

#dashboard .stat-card small {
  display: none !important;
}

#dashboard .dashboard-today-panel {
  display: block !important;
}

#dashboard .today-match-list {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

#dashboard .today-match-item {
  flex: 0 0 min(18rem, 78vw);
  display: grid;
  align-items: stretch;
  gap: 0.7rem;
  padding: 0.9rem;
  scroll-snap-align: start;
}

#dashboard .today-match-item div:first-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.today-match-time {
  color: #ffffff;
  font-weight: 950;
}

.today-match-action {
  min-height: 2.65rem;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

#dashboard .dashboard-mini-panel,
#dashboard .dashboard-top-panel {
  min-height: auto;
}

#dashboard .dashboard-top-panel {
  overflow: hidden;
}

#dashboard .dashboard-top-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.58rem;
}

#dashboard .dashboard-top-panel .panel-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.9rem, 2.4vw, 1.08rem);
  line-height: 1;
}

#dashboard .dashboard-top-panel .ghost-button {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #4da3ff;
  background: transparent;
  box-shadow: none;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#dashboard .dashboard-top-panel .ghost-button:hover,
#dashboard .dashboard-top-panel .ghost-button:focus-visible {
  color: #6fe7ff;
  background: transparent;
  text-decoration: underline;
  transform: none;
}

#dashboard .dashboard-top-panel .leaderboard {
  display: grid;
  gap: 0.35rem;
}

#dashboard .dashboard-top-panel .leader-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

#dashboard .dashboard-winner-panel {
  order: 30;
  border-color: rgba(83, 128, 255, 0.24);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 194, 71, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(10, 22, 40, 0.94), rgba(5, 13, 26, 0.96));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  text-align: left;
}

#dashboard .dashboard-winner-panel .eyebrow {
  justify-content: flex-start;
  text-align: left;
}

#dashboard .winner-card {
  justify-content: flex-start;
}

#dashboard .feature-chip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#dashboard .feature-chip-grid button {
  min-height: 3.45rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(83, 128, 255, 0.18);
  border-radius: 0.85rem;
  color: #ffffff;
  background: rgba(9, 19, 35, 0.62);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#dashboard .feature-chip-grid button:hover,
#dashboard .feature-chip-grid button:active {
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(111, 231, 255, 0.45);
  box-shadow: 0 0 20px rgba(42, 142, 255, 0.16);
}

#dashboard .notification-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#dashboard .dashboard-mini-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.58rem;
}

#dashboard .dashboard-mini-panel .panel-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.9rem, 2.4vw, 1.08rem);
  line-height: 1;
}

#dashboard .dashboard-mini-panel .dashboard-activity-link {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #4da3ff;
  background: transparent;
  box-shadow: none;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#dashboard .dashboard-mini-panel .dashboard-activity-link:hover,
#dashboard .dashboard-mini-panel .dashboard-activity-link:focus-visible {
  color: #6fe7ff;
  background: transparent;
  text-decoration: underline;
  transform: none;
}

#dashboard .notification-list {
  gap: 0.42rem;
}

#dashboard .notification-list .notification-item {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  align-items: center;
  gap: 0.52rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#dashboard .notification-list .notification-dot {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #24d1ff, #765cff);
}

#dashboard .notification-list .notification-dot svg {
  width: 0.86rem;
  height: 0.86rem;
  fill: #ffffff;
}

#dashboard .notification-list .notification-item.green .notification-dot {
  background: linear-gradient(135deg, rgba(53, 232, 103, 0.95), rgba(29, 142, 83, 0.95));
}

#dashboard .notification-list .notification-item.purple .notification-dot {
  background: linear-gradient(135deg, rgba(142, 91, 255, 0.98), rgba(76, 52, 178, 0.98));
}

#dashboard .notification-list .notification-item.blue .notification-dot {
  background: linear-gradient(135deg, rgba(42, 142, 255, 0.98), rgba(45, 88, 210, 0.98));
}

#dashboard .notification-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

#dashboard .notification-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard .notification-copy small {
  color: rgba(174, 190, 215, 0.82);
  font-size: clamp(0.55rem, 1.65vw, 0.66rem);
  font-weight: 760;
  line-height: 1;
}

.notifications-page {
  max-width: 46rem;
  margin-inline: auto;
}

.notifications-page-list {
  gap: 0.62rem;
}

.notifications-page-list .notification-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(125, 166, 255, 0.16);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(124, 92, 255, 0.12), transparent 34%),
    rgba(8, 18, 33, 0.74);
}

.notifications-page-list .notification-dot {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
}

.notifications-page-list .notification-dot svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: #ffffff;
}

.notifications-page-list .notification-copy strong {
  white-space: normal;
}

.notifications-page-list .notification-item.green .notification-dot {
  background: linear-gradient(135deg, rgba(53, 232, 103, 0.95), rgba(29, 142, 83, 0.95));
}

.notifications-page-list .notification-item.purple .notification-dot {
  background: linear-gradient(135deg, rgba(142, 91, 255, 0.98), rgba(76, 52, 178, 0.98));
}

.notifications-page-list .notification-item.blue .notification-dot {
  background: linear-gradient(135deg, rgba(42, 142, 255, 0.98), rgba(45, 88, 210, 0.98));
}

.dashboard-hidden-legacy {
  display: none !important;
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 0.45rem rgba(69, 238, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(69, 238, 117, 0);
  }
}

@media (max-width: 680px) {
  #dashboard.view.active {
    gap: 0.85rem;
  }

  #dashboard .dashboard-hero-card {
    padding: 0.95rem;
  }

  .dashboard-hero-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .dashboard-hero-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  #dashboard .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  #dashboard .stat-card {
    min-height: 5.8rem;
    padding: 0.55rem 0.35rem;
    border-radius: 0.75rem;
  }

  #dashboard .stat-card strong {
    font-size: clamp(1.25rem, 7vw, 1.55rem);
  }

  #dashboard .stat-card span,
  #dashboard .stat-card small {
    font-size: clamp(0.58rem, 2.7vw, 0.7rem);
  }

  .dashboard-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  #dashboard .dashboard-split-grid .panel {
    padding: 0.72rem;
    border-radius: 0.82rem;
  }

  #dashboard .dashboard-split-grid .panel-head {
    gap: 0.45rem;
    margin-bottom: 0.55rem;
  }

  #dashboard .dashboard-top-panel .panel-head {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.42rem;
  }

  #dashboard .dashboard-split-grid .panel-head h2 {
    font-size: 0.86rem;
  }

  #dashboard .dashboard-top-panel .panel-head h2 {
    font-size: 0.68rem;
  }

  #dashboard .dashboard-split-grid .ghost-button {
    min-height: 2rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.58rem;
  }

  #dashboard .dashboard-top-panel .ghost-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #4da3ff;
    font-size: 0.5rem;
    line-height: 1;
  }

  #dashboard .dashboard-mini-panel .panel-head {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.42rem;
  }

  #dashboard .dashboard-mini-panel .panel-head h2 {
    font-size: 0.68rem;
  }

  #dashboard .dashboard-mini-panel .dashboard-activity-link {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #4da3ff;
    font-size: 0.5rem;
    line-height: 1;
  }

  #dashboard .dashboard-split-grid .leader-row {
    display: grid;
    grid-template-columns: 1.2rem 1.45rem minmax(3.2rem, 1fr) auto;
    gap: 0.22rem;
    padding: 0.34rem;
    border-radius: 0.58rem;
    box-shadow: none;
    transform: none;
    align-items: center;
  }

  #dashboard .dashboard-top-panel .leader-row {
    gap: 0.24rem;
    padding: 0.24rem 0;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
  }

  #dashboard .dashboard-top-panel .leader-row + .leader-row {
    border-top: 1px solid rgba(125, 166, 255, 0.08);
  }

  #dashboard .dashboard-split-grid .leader-avatar {
    width: 1.45rem;
    height: 1.45rem;
  }

  #dashboard .dashboard-split-grid .leader-info {
    min-width: 0;
  }

  #dashboard .dashboard-split-grid .leader-name {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.66rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #dashboard .dashboard-split-grid .leader-meta {
    display: none;
  }

  #dashboard .dashboard-split-grid .leader-points,
  #dashboard .dashboard-split-grid .rank-number {
    font-size: 0.58rem;
  }

  #dashboard .dashboard-split-grid .rank-number {
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0;
  }

  #dashboard .dashboard-top-panel .rank-number {
    background: transparent;
    box-shadow: none;
  }

  #dashboard .dashboard-top-panel .leader-points {
    color: #ffd84a;
    font-weight: 950;
  }

  #dashboard .dashboard-split-grid .notification-list li {
    padding: 0;
    font-size: 0.62rem;
    line-height: 1.22;
  }

  #dashboard .dashboard-split-grid .notification-list .notification-item {
    grid-template-columns: 1.32rem minmax(0, 1fr);
    gap: 0.38rem;
  }

  #dashboard .dashboard-split-grid .notification-list .notification-dot {
    width: 1.32rem;
    height: 1.32rem;
  }

  #dashboard .dashboard-split-grid .notification-list .notification-dot svg {
    width: 0.72rem;
    height: 0.72rem;
  }

  #dashboard .dashboard-split-grid .notification-copy strong {
    font-size: 0.58rem;
  }

  #dashboard .dashboard-split-grid .notification-copy small {
    font-size: 0.48rem;
  }

  #dashboard .feature-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
  }

  #dashboard .feature-chip-grid button {
    min-height: 2.75rem;
    padding: 0.38rem 0.3rem;
    border-radius: 0.62rem;
    font-size: clamp(0.58rem, 2.5vw, 0.72rem);
    line-height: 1.05;
    text-align: center;
  }
}

/* Compact mobile dashboard: hero starts immediately under the page header. */
body.app-open #dashboard.view.active {
  padding-top: 0 !important;
  gap: 0.72rem;
}

body.app-open #dashboard.view.active > .panel,
body.app-open #dashboard.view.active > .dashboard-split-grid,
body.app-open #dashboard.view.active > .stats-grid {
  margin-top: 0 !important;
}

#dashboard .dashboard-hero-card {
  order: -40;
}

#dashboard .countdown-panel {
  order: -30;
}

#dashboard .stats-grid {
  order: -20;
}

#dashboard .dashboard-today-panel {
  order: -10;
}

#dashboard .dashboard-split-grid {
  order: 0;
}

#dashboard > .dashboard-mini-panel:not(.dashboard-winner-panel) {
  order: 10;
}

#dashboard .dashboard-winner-panel {
  order: 20;
}

@media (max-width: 520px) {
  body.app-open #dashboard.view.active {
    padding-inline: 0.72rem !important;
  }

  #dashboard .dashboard-hero-card {
    gap: 0.58rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.82rem;
  }

  .dashboard-hero-main {
    gap: 0.55rem;
  }

  .dashboard-hero-avatar {
    width: 3.15rem;
    height: 3.15rem;
    border-width: 1px;
    font-size: 0.78rem;
  }

  .dashboard-hero-copy p {
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .dashboard-hero-copy h2 {
    max-width: 8.5rem;
    margin-top: 0.08rem;
    overflow: hidden;
    font-size: clamp(1rem, 5vw, 1.22rem);
    line-height: 1.02;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-rank-pill {
    margin-top: 0.24rem;
    padding: 0.2rem 0.42rem;
    font-size: 0.62rem;
  }

  .dashboard-hero-cup {
    width: 3.55rem;
    height: 3.55rem;
    border-radius: 0.8rem;
  }

  .dashboard-hero-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(5.7rem, 0.9fr);
    gap: 0.42rem;
    padding-top: 0.52rem;
  }

  .dashboard-hero-footer article {
    column-gap: 0.24rem;
  }

  .dashboard-hero-symbol {
    font-size: 0.92rem;
  }

  .dashboard-hero-footer strong {
    font-size: 0.92rem;
  }

  .dashboard-hero-footer small {
    font-size: 0.52rem;
    line-height: 1.05;
  }

  .dashboard-hero-cta {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 2.22rem;
    padding: 0.3rem 0.42rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
  }

  #dashboard .countdown-panel {
    padding: 0.72rem;
    border-radius: 0.82rem;
  }

  #dashboard .countdown-panel h2 {
    max-width: 62%;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
  }

  #dashboard .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    margin-bottom: 0.45rem;
  }

  #dashboard .countdown-grid div {
    padding: 0.45rem 0.18rem;
    border-radius: 0.5rem;
  }

  #dashboard .countdown-grid strong {
    font-size: 1.08rem;
  }

  #dashboard .countdown-grid span {
    margin-top: 0.18rem;
    font-size: 0.52rem;
  }

  #dashboard .countdown-match {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #dashboard .countdown-status {
    top: 0.76rem;
    right: 0.72rem;
    max-width: 34%;
    font-size: 0.58rem;
    line-height: 1.1;
    text-align: right;
  }

  #dashboard .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    margin-bottom: 0;
  }

  #dashboard .stat-card {
    min-height: 4.75rem;
    padding: 0.46rem 0.28rem;
    border-radius: 0.62rem;
  }

  #dashboard .stat-card strong {
    margin: 0.08rem 0;
    font-size: clamp(1.05rem, 6.2vw, 1.42rem);
  }

  #dashboard .stat-card span {
    font-size: 0.55rem;
  }

  #dashboard .stat-card small {
    font-size: 0.5rem;
  }
}

#tips .tip-time-head {
  align-items: center;
  color: rgba(192, 204, 225, 0.82);
  font-size: clamp(0.78rem, 2.7vw, 0.92rem);
  font-weight: 850;
}

#tips .tip-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(192, 204, 225, 0.82);
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

#tips .tip-score input {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#tips .tip-score input:focus {
  outline: none;
  transform: scale(1.07);
  border-color: #58a6ff;
  background: rgba(12, 24, 43, 0.98);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18), 0 0 24px rgba(88, 166, 255, 0.18);
}

#tips .tip-team span {
  font-size: clamp(0.88rem, 2.75vw, 1.02rem);
  line-height: 1.12;
}

.player-stats-page {
  display: grid;
  gap: 1rem;
}

.player-stats-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(25, 43, 77, 0.72), rgba(10, 18, 33, 0.88));
}

.player-stats-avatar {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 4.4rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #16c8ff, #6d5cff);
  box-shadow: 0 16px 34px rgba(45, 116, 255, 0.22);
  overflow: hidden;
}

.player-stats-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-stats-hero span {
  display: block;
  color: rgba(181, 193, 215, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.player-stats-hero strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.player-stats-grid article {
  min-height: 6.2rem;
  padding: 0.92rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 16px;
  background: rgba(12, 22, 39, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.player-stats-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 231, 255, 0.34);
  box-shadow: 0 16px 34px rgba(13, 27, 52, 0.24);
}

.player-stats-grid span {
  display: block;
  color: rgba(184, 196, 218, 0.76);
  font-size: clamp(0.68rem, 2.7vw, 0.82rem);
  font-weight: 850;
  line-height: 1.25;
}

.player-stats-grid strong {
  display: block;
  margin-top: 0.5rem;
  color: #70e7ff;
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: 1;
}

.achievements-page {
  display: grid;
  gap: 1rem;
}

.achievements-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(107, 92, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(19, 39, 75, 0.9), rgba(8, 16, 31, 0.94));
}

.achievements-hero h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.75rem, 7vw, 2.7rem);
  letter-spacing: 0;
}

.achievements-hero p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: rgba(184, 196, 218, 0.78);
  font-weight: 850;
}

.achievement-score {
  min-width: 7.4rem;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  background: rgba(7, 15, 29, 0.72);
  border: 1px solid rgba(124, 98, 255, 0.32);
  text-align: center;
}

.achievement-score span,
.achievement-summary-grid span,
.achievement-meta span {
  display: block;
  color: rgba(184, 196, 218, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-score strong {
  display: block;
  margin-top: 0.25rem;
  color: #f8d56b;
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  line-height: 1;
}

.achievement-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.achievement-summary-grid article {
  padding: 0.85rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 16px;
  background: rgba(11, 22, 40, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.achievement-summary-grid article:hover,
.achievement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 231, 255, 0.36);
  box-shadow: 0 18px 38px rgba(26, 86, 204, 0.14);
}

.achievement-summary-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: #fff;
  font-size: 1.35rem;
}

.achievement-level-progress {
  height: 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 13, 25, 0.9);
  border: 1px solid rgba(88, 166, 255, 0.14);
}

.achievement-level-progress div,
.achievement-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16c8ff, #6d5cff);
  box-shadow: 0 0 22px rgba(45, 116, 255, 0.35);
  transition: width 420ms ease;
}

.achievement-filters {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 16px;
  background: rgba(7, 13, 25, 0.72);
  border: 1px solid rgba(88, 166, 255, 0.14);
}

.achievement-filters button {
  flex: 1;
  min-height: 2.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(184, 196, 218, 0.76);
  font-weight: 950;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.achievement-filters button:hover {
  transform: scale(1.02);
  color: #fff;
}

.achievement-filters button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(22, 200, 255, 0.92), rgba(109, 92, 255, 0.92));
  box-shadow: 0 14px 32px rgba(45, 116, 255, 0.25);
}

.achievement-list {
  display: grid;
  gap: 1rem;
}

.achievement-category {
  display: grid;
  gap: 0.7rem;
  animation: fadeInUp 220ms ease both;
}

.achievement-category h3 {
  margin: 0;
  color: #70e7ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.achievement-card {
  display: flex;
  gap: 0.82rem;
  min-height: 8.2rem;
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 18px;
  background: rgba(11, 22, 40, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.achievement-card:active {
  transform: scale(0.99);
}

.achievement-card.is-unlocked {
  border-color: rgba(248, 213, 107, 0.42);
  background:
    radial-gradient(circle at top left, rgba(248, 213, 107, 0.16), transparent 42%),
    rgba(12, 23, 43, 0.82);
}

.achievement-card.is-locked {
  opacity: 0.62;
  filter: saturate(0.72);
}

.achievement-icon {
  display: grid;
  place-items: center;
  width: 3.05rem;
  height: 3.05rem;
  flex: 0 0 3.05rem;
  border-radius: 15px;
  background: rgba(9, 18, 34, 0.92);
  border: 1px solid rgba(88, 166, 255, 0.22);
}

.achievement-card.is-unlocked .achievement-icon {
  border-color: rgba(248, 213, 107, 0.48);
  box-shadow: 0 0 24px rgba(248, 213, 107, 0.13);
}

.achievement-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: #70e7ff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.achievement-card.is-unlocked .achievement-icon svg {
  stroke: #f8d56b;
}

.achievement-card-body {
  min-width: 0;
  flex: 1;
}

.achievement-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.achievement-card-head h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.18;
}

.achievement-card-head span {
  color: #f8d56b;
  font-size: 0.9rem;
  font-weight: 950;
}

.achievement-card-body p {
  margin: 0.42rem 0 0;
  color: rgba(184, 196, 218, 0.78);
  font-size: 0.84rem;
  line-height: 1.35;
}

.achievement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.achievement-meta strong {
  color: #70e7ff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.achievement-card.is-unlocked .achievement-meta strong {
  color: #f8d56b;
}

.achievement-progress {
  height: 0.42rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 13, 25, 0.95);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .player-stats-page {
    gap: 0.8rem;
  }

  .player-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .player-stats-grid article {
    min-height: 5.7rem;
    padding: 0.82rem;
  }

  .achievements-page {
    gap: 0.82rem;
  }

  .achievements-hero {
    grid-template-columns: 1fr;
    padding: 0.92rem;
  }

  .achievement-score {
    width: 100%;
    min-width: 0;
  }

  .achievement-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .achievement-summary-grid article {
    min-height: 4.35rem;
    padding: 0.68rem;
  }

  .achievement-summary-grid span {
    font-size: 0.58rem;
  }

  .achievement-summary-grid strong {
    font-size: 1.1rem;
  }

  .achievement-card-grid {
    grid-template-columns: 1fr;
    gap: 0.62rem;
  }

  .achievement-card {
    min-height: 7.6rem;
    padding: 0.78rem;
  }

  .achievement-filters button {
    min-height: 2.55rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 15.5rem;
  }

  .feature-card h3,
  .feature-card p {
    max-width: 100%;
  }

  .feature-copy {
    right: 5.2rem;
  }
}

.features-grid .feature-card h3,
.features-grid .feature-card p {
  display: block;
  opacity: 1;
  visibility: visible;
}

.features-grid .feature-copy {
  position: absolute;
  z-index: 5;
  opacity: 1;
  visibility: visible;
}

.features-grid .feature-icon {
  position: absolute;
  z-index: 5;
}

.features-grid .feature-arrow {
  position: absolute;
  right: clamp(1rem, 2vw, 1.45rem);
  bottom: clamp(1rem, 2vw, 1.45rem);
  z-index: 5;
}

.features-grid .feature-card h3 {
  color: #ffffff;
}

.features-grid .feature-card p {
  color: #c3cee4;
}

.landing-hero .hero-copy,
.landing-hero .hero-copy h1,
.landing-hero .hero-copy p,
.landing-hero .hero-copy .eyebrow,
.landing-hero .hero-actions {
  position: relative;
  z-index: 5;
}

/* Landing safety layer: keep hero and feature text above image artwork. */
.landing-page .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.landing-page .hero-copy {
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.landing-page .hero-copy h1,
.landing-page .hero-copy p,
.landing-page .hero-copy .eyebrow,
.landing-page .hero-actions {
  position: relative !important;
  z-index: 11 !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.landing-page .hero-copy h1,
.landing-page .hero-copy p,
.landing-page .hero-copy .eyebrow {
  display: block !important;
}

.landing-page .hero-visual {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  opacity: 1;
}

.features-grid .feature-card {
  position: relative !important;
  min-height: clamp(17rem, 28vw, 24rem);
  padding: clamp(1.15rem, 2.2vw, 1.8rem) !important;
}

.features-grid .feature-card::before {
  z-index: 0 !important;
}

.features-grid .feature-card::after {
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.08) 0%, rgba(4, 9, 20, 0.5) 46%, rgba(4, 9, 20, 0.98) 100%),
    linear-gradient(90deg, rgba(4, 9, 20, 0.72) 0%, rgba(4, 9, 20, 0.18) 58%, rgba(4, 9, 20, 0.5) 100%) !important;
}

.features-grid .feature-copy {
  position: absolute !important;
  left: clamp(1.2rem, 2.3vw, 1.8rem) !important;
  right: clamp(5.2rem, 8vw, 6.8rem) !important;
  bottom: clamp(1.18rem, 2.3vw, 1.8rem) !important;
  z-index: 20 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.features-grid .feature-card h3,
.features-grid .feature-card p {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #ffffff !important;
}

.features-grid .feature-card p {
  color: #c7d2ea !important;
}

.features-grid .feature-icon {
  position: absolute !important;
  top: clamp(1rem, 2vw, 1.5rem) !important;
  left: clamp(1rem, 2vw, 1.5rem) !important;
  bottom: auto !important;
  z-index: 21 !important;
}

.features-grid .feature-arrow {
  position: absolute !important;
  right: clamp(1rem, 2vw, 1.45rem) !important;
  bottom: clamp(1rem, 2vw, 1.45rem) !important;
  left: auto !important;
  top: auto !important;
  z-index: 21 !important;
}

@media (max-width: 680px) {
  .landing-page .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .landing-page .hero-copy {
    order: 1 !important;
    padding: 1rem 0.8rem !important;
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.74), rgba(4, 9, 20, 0.28)) !important;
  }

  .landing-page .hero-visual {
    order: 2 !important;
    min-height: 18rem;
  }

  .features-grid .feature-card {
    min-height: 18rem;
  }

  .features-grid .feature-copy {
    right: 4.9rem !important;
  }
}

/* Premium statistics screen */
#statistics .panel {
  background:
    radial-gradient(circle at 12% 2%, rgba(33, 146, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(124, 92, 255, 0.14), transparent 30%),
    rgba(5, 12, 24, 0.84);
}

#statistics .simple-page-head {
  justify-content: center;
  text-align: center;
}

#statistics .simple-page-head h2 {
  margin: 0 auto;
  font-size: clamp(1.75rem, 6vw, 2.55rem);
}

.stats-state {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  min-height: 9rem;
  padding: 1.2rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 22px;
  color: rgba(211, 221, 241, 0.84);
  background: rgba(8, 18, 34, 0.72);
}

.stats-state[hidden] {
  display: none;
}

.stats-state svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: #70e7ff;
  stroke-width: 2;
}

.stats-spinner {
  width: 2.2rem;
  height: 2.2rem;
  border: 3px solid rgba(112, 231, 255, 0.18);
  border-top-color: #70e7ff;
  border-radius: 999px;
  animation: statsSpin 900ms linear infinite;
}

@keyframes statsSpin {
  to { transform: rotate(360deg); }
}

#statistics .player-stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.4rem, 0.32fr);
  gap: 0;
  padding: clamp(1rem, 3.2vw, 1.45rem);
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(7, 17, 34, 0.96), rgba(8, 24, 49, 0.84)),
    radial-gradient(circle at 20% 0%, rgba(23, 194, 255, 0.2), transparent 32%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: statsFadeUp 280ms ease both;
}

.player-stats-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.9rem, 3.4vw, 1.35rem);
  min-width: 0;
}

#statistics .player-stats-avatar {
  width: clamp(4.9rem, 18vw, 7.2rem);
  height: clamp(4.9rem, 18vw, 7.2rem);
  flex-basis: auto;
  border: 3px solid rgba(45, 116, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(117, 92, 255, 0.16), 0 20px 42px rgba(25, 95, 255, 0.22);
}

.player-stats-identity {
  min-width: 0;
}

.player-stats-identity strong {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.75rem, 6.4vw, 2.35rem);
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#statistics .player-stats-identity > span:not(.player-level-badge) {
  margin-top: 0.45rem;
  color: rgba(205, 216, 238, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: none;
}

.player-level-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  text-transform: none !important;
  background: linear-gradient(135deg, rgba(83, 67, 209, 0.96), rgba(120, 69, 255, 0.74));
}

.xp-row {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.xp-row small {
  justify-self: end;
  color: rgba(209, 220, 242, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.xp-progress {
  height: 0.56rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(61, 82, 125, 0.36);
}

.xp-progress div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19c9ff, #755cff);
  transition: width 500ms ease;
}

.player-rank-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  min-height: 9rem;
  border-left: 1px solid rgba(104, 132, 180, 0.2);
  text-align: center;
}

.player-rank-card svg {
  width: 3.4rem;
  height: 3.4rem;
  fill: none;
  stroke: #ffd05d;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 18px rgba(255, 193, 64, 0.24));
}

.player-rank-card strong {
  margin: 0.35rem 0 0;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 0.95;
}

.player-rank-card span {
  color: rgba(209, 220, 242, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-quick-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.82rem;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(104, 132, 180, 0.18);
}

.player-quick-stats article {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  align-content: center;
  column-gap: 0.48rem;
  row-gap: 0;
  min-height: 3.2rem;
}

.player-quick-stats article + article {
  border-left: 1px solid rgba(104, 132, 180, 0.18);
}

.player-quick-stats .quick-stat-icon {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: auto;
  height: auto;
  color: inherit !important;
  font-size: clamp(1.4rem, 4vw, 1.85rem) !important;
  line-height: 1 !important;
  text-transform: none !important;
  filter: drop-shadow(0 0 12px rgba(83, 212, 255, 0.2));
}

.player-quick-stats article > span:not(.quick-stat-icon) {
  justify-self: start;
  color: #fff !important;
  font-size: clamp(1.55rem, 6vw, 2.2rem) !important;
  font-weight: 950 !important;
  line-height: 1;
  text-transform: none !important;
}

.player-quick-stats small {
  justify-self: start;
  color: rgba(205, 216, 238, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.player-stats-grid-legacy {
  display: none !important;
}

#statistics .player-stats-grid-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.86rem;
}

#statistics .player-stats-grid-modern article,
.stats-chart-card,
.stats-form-card,
.stats-league-compare,
.stats-achievement-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(25, 201, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(9, 20, 39, 0.9), rgba(7, 15, 29, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: statsFadeUp 320ms ease both;
}

#statistics .player-stats-grid-modern article {
  min-height: 7.1rem;
  padding: 1rem;
  text-align: center;
}

#statistics .player-stats-grid-modern article:hover,
.stats-chart-card:hover,
.stats-form-card:hover,
.stats-league-compare:hover,
.stats-achievement-summary:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(117, 92, 255, 0.5);
  box-shadow: 0 24px 60px rgba(44, 96, 255, 0.18);
}

#statistics .player-stats-grid-modern svg {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.65rem;
  fill: none;
  stroke: #70e7ff;
  stroke-width: 1.9;
}

#statistics .player-stats-grid-modern span {
  color: rgba(211, 221, 241, 0.78);
  font-size: 0.82rem;
  text-transform: none;
}

#statistics .player-stats-grid-modern strong {
  color: #fff;
  font-size: clamp(1.8rem, 6vw, 2.55rem);
}

.stats-chart-grid,
.stats-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats-chart-card,
.stats-form-card,
.stats-league-compare,
.stats-achievement-summary {
  padding: clamp(1rem, 3vw, 1.25rem);
}

.stats-chart-card {
  min-height: 18rem;
}

.stats-chart-card canvas {
  width: 100% !important;
  height: 14rem !important;
}

.stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stats-card-head h3 {
  margin: 0;
  color: #bceeff;
  font-size: clamp(1rem, 3.5vw, 1.22rem);
}

.stats-card-head span,
.stats-card-head strong {
  color: rgba(205, 216, 238, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
}

.stats-empty-chart,
.stats-empty-inline {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1rem;
  border: 1px dashed rgba(112, 231, 255, 0.22);
  border-radius: 16px;
  color: rgba(205, 216, 238, 0.7);
  text-align: center;
}

.stats-form-list {
  display: grid;
  grid-template-columns: repeat(10, minmax(3.2rem, 1fr));
  gap: 0.7rem;
}

.stats-form-item {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: rgba(205, 216, 238, 0.74);
}

.stats-form-item span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.stats-form-item svg {
  width: 1.28rem;
  height: 1.28rem;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.stats-form-item small {
  font-size: 0.68rem;
  font-weight: 850;
  text-align: center;
}

.stats-form-item.is-good span {
  background: linear-gradient(135deg, #12bf6a, #049347);
}

.stats-form-item.is-average span {
  background: linear-gradient(135deg, #ffcf3f, #de9314);
}

.stats-form-item.is-bad span {
  background: linear-gradient(135deg, #ff5b6f, #be1e34);
}

.stats-form-item.is-neutral span {
  background: linear-gradient(135deg, rgba(143, 158, 190, 0.46), rgba(82, 96, 126, 0.62));
}

.compare-rings {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.compare-ring {
  --value: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  width: min(8.6rem, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, #07111f 58%, transparent 60%),
    conic-gradient(#19c9ff var(--value), rgba(61, 82, 125, 0.32) 0);
}

.compare-ring-purple {
  background:
    radial-gradient(circle, #07111f 58%, transparent 60%),
    conic-gradient(#755cff var(--value), rgba(61, 82, 125, 0.32) 0);
}

.compare-ring strong {
  color: #fff;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.compare-ring span,
.compare-vs {
  color: rgba(205, 216, 238, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

#statsLeagueDifference {
  margin: 1rem 0 0;
  color: #64f0ae;
  font-weight: 900;
  text-align: center;
}

.stats-achievement-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.stats-achievement-badges article {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-height: 7.2rem;
  padding: 0.72rem 0.5rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 15, 29, 0.56);
  text-align: center;
}

.stats-achievement-badges article.is-unlocked {
  border-color: rgba(255, 208, 93, 0.44);
  box-shadow: inset 0 0 28px rgba(255, 208, 93, 0.08);
}

.stats-achievement-badges svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: #70e7ff;
  stroke-width: 1.9;
}

.stats-achievement-badges article.is-unlocked svg {
  stroke: #ffd05d;
}

.stats-achievement-badges article.is-locked {
  opacity: 0.56;
}

.stats-achievement-badges strong {
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.15;
}

.stats-achievement-badges span {
  color: rgba(205, 216, 238, 0.66);
  font-size: 0.68rem;
  font-weight: 850;
}

.stats-achievement-summary .ghost-button {
  width: 100%;
  margin-top: 1rem;
  color: #70e7ff;
}

@keyframes statsFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  #statistics .player-stats-hero,
  .stats-chart-grid,
  .stats-bottom-grid {
    grid-template-columns: 1fr;
  }

  .player-rank-card {
    min-height: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(104, 132, 180, 0.18);
    border-left: 0;
  }

  #statistics .player-stats-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #statistics .panel {
    padding-inline: 0.72rem;
  }

  #statistics .player-stats-hero {
    border-radius: 20px;
  }

  .player-stats-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .player-stats-identity strong {
    white-space: normal;
  }

  .xp-row small {
    justify-self: center;
  }

  .player-quick-stats article > span:not(.quick-stat-icon) {
    font-size: clamp(1.25rem, 7vw, 1.7rem) !important;
  }

  .player-quick-stats small {
    font-size: 0.62rem;
  }

  #statistics .player-stats-grid-modern {
    gap: 0.65rem;
  }

  #statistics .player-stats-grid-modern article {
    min-height: 6.4rem;
    padding: 0.82rem 0.62rem;
  }

  .stats-chart-card canvas {
    height: 12rem !important;
  }

  .stats-form-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stats-achievement-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  #statistics .player-stats-grid-modern,
  .player-quick-stats {
    grid-template-columns: 1fr;
  }

  .player-quick-stats article + article {
    border-left: 0;
    border-top: 1px solid rgba(104, 132, 180, 0.18);
  }

  .compare-rings {
    grid-template-columns: 1fr;
  }
}

/* Extra compact phone statistics view */
@media (max-width: 640px) {
  #statistics {
    padding-inline: 0 !important;
  }

  #statistics .panel.player-stats-page {
    width: min(100%, 430px);
    margin-inline: auto;
    gap: clamp(0.7rem, 3.2vw, 0.9rem) !important;
    padding: 1rem !important;
    border-radius: 0 !important;
  }

  #statistics .simple-page-head {
    min-height: 2.15rem;
    margin: 0 0 0.35rem !important;
  }

  #statistics .simple-page-head h2 {
    font-size: clamp(1.55rem, 7vw, 1.75rem) !important;
    line-height: 1 !important;
  }

  #statistics .player-stats-hero {
    grid-template-columns: minmax(0, 1fr) 5.8rem !important;
    align-items: stretch;
    gap: 0.55rem !important;
    max-height: 13.7rem !important;
    min-height: 0 !important;
    padding: 0.72rem !important;
    border-radius: 16px !important;
  }

  #statistics .player-stats-main {
    grid-template-columns: 4.25rem minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0.64rem !important;
    min-width: 0;
    text-align: left !important;
  }

  #statistics .player-stats-avatar {
    width: 4.25rem !important;
    height: 4.25rem !important;
    border-width: 2px !important;
  }

  #statistics .player-stats-avatar span {
    font-size: 1.1rem !important;
  }

  #statistics .player-stats-identity strong {
    font-size: clamp(1.25rem, 6.4vw, 1.55rem) !important;
    line-height: 1.03 !important;
    white-space: nowrap !important;
  }

  #statistics .player-level-badge {
    margin-top: 0.38rem !important;
    padding: 0.22rem 0.48rem !important;
    font-size: clamp(0.58rem, 2.6vw, 0.66rem) !important;
    line-height: 1.1 !important;
  }

  #statistics .player-stats-identity > span:not(.player-level-badge) {
    display: inline-block !important;
    max-width: 46%;
    margin: 0.4rem 0 0 0.28rem !important;
    overflow: hidden;
    color: rgba(205, 216, 238, 0.68) !important;
    font-size: clamp(0.58rem, 2.7vw, 0.68rem) !important;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  #statistics .xp-row {
    gap: 0.25rem !important;
    margin-top: 0.44rem !important;
  }

  #statistics .xp-row small {
    justify-self: start !important;
    font-size: clamp(0.58rem, 2.6vw, 0.66rem) !important;
  }

  #statistics .xp-progress {
    width: 78% !important;
    height: 0.34rem !important;
  }

  #statistics .player-rank-card {
    display: grid !important;
    min-height: 0 !important;
    padding: 0.2rem 0 0.2rem 0.55rem !important;
    border-top: 0 !important;
    border-left: 1px solid rgba(104, 132, 180, 0.2) !important;
  }

  #statistics .player-rank-card svg {
    width: 2rem !important;
    height: 2rem !important;
  }

  #statistics .player-rank-card strong {
    margin-top: 0.18rem !important;
    font-size: clamp(1.55rem, 7vw, 1.85rem) !important;
  }

  #statistics .player-rank-card span {
    font-size: clamp(0.52rem, 2.4vw, 0.62rem) !important;
    line-height: 1.1 !important;
  }

  #statistics .player-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 0.56rem !important;
    padding-top: 0.56rem !important;
  }

  #statistics .player-quick-stats article {
    grid-template-columns: auto auto !important;
    min-height: 2.35rem !important;
    padding-inline: 0.1rem;
  }

  #statistics .player-quick-stats .quick-stat-icon {
    font-size: clamp(1.08rem, 4.4vw, 1.28rem) !important;
  }

  #statistics .player-quick-stats article > span:not(.quick-stat-icon) {
    font-size: clamp(0.96rem, 4.9vw, 1.25rem) !important;
  }

  #statistics .player-quick-stats small {
    font-size: clamp(0.46rem, 2.15vw, 0.56rem) !important;
    line-height: 1.05 !important;
  }

  #statistics .player-stats-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.56rem !important;
  }

  #statistics .player-stats-grid-modern article {
    height: 6.2rem !important;
    min-height: 6.2rem !important;
    padding: 0.68rem !important;
    border-radius: 15px !important;
  }

  #statistics .player-stats-grid-modern svg {
    width: 1.45rem !important;
    height: 1.45rem !important;
    margin-bottom: 0.36rem !important;
  }

  #statistics .player-stats-grid-modern span {
    font-size: clamp(0.68rem, 3.15vw, 0.78rem) !important;
    line-height: 1.08 !important;
  }

  #statistics .player-stats-grid-modern strong {
    margin-top: 0.3rem !important;
    font-size: clamp(1.45rem, 7vw, 1.75rem) !important;
  }

  #statistics .stats-chart-grid,
  #statistics .stats-bottom-grid {
    gap: 0.7rem !important;
  }

  #statistics .stats-chart-card,
  #statistics .stats-form-card,
  #statistics .stats-league-compare,
  #statistics .stats-achievement-summary {
    padding: 0.72rem !important;
    border-radius: 15px !important;
  }

  #statistics .stats-chart-card {
    min-height: 11.2rem !important;
  }

  #statistics .stats-chart-card canvas {
    height: 8.9rem !important;
  }

  #statistics .stats-card-head {
    margin-bottom: 0.52rem !important;
  }

  #statistics .stats-card-head h3 {
    font-size: clamp(0.86rem, 3.8vw, 0.96rem) !important;
  }

  #statistics .stats-card-head span,
  #statistics .stats-card-head strong {
    font-size: clamp(0.62rem, 2.7vw, 0.7rem) !important;
  }

  #statistics .stats-empty-chart,
  #statistics .stats-empty-inline {
    min-height: 4.8rem !important;
    padding: 0.62rem !important;
    font-size: clamp(0.72rem, 3vw, 0.8rem) !important;
  }

  #statistics .stats-form-card {
    min-height: 8.4rem !important;
  }

  #statistics .stats-form-list {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding-bottom: 0.16rem;
  }

  #statistics .stats-form-item {
    min-width: 2.75rem !important;
    gap: 0.32rem !important;
  }

  #statistics .stats-form-item span {
    width: 2rem !important;
    height: 2rem !important;
  }

  #statistics .stats-form-item svg {
    width: 0.96rem !important;
    height: 0.96rem !important;
  }

  #statistics .stats-form-item small {
    font-size: 0.56rem !important;
  }

  #statistics .compare-rings {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 0.4rem !important;
  }

  #statistics .compare-ring {
    width: min(5.8rem, 100%) !important;
  }

  #statistics .compare-ring strong {
    font-size: clamp(1rem, 4.8vw, 1.2rem) !important;
  }

  #statistics .compare-ring span,
  #statistics .compare-vs {
    font-size: 0.58rem !important;
  }

  #statistics #statsLeagueDifference {
    margin-top: 0.56rem !important;
    font-size: 0.72rem !important;
  }

  #statistics .stats-achievement-badges {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    padding-bottom: 0.15rem;
  }

  #statistics .stats-achievement-badges article {
    flex: 0 0 4rem !important;
    min-height: 4.85rem !important;
    padding: 0.46rem 0.28rem !important;
    border-radius: 12px !important;
  }

  #statistics .stats-achievement-badges svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
  }

  #statistics .stats-achievement-badges strong {
    font-size: 0.56rem !important;
  }

  #statistics .stats-achievement-badges span {
    font-size: 0.52rem !important;
  }

  #statistics .stats-achievement-summary .ghost-button {
    min-height: 44px !important;
    margin-top: 0.55rem !important;
    padding: 0.54rem 0.7rem !important;
    font-size: 0.78rem !important;
  }
}

/* Four compact statistic cards in one mobile row */
@media (max-width: 640px) {
  #statistics .player-stats-grid-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }

  #statistics .player-stats-grid-modern article {
    display: flex !important;
    min-width: 0;
    height: 5.85rem !important;
    min-height: 5.85rem !important;
    padding: 0.46rem 0.22rem !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
  }

  #statistics .player-stats-grid-modern svg {
    width: 1.28rem !important;
    height: 1.28rem !important;
    margin: 0 0 0.24rem !important;
  }

  #statistics .player-stats-grid-modern span {
    width: 100%;
    min-height: 1.35rem;
    color: rgba(211, 221, 241, 0.78);
    font-size: clamp(0.48rem, 2.25vw, 0.58rem) !important;
    line-height: 1.08 !important;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #statistics .player-stats-grid-modern strong {
    margin-top: 0.2rem !important;
    font-size: clamp(1.18rem, 5.4vw, 1.55rem) !important;
    line-height: 1 !important;
  }
}

/* Compact mobile statistics layout */
@media (min-width: 360px) and (max-width: 430px) {
  #statistics .panel.player-stats-page {
    gap: clamp(0.75rem, 3vw, 1rem);
    padding: 1rem;
  }

  #statistics .simple-page-head {
    margin-bottom: 0;
  }

  #statistics .simple-page-head h2 {
    font-size: 1.75rem;
    margin-bottom: 0;
  }

  #statistics .player-stats-hero {
    max-height: 17.5rem;
    gap: 0.7rem;
    padding: 0.92rem;
    border-radius: 18px;
  }

  #statistics .player-stats-main {
    grid-template-columns: 5rem minmax(0, 1fr);
    justify-items: stretch;
    gap: 0.82rem;
    text-align: left;
  }

  #statistics .player-stats-avatar {
    width: 5rem;
    height: 5rem;
    border-width: 2px;
  }

  #statistics .player-stats-identity strong {
    font-size: clamp(1.45rem, 6.7vw, 1.625rem);
    white-space: nowrap;
  }

  #statistics .player-stats-identity > span:not(.player-level-badge) {
    display: inline-block;
    margin: 0.5rem 0 0 0.35rem;
    max-width: 48%;
    overflow: hidden;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  #statistics .player-level-badge {
    display: inline-flex !important;
    margin-top: 0.48rem;
    padding: 0.28rem 0.56rem;
    font-size: 0.68rem !important;
    vertical-align: middle;
  }

  #statistics .xp-row {
    margin-top: 0.55rem;
  }

  #statistics .xp-row small {
    justify-self: start;
    font-size: 0.68rem;
  }

  #statistics .xp-progress {
    width: 78%;
    height: 0.42rem;
  }

  #statistics .player-rank-card {
    min-height: 4.55rem;
    padding-top: 0.62rem;
    display: none;
  }

  #statistics .player-rank-card svg {
    width: 2rem;
    height: 2rem;
  }

  #statistics .player-rank-card strong {
    font-size: 1.75rem;
  }

  #statistics .player-rank-card span {
    font-size: 0.64rem;
  }

  #statistics .player-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.72rem;
    padding-top: 0.72rem;
  }

  #statistics .player-quick-stats article {
    grid-template-columns: auto auto;
    min-height: 3.1rem;
    padding: 0 0.18rem;
  }

  #statistics .player-quick-stats .quick-stat-icon {
    font-size: clamp(1.1rem, 4.8vw, 1.45rem);
  }

  #statistics .player-quick-stats article > span:not(.quick-stat-icon) {
    font-size: clamp(1.05rem, 5.3vw, 1.38rem) !important;
  }

  #statistics .player-quick-stats small {
    font-size: clamp(0.52rem, 2.5vw, 0.62rem);
    line-height: 1.15;
  }

  #statistics .player-stats-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.625rem;
  }

  #statistics .player-stats-grid-modern article {
    min-height: 7.8rem;
    height: 7.8rem;
    padding: 0.875rem;
    border-radius: 16px;
  }

  #statistics .player-stats-grid-modern svg {
    width: 1.625rem;
    height: 1.625rem;
    margin-bottom: 0.48rem;
  }

  #statistics .player-stats-grid-modern span {
    font-size: clamp(0.76rem, 3.4vw, 0.875rem);
    line-height: 1.15;
  }

  #statistics .player-stats-grid-modern strong {
    margin-top: 0.42rem;
    font-size: clamp(1.85rem, 8vw, 2rem);
  }

  #statistics .stats-chart-grid,
  #statistics .stats-bottom-grid {
    gap: 0.75rem;
  }

  #statistics .stats-chart-card,
  #statistics .stats-form-card,
  #statistics .stats-league-compare,
  #statistics .stats-achievement-summary {
    padding: 0.82rem;
    border-radius: 16px;
  }

  #statistics .stats-chart-card {
    min-height: 11.875rem;
  }

  #statistics .stats-chart-card canvas {
    height: 9.2rem !important;
  }

  #statistics .stats-card-head {
    margin-bottom: 0.62rem;
  }

  #statistics .stats-card-head h3 {
    font-size: clamp(0.92rem, 4vw, 1rem);
  }

  #statistics .stats-card-head span,
  #statistics .stats-card-head strong {
    font-size: 0.72rem;
  }

  #statistics .stats-empty-chart,
  #statistics .stats-empty-inline {
    min-height: 5.8rem;
    padding: 0.78rem;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  #statistics .stats-empty-chart::before,
  #statistics .stats-empty-inline::before {
    content: "";
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    margin: 0 auto 0.35rem;
    border: 2px solid rgba(112, 231, 255, 0.62);
    border-radius: 50%;
    box-shadow: inset 0 0 0 0.28rem rgba(112, 231, 255, 0.12);
  }

  #statistics .stats-form-card {
    min-height: 9.4rem;
  }

  #statistics .stats-form-list {
    display: flex;
    gap: 0.62rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
  }

  #statistics .stats-form-item {
    min-width: 3.15rem;
    scroll-snap-align: start;
  }

  #statistics .stats-form-item span {
    width: 2.28rem;
    height: 2.28rem;
  }

  #statistics .stats-form-item svg {
    width: 1.08rem;
    height: 1.08rem;
  }

  #statistics .stats-form-item small {
    font-size: 0.62rem;
  }

  #statistics .compare-rings {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 0.55rem;
  }

  #statistics .compare-ring {
    width: min(6.875rem, 100%);
  }

  #statistics .compare-ring strong {
    font-size: clamp(1.1rem, 5.2vw, 1.35rem);
  }

  #statistics .compare-ring span,
  #statistics .compare-vs {
    font-size: 0.66rem;
  }

  #statistics #statsLeagueDifference {
    margin-top: 0.72rem;
    font-size: 0.78rem;
  }

  #statistics .stats-achievement-badges {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  #statistics .stats-achievement-badges article {
    flex: 0 0 4.5rem;
    min-height: 5.6rem;
    padding: 0.55rem 0.35rem;
    border-radius: 14px;
  }

  #statistics .stats-achievement-badges svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  #statistics .stats-achievement-badges strong {
    font-size: 0.62rem;
  }

  #statistics .stats-achievement-badges span {
    font-size: 0.58rem;
  }

  #statistics .stats-achievement-summary .ghost-button {
    min-height: 44px;
    margin-top: 0.72rem;
    padding: 0.62rem 0.8rem;
    font-size: 0.82rem;
  }
}

/* Final override: keep the four main statistic cards in one row on phones. */
@media (max-width: 640px) {
  body #statistics .player-stats-grid.player-stats-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.32rem !important;
    width: 100% !important;
  }

  body #statistics .player-stats-grid.player-stats-grid-modern > article {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 5.35rem !important;
    min-height: 5.35rem !important;
    padding: 0.38rem 0.16rem !important;
    border-radius: 9px !important;
  }

  body #statistics .player-stats-grid.player-stats-grid-modern > article svg {
    width: 1.08rem !important;
    height: 1.08rem !important;
    margin: 0 auto 0.2rem !important;
  }

  body #statistics .player-stats-grid.player-stats-grid-modern > article span {
    min-height: 1.2rem !important;
    font-size: clamp(0.43rem, 2vw, 0.52rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body #statistics .player-stats-grid.player-stats-grid-modern > article strong {
    margin-top: 0.16rem !important;
    font-size: clamp(1.08rem, 5vw, 1.36rem) !important;
    line-height: 1 !important;
  }

  body #statistics .stats-chart-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  body #statistics .stats-chart-card {
    min-width: 0 !important;
    min-height: 7.2rem !important;
    height: 7.2rem !important;
    padding: 0.46rem !important;
    border-radius: 10px !important;
  }

  body #statistics .stats-chart-card .stats-card-head {
    margin-bottom: 0.24rem !important;
  }

  body #statistics .stats-chart-card .stats-card-head h3 {
    font-size: clamp(0.58rem, 2.5vw, 0.7rem) !important;
    line-height: 1.1 !important;
  }

  body #statistics .stats-chart-card canvas {
    height: 5.55rem !important;
  }

  body #statistics .stats-chart-card .stats-empty-chart {
    min-height: 5.2rem !important;
    padding: 0.35rem !important;
    font-size: clamp(0.52rem, 2.2vw, 0.62rem) !important;
  }

  body #statistics .stats-bottom-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  body #statistics .stats-league-compare,
  body #statistics .stats-achievement-summary {
    min-width: 0 !important;
    min-height: 8rem !important;
    padding: 0.5rem !important;
    border-radius: 10px !important;
  }

  body #statistics .stats-league-compare .stats-card-head,
  body #statistics .stats-achievement-summary .stats-card-head {
    margin-bottom: 0.38rem !important;
  }

  body #statistics .stats-league-compare .stats-card-head h3,
  body #statistics .stats-achievement-summary .stats-card-head h3 {
    font-size: clamp(0.58rem, 2.45vw, 0.68rem) !important;
    line-height: 1.1 !important;
  }

  body #statistics .stats-achievement-summary .stats-card-head strong {
    font-size: clamp(0.72rem, 3vw, 0.86rem) !important;
    line-height: 1.05 !important;
  }

  body #statistics .stats-league-compare .compare-rings {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 0.25rem !important;
  }

  body #statistics .stats-league-compare .compare-ring {
    width: min(4.3rem, 100%) !important;
  }

  body #statistics .stats-league-compare .compare-ring strong {
    font-size: clamp(0.78rem, 3.7vw, 1rem) !important;
  }

  body #statistics .stats-league-compare .compare-ring span,
  body #statistics .stats-league-compare .compare-vs {
    font-size: clamp(0.48rem, 2vw, 0.56rem) !important;
  }

  body #statistics #statsLeagueDifference {
    margin-top: 0.38rem !important;
    font-size: clamp(0.5rem, 2.15vw, 0.6rem) !important;
    line-height: 1.15 !important;
  }

  body #statistics .stats-achievement-badges {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  body #statistics .stats-achievement-badges article {
    flex: initial !important;
    min-width: 0 !important;
    min-height: 4.3rem !important;
    padding: 0.3rem 0.12rem !important;
    border-radius: 8px !important;
  }

  body #statistics .stats-achievement-badges svg {
    width: 1.18rem !important;
    height: 1.18rem !important;
  }

  body #statistics .stats-achievement-badges strong {
    font-size: clamp(0.42rem, 1.9vw, 0.5rem) !important;
    line-height: 1.05 !important;
  }

  body #statistics .stats-achievement-badges span {
    font-size: clamp(0.38rem, 1.7vw, 0.46rem) !important;
    line-height: 1.05 !important;
  }

  body #statistics .stats-achievement-summary .ghost-button {
    min-height: 44px !important;
    margin-top: 0.35rem !important;
    padding: 0.38rem 0.45rem !important;
    font-size: clamp(0.52rem, 2.25vw, 0.62rem) !important;
  }
}

/* App-like page header: small page title beside the hamburger, no duplicate page titles. */
body.app-open .topbar-title {
  display: block;
}

body.app-open .topbar-title .eyebrow {
  margin: 0 0 0.12rem;
  font-size: 0.62rem;
  opacity: 0.64;
}

body.app-open .topbar-title h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  body.app-open .main {
    padding: 0.72rem 0.72rem 1rem !important;
  }

  body.app-open .topbar {
    align-items: center !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 0.66rem !important;
    margin-bottom: 0.62rem !important;
  }

  body.app-open .menu-toggle {
    width: 2.05rem !important;
    height: 2.05rem !important;
    border-radius: 0.64rem !important;
  }

  body.app-open .menu-toggle span {
    width: 0.94rem !important;
  }

  body.app-open .menu-toggle span:nth-child(2) {
    width: 0.72rem !important;
  }

  body.app-open .topbar-title {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
  }

  body.app-open .topbar-title .eyebrow {
    display: none !important;
  }

  body.app-open .topbar-title h1 {
    display: block !important;
    font-size: clamp(1.05rem, 5vw, 1.28rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.app-open .top-actions {
    display: flex !important;
    margin-left: auto !important;
    align-items: center !important;
    flex-direction: row !important;
  }

  body.app-open .top-actions .hidden-league-picker {
    display: none !important;
  }

  body.app-open .top-notification-button {
    width: 2.15rem;
    height: 2.15rem;
    min-height: 2.15rem;
    border-radius: 0.72rem;
    background: rgba(7, 15, 28, 0.32);
    border-color: transparent;
    box-shadow: none;
  }

  body.app-open .view.active > .panel,
  body.app-open .view.active > .wide-panel {
    margin-top: 0 !important;
  }

  body.app-open .view.active .simple-page-head,
  body.app-open .view.active .centered-page-head {
    display: none !important;
  }

  body.app-open .view.active .panel-head > div:first-child > .eyebrow,
  body.app-open .view.active .panel-head > div:first-child > h2 {
    display: none !important;
  }

  body.app-open .view.active .panel-head {
    margin-bottom: 0.55rem !important;
  }

  body.app-open #statistics .panel.player-stats-page {
    padding-top: 0.72rem !important;
  }
}

@media (max-width: 700px) {
  body #statistics .player-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body #statistics .player-quick-stats article {
    grid-template-columns: auto auto !important;
    border-top: 0 !important;
  }

  body #statistics .player-quick-stats article + article {
    border-left: 1px solid rgba(104, 132, 180, 0.18) !important;
  }
}

/* Compact rulebook accordion */
.rulebook-page {
  display: grid;
  gap: 0.75rem;
}

.rulebook-intro-card,
.rulebook-section,
.rulebook-contact {
  border: 1px solid rgba(88, 134, 255, 0.22);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(16, 34, 62, 0.88), rgba(9, 18, 32, 0.92)),
    rgba(8, 18, 31, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.rulebook-intro-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem;
}

.rulebook-intro-card h3,
.rulebook-intro-card p {
  margin: 0;
}

.rulebook-intro-card h3 {
  font-size: clamp(1rem, 3.8vw, 1.15rem);
}

.rulebook-intro-card p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: clamp(0.82rem, 3.5vw, 0.94rem);
  line-height: 1.42;
}

.rulebook-accordion {
  display: grid;
  gap: 0.62rem;
}

.rulebook-section {
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rulebook-section[open] {
  border-color: rgba(128, 93, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(83, 212, 255, 0.14), 0 18px 44px rgba(82, 86, 255, 0.18);
}

.rulebook-section summary {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 3.45rem;
  padding: 0.78rem 0.85rem;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.rulebook-section summary::-webkit-details-marker {
  display: none;
}

.rulebook-section summary strong {
  color: var(--ink);
  font-size: clamp(0.98rem, 3.7vw, 1.05rem);
  line-height: 1.18;
}

.rulebook-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  color: #77e8ff;
  background: linear-gradient(135deg, rgba(16, 176, 255, 0.22), rgba(107, 92, 255, 0.18));
}

.rulebook-icon svg,
.rulebook-contact svg,
.rulebook-chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rulebook-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rulebook-icon-scoring {
  color: #d58cff;
  background: linear-gradient(135deg, rgba(153, 82, 255, 0.28), rgba(83, 212, 255, 0.08));
}

.rulebook-icon-bonus {
  color: #35f39b;
  background: linear-gradient(135deg, rgba(32, 201, 126, 0.22), rgba(37, 99, 235, 0.1));
}

.rulebook-icon-table {
  color: #f6b447;
  background: linear-gradient(135deg, rgba(246, 180, 71, 0.2), rgba(107, 92, 255, 0.08));
}

.rulebook-icon-postponed {
  color: #57a4ff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(83, 212, 255, 0.1));
}

.rulebook-icon-fair,
.rulebook-icon-shield {
  color: #ff6c6c;
  background: linear-gradient(135deg, rgba(255, 89, 89, 0.22), rgba(107, 92, 255, 0.08));
}

.rulebook-chevron {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.rulebook-section[open] .rulebook-chevron {
  color: #b59cff;
  transform: rotate(180deg);
}

.rulebook-section-body {
  display: grid;
  gap: 0.72rem;
  padding: 0 0.95rem 0.95rem 4.35rem;
  color: var(--muted);
  font-size: clamp(0.86rem, 3.4vw, 0.93rem);
  line-height: 1.55;
  animation: rulebookFade 190ms ease;
}

.rulebook-section-body p,
.rulebook-section-body ul {
  margin: 0;
}

.rulebook-section-body ul {
  display: grid;
  gap: 0.42rem;
  padding-left: 1.05rem;
}

.rulebook-small-title {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.rulebook-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  background: rgba(5, 13, 24, 0.38);
}

.rulebook-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.rulebook-table th,
.rulebook-table td {
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  line-height: 1.25;
  text-align: left;
}

.rulebook-table th:last-child,
.rulebook-table td:last-child {
  width: 5.2rem;
  text-align: right;
}

.rulebook-table th {
  color: #b9c8e7;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(0.68rem, 2.8vw, 0.76rem);
}

.rulebook-table td {
  color: var(--ink);
  font-weight: 800;
}

.rulebook-table tr:last-child td {
  border-bottom: 0;
}

.rulebook-contact {
  display: grid;
  grid-template-columns: 1.45rem 1fr auto;
  align-items: center;
  gap: 0.78rem;
  min-height: 44px;
  padding: 0.9rem 1rem;
  color: #58a7ff;
  font-weight: 900;
  text-align: left;
}

.rulebook-contact svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rulebook-contact:active,
.rulebook-section:active {
  transform: scale(0.99);
}

@keyframes rulebookFade {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.app-open:has(#rulebook.active) .topbar-title h1 {
  font-size: clamp(1.35rem, 6.8vw, 1.75rem) !important;
}

@media (max-width: 700px) {
  body.app-open #rulebook .rulebook-page {
    padding: 1rem !important;
    gap: 0.62rem !important;
  }

  #rulebook .rulebook-intro-card {
    grid-template-columns: 2.8rem 1fr;
    padding: 0.88rem;
  }

  #rulebook .rulebook-section summary {
    grid-template-columns: 2.5rem 1fr auto;
    min-height: 3.18rem;
    padding: 0.7rem 0.75rem;
  }

  #rulebook .rulebook-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  #rulebook .rulebook-section-body {
    padding: 0 0.78rem 0.8rem 0.78rem;
    font-size: 0.875rem;
  }
}

/* Modern prediction overview */
.tip-overview-panel {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.tip-overview-head {
  align-items: end;
}

#tipOverview .tip-overview-head {
  display: none;
}

.tip-overview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(88, 134, 255, 0.22);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(13, 36, 68, 0.72), rgba(7, 15, 29, 0.86)),
    rgba(7, 17, 31, 0.78);
  box-shadow: 0 20px 60px rgba(14, 49, 110, 0.18);
  overflow: hidden;
}

.tip-overview-summary article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 0.75rem;
  min-width: 0;
  padding: 1rem;
}

.tip-overview-summary article + article {
  border-left: 1px solid rgba(111, 141, 193, 0.16);
}

.tip-overview-summary-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  color: #53d4ff;
  background: rgba(83, 212, 255, 0.12);
}

.tip-overview-summary-icon.purple {
  color: #a78bfa;
  background: rgba(118, 87, 255, 0.16);
}

.tip-overview-summary-icon.gold {
  color: #ffbd45;
  background: rgba(255, 189, 69, 0.14);
}

.tip-overview-summary-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tip-overview-summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-overview-summary span:last-child {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tip-overview-summary-state.live .tip-overview-summary-icon,
.tip-overview-summary-state.live strong {
  color: #34f29b;
}

.tip-overview-summary-state.live .tip-overview-summary-icon {
  background: rgba(52, 242, 155, 0.13);
  box-shadow: 0 0 20px rgba(52, 242, 155, 0.18);
}

.tip-overview-summary-state.countdown .tip-overview-summary-icon,
.tip-overview-summary-state.countdown strong {
  color: #ffbd45;
}

.tip-overview-summary-state.countdown .tip-overview-summary-icon {
  background: rgba(255, 189, 69, 0.14);
}

.tip-overview-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.tip-overview-nav-button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(83, 212, 255, 0.26);
  color: #a9d9ff;
  background: rgba(7, 18, 34, 0.74);
  box-shadow: 0 0 22px rgba(83, 126, 255, 0.12);
}

.tip-overview-nav-button:hover,
.tip-overview-nav-button:active {
  border-color: rgba(117, 92, 255, 0.75);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

.tip-overview-cards {
  display: grid;
  gap: 1rem;
}

.tip-overview-card,
.tip-overview-empty {
  border: 1px solid rgba(82, 132, 206, 0.24);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 178, 255, 0.14), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(132, 92, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(15, 30, 55, 0.9), rgba(7, 14, 27, 0.92));
  box-shadow: 0 20px 70px rgba(5, 17, 36, 0.38);
}

.tip-overview-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  animation: cardFadeIn 220ms ease;
}

.tip-overview-empty {
  padding: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.tip-overview-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.tip-overview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 950;
}

.tip-overview-status.live {
  color: #d6ffe8;
  background: rgba(34, 197, 94, 0.18);
}

.tip-overview-status.live span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #32f089;
  box-shadow: 0 0 0 rgba(50, 240, 137, 0.5);
  animation: livePulse 1.45s ease infinite;
}

.tip-overview-status.final {
  color: #d7ddff;
  background: rgba(117, 92, 255, 0.18);
}

.tip-overview-status.scheduled {
  color: #9bdcff;
  background: rgba(83, 212, 255, 0.12);
}

.tip-overview-matchline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0 0.2rem;
}

.tip-overview-club {
  color: var(--ink);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tip-overview-club.home {
  text-align: right;
}

.tip-overview-club.away {
  text-align: left;
}

.tip-overview-score {
  display: grid;
  place-items: center;
  min-width: 5.7rem;
}

.tip-overview-score strong {
  color: #fff;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(83, 212, 255, 0.2);
}

.tip-overview-score span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.tip-overview-members-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(91, 128, 184, 0.22);
  border-radius: 0.85rem;
  background: rgba(7, 17, 31, 0.44);
  color: #c7d4ed;
  font-weight: 950;
}

.tip-overview-own-tip {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(91, 128, 184, 0.22);
  border-radius: 0.95rem;
  background:
    linear-gradient(90deg, rgba(17, 52, 104, 0.52), rgba(8, 19, 35, 0.58)),
    rgba(7, 17, 31, 0.48);
}

.tip-overview-own-tip strong {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.tip-overview-own-tip strong.missing {
  color: #78879d;
  font-size: 0.95rem;
}

.tip-overview-own-check {
  color: #34f29b;
  font-size: 1.1rem;
  font-weight: 950;
}

.tip-overview-locked-note {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border: 1px dashed rgba(120, 148, 188, 0.24);
  border-radius: 0.85rem;
  color: var(--muted);
  background: rgba(7, 17, 31, 0.32);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.tip-overview-members {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tip-overview-preview-list {
  overflow: hidden;
  border: 1px solid rgba(91, 128, 184, 0.2);
  border-radius: 0.95rem;
  background: rgba(4, 12, 24, 0.24);
}

.tip-overview-preview-list .tip-overview-member-row {
  border-radius: 0;
  background: rgba(7, 17, 31, 0.2);
}

.tip-overview-preview-list .tip-overview-member-row + .tip-overview-member-row {
  border-top: 1px solid rgba(91, 128, 184, 0.12);
}

.tip-overview-all {
  display: grid;
  gap: 0.5rem;
}

.tip-overview-all summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  border: 1px solid rgba(91, 128, 184, 0.24);
  border-radius: 0.85rem;
  color: #58a6ff;
  background: rgba(7, 17, 31, 0.36);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 950;
  list-style: none;
}

.tip-overview-all summary::-webkit-details-marker {
  display: none;
}

.tip-overview-all[open] summary span {
  transform: rotate(180deg);
}

.tip-overview-member-row {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(7, 17, 31, 0.38);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tip-overview-member-row.me {
  transform: scale(1.02);
  border-color: rgba(83, 212, 255, 0.62);
  background: linear-gradient(90deg, rgba(24, 97, 204, 0.42), rgba(14, 28, 51, 0.6));
  box-shadow: 0 0 28px rgba(83, 126, 255, 0.22);
}

.tip-overview-avatar {
  display: block;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(115, 194, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(7, 17, 31, 0.72), 0 0 14px rgba(83, 126, 255, 0.18);
}

.tip-overview-avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #18c6ef, #725cff);
  font-size: 0.78rem;
  font-weight: 950;
}

.tip-overview-member-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-overview-member-tip {
  color: #c7d4ed;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.tip-overview-member-tip.perfect {
  color: #5aa0ff;
}

.tip-overview-member-tip.points {
  color: #ffd05b;
}

.tip-overview-member-tip.zero {
  color: #adb8cb;
}

.tip-overview-member-tip.missing,
.tip-overview-member-tip.locked {
  color: #78879d;
}

.tip-overview-points {
  min-width: 2.3rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 950;
}

.tip-overview-points.good {
  color: #d8ffe7;
  background: rgba(34, 197, 94, 0.22);
}

.tip-overview-points.mid {
  color: #fff4bc;
  background: rgba(245, 194, 66, 0.18);
}

.tip-overview-points.zero {
  color: #ffd4d4;
  background: rgba(239, 68, 68, 0.18);
}

@media (max-width: 760px) {
  body.app-open {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.1rem;
    padding: 0.42rem 0.55rem calc(0.42rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(83, 126, 255, 0.22);
    background:
      linear-gradient(180deg, rgba(8, 20, 40, 0.82), rgba(5, 12, 25, 0.96)),
      rgba(5, 12, 25, 0.92);
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .mobile-tab-item {
    display: grid;
    place-items: center;
    gap: 0.18rem;
    min-width: 0;
    min-height: 3.15rem;
    border: 0;
    border-radius: 0.8rem;
    color: #8291aa;
    background: transparent;
    font-size: 0.64rem;
    font-weight: 850;
  }

  .mobile-tab-item svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tab-item.active {
    color: #5aa0ff;
    background: rgba(42, 105, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(83, 126, 255, 0.18);
  }

  .mobile-tab-item:active {
    transform: scale(0.96);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 240, 137, 0.48);
  }
  100% {
    box-shadow: 0 0 0 0.55rem rgba(50, 240, 137, 0);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  body.app-open #tipOverview .tip-overview-panel {
    padding: 1rem !important;
    gap: 0.75rem;
  }

  #tipOverview .tip-overview-head {
    gap: 0.7rem;
  }

  #tipOverview .tip-overview-head .tip-overview-note {
    font-size: 0.86rem;
  }

  #tipOverview .tip-overview-picker {
    width: 100%;
  }

  #tipOverview .tip-overview-summary article {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.28rem;
    padding: 0.72rem 0.42rem;
    text-align: center;
  }

  #tipOverview .tip-overview-summary article + article {
    border-left: 1px solid rgba(111, 141, 193, 0.16);
    border-top: 0;
  }

  #tipOverview .tip-overview-summary-icon {
    grid-row: auto;
    width: 2rem;
    height: 2rem;
  }

  #tipOverview .tip-overview-summary-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  #tipOverview .tip-overview-summary strong {
    max-width: 100%;
    font-size: clamp(1rem, 4.8vw, 1.22rem);
  }

  #tipOverview .tip-overview-summary span:last-child {
    font-size: 0.66rem;
    line-height: 1.12;
  }

  #tipOverview .tip-overview-controls {
    justify-content: center;
  }

  #tipOverview .tip-overview-card {
    padding: 0.78rem;
    border-radius: 1.05rem;
  }

  #tipOverview .tip-overview-matchline {
    gap: 0.55rem;
  }

  #tipOverview .tip-overview-score {
    min-width: 4.7rem;
  }

  #tipOverview .tip-overview-score strong {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  #tipOverview .tip-overview-member-row {
    grid-template-columns: 2.05rem minmax(0, 1fr) auto auto;
    gap: 0.48rem;
    padding: 0.38rem 0.52rem;
  }

  #tipOverview .tip-overview-avatar {
    width: 1.95rem;
    height: 1.95rem;
  }
}

@media (max-width: 700px) {
  body.app-open #tipOverview .tip-overview-panel {
    padding: 0.72rem !important;
    gap: 0.52rem !important;
  }

  #tipOverview .tip-overview-head {
    gap: 0.45rem !important;
    margin-bottom: 0 !important;
  }

  #tipOverview #tipOverviewTitle {
    font-size: clamp(1.05rem, 5vw, 1.28rem) !important;
    line-height: 1.05 !important;
  }

  #tipOverview .tip-overview-note {
    margin-top: 0.18rem !important;
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
  }

  #tipOverview .tip-overview-picker {
    padding: 0.42rem 0.55rem !important;
    min-height: 2.25rem !important;
  }

  #tipOverview .tip-overview-picker span {
    font-size: 0.62rem !important;
  }

  #tipOverview .tip-overview-picker select {
    font-size: 0.84rem !important;
  }

  #tipOverview .tip-overview-summary {
    border-radius: 0.78rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #tipOverview .tip-overview-summary article {
    grid-template-columns: auto minmax(0, 1fr) !important;
    min-height: 3.05rem !important;
    padding: 0.5rem 0.34rem !important;
    gap: 0.08rem 0.38rem !important;
    text-align: left !important;
    justify-items: start !important;
  }

  #tipOverview .tip-overview-summary-icon {
    grid-row: span 2 !important;
    width: 1.42rem !important;
    height: 1.42rem !important;
    border-radius: 0.48rem !important;
  }

  #tipOverview .tip-overview-summary-icon svg {
    width: 0.92rem !important;
    height: 0.92rem !important;
  }

  #tipOverview .tip-overview-summary strong {
    font-size: clamp(0.82rem, 3.55vw, 1rem) !important;
    white-space: nowrap !important;
  }

  #tipOverview .tip-overview-summary span:last-child {
    font-size: 0.54rem !important;
    line-height: 1.05 !important;
  }

  #tipOverview .tip-overview-controls {
    gap: 0.38rem !important;
    margin-top: -0.1rem !important;
  }

  #tipOverview .tip-overview-nav-button {
    width: 2.05rem !important;
    height: 2.05rem !important;
    min-width: 2.05rem !important;
    min-height: 2.05rem !important;
    font-size: 0.95rem !important;
  }

  #tipOverview .tip-overview-cards {
    gap: 0.58rem !important;
  }

  #tipOverview .tip-overview-card {
    gap: 0.5rem !important;
    padding: 0.55rem !important;
    border-radius: 0.88rem !important;
  }

  #tipOverview .tip-overview-card-top {
    font-size: 0.66rem !important;
    gap: 0.4rem !important;
  }

  #tipOverview .tip-overview-status {
    min-height: 1.22rem !important;
    padding: 0.12rem 0.42rem !important;
    font-size: 0.58rem !important;
  }

  #tipOverview .tip-overview-status.live span {
    width: 0.36rem !important;
    height: 0.36rem !important;
  }

  #tipOverview .tip-overview-matchline {
    gap: 0.34rem !important;
    padding: 0.12rem 0 !important;
  }

  #tipOverview .tip-overview-club {
    font-size: clamp(0.78rem, 3.8vw, 0.98rem) !important;
    line-height: 1.05 !important;
  }

  #tipOverview .tip-overview-score {
    min-width: 3.8rem !important;
  }

  #tipOverview .tip-overview-score strong {
    font-size: clamp(1.28rem, 7vw, 1.75rem) !important;
  }

  #tipOverview .tip-overview-score span {
    margin-top: 0.16rem !important;
    font-size: 0.58rem !important;
    line-height: 1.05 !important;
  }

  #tipOverview .tip-overview-members-head {
    padding: 0.38rem 0.5rem !important;
    border-radius: 0.6rem !important;
    font-size: 0.76rem !important;
  }

  #tipOverview .tip-overview-members {
    gap: 0.24rem !important;
  }

  #tipOverview .tip-overview-member-row {
    grid-template-columns: 1.92rem minmax(0, 1fr) auto auto !important;
    gap: 0.34rem !important;
    min-height: 2.32rem !important;
    padding: 0.24rem 0.38rem !important;
    border-radius: 0.58rem !important;
  }

  #tipOverview .tip-overview-member-row.me {
    transform: scale(1.01) !important;
    box-shadow: 0 0 16px rgba(83, 126, 255, 0.18) !important;
  }

  #tipOverview .tip-overview-avatar {
    display: block !important;
    width: 1.78rem !important;
    height: 1.78rem !important;
    font-size: 0.62rem !important;
  }

  #tipOverview .tip-overview-member-name {
    font-size: 0.78rem !important;
  }

  #tipOverview .tip-overview-member-tip {
    font-size: 0.82rem !important;
  }

  #tipOverview .tip-overview-points {
    min-width: 1.72rem !important;
    padding: 0.12rem 0.32rem !important;
    font-size: 0.64rem !important;
  }

  #tipOverview .tip-overview-own-tip {
    grid-template-columns: 1.92rem minmax(0, 1fr) auto auto !important;
    min-height: 2.35rem !important;
    padding: 0.38rem 0.5rem !important;
    border-radius: 0.68rem !important;
    gap: 0.34rem !important;
  }

  #tipOverview .tip-overview-own-tip strong {
    font-size: 0.98rem !important;
  }

  #tipOverview .tip-overview-own-check {
    font-size: 0.9rem !important;
  }

  #tipOverview .tip-overview-all {
    gap: 0.34rem !important;
  }

  #tipOverview .tip-overview-all summary {
    min-height: 2.1rem !important;
    border-radius: 0.62rem !important;
    font-size: 0.72rem !important;
  }

  #tipOverview .tip-overview-locked-note {
    padding: 0.5rem 0.58rem !important;
    border-radius: 0.64rem !important;
    font-size: 0.7rem !important;
  }
}

/* Modern Tipovi page */
#tips .wide-panel {
  overflow: visible;
}

#tips .panel-head {
  margin-bottom: 0.75rem;
  align-items: center;
}

#tips .matchday-picker {
  margin-left: auto;
  min-width: 8.8rem;
  border-color: rgba(84, 174, 255, 0.28);
  background: rgba(8, 17, 33, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#tips .matchday-picker select {
  font-size: 0.92rem;
  font-weight: 900;
}

.tips-modern-shell {
  display: grid;
  gap: 0.9rem;
}

.tips-modern-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem;
}

.tips-modern-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4.8vw, 2.4rem);
  letter-spacing: 0;
}

.tips-modern-head p {
  max-width: 34rem;
  margin: 0.08rem 0 0;
  color: rgba(197, 208, 230, 0.74);
  font-size: clamp(0.62rem, 2.25vw, 0.78rem);
  line-height: 1.16;
}

.tips-deadline {
  min-width: 7.1rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(84, 174, 255, 0.26);
  border-radius: 0.72rem;
  background: linear-gradient(145deg, rgba(20, 35, 64, 0.86), rgba(12, 17, 31, 0.76));
  text-align: right;
}

.tips-deadline span {
  display: block;
  color: rgba(197, 208, 230, 0.66);
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tips-deadline strong {
  display: block;
  margin-top: 0.05rem;
  color: #38f27d;
  font-size: clamp(0.68rem, 2.45vw, 0.9rem);
}

.tips-deadline.closed strong {
  color: #ff6475;
}

.tips-progress-card,
.tips-status-legend,
.modern-tip-card {
  border: 1px solid rgba(79, 142, 255, 0.22);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 135, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(17, 30, 54, 0.9), rgba(8, 14, 27, 0.88));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.tips-progress-card {
  padding: 0.4rem 0.52rem;
}

.tips-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: rgba(217, 226, 244, 0.82);
  font-size: 0.64rem;
  font-weight: 850;
}

.tips-progress-copy strong {
  color: #ffffff;
  font-size: 0.76rem;
}

.tips-progress-track {
  height: 0.42rem;
  margin-top: 0.28rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(151, 164, 193, 0.14);
}

.tips-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19d5ff, #7b5cff, #bb35ff);
  box-shadow: 0 0 22px rgba(65, 157, 255, 0.34);
  transition: width 260ms ease;
}

.tips-status-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.72rem 0.88rem;
  color: rgba(205, 216, 235, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
}

.tips-status-legend span,
.modern-tip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.tips-status-legend i,
.modern-tip-status i {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #94a3b8;
}

.tips-status-legend .open,
.modern-tip-status.open i {
  background: #36df67;
  box-shadow: 0 0 12px rgba(54, 223, 103, 0.45);
}

.tips-status-legend .soon,
.modern-tip-status.soon i {
  background: #ffd44d;
}

.tips-status-legend .locked,
.modern-tip-status.locked i,
.modern-tip-status.finished i {
  background: #ff4b62;
}

.tips-status-legend .live,
.modern-tip-status.live i {
  background: #36df67;
  animation: livePulse 1.4s ease-in-out infinite;
}

.modern-tip-list {
  display: grid;
  gap: 0.72rem;
}

.modern-tip-card {
  position: relative;
  padding: 0.82rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.modern-tip-card:active {
  transform: scale(0.992);
}

.modern-tip-card:hover {
  border-color: rgba(80, 211, 255, 0.42);
  box-shadow: 0 18px 52px rgba(26, 125, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modern-tip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.56rem;
}

.modern-tip-status {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 15, 29, 0.72);
  color: rgba(222, 231, 247, 0.8);
  font-size: 0.72rem;
  font-weight: 900;
}

.modern-tip-time {
  color: rgba(197, 208, 230, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.modern-tip-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.76rem;
}

.modern-tip-match strong {
  min-width: 0;
  color: #f8fbff;
  font-size: clamp(0.94rem, 3.4vw, 1.18rem);
  font-weight: 950;
  line-height: 1.12;
}

.modern-tip-match strong:first-child {
  text-align: left;
}

.modern-tip-match strong:last-child {
  text-align: right;
}

.modern-tip-match span {
  color: #5ee8ff;
  font-size: 0.68rem;
  font-weight: 950;
}

.modern-score-picker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.score-side-picker {
  display: grid;
  grid-template-columns: 2.05rem 2.55rem 2.05rem;
  align-items: center;
  gap: 0.32rem;
}

.score-step-button,
.score-picker-value {
  min-height: 2.45rem;
  border: 1px solid rgba(84, 174, 255, 0.26);
  border-radius: 0.8rem;
  background: rgba(5, 12, 23, 0.82);
  color: #fff;
  font-weight: 950;
}

.score-step-button {
  cursor: pointer;
  color: #66e9ff;
  font-size: 1.05rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.score-step-button:hover:not(:disabled),
.score-step-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(85, 215, 255, 0.62);
  background: rgba(26, 92, 173, 0.32);
  outline: none;
}

.score-step-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.score-picker-value {
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 160ms ease;
}

.score-picker-value.score-pop {
  animation: scorePop 220ms ease;
}

.modern-score-separator {
  color: #dbeafe;
  font-size: 1.35rem;
  font-weight: 950;
}

.modern-tip-input {
  display: none;
}

.bonus-tip-card h3 {
  margin: 0.25rem 0 0.75rem;
  color: #fff;
  font-size: 1.05rem;
}

.bonus-tip-eyebrow {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-tip-options {
  display: grid;
  gap: 0.45rem;
}

.bonus-tip-options span {
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(84, 174, 255, 0.22);
  border-radius: 0.8rem;
  background: rgba(5, 12, 23, 0.68);
  color: rgba(226, 234, 247, 0.86);
  font-weight: 800;
}

.modern-tip-empty {
  padding: 1.1rem;
  border: 1px solid rgba(84, 174, 255, 0.22);
  border-radius: 1rem;
  background: rgba(9, 18, 34, 0.82);
  color: rgba(226, 234, 247, 0.82);
  text-align: center;
  font-weight: 850;
}

.tips-sticky-actions {
  gap: 0.55rem;
  align-items: center;
  justify-content: stretch;
  padding: 0.5rem;
  border: 1px solid rgba(84, 174, 255, 0.18);
  border-radius: 1.05rem;
  background: rgba(4, 10, 20, 0.86);
  backdrop-filter: blur(18px);
}

.tips-sticky-actions .tips-draft-button,
.tips-sticky-actions .tips-save-button {
  flex: 1;
  width: auto;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 950;
}

.tips-draft-button {
  border: 1px solid rgba(84, 174, 255, 0.24);
  background: rgba(13, 25, 46, 0.92);
  color: rgba(226, 234, 247, 0.88);
}

.tips-save-button.is-ready {
  box-shadow: 0 0 0 1px rgba(122, 92, 255, 0.4), 0 18px 48px rgba(64, 143, 255, 0.34);
}

@keyframes scorePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; }
}

@media (max-width: 680px) {
  #tips .wide-panel {
    padding: 0.72rem !important;
  }

  #tips .panel-head {
    margin-bottom: 0.58rem;
  }

  #tips .matchday-picker {
    min-width: 7.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.78rem;
  }

  .tips-modern-shell {
    gap: 0.66rem;
  }

  .tips-modern-head {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .tips-modern-head h2 {
    display: none;
  }

  .tips-modern-head p {
    font-size: 0.74rem;
  }

  .tips-deadline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding: 0.48rem 0.58rem;
    text-align: left;
  }

  .tips-status-legend {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    padding: 0.55rem 0.62rem;
    font-size: 0.66rem;
  }

  .tips-progress-card,
  .modern-tip-card {
    border-radius: 0.92rem;
  }

  .tips-progress-card {
    padding: 0.62rem 0.68rem;
  }

  .tips-progress-copy {
    font-size: 0.76rem;
  }

  .tips-progress-track {
    height: 0.54rem;
  }

  .modern-tip-list {
    gap: 0.52rem;
  }

  .modern-tip-card {
    padding: 0.64rem;
  }

  .modern-tip-card-top {
    margin-bottom: 0.42rem;
  }

  .modern-tip-status {
    padding: 0.2rem 0.44rem;
    font-size: 0.64rem;
  }

  .modern-tip-time {
    font-size: 0.7rem;
  }

  .modern-tip-match {
    gap: 0.38rem;
    margin-bottom: 0.6rem;
  }

  .modern-tip-match strong {
    font-size: clamp(0.84rem, 3.7vw, 1rem);
  }

  .score-side-picker {
    grid-template-columns: 1.8rem 2.18rem 1.8rem;
    gap: 0.24rem;
  }

  .score-step-button,
  .score-picker-value {
    min-height: 2.1rem;
    border-radius: 0.65rem;
  }

  .score-step-button {
    font-size: 0.96rem;
  }

  .score-picker-value {
    font-size: 1.06rem;
  }

  .modern-score-picker {
    gap: 0.34rem;
  }

  .modern-score-separator {
    font-size: 1.1rem;
  }

  .tips-sticky-actions {
    bottom: 5.35rem;
    padding: 0.42rem;
    border-radius: 0.9rem;
  }

  .tips-sticky-actions .tips-draft-button,
  .tips-sticky-actions .tips-save-button {
    min-height: 2.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 390px) {
  .tips-status-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-side-picker {
    grid-template-columns: 1.62rem 2.02rem 1.62rem;
  }

  .score-step-button,
  .score-picker-value {
    min-height: 1.96rem;
  }

  .modern-tip-match strong {
    font-size: 0.82rem;
  }
}

/* Compact premium Tipovi screen */
#tips .wide-panel {
  padding: clamp(0.62rem, 2vw, 0.9rem);
}

#tips .panel-head {
  margin-bottom: 0.5rem;
}

#tips .tips-save-bar-top,
#tips .tips-draft-button {
  display: none !important;
}

.tips-modern-shell {
  gap: 0.52rem;
}

.tips-modern-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.tips-modern-head h2,
.tips-modern-head p {
  display: none;
}

.tips-deadline {
  min-width: 7.7rem;
  padding: 0.4rem 0.58rem;
  border-radius: 0.75rem;
  text-align: right;
  background: transparent;
  box-shadow: none;
}

.tips-deadline span {
  font-size: 0.56rem;
}

.tips-deadline strong {
  margin-top: 0.08rem;
  color: #35f26d;
  font-size: clamp(0.78rem, 2.8vw, 0.96rem);
}

.tips-progress-card {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 0.78rem;
}

.tips-progress-copy {
  display: block;
  font-size: 0.68rem;
  line-height: 1.15;
}

.tips-progress-copy strong {
  display: none;
}

.tips-progress-track {
  height: 0.48rem;
  margin-top: 0.4rem;
  background: rgba(151, 164, 193, 0.18);
}

.tips-progress-track span {
  background: linear-gradient(90deg, #24e063, #35f26d);
  box-shadow: 0 0 18px rgba(36, 224, 99, 0.38);
}

.tips-status-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.34rem 0.46rem;
  border-radius: 0.66rem;
  font-size: 0.56rem;
  gap: 0.28rem;
}

.tips-status-legend span {
  justify-content: center;
}

.tips-status-legend i,
.modern-tip-status i {
  width: 0.38rem;
  height: 0.38rem;
}

.modern-tip-list {
  gap: 0.24rem;
}

.modern-tip-card {
  display: block;
  padding: 0.28rem 0.34rem;
  border-radius: 0.68rem;
}

.modern-tip-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3.95rem, 19vw, 4.5rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.3rem, 1.35vw, 0.52rem);
  min-height: 2.22rem;
}

.modern-tip-team {
  min-width: 0;
  width: 100%;
  color: #f8fbff;
  font-size: clamp(0.54rem, 2vw, 0.66rem);
  font-weight: 950;
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: normal;
}

.modern-tip-team.home {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  text-align: right;
}

.modern-tip-team.away {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  text-align: left;
}

.modern-tip-center {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  gap: 0.08rem;
  width: 100%;
  min-width: 0;
}

.modern-tip-card-top {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 0.2rem;
  margin: 0;
  width: max-content;
  max-width: 100%;
}

.modern-tip-status {
  padding: 0;
  background: transparent;
  color: #35f26d;
  font-size: 0.44rem;
}

.modern-tip-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: rgba(185, 198, 220, 0.78);
  font-size: 0.44rem;
}

.modern-tip-time svg {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.modern-score-picker {
  display: grid;
  grid-template-columns: 1.48rem 0.32rem 1.48rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.08rem;
  width: max-content;
}

.modern-tip-input.score-picker-value {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 1.26rem;
  min-height: 1.26rem;
  padding: 0;
  border-radius: 0.34rem;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.26rem;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.modern-tip-input.score-picker-value::placeholder {
  color: rgba(226, 234, 247, 0.78);
  text-align: center;
}

.modern-score-separator {
  display: inline-grid;
  place-items: center;
  width: 0.32rem;
  font-size: 0.7rem;
  line-height: 1;
  text-align: center;
}

.tips-sticky-actions {
  position: static;
  display: flex;
  justify-content: center;
  padding: 0.08rem 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.tips-sticky-actions .tips-save-button {
  flex: 0 1 9.5rem;
  width: min(9.5rem, 100%);
  min-height: 1.7rem;
  border-radius: 0.56rem;
  font-size: 0.62rem;
}

@media (max-width: 520px) {
  #tips .wide-panel {
    padding: 0.5rem !important;
  }

  .tips-modern-shell {
    gap: 0.3rem;
  }

  .tips-deadline {
    padding: 0.28rem 0.34rem;
    min-width: 6rem;
  }

  .tips-progress-card {
    padding: 0.34rem 0.42rem;
  }

  .tips-status-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.38rem 0.44rem;
    font-size: 0.56rem;
  }

  .modern-tip-card {
    padding: 0.25rem 0.3rem;
  }

  .modern-tip-main {
    grid-template-columns: minmax(0, 1fr) 3.42rem minmax(0, 1fr);
    column-gap: 0.18rem;
    min-height: 2.05rem;
  }

  .modern-tip-team {
    font-size: clamp(0.49rem, 2.15vw, 0.6rem);
    line-height: 1;
  }

  .modern-score-picker {
    grid-template-columns: 1.4rem 0.3rem 1.4rem;
    gap: 0.06rem;
  }

  .modern-tip-input.score-picker-value {
    height: 1.2rem;
    min-height: 1.2rem;
    font-size: 0.62rem;
    line-height: 1.2rem;
  }

  .modern-score-separator {
    width: 0.3rem;
    font-size: 0.64rem;
  }

  .modern-tip-status,
  .modern-tip-time {
    font-size: 0.4rem;
  }

  .tips-sticky-actions .tips-save-button {
    min-height: 1.62rem;
    font-size: 0.58rem;
  }
}
/* Modern Tablica LIVE */
.live-table-panel {
  overflow: hidden;
}

.live-table-titlebar,
.live-table-toolbar,
.live-table-metrics,
.live-table-status-card,
.live-table-legend {
  display: flex;
  align-items: center;
}

.live-table-titlebar {
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.live-table-titlebar h2 {
  margin: 0;
  font-size: clamp(1.3rem, 4.5vw, 2rem);
}

.live-table-titlebar .eyebrow {
  margin-bottom: 0.2rem;
  color: var(--cyan);
}

.live-table-refresh {
  width: 2.65rem;
  height: 2.65rem;
  border-color: rgba(79, 158, 255, 0.35);
  background: rgba(31, 101, 190, 0.22);
}

.live-table-refresh svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-table-toolbar {
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(93, 151, 255, 0.22);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0 0, rgba(25, 201, 255, 0.12), transparent 32%),
    rgba(6, 18, 34, 0.82);
}

.live-table-status-card {
  gap: 0.7rem;
  min-width: 0;
}

.live-table-status-card strong,
.live-table-status-card span {
  display: block;
}

.live-table-status-card strong {
  color: #fff;
  font-size: 1rem;
}

.live-table-status-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.live-table-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.55rem;
  border-radius: 0.55rem;
  color: #ff6060;
  background: rgba(255, 65, 65, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
}

.live-table-live-badge span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: #ff4e4e;
  box-shadow: 0 0 0 0 rgba(255, 78, 78, 0.55);
  animation: livePulse 1.45s infinite;
}

.live-table-metrics {
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.live-table-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(124, 167, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.live-table-metrics strong {
  color: #fff;
  font-size: 0.86rem;
}

.live-table-filters {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.75rem;
  background: rgba(7, 19, 35, 0.78);
}

.live-table-toolbar[hidden],
.live-table-round-picker[hidden] {
  display: none !important;
}

.live-table-round-picker {
  margin: -0.25rem 0 0.68rem;
}

.live-table-round-picker label {
  display: grid;
  gap: 0.32rem;
  max-width: 14rem;
}

.live-table-round-picker span {
  color: #72e6ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-table-round-picker select {
  min-height: 2.35rem;
  border: 1px solid rgba(93, 151, 255, 0.34);
  border-radius: 0.78rem;
  padding: 0 2.4rem 0 0.8rem;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(12, 31, 57, 0.94), rgba(11, 18, 40, 0.92)),
    #071323;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  outline: none;
}

.live-table-round-picker select:focus {
  border-color: rgba(114, 230, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(25, 201, 255, 0.14);
}

.live-table-board {
  overflow: hidden;
}

.live-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(93, 151, 255, 0.22);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(5, 17, 32, 0.8);
  -webkit-overflow-scrolling: touch;
}

.live-table-grid {
  display: grid;
  grid-template-columns: 2.6rem minmax(8.8rem, 1.35fr) repeat(7, minmax(3rem, 0.45fr)) minmax(9rem, 1fr);
  min-width: 48rem;
  align-items: center;
  column-gap: 0.45rem;
}

.live-table-header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 2.55rem;
  padding: 0 0.75rem;
  color: var(--muted);
  background: rgba(7, 19, 35, 0.96);
  border-bottom: 1px solid rgba(124, 167, 255, 0.13);
  font-size: 0.72rem;
  font-weight: 900;
}

.live-table-row {
  position: relative;
  min-height: 3.7rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid rgba(124, 167, 255, 0.11);
  color: rgba(238, 246, 255, 0.86);
  font-size: 0.84rem;
}

.live-table-row:last-child {
  border-bottom: 0;
}

.live-table-row.is-first {
  background:
    linear-gradient(90deg, rgba(34, 199, 122, 0.22), rgba(34, 199, 122, 0.035)),
    rgba(10, 36, 35, 0.42);
  box-shadow: inset 0.25rem 0 0 #22c77a;
}

.live-table-row.is-me {
  outline: 1px solid rgba(104, 224, 255, 0.58);
  outline-offset: -1px;
  background:
    linear-gradient(90deg, rgba(47, 125, 255, 0.2), transparent 55%),
    rgba(15, 32, 58, 0.62);
}

.live-table-rank,
.live-table-player {
  position: sticky;
  z-index: 2;
  background: inherit;
}

.live-table-rank {
  left: 0;
  color: #fff;
  font-weight: 950;
}

.live-table-player {
  left: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-weight: 950;
}

.live-table-player strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-table-player .leader-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
}

.live-table-points {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
}

.live-table-form {
  display: inline-flex;
  gap: 0.25rem;
}

.live-form-badge {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 950;
}

.live-form-badge.w { background: #22c77a; }
.live-form-badge.d { background: #8fa0b8; }
.live-form-badge.l { background: #ef4444; }
.live-form-badge.n {
  color: #9aa9bf;
  background: rgba(154, 169, 191, 0.16);
}

.live-table-legend {
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.35rem 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.live-table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.live-table-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.live-table-legend .w { background: #22c77a; }
.live-table-legend .d { background: #8fa0b8; }
.live-table-legend .l { background: #ef4444; }
.live-table-legend .n { background: rgba(154, 169, 191, 0.45); }

.live-table-empty {
  padding: 1.2rem;
  border: 1px dashed rgba(124, 167, 255, 0.26);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  .live-table-panel {
    padding: 0.78rem;
  }

  .live-table-toolbar {
    align-items: flex-start;
    padding: 0.62rem;
  }

  .live-table-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    font-size: 0.62rem;
  }

  .live-table-metrics span {
    justify-content: flex-end;
    padding: 0.28rem 0.42rem;
  }

  .live-table-grid {
    grid-template-columns: 2.2rem minmax(7.4rem, 1.25fr) repeat(7, minmax(2.55rem, 0.42fr)) minmax(7.5rem, 1fr);
    min-width: 42rem;
    column-gap: 0.32rem;
  }

  .live-table-header {
    min-height: 2.25rem;
    padding: 0 0.55rem;
    font-size: 0.66rem;
  }

  .live-table-row {
    min-height: 3.35rem;
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .live-table-player {
    left: 2.2rem;
    gap: 0.38rem;
  }

  .live-table-player strong {
    font-size: 0.78rem;
  }

  .live-table-player .leader-avatar {
    width: 1.55rem;
    height: 1.55rem;
  }

  .live-table-points {
    font-size: 0.86rem;
  }

  .live-form-badge {
    width: 1.12rem;
    height: 1.12rem;
    font-size: 0.56rem;
  }
}

/* Compact LIVE table pass */
.live-table-panel {
  padding: clamp(0.62rem, 2.4vw, 0.9rem);
}

.live-table-titlebar {
  margin-bottom: 0.5rem;
}

.live-table-titlebar h2 {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.live-table-toolbar {
  min-height: 3.7rem;
  margin-bottom: 0.5rem;
  padding: 0.58rem 0.62rem;
  border-radius: 0.82rem;
}

.live-table-status-card {
  gap: 0.52rem;
}

.live-table-status-card:empty {
  display: none;
}

.live-table-status-card strong {
  font-size: 0.86rem;
}

.live-table-status-card span {
  font-size: 0.66rem;
}

.live-table-live-badge {
  padding: 0.35rem 0.46rem;
  border-radius: 0.48rem;
  font-size: 0.68rem;
}

.live-table-live-badge span {
  width: 0.45rem;
  height: 0.45rem;
}

.live-table-metrics {
  gap: 0.32rem;
  font-size: 0.58rem;
}

.live-table-metrics span {
  padding: 0.24rem 0.34rem;
}

.live-table-metrics strong {
  font-size: 0.7rem;
}

.live-table-filters {
  margin-bottom: 0.52rem;
}

.live-table-filters button {
  min-height: 2rem;
  padding: 0.34rem 0.55rem;
  font-size: 0.68rem;
}

.live-table-scroll {
  overflow-x: hidden;
  border-radius: 0.8rem;
}

.live-table-grid {
  grid-template-columns: 1.15rem minmax(5rem, 1fr) repeat(7, minmax(1.08rem, 1.08rem)) minmax(4.15rem, 4.15rem);
  min-width: 0;
  column-gap: 0.08rem;
}

.live-table-header {
  min-height: 1.95rem;
  padding: 0 0.34rem;
  font-size: clamp(0.49rem, 1.7vw, 0.62rem);
}

.live-table-row {
  min-height: 2.78rem;
  padding: 0 0.34rem;
  font-size: clamp(0.52rem, 1.8vw, 0.66rem);
}

.live-table-row.is-first {
  box-shadow: inset 0.15rem 0 0 #22c77a;
}

.live-table-player {
  left: 1.15rem;
  gap: 0.26rem;
}

.live-table-player strong {
  font-size: clamp(0.62rem, 2vw, 0.74rem);
  line-height: 1.05;
}

.live-table-player .leader-avatar {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.46rem;
}

.live-table-rank {
  font-size: 0.66rem;
}

.live-table-points {
  font-size: 0.72rem;
}

.live-table-form {
  gap: 0.1rem;
}

.live-form-badge {
  width: 0.92rem;
  height: 0.92rem;
  font-size: 0.48rem;
}

.live-table-legend {
  gap: 0.48rem;
  padding-top: 0.5rem;
  font-size: 0.62rem;
}

.live-table-legend i {
  width: 0.48rem;
  height: 0.48rem;
}

.live-table-short-legend {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.35;
}

.live-table-update-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.58rem;
  margin-top: 0.62rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(93, 151, 255, 0.22);
  border-radius: 0.82rem;
  background:
    radial-gradient(circle at 0 50%, rgba(34, 199, 122, 0.1), transparent 36%),
    rgba(6, 18, 34, 0.78);
}

.live-table-update-strip strong,
.live-table-update-strip span {
  display: block;
}

.live-table-update-strip strong {
  color: rgba(239, 246, 255, 0.82);
  font-size: 0.72rem;
}

.live-table-update-strip span {
  color: var(--muted);
  font-size: 0.66rem;
}

.live-table-update-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #23d66c;
}

.live-table-update-icon svg,
.live-table-refresh-bottom svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-table-refresh-bottom {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.58rem;
  color: #58a8ff;
  border-color: rgba(79, 158, 255, 0.25);
  background: rgba(31, 101, 190, 0.16);
}

@media (max-width: 380px) {
  .live-table-grid {
    grid-template-columns: 1rem minmax(4.55rem, 1fr) repeat(7, minmax(0.96rem, 0.96rem)) minmax(3.78rem, 3.78rem);
  }

  .live-table-header,
  .live-table-row {
    padding-inline: 0.24rem;
  }

  .live-table-player {
    left: 1rem;
  }

  .live-table-player .leader-avatar {
    display: none;
  }
}

/* Premium compact settings */
#settings .settings-panel {
  width: min(100%, 31rem);
  margin-inline: auto;
  padding: clamp(0.95rem, 3vw, 1.25rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}

#settings .settings-home {
  gap: 0.9rem;
}

#settings .settings-title {
  display: grid;
  gap: 0.08rem;
  margin: 0 0 0.35rem;
}

#settings .settings-title h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.85rem, 7vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
}

#settings .settings-title p {
  margin: 0;
  color: rgba(221, 230, 246, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}

#settings .settings-active-round-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 4.15rem;
  margin: 0 0 0.35rem;
  padding: 0.72rem 0.88rem;
  border: 1px solid rgba(92, 151, 255, 0.28);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 92% 18%, rgba(106, 71, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 41, 76, 0.82), rgba(11, 23, 44, 0.86));
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#settings .settings-active-round-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#settings .settings-round-status {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

#settings .settings-round-status i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #22e06f;
  box-shadow: 0 0 1rem rgba(34, 224, 111, 0.55);
}

#settings .settings-round-status em {
  color: #35ec80;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#settings #settingsActiveRoundName {
  grid-column: 1;
  min-width: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#settings .settings-round-flag {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  overflow: hidden;
  border-radius: 0.7rem;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
  color: #ffffff;
  background: linear-gradient(135deg, #16c9ff, #765cff);
  line-height: 1;
  filter: drop-shadow(0 0.35rem 0.65rem rgba(0, 0, 0, 0.3));
}

#settings .settings-round-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#settings .settings-round-flag span {
  display: grid;
  place-items: center;
}

#settings .settings-active-round-picker small {
  color: #6ca8ff;
  font-size: 1.35rem;
  font-weight: 900;
}

#settings .premium-settings-list {
  display: grid;
  gap: 0.9rem;
}

#settings .settings-menu-section {
  display: grid;
  gap: 0.48rem;
}

#settings .settings-menu-section h3 {
  margin: 0 0 0 0.72rem;
  color: #3891ff;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#settings .settings-menu-card {
  overflow: hidden;
  border: 1px solid rgba(84, 143, 255, 0.25);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 96% 0%, rgba(94, 72, 255, 0.12), transparent 32%),
    rgba(10, 24, 46, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#settings .settings-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.55rem 1fr auto;
  align-items: center;
  gap: 0.68rem;
  min-height: 4.35rem;
  width: 100%;
  padding: 0.58rem 0.78rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7fbff;
  text-align: left;
  box-shadow: none;
  transform: translateZ(0);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#settings .settings-list-item + .settings-list-item {
  border-top: 1px solid rgba(121, 159, 219, 0.12);
}

#settings .settings-list-item::before {
  content: "";
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  color: #58a4ff;
  font-size: 1.12rem;
  background:
    linear-gradient(135deg, rgba(44, 111, 255, 0.22), rgba(37, 187, 255, 0.1)),
    rgba(26, 55, 103, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#settings .settings-list-item[data-icon="trophy"]::before { content: "🏆"; }
#settings .settings-list-item[data-icon="gift"]::before { content: "🎁"; }
#settings .settings-list-item[data-icon="users"]::before { content: "👥"; }
#settings .settings-list-item[data-icon="user"]::before { content: "👤"; }
#settings .settings-list-item[data-icon="lock"]::before { content: "🔒"; }
#settings .settings-list-item[data-icon="globe"]::before { content: "🌐"; }
#settings .settings-list-item[data-icon="bell"]::before { content: "🔔"; }
#settings .settings-list-item[data-icon="download"]::before { content: "⬇"; }
#settings .settings-list-item[data-icon="moon"]::before { content: "🌙"; }
#settings .settings-list-item[data-icon="info"]::before { content: "ⓘ"; }
#settings .settings-list-item[data-icon="file"]::before { content: "📄"; }
#settings .settings-list-item[data-icon="mail"]::before { content: "✉"; }
#settings .settings-list-item[data-icon="reset"]::before { content: "↻"; }
#settings .settings-list-item[data-icon="shield"]::before { content: "🛡"; }
#settings .settings-list-item[data-icon="trash"]::before { content: "🗑"; }

#settings .settings-list-item span,
#settings .settings-list-item strong {
  grid-column: 2;
  min-width: 0;
}

#settings .settings-list-item span {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1.08;
}

#settings .settings-list-item strong {
  margin-top: 0.16rem;
  color: rgba(194, 209, 232, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

#settings .settings-list-item::after {
  content: "›";
  grid-column: 3;
  grid-row: 1 / span 2;
  position: static;
  color: #3f91ff;
  font-size: 1.45rem;
  font-weight: 1000;
  transform: none;
}

#settings .settings-list-item:hover,
#settings .settings-list-item:focus-visible,
#settings .settings-list-item:active {
  transform: scale(1.012);
  background: rgba(40, 103, 209, 0.14);
  box-shadow: 0 0 1.3rem rgba(55, 132, 255, 0.18);
}

#settings .settings-toggle-item::after {
  display: none;
}

#settings .settings-toggle-item b {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: relative;
  width: 2.65rem;
  height: 1.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1588ff, #7a5cff);
  box-shadow: 0 0 1rem rgba(79, 139, 255, 0.28);
}

#settings .settings-toggle-item b::after {
  content: "";
  position: absolute;
  top: 0.17rem;
  right: 0.18rem;
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 999px;
  background: #fff;
}

#settings .settings-danger-section h3 {
  color: #ff626b;
}

#settings .settings-danger-section .settings-menu-card {
  border-color: rgba(255, 92, 105, 0.34);
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 83, 99, 0.12), transparent 34%),
    rgba(70, 19, 31, 0.68);
}

#settings .settings-danger-section .settings-list-item::before {
  color: #ff6a74;
  background: rgba(255, 79, 94, 0.16);
}

#settings .settings-danger-section .settings-list-item::after {
  color: #ff7078;
}

#settings .settings-app-footnote {
  margin: 0.85rem 0 0;
  color: rgba(199, 210, 226, 0.6);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

#settings .settings-app-footnote span {
  font-weight: 700;
}

@media (max-width: 430px) {
  #settings .settings-panel {
    padding-inline: 0.82rem;
  }

  #settings .settings-list-item {
    min-height: 4.05rem;
    grid-template-columns: 2.36rem 1fr auto;
    gap: 0.58rem;
  }

  #settings .settings-list-item::before {
    width: 2.08rem;
    height: 2.08rem;
    font-size: 1rem;
  }
}

/* Final Tipovi alignment guard: keeps the score fixed in the center and team names inside their lanes. */
#tips .modern-tip-list {
  overflow: hidden;
}

#tips .modern-tip-card {
  overflow: hidden;
  padding: 0.46rem 0.62rem !important;
}

#tips .modern-tip-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(4.55rem, 20vw, 5.25rem) minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: clamp(0.2rem, 1.2vw, 0.48rem) !important;
  min-height: 3.05rem !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#tips .modern-tip-team {
  display: -webkit-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #f8fbff !important;
  font-size: clamp(0.78rem, 2.8vw, 0.96rem) !important;
  font-weight: 1000 !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

#tips .modern-tip-team.home {
  grid-column: 1 !important;
  padding-right: 0.22rem !important;
  text-align: right !important;
}

#tips .modern-tip-team.away {
  grid-column: 3 !important;
  padding-left: 0.22rem !important;
  text-align: left !important;
}

#tips .modern-tip-center {
  grid-column: 2 !important;
  justify-self: center !important;
  width: 100% !important;
  max-width: 5.25rem !important;
  z-index: 2;
}

#tips .modern-score-picker {
  position: relative !important;
  grid-template-columns: 1.5rem 0.48rem 1.5rem !important;
  justify-content: center !important;
  justify-self: center !important;
  align-items: center !important;
  gap: 0 !important;
  width: max-content !important;
}

#tips .modern-tip-input.score-picker-value {
  width: 1.5rem !important;
  height: 1.28rem !important;
  min-height: 1.28rem !important;
  font-size: 0.72rem !important;
  line-height: 1.28rem !important;
}

#tips .modern-score-separator {
  width: 0.48rem !important;
  font-size: 0.76rem !important;
  line-height: 1 !important;
  text-align: center !important;
  color: rgba(236, 243, 255, 0.9) !important;
  transform: translateY(-0.02rem);
  pointer-events: none;
}

#tips .modern-tip-card-top {
  justify-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
}

@media (max-width: 430px) {
  #tips .modern-tip-card {
    padding: 0.44rem 0.54rem !important;
  }

  #tips .modern-tip-main {
    grid-template-columns: minmax(0, 1fr) 4.55rem minmax(0, 1fr) !important;
    column-gap: 0.16rem !important;
    min-height: 2.95rem !important;
  }

  #tips .modern-tip-team {
    font-size: clamp(0.74rem, 3.35vw, 0.86rem) !important;
  }

  #tips .modern-tip-team.home {
    padding-right: 0.16rem !important;
  }

  #tips .modern-tip-team.away {
    padding-left: 0.16rem !important;
  }

  #tips .modern-score-picker {
    grid-template-columns: 1.34rem 0.48rem 1.34rem !important;
    gap: 0 !important;
  }

  #tips .modern-tip-input.score-picker-value {
    width: 1.34rem !important;
    height: 1.22rem !important;
    min-height: 1.22rem !important;
    font-size: 0.7rem !important;
    line-height: 1.22rem !important;
  }

  #tips .modern-score-separator {
    width: 0.48rem !important;
    font-size: 0.72rem !important;
  }
}

/* Hard fix: keep the result separator physically between both score fields. */
#tips .modern-score-picker,
body #tips .modern-score-picker {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  gap: 0.28rem !important;
  width: auto !important;
  min-width: 4.55rem !important;
  max-width: 4.55rem !important;
  grid-template-columns: none !important;
}

#tips .modern-tip-input.score-picker-value,
body #tips .modern-tip-input.score-picker-value {
  flex: 0 0 1.56rem !important;
  width: 1.56rem !important;
  min-width: 1.56rem !important;
  max-width: 1.56rem !important;
  height: 1.34rem !important;
  min-height: 1.34rem !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 0.78rem !important;
  line-height: 1.34rem !important;
}

#tips .modern-score-separator,
body #tips .modern-score-separator {
  flex: 0 0 0.36rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 0.36rem !important;
  min-width: 0.36rem !important;
  max-width: 0.36rem !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(238, 245, 255, 0.95) !important;
  font-size: 0.78rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  transform: none !important;
}

@media (max-width: 430px) {
  #tips .modern-score-picker,
  body #tips .modern-score-picker {
    gap: 0.24rem !important;
    min-width: 4.28rem !important;
    max-width: 4.28rem !important;
  }

  #tips .modern-tip-input.score-picker-value,
  body #tips .modern-tip-input.score-picker-value {
    flex-basis: 1.48rem !important;
    width: 1.48rem !important;
    min-width: 1.48rem !important;
    max-width: 1.48rem !important;
    height: 1.3rem !important;
    min-height: 1.3rem !important;
    font-size: 0.76rem !important;
    line-height: 1.3rem !important;
  }

  #tips .modern-score-separator,
  body #tips .modern-score-separator {
    flex-basis: 0.32rem !important;
    width: 0.32rem !important;
    min-width: 0.32rem !important;
    max-width: 0.32rem !important;
  }
}
