/* Bopuloo V1.1 additions — preserves all V1 design tokens */
.bop-header-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.bop-pill{appearance:none;border:2px solid #e8dafa;background:#fff;color:#4b3871;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 3px 0 #e6daf4}
.bop-pill:hover,.bop-pill:focus-visible{background:#f4edff;outline-offset:2px}
.bop-achievements{position:fixed;top:80px;right:clamp(12px,4vw,80px);z-index:80;width:min(355px,calc(100vw - 24px));border:2px solid #dacef0;border-radius:25px;background:#fffdf9;box-shadow:0 14px 55px #36295a35;padding:20px}
.bop-achievements[hidden]{display:none}
.bop-achievements h2{font-size:22px;margin:0 0 6px;color:#483466}.bop-ach-summary{font-size:13px;color:#7b6c91;margin:0 0 12px}
.bop-badges{display:grid;gap:7px}.bop-badge{display:flex;align-items:center;gap:10px;background:#f4f1f7;color:#9b93a6;border-radius:12px;padding:9px;font-weight:650;font-size:13px;filter:grayscale(.65)}
.bop-badge.unlocked{filter:none;background:#fef1d8;color:#5c4972}.bop-badge span:first-child{font-size:21px}
.bop-toast{pointer-events:none;position:fixed;bottom:24px;left:50%;transform:translate(-50%,24px);z-index:99;opacity:0;background:#49356b;color:white;border-radius:18px;padding:12px 21px;max-width:calc(100vw - 28px);text-align:center;box-shadow:0 12px 25px #26174728;transition:opacity .18s,transform .18s}
.bop-toast.show{opacity:1;transform:translate(-50%,0)}
.bop-daily-switch{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:8px auto 15px;font-size:13px;color:#716382}
.bop-daily-switch button{border:2px solid #e8d8ef;background:#fff;border-radius:999px;color:#5b467a;font-size:12px;font-weight:800;padding:9px 15px;cursor:pointer}
.bop-daily-switch button.active{background:#ffe9a9;border-color:#eec86a}
.bop-leader{margin:20px 0 24px;background:#fff9e8;border:2px solid #f3e3bb;border-radius:24px;padding:20px;box-shadow:0 5px 0 #f4e8d4}
.bop-leader-top h3{margin:0 0 5px;color:#4b3674;font-size:19px}.bop-leader-top p{font-size:13px;color:#786e7e;margin:0 0 14px}
.bop-leader-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bop-leader-controls input{height:42px;min-width:130px;flex:1;border-radius:12px;border:2px solid #e7d9c6;background:white;padding:0 12px;font-size:14px;max-width:240px;color:#4a3b69}
.bop-leader-controls .bop-action{font-size:12px;min-height:42px;padding:10px 14px;white-space:normal;border-radius:12px;cursor:pointer}
.bop-leader-controls .bop-submit{background:#cfeddd;color:#205845;border:2px solid #acd7c1}
.bop-leader-controls .bop-submit:disabled{opacity:.45;cursor:not-allowed}
.bop-leader-notice{min-height:18px;font-size:12px;color:#25845e;margin:10px 0}.bop-leader-notice.error{color:#bf4658}
.bop-rank-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #e9d8c5;color:#624a81}
.bop-rank-rows{padding:0;margin:5px 0 0;list-style:none;display:grid;gap:5px;max-height:290px;overflow:auto}
.bop-rank-rows li{background:#fff;border-radius:9px;padding:8px 10px;font-size:13px;display:flex;justify-content:space-between;gap:10px;color:#5a486e}.bop-rank-rows li b{color:#5840aa}
@media(max-width:800px){.bop-header-actions{margin-left:0}.bop-pill{padding:8px 10px}.bop-achievements{top:70px}.bop-leader{padding:14px}}
@media(max-width:450px){.bop-header-actions{gap:5px}.bop-pill{font-size:11px;padding:7px 8px}.bop-sound{font-size:0}.bop-sound::first-letter{font-size:14px}.bop-leader-controls input{max-width:none;width:100%;flex-basis:100%}.bop-leader-controls .bop-action{flex:1}}

/* Daily launch actions and compact shared header */
.daily-ctas{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center}
.daily-ctas .btn{padding:12px 17px;font-size:13px;white-space:nowrap}
.site-header .language-pill{margin-left:auto}
.bop-header-actions{margin-left:0}
@media(max-width:600px){.site-header .header-inner{gap:8px}.site-header .brand>span{font-size:21px}.site-header .language-pill{font-size:11px;padding:7px 8px}.bop-pill{padding:7px 8px}}
@media(max-width:365px){.site-header .brand>span{font-size:18px}.site-header .language-pill .lang-icon{display:none}}

/* V1.1.2: opt-in result publishing after actual completion */
.bop-result-backdrop{position:fixed;inset:0;z-index:150;display:grid;place-items:center;background:rgba(41,28,69,.57);padding:18px;overflow-y:auto}
.bop-result-backdrop[hidden]{display:none}
.bop-result-dialog{width:min(470px,100%);background:#fffaf4;border:3px solid #ead4fb;border-radius:30px;box-shadow:0 18px 0 rgba(58,40,88,.16),0 35px 70px rgba(31,19,47,.3);padding:clamp(20px,5vw,32px);color:#493364;text-align:center}
.bop-result-dialog h3{font-size:clamp(23px,5vw,29px);line-height:1.25;color:#4e377d;margin:0 0 12px}
.bop-result-score{font-size:clamp(23px,5.5vw,36px);line-height:1.2;font-weight:900;color:#ba61b7;background:#f9e7fc;border:2px solid #f0d6f5;padding:12px;border-radius:17px;margin:0 0 12px}
.bop-result-explain{font-size:13px;line-height:1.6;color:#756385;margin:0 0 17px}
.bop-result-label{display:flex;flex-direction:column;text-align:left;gap:7px;color:#5b4975;font-size:13px;font-weight:800;margin-bottom:14px}
.bop-result-label input{min-height:48px;background:#fff;border:2px solid #dfccea;border-radius:13px;font-size:16px;padding:10px 14px;color:#4c3967;outline-offset:3px;width:100%}
.bop-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.bop-result-actions button{min-height:48px;padding:10px;font-size:13px;font-weight:800;border-radius:14px;cursor:pointer;line-height:1.35}
.bop-result-save{border:0;background:#8360c8;color:white}
.bop-result-skip{border:2px solid #e9ddea;background:white;color:#675479}
.bop-result-actions button:disabled{opacity:.55;cursor:wait}
.bop-result-error{margin:10px 0 0;min-height:16px;font-size:12px;line-height:1.5;color:#b83155}
.bop-result-error:empty{display:none}
@media(max-width:420px){.bop-result-dialog{border-radius:23px}.bop-result-actions{grid-template-columns:1fr}.bop-result-actions button{min-height:43px}.bop-result-skip{order:2}}

/* V1.1.3: ranked Solitaire cannot use hints or undo. */
.sol-game .game-actions button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
