/* DeLoBra Cup. Layout from the Timeyfi dashboard in Taylor's UI catalog (soft rounded cards, floating
   left nav, illustrated banner, calendar rail). Colors are the project's own greens and oat paper. */
:root {
  --paper: #E6E2D5;
  --card: #F4F1E6;
  --card-2: #EAE6D9;
  --rule: #DAD6C6;
  --deep: #1E4236;
  --kelly: #126642;
  --kelly-dark: #0E5636;
  --mint: #D5E4D2;
  --ink: #1C2A22;
  --muted: #566257;
  --brass-ink: #7E5310;
  --brass: #B5791F;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --gap: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--kelly); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.shell { padding: 0 16px; }
.content { min-width: 0; }
.phone-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px; }
.phone-head a { font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--deep); text-decoration: none; }
.phone-head span { font-size: 12.5px; color: var(--muted); }
.side { display: none; }

.wordmark { display: block; font-weight: 700; font-size: 24px; letter-spacing: -.035em; color: var(--deep); text-decoration: none; padding: 8px 14px 4px; }
.side-card { background: var(--card); border-radius: var(--r-lg); padding: 10px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--r-md); text-decoration: none; color: var(--muted); font-weight: 500; }
.side-nav a:hover { color: var(--deep); background: var(--card-2); }
.side-nav a.active { color: var(--kelly); font-weight: 600; }
.active .i-shape { fill: currentColor; }
.active .i-detail { stroke: var(--card); }
.side-label { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 2px 14px; }
.side-players a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: var(--r-md); text-decoration: none; font-weight: 500; }
.side-players a:hover { background: var(--card-2); }
.side-players a.active { color: var(--kelly); font-weight: 600; }
.side-account { padding: 14px; display: grid; gap: 6px; justify-items: start; }
.account-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--deep); }
.add-major .icon { width: 18px; height: 18px; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14.5px; margin-top: 4px; }
.phone-tools { display: flex; align-items: center; gap: 8px; }
.pill-small { border: 0; border-radius: 999px; background: var(--kelly); color: #FFFFFF; min-height: 38px; padding: 0 14px; font-weight: 600; font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.proto-box { margin-top: 16px; padding: 14px; border-radius: var(--r-md); background: var(--card-2); font-size: 14.5px; }
.side-seasons button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: none; font-weight: 500; text-align: left; }
.side-seasons button:hover { background: var(--card-2); }
.side-seasons button span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.side-seasons button.active { background: var(--deep); color: var(--card); font-weight: 600; }
.side-seasons button.active span { color: #BFCBB9; }
.phone-season select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E4236' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 0 32px 0 14px; min-height: 38px; font-weight: 600; font-size: 14px; color: var(--deep); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side-note { font-size: 12.5px; color: var(--muted); padding: 0 14px; line-height: 1.35; }

/* Phone: the nav floats along the bottom. */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--card); border-radius: var(--r-lg); padding: 6px; box-shadow: 0 10px 30px rgba(30, 66, 54, .2);
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 500; border-radius: var(--r-md); }
.tabs a.active { color: var(--kelly); font-weight: 600; }
.tabs .log-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--kelly); color: var(--card); display: grid; place-items: center; }
.tabs a.log-tab { color: var(--card); }
.tabs a.log-tab.active .log-btn { background: var(--deep); }

/* ---------- Common ---------- */
.page { display: grid; gap: var(--gap); }
.page-title { font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; color: var(--deep); }
.card { background: var(--card); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-title { font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--deep); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; line-height: 1.35; }
.text-btn { background: none; border: 0; padding: 8px 0; min-height: 40px; font-weight: 600; font-size: 14px; color: var(--kelly); white-space: nowrap; text-decoration: none; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 0; background: var(--kelly); color: var(--card); border-radius: 999px; padding: 0 26px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary:hover { background: var(--kelly-dark); }

/* ---------- Dashboard ---------- */
.dash { display: grid; gap: var(--gap); }
.dash-main, .dash-rail { display: grid; gap: var(--gap); min-width: 0; align-content: start; }

.banner-wrap { position: relative; }
.banner { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--mint); min-height: 312px; }
.banner-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 45% 50%; }
/* Keeps the white headline readable over bright sky. */
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 45, 36, .52) 0%, rgba(20, 45, 36, .4) 42%, rgba(20, 45, 36, 0) 66%); }
.banner-copy { position: relative; z-index: 1; padding: 22px 22px 0; }
.banner-copy h1 { font-weight: 700; font-size: 31px; line-height: 1.1; letter-spacing: -.035em; color: #FFFFFF; }
.banner-copy p { margin-top: 8px; color: #FFFFFF; font-weight: 500; }
.banner-copy h1, .banner-copy p { text-shadow: 0 1px 10px rgba(15, 35, 28, .45); }

.standings { background: var(--card); border-radius: var(--r-md); padding: 14px 16px 8px; margin: -34px 12px 0; position: relative; box-shadow: 0 10px 30px rgba(30, 66, 54, .14); }
.standings h2 { font-weight: 600; font-size: 15px; color: var(--deep); margin-bottom: 4px; }
.stand-row { display: grid; grid-template-columns: 4px 1fr auto; gap: 11px; align-items: center; padding: 9px 0; text-decoration: none; border-radius: 6px; }
.stand-bar { width: 4px; height: 36px; border-radius: 4px; }
.stand-name { display: block; font-weight: 600; color: var(--ink); }
.stand-sub { display: block; font-size: 13px; color: var(--muted); }
.stand-pts { font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--deep); }

/* Running lead chart */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.chart-wrap { position: relative; margin-top: 8px; touch-action: pan-y; }
.chart-wrap svg { display: block; width: 100%; overflow: visible; }
.chart-wrap svg:focus-visible { outline-offset: 4px; }
.axis { font: 500 12px Inter, sans-serif; fill: var(--muted); }
.end-label { font: 600 12.5px Inter, sans-serif; fill: var(--ink); }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--deep); color: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 13px; min-width: 136px; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.tip b { display: block; font-weight: 500; font-size: 12.5px; color: #BFCBB9; margin-bottom: 3px; }
.tip div { display: flex; align-items: center; gap: 6px; }
.tip div i { width: 12px; height: 2px; }
.tip strong { font-weight: 600; }
.tip em { font-style: normal; color: #BFCBB9; margin-left: auto; padding-left: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.facts > div { background: var(--card-2); border-radius: var(--r-sm); padding: 11px 12px; }
.facts > div.top { background: var(--mint); }
.fact-v { font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; color: var(--deep); }
.fact-l { font-size: 13px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.data th, table.data td { padding: 8px 5px; text-align: right; border-bottom: 1px solid var(--rule); }
table.data th { font-weight: 600; font-size: 13px; color: var(--muted); }
table.data th:first-child, table.data td:first-child { text-align: left; }

/* Calendar */
.cal-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; text-align: center; margin-bottom: 12px; }
.cal-head b { display: block; font-weight: 600; font-size: 16px; letter-spacing: -.015em; color: var(--deep); }
.cal-head span { font-size: 12.5px; color: var(--muted); }
.round-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--rule); background: none; display: grid; place-items: center; color: var(--deep); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .icon { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.cal-dow { text-align: center; font-size: 12.5px; color: var(--muted); padding-bottom: 5px; }
.day { background: none; border: 0; padding: 3px 0 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 42px; border-radius: 10px; }
.day:disabled { cursor: default; }
.day:not(:disabled):hover { background: var(--card-2); }
.day .num { width: 28px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 500; }
.day.out .num { color: #A7A99A; }
.day.today .num { background: var(--kelly); color: var(--card); font-weight: 600; }
.day .dots { display: flex; gap: 2px; height: 5px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; }
.cal-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }

.popular-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--kelly); color: #FFFFFF; font-size: 13.5px; font-weight: 500; }
.popular-day b { font-weight: 700; font-size: 15.5px; letter-spacing: -.015em; }

.best-list { margin-top: 10px; display: grid; gap: 8px; }
.best-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card-2); border-radius: var(--r-sm); padding: 11px 14px; }
.best-label { display: block; font-weight: 600; color: var(--deep); font-size: 14.5px; }
.best-who { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.best-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.best-value { font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--deep); white-space: nowrap; }

/* Season countdown */
.countdown { background: var(--mint); border-radius: var(--r-lg); padding: 18px 20px 20px; }
.countdown h2 { font-weight: 600; font-size: 15px; letter-spacing: -.02em; color: var(--deep); }
.count-big { font-weight: 700; font-size: 30px; letter-spacing: -.035em; line-height: 1.15; color: var(--deep); margin-top: 4px; }
.count-sub { color: var(--deep); font-size: 13.5px; font-weight: 500; }
.progress { height: 6px; border-radius: 6px; background: rgba(30, 66, 54, .16); margin: 10px 0 14px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--kelly); border-radius: 6px; }
.countdown .btn-primary { width: 100%; min-height: 44px; font-size: 15px; }

/* ---------- Entries ---------- */
.feed > li { border-top: 1px solid var(--rule); }
.feed > li:first-child { border-top: 0; }
.entry summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; min-height: 60px; border-radius: 8px; }
.entry summary::-webkit-details-marker { display: none; }
.stamp { width: 46px; height: 48px; display: grid; align-content: center; text-align: center; border-radius: 12px; background: var(--card-2); color: var(--deep); }
.stamp b { font-weight: 500; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.stamp span { font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -.02em; }
.e-who { font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: 5px 7px; align-items: center; }
.e-what { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.e-pts { font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; color: var(--deep); text-align: right; white-space: nowrap; }
.tag { font-weight: 600; font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--mint); color: var(--deep); }
.tag.confirm { background: none; box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass-ink); }
.receipt { background: var(--card-2); padding: 12px 14px; margin: 0 0 12px; border-radius: var(--r-md); font-size: 14.5px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.line.total { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 7px; font-weight: 600; color: var(--deep); }
.flag-note { font-size: 13.5px; margin-top: 8px; color: var(--brass-ink); }
.row-actions { display: flex; gap: 18px; margin-top: 2px; }
.row-actions .danger { color: #8C3B2A; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border: 0; background: var(--card); color: var(--deep); border-radius: 999px; min-height: 40px; padding: 0 15px; white-space: nowrap; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.pill[aria-pressed="true"] { background: var(--deep); color: var(--card); }
.month { font-weight: 600; font-size: 14px; color: var(--deep); padding: 14px 0 6px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.month:first-child { padding-top: 0; }
.month span:last-child { font-weight: 500; color: var(--muted); }

/* ---------- Log a round ---------- */
.log-grid { display: grid; gap: var(--gap); align-items: start; }
.field-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 58px; padding: 7px 0; border-top: 1px solid var(--rule); }
.field-row:first-of-type { border-top: 0; padding-top: 0; }
.field-label { font-weight: 500; font-size: 14px; color: var(--deep); }
.field-opt { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.control { width: 100%; min-height: 44px; background: var(--card-2); border: 0; border-radius: 12px; padding: 0 12px; font-weight: 500; font-size: 15px; }
.seg { display: flex; background: var(--card-2); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 999px; padding: 0 8px; font-weight: 500; font-size: 14.5px; color: var(--deep); }
.seg button[aria-pressed="true"] { background: var(--deep); color: var(--card); }
.who { display: flex; gap: 6px; flex-wrap: wrap; }
.who button { flex: 1; min-height: 44px; border: 0; background: var(--card-2); border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--deep); padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.who button[aria-pressed="true"] { background: var(--deep); color: var(--card); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--deep); color: var(--card); display: grid; place-items: center; }
.stepper .icon { width: 18px; height: 18px; }
.stepper output { flex: 1; text-align: center; font-weight: 600; font-size: 19px; color: var(--deep); }
.tee-hint { font-size: 13px; color: var(--brass-ink); margin-top: 5px; }

.score-grid { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 7px; }
.score-row { display: grid; grid-template-columns: 92px repeat(var(--cols), minmax(0, 1fr)); gap: 6px; align-items: center; }
.score-row > span:first-child { font-weight: 500; font-size: 14px; color: var(--deep); line-height: 1.15; }
.col-btn { border: 0; background: none; min-height: 34px; padding: 0 2px; border-radius: 999px; font-weight: 500; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.col-btn[aria-pressed="true"] { background: var(--mint); color: var(--deep); font-weight: 600; }
.cell { width: 100%; min-width: 0; height: 46px; border: 0; background: var(--card-2); border-radius: 12px; text-align: center; font-weight: 600; font-size: 18px; color: var(--ink); -moz-appearance: textfield; }
.cell::placeholder { color: #A7A99A; font-weight: 500; }
.cell::-webkit-outer-spin-button, .cell::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cell[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #8C3B2A; }
select.cell { font-size: 15px; font-weight: 500; appearance: none; -webkit-appearance: none; text-align-last: center; padding: 0 2px; }
.points-row > span:first-child { font-weight: 600; }
.points-row output { display: grid; place-items: center; height: 48px; border-radius: 12px; background: var(--deep); color: var(--card); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.form-error { color: #8C3B2A; font-weight: 500; font-size: 14.5px; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-actions .btn-primary { flex: 1; }
.receipt-card { position: static; }

/* ---------- Majors, rules, player ---------- */
.wins-v { display: flex; align-items: center; gap: 8px; }
.trophy { font-size: 30px; line-height: 1; }
.trophy.none { opacity: .3; filter: grayscale(1); }
.major-card { display: grid; gap: 14px; align-content: start; }
.grid-2:has(.major-card) { align-items: start; }
.major-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-md); background: var(--card-2); }
.major-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.major-top .text-btn { padding: 0; min-height: 0; line-height: 1.4; }
.podium-score { display: block; font-size: 13px; color: var(--muted); }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--deep); font-weight: 600; font-size: 14.5px; text-decoration: none; border: 0; cursor: pointer; }
.btn-secondary:hover { background: var(--card-2); }
.btn-secondary .icon { width: 18px; height: 18px; }
.btn-secondary:focus-within { outline: 2px solid var(--kelly); outline-offset: 2px; }
.photo-field { display: grid; gap: 10px; }
.photo-field .btn-secondary { background: var(--card-2); }
.photo-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.text-btn.danger { color: #8C3B2A; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 88px; gap: 8px; align-items: center; padding: 5px 0; }
.result-head { font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 2px; }
.result-head span:not(:first-child) { text-align: center; }
.result-who { display: flex; align-items: center; gap: 7px; font-weight: 500; flex-wrap: wrap; }
.result-who .field-opt { flex-basis: 100%; padding-left: 15px; }
.grid-2 { display: grid; gap: var(--gap); }
.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-row > div { background: var(--card); border-radius: var(--r-md); padding: 13px 13px; }
.major { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
.flag-tile { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--deep); display: grid; place-items: center; }
.flag-tile.played .i-shape { fill: currentColor; }
.flag-tile.open { background: var(--card-2); color: var(--muted); }
.major-name { font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; color: var(--deep); }
.major-date { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.podium { margin-top: 9px; }
.podium li { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.podium b { font-weight: 600; color: var(--deep); }
.podium em { font-style: normal; color: var(--muted); font-size: 14px; }
.rule-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); align-items: center; }
.rule-row:first-child { border-top: 0; padding-top: 0; }
.rule-row:last-child { padding-bottom: 0; }
.rule-row b { font-weight: 600; color: var(--deep); display: block; }
.rule-row span { font-size: 14px; color: var(--muted); }
.rule-pts { font-weight: 700; font-size: 16px; letter-spacing: -.015em; color: var(--deep); text-align: right; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--kelly); }
.back .icon { width: 17px; height: 17px; }
.player-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.player-pts { font-weight: 700; font-size: 34px; letter-spacing: -.04em; line-height: 1; color: var(--deep); }
.src-row { display: grid; grid-template-columns: 116px 1fr; gap: 8px; align-items: center; min-height: 32px; font-size: 14px; }
.src-track { position: relative; height: 18px; }
.src-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.src-bar { position: absolute; top: 0; height: 18px; }
.src-bar.pos { border-radius: 0 4px 4px 0; }
.src-bar.neg { border-radius: 4px 0 0 4px; }
.src-val { position: absolute; top: 0; line-height: 18px; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 30; background: var(--deep); color: var(--card); border-radius: var(--r-md); padding: 12px 16px; font-weight: 500; font-size: 14.5px; width: min(92vw, 430px); box-shadow: 0 10px 30px rgba(30, 66, 54, .3); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { font-weight: 700; }

/* ---------- Tablet and up: the nav floats on the left ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 28px; }
  .phone-head, .tabs { display: none; }
  .shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; padding: 20px; max-width: 1500px; margin: 0 auto; align-items: start; }
  .side { display: grid; gap: 12px; position: sticky; top: 20px; }
  .card { padding: 22px 24px; }
  .banner { min-height: 372px; }
  .banner-copy { padding: 34px 34px 0; }
  .banner-copy h1 { font-size: 40px; }
  .banner-copy p { font-size: 17px; }
  .standings { margin: -40px 20px 0; }
  .dash-rail { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 32px; }
  .toast { bottom: 24px; }
  .field-row { grid-template-columns: 116px minmax(0, 1fr); }
  .score-row { grid-template-columns: 116px repeat(var(--cols), minmax(0, 1fr)); }
  .narrow { max-width: 760px; }
}
/* Wide screens: the standings card floats on the photo, Timeyfi style. */
@media (min-width: 1100px) {
  .banner-copy { max-width: calc(100% - 340px); }
  .standings { position: absolute; right: 20px; bottom: 20px; width: 300px; margin: 0; }
}
@media (min-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .dash-rail { grid-template-columns: 1fr; }
  .log-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .log-grid .receipt-card { position: sticky; top: 20px; }
  .log-wide { max-width: 1100px; }
}
