/* ===== Fletchers 2026 World Cup Sweepstakes ===== */
:root {
  --green: #0b6e3f;
  --pitch: #0a4d2e;
  --gold: #ffd700;
  --gold-dark: #e0a800;
  --red: #e63946;
  --blue: #4cc9f0;
  --cream: #fffbe9;
  --ink: #14213d;
  --pink: #ff5d8f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% -20%, #1b8a54 0%, transparent 60%),
    repeating-linear-gradient(90deg, var(--pitch) 0 120px, #0b5634 120px 240px);
  min-height: 100vh;
  overflow-x: hidden;
}

.stadium-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 110%, rgba(255, 215, 0, .12) 0%, transparent 55%);
  z-index: 0;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  text-align: center;
  padding: 2.2rem 1rem 1rem;
  z-index: 1;
}

.bunting {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 50%, var(--red) 50%) 0 0 / 28px 16px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--red) 50%) 14px 0 / 28px 16px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.3));
}

.title {
  font-family: "Luckiest Guy", cursive;
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(0,0,0,.35);
  letter-spacing: 1px;
}
.title span { display: block; }
.title-line1 { font-size: clamp(1.6rem, 5vw, 2.8rem); color: var(--cream); transform: rotate(-2deg); }
.title-line2 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  background: linear-gradient(180deg, #ffe66d, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,.35));
}
.title-line3 { font-size: clamp(1.8rem, 6vw, 3.2rem); color: var(--blue); transform: rotate(1.5deg); }

.tagline { opacity: .85; font-weight: 700; margin-top: .6rem; }

/* ===== Layout ===== */
#app { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 1rem; }
.screen { display: grid; gap: 1.2rem; }
.hidden { display: none !important; }

.card {
  background: rgba(10, 30, 20, .72);
  border: 2px solid rgba(255, 215, 0, .35);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.card h2 { font-family: "Luckiest Guy", cursive; letter-spacing: 1px; color: var(--gold); margin-bottom: .8rem; }

/* ===== Buttons ===== */
.btn {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: .6rem 1.3rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-add { background: var(--blue); color: var(--ink); }
.btn-spin {
  background: linear-gradient(180deg, #ffe66d, var(--gold-dark));
  color: var(--ink);
  box-shadow: 0 4px 0 #9c7400, 0 8px 18px rgba(0,0,0,.4);
}
.btn-big { font-size: 1.3rem; padding: .9rem 2rem; font-family: "Luckiest Guy", cursive; letter-spacing: 1px; }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255,255,255,.3); }
.btn-danger { border-color: rgba(230,57,70,.6); color: #ffb3ba; }

/* ===== Setup ===== */
#player-form { display: flex; gap: .6rem; margin-bottom: 1rem; }
#player-name {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: var(--cream);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
}
#player-name::placeholder { color: rgba(255,251,233,.5); }
#player-name:focus { outline: none; border-color: var(--gold); }

.player-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.player-list li {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: linear-gradient(135deg, #1d3557, #2a4d77);
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: .4rem .5rem .4rem .9rem;
  font-weight: 900;
  animation: pop-in .25s ease;
}
.player-list .remove {
  background: rgba(255,255,255,.15);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.player-list .remove:hover { background: var(--red); }

@keyframes pop-in { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.draw-summary { min-height: 1.4em; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }

.pot-explainer { font-size: .92rem; opacity: .9; margin-bottom: .8rem; }

/* ===== Per-player team counts ===== */
.count-input {
  width: 3.2rem;
  text-align: center;
  font-family: inherit;
  font-weight: 900;
  font-size: .9rem;
  color: var(--cream);
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: .2rem .15rem;
}
.count-input:focus { outline: none; border-color: var(--gold); }
.player-stake { font-size: .78rem; color: var(--gold); font-weight: 900; }
.pay-toggle {
  font-family: inherit;
  font-weight: 900;
  font-size: .8rem;
  border: 1.5px solid rgba(230, 57, 70, .6);
  border-radius: 999px;
  padding: .15rem .45rem;
  background: rgba(230, 57, 70, .15);
  color: var(--cream);
  cursor: pointer;
  transition: transform .12s ease;
}
.pay-toggle:hover { transform: scale(1.08); }
.pay-toggle.paid { border-color: rgba(6, 214, 160, .7); background: rgba(6, 214, 160, .15); }
.pay-toggle.wide { padding: .3rem .8rem; font-size: .85rem; }

/* ===== Payment collection panel ===== */
.pay-progress { font-weight: 900; color: var(--gold); margin-bottom: .5rem; }
.pay-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  margin-bottom: .8rem;
}
.pay-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06d6a0, #00f5d4);
  transition: width .4s ease;
}
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .4rem; }
.pay-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .9rem;
  padding: .35rem .6rem;
  border-radius: 12px;
  background: rgba(230, 57, 70, .08);
  border: 1px solid rgba(230, 57, 70, .25);
}
.pay-row.settled {
  background: rgba(6, 214, 160, .08);
  border-color: rgba(6, 214, 160, .3);
}
.pay-amt { font-weight: 900; color: var(--gold); }
.split-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.split-row .btn { font-size: .85rem; padding: .45rem 1rem; }
.split-hint { font-size: .8rem; opacity: .7; }

/* ===== Stake input ===== */
.stake-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stake-label { font-weight: 900; }
.stake-input-wrap { font-weight: 900; font-size: 1.1rem; color: var(--gold); display: inline-flex; align-items: center; gap: .25rem; }
#stake-input {
  width: 5.5rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: var(--cream);
  font-family: inherit;
  font-weight: 900;
  font-size: 1rem;
}
#stake-input:focus { outline: none; border-color: var(--gold); }

/* ===== Groups preview (setup) ===== */
.groups-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.group-mini {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 14px;
  padding: .6rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.group-mini h4 { font-family: "Luckiest Guy", cursive; color: var(--gold); letter-spacing: 1px; font-weight: 400; }

.chip-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  transition: opacity .3s;
}
.chip.taken { opacity: .25; text-decoration: line-through; }

/* ===== Draw screen ===== */
.draw-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .draw-layout { grid-template-columns: 1fr; } }

.wheel-panel { text-align: center; }

.turn-banner {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  letter-spacing: 1px;
  margin-bottom: .8rem;
  min-height: 2.2em;
}
.turn-banner .turn-count { color: var(--pink); }

.wheel-wrap { position: relative; width: min(92vw, 480px); margin: 0 auto; }
#wheel { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 0 2px 0 #9c7400, 0 4px 10px rgba(0,0,0,.6);
  z-index: 3;
  transition: transform .08s;
}
.wheel-pointer.wiggle { transform: translateX(-50%) rotate(8deg); }

.btn-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  letter-spacing: 1px;
  z-index: 2;
  border: 4px solid var(--cream);
  animation: pulse 1.6s ease-in-out infinite;
}
.btn-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.btn-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.95); }
.btn-hub:disabled { animation: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, .55); }
  50% { box-shadow: 0 0 0 16px rgba(255, 215, 0, 0); }
}

.draw-progress { margin-top: 1rem; font-weight: 700; opacity: .85; }
.draw-tools { margin-top: .8rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.draw-tools .btn { font-size: .85rem; }

/* ===== Scoreboard ===== */
.scoreboard { max-height: 70vh; overflow-y: auto; }
.score-player { margin-bottom: 1rem; }
.score-player.current { outline: 2px solid var(--gold); border-radius: 14px; padding: .5rem; background: rgba(255,215,0,.08); }
.score-name { font-weight: 900; font-size: 1.05rem; color: var(--gold); }
.score-teams { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.team-pill {
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  animation: pop-in .3s ease;
}
.team-pill { background: rgba(76, 201, 240, .18); border: 1px solid var(--blue); }
.no-teams { opacity: .5; font-size: .85rem; font-style: italic; }

/* ===== Reveal overlay ===== */
.reveal {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 12, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}
.reveal-card {
  text-align: center;
  background: linear-gradient(160deg, #14352a, #0a241a);
  border: 3px solid var(--gold);
  border-radius: 28px;
  padding: 2.4rem 3rem;
  max-width: min(92vw, 480px);
  box-shadow: 0 0 60px rgba(255, 215, 0, .35);
  animation: reveal-pop .45s cubic-bezier(.2, 1.6, .45, 1);
}
@keyframes reveal-pop { from { transform: scale(.3) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.reveal-flag { font-size: 5rem; line-height: 1.1; animation: flag-bounce 1.2s ease infinite; }
@keyframes flag-bounce { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

.reveal-text {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(1.3rem, 4.5vw, 2rem);
  letter-spacing: 1px;
  margin: 1rem 0 1.4rem;
  color: var(--cream);
}
.reveal-text .reveal-team { color: var(--gold); }
.reveal-text .reveal-group { font-size: .65em; opacity: .8; color: var(--blue); }

/* ===== Results ===== */
.results-card { text-align: center; }
#results-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.4rem 0; text-align: left; }
.result-player {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,215,0,.4);
  border-radius: 16px;
  padding: 1rem;
}
.result-player h3 { font-family: "Luckiest Guy", cursive; color: var(--gold); letter-spacing: 1px; margin-bottom: .5rem; }
.result-player ul { list-style: none; }
.result-player li { padding: .2rem 0; font-weight: 700; }
.result-player .pot-tag {
  font-size: .7rem; font-weight: 900; border-radius: 6px; padding: .1rem .35rem;
  margin-left: .3rem; vertical-align: middle; background: var(--blue); color: var(--ink);
}
.result-stake { font-size: .8rem; opacity: .75; margin-bottom: .4rem; }
.pot-summary { font-weight: 900; color: var(--gold); margin: .4rem 0 .6rem; }

#leftover-teams { font-size: .9rem; opacity: .85; margin-bottom: 1rem; }
.results-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ===== Main nav ===== */
.main-nav { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.nav-btn {
  font-family: "Luckiest Guy", cursive;
  letter-spacing: 1px;
  font-size: 1rem;
  border: 2px solid rgba(255,215,0,.4);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  background: rgba(10, 30, 20, .72);
  color: var(--cream);
  cursor: pointer;
  transition: transform .12s ease;
}
.nav-btn:hover { transform: translateY(-2px); }
.nav-btn.active {
  background: linear-gradient(180deg, #ffe66d, var(--gold-dark));
  color: var(--ink);
  border-color: var(--gold);
}

/* ===== Live tournament HQ ===== */
.live-header-top { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.live-controls { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .6rem 0; }
.auto-toggle { font-weight: 700; display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.auto-toggle input { accent-color: var(--gold); width: 18px; height: 18px; }
.live-status { font-size: .85rem; opacity: .85; }
.live-hint { font-size: .82rem; opacity: .7; margin-top: .5rem; }

.live-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.tab-btn {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  background: rgba(255,255,255,.08);
  color: var(--cream);
  cursor: pointer;
}
.tab-btn.active { background: var(--blue); color: var(--ink); border-color: var(--blue); }

.live-pane { display: grid; gap: 1rem; }
#live-groups { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 380px) { #live-groups { grid-template-columns: 1fr; } }

.group-title { font-family: "Luckiest Guy", cursive; color: var(--gold); letter-spacing: 1px; margin-bottom: .5rem; font-weight: 400; }

/* Standings tables */
.standings { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .6rem; }
.standings th { font-size: .72rem; text-transform: uppercase; opacity: .7; padding: .15rem .3rem; text-align: center; }
.standings td { padding: .25rem .3rem; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.standings .tl { text-align: left; }
.standings tr.thru td { background: rgba(6, 214, 160, .12); }
.standings tr.maybe td { background: rgba(255, 215, 0, .08); }
.standings tr.outr td { opacity: .55; }
.owner-tag { color: var(--gold); font-weight: 900; font-size: .72em; opacity: .95; }

/* Fixtures & score entry */
.fixture-list { display: grid; gap: .3rem; }
.fixture-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto 1fr;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  padding: .25rem .3rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.fixture-row .match-team:last-child { text-align: right; }
.fixture-date { font-size: .72rem; opacity: .65; }
.match-team.tbd { opacity: .55; font-style: italic; font-size: .8em; }
.score-box { display: inline-flex; align-items: center; gap: .15rem; justify-content: center; }
.score-dash { opacity: .6; }
.score-input {
  width: 2.4rem;
  text-align: center;
  font-family: inherit;
  font-weight: 900;
  font-size: .9rem;
  color: var(--cream);
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .25rem .1rem;
}
.score-input:focus { outline: none; border-color: var(--gold); }
.score-input::-webkit-outer-spin-button, .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Knockout bracket */
.bracket-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.bracket-col { min-width: 250px; display: flex; flex-direction: column; gap: .6rem; }
.ko-match {
  background: rgba(10, 30, 20, .72);
  border: 2px solid rgba(255, 215, 0, .3);
  border-radius: 14px;
  padding: .6rem .7rem;
}
.ko-head { font-size: .68rem; opacity: .65; margin-bottom: .35rem; }
.ko-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
}
.ko-grid .match-team:last-child { text-align: right; }
.ko-winner { margin-top: .35rem; font-size: .8rem; font-weight: 900; color: #06d6a0; }
.pick-row { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.slot-pick, .pens-select {
  font-family: inherit;
  font-weight: 700;
  font-size: .78rem;
  color: var(--cream);
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .25rem .4rem;
  max-width: 100%;
}
.slot-pick option, .pens-select option { color: var(--ink); }
.pens-row { margin-top: .35rem; font-size: .8rem; font-weight: 700; }

/* Prizes */
.prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.prize-blurb { font-size: .85rem; opacity: .85; margin-bottom: .6rem; }
.prize-list { display: grid; gap: .25rem; }
.prize-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .92rem;
  padding: .35rem .5rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  margin-bottom: .3rem;
}
.prize-row.leading {
  background: rgba(255, 215, 0, .12);
  outline: 1px solid rgba(255, 215, 0, .5);
}
.prize-pos { text-align: center; }
.prize-amt { font-weight: 900; color: var(--gold); }
.red-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.red-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  padding: .25rem .5rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}

/* Per-player view */
.player-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.player-chip {
  font-family: inherit;
  font-weight: 900;
  font-size: .88rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: .4rem .9rem;
  background: rgba(76, 201, 240, .12);
  color: var(--cream);
  cursor: pointer;
}
.player-chip.active { background: var(--blue); color: var(--ink); }
.player-head p { font-weight: 700; }
.player-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.team-card { padding: 1rem; position: relative; }
.team-card.out { opacity: .55; filter: saturate(.5); }
.team-card.champ { border-color: var(--gold); box-shadow: 0 0 30px rgba(255,215,0,.4); }
.team-card-flag { font-size: 2.2rem; line-height: 1; margin-bottom: .3rem; }
.team-card h4 { font-family: "Luckiest Guy", cursive; letter-spacing: 1px; color: var(--cream); font-weight: 400; margin-bottom: .4rem; }
.status-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 900;
  border-radius: 8px;
  padding: .2rem .5rem;
  margin-bottom: .4rem;
}
.status-badge.alive { background: rgba(6, 214, 160, .2); border: 1px solid #06d6a0; }
.status-badge.pending { background: rgba(76, 201, 240, .15); border: 1px solid var(--blue); }
.status-badge.out { background: rgba(230, 57, 70, .18); border: 1px solid var(--red); }
.status-badge.champ { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.team-fx { font-size: .8rem; opacity: .85; margin-top: .2rem; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 12, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.modal-card {
  text-align: center;
  background: linear-gradient(160deg, #14352a, #0a241a);
  border: 3px solid var(--gold);
  border-radius: 24px;
  padding: 1.8rem 2rem;
  max-width: min(92vw, 440px);
  box-shadow: 0 0 50px rgba(255, 215, 0, .3);
  animation: reveal-pop .35s cubic-bezier(.2, 1.6, .45, 1);
}
.modal-icon { font-size: 3rem; line-height: 1.1; }
.modal-card h3 {
  font-family: "Luckiest Guy", cursive;
  letter-spacing: 1px;
  color: var(--gold);
  font-size: 1.4rem;
  margin: .6rem 0 .5rem;
}
.modal-card p {
  font-size: .92rem;
  font-weight: 700;
  opacity: .92;
  white-space: pre-line;
  margin-bottom: 1.2rem;
}
.modal-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.btn-danger-solid {
  background: linear-gradient(180deg, #ff6b6b, var(--red));
  color: var(--cream);
  box-shadow: 0 4px 0 #8b1e27, 0 8px 18px rgba(0,0,0,.4);
}

/* ===== Confetti & footer ===== */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  opacity: .8;
  font-size: .85rem;
}
.site-footer .btn { margin-bottom: .8rem; }
.footer-tools { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.footer-note { margin-top: .3rem; opacity: .75; font-size: .78rem; }

/* ===== Cloud sync status ===== */
.sync-status {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 40;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(10, 30, 20, .85);
  border: 1px solid rgba(255, 215, 0, .35);
  color: var(--cream);
  pointer-events: none;
  transition: opacity .3s;
}
.sync-status:empty { opacity: 0; }
.sync-status.warn { border-color: var(--red); color: #ffb3ba; }
