/* Membership is deliberately separate from the game and settings styles. */
:root{--commerce-ink:#382c35;--commerce-muted:#75676c;--commerce-line:#e1d7d3;--commerce-paper:#fffdf8;--commerce-pink:#f0c8d6;--commerce-sage:#e3ebd2}
.commerce-page{background:#faf7f2;color:var(--commerce-ink);font-family:'DM Sans',sans-serif}
.commerce-page [hidden],.commerce-dialog [hidden],.commerce-home-entry[hidden]{display:none!important}
.commerce-header,.commerce-main,.commerce-footer{width:min(1120px,100%);margin-inline:auto;padding-inline:24px}
.commerce-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:24px;border-bottom:1px solid var(--commerce-line)}
.commerce-brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.6px}
.commerce-brand>span:first-child{display:grid;place-items:center;width:39px;height:39px;background:var(--commerce-pink);border-radius:50%;font-size:28px;color:#704458;transform:rotate(-12deg)}
.commerce-brand small{display:block;font-size:8px;letter-spacing:1.8px;font-weight:650;color:var(--commerce-muted)}
.commerce-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#755166;font-size:13px;font-weight:650;white-space:nowrap}
.commerce-main{padding-block:28px 48px}
.commerce-test{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;border:1px solid #d7cab2;background:#f6eedf;padding:12px 16px;border-radius:12px;font-size:12px;color:#665438;line-height:1.6;margin-bottom:30px}
.commerce-test b{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#59472e}
.commerce-intro{margin-bottom:28px;max-width:670px}
.commerce-kicker{display:block;color:#806855;font-size:10px;letter-spacing:1.6px;font-weight:750;text-transform:uppercase;margin-bottom:10px}
.commerce-page h1{font:750 clamp(32px,5vw,50px)/1.1 'Manrope',sans-serif;letter-spacing:-1.8px;margin:0 0 16px}
.commerce-page h1 em{font-family:Georgia,serif;color:#926071;font-weight:400}
.commerce-page h2,.commerce-dialog h2{font:750 23px/1.25 'Manrope',sans-serif;letter-spacing:-.65px;margin:0 0 12px}
.commerce-page h3{font-size:16px;margin:0 0 8px;letter-spacing:-.2px}
.commerce-intro>p,.commerce-muted{color:var(--commerce-muted);font-size:14px;line-height:1.7}
.commerce-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.commerce-panel{background:var(--commerce-paper);border:1px solid var(--commerce-line);border-radius:21px;padding:24px;min-width:0}
.commerce-plan{position:relative;background:linear-gradient(145deg,#fff6ed,#f7e5eb);overflow:hidden}
.commerce-plan:before{content:'♡';position:absolute;right:22px;top:12px;font:80px/1 Georgia,serif;color:#dfb2c2;transform:rotate(13deg);pointer-events:none}
.commerce-plan .commerce-kicker{position:relative;margin-right:60px}
.commerce-price{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin:18px 0 5px}
.commerce-price strong{font:750 42px/1.1 'Manrope',sans-serif;letter-spacing:-1.8px}
.commerce-price span{color:#755866;font-size:13px}
.commerce-plan-sub{color:#755866;font-size:12px;margin:6px 0 21px}
.commerce-benefits{list-style:none;padding:0;margin:22px 0;display:grid;gap:12px;font-size:14px}
.commerce-benefits li{display:flex;gap:10px;align-items:flex-start}
.commerce-benefits li:before{content:'✓';display:grid;place-items:center;flex:none;width:21px;height:21px;border-radius:50%;background:#e3ebd2;color:#4d6441;font-weight:750;font-size:12px}
.commerce-note{font-size:12px;color:var(--commerce-muted);line-height:1.7;margin:10px 0}
.commerce-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.commerce-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 18px;border-radius:12px;border:1px solid #4b3744;background:#4b3744;color:#fff8f2;font-weight:700;font-size:13px;text-align:center;line-height:1.5;touch-action:manipulation}
.commerce-button.secondary{background:#fffdf8;color:#614b59;border-color:#d7c7ce}
.commerce-button.quiet{background:transparent;color:#755166;border-color:transparent;padding-inline:5px;text-decoration:underline;text-underline-offset:3px}
.commerce-button.wide{width:100%}
.commerce-button:disabled{opacity:.63;cursor:not-allowed}
.commerce-page :is(button,a,input,textarea,select):focus-visible,.commerce-dialog :is(button,a,input,textarea):focus-visible,.commerce-feedback-button:focus-visible{outline:3px solid #a05272;outline-offset:4px}
.commerce-status{border:1px solid #e0d5cf;background:#f6f0e9;border-radius:12px;padding:13px 15px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.commerce-status:empty{display:none}
.commerce-status[data-tone=error]{border-color:#d5a9ad;background:#faeded;color:#80353f}
.commerce-status[data-tone=success]{border-color:#c5d2ae;background:#edf2e2;color:#425a33}
.commerce-section{margin-top:26px}
.commerce-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.commerce-section-heading h2{margin:0}
.commerce-section-heading p{font-size:12px;color:var(--commerce-muted);margin:0}
.commerce-divider{height:1px;background:var(--commerce-line);margin:22px 0;border:0}
.commerce-pair-icons{display:flex;align-items:center;gap:0;margin:16px 0}
.commerce-pair-icons span{display:grid;place-items:center;flex:none;width:45px;height:45px;border:3px solid var(--commerce-paper);border-radius:50%;background:var(--commerce-pink);font-size:23px}
.commerce-pair-icons span+span{margin-left:-8px;background:var(--commerce-sage)}
.commerce-pair-icons p{font-size:13px;margin:0 0 0 12px;font-weight:650}
.commerce-detail-list{margin:18px 0;display:grid;grid-template-columns:1fr auto;gap:10px;font-size:13px}
.commerce-detail-list dt{color:var(--commerce-muted)}
.commerce-detail-list dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}
.commerce-field{display:grid;gap:7px;margin-top:15px;font-size:13px;font-weight:600}
.commerce-page :is(input[type=text],input[type=email],textarea,select),.commerce-dialog :is(input[type=text],textarea){width:100%;border:1px solid #cfc2c8;border-radius:10px;padding:12px;background:#fffdf9;color:var(--commerce-ink);font-size:16px;min-height:46px;box-sizing:border-box}
.commerce-page textarea,.commerce-dialog textarea{resize:vertical;min-height:100px}
.commerce-inline-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.commerce-inline-form .commerce-field{flex:1;min-width:150px}
.commerce-confirm{display:flex;align-items:flex-start;gap:9px;margin:15px 0;font-size:12px;line-height:1.6;color:var(--commerce-muted)}
.commerce-confirm input{width:20px;height:20px;flex:none;accent-color:#88556c;margin:0}
.commerce-invite{margin-top:18px;border:1px dashed #c5afba;border-radius:12px;padding:15px;background:#faf2f5}
.commerce-invite code{display:block;word-break:break-all;font-size:15px;margin:8px 0;color:#653f52}
.commerce-choice-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.commerce-choice{display:flex;align-items:flex-start;gap:12px;min-height:94px;padding:16px;border:1px solid var(--commerce-line);border-radius:14px;background:#fffdf9;cursor:pointer}
.commerce-choice:has(input:checked){background:#f5e5ec;border-color:#c493a7}
.commerce-choice:has(input:focus-visible){outline:3px solid #a05272;outline-offset:3px}
.commerce-choice input{margin-top:4px;flex:none;width:20px;height:20px;accent-color:#83566b}
.commerce-choice-copy{display:grid;gap:6px;min-width:0}
.commerce-choice strong{font-size:14px;line-height:1.5}
.commerce-choice small{color:var(--commerce-muted);font-size:11px;line-height:1.5}
.commerce-choice:has(input:disabled){cursor:default}
.commerce-choice input:disabled{opacity:.65}
.commerce-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.commerce-chip{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:30px;background:#eee7e2;color:#68535e;font-size:10px;font-weight:650;line-height:1.35}
.commerce-chip.free{background:#e8eedc;color:#4f6440}.commerce-chip.premium{background:#f1e0e8;color:#7b4c61}.commerce-chip.featured{background:#f2e7c9;color:#765d29}.commerce-chip.popular{background:#e6e2f1;color:#625578}
.commerce-selection-footer{position:sticky;bottom:10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#fffaf5f5;border:1px solid #d8c6cd;border-radius:14px;box-shadow:0 5px 24px #49313f10;padding:13px 16px;margin-top:18px;z-index:4}
.commerce-selection-footer p{margin:0;font-size:13px;font-weight:600}
.commerce-faq{display:grid;gap:0;margin-top:30px}
.commerce-faq details{border-bottom:1px solid var(--commerce-line);padding:16px 0}
.commerce-faq summary{cursor:pointer;font-weight:650;font-size:14px;min-height:32px;align-content:center}
.commerce-faq p{font-size:13px;line-height:1.7;color:var(--commerce-muted);max-width:750px}
.commerce-footer{padding-block:22px 28px;border-top:1px solid var(--commerce-line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;color:var(--commerce-muted);font-size:11px}
.commerce-loading{padding:25px;text-align:center;color:var(--commerce-muted);font-size:14px}
.commerce-return-card{max-width:650px;margin:26px auto;text-align:center}
.commerce-return-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--commerce-sage);color:#5d704a;font-size:32px;margin:4px auto 20px}
.commerce-return-card .commerce-actions{justify-content:center}
.commerce-return-card h1{font-size:32px}
.commerce-admin-catalog{display:grid;gap:12px}
.commerce-admin-row{padding:16px;border:1px solid var(--commerce-line);border-radius:13px;background:#fffdf9;display:grid;gap:13px}
.commerce-admin-row label{display:flex;align-items:center;gap:8px;font-size:13px}
.commerce-admin-row select{font-size:14px}
.commerce-admin-row input[type=checkbox]{width:20px;height:20px;accent-color:#83566b}
.commerce-admin-actions{display:flex;flex-wrap:wrap;align-items:center;gap:15px}
.commerce-feedback-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.commerce-feedback-item{border:1px solid var(--commerce-line);border-radius:13px;padding:18px;background:#fffdf9}
.commerce-feedback-item p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}
.commerce-feedback-item header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px}
.commerce-feedback-item small{color:var(--commerce-muted);font-size:11px}
.commerce-home-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #dcc9d0;border-radius:16px;background:linear-gradient(110deg,#f6e7ed,#f7eee3);padding:18px 20px;margin:0 0 32px;color:var(--commerce-ink)}
.commerce-home-entry h2{font:750 18px/1.3 'Manrope',sans-serif;letter-spacing:-.4px;margin:0 0 5px}
.commerce-home-entry p{font-size:12px;color:#79616e;margin:0;line-height:1.6}
.commerce-home-entry a{flex:none;min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#704b60}
.menu-home .commerce-card-badges{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 9px;position:relative;pointer-events:none}
.menu-home .commerce-feedback-button{position:relative;z-index:3;display:inline-flex;align-items:center;min-height:44px;padding:8px 0 0;background:transparent;color:#765569;text-decoration:underline;text-underline-offset:3px;font-size:11px;text-align:left}
.commerce-dialog{width:min(500px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid var(--commerce-line);padding:26px;border-radius:20px;background:#fffdf8;color:var(--commerce-ink);box-shadow:0 20px 65px #382c3529}
.commerce-dialog::backdrop{background:#382c3566;backdrop-filter:blur(3px)}
.commerce-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.commerce-dialog-close{display:grid;place-items:center;background:#f2e9e6;min-width:44px;min-height:44px;border-radius:50%;font-size:23px;color:#705463}
.commerce-stars{display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0;margin:20px 0}
.commerce-stars legend{font-size:13px;font-weight:650;margin-bottom:10px}
.commerce-star-choice{position:relative;display:block}
.commerce-star-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.commerce-star-choice span{display:flex;align-items:center;justify-content:center;gap:4px;min-width:54px;min-height:46px;padding:7px 9px;border:1px solid #d8c6cd;border-radius:10px;font-size:14px}
.commerce-star-choice input:checked+span{background:#edd3de;border-color:#a36c85;color:#64394e}
.commerce-star-choice input:focus-visible+span{outline:3px solid #a05272;outline-offset:3px}
.commerce-star-choice input:disabled+span{opacity:.6}
@media(min-width:720px){.commerce-header,.commerce-main,.commerce-footer{padding-inline:36px}.commerce-main{padding-top:36px}.commerce-grid{grid-template-columns:1fr 1fr}.commerce-panel{padding:28px}.commerce-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-admin-row{grid-template-columns:minmax(0,1fr) minmax(130px,180px) auto;align-items:center}}
@media(max-width:420px){.commerce-header,.commerce-main,.commerce-footer{padding-inline:18px}.commerce-header{gap:10px}.commerce-brand{font-size:16px;gap:8px}.commerce-brand>span:first-child{width:32px;height:32px;font-size:25px}.commerce-back{font-size:11px}.commerce-panel{padding:20px}.commerce-main{padding-top:22px}.commerce-home-entry{align-items:flex-start;flex-direction:column;padding:16px;gap:4px}.commerce-dialog{padding:20px}.commerce-star-choice span{min-width:43px;padding:7px 6px}.commerce-stars{gap:5px}.commerce-price strong{font-size:36px}.commerce-selection-footer .commerce-button{width:100%}}
@media(prefers-reduced-motion:reduce){.commerce-page *, .commerce-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.commerce-choice:has(input:checked),.commerce-star-choice input:checked+span{border-width:3px}.commerce-chip{border:1px solid currentColor}}

.commerce-page>.menu-skip{position:fixed;left:16px;top:-80px;z-index:100;background:#382c35;color:white;border-radius:9px;padding:12px 20px}.commerce-page>.menu-skip:focus{top:10px}

/* Private operations: readable summaries, never raw billing payloads. */
.commerce-ops-panel{border-top:4px solid #ac7b8e}
.commerce-ops-health{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}
.commerce-ops-health p{margin:5px 0 0;max-width:660px;font-size:13px;line-height:1.7;color:var(--commerce-muted)}
.commerce-ops-badge{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:30px;border:1px solid #d8cbb1;border-radius:30px;padding:5px 11px;font-size:11px;font-weight:700;color:#665438;background:#f6eedf}
.commerce-ops-badge[data-tone=ready]{color:#425a33;background:#edf2e2;border-color:#c5d2ae}
.commerce-ops-badge[data-tone=review]{color:#80353f;background:#faeded;border-color:#d5a9ad}
.commerce-ops-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 26px}
.commerce-ops-metric{min-width:0;padding:16px;border:1px solid var(--commerce-line);border-radius:13px;background:#faf6f0;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:7px}
.commerce-ops-metric dt{font-size:11px;line-height:1.5;color:var(--commerce-muted)}
.commerce-ops-metric dd{margin:0;font:750 27px/1.1 'Manrope',sans-serif;letter-spacing:-.6px;overflow-wrap:anywhere}
.commerce-ops-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.commerce-ops-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px}
.commerce-ops-list li{padding:13px 15px;border:1px solid var(--commerce-line);border-radius:12px;background:#fffdf9;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.commerce-ops-list li[data-tone=review]{border-left:3px solid #b77778}
.commerce-ops-list p{margin:5px 0 0;color:var(--commerce-muted);font-size:12px;line-height:1.7}
.commerce-ops-list small{display:block;margin-top:6px;font-size:11px;color:var(--commerce-muted)}
.commerce-ops-check,.commerce-restart{padding:20px;border:1px solid #d6c3ca;border-radius:14px;background:#f8eef2;align-self:start}
.commerce-ops-check .commerce-status{margin-top:14px}
.commerce-restart{margin-top:18px}
.commerce-restart .commerce-button{width:100%}
@media(min-width:720px){.commerce-ops-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.commerce-ops-columns{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@media(max-width:420px){.commerce-ops-check,.commerce-restart{padding:16px}.commerce-ops-health{gap:10px}.commerce-ops-metric{padding:13px}.commerce-ops-panel .commerce-section-heading>.commerce-button{width:100%}.commerce-ops-check>.commerce-button{width:100%}}
.commerce-feedback-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.commerce-feedback-actions .commerce-button{flex:1;min-height:46px}
