:root{--navy:#0b1f33;--gold:#d5a84a;--silver:#aeb7c0;--ink:#17212b;--muted:#687580;--line:#dfe4e8;--bg:#eef1f3;--green:#1d6b4f}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--ink)}.hero{background:linear-gradient(135deg,#0b1f33,#173b5b);color:#fff;padding:30px 20px}.wrap{max-width:1120px;margin:auto}.k{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#e8c979;font-weight:900}.hero h1{font:900 42px Georgia,serif;margin:8px 0}.sub{color:#d7e1e8}.nav{max-width:1120px;margin:-15px auto 0;padding:0 20px}.navin{background:#fff;border-radius:14px;box-shadow:0 10px 28px #0b1f3315;padding:7px;display:flex;gap:5px}.tab{border:0;background:none;border-radius:9px;padding:9px 14px;font-size:13px;font-weight:900;color:var(--muted);cursor:pointer;white-space:nowrap}.tab.on{background:var(--navy);color:#fff}main{max-width:1120px;margin:24px auto 60px;padding:0 20px}.view{display:none}.view.on{display:block}.grid{display:grid;grid-template-columns:1.5fr .8fr;gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 8px 24px #0b1f3310}.head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.head h2{margin:0;font-size:17px}.body{padding:19px}.badge{background:#edf3f0;color:var(--green);font-size:11px;font-weight:900;border-radius:99px;padding:5px 8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.stat{background:#f6f7f8;border-radius:11px;padding:13px}.stat small{color:var(--muted)}.stat b{display:block;font-size:20px;margin-top:4px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:690px}th,td{padding:10px 11px;border-bottom:1px solid var(--line);font-size:13px;text-align:left}th{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;background:#f7f8f9}.rank{font-weight:900;color:var(--gold)}.total{font-weight:900;font-size:15px}.small{font-size:12px;color:var(--muted)}.podium{display:grid;gap:12px}.place{border-radius:13px;padding:16px;border:1px solid var(--line)}.place.gold{background:linear-gradient(135deg,#fff8df,#f2dda0);border-color:var(--gold)}.place.silver{background:linear-gradient(135deg,#f8fafb,#dce2e7);border-color:var(--silver)}.place .label{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.place .name{font:900 23px Georgia,serif;margin:5px 0}.place .score{font-size:21px;font-weight:900}.adminbar{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin-bottom:16px}.field label{display:block;font-size:11px;color:var(--muted);font-weight:900;margin-bottom:5px}.field input,.field select{width:100%;padding:11px;border:1px solid #ccd4da;border-radius:9px;font-size:16px;background:#fff}.scorelist{border:1px solid var(--line);border-radius:12px;overflow:hidden}.scorerow{display:grid;grid-template-columns:minmax(180px,1fr) 75px 105px 105px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}.scorerow:last-child{border-bottom:0}.scorerow.header{background:#f7f8f9;font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase}.scorerow input{width:100%;padding:9px;border:1px solid #ccd4da;border-radius:8px;font-size:16px;text-align:center}.actions{display:flex;gap:9px;margin-top:15px;flex-wrap:wrap}.btn{border:0;border-radius:9px;padding:11px 15px;font-weight:900;cursor:pointer}.primary{background:var(--navy);color:#fff}.secondary{background:#edf0f2}.notice{padding:12px 14px;background:#fff8e5;border:1px solid #ead7a3;border-radius:10px;font-size:13px;margin-bottom:14px}.status{margin-top:10px;color:var(--green);font-size:13px;min-height:18px}.coursegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.course{border:1px solid var(--line);border-radius:11px;padding:14px}.course b{display:block;margin:4px 0}.roundresults{margin-top:13px;padding-top:12px;border-top:1px solid var(--line);display:grid;gap:7px}.roundplace{border-radius:9px;padding:9px 10px}.roundplace.gold{background:#fff6d9;border:1px solid #e1c16b}.roundplace.silver{background:#f0f3f5;border:1px solid #c1c8cf}.roundplace .rlabel{font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.roundplace .rname{font-weight:900;margin-top:2px}.roundplace .rscore{font-size:11px;color:var(--muted);margin-top:2px}.mobileboard{display:none}.mobileplayer{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:9px;overflow:hidden}.mobiletop{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:9px;padding:12px}.mobiletop .mr{font-weight:900;color:var(--gold);font-size:16px}.mobiletop .mn{font-weight:900}.mobiletop .ms{font-weight:900;font-size:18px}.mobilemeta{font-size:11px;color:var(--muted);margin-top:2px}.mobiledetail{display:none;padding:0 12px 12px}.mobileplayer.open .mobiledetail{display:block}.roundchips{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.roundchip{background:#f5f7f8;border-radius:8px;padding:8px 4px;text-align:center}.roundchip small{display:block;font-size:9px;color:var(--muted);font-weight:900}.roundchip b{font-size:14px}.tapnote{font-size:10px;color:var(--muted);margin-top:5px}.savebar{display:none}@media(max-width:800px){.grid{grid-template-columns:1fr}.coursegrid{grid-template-columns:1fr 1fr}}@media(max-width:650px){body{padding-bottom:24px}.hero{padding:18px 16px 26px}.hero h1{font-size:30px;margin:5px 0}.k{font-size:9px}.sub{font-size:13px}.nav{padding:0 10px;margin-top:-13px;position:sticky;top:0;z-index:20}.navin{overflow:auto;border-radius:12px;padding:5px}.tab{white-space:normal;line-height:1.2;padding:8px 6px;font-size:12px;flex:1 1 0;min-width:0;text-align:center}.grid{gap:12px}main{padding:0 10px;margin-top:14px}.head{padding:13px 14px}.body{padding:13px}.stats{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.stat{padding:9px 7px}.stat small{font-size:9px}.stat b{font-size:15px}.scroll{display:none}.mobileboard{display:block}.podium{grid-template-columns:1fr 1fr;gap:7px}.place{padding:11px}.place .name{font-size:17px}.place .score{font-size:18px}.place .label{font-size:9px}.adminbar,.coursegrid{grid-template-columns:1fr}.notice{font-size:12px;padding:10px}.scorerow.header{display:none}.scorelist{border:0;overflow:visible}.scorerow{grid-template-columns:1fr 88px;padding:10px 0;border-bottom:1px solid var(--line)}.scorerow>div:nth-child(2),.netcol{display:none}.scorerow input{font-size:20px;padding:12px 6px;border-radius:10px}.actions .btn{width:100%;padding:14px}.coursegrid{gap:10px}.course{padding:14px}.roundplace{padding:10px}.savebar{display:block;font-size:11px;color:var(--muted);margin-top:7px}}
.phone-device body{padding-bottom:24px}.phone-device .hero{padding:18px 16px 26px}.phone-device .hero h1{font-size:30px;margin:5px 0}.phone-device .k{font-size:9px}.phone-device .sub{font-size:13px}.phone-device .nav{padding:0 10px;margin-top:-13px;position:sticky;top:0;z-index:20}.phone-device .navin{overflow:auto;border-radius:12px;padding:5px}.phone-device .tab{white-space:normal;line-height:1.2;padding:8px 6px;font-size:12px;flex:1 1 0;min-width:0;text-align:center}.phone-device main{padding:0 10px;margin-top:14px}.phone-device .grid{grid-template-columns:1fr;gap:12px}.phone-device .head{padding:13px 14px}.phone-device .body{padding:13px}.phone-device .stats{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.phone-device .stat{padding:9px 7px}.phone-device .stat small{font-size:9px}.phone-device .stat b{font-size:15px}.phone-device .scroll{display:none!important}.phone-device .mobileboard{display:block!important}.phone-device .podium{grid-template-columns:1fr 1fr;gap:7px}.phone-device .place{padding:11px}.phone-device .place .name{font-size:17px}.phone-device .place .score{font-size:18px}.phone-device .place .label{font-size:9px}.phone-device .adminbar,.phone-device .coursegrid{grid-template-columns:1fr}.phone-device .notice{font-size:12px;padding:10px}.phone-device .scorerow.header{display:none}.phone-device .scorelist{border:0;overflow:visible}.phone-device .scorerow{grid-template-columns:1fr 88px;padding:10px 0;border-bottom:1px solid var(--line)}.phone-device .scorerow>div:nth-child(2),.phone-device .netcol{display:none}.phone-device .scorerow input{font-size:20px;padding:12px 6px;border-radius:10px}.phone-device .actions .btn{width:100%;padding:14px}.phone-device .coursegrid{gap:10px}.phone-device .course{padding:14px}.phone-device .roundplace{padding:10px}.phone-device .savebar{display:block;font-size:11px;color:var(--muted);margin-top:7px}

/* Larger phone-first presentation */
.phone-device body{font-size:18px;padding-bottom:42px;background:#eef2f5}
.phone-device .hero{padding:28px 22px 38px}
.phone-device .wrap{max-width:none}
.phone-device .k{font-size:12px;letter-spacing:.16em;line-height:1.4}
.phone-device .hero h1{font-size:43px;line-height:1.02;margin:10px 0 9px}
.phone-device .sub{font-size:18px;line-height:1.35}
.phone-device .nav{padding:0 14px;margin-top:-20px;position:sticky;top:0;z-index:20;max-width:none}
.phone-device .navin{padding:5px;border-radius:14px;gap:3px;box-shadow:0 10px 26px #0b1f3320;overflow:hidden}
.phone-device .tab{font-size:12px;line-height:1.2;padding:8px 4px;border-radius:10px;min-height:42px;flex:1 1 0;min-width:0;white-space:normal;letter-spacing:0;display:flex;align-items:center;justify-content:center;text-align:center}
.phone-device main{max-width:none;padding:0 14px;margin:22px auto 70px}
.phone-device .grid{grid-template-columns:1fr;gap:18px}
.phone-device .card{border-radius:18px;box-shadow:0 8px 24px #0b1f3312}
.phone-device .head{padding:20px 18px;gap:10px;align-items:center}
.phone-device .head h2{font-size:22px;line-height:1.15}
.phone-device .badge{font-size:13px;padding:7px 10px;white-space:nowrap}
.phone-device .body{padding:18px}
.phone-device .stats{grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:18px}
.phone-device .stat{padding:15px 12px;border-radius:13px;min-height:96px}
.phone-device .stat small{font-size:13px;line-height:1.2}
.phone-device .stat b{font-size:25px;margin-top:8px}
.phone-device .scroll{display:none!important}
.phone-device .mobileboard{display:block!important}
.phone-device .mobileplayer{border-radius:15px;margin-bottom:11px}
.phone-device .mobiletop{grid-template-columns:52px 1fr 58px;gap:12px;padding:16px 14px;min-height:88px;position:relative}
.phone-device .mobiletop .mr{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#edf0f2;font-size:22px;color:#536578}
.phone-device .mobileplayer:nth-child(1) .mr{background:#fff0bd;color:#c89400}
.phone-device .mobileplayer:nth-child(2) .mr{background:#e9edf1;color:#657587}
.phone-device .mobileplayer:nth-child(3) .mr{background:#f7dcc2;color:#9b5418}
.phone-device .mobiletop .mn{font-size:21px;line-height:1.12}
.phone-device .mobiletop .ms{font-size:25px;text-align:center}
.phone-device .mobilemeta{font-size:15px;margin-top:5px}
.phone-device .tapnote{font-size:12px;margin-top:6px}
.phone-device .mobiledetail{padding:0 14px 15px}
.phone-device .roundchips{gap:8px}
.phone-device .roundchip{padding:14px 5px;border-radius:11px}
.phone-device .roundchip small{font-size:12px}
.phone-device .roundchip b{font-size:20px;display:block;margin-top:4px}
.phone-device .podium{grid-template-columns:1fr;gap:10px}
.phone-device .place{padding:17px;border-radius:14px}
.phone-device .place .label{font-size:12px}
.phone-device .place .name{font-size:25px}
.phone-device .place .score{font-size:28px}
.phone-device .small{font-size:14px;line-height:1.35}
.phone-device .notice{font-size:15px;line-height:1.45;padding:15px;border-radius:12px}
.phone-device .adminbar{grid-template-columns:1fr;gap:15px;margin-bottom:20px}
.phone-device .field label{font-size:13px;margin-bottom:7px}
.phone-device .field input,.phone-device .field select{font-size:18px;padding:15px 13px;border-radius:11px;min-height:54px}
.phone-device .scorelist{border:0;overflow:visible}
.phone-device .scorerow.header{display:none}
.phone-device .scorerow{grid-template-columns:1fr 105px;gap:14px;padding:14px 0;min-height:78px}
.phone-device .scorerow>div:first-child b{font-size:18px}
.phone-device .scorerow>div:nth-child(2),.phone-device .netcol{display:none}
.phone-device .scorerow input{font-size:24px;font-weight:800;padding:14px 8px;border-radius:12px;min-height:58px}
.phone-device .savebar{display:block;font-size:13px;margin-top:10px}
.phone-device .actions{gap:10px;margin-top:18px}
.phone-device .actions .btn{width:100%;padding:16px;font-size:17px;border-radius:11px;min-height:54px}
.phone-device .status{font-size:15px;margin-top:12px}
.phone-device .coursegrid{grid-template-columns:1fr;gap:14px}
.phone-device .course{padding:18px;border-radius:14px}
.phone-device .course>small{font-size:12px;font-weight:900;letter-spacing:.07em}
.phone-device .course>b{font-size:21px;margin:7px 0}
.phone-device .course .small{font-size:15px}
.phone-device .roundresults{margin-top:16px;padding-top:15px;gap:10px}
.phone-device .roundplace{padding:14px;border-radius:11px}
.phone-device .roundplace .rlabel{font-size:11px}
.phone-device .roundplace .rname{font-size:18px;margin-top:4px}
.phone-device .roundplace .rscore{font-size:14px;line-height:1.4;margin-top:4px}

/* Tournament polish: movement, saved state, champion, backup */
.move{display:inline-flex;align-items:center;justify-content:center;margin-left:7px;font-size:12px;font-weight:900;vertical-align:middle}.move.up{color:#177245}.move.down{color:#b23b3b}.move.same{color:#8a959e}.savedflag{font-size:11px;font-weight:900;color:var(--green);margin-top:5px;text-align:center}.champion{background:linear-gradient(135deg,#fff4c7,#d5a84a);border:2px solid #c4942f;border-radius:16px;padding:22px;text-align:center}.champion .crown{font-size:34px}.champion .ctitle{font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-top:4px}.champion .cname{font:900 30px Georgia,serif;margin:7px 0}.champion .cscore{font-size:26px;font-weight:900}.champion .runner{margin-top:10px;font-size:13px}.backupnote{font-size:12px;color:var(--muted);margin-top:8px}.phone-device .move{font-size:14px;margin-left:8px}.phone-device .savedflag{font-size:13px;margin-top:7px}.phone-device .champion{padding:24px 18px;border-radius:15px}.phone-device .champion .crown{font-size:42px}.phone-device .champion .ctitle{font-size:12px}.phone-device .champion .cname{font-size:30px}.phone-device .champion .cscore{font-size:28px}.phone-device .champion .runner{font-size:15px}.phone-device .backupnote{font-size:14px;line-height:1.4}
@media(max-width:390px){.phone-device .hero h1{font-size:38px}.phone-device .sub{font-size:16px}.phone-device .tab{font-size:11px}.phone-device .head h2{font-size:20px}.phone-device .stat small{font-size:11px}.phone-device .stat b{font-size:22px}.phone-device .mobiletop .mn{font-size:19px}}

/* Tournament splash screen */
.splash{position:fixed;inset:0;z-index:9999;background:#061a2d;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .55s ease,visibility .55s ease;cursor:pointer}
.splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.splash-art{position:absolute;inset:0;background-image:url("/assets/splash-9aa581c8.png");background-position:center;background-repeat:no-repeat;background-size:contain;background-color:#061a2d}
.splash-hit{position:absolute;inset:0;z-index:2}

@media(max-width:650px){.splash{background:#061a2d;overflow:hidden}.splash-art{inset:0;background-size:100% auto;background-position:center center;background-repeat:no-repeat}}
.phone-device .splash{background:#061a2d;overflow:hidden}.phone-device .splash-art{inset:0;background-size:100% auto!important;background-position:center center!important;background-repeat:no-repeat}.phone-device 

.courseSettingRow{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(100px,1fr));gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid var(--line)}
.courseSettingRow:last-child{border-bottom:0}.courseSettingRow .courseTitle b{display:block;font-size:16px}.courseSettingRow .courseTitle small{color:var(--muted)}
.courseSettingRow input{width:100%;box-sizing:border-box}
@media(max-width:650px){.courseSettingRow{grid-template-columns:1fr 1fr;gap:14px;padding:20px 0}.courseSettingRow .courseTitle{grid-column:1/-1}.courseSettingRow .settingPar{grid-column:1/-1}.courseSettingRow input{font-size:20px;padding:14px}.courseSettings .btn{width:100%;font-size:18px;padding:15px}}

/* Desktop scaling: let the layout grow with the screen instead of sitting in a fixed 1120px column. */
@media(min-width:1100px){
.wrap,.nav,main{max-width:min(1700px,92vw)}
.hero .wrap{padding:0 20px}
.hero{padding:clamp(30px,2.4vw,48px) 20px}
.hero h1{font-size:clamp(42px,3vw,64px)}
.k{font-size:clamp(11px,.8vw,14px)}
.sub{font-size:clamp(14px,1vw,19px)}
.navin{padding:clamp(7px,.5vw,10px);gap:clamp(5px,.4vw,8px)}
.tab{font-size:clamp(13px,1vw,17px);padding:clamp(9px,.7vw,14px) clamp(14px,1.2vw,24px)}
.grid{gap:clamp(18px,1.5vw,28px)}
.head{padding:clamp(17px,1.3vw,24px) clamp(19px,1.5vw,28px)}
.head h2{font-size:clamp(17px,1.3vw,24px)}
.body{padding:clamp(19px,1.5vw,28px)}
.badge{font-size:clamp(11px,.8vw,14px);padding:clamp(5px,.4vw,7px) clamp(8px,.6vw,12px)}
.stats{gap:clamp(10px,.8vw,16px);margin-bottom:clamp(16px,1.2vw,22px)}
.stat{padding:clamp(13px,1vw,18px)}
.stat small{font-size:clamp(12px,.9vw,16px)}
.stat b{font-size:clamp(20px,1.7vw,32px)}
th,td{font-size:clamp(13px,1vw,17px);padding:clamp(10px,.8vw,15px) clamp(11px,.9vw,16px)}
th{font-size:clamp(10px,.75vw,13px)}
.total{font-size:clamp(15px,1.2vw,20px)}
.small{font-size:clamp(12px,.9vw,15px)}
.podium{gap:clamp(12px,1vw,18px)}
.place{padding:clamp(16px,1.3vw,24px)}
.place .label{font-size:clamp(11px,.8vw,14px)}
.place .name{font-size:clamp(23px,1.8vw,34px)}
.place .score{font-size:clamp(21px,1.6vw,30px)}
.coursegrid{gap:clamp(11px,1vw,18px)}
.course{padding:clamp(14px,1.1vw,22px);font-size:clamp(14px,1vw,17px)}
.course small{font-size:clamp(11px,.8vw,14px)}
.roundplace{padding:clamp(9px,.8vw,14px) clamp(10px,.9vw,16px)}
.roundplace .rlabel{font-size:clamp(9px,.7vw,12px)}
.roundplace .rname{font-size:clamp(14px,1vw,18px)}
.roundplace .rscore{font-size:clamp(11px,.85vw,15px)}
.notice,.status{font-size:clamp(13px,1vw,16px)}
.adminbar{gap:clamp(12px,1vw,18px)}
.field label{font-size:clamp(11px,.8vw,14px)}
.field input,.field select{font-size:clamp(16px,1.1vw,19px);padding:clamp(11px,.8vw,14px)}
.scorerow{grid-template-columns:minmax(180px,1fr) clamp(75px,6vw,110px) clamp(105px,8vw,150px) clamp(105px,8vw,150px);font-size:clamp(14px,1vw,17px);padding:clamp(10px,.8vw,14px) clamp(12px,1vw,18px)}
.scorerow.header{font-size:clamp(10px,.75vw,13px)}
.scorerow input{font-size:clamp(16px,1.2vw,20px);padding:clamp(9px,.7vw,12px)}
.btn{font-size:clamp(13px,1vw,17px);padding:clamp(11px,.9vw,15px) clamp(15px,1.2vw,22px)}
.courseSettingRow input{font-size:clamp(16px,1.1vw,19px)}
}
