:root {
  --bg: #eef6ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.94);
  --text: #111827;
  --muted: #667085;
  --primary: #2f6bff;
  --primary-2: #26c6ff;
  --primary-dark: #123d9a;
  --accent: #ffcf33;
  --pink: #ff5da2;
  --purple: #8b5cf6;
  --success: #12b76a;
  --warning: #f79009;
  --danger: #f04438;
  --line: rgba(16,24,40,0.11);
  --shadow: 0 24px 70px rgba(18, 36, 90, 0.16);
  --shadow-soft: 0 12px 35px rgba(18, 36, 90, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(47,107,255,.25), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255,93,162,.18), transparent 28%),
    radial-gradient(circle at 50% 95%, rgba(255,207,51,.20), transparent 30%),
    linear-gradient(135deg, #f3f8ff 0%, #fff8e8 48%, #f5f1ff 100%);
  overflow-x: hidden;
}
body:before,
body:after {
  content: "";
  position: fixed;
  inset: auto auto 6% -90px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-conic-gradient(from 30deg, rgba(47,107,255,.15) 0 10deg, rgba(255,255,255,.05) 10deg 20deg);
  filter: blur(.2px);
  animation: drift 12s ease-in-out infinite;
}
body:after {
  inset: 10% -110px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,207,51,.22), transparent 60%);
  animation-duration: 15s;
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 4px solid rgba(47,107,255,.18);
  outline-offset: 2px;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eaf5ff, #fff6d7);
  transition: opacity .45s ease, visibility .45s ease;
}
.boot-screen.hide { opacity: 0; visibility: hidden; }
.boot-card {
  display: grid;
  gap: 8px;
  place-items: center;
  width: min(82vw, 310px);
  padding: 28px;
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
}
.boot-card strong { font-size: 20px; }
.boot-card span { color: var(--muted); font-size: 13px; }
.boot-ball {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  font-size: 54px;
  background: linear-gradient(135deg, #fff, #dfefff);
  animation: bootKick 1.1s ease-in-out infinite alternate;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

.app-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 15px 14px calc(104px + var(--safe-bottom));
  perspective: 1200px;
}

.network-banner {
  position: sticky;
  top: 6px;
  z-index: 45;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff4d8;
  color: #7a4500;
  border: 1px solid rgba(247,144,9,.25);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.app-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease;
}
.app-header:hover { box-shadow: 0 30px 80px rgba(47,107,255,.18); }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #2f6bff, #37d5ff 55%, #ffcf33);
  color: white;
  box-shadow: 0 15px 30px rgba(47,107,255,.30), inset 0 1px 0 rgba(255,255,255,.4);
  transform: translateZ(24px);
}
.brand-mark span { font-size: 29px; animation: tinySpin 6s linear infinite; }
.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}
h1 { margin: 0; font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
h3 { margin: 0 0 10px; font-size: 17px; }
p { line-height: 1.7; }

.install-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #111827;
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17,24,39,.18);
  transition: transform .18s ease;
}
.install-btn:hover { transform: translateY(-2px) rotate(-1deg); }

.app-main { padding: 18px 2px; animation: pageIn .35s ease both; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.35), transparent 18%),
    linear-gradient(135deg, #2f6bff, #16b8ff 48%, #12b76a 78%, #ffcf33 130%);
  color: white;
  box-shadow: 0 28px 70px rgba(47,107,255,.30);
  transform-style: preserve-3d;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.22);
  transform: translateZ(20px);
  pointer-events: none;
}
.hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  inset-inline-start: -100px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.hero h2 { font-size: 27px; margin-bottom: 8px; text-shadow: 0 8px 22px rgba(0,0,0,.14); }
.hero p { margin: 0; color: rgba(255,255,255,.92); font-size: 13px; }
.hero-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.stadium-3d {
  width: 122px;
  height: 122px;
  flex: 0 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-18deg) translateZ(15px);
  animation: stadiumFloat 4.8s ease-in-out infinite;
}
.pitch {
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, #18b66b, #0f8f55);
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 35px 55px rgba(0,0,0,.20);
}
.pitch:before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
}
.pitch:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.72);
}
.ball-3d {
  position: absolute;
  inset-inline-start: 48px;
  top: -18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 28px;
  transform: translateZ(72px) rotateX(-58deg);
  box-shadow: 0 22px 30px rgba(0,0,0,.22);
  animation: ballBounce 1.75s ease-in-out infinite;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stack { display: grid; gap: 14px; }
.mt { margin-top: 16px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card, .match-card, .leader-row, .request-row, .dev-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: var(--card-strong);
  border: 1px solid rgba(255,255,255,0.80);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.78), transparent 24%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.card:hover:before { opacity: 1; }
.card:hover { transform: translateY(-2px); }

.stat {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
}
.stat strong { display: block; font-size: 24px; line-height: 1; }
.stat span { color: var(--muted); font-size: 12px; }
.stat .mini { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--primary-dark); font-weight: 800; }

.primary-btn, .secondary-btn, .ghost-btn, .danger-btn, .success-btn, .fun-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease, filter .18s ease;
  min-height: 43px;
}
.primary-btn { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 14px 28px rgba(47,107,255,0.24); }
.secondary-btn { background: #ecf3ff; color: var(--primary-dark); }
.ghost-btn { background: rgba(16,24,40,0.06); color: var(--text); }
.danger-btn { background: #fee4e2; color: #b42318; }
.success-btn { background: #dcfae6; color: #067647; }
.fun-btn { background: linear-gradient(135deg, #ffcf33, #ff8a00); color: #3a2600; box-shadow: 0 14px 30px rgba(255,138,0,.20); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .danger-btn:hover, .success-btn:hover, .fun-btn:hover {
  transform: translateY(-2px) rotate(-.6deg);
  filter: saturate(1.05);
}
.primary-btn:active, .secondary-btn:active, .ghost-btn:active, .danger-btn:active, .success-btn:active, .fun-btn:active { transform: translateY(1px) scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; filter: grayscale(.2); }
.full { width: 100%; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.check-field { grid-template-columns: auto 1fr; align-items: start; }
label { color: #344054; font-weight: 900; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(255,255,255,.88);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: rgba(47,107,255,.55); box-shadow: 0 0 0 4px rgba(47,107,255,.09); transform: translateY(-1px); }
input[type="checkbox"] { width: auto; margin-top: 4px; transform: none; }

.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avatar-choice, .avatar-badge {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 2px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.95), transparent 38%),
    linear-gradient(145deg, #ffffff, #eef5ff);
  font-size: 30px;
  box-shadow: 0 12px 25px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.75);
  transform-style: preserve-3d;
  cursor: pointer;
}
.avatar-choice small { display: block; margin-top: -2px; color: var(--muted); font-size: 10px; font-weight: 900; }
.avatar-choice:hover { transform: translateY(-5px) rotateX(10deg) rotateY(-8deg); box-shadow: 0 22px 38px rgba(47,107,255,.15); }
.avatar-choice.selected { border-color: var(--primary); background: linear-gradient(145deg, #eff6ff, #ffffff); box-shadow: 0 18px 40px rgba(47,107,255,.18); }
.avatar-badge { width: 66px; height: 66px; min-height: 66px; animation: avatarWiggle 3.5s ease-in-out infinite; }

.match-card {
  position: relative;
  border-radius: 30px;
  padding: 16px;
  background:
    radial-gradient(circle at var(--mx, 20%) var(--my, 10%), rgba(255,255,255,.8), transparent 22%),
    rgba(255,255,255,0.90);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(16,24,40,.10);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.match-card:hover { box-shadow: 0 26px 58px rgba(47,107,255,.16); }
.match-card:after {
  content: "";
  position: absolute;
  inset: -80px auto auto -90px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(47,107,255,.07);
  pointer-events: none;
}
.match-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom: 12px; position: relative; z-index: 1; }
.phase { color: var(--muted); font-size: 12px; font-weight: 900; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #f2f4f7;
  color: #344054;
}
.badge.open { background: #dcfae6; color: #067647; }
.badge.locked { background: #fff1cc; color: #93370d; }
.badge.done { background: #e0eaff; color: #1849a9; }
.badge.pending { background: #fff1cc; color: #93370d; }
.badge.rejected { background: #fee4e2; color: #b42318; }
.badge.approved { background: #dcfae6; color: #067647; }
.badge.fun { background: #fff3c4; color: #8a4b00; }

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: 8px 0 14px;
  position: relative;
  z-index: 1;
}
.team {
  min-height: 94px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 24px;
  background: linear-gradient(155deg, #ffffff, #f4f8ff);
  border: 1px solid var(--line);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .18s ease;
}
.team:hover { transform: translateZ(20px) scale(1.02); }
.team .flag { font-size: 34px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.10)); }
.team small { color: var(--muted); font-weight: 700; }
.vs {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #111827;
  color: white;
  font-size: 12px;
  font-weight: 950;
  transform: rotate(-8deg) translateZ(30px);
  box-shadow: 0 14px 24px rgba(17,24,39,.18);
}
.predict-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.predict-actions.two { grid-template-columns: 1fr 1fr; }
.prediction-pill { margin-top: 10px; color: var(--primary-dark); background:#ecf3ff; padding: 10px 12px; border-radius: 17px; font-size: 13px; font-weight: 800; position: relative; z-index: 1; }
.timer-pill { display:inline-flex; margin-top: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(255,207,51,.25); color: #7a4500; font-size: 12px; font-weight: 900; }

.leader-row, .request-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 24px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(16,24,40,.06);
}
.leader-row:first-child { background: linear-gradient(135deg, rgba(255,207,51,.40), rgba(255,255,255,.88)); }
.rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
  font-weight: 950;
}
.points { font-size: 22px; font-weight: 950; color: var(--primary); }
.small { color: var(--muted); font-size: 12px; }
.empty {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.58);
}

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { white-space: nowrap; border:0; border-radius:999px; padding: 10px 14px; background: #eef2f7; color:#344054; font-weight:900; cursor: pointer; }
.tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; }
.admin-section { display: none; }
.admin-section.active { display: grid; gap: 14px; }

.dev-card {
  border-radius: 26px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(239,246,255,.92));
  border: 1px solid var(--line);
}
.dev-card.done { opacity: .72; }
.dev-card h4 { margin: 0 0 6px; }
.code-chip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  direction: ltr;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 24px), 500px);
  border-radius: 28px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.nav-item {
  border: 0;
  border-radius: 21px;
  background: transparent;
  color: #667085;
  padding: 8px 4px;
  font-size: 11px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  place-items: center;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.nav-item span { font-size: 19px; }
.nav-item:hover { transform: translateY(-2px); }
.nav-item.active { background: linear-gradient(135deg, #2f6bff, #26c6ff); color: #fff; box-shadow: 0 12px 24px rgba(47,107,255,.20); }

.hidden { display: none !important; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 90;
  width: min(calc(100% - 28px), 452px);
  background: #111827;
  color: white;
  padding: 13px 15px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
  animation: toastIn .25s ease both;
}

@keyframes bootKick { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-12px) rotate(12deg); } }
@keyframes tinySpin { to { transform: rotate(360deg); } }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-24px) rotate(18deg); } }
@keyframes stadiumFloat { 0%,100% { transform: rotateX(58deg) rotateZ(-18deg) translateZ(15px) translateY(0); } 50% { transform: rotateX(58deg) rotateZ(-11deg) translateZ(22px) translateY(-6px); } }
@keyframes ballBounce { 0%,100% { transform: translateZ(72px) rotateX(-58deg) translateY(0); } 50% { transform: translateZ(104px) rotateX(-58deg) translateY(-16px); } }
@keyframes avatarWiggle { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg) translateY(-2px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

@media (hover: none) {
  .card:hover, .match-card:hover, .avatar-choice:hover, .primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .danger-btn:hover, .success-btn:hover, .fun-btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 390px) {
  .app-shell { padding-inline: 10px; }
  .hero { min-height: 210px; padding: 18px; }
  .hero h2 { font-size: 23px; }
  .stadium-3d { width: 96px; height: 96px; }
  .ball-3d { width: 38px; height: 38px; font-size: 24px; }
  .predict-actions, .predict-actions.two, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .app-header { align-items: flex-start; }
  h1 { font-size: 15px; }
}

/* Online MVP additions */
.message-box{margin:0 0 14px;padding:12px 14px;border-radius:18px;border:1px solid rgba(16,42,67,.1);background:#eef7ff;color:#102a43;font-weight:800}.message-box.error{background:#fff1f2;color:#9f1239;border-color:#fecdd3}.message-box.ok{background:#ecfdf5;color:#065f46;border-color:#bbf7d0}.avatar-mini{font-size:32px;display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff;box-shadow:0 10px 25px rgba(16,42,67,.08)}.match-admin-row{display:grid;gap:12px;padding:14px;border:1px solid rgba(16,42,67,.08);border-radius:20px;background:rgba(255,255,255,.72)}.result-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.result-form input{min-width:0}@media(max-width:620px){.result-form{grid-template-columns:1fr 1fr}.result-form button{grid-column:1/-1}}.primary-btn:disabled,.secondary-btn:disabled,.ghost-btn:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.4)}.two{grid-template-columns:1fr 1fr!important}.mt{margin-top:16px}.full{width:100%}.small{font-size:13px;color:var(--muted);line-height:1.6}.empty{text-align:center;color:var(--muted);padding:20px}.check-field{display:flex!important;align-items:flex-start;gap:8px;font-weight:700}.prediction-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(47,107,255,.09);border:1px solid rgba(47,107,255,.14);padding:8px 12px;border-radius:999px;font-weight:800}.danger-btn{border:0;border-radius:16px;padding:12px 14px;background:linear-gradient(135deg,#fb7185,#ef4444);color:white;font-weight:900;cursor:pointer;box-shadow:0 12px 28px rgba(239,68,68,.2)}

/* v3.1 refinements */
.prize-pill{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.32);color:#fff;font-weight:900;box-shadow:0 12px 30px rgba(16,42,67,.12);backdrop-filter:blur(10px)}
.hero-line{max-width:430px}
.source-card{border-color:rgba(47,107,255,.18)}
.source-note{padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,rgba(255,209,102,.18),rgba(47,107,255,.08));border:1px solid rgba(255,209,102,.34);color:#102a43;line-height:1.65;font-size:13px}
.brand{cursor:default;user-select:none}
.brand:active .brand-mark{transform:scale(.96) rotate(-4deg)}

/* v4 additions: ads, approvals, notifications, mini game */
.ticker {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0; padding: 10px 14px;
  border-radius: 999px; background: rgba(17, 24, 39, .88); color: white;
  box-shadow: var(--shadow-soft); overflow: hidden; font-size: 13px; font-weight: 800;
}
.ticker marquee { flex: 1; }
.ad-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0; padding: 16px 18px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(237,247,255,.82));
  border: 1px dashed rgba(47,107,255,.34); color: var(--text); text-decoration: none;
  box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.ad-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(47,107,255,.16); }
.ad-banner strong { display: block; font-size: 15px; color: var(--primary-dark); }
.ad-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.ad-banner > span { font-size: 30px; animation: bootKick 1.4s ease-in-out infinite alternate; }
.app-footer { text-align: center; padding: 18px 8px 6px; color: var(--muted); font-size: 12px; }
.app-footer a { color: var(--primary-dark); font-weight: 900; text-decoration: none; }
.status-chip { display: inline-flex; align-items: center; margin-top: 10px; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.2); color: white; border: 1px solid rgba(255,255,255,.3); }
.status-chip.ok { background: rgba(18,183,106,.22); }
.status-chip.warn { background: rgba(255,207,51,.24); }
.status-chip.bad { background: rgba(240,68,56,.25); }
.good { color: #047857 !important; font-weight: 800; }
.warn-text { color: #92400e !important; font-weight: 800; }
.bad-text { color: #b42318 !important; font-weight: 800; }
.approval-gate { border: 1px solid rgba(247,144,9,.25); background: #fffbeb; }
.approval-gate.danger { background: #fff1f2; border-color: rgba(240,68,56,.25); }
.locked-pick { margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: #ecfdf5; color: #047857; font-weight: 900; text-align: center; border: 1px solid #bbf7d0; }
.tiny { padding: 7px 10px !important; font-size: 11px !important; border-radius: 999px !important; }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.note-row { width: 100%; text-align: right; border: 0; display: grid; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(47,107,255,.06); color: var(--text); cursor: pointer; text-decoration: none; }
.note-row:hover { background: rgba(47,107,255,.10); }
.note-row span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.note-row small { color: var(--muted); font-size: 10px; }
.note-row.static { cursor: default; }
.game-hero { background: linear-gradient(135deg, #123d9a, #2f6bff 45%, #12b76a 100%); }
.game-ball { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 74px; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 24px 60px rgba(0,0,0,.22); animation: gameBounce 1.2s ease-in-out infinite alternate; }
@keyframes gameBounce { from { transform: translateY(0) rotate(-8deg) scale(1); } to { transform: translateY(-16px) rotate(12deg) scale(1.04); } }
textarea { min-height: 86px; resize: vertical; }
.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.bottom-nav .nav-item { font-size: 10px; }
@media (max-width: 390px) {
  .bottom-nav .nav-item { font-size: 9px; padding-inline: 4px; }
  .game-ball { width: 82px; height: 82px; font-size: 54px; }
}

/* v4.1: Today schedule and flag-rich rows */
.today-card .clean { align-items: flex-start; }
.match-mini {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,246,255,.90));
  box-shadow: 0 10px 26px rgba(16,24,40,.07);
  display: grid;
  grid-template-columns: 1fr auto 42px auto 1fr;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.match-mini:hover { transform: translateY(-2px) rotate(.25deg); box-shadow: 0 18px 38px rgba(47,107,255,.14); }
.mini-time {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.mini-team { display: grid; place-items: center; gap: 2px; font-weight: 950; font-size: 12px; }
.mini-vs {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  transform: rotate(-8deg);
}
.big-flag { font-size: 33px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.12)); }
.small-pill { grid-column: 1 / -1; justify-self: center; font-size: 11px; }
.match-card .team .flag { font-size: 42px; }
@media (max-width: 380px) {
  .match-mini { grid-template-columns: 1fr auto 1fr; }
  .mini-team { font-size: 11px; }
  .big-flag { font-size: 29px; }
}
