:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Arial,sans-serif;color:#102128;background:#f2f5f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}.hero{color:white;background:linear-gradient(112deg,rgba(7,33,54,.98),rgba(9,78,96,.94)),radial-gradient(circle at 80% 30%,#49ad86,transparent);padding:25px 22px 30px;min-height:148px}.hero-inner{max-width:1030px;margin:auto;display:flex;align-items:center;gap:17px}.brandmark{width:64px;height:64px;font-size:55px;line-height:54px;transform:rotate(-12deg);color:#e8f8f3}.brand-title{font-size:29px;font-weight:820;line-height:1.02;letter-spacing:-.8px}.brand-subtitle{margin-top:8px;color:#d5edf0;font-size:13px}.nav{display:flex;gap:6px;background:white;border-bottom:1px solid #e1e8eb;justify-content:center;padding:8px}.nav button{border:0;background:transparent;padding:12px 16px;border-radius:11px;font-weight:650;color:#49616a}.nav button.active{background:#e5f4ec;color:#176443}.page{max-width:1050px;margin:auto;padding:24px 20px 60px}.home{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-heading,.course-grid{grid-column:1/-1}.section-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#16825d}h1{font-size:30px;letter-spacing:-.7px;margin:7px 0 0}h2{font-size:22px;letter-spacing:-.5px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.course-card,.panel,.wizard-card,.score-panel{background:white;border:1px solid #e2e9eb;border-radius:18px;box-shadow:0 6px 24px rgba(17,40,54,.05);overflow:hidden}.course-art{height:135px;position:relative;background-size:cover}.course-las{background:linear-gradient(145deg,rgba(21,103,76,.2),rgba(6,42,77,.2)),linear-gradient(164deg,#aedbcf 0 30%,#59a977 30% 58%,#cde6ae 58% 63%,#267e54 63%)}.course-adeje{background:linear-gradient(165deg,#85c9e0 0 38%,#1d7798 38% 55%,#a2c48a 55% 64%,#267351 64%)}.course-abama{background:linear-gradient(148deg,#97c9e5 0 50%,#2d7596 50% 56%,#9cb76b 56% 62%,#368557 62%)}.hole-number{position:absolute;bottom:10px;left:16px;color:white;font-size:42px;font-weight:900;text-shadow:0 2px 12px #163d40}.chip{position:absolute;top:12px;right:10px;border-radius:12px;background:white;color:#156042;font-size:11px;font-weight:800;padding:6px 9px}.chip.muted{color:#8b4c21}.chip.good{background:#c9f5db}.course-card-body{padding:16px}.course-card-body h2{margin:7px 0}.course-card-body p{font-size:13px;color:#60737a;min-height:34px}.text-button,.link{border:0;background:none;color:#176b50;font-weight:750;padding:7px 0}.panel{padding:20px}.panel-title{font-size:20px;font-weight:800;margin-bottom:14px}.stand-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid #ebeff0}.stand-row:last-of-type{border:0}.stand-name{flex:1;display:flex;align-items:center;gap:9px;font-weight:700}.medal{width:28px;height:28px;background:#e8ebee;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:850;color:#56606a;flex-shrink:0}.m0{background:#ffd54d;color:#664e05}.m1{background:#dce1e8}.m2{background:#e8c8b2}.player-dot{display:inline-block;width:13px;height:13px;border-radius:50%;margin-right:8px;flex-shrink:0}.small-muted{color:#778890;font-size:12px;line-height:1.55}.round-line{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #ebeff0;padding:13px 0;text-align:left;background:white;font-weight:700;color:#223840}.round-line small{display:block;font-size:12px;color:#788a8f;font-weight:400;margin-top:4px}.footer{display:flex;justify-content:center;align-items:center;gap:20px;font-size:12px;color:#7c8990;padding:25px 12px;max-width:1050px;margin:auto}.primary{display:inline-flex;justify-content:center;align-items:center;background:#176941;color:white;font-size:15px;font-weight:800;border:0;border-radius:10px;padding:15px 20px;min-height:50px;box-shadow:0 3px 8px rgba(3,70,43,.12)}.primary:hover{background:#105433}.primary.small{min-height:42px;padding:10px 16px;font-size:13px}.primary.disabled{opacity:.42}.wizard-shell{max-width:540px;margin:auto;padding:23px 18px 30px}.wizard-top{display:flex;justify-content:space-between;align-items:center;color:#687d82;font-size:12px;font-weight:700;margin-bottom:14px}.back-link{color:#176747;background:none;border:none;font-weight:750;padding:4px}.progress{display:flex;gap:7px;margin-bottom:18px}.progress span{height:6px;border-radius:8px;flex:1;background:#dde5e7}.progress span.filled{background:#1b7d58}.wizard-card{padding:26px 23px 30px;min-height:430px}.step-counter{text-transform:uppercase;letter-spacing:1px;color:#79919a;font-weight:750;font-size:10px;margin-bottom:15px}.wizard-card h1{font-size:29px;margin:8px 0 10px}.intro{color:#667d86;font-size:14px;line-height:1.6;margin:0 0 24px}.choices{display:grid;gap:12px}.choice{border:2px solid #e8edee;background:white;display:flex;text-align:left;align-items:center;gap:14px;padding:17px 14px;border-radius:14px;color:#203640;width:100%}.choice.selected{border-color:#247e58;background:#f0faf4}.choice-icon{background:#ecf5f0;display:flex;align-items:center;justify-content:center;font-size:26px;color:#1f825d;border-radius:12px;width:46px;height:46px;flex-shrink:0}.choice strong,.choice small{display:block}.choice strong{font-size:15px}.choice small{font-size:12px;color:#70828a;line-height:1.4;margin-top:5px}.select-ring{margin-left:auto;border:2px solid #ccd8d8;border-radius:50%;height:23px;width:23px;display:grid;place-items:center;flex-shrink:0;color:white;font-weight:900}.selected .select-ring{background:#237a58;border-color:#237a58}.note,.warning{background:#ecf7f1;border-radius:12px;padding:14px;font-size:12px;line-height:1.55;color:#296348;margin-top:24px}.warning{background:#fff2e5;color:#965322}.wizard-bottom{padding-top:16px}.wizard-bottom .primary{width:100%}.field-label{display:block;font-size:13px;font-weight:780;margin:16px 0 10px}.index-control{display:flex;align-items:center;justify-content:center;background:#f4f7f8;border:1px solid #e2e8e9;border-radius:14px;gap:10px;height:72px}.index-control button{background:white;border:1px solid #dbe4e6;border-radius:10px;width:44px;height:44px;font-size:25px;color:#2f4751}.index-control input{background:none;width:110px;border:0;text-align:center;font-size:34px;font-weight:800;outline:0;color:#102c36}.tee-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tee-choice{position:relative;text-align:left;display:flex;flex-direction:column;border:2px solid #e6ebed;background:white;border-radius:15px;padding:17px;gap:6px}.tee-choice.selected{border-color:#187551;background:#f0faf4}.tee-name{font-size:14px;font-weight:800;display:flex;align-items:center;gap:7px}.tee-dot{width:14px;height:14px;border-radius:50%;border:1px solid #ddd}.tee-dot.red{background:#e33640}.tee-dot.blue{background:#237bdd}.tee-dot.yellow{background:#efc221}.tee-dot.white{background:white;border:2px solid #a5abb0}.tee-choice strong{font-size:36px;line-height:1.05}.tee-choice small{font-size:12px;color:#526d72}.tee-data{font-size:10px;color:#859397;margin-top:6px}.tee-check{position:absolute;right:10px;top:9px;color:#15754b;font-size:17px;font-weight:800}.summary-header{background:#092e38;border-radius:14px;color:white;padding:20px;display:grid;gap:8px;font-size:15px}.summary-header div+div{color:#bbddd6;font-size:13px}.summary-list{margin-top:15px}.summary-player{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8edf0;padding:17px 0;font-weight:750}.summary-player small{display:block;color:#809198;font-size:12px;margin:7px 0 0 22px;font-weight:400}.summary-hcp{text-align:right}.summary-hcp b{display:block;font-size:27px}.summary-hcp small{color:#829299;font-size:11px}.slide{animation:enter .24s ease-out}@keyframes enter{from{opacity:.4;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}.score-header{background:#092d37;color:white;padding:10px 10px 16px}.score-head-row{max-width:520px;margin:auto;display:flex;align-items:center;justify-content:space-between}.score-title{text-align:center;font-size:16px;font-weight:800}.score-title small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:#d8e5e6}.iconbtn{border:0;background:transparent;color:inherit;font-size:26px;width:40px;height:36px}.tabs{display:flex;justify-content:center;border-bottom:1px solid #dbe4e5;background:white;padding:0 10px}.tabs button{background:white;border:none;border-bottom:3px solid transparent;padding:15px 10px 12px;font-size:12px;color:#50636a;white-space:nowrap;flex:1;max-width:170px}.tabs button.active{border-color:#177547;color:#176f49;font-weight:750}.scoring-body{max-width:520px;padding:18px 16px 35px;margin:auto}.quick-leader{border:1px solid #d7e9e0;background:#eaf6ee;border-radius:13px;padding:13px 15px;margin-bottom:15px}.quick-title{font-weight:820;color:#195b3e;font-size:13px;display:flex;justify-content:space-between}.quick-title span{color:#7a9285;font-weight:600}.quick-items{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.quick-items>div{font-size:12px;border-right:1px solid #cfe5d6}.quick-items>div:last-child{border:none}.quick-items b,.quick-items strong{display:block}.quick-items strong{font-size:16px;margin-top:3px;color:#173e2b}.score-panel{border-radius:15px}.hole-header{display:flex;align-items:center;justify-content:space-between;padding:21px 17px;border-bottom:1px solid #e8eef0;text-align:center}.hole-header h1{font-size:24px;margin:0}.hole-header p{font-size:13px;color:#64767c;margin:5px 0 0}.circle-button{width:38px;height:38px;border-radius:50%;background:#f0f2f4;border:0;color:#223a40;font-size:28px}.score-lines{padding:9px 19px}.score-line{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #ebeff1}.score-line:last-child{border-bottom:0}.score-person{font-weight:750;display:flex;align-items:center;font-size:15px}.stepper{display:flex;align-items:center;border:1px solid #d5dfe2;border-radius:9px;height:42px;overflow:hidden}.stepper button{height:100%;width:39px;background:#f5f7f8;color:#172e34;border:none;font-size:22px}.stepper span{display:grid;place-items:center;font-size:22px;font-weight:800;width:46px}.strokes-box{border-radius:13px;background:#e8f4eb;margin:16px 0;padding:18px;color:#182b24;font-size:13px;line-height:1.85}.strokes-heading{display:flex;justify-content:space-between;font-weight:850;margin-bottom:6px;font-size:13px}.strokes-heading span{color:#15845c}.strokes-box b{font-weight:800}.strokes-box small{display:block;color:#527464;font-size:11px;line-height:1.5;margin-top:7px}.scoring-body>.primary{width:100%;min-height:53px}.hint{color:#95a1a6;font-size:11px;text-align:center;line-height:1.5}.score-bottom{background:white;border-top:1px solid #e0e7e8;display:flex;justify-content:space-evenly;padding:8px;position:sticky;bottom:0}.score-bottom button{display:grid;justify-items:center;background:transparent;border:0;color:#557078;font-size:20px;min-width:75px}.score-bottom small{font-size:11px}.view-panel{padding:20px}.view-panel h2{margin:0 0 6px}.leader-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #e8eded}.leader-row>span:nth-child(2){flex:1;font-weight:750}.duel{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e8eded;font-size:13px}.table-scroll{overflow:auto}.detail-table{border-collapse:collapse;width:100%;font-size:12px;text-align:center}.detail-table td,.detail-table th{padding:9px 6px;border-bottom:1px solid #e9eef0}.detail-table .filled{background:#eff8f1}@media(max-width:700px){.hero{min-height:123px;padding:18px 17px}.brandmark{width:43px;height:43px;font-size:39px;line-height:36px}.brand-title{font-size:22px}.brand-subtitle{font-size:11px}.nav button{font-size:12px;padding:11px 9px}.home{grid-template-columns:1fr}.course-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}.course-card{min-width:76%;scroll-snap-align:center}.section-heading h1{font-size:24px}.section-heading{gap:8px}.page{padding:18px 15px}.panel{padding:17px}.wizard-shell{padding:15px 12px 24px}.wizard-card{padding:23px 18px;min-height:405px}.wizard-card h1{font-size:26px}.tee-choice{padding:15px 12px}.score-header{padding-top:8px}.footer{flex-wrap:wrap}.scoring-body{padding:14px 13px 24px}}@media(min-width:701px){body:has(.score-header){background:#eaf0f1}.score-header{padding-top:25px}.score-bottom{max-width:520px;margin:auto}}

/* Actions de gestion des parties : possibilité de supprimer les essais. */
.round-entry{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e7ecea}
.round-entry .round-line{flex:1;border-bottom:0;min-width:0}
.delete-button{flex:0 0 44px;height:44px;border:1px solid #f1dddd;border-radius:12px;background:#fff6f6;color:#a63535;font-size:19px;cursor:pointer}
.delete-button:hover{background:#ffe5e5}

/* Club badges on the course selection step, sourced from supplied artwork. */
.choice-icon.course-logo{width:67px;height:67px;background:white;overflow:hidden;border:1px solid #e6eced;padding:4px;border-radius:13px}
.choice-icon.course-logo img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}

/* THE TENERIFE GRAND TOURNAMENT VISUAL SYSTEM — home & wizard only.
   Scores screen deliberately retains the approved minimal styling. */
:root{--golf-gold:#e6b86c;--golf-midnight:#071e30}
.hero{position:relative;min-height:420px;padding:40px 18px 46px;background-image:linear-gradient(180deg,rgba(5,22,41,.85) 0%,rgba(5,24,43,.42) 39%,rgba(6,26,37,.22) 76%,rgba(4,28,40,.96) 100%),url('/assets/tenerife-sunset-hero.webp');background-size:cover;background-position:center 46%;isolation:isolate;text-align:center}
.hero-inner{display:flex;flex-direction:column;justify-content:center;gap:8px;max-width:860px;min-height:320px}
.hero-emblem{font-family:Georgia,serif;font-size:24px;color:#f0c47d;display:flex;gap:18px;align-items:center;justify-content:center;line-height:1}.hero-emblem .crossed{font-size:32px;color:#ffedd0}
.hero-eyebrow{font-family:Georgia,'Times New Roman',serif;font-size:17px;letter-spacing:.32em;color:#fff8eb;margin-top:12px}
.brand-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(65px,9vw,112px);line-height:.91;font-weight:400;letter-spacing:.075em;color:white;text-shadow:0 2px 20px rgba(0,0,0,.28)}
.brand-title span{display:block}.brand-title small{display:block;font-size:clamp(22px,4vw,45px);font-weight:400;letter-spacing:.19em;margin-top:13px}
.hero-rule{font-size:25px;color:#f8e6cd;letter-spacing:20px}.brand-subtitle{font-size:12px;text-transform:uppercase;letter-spacing:.17em;color:#f7d79c;font-weight:800;margin-top:8px}
body:has(.home),body:has(.wizard-shell){background:#071c2d;color:#f8f8f4}
body:has(.home) .nav,body:has(.wizard-shell) .nav{background:#071e30;border-color:#14394a}
body:has(.home) .nav button,body:has(.wizard-shell) .nav button{color:#f1e6d7}
body:has(.home) .nav button.active{background:#1c413e;color:#d9f5e1}
body:has(.home) .page{max-width:1120px}.home-intro{grid-column:1/-1;margin-top:-35px;position:relative;z-index:2}.event-kicker{text-align:center;color:#f2c47b;letter-spacing:.2em;font-size:11px;font-weight:800;margin:7px 0 19px}.event-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.event-stats>div{border:1px solid rgba(235,213,174,.23);background:linear-gradient(160deg,rgba(30,55,64,.94),rgba(9,31,49,.97));border-radius:20px;min-height:118px;padding:15px 7px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:7px}.event-stats span{font-size:28px;color:#eac27c}.event-stats b{font-size:16px}.event-stats small{font-size:10px;line-height:1.35;color:#d2e0e0}.home-actions{display:flex;gap:12px;margin-top:24px}.home-actions button{flex:1;min-height:58px;border-radius:15px}.home-actions .primary{background:linear-gradient(105deg,#2f9851,#176840);font-size:19px}.secondary-action{background:transparent;border:1.5px solid #e4cda5;color:#f1e8dc;font-weight:750;font-size:16px}.home .section-heading{margin-top:14px}.home .section-heading h1{font-family:Georgia,serif;font-weight:400;color:#fff9f0}.home .course-card{background:#14303d;color:#fff;border-color:#31505a}.home .course-card-body{display:flex;align-items:center;gap:13px}.home .course-card-body h2{color:#fff}.home .course-card-body p{min-height:unset;color:#cee0df}.home .course-art{height:78px}.home .home-course-logo{width:67px;height:67px;object-fit:contain;flex-shrink:0;background:white;border-radius:12px;padding:5px}.home .course-card-body .eyebrow{color:#e5c084}.home .text-button{color:#9be3b5}.home .panel{background:linear-gradient(160deg,#173342,#102736);color:#fff;border-color:#35515b}.home .stand-row{border-color:#304957}.home .small-muted{color:#b6cbce}.home .round-line{background:transparent;color:#fff;border-color:#304957}.home .round-line small{color:#bacacd}.home .footer,.home~.footer{color:#d1d9d6}.home~.footer .link{color:#d1cb9b}
body:has(.wizard-shell){background:#eff2f2;color:#112b32}body:has(.wizard-shell) .hero{min-height:240px;padding:10px 14px 22px}body:has(.wizard-shell) .hero-inner{min-height:205px;gap:4px}body:has(.wizard-shell) .hero-emblem{font-size:16px;gap:10px}body:has(.wizard-shell) .hero-emblem .crossed{font-size:20px}body:has(.wizard-shell) .hero-eyebrow{font-size:12px;margin-top:4px}body:has(.wizard-shell) .brand-title{font-size:58px}body:has(.wizard-shell) .brand-title small{font-size:23px;margin-top:8px}body:has(.wizard-shell) .brand-subtitle{font-size:10px}body:has(.wizard-shell) .hero-rule{font-size:14px}body:has(.wizard-shell) .wizard-shell{margin-top:-18px;position:relative;z-index:2}body:has(.wizard-shell) .wizard-card{border-top:4px solid #dfb573;border-radius:19px;box-shadow:0 14px 42px rgba(12,35,43,.13)}body:has(.wizard-shell) .progress span.filled{background:#c99c54}body:has(.wizard-shell) .wizard-card h1{font-family:Georgia,serif;font-weight:500;color:#092e37}body:has(.wizard-shell) .eyebrow{color:#9b793d}body:has(.wizard-shell) .choice.selected,body:has(.wizard-shell) .tee-choice.selected{background:#f6faf5;border-color:#227147}body:has(.wizard-shell) .primary{background:#176940}body:has(.wizard-shell) .summary-header{background:#0b3442;border-bottom:2px solid #e4bc7c}
/* Make full names fit inside the previously approved scoring layout. */
.score-line .score-person{font-size:12px;min-width:0}.score-line .score-person .player-dot{width:10px;height:10px;margin-right:3px}.quick-items b{font-size:10px;line-height:1.2}.strokes-box>div:not(.strokes-heading){font-size:12px}
@media(max-width:640px){.hero{min-height:370px;padding:18px 12px 25px}.hero-inner{min-height:325px}.hero-eyebrow{font-size:13px}.brand-title{font-size:clamp(54px,13vw,81px)}.brand-title small{font-size:clamp(20px,5.1vw,31px)}.brand-subtitle{font-size:10px}.home-intro{margin-top:-23px}.event-stats>div{min-height:115px}.event-stats b{font-size:13px}.event-stats small{font-size:9px}.home-actions{flex-direction:column}.home-actions button{min-height:56px}.home .course-art{height:45px}.home .course-card-body{padding:12px}.home .home-course-logo{width:59px;height:59px}.home .course-card-body h2{font-size:17px}.home .course-card-body p{font-size:12px}.home .course-grid{gap:10px}.home .course-card-body .eyebrow{font-size:9px}body:has(.wizard-shell) .hero{min-height:218px}body:has(.wizard-shell) .hero-inner{min-height:190px}body:has(.wizard-shell) .brand-title{font-size:51px}body:has(.wizard-shell) .brand-title small{font-size:19px}}
/* Public leaderboard: understated, readable on mobile. Scoring controls retain their original design. */
.not-started{grid-column:1/-1;max-width:760px;margin:4px auto 14px;text-align:center;border:1px solid rgba(234,193,128,.45);border-radius:20px;background:linear-gradient(145deg,rgba(23,57,60,.94),rgba(9,35,52,.98));padding:28px 25px;color:#fff}
.not-started>span{font-size:27px;color:#efc47a}.not-started h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(23px,5vw,32px);margin:7px 0;color:#f9e8ca}.not-started p{font-size:14px;color:#ccdbdd;line-height:1.6;max-width:510px;margin:0 auto}
.viewer-chip{color:#b7e7c8;border:1px solid #397f63;padding:4px 9px;border-radius:20px;font-size:10px;font-weight:800;letter-spacing:.1em}
.viewer-notice{margin:16px 0;text-align:center;color:#547968;background:#edf7f0;border-radius:12px;font-size:13px;padding:14px}
body:has(.home) .hero{background-position:center center}
body:has(.wizard-shell) .hero{background-position:center 54%}
body:has(.home) .hero-inner{margin:0 auto}
.home .course-card .course-art{background-image:linear-gradient(95deg,rgba(9,44,50,.86),rgba(12,51,58,.56)),url('/assets/tenerife-sunset-hero.webp');background-size:cover;background-position:center 76%}
@media(min-width:900px){body:has(.home) .home-intro{margin-top:-58px}}

.login-dialog{width:min(420px,calc(100% - 32px));background:#102d39;color:#f9e8ca;border:1px solid #dfb573;border-radius:20px;padding:28px}.login-dialog::backdrop{background:#03131ddd}.login-dialog p{line-height:1.5}.login-dialog label{display:block;margin:20px 0 8px}.login-dialog input{box-sizing:border-box;width:100%;border:1px solid #9aaeb0;border-radius:9px;padding:13px;font-size:18px}.login-actions{display:flex;gap:10px;margin-top:20px}.login-actions button{flex:1;padding:12px;border-radius:9px}.login-dialog h2{margin-top:0}

.score-sync{text-align:center;font-size:12px;color:#406b5c;line-height:1.5;overflow-wrap:anywhere}
