/* Bluddy Pool v2 — "Gilded Daydream": midnight velvet, champagne gold, tactile 3D spheres & split-flap tiles. */
:root {
  --gold: #f5c542;
  --gold-bright: #ffe38f;
  --gold-dim: #9c7414;
  --jade: #2ee68a;
  --ruby: #ff5a79;
  --amber: #ffb038;
  --sapphire: #5ec8ff;
  --amethyst: #b388ff;

  --bg: #070b0a;
  --bg2: #0c1411;
  --card: rgba(14, 22, 19, 0.84);
  --card-solid: #0e1613;
  --soft: #121d18;
  --ink: #f4efe6;
  --dim: #b8b0a2;
  --muted: #7c7568;
  --line: rgba(245, 197, 66, 0.13);
  --line2: rgba(245, 197, 66, 0.28);

  --good: var(--jade);
  --bad: var(--ruby);
  --radius: 14px;
  --glow: 0 1px 0 rgba(255, 240, 190, 0.05) inset, 0 14px 36px rgba(0, 0, 0, 0.52);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* Velvet midnight atmosphere + subtle starlight grain */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(920px 540px at 88% -8%, rgba(245, 197, 66, 0.12), transparent 62%),
    radial-gradient(760px 560px at 8% 12%, rgba(46, 230, 138, 0.08), transparent 60%),
    radial-gradient(820px 620px at 50% 108%, rgba(255, 90, 121, 0.07), transparent 62%),
    radial-gradient(circle at 20% 30%, rgba(255, 227, 143, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #070b0a 0%, #09100e 55%, #060908 100%);
  background-size: auto, auto, auto, 38px 38px, auto;
}

::selection { background: var(--gold); color: #070b0a; }
a { color: var(--gold-bright); text-decoration: none; transition: color .15s, text-shadow .15s; }
a:hover { color: #fff4c8; text-shadow: 0 0 12px rgba(245, 197, 66, 0.45); }

h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; }
h1 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #fff6d6 0%, var(--gold) 58%, #d49b24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: .02em;
}

small, .muted { color: var(--muted); }
code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--gold-bright);
  background: rgba(245, 197, 66, 0.09);
  border: 1px solid rgba(245, 197, 66, 0.16);
  padding: 1px 6px;
  border-radius: 5px;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 18px 16px; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(7, 11, 10, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-shadow: none; }
.crest { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.3)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.brand:hover .crest { transform: rotate(18deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: #fff6d6; letter-spacing: -0.01em; }
.brand-tag { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); opacity: .88; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Navigation: ergonomic bottom bar on mobile */
.nav {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 13, 11, 0.92);
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
}
.nav a .ic { display: grid; place-items: center; transition: transform .2s; }
.nav a.on { color: var(--gold-bright); }
.nav a.on .ic { transform: translateY(-2px); filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.45)); }

/* Cards & Gold-Foil Surfaces */
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--glow);
  min-width: 0;
  border: 1px solid var(--line);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card.gold-foil {
  border-color: rgba(245, 197, 66, 0.34);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(245, 197, 66, 0.11), transparent 70%),
    var(--card);
}
.card.gold-foil::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
  opacity: .75;
}
.card.mint {
  border-color: rgba(46, 230, 138, 0.28);
  background:
    radial-gradient(380px 160px at 100% 0%, rgba(46, 230, 138, 0.08), transparent 70%),
    var(--card);
}
.card.sun { border-color: rgba(245, 197, 66, 0.3); }
.card.pink { border-color: rgba(255, 90, 121, 0.3); }
.card.sky { border-color: rgba(94, 200, 255, 0.28); }

.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }
.desktop-only { display: none; }

/* Hero & Countdown */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.countdown {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(245, 197, 66, 0.22);
}
.jackpot-line { margin-top: 4px; font-size: .95rem; color: var(--dim); }
.jackpot-amt {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(245, 197, 66, 0.35);
  margin-left: 4px;
}
.dream-equiv {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--dim);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 197, 66, 0.06);
  border: 1px dashed rgba(245, 197, 66, 0.22);
  display: inline-block;
}
.dream-equiv:empty { display: none; }

/* 3D Glossy Lottery Spheres */
.balls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ball {
  --c: var(--gold);
  --c-dark: #573d04;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 85%, #ffffff) 0%, var(--c) 48%, var(--c-dark) 100%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.55),
    0 0 14px color-mix(in srgb, var(--c) 26%, transparent),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.ball:hover { transform: translateY(-2px) scale(1.06); }
.ball-core {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f3ede0 100%);
  color: #111614;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}
.ball.sm { width: 30px; height: 30px; }
.ball.sm .ball-core { width: 18px; height: 18px; font-size: .7rem; }
.ball.r1 { --c: #ff476c; --c-dark: #5e0c1e; }
.ball.r2 { --c: #ffb43b; --c-dark: #6b3d00; }
.ball.r3 { --c: #2ee68a; --c-dark: #094f2c; }
.ball.r4 { --c: #4ec2ff; --c-dark: #0a3c63; }
.ball.r5 { --c: #b388ff; --c-dark: #38186e; }
.ball.add {
  --c: #ffd966;
  --c-dark: #6e4e06;
  outline: 2px dashed rgba(255, 227, 143, 0.72);
  outline-offset: 2px;
}
.ball.pop { animation: ballPop .38s cubic-bezier(.18, 1.25, .4, 1) both; }
@keyframes ballPop {
  from { opacity: 0; transform: translateY(-10px) scale(0.65) rotate(-18deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
.plus { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 1rem; margin: 0 2px; }

/* 4D Split-Flap Mechanical Tiles */
.tile {
  font-family: var(--mono);
  font-weight: 700;
  background: #0a100e;
  color: var(--ink);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 3px 9px;
  letter-spacing: 2px;
  display: inline-block;
}
.tile.big {
  font-size: 1.55rem;
  padding: 8px 14px;
  color: #fff6d6;
  background: linear-gradient(180deg, #16211c 0%, #0b120f 49%, #080d0b 51%, #111a16 100%);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 14px rgba(245, 197, 66, 0.35);
}
.tile.big::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.65);
}

.prize3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.prize3 .lbl {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 5px;
}
.podium-1 .lbl { color: var(--gold); }
.podium-1 .tile.big { border-color: rgba(245, 197, 66, 0.65); color: var(--gold-bright); box-shadow: 0 8px 22px rgba(245, 197, 66, 0.16); }
.podium-2 .lbl { color: #d0d7de; }
.podium-2 .tile.big { border-color: rgba(208, 215, 222, 0.42); color: #eef2f6; text-shadow: none; }
.podium-3 .lbl { color: #e29d6a; }
.podium-3 .tile.big { border-color: rgba(226, 157, 106, 0.42); color: #f6c39b; text-shadow: none; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tiles .tile { text-align: center; padding: 5px 0; font-size: .84rem; letter-spacing: 1px; color: var(--dim); background: rgba(10, 16, 14, 0.7); }

/* Golden Ticket Pick Cards */
.pick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  position: relative;
}
.ticket-card {
  border-style: solid;
  border-color: rgba(245, 197, 66, 0.24);
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(245, 197, 66, 0.08), transparent 70%),
    var(--card);
}
.pick.top {
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.12), inset 0 0 0 1px rgba(245, 197, 66, 0.12);
}

/* Daydream Machine */
.daydream-card {
  border-color: rgba(46, 230, 138, 0.24);
  background:
    radial-gradient(480px 160px at 0% 0%, rgba(46, 230, 138, 0.07), transparent 65%),
    radial-gradient(480px 160px at 100% 100%, rgba(245, 197, 66, 0.07), transparent 65%),
    var(--card);
}
.daydream-out {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(7, 11, 10, 0.6);
  border: 1px dashed rgba(245, 197, 66, 0.2);
}

/* Chips & Badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--dim);
}
.chip.hot { color: #ff859d; border-color: rgba(255, 90, 121, 0.38); background: rgba(255, 90, 121, 0.08); }
.chip.cold { color: var(--sapphire); border-color: rgba(94, 200, 255, 0.34); background: rgba(94, 200, 255, 0.07); }
.chip.due { color: var(--amethyst); border-color: rgba(179, 136, 255, 0.35); background: rgba(179, 136, 255, 0.08); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge.none { color: var(--muted); }
.badge.weak { color: var(--amber); }
.badge.watch { color: var(--ruby); }
.badge.special { color: var(--gold-bright); background: rgba(245, 197, 66, 0.12); box-shadow: 0 0 10px rgba(245, 197, 66, 0.25); }
.badge.won { color: var(--jade); background: rgba(46, 230, 138, 0.09); }
.badge.lost { color: var(--ruby); background: rgba(255, 90, 121, 0.08); }
.badge.pending { color: var(--muted); }

/* KPIs & Vault */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi {
  background: rgba(7, 11, 10, 0.62);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi .v { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.kpi .k { font-family: var(--mono); font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.pos { color: var(--jade) !important; text-shadow: 0 0 12px rgba(46, 230, 138, 0.3); }
.neg { color: var(--ruby) !important; text-shadow: 0 0 12px rgba(255, 90, 121, 0.28); }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .11em;
  font-weight: 600;
}
tr:hover td { background: rgba(245, 197, 66, 0.035); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* Collapsibles */
details.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--glow); }
details.sec > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 1.1rem; margin-left: auto; }
details.sec[open] > summary::after { content: "–"; }
details.sec > .body { padding: 0 18px 18px; }

/* Forms & Buttons */
label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  font: inherit;
  font-family: var(--mono);
  font-size: .9rem;
  background: rgba(7, 11, 10, 0.85);
  color: var(--ink);
  min-height: 44px;
  caret-color: var(--gold);
}
input::placeholder { color: #545047; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
}
input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--gold); }
.fields { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.fields .full { grid-column: 1 / -1; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  background: rgba(245, 197, 66, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 197, 66, 0.5);
  transition: transform .12s, background .15s, box-shadow .15s;
}
button:hover, .btn:hover {
  background: var(--gold);
  color: #070b0a;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.35);
  text-shadow: none;
}
button:active, .btn:active { transform: scale(0.98); }

button.gold-btn, .btn.gold-btn {
  background: linear-gradient(135deg, #ffe38f 0%, #f5c542 55%, #d99f1c 100%);
  color: #090d0b;
  border: 0;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.25);
}
button.gold-btn:hover, .btn.gold-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(245, 197, 66, 0.42);
}

button.ghost, .btn.ghost { background: transparent; color: var(--dim); border-color: var(--line2); }
button.ghost:hover, .btn.ghost:hover { color: var(--ink); border-color: var(--gold); background: rgba(245, 197, 66, 0.08); box-shadow: none; }
.btn.gold-outline { background: transparent; color: var(--gold-bright); border-color: rgba(245, 197, 66, 0.45); }
.btn.gold-outline:hover { background: var(--gold); color: #070b0a; }

button.mint, .btn.mint { color: var(--jade); border-color: rgba(46, 230, 138, 0.5); background: rgba(46, 230, 138, 0.09); }
button.mint:hover { background: var(--jade); color: #070b0a; box-shadow: 0 0 18px rgba(46, 230, 138, 0.35); }
button.small, .btn.small { min-height: 32px; padding: 4px 11px; font-size: .76rem; }
button:disabled { opacity: .5; cursor: wait; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle b { font-weight: 600; color: var(--ink); }
.switch { position: relative; width: 46px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #0a100e; border: 1px solid var(--line2); border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + span { border-color: var(--gold); box-shadow: 0 0 10px rgba(245, 197, 66, 0.25); }
.switch input:checked + span::before { transform: translateX(22px); background: var(--gold); }

.flash { padding: 11px 15px; border-radius: 10px; font-size: .88rem; margin-bottom: 12px; border: 1px solid; }
.flash.ok { color: var(--jade); background: rgba(46, 230, 138, 0.08); border-color: rgba(46, 230, 138, 0.35); }
.flash.err { color: var(--ruby); background: rgba(255, 90, 121, 0.08); border-color: rgba(255, 90, 121, 0.35); }

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  z-index: 35;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0;
}

.dropzone {
  border: 1.5px dashed rgba(245, 197, 66, 0.35);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(245, 197, 66, 0.05), rgba(7, 11, 10, 0.7));
  cursor: pointer;
  color: var(--dim);
  font-size: .88rem;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); color: var(--gold-bright); background: rgba(245, 197, 66, 0.08); }

.note {
  font-size: .84rem;
  background: rgba(7, 11, 10, 0.6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--dim);
}
.chart-box { position: relative; height: 220px; }
.chart-box.tall { height: 300px; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--jade)); border-radius: 999px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login .card { width: 100%; max-width: 400px; text-align: center; padding: 32px 24px; }
.login-crest { display: grid; place-items: center; margin-bottom: 6px; filter: drop-shadow(0 8px 24px rgba(245, 197, 66, 0.25)); }

.site-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: .78rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 28px; padding-left: 88px; }
  body:has(.login) { padding-left: 0; padding-bottom: 0; }
  .nav {
    top: 0;
    bottom: 0;
    right: auto;
    width: 80px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 76px 8px 16px;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .nav a { flex: none; height: 58px; border-radius: 12px; }
  .nav a.on { background: rgba(245, 197, 66, 0.12); border: 1px solid rgba(245, 197, 66, 0.28); }
  .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .desktop-only { display: block; }
  td.desktop-only, th.desktop-only { display: table-cell; }
  .mobile-only { display: none; }
  .fab { bottom: 24px; }
  .chart-box { height: 260px; }
  .chart-box.tall { height: 340px; }
  .fields { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1060px) {
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c3w { grid-template-columns: 2fr 1fr; }
}

/* ---- how last draw's picks did: way off / close / won / GODDAMN ---------------------------- */
.tier-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 4px; }
.tier-head { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; width: 100%; }
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .82rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  max-width: 100%;
}
.tier-ico { font-family: var(--mono); font-size: .95rem; line-height: 1; white-space: nowrap; }
.tier-why { font-size: .75rem; }
.tier-off { border-color: rgba(94, 200, 255, 0.35); }
.tier-off .tier-label, .tier-off .tier-ico, .tier-ico.t-off { color: var(--sapphire); }
.tier-close { border-color: rgba(255, 176, 56, 0.45); }
.tier-close .tier-label, .tier-close .tier-ico, .tier-ico.t-close { color: var(--amber); }
.tier-won { border-color: rgba(46, 230, 138, 0.5); box-shadow: 0 0 12px rgba(46, 230, 138, 0.15); }
.tier-won .tier-label, .tier-won .tier-ico, .tier-ico.t-won { color: var(--jade); }
.tier-goddamn { border-color: var(--gold); box-shadow: 0 0 22px rgba(245, 197, 66, 0.4); animation: goddamn 1.4s ease-in-out infinite; }
.tier-goddamn .tier-label, .tier-goddamn .tier-ico, .tier-ico.t-goddamn { color: var(--gold-bright); font-weight: 700; letter-spacing: .04em; }
@keyframes goddamn { 50% { box-shadow: 0 0 32px rgba(245, 197, 66, 0.68); transform: scale(1.03); } }
td .tier-ico { margin-right: 4px; }
