:root {
  --bg-deep: #070B14;
  --bg-card: rgba(18,28,45,0.85);
  --bg-card-solid: #121C2D;
  --gold: #FFD700;
  --red: #EF4444;
  --orange: #F59E0B;
  --green: #22C55E;
  --cyan: #67E8F9;
  --indigo: #818CF8;
  --indigo-light: #A5B4FC;
  --text: #E8ECF1;
  --text-dim: rgba(232,236,241,0.45);
  --text-faint: rgba(232,236,241,0.2);
  --border: rgba(255,255,255,0.04);
  --border-light: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--bg-deep); color: var(--text); min-height: 100dvh; overflow-x: hidden; }

/* ── Rain canvas ── */
#rain-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.2; }

/* ── App container ── */
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 0 16px 100px; }

/* ── Animations ── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardOut { from { opacity: 1; transform: translateY(0); max-height: 300px; margin-bottom: 12px; } to { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; } }
@keyframes cardPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.card-exiting { animation: cardOut 0.3s ease-in forwards; overflow: hidden; pointer-events: none; }
.card-pulse { animation: cardPulse 0.5s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Bottom nav ── */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,11,20,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center;
  padding: 6px 0 max(env(safe-area-inset-bottom, 8px), 8px);
}
.nb {
  flex: 1; max-width: 76px; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 7px 0; background: 0; border: 0; color: rgba(255,255,255,0.3);
  cursor: pointer; font-family: var(--font); font-size: 8px; font-weight: 700;
  letter-spacing: 0.3px; transition: color 0.2s; position: relative;
}
.nb.on { color: var(--gold); }
.nb .ni { font-size: 18px; }
.nb .indicator {
  position: absolute; top: -1px; left: 30%; right: 30%; height: 2px;
  background: var(--gold); border-radius: 1px; display: none;
}
.nb.on .indicator { display: block; }
.nb .badge {
  position: absolute; top: 3px; right: 22%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: #fff;
}

/* ── Common ── */
.hidden { display: none !important; }
.hdr { padding: 22px 0 14px; display: flex; align-items: flex-start; justify-content: space-between; }
.hdr h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.8px; }
.hdr .dt { font-size: 12px; color: var(--text-dim); font-weight: 500; margin-top: 3px; }
.slbl { font-size: 10px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; padding: 14px 0 6px; }
.loading { text-align: center; padding: 60px 0; }
.spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--text-faint); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
.loading p { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.updated { text-align: center; font-size: 11px; color: var(--text-faint); padding: 14px 0; }
.empty { text-align: center; padding: 60px 20px; }
.empty .ei { font-size: 54px; margin-bottom: 16px; }
.empty h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ── Alert banner ── */
.abanner {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.1);
  font-size: 12px; font-weight: 600; margin-bottom: 16px; color: rgba(255,255,255,0.7);
}

/* ── Alert cards ── */
.card {
  background: var(--bg-card); border-radius: 18px; margin-bottom: 14px; cursor: pointer;
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.15s, box-shadow 0.15s; overflow: hidden; position: relative;
}
.card:active { transform: scale(0.98); }
.card .accent-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.card .live-dot {
  position: absolute; top: 14px; right: 16px; width: 7px; height: 7px;
  border-radius: 50%; animation: pulse 2s infinite;
}
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.rpct { display: flex; align-items: baseline; gap: 6px; }
.rpct .n { font-size: 26px; font-weight: 900; font-family: var(--mono); letter-spacing: -1px; }
.rpct .l { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.wbadge {
  display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.06); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6);
}
.cdiv { height: 1px; background: rgba(255,255,255,0.05); margin: 10px 16px; }
.cmatch { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px; }
.team-badge {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.team-badge .tb-box {
  display: flex; align-items: center; justify-content: center; border-radius: 28%;
  font-family: var(--mono); font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.team-badge .tb-box.md { width: 36px; height: 36px; font-size: 13px; }
.team-badge .tb-box.lg { width: 48px; height: 48px; font-size: 16px; }
.team-badge .tb-city { font-size: 9px; color: var(--text-dim); font-weight: 600; }
.mctr { text-align: center; min-width: 70px; }
.mctr .inn { font-size: 11px; font-weight: 700; color: var(--cyan); letter-spacing: 0.5px; }
.mctr .sc { font-size: 22px; font-weight: 900; font-family: var(--mono); letter-spacing: -0.5px; }
.mctr .tm { font-size: 16px; font-weight: 700; }
.mctr .dly { font-size: 11px; font-weight: 900; color: var(--red); letter-spacing: 1px; }
.mctr .at { font-size: 11px; color: rgba(255,255,255,0.3); }
.mctr .fin-lbl { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 1px; }
.mctr .del-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.cdets { display: flex; gap: 8px; padding: 0 16px 14px; align-items: center; flex-wrap: wrap; }
.pill { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,0.04); font-size: 11px; }
.pill .pi { font-size: 11px; }
.pill .pl { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.8px; }
.pill .pv { font-weight: 700; font-size: 12px; color: rgba(255,255,255,0.85); }
.cchev { margin-left: auto; font-size: 13px; color: var(--text-faint); font-weight: 600; }

/* ── Game rows ── */
.grow {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(18,28,45,0.7); border-radius: var(--radius-sm); margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.03); backdrop-filter: blur(8px);
}
.grow .tsm { font-family: var(--mono); font-size: 14px; font-weight: 800; min-width: 34px; text-align: center; }
.grow .ssm { font-family: var(--mono); font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); min-width: 14px; text-align: center; }
.grow .csm { text-align: center; min-width: 48px; font-size: 11px; }
.grow .wsm {
  margin-left: auto; font-size: 11px; font-weight: 800; font-family: var(--mono);
  padding: 3px 8px; border-radius: 6px;
}

/* ── Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px); display: none; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal.open { display: flex; }
.msheet {
  background: linear-gradient(180deg, #0F1A2E, #0A1220); width: 100%; max-width: 520px;
  max-height: 88dvh; border-radius: 22px 22px 0 0; overflow-y: auto; padding: 18px 18px 36px;
  animation: slideUp 0.3s ease-out; border: 1px solid var(--border-light); border-bottom: none;
}
.mclose { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.mclose button {
  background: 0; border: 0; color: var(--gold); font-family: var(--font);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 8px;
}
.mmu { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; }

/* ── Modal sections ── */
.msec {
  background: rgba(255,255,255,0.03); border-radius: var(--radius); padding: 18px;
  margin-bottom: 16px; border: 1px solid var(--border);
}
.msec h3 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 12px; }

/* ── Advisory ── */
.adv {
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.adv .albl { font-size: 8px; font-weight: 900; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); margin-bottom: 6px; text-transform: uppercase; }
.adv .avd { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.adv .asub { font-size: 13px; font-weight: 600; line-height: 1.6; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.adv .atips { display: flex; gap: 6px; flex-wrap: wrap; }
.atip { padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,0.25); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); }

/* ── Pirate Weather rain timing strip ── */
.pw-section { background: rgba(255,255,255,0.03); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; border: 1px solid var(--border); }
.pw-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pw-lbl { font-size: 11px; font-weight: 900; letter-spacing: 0.8px; }
.pw-strip { display: flex; gap: 2px; align-items: flex-end; height: 44px; margin: 10px 0 4px; }
.pw-seg { flex: 1; border-radius: 2px 2px 0 0; min-height: 3px; transition: opacity 0.2s; }
.pw-times { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-faint); font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.pw-summary { font-size: 12px; font-weight: 700; line-height: 1.4; }

/* ── Tarp watch ── */
.tarp { background: rgba(255,255,255,0.03); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; border: 1px solid var(--border); }
.tarp .thdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tarp .tlbl { font-size: 11px; font-weight: 900; letter-spacing: 0.8px; display: flex; align-items: center; gap: 5px; }
.tarp .tbdg { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.tarp .tcount { font-family: var(--mono); font-size: 36px; font-weight: 900; }
.tarp .timm {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--gold);
  padding: 5px 10px; background: rgba(255,215,0,0.08); border-radius: 6px; margin-top: 8px; width: fit-content;
}

/* ── Hourly chart ── */
.chbars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.chcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chbar { width: 100%; min-height: 4px; border-radius: 3px; transition: height 0.4s ease; }
.chtm { font-size: 7px; font-weight: 600; color: rgba(255,255,255,0.3); }

/* ── Drainage ── */
.drbar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.drfill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

/* ── Conditions grid ── */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctile {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: rgba(255,255,255,0.03); border-radius: 10px;
}
.ctile .ci { font-size: 16px; }
.ctile .cl { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.8px; }
.ctile .cv { font-size: 13px; font-weight: 700; }

/* ── Map ── */
.mapwrap { width: 100%; height: 180px; border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 6px; }
.mapwrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.4) brightness(0.7) contrast(1.1); }
.mapmark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-100% - 6px));
  background: var(--bg-card-solid); color: #fff; padding: 2px 6px; border-radius: 5px;
  font-family: var(--mono); font-size: 9px; font-weight: 800; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 701; pointer-events: none; border: 1px solid rgba(255,255,255,0.15);
}
.mapmark::after {
  content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #121C2D;
}
.mapover { position: absolute; inset: 0; z-index: 700; pointer-events: none; }

/* ── History ── */
.hbar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hbar .hlbl { font-size: 11px; font-weight: 600; min-width: 100px; color: var(--text-dim); }
.hbar .htrk { flex: 1; height: 14px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.hbar .hfll { height: 100%; border-radius: 3px; display: flex; align-items: center; padding-left: 5px; font-size: 9px; font-weight: 800; color: rgba(0,0,0,0.7); }
.hstats { display: flex; gap: 8px; margin-top: 10px; }
.hst { flex: 1; text-align: center; padding: 6px; background: rgba(255,255,255,0.03); border-radius: var(--radius-xs); }
.hst .hsv { font-size: 12px; font-weight: 700; }
.hst .hsl { font-size: 7px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; }

/* ── Fantasy roster ── */
.fsum { display: flex; gap: 8px; margin-bottom: 16px; }
.fpill { flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px; }
.fpill .fv { font-family: var(--mono); font-size: 22px; font-weight: 900; }
.fpill .fl { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; color: var(--text-dim); }
.prow {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(18,28,45,0.7); border-radius: var(--radius-sm); margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
.prow .pos {
  font-size: 10px; font-weight: 900; font-family: var(--mono); color: #fff;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.prow .pinfo { flex: 1; min-width: 0; }
.prow .pname { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pmeta { font-size: 10px; color: var(--text-dim); }
.prow .pwx { font-size: 11px; font-weight: 800; font-family: var(--mono); padding: 3px 8px; border-radius: 6px; }
.pdel {
  background: var(--red); color: #fff; border: 0; padding: 4px 8px; border-radius: 5px;
  font-size: 10px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.searchbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,0.06); border-radius: 10px; margin-bottom: 12px;
}
.searchbar input {
  flex: 1; background: 0; border: 0; color: var(--text); font-family: var(--font);
  font-size: 15px; outline: 0;
}
.searchbar input::placeholder { color: var(--text-faint); }
.sres {
  padding: 8px 12px; background: var(--bg-card-solid); border-radius: var(--radius-sm);
  margin-bottom: 6px; display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.sres .sname { font-size: 14px; font-weight: 700; }
.sres .steam { font-size: 11px; font-weight: 600; }
.addbtn {
  background: var(--green); color: #fff; border: 0; width: 28px; height: 28px;
  border-radius: 50%; font-size: 18px; font-weight: 700; cursor: pointer; margin-left: auto;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Settings ── */
.srow {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  background: rgba(18,28,45,0.7); border-radius: var(--radius-sm); margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
.srow label { font-size: 13px; font-weight: 600; }
.srow .sv { font-size: 12px; color: var(--text-dim); }
.tgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 0 16px; }
.tcell {
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  padding: 5px; border-radius: 10px; border: 2px solid transparent; transition: border-color 0.2s;
}
.tcell.sel { border-color: var(--gold); }
.tcell .ta {
  font-family: var(--mono); font-size: 11px; font-weight: 800; color: #fff;
  width: 100%; text-align: center; padding: 4px 0; border-radius: 6px;
}
.tcell .tc { font-size: 7px; color: rgba(255,255,255,0.3); text-align: center; }

/* ── Toggle ── */
.togbtn {
  width: 44px; height: 24px; border-radius: 12px; border: 0; cursor: pointer;
  position: relative; transition: background 0.2s;
}
.togbtn.on { background: var(--green); }
.togbtn.off { background: rgba(255,255,255,0.15); }
.togbtn::after {
  content: ''; position: absolute; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: left 0.2s;
}
.togbtn.on::after { left: 22px; }
.togbtn.off::after { left: 2px; }

/* ── Premium banner ── */
.prem-banner {
  padding: 16px; border-radius: 14px; cursor: pointer; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.06));
  border: 1px solid rgba(255,215,0,0.12);
}
.prem-banner h3 { font-size: 14px; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.prem-banner p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.prem-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  background: var(--gold); color: var(--bg-deep); font-size: 9px; font-weight: 900;
  border-radius: 4px; letter-spacing: 0.5px;
}

/* ── Install App section ── */
.install-section {
  border-radius: 14px; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(59,130,246,0.06));
  border: 1px solid rgba(99,102,241,0.15);
}
.install-header { padding: 16px 16px 12px; }
.install-cta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.install-cta .ic-icon { font-size: 22px; }
.install-cta .ic-title { font-size: 14px; font-weight: 800; color: var(--indigo-light); }
.install-cta .ic-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.install-btn {
  width: 100%; padding: 12px; background: linear-gradient(135deg, #6366F1, #818CF8);
  color: #fff; font-family: var(--font); font-size: 14px; font-weight: 700;
  border: 0; border-radius: 10px; cursor: pointer; margin-top: 8px; margin-bottom: 4px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.install-manual-btn {
  width: 100%; padding: 10px; background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6); font-family: var(--font); font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-light); border-radius: 8px; cursor: pointer; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.install-manual-btn .arrow { font-size: 10px; transition: transform 0.2s; }
.install-manual-btn.expanded .arrow { transform: rotate(180deg); }
.install-guide { padding: 0 16px 16px; }
.install-guide .ig-divider { height: 1px; background: var(--border-light); margin-bottom: 14px; }
.ig-platform-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.6); letter-spacing: 0.3px;
}
.ig-platform-label .ig-icon { font-size: 15px; }
.ig-step {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}
.ig-step .ig-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--indigo-light);
}
.ig-step .ig-text { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; padding-top: 2px; }
.ig-step .ig-text strong { color: rgba(255,255,255,0.75); }
.ig-note {
  font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 8px; padding: 6px 10px;
  background: rgba(255,255,255,0.03); border-radius: 6px; line-height: 1.5;
}
.ig-why {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.ig-why-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.ig-why-item {
  display: flex; align-items: center; gap: 8px; font-size: 11px;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.ig-why-item:last-child { margin-bottom: 0; }
.ig-why-item .ig-wi { font-size: 12px; width: 18px; text-align: center; flex-shrink: 0; }
.install-done {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: rgba(34,197,94,0.08); border-radius: 14px; margin-bottom: 16px;
  border: 1px solid rgba(34,197,94,0.15);
}
.install-done .id-icon { font-size: 20px; }
.install-done .id-title { font-size: 13px; font-weight: 700; color: var(--green); }
.install-done .id-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── Onboarding ── */
.olay {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center; overflow-y: auto;
  background: linear-gradient(165deg, #0A0F1C 0%, #141B33 40%, #1A1040 70%, #0F0820 100%);
}
.olay .glow {
  position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.olay .ob-inner { position: relative; z-index: 1; }
.obtn {
  padding: 16px 48px; background: linear-gradient(135deg, var(--gold), #FFA500);
  color: var(--bg-deep); font-family: var(--font); font-size: 16px; font-weight: 800;
  border: 0; border-radius: 14px; cursor: pointer; letter-spacing: -0.3px;
  box-shadow: 0 4px 24px rgba(255,215,0,0.3), 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.obtn:active { transform: scale(0.97); }

/* ── Off-season ── */
.ostabs { display: flex; background: rgba(255,255,255,0.04); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.ostabs button {
  flex: 1; padding: 9px; font-family: var(--font); font-size: 12px; font-weight: 700;
  border: 0; cursor: pointer; background: 0; color: var(--text-dim);
}
.ostabs button.on { background: var(--gold); color: var(--bg-deep); }
.bstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bst { text-align: center; padding: 16px 8px; background: var(--bg-card-solid); border-radius: var(--radius); }
.bst .bsv { font-family: var(--mono); font-size: 28px; font-weight: 900; }
.bst .bsl { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; margin-top: 2px; }
.stbl { background: var(--bg-card-solid); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.sr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sr:last-child { border-bottom: 0; }
.sr .si { font-size: 13px; width: 20px; text-align: center; }
.sr .sl { flex: 1; font-size: 12px; color: var(--text-dim); }
.sr .sv { font-size: 11px; font-weight: 700; text-align: right; max-width: 45%; }
.fcard { background: var(--bg-card-solid); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.fcard .ftop { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.fcard .cbdg { font-size: 8px; font-weight: 900; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
.fcard .fy { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-faint); }
.fcard .ft { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--text-dim); margin-left: auto; }
.fcard h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.fcard p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── Large Text ── */
html.large-text .hdr h1 { font-size: 32px; }
html.large-text .slbl { font-size: 14px; }
html.large-text .srow label { font-size: 17px; }
html.large-text .srow .sv { font-size: 16px; }
html.large-text .sr .sl { font-size: 16px; }
html.large-text .sr .sv { font-size: 15px; }
html.large-text .loading p { font-size: 17px; }
html.large-text .updated { font-size: 15px; }
html.large-text .empty p { font-size: 17px; }
html.large-text .pill .pv { font-size: 16px; }
html.large-text .pill .pl { font-size: 10px; }
html.large-text .grow .tsm { font-size: 18px; }
html.large-text .grow .csm { font-size: 15px; }
html.large-text .grow .wsm { font-size: 15px; }
html.large-text .mctr .inn { font-size: 15px; }
html.large-text .mctr .sc { font-size: 28px; }
html.large-text .mctr .tm { font-size: 20px; }
html.large-text .mctr .dly { font-size: 15px; }
html.large-text .rpct .n { font-size: 32px; }
html.large-text .rpct .l { font-size: 15px; }
html.large-text .wbadge { font-size: 15px; }
html.large-text .prow .pname { font-size: 17px; }
html.large-text .prow .pmeta { font-size: 14px; }
html.large-text .prow .pwx { font-size: 15px; }
html.large-text .vcard-name { font-size: 18px; }
html.large-text .vcard-city { font-size: 15px; }
html.large-text .vstat-v { font-size: 20px; }
html.large-text .vstat-l { font-size: 13px; }
html.large-text .vd-row { font-size: 17px; }
html.large-text .adv .asub { font-size: 17px; }
html.large-text .pw-summary { font-size: 16px; }
html.large-text .msec h3 { font-size: 18px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: 0; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

/* ── Update banner ── */
#update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.97), rgba(129,140,248,0.97));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; color: #fff;
  animation: slideDown 0.3s ease-out;
}
#update-banner.visible { display: flex; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
#update-banner button {
  flex-shrink: 0; padding: 5px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.18);
  color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer;
}
/* ── Venue cards ── */
.vcard { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px; margin-bottom: 10px; cursor: pointer; }
.vcard:active { opacity: 0.75; }
.vcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vcard-abbr { font-family: var(--mono); font-size: 18px; font-weight: 900; min-width: 38px; }
.vcard-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.vcard-city { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.vcard-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vstat { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 8px; text-align: center; }
.vstat-v { font-family: var(--mono); font-size: 16px; font-weight: 900; line-height: 1; }
.vstat-l { font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 32px; margin-top: 10px; }
.vbar { flex: 1; border-radius: 2px 2px 0 0; min-height: 2px; }
/* Venue detail modal */
.vd-section { margin-bottom: 16px; }
.vd-hdr { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: rgba(255,255,255,0.25); margin-bottom: 10px; text-transform: uppercase; }
.vd-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.vd-row:last-child { border-bottom: 0; }
.vd-lbl { color: var(--text-dim); }
.vd-val { font-weight: 700; font-family: var(--mono); }
.vbars-lg { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-top: 8px; }
.vbar-lg { flex: 1; border-radius: 2px 2px 0 0; min-height: 3px; }
.vbar-lbl { font-size: 9px; color: rgba(255,255,255,0.2); text-align: center; margin-top: 3px; }

/* ── Visual Design Upgrades ── */

/* Glassmorphism — primary game/alert cards */
.card {
  background: linear-gradient(145deg, rgba(22,34,54,0.88) 0%, rgba(14,22,38,0.82) 100%);
  border-color: rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Glassmorphism — venue cards */
.vcard {
  border-color: rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s;
}

/* Glassmorphism — bottom sheet modal */
.msheet {
  border: 1px solid rgba(255,255,255,0.09);
  border-bottom: none;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Glassmorphism — modal sub-sections, no new backdrop-filter */
.msec, .pw-section, .tarp {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Glassmorphism — rows (subtle to avoid banding) */
.grow, .prow, .srow {
  border-color: rgba(255,255,255,0.07);
}

/* Glassmorphism — fantasy summary pills */
.fpill {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Hover lift — pointer devices only, avoids iOS stuck-hover */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.12);
  }
  .vcard:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.12);
    opacity: 1;
  }
  .grow:hover, .prow:hover, .srow:hover {
    background: rgba(22,36,58,0.8);
  }
  .sres:hover {
    background: rgba(22,36,58,0.9);
    transform: translateX(2px);
  }
  .obtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(255,215,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  }
  .install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.4);
  }
}

/* Button base transitions */
.obtn { transition: transform 0.15s, box-shadow 0.15s; }
.install-btn { transition: transform 0.15s, box-shadow 0.15s; }
.sres { transition: background 0.15s ease, transform 0.15s ease; }

/* Nav — icon scale spring on active tab */
.nb .ni {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.nb.on .ni { transform: scale(1.15); }

/* Nav — indicator slide-in instead of display toggle */
.nb .indicator {
  display: block;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.nb.on .indicator {
  opacity: 1;
  transform: scaleX(1);
}

/* Typography — screen title shimmer */
.hdr h1 {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* Typography — section labels */
.slbl {
  color: rgba(232,236,241,0.35);
  letter-spacing: 1.8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 8px;
}

/* Typography — key numeral glow */
.rpct .n,
.tarp .tcount,
.mctr .sc,
.bst .bsv {
  text-shadow: 0 0 24px currentColor;
}

/* Typography — modal section headers */
.msec h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.9);
}

/* Typography — micro-labels */
.adv .albl,
.vd-hdr {
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}
