/* AlcoHole V2 — The Clubhouse design system */
:root{
  color-scheme:only light;
  --ink:#14392b; --ink2:#24513e; --forest:#143d2e; --forest-deep:#102e24;
  --forest-mid:#1c4d38; --fern:#356b3f; --mint:#a7c49d; --mint-soft:#d7e5cf;
  --cream:#f5f6ef; --white:#ffffff; --paper:#edf0e7;
  --sage:#e1e9de; --line:#d2dfd1; --muted:#627a69; --gold:#d9bd7b;
  --coral:#f3b38e; --shadow:0 20px 60px rgba(13,51,34,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html{color-scheme:only light;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color-scheme:only light;}
button{cursor:pointer}
button:disabled{opacity:.43;cursor:not-allowed}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bdc977;outline-offset:3px}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand,.display,.digit{font-family:'Manrope','DM Sans',sans-serif}
svg{display:block}
::selection{background:#bddfc1;color:#103a2d}
.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon.sm{width:15px;height:15px}.icon.lg{width:23px;height:23px}.icon.xl{width:32px;height:32px}
.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;text-transform:uppercase}
.small{font-size:12px}.muted{color:var(--muted)}.no-wrap{white-space:nowrap}
.brand{display:flex;align-items:center;gap:11px;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.055em;font-size:26px;color:var(--ink);line-height:1}
.brand.on-dark{color:#fff}.brand-text b{color:#6f9f70}.brand.on-dark .brand-text b{color:#a9cfaa}
.brand-mark{width:44px;height:44px;display:grid;place-items:center;color:#143b2b;background:#cfebc9;border-radius:15px;box-shadow:inset 0 0 0 1px #e3f4df80,0 6px 18px #071e1624;transform:none;flex-shrink:0}
.brand-mark svg{transform:none}.brand-mark img{width:100%;height:100%;object-fit:contain;transform:none}.mini-brand{font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.05em}
.tag{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.10em;text-transform:uppercase;font-weight:800;padding:8px 14px;border-radius:30px;border:1px solid #cbdacb;color:var(--forest)}
.tag .dot{height:6px;width:6px;background:var(--fern);border-radius:50%}
.btn{border:0;display:inline-flex;justify-content:center;align-items:center;gap:11px;padding:14px 19px;background:var(--forest);border-radius:13px;color:#fff;font-weight:800;font-size:13px;line-height:1.2;white-space:nowrap;transition:background .15s,transform .15s,box-shadow .15s}
.btn svg{width:18px;height:18px}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 23px #0b2b2130}
.btn-primary{background:#2f6d3b;color:#fff}.btn-primary:hover:not(:disabled){background:#255a31}
.btn-soft{background:#e1ead9;color:#224a2f;border:1px solid #c8d6c2}
.btn-outline{background:transparent;color:inherit;border:1px solid #b4ceb6}
.btn-ghost{background:transparent;color:inherit;border:1px solid transparent}
.btn-coral{background:#efcfb0;color:#633921}
.btn-small{padding:10px 13px;font-size:12px;border-radius:10px}.btn-icon{padding:10px}.btn-full{width:100%}
.rule{height:1px;background:var(--line)}
/* Landing — forest / lighter green split for contrast on Android */
.landing{min-height:100vh;color:#fff;background:radial-gradient(circle at 78% 18%, rgba(79,153,96,.22) 0, rgba(79,153,96,0) 18%), radial-gradient(circle at 18% 72%, rgba(86,170,103,.12) 0, rgba(86,170,103,0) 28%), linear-gradient(125deg,#173f2d 0%,#123624 44%,#0d2a1c 100%);overflow:hidden}
.landing-wrap{max-width:1270px;padding:30px 42px 27px;margin:0 auto}
.landing-top{display:flex;align-items:center;justify-content:space-between;gap:24px}
.landing-navnote{font-size:10px;font-weight:800;letter-spacing:.16em;color:#d9efdc;display:flex;align-items:center;gap:16px}
.nav-seal{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#2c6c3c;box-shadow:0 0 0 1px #7fbd88, 0 0 18px rgba(108,188,119,.35);font-size:20px}
.hero{min-height:670px;display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.hero-copy{padding:42px 0 24px;position:relative;z-index:2}
.hero-sup{display:inline-flex;align-items:center;gap:9px;color:#d4ead6;font-size:11px;letter-spacing:.19em;font-weight:800;text-transform:uppercase}
.sup-spark{font-size:15px;color:var(--gold)}
.hero h1{font-size:clamp(58px,6.5vw,100px);letter-spacing:-.078em;line-height:.98;margin:23px 0 25px;color:#fff;font-weight:800;max-width:630px}
.hero h1 em{font-style:normal;color:#a9cfaa}
.hero-sub{font-size:17px;line-height:1.7;color:#e5f0e6;max-width:460px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:33px}
.hero-actions .btn{min-height:58px;padding:16px 24px;font-size:14px}
.hero-actions .btn-primary{background:#2f6d3b;color:#fff;box-shadow:0 10px 32px #0c231a4d}
.hero-actions .btn-primary:hover:not(:disabled){background:#255a31}
.hero-actions .btn-outline{border-color:#5d8b63;color:#fff;background:#1d4f32}
.hero-foot{display:flex;flex-wrap:wrap;gap:19px;margin-top:26px;color:#d3e7d5;font-size:12px;font-weight:600}
.hero-foot span{display:inline-flex;align-items:center;gap:6px}
.hero-foot .icon{width:16px;height:16px;color:#a9cfaa}
.hero-art{position:relative;min-height:545px;display:flex;align-items:center;justify-content:center;isolation:isolate}
.hero-art:before{content:'';position:absolute;width:470px;height:450px;max-width:100%;border-radius:52% 48% 56% 44%;background:radial-gradient(circle at 50% 45%, rgba(98,188,108,.30), rgba(52,119,72,.18) 45%, rgba(19,56,38,0) 76%);transform:rotate(-13deg);z-index:-1;filter:blur(.5px)}
.preview-card{width:min(455px,95%);background:#f7f8f0;color:var(--forest);border:1px solid #fafaf2;border-radius:25px;padding:27px;box-shadow:0 35px 95px #071c143d, 0 0 0 1px rgba(188,224,190,.18), 0 0 38px rgba(87,170,101,.18);transform:rotate(0deg);position:relative;z-index:1}
.preview-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.preview-label{color:#567263;font-size:10px;font-weight:800;letter-spacing:.14em}
.preview-dot{font-size:8px;color:#418458;margin:0 3px}
.preview-badge{width:54px;height:54px;border-radius:16px;background:linear-gradient(145deg,#e6f1dd,#c5dec0);display:grid;place-items:center;position:relative;box-shadow:inset 0 0 0 1px #edf5ea,0 8px 20px rgba(23,63,45,.10)}
.preview-badge img{display:block;width:100%;height:100%;object-fit:contain}
.preview-title{font-family:Manrope,sans-serif;font-size:36px;font-weight:800;letter-spacing:-.06em;margin-top:21px;line-height:1.2}
.preview-title span{color:#376940}
.preview-meta{display:flex;gap:8px;margin-top:15px}
.preview-meta span{border-radius:6px;background:#dbe7d8;padding:7px 10px;font-size:10px;font-weight:800;letter-spacing:.09em;color:#355f3c}
.preview-lineup{margin-top:24px;background:#e9efe5;border-radius:17px;padding:15px 13px 12px}
.preview-lineup-title{font-size:10px;color:#667f6b;font-weight:800;letter-spacing:.12em;display:flex;justify-content:space-between;margin-bottom:10px}
.preview-person{display:flex;align-items:center;gap:12px;padding:10px 10px;font-size:13px;font-weight:800;color:#233f2f;border-radius:12px}
.preview-person.first{background:#c2dbbd}
.preview-place{font-family:Manrope;font-weight:800;color:#688571;font-size:13px;width:22px}
.preview-avatar{width:32px;height:32px;border-radius:10px;background:#b3d1b3;display:grid;place-items:center;color:#234f36}
.preview-avatar.two{background:#eecba8}.preview-avatar.three{background:#d7cdec}
.preview-person strong{margin-left:auto;font-family:Manrope;font-size:20px;letter-spacing:-.05em}
.preview-footer{display:flex;align-items:center;gap:8px;margin-top:21px;font-size:11px;font-weight:800;color:#55725d}
.preview-status-dot{width:8px;height:8px;border-radius:50%;background:#467e4a;box-shadow:0 0 0 4px #d4ead3}
.preview-footer-end{margin-left:auto}
.preview-stamp{position:absolute;bottom:5px;left:0;z-index:2;transform:rotate(-9deg);border-radius:50%;height:96px;width:96px;border:2px solid #d6c793;background:#e4d6ab;color:#26503b;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:10px;text-align:center;line-height:1.1;font-weight:800;letter-spacing:.12em;box-shadow:0 8px 24px #092c2040, 0 0 24px rgba(193,231,174,.16)}
.preview-stamp strong{font-family:Manrope;font-size:26px;letter-spacing:-.08em}.preview-stamp span{font-size:10px;margin-top:3px}
.landing-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#c3d9c9;font-size:10px;font-weight:800;letter-spacing:.11em;padding:20px 0 10px}
/* setup */
.setup-page{min-height:100vh;background:linear-gradient(135deg,#194733,#103326);color:#fff;padding:28px 35px}
.setup-header{max-width:1130px;display:flex;align-items:center;justify-content:space-between;margin:0 auto}
.setup-header .btn-ghost{border:1px solid #60916e;color:#fff}
.setup-layout{max-width:1120px;display:grid;grid-template-columns:1fr 1fr;gap:60px;margin:85px auto 40px;align-items:start}
.setup-intro{padding-top:48px}
.setup-intro .tag{border-color:#709d76;color:#daf2d8}
.setup-intro h1{font-size:clamp(65px,7vw,110px);line-height:.97;letter-spacing:-.09em;margin:24px 0;font-weight:800}
.setup-intro h1 em{font-style:normal;color:#c8e4c4}
.setup-intro p{color:#d7ead9;max-width:450px;font-size:16px;line-height:1.7}
.setup-card{background:#f9faf4;color:var(--forest);border:1px solid #fff;border-radius:27px;padding:28px;box-shadow:0 25px 70px #051a1242}
.topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;color:#51715b}
.field{display:block;margin-bottom:23px}
.field-label{display:block;font-size:12px;font-weight:800;letter-spacing:.03em;color:#3e6049;margin-bottom:9px}
.control,.setup-card .control,.settings-panel .control,.modal .control{appearance:none;-webkit-appearance:none;background:#fff;color:#173d2d;-webkit-text-fill-color:#173d2d;caret-color:#163e2c;border:1px solid #becfc0;border-radius:12px;padding:13px 14px;width:100%;min-height:50px;box-shadow:0 1px 1px #22472a08}
.control::placeholder,.setup-card .control::placeholder,.settings-panel .control::placeholder,.modal .control::placeholder{opacity:1;color:#778d7a;-webkit-text-fill-color:#778d7a}
.control:focus{background:#fff;border-color:#46875a}
.control:-webkit-autofill,.control:-webkit-autofill:hover,.control:-webkit-autofill:focus{box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:#173d2d!important}
.options{display:flex;gap:10px}
.choice{flex:1;min-height:49px;border:1px solid #d6e2d7;background:#edf2eb;color:#44644c;border-radius:12px;font-family:Manrope;font-weight:800}
.choice.active{background:#245d40;color:#fff;border-color:#245d40;box-shadow:0 4px 12px #1d49301a}
.player-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px;min-height:15px}
.player-chip{display:inline-flex;align-items:center;gap:8px;background:#e1ede0;color:#234b34;border-radius:9px;padding:8px 9px;font-size:12px;font-weight:800}
.player-chip button{border:0;background:transparent;color:#56765d;padding:0 4px;font-size:18px}
.player-input-row{display:flex;gap:9px;align-items:center}
.player-input-row .control{min-width:0}
.fineprint{color:#6e8371;font-size:11px;text-align:center;margin:16px 0 0;line-height:1.4}
/* App layout */
.game{min-height:100vh;background:var(--paper);display:grid;grid-template-columns:250px minmax(0,1fr);color:var(--forest)}
.sidebar{background:linear-gradient(165deg,#194835,#103328);color:#fff;min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:29px 16px}
.sidebar .brand{padding-left:12px;font-size:23px}.sidebar .brand-mark{height:38px;width:38px}
.side-kicker{color:#bad5bc;margin:54px 14px 13px}
.round-side{margin:0 5px 23px;padding:18px 16px 20px;background:#286048;border:1px solid #49785a;border-radius:19px;box-shadow:0 9px 25px #06251a20}
.round-side-title{font-family:Manrope;font-size:19px;letter-spacing:-.045em;font-weight:800;line-height:1.2;margin:15px 0 20px}
.progress-row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e6f1e3;font-size:11px}
.progress-bar{height:6px;background:#194632;border-radius:10px;overflow:hidden;margin-top:11px}
.progress-bar span{display:block;height:100%;background:#c1e7ba;border-radius:10px}
.side-nav{display:grid;gap:8px}
.side-tab{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:0;background:transparent;color:#d4e7d6;padding:15px;border-radius:12px;font-size:13px;font-weight:700}
.side-tab.active{background:#d5eace;color:#1a4530;font-weight:800}.side-tab:hover:not(.active){background:#346b4b}
.side-tab .icon{height:20px;width:20px}.tab-no{margin-left:auto;font-size:10px;opacity:.7}
.side-home{margin:28px 6px 0;background:transparent;color:#e1efe2;border:1px solid #648b6d;padding:13px 10px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;font-weight:800;font-size:12px}
.side-home .icon{width:16px}.side-bottom{margin:auto 11px 0;color:#b9d2bf;font-size:11px}
.workspace{width:100%;max-width:1450px;margin:0 auto;min-width:0;padding:0 41px 70px}
.workspace-top{min-height:85px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.crumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#66806d}.crumb b{font-size:13px;color:#24503a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-back{border:0;background:transparent;padding:8px 0;color:#4f7e5b;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:5px}.workspace-back .icon{width:16px}
.top-actions{display:flex;align-items:center;gap:10px}.round-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #c9dcca;color:#3b7250;background:#e3ecdf;padding:10px 13px;border-radius:100px;font-weight:800;font-size:10px;letter-spacing:.07em}
.round-pill:before{content:'';width:7px;height:7px;border-radius:50%;background:#4d9265}
.workspace-content{max-width:1130px;margin:24px auto 0}
.page-title-row{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}
.section-head .eyebrow{color:#568365}.section-head h1{font-size:clamp(35px,4.1vw,49px);font-weight:800;letter-spacing:-.065em;line-height:1.08;margin:7px 0}.section-head .subtitle{font-size:13px;color:#617966;line-height:1.45}
.content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.82fr);gap:18px;align-items:start}
.left-pane,.right-pane{min-width:0;display:grid;gap:17px}
/* Hole header */
.hole-banner{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(124deg,#2b6749,#17442f);color:#fff;min-height:223px;padding:24px 26px;box-shadow:0 18px 31px #18443219}
.hole-banner:after{content:'⛳';position:absolute;right:32px;bottom:2px;font-size:92px;transform:rotate(-10deg);opacity:.16;pointer-events:none}
.hole-banner-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:1}
.hole-counter{font-size:11px;font-weight:800;letter-spacing:.13em;color:#d7edd3}
.hole-nav{display:flex;gap:8px}.round-icon{border:1px solid #8ab29a;background:#2f6c4e;color:#fff;width:35px;height:35px;display:grid;place-items:center;border-radius:10px}
.hole-banner-body{margin-top:28px;max-width:83%;position:relative;z-index:1}
.hole-banner-body h2{font-size:clamp(29px,3.8vw,44px);line-height:1.1;letter-spacing:-.06em;font-weight:800;overflow-wrap:anywhere}
.hole-meta{font-size:12px;color:#dceee0;margin-top:14px}
.challenge-line{display:flex;align-items:flex-start;gap:8px;margin-top:14px;font-size:12px;line-height:1.45;color:#e6f3e5}.challenge-line .icon{color:#efdbab}
.hole-dots{display:flex;gap:8px;overflow-x:auto;padding:3px 1px;scrollbar-width:none}.hole-dots::-webkit-scrollbar{display:none}
.hole-dot{height:40px;min-width:40px;border-radius:11px;border:1px solid #cbdbcb;background:#e1eadb;color:#466a50;font-size:12px;font-weight:800}
.hole-dot.active{background:#2f6d3b;border-color:#2f6d3b;color:#fff}.hole-dot.complete:not(.active){background:#c9ddc0;border-color:#bdd6b2;color:#285e35}
.list-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:1px 3px -1px}.list-header h3{font-size:20px;font-weight:800;letter-spacing:-.04em}.list-header small{color:#647d6b;font-size:11px}
.scorelist{display:grid;gap:11px}
.score-player,.panel,.settings-panel,.modal,.scorecard-paper{background:var(--white);border:1px solid #d8e4d8;color:var(--forest);border-radius:19px;box-shadow:0 4px 17px #173d2c0a}
.score-player{padding:16px 18px}.score-player:focus-within{border-color:#58966d;box-shadow:0 0 0 2px #cfe9cf}
.score-player-top{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.avatar{width:41px;height:41px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;color:#254834;font-family:Manrope;font-weight:800;font-size:14px}
.av-0{background:#c5e0c2}.av-1{background:#f1d2ad}.av-2{background:#dbd1ea}.av-3{background:#c4dcdb}.av-4{background:#f1ccc4}.av-5{background:#dfdfa9}
.score-person{min-width:0;flex:1}.score-person strong{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-person span{font-size:11px;color:#66836d;display:block;margin-top:2px}
.current-total{font-family:Manrope;font-size:22px;font-weight:800;letter-spacing:-.04em;white-space:nowrap;text-align:right;line-height:1.05}.current-total small{font-family:'DM Sans';display:block;font-size:9px;color:#69806e;font-weight:800;letter-spacing:.05em;margin-top:5px;text-transform:uppercase}
.score-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.control-group .label-line{font-size:10px;letter-spacing:.11em;color:#607c67;font-weight:800;text-transform:uppercase;margin-bottom:8px}
.stepper{display:flex;justify-content:space-between;align-items:center;height:47px;padding:4px;background:#e8efe5;border-radius:12px;color:#254a33}
.stepper button{display:grid;place-items:center;width:37px;height:37px;border:1px solid #d4dfd2;border-radius:9px;background:#fff;color:#28563d}.stepper button:hover{background:#d2ead2}
.stepper .digit{font-family:Manrope;font-weight:800;font-size:19px}
.stepper.penalties{background:#f2eee5}.stepper.penalties .digit{color:#a66541}.stepper.penalties button:hover{background:#f5d8c0}
.challenge-status{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding-top:12px;margin-top:14px;border-top:1px solid #e4ece2}
.challenge-status .hint{font-size:10px;letter-spacing:.11em;font-weight:800;color:#63836d;margin-right:auto}
.status-btn{border:1px solid #d1e0d0;background:#f0f5ed;color:#44674d;display:inline-flex;gap:4px;align-items:center;padding:7px 10px;border-radius:9px;font-size:11px;font-weight:800}
.status-btn .icon{width:13px;height:13px}.status-btn.won.active{background:#c5e6cc;border-color:#70b784;color:#206038}.status-btn.lost.active{background:#f6dbcc;border-color:#e6b69e;color:#97492c}
.chall-empty,.blank-state{color:#698372;font-size:12px}.blank-state{text-align:center;padding:38px}
.hole-next-row{display:flex;justify-content:space-between;gap:10px;margin-top:5px}
.hole-next-row .btn{min-width:0}
/* leaderboard mini */
.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.panel-head h3{font-size:19px;font-weight:800;letter-spacing:-.05em}
.link-button{display:inline-flex;align-items:center;gap:3px;border:0;background:transparent;color:#376a47;font-weight:800;font-size:10px;padding:4px}
.rank-list{display:grid;gap:8px}.rank-row{display:flex;align-items:center;gap:9px;background:#f0f4ed;border:1px solid #e6ede4;border-radius:12px;padding:10px 10px;color:#23432f}.rank-row:first-child{background:#c9dec0;border-color:#bdd5b3}
.rank-no{font-family:Manrope;width:23px;font-size:12px;font-weight:800;color:#527559}.rank-row .avatar{width:34px;height:34px;font-size:12px}
.rank-name{min-width:0;flex:1;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#254432}.rank-name small{display:block;color:#67806b;font-size:10px;margin-top:3px;font-weight:600}
.rank-score{font-family:Manrope;font-size:19px;font-weight:800;letter-spacing:-.04em;color:#183e2b}.rank-score small{display:block;font-family:'DM Sans';font-size:8px;text-align:right;letter-spacing:.06em;color:#6c886e}
.info-panel{background:#d9e7d4;border:1px solid #c2d4bd;border-radius:20px;padding:21px;color:#31543b}
.tip-title{font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:10px}.tip-text{font-size:12px;line-height:1.7;color:#3c6145}
.tiny-stat{background:#f2f7ed;border-radius:12px;padding:13px}.tiny-stat strong{font-size:25px}.tiny-stat span{display:block;font-size:10px}.stat-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* leaderboard full */
.leaderhero{background:linear-gradient(120deg,#356b3f,#1d4b2a);border-radius:22px;color:white;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:29px;margin-bottom:16px;box-shadow:0 12px 24px #14432820}
.leaderhero .eyebrow{color:#d7f0cf!important}.leaderhero h2{font-size:clamp(29px,4vw,48px);letter-spacing:-.07em;line-height:1.1;margin:9px 0;font-weight:800}.leaderhero p{font-size:12px;color:#e0eee0}
.trophy-symbol{font-size:54px;filter:drop-shadow(0 6px 4px #173c2c30)}
.big-ranks{display:grid;gap:10px}.big-rank{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #dbe6d9;border-radius:16px;padding:17px 18px;color:#204331}.big-rank.first{background:#d0e3c6;border-color:#b5cfab}.big-rank .place{font-family:Manrope;width:31px;font-size:21px;font-weight:800;color:#557861}.big-rank .avatar{width:45px;height:45px}.big-rank .person{flex:1;min-width:0}.big-rank .person strong{font-size:15px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.big-rank .person small{display:block;font-size:11px;color:#5d7b64;margin-top:4px}.big-rank .score{text-align:right;min-width:54px}.big-rank .score strong{font-family:Manrope;font-size:28px;letter-spacing:-.05em}.big-rank .score small{display:block;color:#65866a;font-size:9px;font-weight:800}
.legend-strip{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.legend-strip span{font-size:11px;color:#40644a;border-radius:30px;background:#dce9d9;padding:9px 12px;font-weight:700}
/* Scorecard */
.scorecard-paper{overflow:hidden}.scorecard-top{display:flex;align-items:center;justify-content:space-between;background:#2f6d3b;color:white;padding:24px 27px}.scorecard-top h3{font-size:23px;letter-spacing:-.05em;margin-top:4px}.scorecard-top p{font-size:12px;color:#dbedda;margin-top:6px}
.scorecard-scroll{max-width:100%;overflow-x:auto;scrollbar-color:#92b49c #e5ece1}
.scorecard-table{border-collapse:separate;border-spacing:0;width:100%;min-width:610px;font-size:12px;color:#294a36}
.scorecard-table th,.scorecard-table td{padding:16px 11px;text-align:center;border-bottom:1px solid #e1e8de;white-space:nowrap}
.scorecard-table thead th{background:#e8f0e3;color:#53735b;font-size:10px;font-weight:800;letter-spacing:.05em}
.scorecard-table th:first-child,.scorecard-table td:first-child{position:sticky;left:0;min-width:142px;background:#fff;text-align:left;z-index:1;font-weight:800;box-shadow:4px 0 8px #254a3510}
.scorecard-table thead th:first-child{background:#e8f0e3;z-index:2}
.scorecard-table th:last-child,.scorecard-table td:last-child{position:sticky;right:0;background:#d4e4cb;color:#25563a;z-index:1;font-weight:800}
.scorecard-table thead th:last-child{z-index:2}.scorecard-table td small{display:block;font-size:9px;margin-top:4px;color:#9b624a}.scorecard-table tbody tr:hover td{background:#f5f9f3}
.score-total{font-size:14px}.sc-help{font-size:12px;line-height:1.7;color:#63806c;margin-top:14px}
/* settings */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}
.settings-panel{padding:22px}.settings-panel h3{font-size:20px;letter-spacing:-.045em;margin-bottom:6px}.settings-panel p{font-size:12px;color:#68806d;line-height:1.6;margin-bottom:20px}
.settings-panel .field{margin-bottom:13px}.settings-panel .btn{margin-top:3px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e1eadd;font-size:13px;font-weight:700}.settings-row:last-child{border:0}.settings-row .btn{margin:0}
.hole-edit-grid{display:grid;gap:9px;max-height:430px;overflow:auto;padding-right:2px}.hole-settings-card{padding:12px 14px;background:#edf4e9;border:1px solid #dfebdb;border-radius:12px}.hole-settings-card strong{font-size:10px;letter-spacing:.10em;color:#51765c}.hole-settings-card .fields{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:9px}
.divider-label{font-size:10px;letter-spacing:.13em;color:#6b8870;font-weight:800;margin:21px 0 12px}
.empty-start{background:#e5f0df;padding:25px;border-radius:12px}
/* modal & toast */
.modal-backdrop{position:fixed;inset:0;z-index:50;background:#0c251ab8;display:grid;place-items:center;padding:15px;backdrop-filter:blur(4px)}
.modal{width:min(460px,100%);max-height:90vh;overflow:auto;padding:25px;border-radius:23px;box-shadow:0 25px 65px #102c1a69}
.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:21px}.modal-heading h2{font-size:22px;letter-spacing:-.05em}
.close{border:0;background:#e6efe3;color:#214d35;height:35px;width:35px;border-radius:10px;display:grid;place-items:center}
.modal .field{margin:0 0 15px}.modal-hint{font-size:12px;line-height:1.55;color:#607e66;margin-bottom:18px}.modal-footer{display:flex;gap:10px}.modal-footer .btn{flex:1}
.toast{position:fixed;bottom:25px;left:50%;z-index:100;transform:translate(-50%,24px);opacity:0;pointer-events:none;transition:all .2s;background:#194732;color:#fff;border:1px solid #5b8d69;border-radius:12px;padding:13px 19px;max-width:calc(100% - 28px);box-shadow:0 15px 35px #061d1660;text-align:center;font-size:12px;font-weight:800}.toast.show{transform:translate(-50%,0);opacity:1}
.mobile-header,.mobile-bottom{display:none}
/* fit */
@media(max-width:1100px){.hero{gap:22px}.hero h1{font-size:clamp(53px,7vw,79px)}.workspace{padding:0 28px 65px}.content-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,.85fr)}}
@media(max-width:850px){.hero{grid-template-columns:1fr;gap:20px}.hero-copy{padding-bottom:0}.hero-art{max-width:610px;width:100%;margin:0 auto}.hero h1{font-size:clamp(63px,11vw,95px)}.setup-layout{grid-template-columns:1fr;gap:35px;margin-top:38px}.setup-intro{padding-top:0}.setup-intro h1{font-size:72px}.setup-card{max-width:640px;width:100%;margin:auto}.game{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:25px 10px}.side-tab{padding:13px 11px}.content-grid{grid-template-columns:1fr}.right-pane{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.hero-art{min-height:560px}}
@media(max-width:620px){
  .landing-wrap{padding:22px 21px 29px}.landing-navnote{display:none}.landing-top .brand{font-size:23px}.brand-mark{width:39px;height:39px}
  .hero{min-height:auto;gap:10px}.hero-copy{padding:22px 0 0}.hero-sup{font-size:10px;letter-spacing:.115em}
  .hero h1{font-size:clamp(56px,13vw,78px);margin:22px 0;line-height:1.02;letter-spacing:-.078em}
  .hero-sub{font-size:14px;line-height:1.7}.hero-actions{margin-top:26px;gap:10px;flex-wrap:nowrap}
  .hero-actions .btn{flex:1;min-width:0;min-height:53px;font-size:12px;padding:13px 10px;gap:5px}
  .hero-foot{font-size:11px;gap:11px 18px;margin-top:19px}
  .hero-art{min-height:495px;margin-top:6px;max-width:430px}
  .hero-art:before{width:310px;height:380px;transform:rotate(-15deg)}
  .preview-card{padding:21px;width:90%;transform:rotate(0deg);border-radius:22px}
  .preview-title{font-size:30px}.preview-lineup{margin-top:18px}.preview-person{padding:8px 8px}.preview-badge{width:48px;height:48px;border-radius:13px}.preview-stamp{height:74px;width:74px;bottom:8px;left:0;font-size:8px}.preview-stamp strong{font-size:19px}
  .landing-bottom{font-size:9px;padding:17px 0 5px;flex-wrap:wrap}
  .setup-page{padding:20px 18px}.setup-header .brand{font-size:21px}.setup-header .btn{font-size:12px}.setup-layout{margin-top:34px;gap:27px}.setup-intro h1{font-size:clamp(55px,13vw,74px);margin:17px 0}.setup-intro p{font-size:13px}.setup-card{padding:22px 18px;border-radius:21px}
  .game{display:block}.sidebar{display:none}
  .mobile-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;z-index:15;top:0;height:68px;background:#174633;padding:0 18px;color:#fff;box-shadow:0 3px 20px #0e382428}
  .mobile-header .brand{font-size:22px}.mobile-header .brand-mark{width:34px;height:34px;border-radius:11px}.mobile-header .brand-mark svg{width:19px;height:19px}
  .mobile-home{display:flex;align-items:center;gap:5px;color:#fff;background:#2a6549;border:1px solid #619b74;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:800}
  .mobile-home .icon{height:15px;width:15px}
  .mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#f8faf5;border-top:1px solid #cddccc;box-shadow:0 -7px 29px #142b1914;justify-content:space-around;gap:4px;padding:8px 9px calc(9px + env(safe-area-inset-bottom))}
  .mobile-tab{flex:1;min-width:0;background:transparent;color:#657e6b;border:0;border-radius:11px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:7px 3px;font-size:10px;font-weight:800}
  .mobile-tab.active{background:#2f6d3b;color:#fff}.mobile-tab .icon{width:19px;height:19px}
  .workspace{padding:0 15px calc(105px + env(safe-area-inset-bottom))}
  .workspace-top{min-height:51px}.workspace-back{display:none}.workspace-top .crumb{max-width:calc(100% - 114px)}.crumb b{font-size:11px}.workspace-top .top-actions .btn{display:none}.round-pill{padding:8px 10px;font-size:9px}
  .workspace-content{margin-top:21px}.page-title-row{align-items:start;gap:10px;margin-bottom:20px}.section-head h1{font-size:35px;margin:7px 0}.section-head .subtitle{font-size:11px}.page-title-row>.btn{padding:9px 10px;font-size:11px}
  .content-grid{gap:16px}.left-pane,.right-pane{gap:15px}.right-pane{grid-template-columns:1fr}
  .hole-banner{min-height:196px;padding:20px 20px}.hole-banner-body{max-width:91%;margin-top:28px}.hole-banner-body h2{font-size:35px}.hole-banner:after{right:10px;font-size:75px;bottom:3px}.hole-dot{min-width:37px;height:37px}.hole-dots{gap:6px}
  .list-header h3{font-size:19px}.score-player{padding:15px}.score-controls{gap:10px}.panel{padding:19px}.leaderhero{padding:22px}.leaderhero h2{font-size:33px}.trophy-symbol{font-size:48px}.big-rank{padding:14px 12px;gap:10px}.big-rank .avatar{height:39px;width:39px}.big-rank .person small{font-size:10px}.big-rank .score strong{font-size:24px}
  .scorecard-top{padding:21px}.scorecard-top h3{font-size:20px}.settings-panel{padding:18px}.modal{padding:22px}.toast{bottom:calc(91px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.hero h1{font-size:53px}.preview-card{width:94%}.hero-art{min-height:470px}.score-controls{gap:8px}.hole-next-row .btn{font-size:11px;padding:12px 9px}.preview-stamp{left:-5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* V2.3 – multiple saved games, always visible New / Continue buttons */
.demo-link{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:8px 0;border:0;background:transparent;color:#dceedd;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.saved-games{margin:8px 0 32px;padding:24px;border-radius:23px;background:rgba(4,36,18,.25);border:1px solid rgba(198,233,197,.25)}
.saved-games-header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:18px}
.saved-games-header .eyebrow{color:#b6d9b6}.saved-games-header h2{color:white;font-size:25px;letter-spacing:-.05em;margin-top:6px}
.saved-count{font-size:12px;color:#cee6c9;font-weight:700;white-space:nowrap}
.saved-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.saved-game{min-width:0;display:flex;align-items:center;gap:11px;background:#f5f8f0;color:#163d29;padding:14px;border-radius:16px;border:1px solid #e3eddb}
.saved-game-icon{height:38px;width:38px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:#dcebd7;font-size:20px}
.saved-game-body{min-width:0;flex:1}.saved-game-body strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.saved-game-body span{display:block;font-size:11px;color:#577361;margin-top:3px}
.saved-continue{display:inline-flex;align-items:center;gap:4px;background:#306e3e;border:0;border-radius:10px;color:#fff;font-size:11px;font-weight:800;padding:10px 11px;white-space:nowrap}
.saved-continue .icon{width:13px;height:13px}.saved-delete{display:grid;place-items:center;width:32px;height:36px;color:#567660;background:transparent;border:0;border-radius:8px;flex-shrink:0}.saved-delete:hover{background:#e3eddd}
@media(max-width:850px){.saved-games-grid{grid-template-columns:1fr}}
@media(max-width:620px){.hero-actions{flex-wrap:wrap}.hero-actions .btn{min-width:0}.saved-games{margin:0 0 25px;padding:18px 13px;border-radius:18px}.saved-game{padding:11px 8px;gap:8px}.saved-game-icon{height:33px;width:33px;font-size:17px}.saved-continue{padding:9px 8px}.saved-game-body strong{font-size:12px}.saved-game-body span{font-size:10px}.saved-games-header h2{font-size:22px}}
@media(max-width:370px){.saved-game-icon{display:none}.saved-game{gap:5px}.saved-continue{font-size:10px}}

/* V2.5: preset pub-golf sets. Cards stay compact on narrow phones. */
.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.preset-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-width:0;min-height:91px;padding:12px;border:1px solid #d4e0d4;border-radius:13px;background:#eef4ea;color:#254b33;cursor:pointer;transition:border-color .15s,background .15s}
.preset-card strong{font-family:Manrope,sans-serif;font-size:13px;line-height:1.25;letter-spacing:-.015em}
.preset-card small{font-size:10px;font-weight:700;color:#6b856f;line-height:1.3}
.preset-card .preset-emoji{font-size:20px;line-height:1.1;margin-bottom:3px}
.preset-card.active{border:2px solid #2b7948;padding:11px;background:#deefdc;box-shadow:inset 0 0 0 1px #c4e4c7}
.preset-card.active small{color:#376645}
.preset-card:focus-visible,.preset-preview summary:focus-visible{outline:3px solid #93c69e;outline-offset:2px}
.preset-info{margin-top:12px;background:#eaf3e9;border-left:3px solid #3b8a50;border-radius:10px;padding:12px;color:#345e3d}
.preset-info>strong,.preset-info>span{display:block}.preset-info>strong{font-size:13px}.preset-info>span{font-size:12px;margin-top:3px;line-height:1.5}
.preset-fixed-holes{font-size:12px;line-height:1.5;color:#57755c;margin:0}
.preset-preview{margin-top:10px;font-size:12px}.preset-preview summary{cursor:pointer;font-weight:800;color:#286d40;padding:5px 0}
.preset-preview ol{max-height:260px;overflow-y:auto;padding:6px 10px 6px 27px;background:#f8fbf7;border-radius:9px;list-style:decimal}
.preset-preview li{padding:5px 0}.preset-preview li b,.preset-preview li span{display:block;line-height:1.35}.preset-preview li span{font-size:11px;color:#66806a}
@media(max-width:400px){.preset-card{padding:10px;min-height:86px}.preset-card.active{padding:9px}.preset-card strong{font-size:12px}.preset-card small{font-size:9px}}

/* v2.6 — optional surprise questions and tasks */
.activity-setup{border:1px solid #bfd8bf;border-radius:15px;background:#f0f7ee;padding:17px;margin:9px 0 20px;color:#274a32}
.activity-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.activity-optional{font-size:10px;font-weight:800;letter-spacing:.08em;background:#d8ead7;padding:5px 9px;border-radius:20px}
.activity-setup>p{font-size:12px;color:#5c7661;line-height:1.6;margin-bottom:12px}
.activity-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:15px}
.activity-type{border:1px solid #cddfc9;background:#fff;text-align:left;min-height:41px;border-radius:10px;padding:9px 10px;font-size:11px;font-weight:800;line-height:1.3;color:#466a4a}
.activity-type.active{background:#d7eacb;border-color:#4b9459;color:#275c34}
.activity-location-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin:8px 0 12px}
.activity-location-actions{display:flex;gap:7px;flex-wrap:wrap}.activity-location-actions .choice{padding:9px 12px;font-size:11px}
.activity-count-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:800;font-size:12px}.activity-count-label select{width:94px;padding:8px 12px}
.activity-pick-heading{font-size:11px!important;font-weight:800!important;margin-bottom:7px!important}
.activity-hole-grid{display:flex;flex-wrap:wrap;gap:7px}.activity-hole-choice{width:36px;height:36px;background:#fff;border:1px solid #c5d9c7;border-radius:9px;font-weight:800;color:#4b7150}.activity-hole-choice.active{background:#2d7744;color:#fff;border-color:#2d7744}
.activity-availability{margin:12px 0 0!important;font-size:10px!important;color:#648169!important}
.activity-card{border-radius:16px;border:1px solid #b9d7bc;background:linear-gradient(135deg,#f5fff0,#e1f2dc);padding:19px;margin:15px 0 18px;box-shadow:0 10px 35px #19472d0b}
.activity-card-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;align-items:center}
.activity-category{font-size:10px;letter-spacing:.10em;color:#327644;font-weight:900}.activity-number{font-size:10px;color:#688f70;font-weight:700}
.activity-card h3{font-family:Manrope,sans-serif;font-size:19px;line-height:1.4;color:#1b4830;margin:13px 0}
.activity-answers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.activity-answer{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #d4e1d2;border-radius:10px;padding:10px;font-size:12px;line-height:1.4}
.activity-answer b{font-size:11px;background:#e1ede2;border-radius:6px;padding:4px 7px}.activity-answer.correct{background:#d6f2d5;border-color:#75b97e}
.activity-reveal{padding:10px 14px;background:#2b7445;color:white;font-weight:800;font-size:12px;border:0;border-radius:9px;margin-top:2px}
.activity-correct-answer{border-left:3px solid #318b4b;padding:8px 12px;margin-top:10px;background:#fff;border-radius:0 7px 7px 0;font-size:13px;line-height:1.6}
.activity-explainer{font-size:12px;color:#63806a;line-height:1.5}
@media(max-width:380px){.activity-setup{padding:12px}.activity-answers{grid-template-columns:1fr}.activity-card{padding:13px}}

/* v2.7: simplified custom rounds and signed challenge scoring */
.challenge-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.challenge-mode{background:#ecf3e9;color:#2b5840;border:1px solid #d1e4d7;border-radius:12px;padding:13px 7px;font:700 12px Manrope,sans-serif;min-height:44px}
.challenge-mode.active{background:#d8f0dc;color:#145a30;border:2px solid #27834d;padding:12px 6px}
.custom-challenge-panel,.random-score-panel{padding:16px;border-radius:14px;background:#f3f8f2;border:1px solid #d9e6d6;margin:12px 0 18px;color:#244e3d}
.custom-challenge-panel>.field-label,.random-score-panel>.field-label{display:block;margin-bottom:8px}
.custom-challenge-row{background:white;padding:14px;border-radius:13px;border:1px solid #d9e5d9;margin:14px 0}
.custom-challenge-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.custom-challenge-top label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}
.custom-challenge-top select{min-width:82px}
.custom-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.custom-outcomes label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px;min-width:0}
.custom-outcomes input{width:100%;min-width:0;box-sizing:border-box}
.custom-challenge-row .field{margin-top:10px}
.activity-hole-choice:disabled{opacity:.25;cursor:not-allowed}
.challenge-delta{display:block;width:100%;color:#537b62;font-size:11px;margin-top:5px;line-height:1.4}
.hole-rule-summary{font-size:12px;font-weight:700;color:#426b51;line-height:1.5;padding:9px 13px;background:#e7f5e6;border-radius:10px;margin:10px 0}
.brand-mark img,.preview-badge img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media(max-width:460px){.custom-challenge-panel{padding:12px}.custom-challenge-row{padding:10px}.challenge-mode{font-size:11px}}

/* v2.7 mobile status-bar clearance: keep brand and heading below phone status icons */
@media (max-width:620px) {
  .landing-wrap { padding-top:max(50px, calc(16px + env(safe-area-inset-top, 0px))); }
  .setup-page { padding-top:max(58px, calc(20px + env(safe-area-inset-top, 0px))); }
  .mobile-header {
    height:auto;
    min-height:76px;
    padding-top:max(26px, env(safe-area-inset-top, 0px));
    padding-bottom:12px;
  }
}
