.ad-root{--gold:#d5b873;--ink:#0d0e10;--panel:#1b1d21;--line:#383b40;--white:#f9f8f3;color:var(--white);background:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.45;min-height:80vh;padding:22px 14px 32px;box-sizing:border-box;border-radius:16px}.ad-root *{box-sizing:border-box}.ad-shell{max-width:560px;margin:auto}.ad-header{text-align:center;padding:4px 0 18px}.ad-eyebrow{color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.17em}.ad-brand{font-family:Georgia,serif;font-size:29px;font-weight:700;letter-spacing:.06em;margin:5px 0}.ad-rule{width:160px;height:1px;background:var(--gold);margin:8px auto}.ad-sub{color:var(--gold);font-size:14px;font-weight:750;letter-spacing:.24em}.ad-title{font-size:21px;font-weight:750;margin:10px 0 14px}.ad-field{margin-bottom:16px}.ad-label{display:block;color:#e9e8e2;font-size:15px;font-weight:650;margin-bottom:7px}.ad-input,.ad-select{width:100%;border:1px solid #64666b;background:#23252a;color:#fff;border-radius:11px;min-height:48px;font-size:18px;padding:10px 13px;outline-offset:3px}.ad-segments{display:flex;gap:9px}.ad-segments button{flex:1;min-width:0}.ad-btn{min-height:49px;border-radius:10px;border:1px solid #666;background:#282b30;color:#fff;padding:10px 15px;font-size:16px;font-weight:750;cursor:pointer;touch-action:manipulation}.ad-btn:focus-visible,.ad-input:focus-visible,.ad-select:focus-visible{outline:3px solid var(--gold)}.ad-btn.active,.ad-btn.primary{background:var(--gold);border-color:var(--gold);color:#16130b}.ad-btn.primary{width:100%;margin-top:6px}.ad-btn.quiet{background:transparent;color:#e4e0d5}.ad-btn:disabled{opacity:.45;cursor:not-allowed}.ad-help{color:#bfc0c3;font-size:13px;margin:10px 0}.ad-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 12px;color:#e8e3d8;font-size:13px}.ad-scores{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ad-scorecard{background:var(--panel);border:2px solid var(--line);border-radius:13px;text-align:center;padding:13px 8px}.ad-scorecard.throwing{border-color:var(--gold);background:#2b271f}.ad-person{font-size:17px;font-weight:750;overflow-wrap:anywhere}.ad-score{font-variant-numeric:tabular-nums;font-size:clamp(48px,15vw,74px);line-height:1.15;font-weight:850;letter-spacing:-.035em}.ad-legs{font-size:13px;color:#e0dbce}.ad-turn{font-size:12px;color:var(--gold);font-weight:750;min-height:19px;margin-top:4px}.ad-assist{margin:13px 0;background:#27231b;border:1px solid #907744;border-radius:12px;padding:11px 13px}.ad-assist-label{font-size:12px;letter-spacing:.06em;color:#e2c888;font-weight:800}.ad-route{font-size:24px;font-weight:850;margin-top:3px;overflow-wrap:anywhere}.ad-assist-note{font-size:13px;color:#eee5d0;margin-top:3px}.ad-entry{margin:15px 0 11px;text-align:center}.ad-entry-title{font-size:15px;margin:0 0 7px}.ad-display{min-height:61px;display:flex;align-items:center;justify-content:center;background:#212328;border:1px solid #565960;border-radius:12px;font-size:35px;font-weight:800;font-variant-numeric:tabular-nums}.ad-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.ad-key{min-height:51px;font-size:20px;background:#292b30}.ad-actions{display:flex;gap:8px;margin-top:12px}.ad-actions .ad-btn{flex:1}.ad-message{min-height:25px;color:#f0cf83;font-size:14px;margin:10px 0 0}.ad-dialog{background:#23252a;border:1px solid #997e4a;padding:14px;border-radius:12px;margin-top:12px}.ad-dialog h3{font-size:17px;margin:0 0 10px;color:#f4e2ba}.ad-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ad-complete{text-align:center;background:#25221a;border:1px solid var(--gold);border-radius:14px;padding:20px 12px;margin:15px 0}.ad-complete h2{color:#f6dc9c;font-size:26px;margin:4px 0}.ad-muted{color:#c8c6c0;font-size:13px}.ad-foot{margin-top:17px;font-size:12px;text-align:center;color:#a8a8ac}.ad-link{background:none;border:0;color:#f5d690;text-decoration:underline;font-size:14px;cursor:pointer;padding:9px}.ad-hidden{display:none!important}@media(min-width:600px){.ad-root{padding:30px}.ad-key{min-height:57px}}

/* v0.1.1: minimal premium full-screen application shell */
html:has(body.ad-app-page){background:#0d0e10;color:#f9f8f3}
body.ad-app-page{margin:0!important;background:#0d0e10!important;color:#f9f8f3!important;min-width:280px}
body.ad-app-page .ad-app-main{width:100%;min-height:100vh;min-height:100dvh;margin:0;padding:0}
body.ad-app-page .ad-root{width:100%;min-height:100vh;min-height:100dvh;border-radius:0;padding:env(safe-area-inset-top,0px) 16px calc(18px + env(safe-area-inset-bottom,0px));background:#0d0e10}
body.ad-app-page .ad-shell{max-width:540px;padding-top:12px;margin:0 auto}
.ad-header{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 0 14px;gap:2px}
.ad-official-logo{width:82px!important;height:82px!important;max-width:none!important;object-fit:contain;display:block;margin:0 auto 1px;filter:none}
.ad-header .ad-sub{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:13px;font-weight:800;letter-spacing:.25em;color:#d5b873}
.ad-root .ad-score{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.ad-root .ad-btn{transition:background-color .12s ease,border-color .12s ease}
.ad-root .ad-btn:focus-visible{outline:3px solid #f3d990;outline-offset:3px}
.ad-root .ad-key{min-height:54px}
.ad-root .ad-title{margin:5px 0 15px}
.ad-root .ad-assist{margin:12px 0}
@media(min-width:620px){body.ad-app-page .ad-root{padding:20px 24px 38px}body.ad-app-page .ad-shell{padding-top:14px}.ad-official-logo{width:100px!important;height:100px!important}}
@media(prefers-reduced-motion:reduce){.ad-root *{transition:none!important}}


/* v0.1.3 - Albert Club premium lacquer / champagne gold visual refresh.
   Scoped to the shortcode application; game mechanics unchanged. */
.ad-root{
  --gold:#D0B166;--ink:#000;--panel:#111317;--line:#44464b;--white:#F7F4EC;
  --ad-gold-top:#E3CC87;--ad-gold-mid:#D2B367;--ad-gold-bottom:#BE9A48;
  background:#000;color:#F7F4EC;
}
html:has(body.ad-app-page),body.ad-app-page,
body.ad-app-page .ad-app-main,body.ad-app-page .ad-root{background:#000!important;color:#F7F4EC!important}
body.ad-app-page .ad-shell{background:#000;box-shadow:none;border:0}
.ad-root .ad-header{background:#000}
.ad-root .ad-official-logo{background:transparent;box-shadow:none;filter:none}
.ad-root .ad-input,.ad-root .ad-select{
  background:linear-gradient(180deg,#27292d 0%,#1b1d21 100%);
  border:1px solid #55585d;color:#F7F4EC;border-radius:13px;min-height:53px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -1px 0 rgba(0,0,0,.4);
}
.ad-root .ad-btn{
  background:linear-gradient(180deg,#2b2d32 0%,#202226 100%);
  color:#F7F4EC;border:1px solid #51545a;border-radius:13px;min-height:53px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.085),0 2px 5px rgba(0,0,0,.24);
  transition:filter .14s ease, box-shadow .14s ease;
}
.ad-root .ad-btn.active{
  background:linear-gradient(180deg,#E0C983 0%,#D0B166 47%,#C19E4C 100%);
  color:#111;border-color:#E3CE8D;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(130,90,18,.22),0 5px 13px rgba(0,0,0,.24);
}
.ad-root .ad-btn.primary{
  background:linear-gradient(180deg,#E3CC87 0%,#D2B367 52%,#BE9A48 100%);
  color:#111;border-color:#EDD89D;min-height:58px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.33),inset 0 -1px 0 rgba(128,92,24,.24),0 8px 20px rgba(0,0,0,.28);
}
.ad-root .ad-btn.quiet{background:linear-gradient(180deg,#26272a,#191a1d);color:#F7F4EC}
.ad-root .ad-key{min-height:54px}
.ad-root .ad-display,.ad-root .ad-scorecard,.ad-root .ad-dialog{
  background:linear-gradient(180deg,#232428,#141517);
  border-color:#45474c;box-shadow:inset 0 1px 0 rgba(255,255,255,.075)
}
.ad-root .ad-scorecard.throwing{background:linear-gradient(180deg,#2d271a,#181610);border-color:#D0B166}
.ad-root .ad-assist,.ad-root .ad-complete{
  background:linear-gradient(180deg,#282216,#15120c);border-color:#A68A4B;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065)
}
.ad-root .ad-label{color:#F7F4EC}
.ad-root .ad-help,.ad-root .ad-muted,.ad-root .ad-foot{color:#BDB8AF}
.ad-root .ad-btn:focus-visible,.ad-root .ad-input:focus-visible,.ad-root .ad-select:focus-visible{
  outline:3px solid #E8D395;outline-offset:2px
}
@media(hover:hover){.ad-root .ad-btn:not(:disabled):hover{filter:brightness(1.06)}}
.ad-root .ad-btn:not(:disabled):active{filter:brightness(.94)}
@media(max-width:600px){body.ad-app-page .ad-root{padding-left:16px;padding-right:16px}.ad-root .ad-official-logo{width:96px!important;height:96px!important}}
@media(prefers-reduced-motion:reduce){.ad-root .ad-btn{transition:none!important}}

/* v0.1.4 scoring history and results */
.ad-history,.ad-stats{margin:18px 0;padding:16px;border:1px solid rgba(213,181,107,.40);background:#131313;border-radius:15px;color:#f7f4ec}
.ad-history h3,.ad-stats h3{margin:0 0 14px;color:#e0c983;font-size:1.1rem}
.ad-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #333}
.ad-history-row>div{display:flex;flex-direction:column;gap:4px}.ad-history-row span{font-size:13px;color:#c9c2b3}
.ad-history-row .ad-btn{min-width:72px}.ad-stats-grid{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:1px;background:#3c3528;border:1px solid #3c3528;border-radius:8px;overflow:hidden}
.ad-stats-grid>*{background:#191919;margin:0;padding:10px 5px;text-align:center;font-size:13px;overflow-wrap:anywhere}.ad-stats-grid>span:nth-child(3n+1){text-align:left}.ad-stats-grid strong{color:#f6db9f}
.ad-history .ad-btn,.ad-actions .ad-btn{min-height:48px}
@media(max-width:480px){.ad-history,.ad-stats{padding:12px}.ad-stats-grid>*{font-size:12px;padding:10px 4px}}

/* v0.1.5 - Compact full-height match scoring, no logo on play view.
   Preserve spacious branded setup and completion screens. */
.ad-play-view{display:flex;flex-direction:column;gap:0;width:100%;min-height:0}
.ad-play-view .ad-topline{margin:0 0 8px;font-size:12px}
.ad-play-view .ad-scores{gap:8px}
.ad-play-view .ad-scorecard{padding:9px 6px;border-radius:12px}
.ad-play-view .ad-person{font-size:15px;line-height:1.15}
.ad-play-view .ad-score{font-size:clamp(39px,12vw,66px);line-height:1.02}
.ad-play-view .ad-legs{font-size:11px}
.ad-play-view .ad-turn{font-size:11px;min-height:14px;margin-top:2px}
.ad-play-view .ad-entry{margin:8px 0 7px}
.ad-play-view .ad-entry-title{margin-bottom:4px;font-size:13px}
.ad-play-view .ad-display{min-height:48px;font-size:30px}
.ad-play-view .ad-keypad{gap:6px}
.ad-play-view .ad-key{min-height:44px;font-size:19px;padding:4px 6px}
.ad-play-view #ad-record{min-height:49px;margin-top:7px;padding:7px}
.ad-play-view .ad-actions{margin-top:8px;gap:6px}
.ad-play-view .ad-actions .ad-btn{min-height:43px;padding:6px 4px;font-size:13px}
.ad-play-view .ad-assist{margin:7px 0;padding:7px 10px}
.ad-play-view .ad-route{font-size:18px}
.ad-play-view .ad-assist-note{font-size:11px}
.ad-play-view .ad-message{margin-top:5px;min-height:0;font-size:12px}
.ad-play-view .ad-message:empty{display:none}
.ad-play-view .ad-foot{display:none}
@media(max-width:700px){
 body.ad-app-page .ad-root:has(.ad-play-view){padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}
 body.ad-app-page .ad-shell:has(.ad-play-view){max-width:100%;padding-top:0}
 .ad-play-view{height:calc(100dvh - 16px - env(safe-area-inset-bottom,0px));max-height:100%}
 .ad-play-view .ad-keypad{flex:1;min-height:168px;grid-template-rows:repeat(4,minmax(0,1fr))}
 .ad-play-view .ad-key{min-height:0;height:100%}
 .ad-play-view .ad-scores{flex:0 0 auto}
 .ad-play-view .ad-entry,.ad-play-view .ad-topline,.ad-play-view #ad-record,.ad-play-view .ad-actions{flex-shrink:0}
}
@media(max-width:700px) and (max-height:740px){
 .ad-play-view .ad-scorecard{padding:5px 4px}
 .ad-play-view .ad-score{font-size:clamp(34px,11vw,52px)}
 .ad-play-view .ad-entry{margin:4px 0}
 .ad-play-view .ad-display{min-height:40px}
 .ad-play-view .ad-keypad{min-height:140px;gap:4px}
 .ad-play-view .ad-actions .ad-btn{min-height:39px}
}
@media(max-width:700px) and (max-height:570px){
 .ad-play-view{height:auto}
 .ad-play-view .ad-keypad{min-height:132px}
}

/* v0.1.9: guideline 1.1, preserve all existing baseline colours. */
.ad-root .ad-header{padding:2px 0 8px;gap:0;background:#000}
.ad-root .ad-official-logo{display:block!important;width:min(100%,340px)!important;max-width:340px!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0 auto!important}
@media(max-width:700px){.ad-root .ad-official-logo{width:min(94%,340px)!important}.ad-root .ad-header{padding:2px 0 7px}}
@media(max-width:700px) and (min-height:570px){
body.ad-app-page .ad-root:has(.ad-play-view){padding:max(5px,env(safe-area-inset-top,0px)) 10px max(5px,env(safe-area-inset-bottom,0px))}
body.ad-app-page .ad-shell:has(.ad-play-view){max-width:560px;padding-top:0}
.ad-play-view:not(:has(.ad-dialog,.ad-history)){
height:calc(100dvh - max(5px,env(safe-area-inset-top,0px)) - max(5px,env(safe-area-inset-bottom,0px)));
display:flex;flex-direction:column;gap:clamp(3px,.7vh,7px);min-height:0}
.ad-play-view .ad-topline{margin:0;line-height:1.18;font-size:clamp(11px,2.7vw,13px)}
.ad-play-view .ad-scores{gap:6px}
.ad-play-view .ad-scorecard{padding:5px 4px}
.ad-play-view .ad-person{font-size:clamp(12px,3.3vw,16px)}
.ad-play-view .ad-score{font-size:clamp(34px,10.5vw,57px);line-height:1}
.ad-play-view .ad-legs,.ad-play-view .ad-turn{font-size:10px;line-height:1.2}
.ad-play-view .ad-turn{min-height:0;margin-top:2px}
.ad-play-view .ad-entry{margin:0}
.ad-play-view .ad-entry-title{display:none}
.ad-play-view .ad-display{min-height:42px;height:42px;font-size:28px}
.ad-play-view .ad-keypad{flex:1 1 0;min-height:176px;display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:5px}
.ad-play-view .ad-key{min-height:0;height:100%;padding:0 4px;font-size:clamp(17px,4.5vw,22px)}
.ad-play-view #ad-record{min-height:49px;height:49px;margin:0;padding:4px}
.ad-play-view .ad-actions{flex:0 0 auto;margin:0;gap:5px}
.ad-play-view .ad-actions .ad-btn{min-height:43px;padding:4px 3px;font-size:clamp(11px,2.8vw,13px)}
.ad-play-view .ad-assist{margin:0;padding:5px 8px}
.ad-play-view .ad-route{font-size:clamp(13px,3.7vw,18px);margin:0}
.ad-play-view .ad-assist-note{display:none}
.ad-play-view .ad-message{min-height:0;margin:0;font-size:11px}
.ad-play-view .ad-message:empty{display:none}
.ad-play-view .ad-foot{display:none}
}
@media(max-width:700px) and (max-height:690px) and (min-height:570px){
.ad-play-view .ad-scorecard{padding:3px}.ad-play-view .ad-score{font-size:clamp(31px,9vw,46px)}
.ad-play-view .ad-keypad{min-height:160px;gap:4px}.ad-play-view .ad-key{font-size:17px}}
