@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Golf broadcast palette. Navy carries information; green identifies the shot. */
:root {
  --brand-navy: #092857;
  --brand-green: #49943c;
  --action: #28672f;
  --action-hover: #1c5424;
  --ink: #092857;
  --muted: #586778;
  --surface: #ffffff;
  --surface-soft: #eef3f5;
  --line: #dce4e8;
  --focus: #d2982e;
  --space-edge: clamp(18px, 2.5vw, 36px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --panel-shadow: 0 8px 32px #0928571c;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #a1cbd7;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:disabled, input:disabled { cursor: default; opacity: .5; }
button { transition: background .15s, border-color .15s, transform .15s; }
button:active:not(:disabled) { transform: translateY(1px); }
#game { width: 100%; height: 100dvh; min-height: 520px; position: relative; overflow: hidden; }
#world { width: 100%; height: 100%; display: block; touch-action: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 65%, #061d1820); }
header { position: absolute; left: max(var(--space-edge), env(safe-area-inset-left)); right: max(var(--space-edge), env(safe-area-inset-right)); top: max(22px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 3; }
.brand { display: flex; align-items: center; gap: 15px; min-height: 52px; padding: 8px 14px; background: #fffffff2; border-radius: 7px; color: var(--ink); text-decoration: none; box-shadow: 0 3px 16px #0928570c; }
.brand img { display: block; width: 205px; height: auto; }
.brand small { border-left: 1px solid var(--line); padding-left: 14px; font-size: 14px; font-weight: 700; }
.brand:hover { background: #fff; }
.weather { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; text-shadow: 0 1px 6px #ffffffbb; }
.weather small { display: block; font-size: 12px; font-weight: 400; color: #345269; margin-top: 3px; }
.sun { font-size: 29px; color: #94691a; }
.top-actions { display: flex; gap: 8px; }
.icon-button { position: relative; border: 1px solid #ffffff88; border-radius: 7px; background: #fffffff0; color: var(--ink); width: 44px; height: 44px; font-size: 21px; font-weight: 600; box-shadow: 0 3px 12px #0928570b; }
.icon-button:hover, .camera-button:hover { background: #fff; border-color: var(--brand-green); }
.off-mark { position: absolute; width: 21px; height: 1.5px; transform: rotate(-45deg); background: currentColor; top: 21px; left: 11px; }
.round { position: absolute; top: 112px; left: var(--space-edge); width: 200px; background: #fffffff2; border-radius: 8px; overflow: hidden; box-shadow: var(--panel-shadow); }
.round-heading { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; background: var(--brand-navy); color: white; padding: 10px 14px; }
.round-heading > span { font-size: 18px; font-variant-numeric: tabular-nums; }
#hole-list { padding: 0 12px; }
.hole-row { display: flex; align-items: center; gap: 9px; min-height: 43px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.hole-row:last-child { border-bottom: 0; }
.hole-row.active { color: var(--ink); font-weight: 700; }
.hole-row .num { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; background: var(--surface-soft); font-size: 12px; flex-shrink: 0; }
.hole-row.active .num { background: var(--brand-green); color: white; }
.hole-row .hole-score { margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; }
.record { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.record strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hole-info { position: absolute; top: 114px; left: calc(var(--space-edge) + 228px); pointer-events: none; color: white; text-shadow: 0 2px 10px #092857aa; }
.hole-info > span { font-size: 14px; font-weight: 600; }
h1 { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 2.5vw, 36px); margin: 4px 0 9px; line-height: 1.15; font-weight: 700; }
.hole-info p { display: flex; gap: 16px; font-size: 14px; margin: 0; }
.wind { position: absolute; top: 112px; right: var(--space-edge); display: flex; align-items: center; gap: 11px; background: #fffffff0; padding: 10px 14px; border-radius: 7px; box-shadow: var(--panel-shadow); }
.wind > span { font-size: 27px; }
.wind b { font-size: 16px; font-variant-numeric: tabular-nums; }
.wind small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.map-wrap { position: absolute; right: var(--space-edge); top: 205px; display: flex; flex-direction: column-reverse; align-items: end; gap: 8px; }
#map { width: 104px; height: 127px; background: #092857d9; border: 1px solid #ffffff66; border-radius: 52px; box-shadow: var(--panel-shadow); }
.camera-button { width: 44px; height: 44px; background: #fffffff0; color: var(--ink); border: 1px solid transparent; border-radius: 7px; padding: 0; font-size: 22px; }
.camera-button span { display: none; }
.camera-button[aria-pressed=true] { color: white; background: var(--brand-navy); }
.controls { position: absolute; left: 50%; bottom: calc(28px + var(--safe-bottom)); transform: translateX(-50%); width: min(840px, calc(100% - 56px)); padding: 12px 18px; background: #fffffffa; border: 1px solid white; border-top: 3px solid var(--brand-green); border-radius: 10px; box-shadow: 0 12px 40px #09285730; }
.control-top { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.stroke { min-width: 60px; display: flex; gap: 10px; align-items: center; }
.stroke > span, .remaining > span { font-size: 14px; color: var(--muted); }
.stroke strong { font-size: 30px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.clubs { display: flex; gap: 4px; margin: auto; }
.club { min-height: 44px; display: flex; gap: 8px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 7px 10px; color: var(--muted); font-size: 14px; }
.club span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 4px; background: var(--surface-soft); font-weight: 700; font-size: 12px; }
.club:hover:not(:disabled) { border-color: #b4c9d2; background: #f4f7f8; }
.club.active { background: #eaf2e8; color: #23552a; border-color: #b9d3b4; font-weight: 700; }
.club.active span { background: var(--brand-green); color: white; }
.remaining { text-align: right; min-width: 86px; }
.remaining strong { display: block; font-size: 23px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.remaining small { font-size: 14px; font-weight: 400; }
.control-bottom { display: grid; grid-template-columns: 230px 1fr 160px; align-items: center; gap: 24px; padding-top: 10px; }
.aim-control, .power-control { min-width: 0; }
.control-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; min-height: 18px; }
.control-label output { color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aim-row { display: flex; align-items: center; gap: 8px; }
.aim-row button { flex-shrink: 0; border: 1px solid var(--line); background: white; color: var(--ink); width: 44px; height: 44px; border-radius: 6px; font-size: 22px; padding: 0; }
.aim-row button:hover { background: var(--surface-soft); }
.aim-row input { min-width: 0; }
.power-control .control-label output { font-size: 16px; font-weight: 700; color: var(--action); }
.power-ticks { display: none; }
input[type=range] { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; border-radius: 0; background: linear-gradient(var(--line), var(--line)) center / 100% 4px no-repeat; cursor: pointer; accent-color: var(--action); touch-action: none; }
input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; background: var(--brand-navy); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #839baf; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--brand-navy); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #839baf; }
#power { background: linear-gradient(to right, #399345 0%, #8cba3c 30%, #e8c344 55%, #e78935 78%, #cb3934 100%) center / 100% 5px no-repeat; }
.shoot { min-height: 60px; border: 0; border-radius: 7px; background: var(--action); color: white; padding: 10px 18px; font-size: 17px; font-weight: 700; box-shadow: inset 0 -3px 0 #123c2160; }
.shoot:hover:not(:disabled) { background: var(--action-hover); }
.shoot span { display: block; font-size: 12px; color: #e0ecd9; font-weight: 400; margin-top: 3px; }
.shot-label { position: absolute; bottom: calc(207px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 13px; background: #092857df; border: 1px solid #ffffff40; border-radius: 5px; color: white; font-size: 14px; white-space: nowrap; }
.ball-dot { width: 8px; height: 8px; background: white; border-radius: 50%; }
.label-divider { height: 14px; width: 1px; background: #ffffff55; }
footer { position: absolute; bottom: calc(8px + var(--safe-bottom)); left: var(--space-edge); right: var(--space-edge); color: #ffffffb3; display: flex; justify-content: space-between; font-size: 10px; pointer-events: none; }
#toast { position: absolute; top: 27%; left: 50%; transform: translate(-50%, 8px); background: #fffffff5; color: var(--ink); padding: 12px 20px; border-left: 3px solid var(--brand-green); border-radius: 6px; box-shadow: var(--panel-shadow); font-size: 15px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 80%; text-align: center; z-index: 5; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.overlay { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; padding: 4.5vw; }
.hidden { display: none !important; }
#intro { background: linear-gradient(90deg, #09285722, transparent 58%); }
.intro-panel { padding: 28px; width: 355px; max-width: 100%; background: #fffffff2; border-radius: 12px; border-top: 4px solid var(--brand-green); box-shadow: 0 18px 70px #0928572a; }
.intro-brand, .result-brand { display: inline-flex; align-items: center; min-height: 50px; border-radius: 4px; }
.intro-logo { display: block; width: 242px; max-width: 100%; height: auto; }
.intro-kicker { font-size: 14px; font-weight: 600; display: block; color: var(--action); margin-bottom: 15px; }
.intro-panel .intro-kicker { margin-top: 22px; }
.intro-panel h2 { font-family: 'Manrope', sans-serif; font-size: 45px; font-weight: 700; line-height: 1.09; margin: 0 0 18px; }
.intro-panel p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.intro-details { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); margin-bottom: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.intro-details b { font-size: 18px; color: var(--ink); font-weight: 700; margin-right: 3px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 52px; border: 0; background: var(--action); color: white; border-radius: 7px; padding: 14px 24px; font-weight: 700; font-size: 16px; }
.primary:hover { background: var(--action-hover); }
.primary span { font-size: 21px; }
.intro-panel .primary { width: 100%; }
.intro-panel > small { display: block; color: var(--muted); font-size: 12px; margin-top: 13px; text-align: center; }
.result-panel { margin: auto; max-width: 440px; max-height: calc(100dvh - 40px); overflow: auto; width: 100%; background: white; padding: 30px; border-top: 4px solid var(--brand-green); border-radius: 12px; box-shadow: 0 20px 100px #09285755; text-align: center; }
.result-brand { margin-bottom: 20px; }
.result-logo { display: block; width: 210px; height: auto; }
.result-panel > span { display: block; font-size: 14px; color: var(--muted); }
.result-panel h2 { font-family: 'Manrope', sans-serif; font-size: 46px; margin: 12px 0; color: var(--ink); }
.result-panel p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.result-panel .primary { width: 100%; margin-top: 24px; }
.score-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.score-row strong { font-size: 16px; font-variant-numeric: tabular-nums; }
#result, #error { background: #09285755; backdrop-filter: blur(4px); }
.text-button { min-height: 44px; background: none; border: 0; color: var(--action); font-size: 14px; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
dialog { border: 0; border-top: 4px solid var(--brand-green); padding: 32px; border-radius: 12px; max-width: 480px; color: var(--ink); background: white; max-height: calc(100dvh - 32px); }
dialog::backdrop { background: #09285777; backdrop-filter: blur(4px); }
dialog h2 { font-family: 'Manrope', sans-serif; font-size: 32px; margin: 0 0 22px; }
dialog p { font-size: 15px; line-height: 1.65; color: var(--muted); }
dialog p b { color: var(--ink); }
.dialog-close { position: absolute; right: 8px; top: 7px; width: 44px; height: 44px; background: none; border: 0; font-size: 28px; color: var(--muted); }
dialog .primary { width: 100%; margin-top: 24px; }
body.intro .round, body.intro .hole-info, body.intro .wind, body.intro .controls, body.intro .shot-label, body.intro .map-wrap, body.intro .weather, body.intro header, body.intro footer { visibility: hidden; }

@media (max-width: 1050px) {
  .weather { display: none; }
  .round { width: 185px; }
  .hole-info { left: calc(var(--space-edge) + 208px); }
  .controls { width: min(800px, calc(100% - 40px)); }
  .control-bottom { grid-template-columns: 205px 1fr 150px; gap: 18px; }
  .club { gap: 6px; padding: 7px 8px; }
  .map-wrap { top: 196px; }
  #map { width: 88px; height: 108px; }
}
@media (max-width: 700px) {
  :root { --space-edge: 14px; }
  header { top: max(14px, env(safe-area-inset-top)); gap: 8px; }
  .brand { padding: 6px 8px; min-height: 44px; gap: 8px; }
  .brand img { width: 165px; }
  .brand small { display: none; }
  .top-actions { gap: 6px; }
  .round { display: none; }
  .hole-info { top: 83px; left: var(--space-edge); }
  h1 { font-size: 25px; margin: 4px 0 7px; }
  .hole-info > span, .hole-info p { font-size: 14px; }
  .wind { top: 83px; padding: 8px 10px; gap: 7px; }
  .wind > span { font-size: 24px; }
  .wind b { font-size: 14px; }
  .map-wrap { top: 162px; gap: 7px; }
  #map { width: 66px; height: 81px; }
  .controls { width: calc(100% - 20px); bottom: calc(12px + var(--safe-bottom)); padding: 9px 10px; border-radius: 9px; }
  .control-top { gap: 7px; padding-bottom: 6px; }
  .stroke { min-width: 32px; display: block; }
  .stroke > span, .remaining > span { font-size: 12px; }
  .stroke strong { display: block; font-size: 24px; }
  .clubs { gap: 2px; }
  .club { flex-direction: column; justify-content: center; gap: 2px; min-width: 44px; min-height: 46px; padding: 3px 5px; font-size: 14px; border-radius: 5px; }
  .club span { height: 19px; width: 24px; font-size: 11px; background: transparent; }
  .club.active span { background: transparent; color: var(--action); }
  .remaining { min-width: 49px; }
  .remaining strong { font-size: 21px; }
  .remaining small { font-size: 12px; }
  .control-bottom { grid-template-columns: 1fr 1fr; gap: 5px 14px; padding-top: 7px; }
  .control-label, .control-label output { font-size: 14px; }
  .control-label { gap: 3px; }
  .control-label output { font-size: 12px; }
  .power-control .control-label output { font-size: 14px; }
  .aim-row { gap: 3px; }
  .shoot { grid-column: 1 / -1; min-height: 44px; padding: 9px 12px; font-size: 16px; }
  .shoot span { display: none; }
  .shot-label { bottom: calc(227px + var(--safe-bottom)); font-size: 14px; padding: 7px 11px; }
  footer { display: none; }
  #toast { top: 33%; font-size: 14px; padding: 11px 16px; width: max-content; max-width: 90%; }
  #intro { align-items: flex-end; padding: 16px 16px calc(16px + var(--safe-bottom)); background: linear-gradient(0deg, #09285722, transparent 55%); }
  .intro-panel { width: min(355px, 100%); padding: 21px 24px; }
  .intro-logo { width: 222px; }
  .intro-panel .intro-kicker { margin-top: 14px; margin-bottom: 10px; font-size: 14px; }
  .intro-panel h2 { font-size: 37px; margin-bottom: 12px; }
  .intro-panel p { font-size: 14px; margin-bottom: 14px; }
  .intro-details { padding-top: 10px; margin-bottom: 14px; }
  .intro-panel > small { margin-top: 10px; }
  .result-panel { padding: 24px; }
  .result-panel h2 { font-size: 40px; }
  dialog { max-width: calc(100% - 24px); padding: 25px; }
  dialog p { font-size: 14px; }
}
@media (max-width: 370px) {
  .brand img { width: 145px; }
  .control-top { gap: 4px; }
  .club { min-width: 44px; padding-inline: 3px; font-size: 13px; }
  .remaining { min-width: 45px; }
  .remaining strong { font-size: 19px; }
  .control-bottom { gap: 4px 10px; }
}
@media (max-height: 670px) and (min-width: 701px) {
  header { top: 14px; }
  .round, .wind { top: 92px; }
  .hole-info { top: 94px; }
  .round .record { display: none; }
  .map-wrap { top: 175px; }
  #map { display: none; }
  .controls { bottom: 19px; padding: 8px 16px; }
  .control-top { padding-bottom: 5px; }
  .control-bottom { padding-top: 6px; }
  .shot-label { bottom: 181px; }
  footer { bottom: 4px; font-size: 9px; }
  .intro-panel { padding: 23px; }
  .intro-panel .intro-kicker { margin-top: 14px; margin-bottom: 12px; }
  .intro-panel h2 { font-size: 40px; }
  .intro-panel p { margin-bottom: 14px; }
  .intro-details { margin-bottom: 16px; }
}
@media (max-height: 620px) and (max-width: 700px) {
  #game { min-height: 520px; }
  .controls { padding: 6px 9px; bottom: calc(7px + var(--safe-bottom)); }
  .control-top { padding-bottom: 3px; }
  .club { min-height: 44px; }
  .control-bottom { padding-top: 3px; gap: 3px 12px; }
  .shot-label { bottom: calc(201px + var(--safe-bottom)); }
  .intro-panel { padding: 16px 22px; }
  .intro-panel .intro-kicker { display: none; }
  .intro-panel h2 { font-size: 32px; margin-top: 10px; }
  .intro-panel p { margin-bottom: 10px; }
  .intro-details { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Quiet studio signature with a full-size touch target. */
#game { min-height: 0; }
.studio-credit { position: absolute; z-index: 15; bottom: calc(3px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; color: #ffffffdb; white-space: nowrap; font-size: 11px; text-shadow: 0 1px 4px #112718c9; }
.studio-credit a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: 3px; }
.studio-credit img { display: block; width: 61.6px; height: auto; background: transparent; }
.studio-credit a:hover { opacity: .75; }
.studio-credit a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.controls { bottom: calc(61px + var(--safe-bottom)); }
.shot-label { bottom: calc(240px + var(--safe-bottom)); }
footer span:nth-child(2) { display: none; }
@media(max-width:700px) { .studio-credit img { width: 56px; } .controls { bottom: calc(57px + var(--safe-bottom)); } .shot-label { bottom: calc(272px + var(--safe-bottom)); } #intro { padding-bottom: calc(61px + var(--safe-bottom)); } }
@media(max-height:620px) and (max-width:700px) { #intro { overflow-y: auto; align-items: flex-start; } .intro-panel { margin-top: 8px; } }
@media(max-height:500px) and (min-width:500px) { header { top: max(8px, env(safe-area-inset-top)); } .brand { min-height: 40px; padding: 4px 8px; } .brand img { width: 175px; } .round,.weather,.map-wrap { display: none; } .hole-info { top: 65px; left: 20px; } .hole-info h1 { font-size: 22px; margin: 2px 0; } .hole-info>span,.hole-info p { font-size: 12px; } .wind { top: 67px; padding: 6px 10px; } .controls { bottom: calc(54px + var(--safe-bottom)); width: calc(100% - 32px); padding: 5px 12px; } .control-top { padding-bottom: 2px; gap: 12px; } .club { min-height: 44px; padding: 3px 8px; font-size: 13px; } .control-bottom { display: grid; grid-template-columns: 1fr 1.15fr 130px; padding-top: 4px; gap: 16px; } .control-label { font-size: 12px; margin-bottom: 0; } .shoot { min-height: 44px; grid-column: auto; padding: 8px 12px; } .shoot span,.power-ticks { display: none; } .shot-label { display: none; } #intro { padding: 12px 20px 58px; align-items: center; overflow-y: auto; } .intro-panel { padding: 15px 20px; width: 340px; margin-top: 0; } .intro-panel h2 { font-size: 29px; margin-bottom: 8px; } .intro-logo { width: 185px; } .intro-panel .intro-kicker,.intro-panel p,.intro-panel>small { display: none; } .intro-details { margin-bottom: 12px; padding-top: 10px; } .primary { min-height: 44px; padding: 10px; } }

/* Ropice round setup: native controls remain comfortable on touch screens. */
select { font: inherit; -webkit-tap-highlight-color: transparent; }
select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#hole-list { max-height: min(350px, calc(100dvh - 380px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#scorecard { max-height: none; overflow: visible; }
#intro { align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(58px + var(--safe-bottom)) max(20px, env(safe-area-inset-left)); background: #09285740; overflow: hidden; }
.intro-panel.setup-panel { width: min(850px, 100%); min-height: 0; max-height: 100%; padding: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: #fff; border-radius: 12px; scrollbar-width: thin; }
.setup-main { padding: 22px 30px 16px; min-width: 0; }
.setup-panel .intro-brand { min-height: 44px; }
.setup-panel .intro-logo { width: 212px; }
.setup-panel .intro-kicker { display: block; margin: 13px 0 8px; font-size: 12px; }
.setup-panel h2 { margin: 0 0 8px; font-size: 29px; line-height: 1.2; }
.setup-panel .setup-lead { display: block; margin: 0 0 20px; font-size: 14px; line-height: 1.45; }
.setup-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
.setup-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.setup-field-wide { grid-column: 1 / -1; }
.setup-field select { width: 100%; min-width: 0; min-height: 46px; padding: 8px 28px 8px 11px; border: 1px solid #bfcdd4; border-radius: 6px; background-color: #f8fafb; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.setup-field select:hover { border-color: var(--brand-green); }
.setup-panel .difficulty-description { display: block; margin: 10px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 0; }
.round-summary { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.setup-actions { display: flex; flex-direction: column; gap: 5px; }
.setup-actions .text-button { margin: 0; }
.setup-panel .setup-note { display: block; color: #64717d; font-size: 11px; line-height: 1.5; margin: 12px 0 0; }
.setup-course { min-width: 0; padding: 30px 22px 24px; background: #f1f5ed; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #dbe4d6; }
.course-map-heading { display: flex; flex-direction: column; gap: 6px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 22px; }
.course-map-heading small { font-family: 'DM Sans', sans-serif; color: #536d59; font-size: 12px; font-weight: 400; }
.setup-course img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.course-map-key { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; font-size: 11px; color: #365045; }
.course-map-key span { display: inline-flex; align-items: center; gap: 5px; }
.course-map-key i { width: 7px; height: 7px; display: block; border-radius: 50%; }
.course-ocelova { background: #087589; }.course-werkova { background: #8e9198; }.course-zelezna { background: #b3222a; }
#round-settings { display: block; margin: 8px auto 0; }
@media (max-width: 700px) {
  #intro { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); align-items: center; }
  .intro-panel.setup-panel { width: min(430px, 100%); display: block; }
  .setup-main { padding: 20px 22px 18px; }
  .setup-panel h2 { font-size: 27px; }
  .setup-panel .intro-kicker { margin-top: 9px; }
  .setup-panel .setup-lead { margin-bottom: 17px; }
  .setup-panel .intro-logo { width: 196px; }
  .setup-course { display: none; }
  .setup-field select { font-size: 16px; }
  .setup-fields { gap: 12px 10px; }
  .setup-panel .difficulty-description { min-height: 0; }
  .top-actions { flex: 0 0 auto; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand img { max-width: 100%; }
  .hole-info { max-width: calc(100% - 125px); }
  .hole-info h1 { overflow-wrap: anywhere; font-size: 23px; }
}
@media (max-width: 400px) {
  .brand img { width: 135px; }
  .setup-main { padding: 17px 16px 16px; }
  .setup-panel h2 { font-size: 25px; }
  .setup-field { font-size: 12px; }
  .setup-field select { padding-left: 8px; padding-right: 18px; }
}
@media (max-width: 340px) { .brand img { width: 113px; } .round-summary { font-size: 14px; } }
@media (max-height: 500px) and (min-width: 500px) {
  #intro { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: calc(54px + var(--safe-bottom)); }
  .intro-panel.setup-panel { width: min(760px, 100%); display: block; }
  .setup-main { padding: 16px 22px; }
  .setup-panel .intro-logo { width: 178px; }
  .setup-panel .intro-kicker { margin: 7px 0 5px; }
  .setup-panel h2 { font-size: 25px; }
  .setup-panel .setup-lead { margin-bottom: 14px; }
  .setup-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-field-wide { grid-column: auto; }
  .setup-course { display: none; }
  .setup-panel .difficulty-description { min-height: 0; }
  .setup-actions .primary { min-height: 46px; }
}

/* Keep whole-hole inspection reachable on landscape phones. */
@media(max-height:500px) and (min-width:500px) { .map-wrap { display:flex; top:67px; right:max(144px, calc(env(safe-area-inset-right) + 130px)); } #map { display:none; } }

/* Detached listboxes are never clipped by the scrolling setup panel. */
.setup-field select[hidden] { display: none !important; }
.golf-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #bfcdd4; border-radius: 6px; background: #f8fafb; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.golf-select-trigger > span:first-child { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.golf-select-trigger:hover:not(:disabled) { border-color: var(--brand-green); background: #fff; }
.golf-select-trigger[aria-expanded="true"] { border-color: var(--action); background: #fff; box-shadow: 0 0 0 2px #49943c26; }
.golf-select-chevron { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; align-self: center; color: #61766b; transition: transform .15s; }
.golf-select-chevron svg { display: block; }
.golf-select-trigger[aria-expanded="true"] .golf-select-chevron { transform: rotate(180deg); }
.golf-select-menu { position: fixed; z-index: 1000; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; background: #fff; color: var(--ink); border: 1px solid #b7c9bf; border-radius: 8px; box-shadow: 0 10px 35px #09285738; font-family: 'DM Sans', sans-serif; font-size: 15px; scrollbar-width: thin; }
.golf-select-menu[hidden] { display: none; }
.golf-select-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 4px; cursor: pointer; line-height: 1.35; }
.golf-select-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.golf-select-option.is-highlighted { background: #edf4ea; }
.golf-select-option[aria-selected="true"] { color: #23552a; background: #e5f0df; font-weight: 700; }
.golf-select-option[aria-selected="true"].is-highlighted { background: #d8eacc; }
.golf-select-option[aria-disabled="true"] { color: #748077; font-weight: 400; background: transparent; cursor: default; }
.golf-select-check { flex: 0 0 18px; font-size: 16px; color: var(--action); text-align: center; }
@media (max-width: 700px) { .golf-select-trigger,.golf-select-menu { font-size: 16px; } }
@media (max-width: 400px) { .golf-select-trigger { padding-inline: 8px; gap: 5px; } }

/* The nine-hole reward and friend challenge share the existing results hierarchy. */
#result { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(58px + var(--safe-bottom)) max(16px, env(safe-area-inset-left)); }
#result .result-panel { max-width: 500px; max-height: 100%; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
.result-panel .result-brand { margin-bottom: 13px; }
.result-panel #result-detail { margin-top: 0; }
.result-panel #next { margin-top: 20px; }
.reward-panel { margin-top: 22px; padding: 19px; border: 1px solid #c8ddbd; border-left: 4px solid var(--brand-green); border-radius: 8px; background: #f3f8ef; text-align: left; }
.reward-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: space-between; color: #466441; font-size: 12px; font-weight: 700; }
.reward-preview-badge { border: 1px solid #c0cfc7; border-radius: 3px; padding: 3px 6px; background: #fff; color: #617069; font-size: 10px; font-weight: 500; }
.reward-panel h3 { font-family: 'Manrope', sans-serif; color: var(--ink); font-size: 25px; font-weight: 800; line-height: 1.2; margin: 10px 0; overflow-wrap: anywhere; }
.reward-panel #reward-description { margin: 0; font-size: 14px; line-height: 1.5; color: #435843; }
.reward-panel .reward-terms { font-size: 12px; line-height: 1.55; margin: 10px 0 0; color: #5b6e5b; }
.reward-panel .reward-preview-note { font-size: 11px; line-height: 1.5; margin: 10px 0 0; color: #65716b; }
.reward-panel[data-kind="gift"] { border-color: #daceb3; border-left-color: #b59451; background: #fbf8f0; }
.reward-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.secondary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid #b5cbb1; border-radius: 6px; background: #fff; color: var(--action); text-decoration: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.secondary-button:hover:not(:disabled) { background: #eaf3e4; border-color: #7eaa6c; }
.reward-actions .text-button { margin: 0; }
.reward-code-row,.challenge-link-controls { display: flex; align-items: stretch; gap: 7px; width: 100%; min-width: 0; }
.reward-code-row { margin-top: 15px; }
.reward-code-row input,.challenge-link-controls input { flex: 1 1 0; min-width: 0; width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #bfcfc5; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.reward-code-row input { font-weight: 700; letter-spacing: .04em; }
.reward-code-row .secondary-button,.challenge-link-controls .secondary-button { flex: 0 0 auto; }
.result-panel .engagement-status,.setup-panel .engagement-status { display: block; font-size: 12px; line-height: 1.5; color: #49624d; margin: 9px 0 0; overflow-wrap: anywhere; }
.engagement-status:empty,.reward-terms:empty { display: none !important; }
.result-panel .challenge-share { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; margin-top: 9px; border: 1px solid #d3dee4; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.challenge-share:hover { background: #f2f6f8; border-color: #adc3cf; }
.challenge-link-row { margin-top: 16px; text-align: left; }
.challenge-link-row label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.challenge-banner { margin: 17px 0; padding: 14px 15px; border: 1px solid #c5d7e2; border-left: 3px solid var(--brand-navy); border-radius: 6px; background: #f1f6f9; }
.challenge-eyebrow { display: block; font-size: 11px; font-weight: 700; color: #577083; }
.challenge-banner h3 { font-family: 'Manrope', sans-serif; margin: 7px 0; font-size: 17px; line-height: 1.35; }
.setup-panel #challenge-description { display: block; margin: 0; font-size: 12px; line-height: 1.55; color: #526778; }
.challenge-banner .text-button { margin: 5px 0 0; padding: 0; min-height: 44px; font-size: 12px; color: var(--brand-navy); }
.result-panel .challenge-result { border: 1px solid #c5d7e2; border-radius: 6px; padding: 13px 15px; margin: 15px 0; font-size: 14px; line-height: 1.5; background: #f1f6f9; color: var(--ink); }
.setup-panel .campaign-note { display: block; border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: #4e6552; }
@media (max-width: 400px) {
  #result { padding-left: 12px; padding-right: 12px; }
  #result .result-panel { padding: 20px 17px; }
  .reward-panel { padding: 14px; margin-top: 18px; }
  .reward-panel h3 { font-size: 23px; }
  .reward-code-row,.challenge-link-controls { flex-wrap: wrap; }
  .reward-code-row input,.challenge-link-controls input { flex-basis: 100%; width: 100%; }
  .reward-code-row .secondary-button,.challenge-link-controls .secondary-button { width: 100%; }
}

@keyframes reward-reveal { from { opacity: .25; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes reward-glow { 0%,100% { box-shadow: 0 0 0 0 #6d9e4b00; } 45% { box-shadow: 0 0 0 5px #6d9e4b20; } }
.reward-panel.is-revealed,.reward-panel[data-state="revealed"] { animation: reward-reveal .42s ease-out, reward-glow .85s .1s ease-out; }
@media (prefers-reduced-motion: reduce) { .reward-panel.is-revealed,.reward-panel[data-state="revealed"] { animation: none; } }

.demo-preview-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #526a61; font-size: 11px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.demo-preview-link:hover { color: var(--action); }
.reward-preview .result-panel > .demo-preview-link { margin-top: 8px; }

.setup-panel h2 em { font-style: normal; color: var(--action); }
.setup-panel .intro-brand { gap: 13px; margin-bottom: 16px; text-decoration: none; max-width: 100%; }
.brand-open { transform: translateY(4px); flex: 0 0 auto; border-left: 1px solid #cad8cf; padding-left: 13px; color: var(--brand-navy); font: 800 23px/1 'Manrope',sans-serif; letter-spacing: .08em; }
.setup-panel .intro-brand .intro-logo { width: min(212px, 60vw); flex: 0 1 auto; min-width: 0; }
.course-preview-link { display: flex; width: fit-content; }
@media(max-width:400px) { .setup-panel .intro-brand { gap: 10px; } .setup-panel .intro-brand .intro-logo { width: 174px; } .brand-open { padding-left: 10px; font-size: 19px; } }
.setup-panel .setup-lead strong { color: var(--ink); }
.game-guide { padding: 0; width: min(640px, calc(100vw - 24px)); max-width: 640px; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - var(--safe-bottom)); overflow: hidden; }
.game-guide[open] { display: flex; flex-direction: column; }
.guide-header { position: relative; padding: 23px 56px 16px 26px; flex: 0 0 auto; }
.guide-header .intro-kicker { font-size: 11px; color: var(--action); }
.guide-header h2 { font-size: 27px; margin: 5px 0 0; }
.guide-tabs { display: flex; gap: 5px; padding: 0 24px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.guide-tabs button { flex: 1; min-width: 0; min-height: 46px; padding: 8px 4px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.guide-tabs button[aria-selected="true"] { color: var(--action); border-bottom-color: var(--brand-green); }
.guide-content { min-height: 0; padding: 22px 26px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.guide-content [hidden] { display: none !important; }
.guide-content h3 { font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 1.4; margin: 22px 0 9px; }
.guide-content h3:first-child { margin-top: 0; }
.guide-content p { font-size: 14px; line-height: 1.65; margin: 8px 0 13px; }
.guide-steps { padding-left: 23px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.guide-steps li { padding-left: 5px; margin-bottom: 13px; }
.guide-steps li::marker { color: var(--action); font-weight: 700; }
.guide-steps b { color: var(--ink); }
.guide-callout { border-left: 3px solid var(--brand-green); background: #f1f6ee; padding: 15px; margin: 20px 0; }
.guide-callout p { margin-bottom: 0; }
.device-guide { border-bottom: 1px solid var(--line); padding: 5px 0 14px; margin-bottom: 16px; }
.device-guide h4 { color: var(--action); font-size: 16px; margin: 7px 0; }
.guide-content .guide-hint { font-size: 12px; margin-bottom: 0; }
.guide-keys { margin: 14px 0; font-size: 13px; }
.guide-keys > div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; align-items: center; min-height: 40px; }
.guide-keys dd { margin: 0; color: var(--muted); }
kbd { display: inline-block; font: inherit; font-size: 12px; color: var(--ink); background: #f1f4f6; border: 1px solid #d3dfe5; border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; }
.guide-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border-block: 1px solid var(--line); padding: 17px 0; margin: 19px 0; font-size: 12px; color: var(--muted); }
.guide-facts b { display: block; font: 800 25px 'Manrope',sans-serif; color: var(--action); margin-bottom: 4px; }
.guide-content a { color: var(--action); text-underline-offset: 3px; }
.guide-footer { flex: 0 0 auto; padding: 12px 24px 18px; border-top: 1px solid var(--line); background: white; }
.guide-footer .primary { margin: 0; min-height: 46px; }
.score-nine { margin: 18px 0; }
.preview-rounds { display: flex; gap: 8px; justify-content: center; margin-block: 14px; }
.preview-rounds button { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 16px; background: #fff; color: var(--ink); font-weight: 600; }
.preview-rounds button[aria-pressed="true"] { background: #edf4e8; border-color: var(--brand-green); color: var(--action); }
.score-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-table caption { text-align: left; font-size: 12px; font-weight: 700; padding: 0 0 10px; color: var(--ink); }
.score-table th,.score-table td { padding: 10px 1px; text-align: center; border-bottom: 1px solid var(--line); }
.score-table th:first-child { width: 47px; text-align: left; padding-left: 5px; font-size: 11px; }
.score-table thead { background: #eef3f5; }
.score-table tbody { color: var(--muted); }
.score-table .score-strokes { color: var(--ink); font-weight: 800; font-size: 16px; background: #f5f8f2; }
.result-panel .score-nine-total { margin: 0; padding: 10px 0; text-align: right; color: var(--action); font-size: 12px; font-weight: 700; }
@media(max-width:400px) {
 .guide-header { padding: 18px 50px 13px 18px; }
 .guide-header h2 { font-size: 23px; }
 .guide-tabs { padding-inline: 14px; }
 .guide-content { padding: 18px; }
 .guide-footer { padding: 10px 18px 14px; }
 .guide-keys > div { grid-template-columns: 105px 1fr; }
 .score-table { font-size: 11px; }
 .score-table th:first-child { width: 39px; font-size: 10px; }
 .score-table .score-strokes { font-size: 14px; }
}
@media(max-height:420px) {
 .guide-header { padding-block: 8px; }
 .guide-header .intro-kicker { display: none; }
 .guide-header h2 { font-size: 21px; margin: 0; }
 .guide-footer { padding-block: 6px; }
}

.setup-preview-links { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; }

/* Shared page footer stays outside the scrolling setup and results. */
footer.game-footer,body.intro footer.game-footer { visibility: visible; display: flex; position: absolute; z-index: 15; left: 0; right: 0; bottom: var(--safe-bottom); min-height: 44px; align-items: center; justify-content: center; gap: 24px; padding: 0 12px; pointer-events: auto; background: linear-gradient(transparent,#09285755); }
.footer-help-links { display: flex; align-items: center; }
.footer-help-links button { min-height: 44px; padding: 0; border: 0; background: none; font-size: 12px; color: #fff; text-shadow: 0 1px 4px #092857; text-decoration: underline; text-underline-offset: 4px; }
.footer-help-links button + button::before { content: ''; display: inline-block; height: 11px; border-left: 1px solid #ffffff80; margin-inline: 12px; vertical-align: -1px; }
.game-footer .studio-credit { position: static; transform: none; max-width: none; }
.player-setup { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.player-setup legend { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.player-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.player-modes button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; border: 1px solid #c6d2d7; border-radius: 7px; background: #f8fafb; color: var(--ink); }
.player-modes button b { font-size: 15px; }
.player-modes button span { font-size: 11px; }
.player-modes button[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); color: white; box-shadow: inset 0 -3px 0 var(--brand-green); }
.player-modes button:hover { border-color: var(--brand-green); }
.player-names { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.player-names[hidden],.active-player[hidden],.flight-results[hidden] { display: none; }
.player-names label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; }
.player-names input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c6d2d7; border-radius: 5px; padding: 8px; font: inherit; font-size: 16px; color: var(--ink); background: white; }
.setup-panel #player-mode-note { display: block; margin: 9px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.hole-info .active-player { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); background: #fff; border-left: 3px solid var(--brand-green); border-radius: 4px; padding: 5px 9px; margin-bottom: 7px; }
.flight-results { margin: 16px 0; }
.flight-results h3 { font-size: 16px; margin-bottom: 8px; }
.flight-results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 5px 0; padding: 10px; border: 1px solid var(--line); background: #f8fafb; border-radius: 5px; color: var(--ink); text-align: left; }
.flight-results button span { min-width: 0; overflow-wrap: anywhere; }
.flight-results button b { white-space: nowrap; }
.flight-results button[aria-pressed="true"] { border-color: var(--brand-green); background: #edf4e8; }
@media(max-width:560px) {
 footer.game-footer,body.intro footer.game-footer { flex-direction: column; gap: 0; }
 .has-game-footer #intro,.has-game-footer #result { padding-bottom: calc(100px + var(--safe-bottom)); }
 .has-game-footer .controls { bottom: calc(100px + var(--safe-bottom)); }
 .has-game-footer .shot-label { bottom: calc(315px + var(--safe-bottom)); }
}

.result-panel h2,#next,#share { overflow-wrap: anywhere; }

/* A short setup, one decision group at a time. */
.setup-panel [hidden] { display: none !important; }
.setup-steps { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.setup-steps button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: none; font: inherit; font-size: 13px; font-weight: 600; }
.setup-steps button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf1f3; font-size: 11px; }
.setup-steps button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--brand-green); }
.setup-steps button[aria-current="step"] span { background: var(--brand-navy); color: #fff; }
.setup-panel .setup-lead { margin-bottom: 14px; }
.setup-panel .player-setup { margin-bottom: 16px; }
.setup-panel .setup-actions .primary { margin: 0; font-size: 14px; min-height: 48px; }
.setup-panel .setup-actions .text-button { min-height: 44px; }
.setup-panel .setup-course { padding: 24px; }
.setup-course .course-map-heading { font-size: 16px; margin-bottom: 12px; }
.setup-course img { max-height: 350px; object-fit: contain; }
#intro[data-step="2"] .setup-lead { display: none; }
#intro[data-step="2"] .setup-panel h2 { font-size: 23px; margin-bottom: 12px; }
#intro[data-step="2"] .setup-main { padding-block: 20px 12px; }
#intro[data-step="2"] .setup-fields { gap: 10px; }
#intro[data-step="2"] .round-summary { padding: 9px 0; font-size: 13px; }
#intro[data-step="2"] .difficulty-description { margin: 8px 0; font-size: 11px; }
#intro[data-step="2"] .intro-brand { margin-bottom: 12px; }
@media(max-width:700px) {
 .setup-panel .setup-main { padding: 20px; }
 .setup-panel .setup-lead { font-size: 13px; }
 .setup-panel .intro-brand { margin-bottom: 12px; }
 .setup-panel h2 { font-size: 26px; }
 .setup-steps { margin-bottom: 14px; }
 .setup-panel .player-modes button { min-height: 58px; }
 .setup-panel #player-mode-note { font-size: 11px; }
}
@media(max-width:360px) {
 .setup-panel .setup-main { padding: 16px; }
 .setup-panel h2 { font-size: 23px; }
 #intro[data-step="2"] .setup-panel h2 { font-size: 21px; }
 .setup-panel .intro-brand .intro-logo { width: 164px; }
}
@media(max-height:700px) and (max-width:700px) {
 .setup-panel .setup-main,#intro[data-step="2"] .setup-main { padding-block: 12px; }
 .setup-panel .intro-brand { margin-bottom: 8px; }
 .setup-panel .setup-lead { margin-bottom: 8px; }
 .setup-steps { margin-bottom: 10px; }
 #intro[data-step="2"] .setup-actions { gap: 0; }
}

/* Direction and strength have different, explicit visual scales. */
#power::-webkit-slider-thumb { background: var(--power-color,var(--brand-navy)); }
#power::-moz-range-thumb { background: var(--power-color,var(--brand-navy)); }
.power-control #power-value { color: var(--ink); }
#aim { background: linear-gradient(#718ca0,#718ca0) center / 2px 14px no-repeat, linear-gradient(90deg,#dce4e8,#8da6b8 50%,#dce4e8) center / 100% 4px no-repeat; }
.aim-row button { font-size: 24px; }
.aim-ticks { display:flex; justify-content:space-between; padding-inline:4px; color:var(--muted); font-size:10px; line-height:1.2; margin-top:-3px; }
@media(max-height:500px) { .aim-ticks { display:none; } }
.sound-trigger { display:inline-flex; align-items:center; justify-content:center; gap:3px; }
.sound-trigger svg { width:22px; height:22px; flex-shrink:0; }
.sound-trigger .sound-chevron { font-size:12px; line-height:1; }
.sound-trigger .sound-muted { display:none; }
.sound-trigger.is-muted .sound-muted { display:block; }
.sound-trigger.is-muted .sound-waves { display:none; }
.setup-steps .setup-sound-button { margin-left:auto; width:44px; min-height:44px; padding:0 0 8px; }
.setup-steps .setup-sound-button span { display:inline; width:auto; height:auto; border-radius:0; background:none; }
.sound-settings { position:fixed; inset:12px auto auto 12px; margin:0; width:min(312px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; padding:16px 18px; background:#fff; color:var(--ink); border:1px solid #cbd8de; border-radius:10px; box-shadow:0 12px 50px #09285740; font-size:13px; }
.sound-settings::backdrop { background:transparent; }
.sound-heading { display:flex; align-items:center; justify-content:space-between; }
.sound-heading h2 { font:700 18px 'Manrope',sans-serif; margin:0; }
.sound-heading button { width:44px; height:44px; border:0; background:none; font-size:26px; color:var(--muted); margin-right:-10px; }
.sound-master { display:flex; align-items:center; justify-content:space-between; min-height:44px; border-bottom:1px solid var(--line); margin-bottom:13px; cursor:pointer; font-weight:600; }
.sound-master input { width:22px; height:22px; accent-color:var(--action); cursor:pointer; margin:0; }
.sound-channel { display:grid; grid-template-columns:1fr auto; align-items:center; }
.sound-channel output { color:var(--muted); font-variant-numeric:tabular-nums; }
.sound-channel input { grid-column:1/-1; }
.sound-preview-label { font-size:11px; margin:8px 0 6px; color:var(--muted); }
.sound-previews { display:flex; gap:6px; }
.sound-previews button { flex:1; min-height:44px; padding:5px; border:1px solid var(--line); border-radius:5px; background:#f1f5ef; color:var(--ink); font-size:12px; }
#sound-status { font-size:11px; line-height:1.5; color:var(--muted); margin:10px 0 0; }

.setup-actions .primary { gap:10px; }
.setup-actions .primary .button-label { font-size:inherit; line-height:1.3; }
.setup-actions .primary .button-icon { width:20px; height:20px; flex:0 0 20px; display:block; }

.club .club-icon,.club.active .club-icon { width:30px; height:30px; background:transparent; flex:0 0 30px; }
.club-equipment-icon { width:100%; height:100%; display:block; }
.guide-clubs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:18px 0; }
.guide-clubs>div { display:flex; flex-direction:column; gap:6px; align-items:center; font-size:12px; color:var(--ink); background:#f2f5f1; padding:10px 4px; border-radius:5px; }
.guide-clubs svg { width:44px; height:44px; }
.sound-previews { display:grid; grid-template-columns:1fr 1fr; }
@media(max-width:700px) {
 .club .club-icon,.club.active .club-icon { width:27px; height:27px; flex-basis:27px; }
 .aim-control .control-label { font-size:12px; flex-wrap:wrap; }
 .aim-control .control-label output { font-size:11px; }
}
@media(max-height:500px) and (min-width:500px) { .club { flex-direction:row; } .club .club-icon,.club.active .club-icon { width:24px; height:24px; flex-basis:24px; } }
