@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Noto+Sans+Thai:wght@400;500;600&display=swap');
:root{--red:#731b31;--deep:#471020;--ink:#171416;--cream:#faf7f5;--muted:#8e7e81}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans','Noto Sans Thai',sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d3899c;outline-offset:4px}header{display:flex;justify-content:space-between;align-items:center;padding:25px 5%;border-bottom:1px solid #e7dddd}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--red);font-size:48px;font-weight:bold;line-height:1}.brand>span{font-size:18px;letter-spacing:-.5px}.brand b{font-size:11px;margin-left:5px;vertical-align:top}.top{display:flex;align-items:center;gap:18px}.top button,footer button{border:0;background:none}.pill{border:1px solid #d6bcc4;padding:10px 14px;border-radius:30px;font-size:10px;letter-spacing:1px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:660px}.hero-copy{padding:70px 10% 30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--red);font-weight:700}h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(58px,6vw,92px);line-height:1.02;font-weight:500;letter-spacing:-3px;margin:28px 0}em{color:var(--red);font-weight:500}.hero-copy>p:not(.eyebrow){font-size:14px;line-height:1.9;color:#75696c}.primary{padding:17px 25px;background:var(--red);color:white;border:0;border-radius:6px;box-shadow:0 5px 14px #731b3120;transition:transform .1s,background .1s}.primary:hover{transform:translateY(-3px);background:var(--deep)}.primary span{margin-left:45px}.hero-notes{display:flex;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:1px;margin-top:55px}.hero-art{position:relative;margin:22px 22px 22px 0;border-radius:130px 8px 8px 8px;overflow:hidden;background:var(--deep)}.hero-art>img{width:100%;height:100%;object-fit:cover;position:absolute}.art-label{position:absolute;bottom:30px;left:30px;color:white;font-size:11px;letter-spacing:2px;line-height:1.7}.floating{position:absolute;right:25px;top:25px;background:#fcf6ee;color:var(--red);width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:25px;transform:rotate(12deg);animation:float 2.5s ease-in-out infinite}.floating small{font-size:10px;text-align:center;line-height:1.4}.ticker{overflow:hidden;white-space:nowrap;background:var(--red);color:#fff;padding:17px;font-size:12px;letter-spacing:5px;text-align:center}.club{padding:70px 6%}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:35px}h2{font-family:'Playfair Display',Georgia,serif;font-size:48px;font-weight:500;letter-spacing:-1.5px;margin:10px 0}.save-status{font-size:11px;color:var(--muted)}nav{display:flex;border-bottom:1px solid #decfd3;gap:20px}nav button{padding:20px;background:none;border:0;color:#a29196;font-size:10px}nav span{font-size:15px;margin-left:10px}nav .active{color:var(--red);border-bottom:2px solid var(--red)}.panel{padding:35px 0}.setup-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:60px}label{display:block;font-size:12px;color:#5e4d53;font-weight:500}label small{display:block;font-size:10px;color:#97898d;margin:8px 0}input,textarea{width:100%;background:white;border:1px solid #e3d9dc;border-radius:7px;padding:13px;margin:9px 0 20px;outline-color:var(--red);color:var(--ink)}textarea{resize:vertical;line-height:1.7}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.actions{display:flex;gap:12px;flex-wrap:wrap}.secondary{padding:14px 20px;background:transparent;border:1px solid #d7c3ca;border-radius:6px;color:var(--red)}.help{font-size:11px;color:#97898d;line-height:1.8}.mascot-card{background:#eee4e6;border-radius:80px 8px 8px 8px;text-align:center;padding-bottom:30px;overflow:hidden}.mascot-card img{width:100%;max-height:300px;object-fit:cover}.mascot-card h3{font-family:'Playfair Display';font-size:30px;font-weight:500;color:var(--red);margin:25px 0 12px}.mascot-card p{font-size:12px;color:#8b6d77;line-height:1.8;margin-bottom:22px}.editorial{display:grid;grid-template-columns:1fr 1fr;background:#191517;color:white;gap:60px;align-items:center;padding:60px 6%}.editorial img{width:100%;border-radius:8px;max-height:460px;object-fit:cover}.editorial .eyebrow,.editorial em{color:#d28b9d}.editorial p:not(.eyebrow){color:#bbaab0;font-size:13px;line-height:1.9}.mini-features{display:flex;gap:35px;margin-top:30px;font-size:12px;line-height:2}.mini-features span:first-line{font-size:24px;color:#d28b9d}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:35px 6%;font-size:10px;color:#9b858b}.brand-text{font-size:19px;font-weight:700;color:var(--red)}.import{font-size:11px;cursor:pointer}.empty{text-align:center;padding:70px 10px;color:#927f86}.round-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 15px}.round-head h3{font-size:20px;color:var(--red)}.round-head small{font-size:11px;color:#95868b}.match-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:15px}.match{background:white;border:1px solid #e5dade;border-radius:12px;overflow:hidden}.court-title{background:#f0e7e9;color:var(--red);padding:12px 18px;font-size:10px;letter-spacing:1px}.teams{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;text-align:center}.team-names{font-size:12px;min-height:40px;line-height:1.5}.score{font-size:29px;text-align:center;margin:10px 0 0;padding:10px;width:100%;background:var(--cream)}.match-note{font-size:10px;color:#ab929a;text-align:center;padding:0 10px 12px}.rank-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{color:#99858d;font-size:10px;text-transform:uppercase;letter-spacing:1px;text-align:left;padding:17px}td{padding:18px;border-top:1px solid #eadfe3}tr:first-child td{color:var(--red);font-weight:bold}.rank-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:30px;padding:12px 23px;font-size:12px;z-index:9;opacity:0;transition:opacity .3s;pointer-events:none}.conf{position:fixed;top:-15px;width:8px;height:12px;z-index:10;animation:fall 2s linear forwards;pointer-events:none}@keyframes float{50%{transform:translateY(12px) rotate(6deg)}}@keyframes fall{to{transform:translateY(110vh) rotate(600deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media(max-width:760px){header{padding:20px}.top .pill{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:40px 7% 25px}h1{font-size:64px}.hero-notes{margin-top:30px}.hero-art{height:340px;margin:0 20px 25px}.club{padding:45px 6%}.section-head{display:block}.save-status{display:block;margin-top:20px}.setup-grid{grid-template-columns:1fr;gap:25px}.mascot-card{display:none}h2{font-size:39px}nav{gap:4px}nav button{padding:16px 12px}.editorial{grid-template-columns:1fr;gap:25px;padding:35px 6%}.editorial img{max-height:320px}footer{flex-wrap:wrap}footer>span:nth-child(2){display:none}.round-head{align-items:start;gap:10px}.round-head small{max-width:50%;line-height:1.6}.rank-tools{flex-wrap:wrap}}

.balance-details{border:1px solid #decfd3;background:white;border-radius:8px;margin:20px 0;padding:16px}.balance-details summary{cursor:pointer;color:var(--red);font-size:13px}.balance-details table{margin-top:15px}

.schedule-options{margin:25px 0 30px}.schedule-options h3{font-size:16px;margin:28px 0 17px}.court-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.court-heading h3{margin:0}.court-heading button{font-size:11px;padding:10px 12px}.court-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 30px}.court-choice{display:flex;gap:12px;align-items:center;text-align:left;padding:20px 15px;border:2px solid #e2d4d9;border-radius:15px;background:white;color:#957f87;transition:.1s}.court-choice.selected{border-color:var(--red);background:#f4e7ec;color:var(--red)}.court-number{background:#e9dce1;color:var(--red);min-width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:700}.selected .court-number{background:var(--red);color:white}.court-choice>span:nth-child(2){font-weight:700;font-size:15px}.court-choice small{display:block;font-size:10px;margin-top:6px;font-weight:400}.court-check{margin-left:auto;font-size:19px}.point-choices{display:flex;gap:12px}.point-choices button{border:1px solid #decfd5;border-radius:12px;background:white;padding:15px 22px;color:#977b86;font-size:20px}.point-choices button.selected{background:#f4e7ec;border:2px solid var(--red);color:var(--red)}.point-choices span{margin-left:8px;color:var(--ink)}.mode-choice{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:15px}.mode-choice input{width:20px;height:20px;margin:0;accent-color:var(--red)}.mode-choice small{color:#94848a;margin:5px 0 0}#generate{width:100%;font-weight:700;font-size:16px;padding:20px}.actions{margin-top:20px}button:disabled{opacity:.5;cursor:default}@media(max-width:400px){.court-choice{padding:17px 10px;gap:8px}.court-choice>span:nth-child(2){font-size:14px}.point-choices button{flex:1;padding:14px 12px}.court-number{min-width:29px;height:29px}}

[hidden]{display:none!important}

.players-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.players-total{background:#f0e2e7;color:var(--red);border:1px solid #dec5ce;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:700;white-space:nowrap}

#shareDialog{width:min(520px,calc(100% - 24px));max-height:92dvh;border:1px solid #ddcbd2;border-radius:20px;padding:24px;background:var(--cream);color:var(--ink);overflow:auto}#shareDialog::backdrop{background:#171416b0}.share-heading{display:flex;align-items:center;justify-content:space-between}.share-heading h3{font-size:21px;margin:10px 0 20px}.share-heading>button{border:0;background:none;color:var(--red);font-size:32px}.share-formats{display:flex;gap:10px;margin-bottom:16px}.share-formats button{flex:1;border:1px solid #dcc9d0;background:white;border-radius:8px;padding:12px;color:var(--red)}.share-formats .selected{background:var(--red);color:white}.share-preview{background:#ece0e5;padding:12px;border-radius:10px;display:flex;justify-content:center}.share-preview img{max-width:100%;max-height:42dvh;object-fit:contain;box-shadow:0 4px 20px #47102022}.share-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0}.share-pages button{background:white;border:1px solid #ddcbd2;padding:8px 12px;border-radius:8px;color:var(--red)}.share-pages span{font-size:10px;color:#8d737d;text-align:center}.share-actions{display:flex;gap:10px;flex-wrap:wrap}.share-actions button{flex:1;white-space:nowrap}

.cloud-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:#f0e3e8;border:1px solid #dec5cf;border-radius:12px;margin-bottom:25px}.cloud-bar strong{color:var(--red);font-size:14px}.cloud-bar p{font-size:11px;line-height:1.6;color:#886c78;margin:7px 0 0}.cloud-actions{display:flex;gap:8px;flex-wrap:wrap}.cloud-actions button{font-size:11px;padding:12px 15px}@media(max-width:760px){.cloud-bar{align-items:start;flex-direction:column}.cloud-actions{width:100%}}
.event-progress{border:1px solid #dfd1d6;background:#fff;border-radius:20px;padding:28px}.event-progress h2{font-size:34px;line-height:1.3;margin:15px 0}.event-progress>p:not(.eyebrow){font-size:13px;color:#907981;line-height:1.8}.event-progress .progress-count{margin-top:25px!important;color:var(--red)!important}progress{width:100%;height:10px;appearance:none;border:0;border-radius:20px;background:#eee2e7;overflow:hidden}progress::-webkit-progress-bar{background:#eee2e7;border-radius:20px}progress::-webkit-progress-value{background:var(--red);border-radius:20px}progress::-moz-progress-bar{background:var(--red);border-radius:20px}.round-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0}.round-navigation>div{display:flex;gap:15px;align-items:center}.round-navigation button{border:1px solid #dfd0d7;background:white;color:var(--red);border-radius:10px;padding:12px 18px}.round-navigation>div button{font-size:23px;padding:5px 15px}.round-navigation span{font-size:18px;color:#9d838e}.round-navigation b{color:var(--ink);font-weight:500}#refreshResults{font-size:12px}.add-rounds-card{background:#f2e4e9;border:1px solid #dfbdca;border-radius:18px;padding:25px}.add-rounds-card h3{margin:0 0 15px;color:var(--red);font-size:21px}.add-rounds-card>p{font-size:13px;line-height:1.8}.add-rounds-card>div{display:flex;gap:20px;align-items:center;margin-top:20px}.add-rounds-card label{display:flex;align-items:center;gap:15px}.add-rounds-card input{width:90px;margin:0;background:#fff}.court-title{display:flex;align-items:center;justify-content:space-between}.court-title>span{font-size:10px;letter-spacing:0}@media(max-width:500px){.event-progress{padding:22px}.event-progress h2{font-size:29px}.round-navigation{gap:8px}.round-navigation>div{gap:8px}.round-navigation span{font-size:16px}#refreshResults{padding:10px;font-size:10px}.add-rounds-card{padding:22px}.add-rounds-card>div{gap:12px}.add-rounds-card label{font-size:11px;gap:10px}.add-rounds-card .primary{font-size:12px;padding:14px 17px}.add-rounds-card input{width:65px}}

.round-jump{margin:26px 0 8px}.round-jump>.help{font-size:12px;line-height:1.8;margin-bottom:20px}.round-number-buttons{display:flex;flex-wrap:wrap;gap:10px;max-height:260px;overflow-y:auto;padding:3px}.round-number-buttons button{min-width:44px;height:44px;border:1px solid #dccbd2;border-radius:10px;background:white;color:var(--ink);padding:0 12px;font-size:15px;transition:background .075s}.round-number-buttons button:hover{background:#f3e7ec}.round-number-buttons .selected{background:var(--red);border-color:var(--red);color:white;font-weight:700}.round-number-buttons .selected:hover{background:var(--deep)}.round-navigation{scroll-margin-top:20px}

.share-background{border:1px solid #ddc9d1;border-radius:12px;padding:14px;margin:0 0 16px}.share-background>div{display:flex;gap:8px;flex-wrap:wrap}.share-background button{font-size:11px;padding:11px 14px}.share-background .help{margin:10px 0 0;font-size:10px}#photoVisibilityLabel{margin-top:16px;font-size:11px}#photoVisibilityValue{float:right;color:var(--red)}#photoVisibility{accent-color:var(--red);padding:0;margin:12px 0 0;width:100%;cursor:pointer}

.recent-games{margin-bottom:25px;border:1px solid #dec8d1;background:white;border-radius:12px;padding:18px;scroll-margin-top:20px}.recent-games>summary{cursor:pointer;color:var(--red);font-size:14px;font-weight:700}.recent-games>summary span{margin-left:8px;background:#f0e2e7;border-radius:20px;padding:3px 9px;font-size:11px}.recent-games>.help{margin:15px 0}.recent-game{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 14px;margin:10px 0;border:1px solid #e5d8de;border-radius:10px;text-decoration:none;color:var(--ink);transition:background .075s}.recent-game:hover,.recent-game.current-game{background:#f5e9ee;border-color:#dab3c2}.recent-game strong{font-size:14px;color:var(--red)}.recent-game p{font-size:11px;color:#947985;line-height:1.7;margin:8px 0}.recent-game small{font-size:10px;color:#a08a94}.recent-game>span{font-size:11px;color:var(--red);white-space:nowrap}.recent-empty{font-size:12px;color:#99838d;line-height:1.8;padding:15px 0}#recentGamesList{max-height:420px;overflow:auto}@media(max-width:450px){.recent-game{padding:14px 10px;gap:10px}.recent-game>span{font-size:10px}}

.event-datetime{display:grid;grid-template-columns:1fr 1fr;gap:15px}.event-datetime input{min-width:0;min-height:46px}#saveEventDetails{margin-bottom:24px}.event-date-label{font-size:12px!important;color:var(--red)!important;font-weight:600}

.brand-logo{width:52px;height:52px;object-fit:contain;border-radius:12px;flex-shrink:0}

.share-layout{padding:16px 0}.share-layout label{margin:12px 0;font-size:11px}.share-layout label span{float:right;color:var(--red)}.share-layout input[type=range]{accent-color:var(--red);padding:0;margin:12px 0 0;cursor:pointer}.share-layout .help{margin:8px 0}

.header-sponsors{display:flex;align-items:center;gap:10px;flex-shrink:0}.sponsor-badge{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;overflow:hidden;border:2px solid white;outline:1px solid #d9b9c4;box-shadow:0 3px 8px #47102018}.sponsor-badge img{display:block;width:84%;height:84%;object-fit:contain}.sponsor-white{background:#fff}.sponsor-orange{background:#e18435}.sponsor-teal{background:#49bec4}@media(max-width:760px){.header-sponsors{gap:6px}.sponsor-badge{width:30px;height:30px;border-width:1px}}@media(max-width:360px){header{padding:18px 12px}.brand{gap:7px}.brand>span{font-size:16px}.brand b{font-size:10px;margin-left:3px}.header-sponsors{gap:5px}.sponsor-badge{width:28px;height:28px}}

.header-sponsors{gap:12px}.sponsor-badge{width:48px;height:48px;border-width:2px;box-shadow:0 4px 12px #47102030}.sponsor-badge img{width:90%;height:90%}@media(max-width:760px){.header-sponsors{gap:7px}.sponsor-badge{width:42px;height:42px;border-width:2px}}@media(max-width:360px){.header-sponsors{gap:5px}.sponsor-badge{width:34px;height:34px}}

.bottom-sponsors{margin-top:28px;padding:32px 18px 36px;text-align:center;background:linear-gradient(135deg,#f3e0e7,#fffaf7);border:1px solid #d7acbd;border-radius:20px;box-shadow:0 10px 28px #731b3115}.bottom-sponsors h3{font:500 30px 'Playfair Display',Georgia,serif;color:var(--red);margin:8px 0 25px}.bottom-sponsor-logos{display:flex;justify-content:center;align-items:center;gap:30px}.bottom-sponsor-logos .sponsor-badge{width:140px;height:140px;border-width:4px;box-shadow:0 8px 22px #47102028}@media(max-width:760px){.bottom-sponsor-logos{gap:18px}.bottom-sponsor-logos .sponsor-badge{width:min(100px,calc((100% - 36px)/3));height:auto;aspect-ratio:1;border-width:3px}}@media(max-width:380px){.bottom-sponsor-logos{gap:12px}.bottom-sponsor-logos .sponsor-badge{width:min(84px,calc((100% - 24px)/3));height:auto;aspect-ratio:1}.bottom-sponsors{padding:26px 12px 30px}}

.bottom-sponsor-logos a.sponsor-badge{cursor:pointer;transition:transform .1s,box-shadow .1s}.bottom-sponsor-logos a.sponsor-badge:hover{transform:translateY(-4px);box-shadow:0 12px 25px #47102035}@media(prefers-reduced-motion:reduce){.bottom-sponsor-logos a.sponsor-badge{transition:none}.bottom-sponsor-logos a.sponsor-badge:hover{transform:none}}

@keyframes sponsor-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}.bottom-sponsor-logos a.sponsor-badge{animation:sponsor-float 2.25s ease-in-out infinite}.bottom-sponsor-logos a.sponsor-badge:nth-child(2){animation-delay:-.75s}.bottom-sponsor-logos a.sponsor-badge:nth-child(3){animation-delay:-1.5s}.bottom-sponsor-logos a.sponsor-badge:hover,.bottom-sponsor-logos a.sponsor-badge:focus-visible{animation-play-state:paused}.bottom-sponsor-logos a.sponsor-badge:active{box-shadow:0 3px 10px #47102025}@media(prefers-reduced-motion:reduce){.bottom-sponsor-logos a.sponsor-badge{animation:none!important;transform:none!important}}

.sponsor-sunshine{background:#ffe426}.bottom-sponsor-logos .sponsor-sunshine img{width:100%;height:100%;object-fit:cover}.bottom-sponsor-logos .sponsor-sunshine{width:150px;height:150px;aspect-ratio:1}@media(max-width:760px){.bottom-sponsor-logos .sponsor-sunshine{width:125px;height:125px}}
