html[data-game=golf]{--masters-ink:#203b32;--masters-muted:#617269;--masters-line:#d7dfd5;--masters-green:#27644f;background:#f3f3eb!important;color:var(--masters-ink)!important}
html[data-game=golf] body{background:radial-gradient(ellipse at 10% 0,#e6ecdf,transparent 60%),#f3f3eb!important}
html[data-game=golf] #menu{max-width:1040px;padding:28px 28px 48px}
html[data-game=golf] button{border-radius:10px!important;transition:background .15s,box-shadow .15s}
html[data-game=golf] button:focus-visible,html[data-game=golf] input:focus-visible,html[data-game=golf] select:focus-visible{outline:3px solid #a07c33;outline-offset:3px}
html[data-game=golf][data-world-game=golf] :is(#menu,#dialog,#arena) .primary{background:#27644f!important;color:#fff9e8!important;border:1px solid #27644f!important}
html[data-game=golf] .eyebrow{color:#64745b!important;letter-spacing:2px;font-size:10px}
html[data-game=golf] h1,html[data-game=golf] h2,html[data-game=golf] h3{color:#203b32!important}
html[data-game=golf] p,html[data-game=golf] small{color:#617269!important}
html[data-game=golf][data-world-game=golf] #menu .hero{display:grid!important;grid-template-columns:1fr 38%;grid-template-rows:1fr;min-height:360px;border-radius:20px;background:#dce5d6!important;border:1px solid #cbd7c8;padding:0!important}
html[data-game=golf][data-world-game=golf] #menu .hero::after{display:none}
html[data-game=golf][data-world-game=golf] #menu .hero #liveCover108{grid-column:2;grid-row:1;width:100%;height:360px!important;max-height:none;object-fit:cover;object-position:center;border-radius:0;margin:0}
html[data-game=golf][data-world-game=golf] #menu .hero .hero-text{grid-column:1;grid-row:1;align-self:center;padding:38px;position:relative}
html[data-game=golf][data-world-game=golf] #menu .hero h1{font:500 clamp(32px,4.5vw,53px)/1.04 Georgia,serif;letter-spacing:-1.5px;max-width:350px}
html[data-game=golf][data-world-game=golf] #menu .hero p{max-width:290px;font-size:15px}
html[data-game=golf] .wallet{margin:20px 0 8px;border-bottom:1px solid var(--masters-line)}
html[data-game=golf] #play{min-height:54px;font-size:17px}
html[data-game=golf][data-world-game=golf] #menu .golf-expansion{padding:25px!important;margin-top:18px;border:1px solid var(--masters-line)!important;background:#fffef9!important;border-radius:18px!important;box-shadow:0 12px 30px #1d403007}
html[data-game=golf] .masters-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
html[data-game=golf] .masters-heading h2{font:500 32px/1.12 Georgia,serif;margin:10px 0}
html[data-game=golf] .masters-seal{flex:0 0 76px;width:76px;height:76px;border:1px solid #c9b786;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8b7138;font:25px Georgia,serif}
html[data-game=golf] .masters-seal small{font:7px system-ui;letter-spacing:1px;color:#8b7138!important}
.masters-regions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
html[data-game=golf] .masters-regions button{padding:0!important;overflow:hidden;text-align:left;background:#f6f7f0!important;border:1px solid #d5ddcf!important}
.masters-regions canvas{aspect-ratio:4/3;width:100%;height:auto;border-radius:0;max-height:none}
.masters-regions span{display:block;padding:12px}.masters-regions b{font:500 17px Georgia,serif}.masters-regions small{display:block;font-size:10px;margin-top:7px}
html[data-game=golf] .golf-menu-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px}
html[data-game=golf][data-world-game=golf] #menu .golf-menu-actions button{background:#f5f6ef!important;color:#284d3f!important;border:1px solid var(--masters-line)!important;min-height:50px}
.masters-toolbar{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}.masters-toolbar button{font-size:12px}
.masters-progress,.masters-player{display:flex;align-items:center;gap:16px;padding:20px 0 0}.masters-progress{border-top:1px solid var(--masters-line);margin-top:22px}.masters-progress p{margin:6px 0;font-size:12px}
html[data-game=golf] .masters-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 56px;width:56px;height:56px;background:#e3eadc;color:#46684e;border:1px solid #bccbb5;border-radius:50%;font-size:32px}
.masters-player{padding:0 0 22px}.masters-player h3{margin:6px 0;font:26px Georgia,serif}.masters-player p{margin:0}
html[data-game=golf] dialog{width:min(94vw,860px)!important;max-height:90dvh;background:#fffef9!important;color:#203b32!important;border-color:#d5ddcf;padding:26px;scrollbar-gutter:stable}
html[data-game=golf] dialog::backdrop{background:#132c25a6;backdrop-filter:blur(7px)}
html[data-game=golf] .golf-equipment{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
html[data-game=golf] .golf-equipment article{background:#f8f8f1!important;border:1px solid #d5ddcf!important;border-radius:14px;padding:16px;display:flex;flex-direction:column}
html[data-game=golf] .golf-equipment article p{flex:1;font-size:12px;line-height:1.5}
html[data-game=golf] .golf-equipment article canvas{width:100%;height:auto;aspect-ratio:auto;border-radius:10px;max-height:none}
html[data-game=golf] .golf-equipment h3{font:500 20px Georgia,serif}
html[data-game=golf] .golf-equipment .selected{color:#1e5945!important;background:#e1efdf!important;border-color:#35795b!important}
html[data-game=golf] .golf-filters{gap:8px;margin-bottom:16px}
html[data-game=golf] .golf-filters button{font-size:11px;min-height:44px}
html[data-game=golf] .golf-maps{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html[data-game=golf] .golf-maps button{text-align:left;background:#f7f8f0!important;padding:12px}
html[data-game=golf] .golf-maps canvas{width:100%;height:210px;object-fit:cover;object-position:center;border-radius:10px;max-height:none}
.masters-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.masters-stat-grid>div{padding:18px 10px;border:1px solid var(--masters-line);border-radius:12px}.masters-stat-grid b{font:32px Georgia,serif;display:block}.masters-stat-grid small{display:block;font-size:11px;line-height:1.5;margin-top:8px}
.masters-medals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.masters-medals article{padding:16px 10px;background:#f2f4ec;border-radius:12px;text-align:center}.masters-medals span{font-size:30px;display:block;color:#7f9082}.masters-medals b,.masters-medals small{display:block;margin:8px 0}.masters-medals .earned{background:#f3e9cb}.masters-medals .earned span{color:#99772b}
html[data-game=golf] progress{width:100%;height:7px;accent-color:#467a58;border:0;border-radius:4px}
#golferForm196,.masters-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.masters-options label,#golferForm196 label{display:grid;gap:8px;font-size:12px}
html[data-game=golf] input,html[data-game=golf] select{font:inherit;min-height:44px;min-width:0;width:100%;padding:10px;color:#294638;background:#fffef8;border:1px solid #c6d2c0;border-radius:8px}
.masters-missions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.masters-missions article{padding:14px;border:1px solid var(--masters-line);border-radius:12px}.masters-missions b,.masters-missions small{display:block;font-size:12px;margin-bottom:8px}
.golf-scorecard small{display:block;font-size:10px;margin-top:5px}.masters-empty{border:1px dashed #c4d0bf;padding:22px;border-radius:12px}
html[data-game=golf] #arena{max-width:1100px;padding:14px 22px;background:#f3f3eb!important}
html[data-game=golf] #hud{font-size:14px;color:#294638!important}html[data-game=golf] #hint{color:#49694f!important;white-space:normal}
html[data-game=golf] #controls .row>button{background:#fffef8!important;color:#284d3f!important;border:1px solid #cad8c7!important;min-height:44px}
html[data-game=golf] #controls .row>button.primary{background:#27644f!important;color:#fffef8!important}
html[data-game=golf] #golfPower196{display:flex;align-items:center;gap:12px;font-size:10px;color:#536e58;padding:0 5px;height:20px}#golfPower196 progress{flex:1}
@media(min-width:900px) and (min-height:650px){html[data-game=golf] #arena{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-rows:70px minmax(0,1fr) 45px;gap:12px 24px}html[data-game=golf] #field{grid-column:1;grid-row:1/4}html[data-game=golf] #arena .game-header{grid-column:2;grid-row:1;flex-wrap:wrap;height:auto}html[data-game=golf] #arena #controls{grid-column:2;grid-row:2;align-content:center}html[data-game=golf] #arena #hint{grid-column:2;grid-row:3;font-size:12px}html[data-game=golf] #controls .row>button{flex-basis:100px}}
@media(max-width:620px){html[data-game=golf] #menu{padding:18px 14px 35px}html[data-game=golf][data-world-game=golf] #menu .hero{min-height:280px;grid-template-columns:58% 42%}html[data-game=golf][data-world-game=golf] #menu .hero #liveCover108{height:280px!important}html[data-game=golf][data-world-game=golf] #menu .hero .hero-text{padding:20px 16px}html[data-game=golf][data-world-game=golf] #menu .hero h1{font-size:34px}html[data-game=golf][data-world-game=golf] #menu .hero p{font-size:12px}html[data-game=golf][data-world-game=golf] #menu .golf-expansion{padding:16px!important}html[data-game=golf] .masters-heading h2{font-size:26px}.masters-regions{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-game=golf] .golf-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-game=golf] .golf-equipment{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-game=golf] .golf-equipment article{padding:11px}html[data-game=golf] .golf-maps{grid-template-columns:repeat(2,minmax(0,1fr))}.masters-stat-grid,.masters-medals{grid-template-columns:repeat(2,1fr)}.masters-missions{grid-template-columns:1fr}html[data-game=golf] dialog{padding:18px}html[data-game=golf] #arena{padding:8px 10px}#golferForm196,.masters-options{gap:12px}html[data-game=golf] #hud{font-size:12px}}
@media(max-width:350px){html[data-game=golf][data-world-game=golf] #menu .hero h1{font-size:29px}.masters-seal{display:none!important}html[data-game=golf] .golf-equipment{grid-template-columns:1fr}.masters-options,#golferForm196{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html[data-game=golf] button{transition:none}}

/* Scope the clubhouse palette above the shared portal skin. */
html[data-game=golf][data-world-game=golf] :is(#menu,#dialog,#arena) :is(h1,h2,h3,b){color:#203b32!important}
html[data-game=golf][data-world-game=golf] :is(#menu,#dialog,#arena) :is(p,small){color:#617269!important}
html[data-game=golf][data-world-game=golf] #menu .hero .hero-text{background:transparent!important}
html[data-game=golf][data-world-game=golf] #menu .hero #liveCover108{position:relative!important;inset:auto!important;align-self:stretch;min-height:100%;border:0!important}
html[data-game=golf][data-world-game=golf] #menu .masters-regions button{background:#f6f7f0!important}
html[data-game=golf][data-world-game=golf] #dialog :is(.golf-equipment article,.masters-medals article){background:#f8f8f1!important}
html[data-game=golf][data-world-game=golf] #dialog .golf-equipment .selected{background:#e1efdf!important}
html[data-game=golf][data-world-game=golf] #dialog .masters-medals .earned{background:#f3e9cb!important}

@media(min-width:900px) and (min-height:650px){html[data-game=golf][data-world-game=golf] #controls .row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-game=golf][data-world-game=golf] #controls .row>button{width:100%;min-width:0;word-break:normal;overflow-wrap:normal}html[data-game=golf][data-world-game=golf] #golfButtons{display:grid;grid-template-columns:repeat(4,1fr)}html[data-game=golf][data-world-game=golf] #golfPutt{grid-column:1/-1}}
html[data-game=golf][data-ui-theme=dark]{--masters-line:#415b50;--masters-ink:#edf1e5;--masters-muted:#becbbe}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] body{background:#172c25!important}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] :is(#menu,#dialog,#arena){background:#172c25!important;color:#e5eddf!important}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] :is(#menu,#dialog,#arena) :is(h1,h2,h3,b){color:#e5eddf!important}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] :is(#menu,#dialog,#arena) :is(p,small){color:#bdccbd!important}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] :is(#menu,#dialog) :is(.hero,.golf-expansion,.masters-regions button,.golf-equipment article,.masters-medals article,.golf-menu-actions button,.golf-maps button){background:#243d32!important;color:#e5eddf!important;border-color:#486454!important}
html[data-game=golf][data-world-game=golf][data-ui-theme=dark] #dialog :is(input,select){background:#243d32;color:#e5eddf;border-color:#5b7562}
