:root,.dark{--background:#000000;--foreground:#f5f7f6;--card:#111614;--card-foreground:#f5f7f6;--popover:#171d1a;--popover-foreground:#f5f7f6;--primary:#00ce78;--primary-foreground:#001c10;--secondary:#202824;--secondary-foreground:#f5f7f6;--muted:#171e1a;--muted-foreground:#a2b7aa;--accent:#19392b;--accent-foreground:#f5f7f6;--destructive:#fb7b72;--border:#303b35;--input:#35483d;--ring:#00ce78;--radius:1rem}
*{box-sizing:border-box}body{margin:0;background:#000000;color:#f5f7f6;font-family:Arial,Helvetica,sans-serif;font-size:16px}button,a,input{touch-action:manipulation}button,.button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #303b35;background:#151c18;border-radius:9px;padding:12px 17px;color:#f5f7f6;font:inherit;font-size:14px;text-decoration:none;transition:background .18s}button:hover,.button:hover{background:#25382d}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #00ce78;outline-offset:4px}.app{max-width:1480px;margin:auto;padding:0 4.5%}.topbar{min-height:100px;display:flex;align-items:center;gap:25px;border-bottom:1px solid #26322b}.brand{font-size:43px;letter-spacing:-3px;font-weight:800;text-decoration:none}.brand span{color:#00ce78;font-size:30px;margin-left:5px}.brand-note,.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:#9eb5a5}.topbar nav{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}.event{display:flex;justify-content:space-between;align-items:center;padding:46px 0 36px;gap:20px}.event h1{font-size:clamp(27px,3.5vw,48px);letter-spacing:-1.8px;line-height:1.12;margin:14px 0 0;font-weight:500}.title-dot{color:#00ce78}.event-meta{text-align:right}.event-meta p{font-size:22px;margin:15px 0 5px}.event-meta small,.muted{font-size:14px;color:#9fb3a7}.badge{display:inline-block;border:1px solid #28533d;color:#00ce78;padding:7px 10px;border-radius:5px;font-size:12px;letter-spacing:1px}.score-grid{display:grid;grid-template-columns:1fr 190px 1fr;gap:18px}.player{position:relative;min-width:0;border:1px solid #303b35;background:linear-gradient(145deg,#181f1b,#0e1210);border-radius:18px;padding:27px 30px 22px;overflow:hidden}.player:nth-child(2){grid-column:3}.player.active{border-color:#00ce78;box-shadow:inset 0 4px #00ce78}.player-heading{display:flex;align-items:center;justify-content:space-between;min-height:23px;gap:10px}.turn{font-size:12px;letter-spacing:1px;color:#00ce78;display:flex;gap:6px;align-items:center}.player h2{font-size:clamp(24px,2.5vw,34px);font-weight:500;letter-spacing:-1px;margin:23px 0 0;overflow-wrap:anywhere}.points{font-size:clamp(80px,11vw,160px);line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-7px}.active .points{color:#00ce78}.player-bottom{border-top:1px solid #303b35;padding-top:20px;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#a2b6a9;letter-spacing:.5px}.player-bottom b{color:#f5f7f6;margin-left:8px;font-size:16px}.match-spine{grid-column:2;grid-row:1;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center}.frame-score{font-size:44px;letter-spacing:5px;margin-top:14px}.frame-score i{font-style:normal;color:#5b7061;font-size:26px}.match-spine p{color:#a7baac;font-size:12px;letter-spacing:1px}.spine-line{height:1px;width:50px;background:#3d5143;margin:20px}.match-spine strong{font-size:36px;font-weight:500;margin:12px}.below{display:flex;justify-content:space-between;align-items:center;padding:33px 0;gap:20px}.below h3{font-size:22px;margin:10px 0}.below p{color:#a2b6a9;font-size:14px}.primary{background:#00ce78;color:#001c10;border-color:#00ce78}.primary:hover{background:#37e69c}footer{display:flex;justify-content:space-between;border-top:1px solid #26322b;padding:22px 0;color:#8caa97;font-size:12px;letter-spacing:1px}
@media(max-width:760px){.app{padding:0 5%}.topbar{min-height:80px;gap:10px}.brand-note{display:none}.topbar nav button{padding:10px}.event{padding:30px 0}.event h1{letter-spacing:-1px}.event-meta{max-width:130px}.score-grid{grid-template-columns:1fr 1fr;gap:12px}.player:nth-child(2){grid-column:2}.match-spine{grid-column:1/-1;grid-row:2;flex-direction:row;gap:14px;padding:15px 0;flex-wrap:wrap}.match-spine p,.spine-line{display:none}.frame-score{font-size:26px;margin:0}.match-spine strong{font-size:24px;margin:0}.player{padding:22px 15px}.player-heading{flex-wrap:wrap}.turn{font-size:10px}.player h2{font-size:23px}.points{font-size:85px;letter-spacing:-4px}.player-bottom{flex-direction:column}.below{align-items:flex-start;flex-direction:column}.event-meta p{font-size:18px}footer{font-size:10px}.eyebrow{font-size:11px;letter-spacing:1.4px}}
.account-strip,.modebar,.control-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0}.account-strip{font-size:14px;color:#a8beaf;border-bottom:1px solid #24392c}.role{font-size:12px;color:#00ce78;text-transform:uppercase;margin-left:10px}.text-button{padding:4px 8px;border:0;background:transparent;color:#00ce78}.event h1{max-width:780px}.set-score{font-size:26px;color:#00ce78;margin:5px 0 15px}.modebar{padding:0 0 22px}.modebar [data-slot=tabs-list]{height:auto;background:#151c18;padding:5px;border-radius:10px}.modebar [data-slot=tabs-trigger]{font-size:14px;padding:10px 14px;height:auto;gap:8px}.modebar [data-slot=tabs-trigger][data-state=active]{background:#00ce78;color:#001c10}.break-strip{padding:22px 3px;display:flex;justify-content:space-between;gap:20px;font-size:14px;color:#b0c4b5}.break-strip .eyebrow{margin-right:12px}.mini-ball{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:24px;height:24px;margin:2px;color:#fff;font-size:12px;border:1px solid #93a297}.control-panel{border:1px solid #303b35;background:#101713;border-radius:16px;padding:22px 25px}.control-heading{padding:0 0 20px}.balls{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px}.ball-button{flex-direction:column;background:transparent;border-color:transparent;padding:8px;gap:10px;min-width:65px;color:#b5c9bb}.ball{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:20px;font-weight:700;border:1px solid #ffffff44;box-shadow:inset 0 2px 2px #ffffff22,0 5px 12px #0003}.end-break{min-height:58px;margin-left:12px}.actions{display:flex;gap:10px;flex-wrap:wrap}.foul-button{color:#ffa59d;border-color:#70413b;background:#33241f}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:32px 0 45px}.details-grid h3{font-size:18px;margin-bottom:20px}.result-row,.activity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #263c2e;font-size:14px}.activity time{color:#879e8e;font-size:12px;flex-shrink:0}.winner-banner{padding:20px;border:1px solid #00ce78;background:#0a2b1c;color:#67edb2;margin-top:20px;font-size:24px;border-radius:10px}.winner-banner span{display:block;font-size:14px;margin-top:6px}.message{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:#102b1d;border:1px solid #246444;margin:15px 0;border-radius:9px;font-size:14px}.message.error{background:#392923;border-color:#85544d;color:#ffb7a9}.message button{padding:6px 10px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:38px 0}.section-heading h1,.empty h1{font-size:36px;letter-spacing:-1px;margin:12px 0}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px;margin-bottom:35px}.list-card{background:#111614;border:1px solid #303b35;padding:25px;border-radius:14px}.list-card h2{font-size:23px;margin:20px 0 10px}.list-card p{color:#a6bead;font-size:14px;overflow-wrap:anywhere}.list-card .actions{margin-top:20px}.subheading{font-size:23px;margin:25px 0}.history-list{display:flex;flex-direction:column;gap:12px;padding-bottom:25px}.match-row{width:100%;display:grid;grid-template-columns:110px 1fr auto 25px;text-align:left;padding:25px;background:#111614;border-radius:14px;gap:25px}.match-row h2{font-size:23px;margin:9px 0}.match-row p{color:#9bb4a3;margin:0;font-size:14px}.match-row strong{font-size:30px;color:#00ce78}.history-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px;background:#111614;border-radius:10px;font-size:14px}.history-row p{color:#9bb4a3;margin:5px 0}.empty{padding:70px 0 100px;color:#afc5b5}.empty h1,.empty h2{color:#f5f7f6}.empty h2{font-size:28px}.cue-dialog{max-height:90dvh;overflow-y:auto!important;background:#171d1a;border:1px solid #3a4e41;border-radius:18px;padding:30px!important;max-width:620px!important}.cue-dialog [data-slot=dialog-title]{font-size:26px;font-weight:500;letter-spacing:-.5px}.cue-dialog [data-slot=dialog-description]{line-height:1.5}.field{display:flex;flex-direction:column;gap:8px;margin:14px 0;color:#bbd0c1;font-size:14px}.field input{background:#090e0b;border:1px solid #3a4e41;border-radius:8px;padding:12px 14px;color:#f5f7f6;font-size:16px;min-width:0;width:100%;color-scheme:dark}.field [data-slot=select-trigger]{width:100%;height:46px;background:#090e0b;border-color:#3a4e41;font-size:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.wide{width:100%;margin-top:16px}.inline-error{color:#ffb0a3;background:#432c25;padding:12px;border-radius:6px;font-size:14px}.foul-options{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}.foul-options button{flex:1;font-size:28px;min-width:60px;padding:18px;color:#fcb0a4;background:#3b2621;border-color:#84544b}.checkline{display:flex;gap:12px;align-items:center;font-size:14px;line-height:1.4;margin:15px 0}.checkline input{width:20px;height:20px;accent-color:#00ce78}.stack{display:flex;flex-direction:column;gap:12px}.stack .eyebrow{margin-top:15px}
@media(min-width:1500px){.points{font-size:175px}.player{padding-top:35px;padding-bottom:30px}.event{padding-top:55px;padding-bottom:45px}}
@media(max-width:760px){.topbar{flex-wrap:wrap;padding:12px 0}.topbar nav{gap:6px}.topbar nav button span{display:none}.event h1{font-size:29px;max-width:440px}.event{align-items:flex-start}.event-meta{min-width:95px}.modebar{align-items:stretch;flex-direction:column}.modebar [data-slot=tabs-list]{width:100%}.modebar [data-slot=tabs-trigger]{padding:9px;font-size:13px;flex:1}.account-strip{font-size:12px;align-items:flex-start}.account-strip>span:last-child{text-align:right}.break-strip{flex-direction:column;gap:12px}.control-panel{padding:18px 12px}.balls{flex-wrap:wrap;justify-content:center;gap:4px}.ball-button{min-width:60px;flex:1;padding:5px}.ball{width:43px;height:43px}.end-break{width:100%;margin:12px 0 0;min-height:48px}.actions button{flex:1;white-space:nowrap;padding:12px}.details-grid{grid-template-columns:1fr;gap:20px}.control-heading{flex-direction:column;align-items:flex-start;gap:8px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h1{font-size:30px}.match-row{grid-template-columns:1fr auto;gap:12px;padding:20px}.match-row .badge{grid-column:1}.match-row>div{grid-row:2}.match-row>svg{display:none}.match-row h2{font-size:20px}.history-row{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.cue-dialog{padding:24px!important}.winner-banner{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:760px){.player-heading{min-height:40px;align-content:flex-start}.player h2{min-height:56px}}

/* LoveScore brand: original artwork presented within a compact header window. */
.brand{position:relative;display:block;flex:0 0 auto;width:244px;aspect-ratio:715/135;overflow:hidden;background:#000;letter-spacing:normal}
.brand img{position:absolute;display:block;max-width:none;width:115.5245%;height:auto;left:-9.0909%;top:-218.5185%}
.topbar{min-height:106px}.brand-note{font-size:12px;color:#a5b7ab;letter-spacing:2.4px}
.player{border-radius:16px}.player.active{background:linear-gradient(145deg,#11291c,#0d1510);box-shadow:inset 0 4px #00ce78,0 10px 35px #00ce7808}
.points{font-weight:650}.primary{font-weight:650}.badge{background:#00ce7809}.winner-banner{border-left-width:4px}
@media(max-width:760px){.brand{width:190px}.topbar{min-height:88px}.topbar nav{gap:5px}.eyebrow,.turn,footer{font-size:12px}}
@media(max-width:390px){.brand{width:168px}.topbar nav button{padding:9px}}

/* A quiet broadcast surface: name, score and match progress. */
.event h1{margin:0;line-height:1.2}.match-format{color:#a5b7ab;font-size:14px;margin:12px 0 0}.event-meta p{margin:0;font-size:18px;color:#a5b7ab}
.player{text-align:center;padding:32px 24px 20px;background:#101612;box-shadow:none;border-color:#243029}
.player h2{margin:0;font-weight:500}.player .points{line-height:1.35;letter-spacing:-4px}
.player.active{background:#101612;border-color:#243029;box-shadow:inset 0 3px #00ce78}.active .points{color:#fff}
.score-break{display:flex;align-items:center;flex-direction:column;margin-top:26px}.score-break strong{font-size:32px;margin:8px 0 0}.score-break small{color:#a5b7ab;font-size:13px;margin-top:5px;text-align:center;overflow-wrap:anywhere}
.frame-score{font-size:42px;margin-top:10px;white-space:nowrap}.match-spine{min-width:0;padding:12px}
.clean-board .brand-note{display:none}.clean-board .topbar{border-bottom:0}.clean-board .event{padding:28px 0 40px}.clean-board .event h1{font-size:clamp(24px,3vw,40px)}
.clean-board .score-grid{padding-bottom:30px}.clean-board .modebar{opacity:.85}
@media(max-width:760px){.player{padding:25px 12px 12px}.player h2{min-height:0;font-size:22px}.player .points{font-size:clamp(64px,17vw,112px)}.match-spine{gap:16px}.score-break{margin:0;display:flex;flex-direction:row;gap:10px;flex-wrap:wrap;justify-content:center}.score-break strong{font-size:26px;margin:0}.score-break small{flex-basis:100%;margin:0}.frame-score{font-size:28px;margin:0}.clean-board .event{padding:20px 0 28px}.event-meta p{font-size:14px}}

.pot-history{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:22px;margin-top:8px;padding:8px 0 2px}
.history-ball{display:block;flex:0 0 20px;width:20px;height:20px;border-radius:50%;border:1px solid #ffffff55;box-shadow:inset 0 2px 3px #ffffff25,0 2px 4px #0005}
:root:fullscreen .clean-board .modebar,:root:fullscreen .clean-board .topbar nav>button:not([data-action="fullscreen"]){display:none}
:root:fullscreen .clean-board{min-height:100dvh;background:#000}
@media(max-width:760px){.pot-history{gap:6px;min-height:20px}.history-ball{width:16px;height:16px;flex-basis:16px}}

.customer-brand{display:flex;justify-content:center;margin:16px 0 0}.customer-brand img{max-width:min(260px,70vw);max-height:88px;object-fit:contain}.logo-preview{display:flex;align-items:center;justify-content:center;background:#000;border:1px solid #303b35;border-radius:10px;padding:20px;margin:16px 0;min-height:120px}.logo-preview img{max-width:100%;max-height:160px;object-fit:contain}@media(max-width:760px){.customer-brand img{max-height:64px;max-width:200px}}
.customer-details{padding:28px 0 45px}.customer-name{padding:0;border:0;background:transparent;font:inherit;text-align:left;color:inherit}.customer-name:hover{background:transparent;color:#00ce78}.customer-edit{margin:25px 0}.customer-details summary{cursor:pointer;color:#00ce78;padding:12px 0}.customer-details .result-row{flex-wrap:wrap;overflow-wrap:anywhere}

.highest-break{color:#9fb3a7;font-size:13px;margin:0 0 15px}.highest-break strong{color:#00ce78;font-size:18px;margin-left:8px;font-variant-numeric:tabular-nums}.customer-brand img{max-width:min(420px,75vw);max-height:145px}.logo-editor canvas{display:block;width:100%;height:auto;background:repeating-conic-gradient(#17231b 0% 25%,#26372b 0% 50%) 50%/20px 20px;border:1px solid #486252;border-radius:8px}.logo-editor input[type=range]{padding:8px;accent-color:#00ce78}.logo-editor select{padding:10px;background:#090e0b;color:white;border:1px solid #3a4e41;border-radius:8px}.share-qr{display:flex;justify-content:center;margin:20px 0}.share-qr img{max-width:100%;height:auto;border-radius:8px}.match-actions{margin-top:16px}.match-share [aria-pressed=true]{border-color:#00ce78;color:#00ce78}.guest-welcome{max-width:540px;margin:24px auto;padding:24px;border:1px solid #00ce78;border-radius:14px;background:#101a14}.modebar{flex-wrap:wrap}@media(max-width:760px){.customer-brand img{max-width:min(300px,80vw);max-height:110px}.highest-break{font-size:11px}.highest-break strong{font-size:16px}.match-row .match-actions{grid-row:auto;flex-wrap:wrap}.match-actions button{font-size:12px;min-width:100px}}

.scanner-camera{position:relative;aspect-ratio:4/3;background:#030805;border:1px solid #395640;border-radius:14px;overflow:hidden}.scanner-camera video{display:block;width:100%;height:100%;object-fit:cover}.scanner-guide{position:absolute;inset:16%;border:2px solid #00ce78;border-radius:14px;pointer-events:none}.match-scanner>p{font-size:14px;line-height:1.6;color:#b0c8b9}.scan-entry{margin:10px 0 4px;min-height:52px}
/* Match themes only: ball values and colour identities remain unchanged. */
.app[data-theme]{background:var(--table-bg);min-height:100dvh;max-width:none;padding-left:max(4.5%,calc((100vw - 1347px)/2));padding-right:max(4.5%,calc((100vw - 1347px)/2));--primary:var(--table-accent);--primary-foreground:var(--table-button-text);--ring:var(--table-accent)}
.app[data-theme] .player,.app[data-theme] .player.active,.app[data-theme] .control-panel,.app[data-theme] .list-card,.app[data-theme] .match-row,.app[data-theme] .history-row{background:var(--table-panel);border-color:var(--table-border)}
.app[data-theme] .player.active{box-shadow:inset 0 3px var(--table-accent)}
.app[data-theme] .primary{background:var(--table-accent);border-color:var(--table-accent);color:var(--table-button-text)}
.app[data-theme] .primary:hover{filter:brightness(1.1)}
.app[data-theme] .highest-break strong,.app[data-theme] .set-score,.app[data-theme] .role,.app[data-theme] .text-button,.app[data-theme] .match-row strong,.app[data-theme] .title-dot{color:var(--table-accent)}
.app[data-theme] .muted,.app[data-theme] .eyebrow,.app[data-theme] .match-format,.app[data-theme] .event-meta p,.app[data-theme] .highest-break,.app[data-theme] .break-strip{color:var(--table-muted)}
.app[data-theme] .topbar,.app[data-theme] .account-strip,.app[data-theme] footer,.app[data-theme] .result-row,.app[data-theme] .activity{border-color:var(--table-border)}
.app[data-theme] .modebar [data-slot=tabs-trigger][data-state=active]{background:var(--table-accent);color:var(--table-button-text)}
.app[data-theme] .winner-banner{border-color:var(--table-accent);background:var(--table-panel);color:var(--table-accent)}
:root:fullscreen .app[data-theme].clean-board{background:var(--table-bg)}
.theme-picker{border:0;padding:0;margin:20px 0}.theme-picker legend{font-size:15px;color:#bbd0c1;margin-bottom:12px}.theme-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.theme-options button{justify-content:flex-start;font-size:12px;padding:12px;color:#fff}.theme-options button[aria-pressed=true]{outline:1px solid #fff;outline-offset:2px}.theme-swatch{width:14px;height:14px;border-radius:50%;flex-shrink:0}.theme-preview{padding:20px;border:1px solid;border-radius:10px;margin-top:16px;text-align:center}.theme-preview>span{font-size:13px;font-weight:bold}.theme-preview>p{font-size:12px;color:#bdc5bf;margin:8px 0 18px}.theme-preview>div{display:flex;justify-content:space-around;align-items:center;gap:14px}.theme-preview>div>span{font-size:12px;color:#eee}.theme-preview b{display:block;font-size:40px;font-weight:500}.theme-preview small{font-size:18px}.theme-ball-preview{margin-top:20px}.theme-ball-preview i{width:18px;height:18px;border-radius:50%;border:1px solid #ffffff55}

.install-instructions{display:grid;gap:8px}.install-instructions h3{font-size:16px;margin:15px 0 0;color:#e4eee7}.install-instructions p{font-size:14px;line-height:1.7;color:#abc0b2;margin:0}.install-app-button{white-space:nowrap}.cue-dialog form>.install-app-button{width:100%;margin-top:16px}
/* Tablet referee focus mode keeps scoring controls together in the viewport. */
.app.referee-focus{height:100dvh;min-height:0;padding:10px 18px;display:flex;flex-direction:column;gap:8px;overflow:auto}
.referee-focus .topbar{min-height:32px;border:0;justify-content:flex-end}.referee-focus .topbar>.brand,.referee-focus .brand-note,.referee-focus .topbar nav>button:not([data-action="fullscreen"]){display:none}.referee-focus .topbar nav{margin-left:auto}.referee-focus .topbar button{padding:6px 12px;font-size:12px}
.referee-focus .account-strip,.referee-focus .modebar,.referee-focus .break-strip,.referee-focus .details-grid,.referee-focus footer{display:none}
.referee-focus .customer-brand{position:absolute;top:10px;left:18px;margin:0;max-width:35%}.referee-focus .customer-brand img{max-height:30px;max-width:100%}
.referee-focus .event{padding:0;gap:15px;align-items:center}.referee-focus .event h1{font-size:clamp(17px,2.5vw,27px);letter-spacing:-.5px;line-height:1.15}.referee-focus .match-format{font-size:11px;margin:3px 0 0}.referee-focus .event-meta p{font-size:13px}.referee-focus .event-meta small{font-size:10px}
.referee-focus .score-grid{flex:1;min-height:120px;grid-template-columns:1fr 115px 1fr;gap:10px;padding:0}.referee-focus .player{padding:10px;display:flex;flex-direction:column;justify-content:center}.referee-focus .player:nth-child(2){grid-column:3}.referee-focus .player h2{font-size:clamp(17px,2.8vw,26px);margin:0;line-height:1.2;min-height:0}.referee-focus .player .points{font-size:clamp(44px,10dvh,100px);line-height:1.12;letter-spacing:-2px}.referee-focus .highest-break{font-size:11px;margin:4px 0}.referee-focus .highest-break strong{font-size:15px}.referee-focus .pot-history{max-height:42px;overflow:auto;min-height:0;margin:0;padding:3px;gap:4px}.referee-focus .history-ball{width:12px;height:12px;flex-basis:12px}
.referee-focus .match-spine{grid-column:2;grid-row:1;flex-direction:column;gap:5px;padding:5px;flex-wrap:nowrap}.referee-focus .match-spine .eyebrow{font-size:10px;letter-spacing:1px}.referee-focus .frame-score{font-size:26px;margin:0;letter-spacing:2px}.referee-focus .set-score{font-size:20px;margin:0}.referee-focus .score-break{display:flex;flex-direction:column;gap:3px;margin:5px 0 0}.referee-focus .score-break strong{font-size:24px;margin:0}.referee-focus .score-break small{font-size:10px;margin:0}
.referee-focus .control-panel{padding:10px 12px;flex-shrink:0}.referee-focus .control-heading{padding:0 0 8px;flex-direction:row;align-items:center;font-size:11px}.referee-focus .control-heading .muted,.referee-focus .control-heading .eyebrow{font-size:11px}.referee-focus .balls{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) 1.5fr;gap:4px;margin:0 0 10px}.referee-focus .ball-button{min-width:0;padding:4px;gap:4px;font-size:11px}.referee-focus .ball{width:clamp(32px,5vw,48px);height:clamp(32px,5vw,48px);font-size:17px}.referee-focus .end-break{width:auto;min-height:44px;margin:0;padding:8px;font-size:12px}.referee-focus .end-break svg{display:none}.referee-focus .actions{gap:6px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.referee-focus .actions button{padding:10px 6px;min-height:44px;white-space:normal;font-size:12px;gap:5px}.referee-focus .actions svg{width:14px}.referee-focus .winner-banner{font-size:16px;margin:0;padding:8px}.referee-focus .winner-banner span{font-size:11px}.referee-focus .message{margin:0;padding:6px 10px;font-size:12px;flex-shrink:0}
@media(max-width:650px){.app.referee-focus{padding:8px;gap:6px}.referee-focus .score-grid{grid-template-columns:1fr 82px 1fr;gap:6px}.referee-focus .player{padding:7px}.referee-focus .event h1{font-size:17px}.referee-focus .balls{grid-template-columns:repeat(7,minmax(0,1fr))}.referee-focus .end-break{grid-column:1/-1;min-height:40px}.referee-focus .actions{grid-template-columns:repeat(3,minmax(0,1fr))}.referee-focus .control-panel{padding:8px}.referee-focus .ball-button{font-size:9px}.referee-focus .control-heading{gap:5px}.referee-focus .control-heading .eyebrow{font-size:9px}.referee-focus .customer-brand{left:8px}.referee-focus .frame-score{font-size:23px}}
@media(max-height:600px) and (min-width:651px){.app.referee-focus{gap:4px;padding-top:6px;padding-bottom:6px}.referee-focus .topbar{min-height:26px}.referee-focus .event h1{font-size:17px}.referee-focus .player .points{font-size:46px}.referee-focus .score-grid{min-height:100px}.referee-focus .control-panel{padding:7px}.referee-focus .ball{width:34px;height:34px}.referee-focus .control-heading{padding-bottom:3px}.referee-focus .balls{margin-bottom:5px}.referee-focus .actions button{min-height:38px;padding:6px}}

/* Quiet, original flowing ribbons shared by every match view and theme. */
.app[data-theme],:root:fullscreen .app[data-theme].clean-board{
 background-color:var(--table-bg);
 background-image:var(--table-waves);
 background-size:cover;
 background-position:center;
 background-repeat:no-repeat;
}

/* The supplied wordmark stays exact; screen blending removes its black matte
   against every dark theme, including the waves beneath it. */
.brand{background:transparent;mix-blend-mode:screen}
.app-support{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;letter-spacing:normal;text-transform:none}
.app-support a{color:var(--table-muted);text-decoration:none}
.app-support a:hover{text-decoration:underline}

/* Give tablet referees a readable score without enlarging the controls. */
.app.referee-focus{position:relative}
.referee-focus .topbar{min-height:52px;flex-shrink:0}
.referee-focus .topbar>.brand{display:block;width:220px}
.referee-focus:has(.customer-brand) .topbar{min-height:88px}
.referee-focus:has(.customer-brand) .topbar>.brand{display:none}
.referee-focus .customer-brand{max-width:calc(100% - 160px);height:80px;align-items:center;justify-content:flex-start}
.referee-focus .customer-brand img{max-height:80px;max-width:min(300px,100%)}
.referee-focus .player .points{font-size:clamp(64px,min(18dvh,20vw),180px);line-height:1.05}
@media(max-height:600px){
 .referee-focus .topbar{min-height:36px}
 .referee-focus .topbar>.brand{width:190px}
 .referee-focus:has(.customer-brand) .topbar{min-height:52px}
 .referee-focus .customer-brand{height:46px}
 .referee-focus .customer-brand img{max-height:46px}
 .referee-focus .player .points{font-size:clamp(52px,min(15dvh,20vw),90px)}
}

.ball-guide{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;color:var(--table-muted)}.ball-guide strong{color:#fff}.ball-guide small{margin-left:10px}.ball-guide button{font-size:11px;padding:5px 9px}
.referee-focus .player .points{font-size:clamp(64px,min(21dvh,21vw),210px)}
.referee-focus .player h2{font-size:clamp(22px,3.6vw,36px)}
.referee-focus .topbar>.brand{width:260px}.referee-focus:has(.customer-brand) .topbar{min-height:100px}.referee-focus .customer-brand{height:94px}.referee-focus .customer-brand img{max-height:94px;max-width:min(360px,100%)}
@media(max-width:650px){.ball-guide{font-size:11px}.ball-guide small{display:block;margin:2px 0}.referee-focus .topbar>.brand{width:210px}}
@media(max-height:600px){.referee-focus .player .points{font-size:clamp(52px,min(16dvh,20vw),96px)}.referee-focus .player h2{font-size:24px}.referee-focus:has(.customer-brand) .topbar{min-height:52px}.referee-focus .customer-brand{height:46px}.referee-focus .customer-brand img{max-height:46px}.referee-focus .topbar>.brand{width:200px}}

.app:not(.referee-focus)>.topbar{padding-top:18px;padding-bottom:10px;min-height:120px}
.referee-focus .topbar{padding-top:8px}.referee-focus .topbar>.brand{width:290px}.referee-focus:has(.customer-brand) .topbar{min-height:112px}.referee-focus .customer-brand{top:18px;height:98px}.referee-focus .customer-brand img{max-height:98px;max-width:min(400px,100%)}
.freeplay-form{max-width:520px;margin:25px auto;text-align:left}.freeplay-form select{background:#142019;color:#fff;border:1px solid #45604e;border-radius:8px;padding:12px}.freeplay-lobby .topbar{justify-content:space-between}
.winner-celebration{display:flex;gap:18px;justify-content:center;align-items:center;animation:winner-arrive .6s ease-out}.winner-celebration .celebration-spark{font-size:42px;color:var(--table-accent);animation:winner-spark 1.2s ease-in-out 2}.winner-celebration>div>span{display:block}.winner-celebration button{flex-shrink:0}
@keyframes winner-arrive{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}@keyframes winner-spark{50%{transform:rotate(90deg) scale(1.25)}}
@media(prefers-reduced-motion:reduce){.winner-celebration,.winner-celebration .celebration-spark{animation:none}}
@media(max-width:650px){.referee-focus .topbar>.brand{width:220px}.winner-celebration{flex-wrap:wrap}}
@media(max-height:600px){.referee-focus:has(.customer-brand) .topbar{min-height:62px}.referee-focus .customer-brand{height:48px}.referee-focus .customer-brand img{max-height:48px}.referee-focus .topbar>.brand{width:210px}}

[data-slot="select-content"]{background:#132019;color:#f5f7f6;border-color:#45604e;z-index:100}
.referee-focus .actions:has(button:nth-child(7)){grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:650px){.referee-focus .actions:has(button:nth-child(7)){grid-template-columns:repeat(3,minmax(0,1fr))}}

.referee-focus .customer-brand img{width:360px;height:98px;object-fit:contain;object-position:left center}
.app[data-theme] .player[data-pool-group="yellow"]{background:#EBD005;border-color:#EBD005;color:#171600;box-shadow:none}
.app[data-theme] .player[data-pool-group="red"]{background:#A81F27;border-color:#A81F27;color:#fff;box-shadow:none}
.app[data-theme] .player[data-pool-group="yellow"] .points{color:#171600}.app[data-theme] .player[data-pool-group="red"] .points{color:#fff}
.pool-player-detail{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:15px}.pool-player-detail strong{border:1px solid currentColor;border-radius:20px;padding:5px 10px;font-size:12px}
.pool-allocation{margin-bottom:14px}.pool-allocation>div{display:flex;gap:20px;margin:10px 0;flex-wrap:wrap}.pool-allocation>div>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pool-allocation strong{font-size:13px}.pool-allocation .pool-yellow{background:#EBD005;color:#171600;border-color:#EBD005}.pool-allocation .pool-red{background:#A81F27;color:#fff;border-color:#A81F27}.pool-allocation [aria-pressed=true]{outline:2px solid white;outline-offset:2px}
@media(max-height:600px){.referee-focus .customer-brand img{height:48px}}

.player-name-step{width:min(600px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;background:#102019;color:#f3faf6;border:1px solid #3b6550;border-radius:18px;padding:24px}.player-name-step::backdrop{background:#000b;backdrop-filter:blur(3px)}.player-name-step input{width:100%;box-sizing:border-box;font-size:22px;min-height:56px;margin:12px 0}.player-name-step .actions{display:flex;gap:12px;flex-wrap:wrap}.player-name-step .actions button{flex:1;min-height:54px}.player-name-step .player-suggestions{max-height:240px;overflow:auto}.code-row{padding:16px 0;border-top:1px solid #375442}.device-code{display:block;font-size:26px;letter-spacing:.08em;margin:12px 0}.code-row img{display:block;margin:12px 0}.code-row a{display:block;margin:12px 0}

.player-name-step input{background:#08150e;color:#f4faf6;border:1px solid #4a765d;border-radius:10px;padding:12px}

/* Guided match setup */
.guided-match-form .setup-box{padding:20px;border:1px solid #365744;border-radius:16px;background:#102019}.guided-match-form .setup-box[hidden]{display:none!important}.setup-step-heading h2{font-size:1.6rem}.setup-step-nav{margin-top:20px}.setup-step-nav button{min-height:52px;flex:1}.setup-box select,.setup-box input{font-size:1.1rem;min-height:48px}.setup-box details{margin:18px 0}.setup-box summary,.overlay-settings>summary{cursor:pointer;padding:14px 0}.opening-break-box{max-width:680px;margin:5vh auto;padding:28px;border:1px solid #365744;border-radius:18px;background:#102019;text-align:center}.opening-break-box button{min-height:90px;font-size:1.6rem}.setup-review-summary{line-height:1.6}
