:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #181a1c;
  --surface: #202225;
  --line: #333538;
  --text: #f5f5f3;
  --muted: #adafb0;
  --orange: #ff7829;
  --orange-light: #ffa36a;
  --green: #a6d29d;
  --radius: 17px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, input, select, a, summary { touch-action: manipulation; }
button:disabled { opacity: .42; cursor: default; }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
a { color: var(--orange-light); }
p { line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.55rem); line-height: .99; letter-spacing: -.06em; }
h2 { font-size: 1.38rem; line-height: 1.14; letter-spacing: -.03em; }
h3 { font-size: 1.06rem; line-height: 1.25; letter-spacing: -.02em; }
small { font-size: .82rem; }
.shell { width: min(100% - 42px, 1080px); margin-inline: auto; }
.main { padding-top: 24px; padding-bottom: 45px; }
.site-header { border-bottom: 1px solid #27292b; padding-top: env(safe-area-inset-top, 0px); background: #111213; }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plain { border: 0; background: none; color: inherit; padding: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-align: left; flex-shrink: 0; }
.brand img { border-radius: 11px; }
.brand strong { display: block; font-size: 1.45rem; font-style: italic; font-weight: 950; line-height: 1; letter-spacing: -.065em; }
.brand em { color: var(--orange); }
.brand small { display: block; margin-top: 5px; font-size: .58rem; font-weight: 750; letter-spacing: .095em; color: var(--muted); }
.navigation { display: flex; gap: 5px; }
.navigation button { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 7px 13px; color: var(--muted); border-radius: 11px; background: none; border: 1px solid transparent; font-weight: 650; }
.navigation button[aria-current="page"] { color: var(--orange-light); background: #2a211c; border-color: #4a3326; }
i[data-icon] { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; font-style: normal; }
i svg { width: 100%; height: 100%; }
.primary, .secondary, .quiet, .icon-button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 8px 15px; font-weight: 730; line-height: 1.16; }
.primary { background: var(--orange); color: #17100c; }
.primary:hover { background: #ff8c48; }
.secondary, .icon-button { background: var(--surface); border-color: var(--line); color: var(--text); }
.secondary:hover, .icon-button:hover { border-color: #686c70; }
.quiet { color: var(--orange-light); background: transparent; }
.icon-button { width: 46px; min-height: 46px; padding: 0; flex-shrink: 0; }
.danger { color: #ffac9a; }
.full { width: 100%; }
.eyebrow { color: var(--orange-light); font-size: .76rem; letter-spacing: .13em; font-weight: 800; line-height: 1.25; }
.dot { display: inline-block; background: var(--orange); width: 7px; height: 7px; border-radius: 7px; margin-right: 7px; vertical-align: 1px; }
.hero { background: #1b211d; position: relative; overflow: hidden; border: 1px solid #353a35; border-radius: 23px; min-height: 338px; isolation: isolate; }
.hero canvas { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #141616 5%, #151717f5 24%, #151717a8 47%, transparent 78%); pointer-events: none; }
.hero-inner { padding: clamp(24px, 4vw, 45px); max-width: 460px; }
.hero h1 { font-size: clamp(3.7rem, 9vw, 6.3rem); font-weight: 880; line-height: .82; letter-spacing: -.085em; margin: 14px 0 18px; }
.hero-inner > p:not(.eyebrow) { color: #c9cac7; max-width: 280px; }
.hero-action { margin-top: 20px; min-width: 173px; }
.hero-location { position: absolute; right: 16px; bottom: 32px; display: flex; gap: 6px; align-items: center; padding: 8px 11px; background: #151816df; border: 1px solid #4a514a; border-radius: 8px; font-size: .85rem; }
.hero-location i { color: var(--orange); }
.hero-credit, .map-credit { position: absolute; right: 8px; bottom: 5px; font-size: .67rem; color: #d1d6d0; padding: 1px 4px; background: #131613d9; border-radius: 3px; text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 16px; }
.dashboard-aside { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--panel); border: 1px solid #2e3032; border-radius: var(--radius); padding: 19px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.panel-heading h2, .page-title h1 { margin-top: 5px; }
.tag { display: inline-block; padding: 5px 8px; border: 1px solid #414345; color: #d7d7d5; border-radius: 7px; font-size: .76rem; line-height: 1.3; font-weight: 700; }
.metric { font-size: 3.25rem; font-variant-numeric: tabular-nums; font-weight: 840; letter-spacing: -.085em; line-height: 1.02; margin-top: 12px; }
.metric-label, .muted { color: var(--muted); }
.metric-label { font-size: .89rem; }
.fine { font-size: .86rem; color: var(--muted); }
.category-list { display: grid; gap: 9px; margin-top: 16px; }
.category-line { display: grid; grid-template-columns: 100px 1fr 53px; align-items: center; gap: 8px; font-size: .88rem; }
.category-line strong { text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 6px; background: #343637; border-radius: 6px; overflow: hidden; }
.track span { height: 100%; display: block; border-radius: 6px; background: var(--orange); }
.track .negative { background: #a8a9ab; }
.positive, .accent { color: var(--orange-light); }
.negative { color: #d1d1d1; }
.next-action { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.next-action p { color: var(--muted); }
.next-action button { margin-top: auto; }
.feature-icon { color: var(--orange-light); width: 39px; height: 39px; display: grid; place-items: center; background: #33251c; border: 1px solid #503626; border-radius: 10px; margin-bottom: 2px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 0 18px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.stack { display: grid; gap: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
label { display: block; color: #dededd; font-size: .88rem; font-weight: 680; line-height: 1.25; }
input, select { width: 100%; min-height: 46px; border: 1px solid #4b4d4f; border-radius: 9px; background: #121315; color: var(--text); padding: 9px 10px; font-size: 16px; }
label input, label select { display: block; margin-top: 5px; }
select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6c6c6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 8px center; background-size: 16px; background-repeat: no-repeat; }
input[type=date] { min-width: 0; }
input:disabled { opacity: .55; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-finder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.course-finder input { min-width: 0; }
.detail-fields { min-width: 0; margin: 0; padding: 9px 10px 11px; border: 1px solid var(--line); border-radius: 10px; }
.detail-fields legend { padding-inline: 5px; font-weight: 720; font-size: .86rem; }
.detail-fields legend span { font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 10px; }
.detail-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.detail-list { margin-top: 7px; gap: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 3px; padding-block: 5px; font-size: .9rem; }
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-row > :first-child { flex: 1; }
.detail-row strong { font-size: .8rem; font-variant-numeric: tabular-nums; }
.practice-result { border-top: 1px solid var(--line); padding-top: 3px; }
.practice-result > summary { flex-wrap: nowrap; }
.practice-result > summary strong { white-space: nowrap; }
.practice-result > summary strong::after { content: "⌄"; margin-left: .5em; }
.practice-result[open] > summary strong::after { content: "⌃"; }
.hole-strip { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px; }
.hole-strip select { font-weight: 750; }
.hole-strip button i { width: 17px; height: 17px; flex-basis: 17px; }
.round-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 8px; color: var(--muted); font-size: .88rem; }
.map-panel { overflow: hidden; padding: 12px; }
.map-viewport { position: relative; overflow: hidden; border-radius: 12px; background: #1a211b; border: 1px solid #3c443e; }
.map-viewport canvas { display: block; width: 100%; height: clamp(276px, 39vh, 438px); touch-action: none; }
.map-key { position: absolute; left: 9px; top: 9px; background: #151a16df; color: #fff; padding: 6px 8px; border: 1px solid #535e53; border-radius: 8px; pointer-events: none; font-size: .78rem; font-weight: 700; }
.map-key strong { font-size: 1.28rem; display: block; line-height: 1.05; }
.map-tools { position: absolute; right: 7px; top: 7px; display: grid; gap: 5px; }
.map-tools button { width: 44px; min-height: 44px; background: #171a18f0; }
.location-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.location-row button { padding-inline: 7px; }
.map-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.map-actions button { font-size: .82rem; padding-inline: 3px; }
.status { margin: 0; font-size: .87rem; color: #d7d8d4; line-height: 1.4; min-height: 1.1em; }
.status.error { color: #ffb1a0; }
.penalty-note { color: #ffba91; font-size: .86rem; font-weight: 700; }
.weather-summary { display: grid; gap: 5px; padding: 12px; background: var(--surface); border-radius: 10px; }
.club-slot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(68px, .8fr) auto; gap: 8px; align-items: end; }
.club-slot button { padding-inline: 5px; }
.capture { margin-top: 5px; width: 100%; min-height: 44px; font-size: .79rem; padding-inline: 2px; }
.list { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.list-item { padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.list-item strong { font-variant-numeric: tabular-nums; }
.round-log { grid-column: 1 / -1; }
.end-round { padding-top: 1px; justify-content: flex-end; grid-column: 1 / -1; }
#practice-content .panel, #settings-content .panel { max-width: 640px; }
.practice-tabs { display: grid; gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-tabs button { padding-inline: 4px; font-size: .88rem; }
.practice-tabs button[aria-pressed="true"] { color: var(--orange-light); border-color: #a25f36; background: #2d211a; }
.attempts { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.attempts span { aspect-ratio: 1; border: 1px solid #555759; border-radius: 6px; display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.attempts .hit { background: var(--orange); border-color: var(--orange); color: #141414; }
.attempts .miss { background: #37383a; color: #eee; }
details { overflow-wrap: anywhere; }
summary { cursor: pointer; }
details > summary { list-style: none; min-height: 48px; }
details > summary::-webkit-details-marker { display: none; }
.details-content { margin-top: 8px; }
.benchmark-comparison { border-top: 1px solid var(--line); }
.benchmark-comparison > summary { display: list-item; list-style: revert; list-style-position: inside; padding-block: 12px; cursor: pointer; font-weight: 600; }
.benchmark-comparison > summary::-webkit-details-marker { display: inline; }
.peer-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .87rem; }
.peer-table th, .peer-table td { padding: 8px 3px; border-bottom: 1px solid var(--line); text-align: right; }
.peer-table th:first-child { text-align: left; }
.peer-table thead th { color: var(--muted); font-weight: 600; }
.peer-table td:last-child { font-weight: 700; }
.history-stat { font-size: 1.13rem; font-weight: 800; text-align: right; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: max(22px, var(--safe-bottom)); transform: translateX(-50%); width: max-content; max-width: min(92vw, 470px); z-index: 5; pointer-events: none; background: #262a26; color: #fff; border: 1px solid #676f65; border-radius: 11px; padding: 11px 14px; display: none; box-shadow: 0 4px 34px #0008; }
.toast:not(:empty) { display: block; }
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-aside { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { min-height: 62px; }
  .brand img { width: 38px; height: 38px; }
  .main { padding-top: 13px; padding-bottom: calc(78px + var(--safe-bottom)); }
  .navigation { position: fixed; z-index: 4; inset: auto 0 0; padding: 4px 7px calc(4px + var(--safe-bottom)); border-top: 1px solid #363839; background: #151617; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .navigation button { flex-direction: column; gap: 3px; font-size: .73rem; min-height: 47px; min-width: 0; padding: 4px; }
  .navigation i { width: 19px; height: 19px; flex-basis: 19px; }
  .hero { min-height: 307px; border-radius: 16px; }
  .hero::after { background: linear-gradient(90deg, #151717fa 2%, #151717e5 29%, #15171786 61%, #15171710 100%); }
  .hero-inner { padding: 21px 16px 38px; }
  .hero h1 { margin: 13px 0 15px; }
  .hero-inner > p:not(.eyebrow) { max-width: 209px; font-size: .91rem; }
  .hero-action { margin-top: 14px; }
  .hero-location { right: 6px; bottom: 20px; font-size: .69rem; padding: 4px 5px; }
  .hero-location i { width: 14px; height: 14px; flex-basis: 14px; }
  .dashboard-grid, .split { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-aside p { font-size: .88rem; }
  .dashboard-aside h2 { font-size: 1.15rem; }
  .dashboard-aside .secondary { padding-inline: 6px; font-size: .86rem; width: 100%; }
  .panel { padding: 14px; }
  .map-panel { padding: 9px; }
  .page-title { padding: 4px 0 12px; }
  .round-log, .end-round { grid-column: auto; }
  .toast { bottom: calc(61px + var(--safe-bottom)); }
}
@media (max-width: 375px) {
  .shell { width: calc(100% - 18px); }
  .hero-location { bottom: 21px; }
  .fields { gap: 7px; }
  .map-actions button { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.account-shell { padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: 36px; }
.account-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text);
  text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.account-brand em { color: var(--orange); font-style: normal; }
.account-gate { display: grid; justify-items: center; margin-top: 28px; }
.account-panel { width: min(100%, 480px); }
.account-panel h1 { margin: 0; }
.account-panel input, #player-profile-form input, #player-profile-form select { font-size: 16px; }
.sync-row { margin-bottom: 14px; }
.account-link { padding: 9px; color: var(--orange); text-align: center; }
