/* Mafutaga Events: ocean blue, siapo brown, cream; hibiscus red only for "live" and the goal. */
:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #1d1a16;
  --muted: #6b6258;
  --line: #e7dfd3;
  --ocean: #0b3150;
  --ocean-2: #164d78;
  --brand: var(--ocean);
  --accent: #8a3d1c;      /* siapo brown */
  --accent-soft: #f3e4d8;
  --hibiscus: #c8203a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 26, 22, .06), 0 4px 16px rgba(29, 26, 22, .05);
  /* Siapo band: diamonds over a row of triangles, drawn as SVG so it costs nothing to load. */
  --siapo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='18' viewBox='0 0 28 18'%3E%3Crect width='28' height='18' fill='%23efe0c8'/%3E%3Cpath d='M7 1l3 3-3 3-3-3zM21 1l3 3-3 3-3-3z' fill='%231d1a16'/%3E%3Cpath d='M0 18L7 9l7 9zM14 18l7-9 7 9z' fill='%238a3d1c'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --card: #1d1a17;
    --ink: #f3ede4;
    --muted: #a99f93;
    --line: #322d27;
    --brand: #2a6a9c;
    --accent: #e09060;
    --accent-soft: #4a2e20;
    --hibiscus: #ff5a6e;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
[hidden] { display: none !important; }
.small { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.sample { background: #ffe9a8; color: #4a3800; text-align: center; font-size: 14px; padding: 8px 16px; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(8, 28, 45, .55), rgba(8, 28, 45, .9)),
    var(--cover, none) center / cover,
    radial-gradient(120% 90% at 100% 0%, var(--ocean-2), var(--ocean));
  color: #fff;
  padding: 36px 16px 28px;
}
.wrap, main, footer { max-width: 680px; margin-left: auto; margin-right: auto; }
.kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; }
.kicker span:last-child { opacity: .85; }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.status.soon { background: #efe0c8; color: #3a2414; }
.status.live { background: var(--hibiscus); color: #fff; }
.status.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .status.live::before { animation: none; } }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 8vw, 44px); line-height: 1.08; letter-spacing: -.01em; }
.hero .when { margin: 0; font-size: 17px; font-weight: 600; }
.hero .where { margin: 2px 0 20px; opacity: .85; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.light { background: #fff; color: var(--ocean); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn.solid { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.solid { color: #1d1a16; } }

.siapo { height: 18px; background: var(--siapo) repeat-x; }
.siapo.thin { margin-top: 32px; opacity: .9; }

/* Tabs */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: center;
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tabs a {
  flex: 1; max-width: 170px; padding: 14px 4px 12px; text-align: center;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px;
  border-bottom: 3px solid transparent;
}
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

main { padding: 4px 16px 8px; }
section { margin-top: 28px; }
h2 { margin: 0 0 12px; font-size: 21px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h2 .sm { font-size: 15px; font-weight: 400; color: var(--muted); font-style: italic; }
.intro { font-size: 18px; margin: 20px 0 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.lbl { margin: 0 0 8px; font-weight: 600; }

/* Sponsor strip */
.strip { margin: 16px -16px 0; padding: 0 16px; }
.strip p { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.logos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.logos::-webkit-scrollbar { display: none; }
.sponsor {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  width: 132px; height: 64px; padding: 8px 10px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: #3a332b; text-decoration: none; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25;
}
.sponsor.main { width: 180px; }
.sponsor img { max-width: 100%; max-height: 48px; object-fit: contain; }
.sponsors.one { display: flex; justify-content: center; margin-bottom: 16px; }
.supported { margin: 0 0 8px; font-size: 13px; }

/* Where + programme */
.venue { margin: 0 0 12px; }
.schedule { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--accent); }
.schedule li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0 8px 14px; }
.schedule .t { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.schedule small { display: block; color: var(--muted); font-size: 14px; }

/* My team + next game */
.pick { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 600; }
.pick select {
  flex: 1; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font: inherit; font-weight: 500;
}
.next { margin-top: 14px; border-left: 5px solid var(--accent); }
.next .k { margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.next .big { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.next .vs { margin: 4px 0 0; }
.next a { font-weight: 600; }

/* Draw */
.slots { list-style: none; margin: 0; padding: 0; }
.slot { margin-bottom: 14px; }
.slot .when { margin: 0 0 6px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.slot ul { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.game { padding: 12px 16px; }
.game + .game { border-top: 1px solid var(--line); }
.game .field {
  display: inline-block; margin-right: 8px; font-size: 12px; font-weight: 700; color: var(--ocean);
  background: #e3edf6; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .game .field { background: #1c3a55; color: #cfe3f5; } }
.game .stage { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.game .team { display: flex; justify-content: space-between; gap: 12px; line-height: 1.3; padding: 1px 0; }
.game .pts { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--muted); }
.game .team.won .nm, .game .team.won .pts { font-weight: 800; color: var(--ink); }
.game.mine { background: var(--accent-soft); }
.game.mine .nm { font-weight: 600; }

/* Teams */
.pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pools .card { margin-bottom: 0; }
.pools ul { list-style: none; margin: 0; padding: 0; }
.pools li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; }
.tag { flex-shrink: 0; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
.tag.sam { background: var(--ocean); color: #fff; }

/* Watch */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 12px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.empty { display: flex; align-items: center; justify-content: center; background: var(--ocean); color: #fff; text-align: center; padding: 16px; }
.player.empty p { margin: 0; opacity: .85; }
p.status.live { margin: 0 0 10px; }

/* Polls */
.poll { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.poll .q { margin: 0 0 12px; font-weight: 600; }
.opt {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 48px; margin-bottom: 8px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.opt .lbl, .opt .n { position: relative; z-index: 1; margin: 0; font-weight: 400; }
.opt .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); transition: width .4s ease; }
.opt.mine { border-color: var(--accent); }
.opt.mine .lbl { font-weight: 600; }
.poll.done .opt { cursor: default; }
.note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Give */
.goal .why { margin: 0 0 12px; font-size: 18px; }
.goal .nums { margin: 0 0 8px; color: var(--muted); }
.goal .nums strong { font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { height: 14px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.track span { display: block; height: 100%; border-radius: 999px; background: var(--hibiscus); }
.give dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.give dt { color: var(--muted); font-size: 15px; }
.give dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.give .btn { margin-top: 12px; }
.copy {
  margin-left: 6px; padding: 2px 12px; min-height: 30px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer;
}
.thanks { margin-top: 8px; }
.thanks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thanks li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.thanks li span { color: var(--muted); font-variant-numeric: tabular-nums; }

.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { padding: 6px 0; }

/* Footer */
footer { padding: 20px 16px 40px; text-align: center; font-size: 14px; color: var(--muted); }
footer .made { margin: 12px 0 0; }
