/* Shared semantic palette. The ticket keeps its own ink when page text turns light. */
:root[data-theme]{--theme-bg:#f5f3ea;--theme-surface:#fffdf5;--theme-well:#e8eddf;--theme-text:#193831;--theme-muted:#586e65;--theme-accent:#a94f31;--theme-mint:#c5dc9e;--theme-soft:#eadbc0;--theme-line:#19383130;--theme-button:#193831;--theme-on-button:#f5f3ea;--theme-ticket:#193831;--theme-ticket-text:#f5f3ea;--theme-focus:#975321;--theme-error:#a03828;--paper:var(--theme-bg);--cream:var(--theme-bg);--bg:var(--theme-bg);--panel:var(--theme-surface);--ink:var(--theme-text);--forest:var(--theme-text);--muted:var(--theme-muted);--accent:var(--theme-accent);--mint:var(--theme-mint);--gold:var(--theme-mint);--soft:var(--theme-soft);--line:var(--theme-line);--green:var(--theme-button);color:var(--theme-text);background:var(--theme-bg);color-scheme:light}
:root[data-theme][data-app=keys]{--theme-accent:#08746e;--theme-soft:#cfe7de;--theme-ticket:#113b3d;--theme-button:#113b3d}
:root[data-theme=dark]{--theme-bg:#0d1d24;--theme-surface:#192f36;--theme-well:#203a41;--theme-text:#f3eedf;--theme-muted:#b5c5c5;--theme-accent:#f1b38e;--theme-mint:#c5dfa6;--theme-soft:#3a3c32;--theme-line:#496168;--theme-button:#c5dfa6;--theme-on-button:#142b2a;--theme-ticket:#1b3b3b;--theme-ticket-text:#f3eedf;--theme-focus:#f1c58e;--theme-error:#ffb5a1;color-scheme:dark}
:root[data-theme=dark][data-app=keys]{--theme-accent:#83dcd1;--theme-soft:#23464b;--theme-ticket:#163d44;--theme-button:#a4e3d8;--theme-mint:#c5e3a4}
:root[data-theme] body{background:var(--theme-bg);color:var(--theme-text)}
:root[data-theme] .eyebrow{color:var(--theme-muted)}
:root[data-theme] :where(a,button,input,summary,select):focus-visible{outline:3px solid var(--theme-focus);outline-offset:4px}
.has-payment-theme{flex-wrap:wrap;row-gap:12px}.payment-theme-tools{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-inline-start:auto;max-width:100%}.payment-theme-tools>a{font-size:13px}.payment-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;width:auto;min-width:44px;height:44px;min-height:44px;margin:0;padding:9px 12px;border:1px solid var(--theme-line);border-radius:15px;background:var(--theme-surface);color:var(--theme-text);font:600 12px/1.2 system-ui,sans-serif;text-align:center;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:rotate .25s,border-color .25s,border-radius .25s}
.payment-theme-toggle:hover:enabled{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-accent);border-radius:18px 11px 18px 11px;rotate:-2deg;transform:none;translate:none}.payment-theme-toggle:active{rotate:2deg}.payment-theme-toggle svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.theme-sun,.theme-moon{transform-origin:12px 12px;transition:opacity .28s,transform .4s cubic-bezier(.2,.8,.2,1)}.theme-moon{opacity:0;transform:rotate(-45deg) scale(.5)}:root[data-theme=dark] .theme-sun{opacity:0;transform:rotate(70deg) scale(.5)}:root[data-theme=dark] .theme-moon{opacity:1;transform:none}
/* Shop illustrations, paper notes and the detached ticket. */
:root[data-theme] .word-ticket{background:var(--theme-surface);box-shadow:0 18px 35px #0002,0 0 0 1px var(--theme-line)}
:root[data-theme] .floating-note{color:#193831}:root[data-theme] .scene-play,:root[data-theme] .action-dark{background:var(--theme-button);color:var(--theme-on-button)}
:root[data-theme] .picture-listen{background:var(--theme-ticket);color:var(--theme-ticket-text)}:root[data-theme] .component-pieces span{color:var(--theme-ticket-text);border-color:#f3eedf55}:root[data-theme] .component-pieces span:last-child{color:#16332f;border-color:transparent}
:root[data-theme] .picture-progress{background:var(--theme-well)}:root[data-theme] .plus-pass{background:var(--theme-ticket);color:var(--theme-ticket-text);box-shadow:0 16px 0 -7px #0002}:root[data-theme] .plus-pass.is-tearing{background:transparent;box-shadow:none}:root[data-theme] .is-tearing>.pass-body,:root[data-theme] .is-tearing>.pass-checkout{background:var(--theme-ticket)}:root[data-theme] .pass-apps img{border-color:var(--theme-ticket)}:root[data-theme] .action-light,:root[data-theme] .faq-list details[open]:not([data-faq-expanded=false]) .faq-toggle{color:#16332f}:root[data-theme] .ticket-fiber{background:var(--theme-ticket-text)}:root[data-theme] .ticket-fiber:nth-child(2n){background:var(--theme-mint)}
:root[data-theme=dark] .tab-marker{background:var(--theme-button)}:root[data-theme=dark] .app-tab[aria-selected=true]{color:var(--theme-on-button)}:root[data-theme=dark] .shop-brand img{background:#f2ead9;border-radius:12px;padding:4px}:root[data-theme=dark] .scene-disc{box-shadow:inset 0 0 0 20px #ffffff06}:root[data-theme=dark] .scene-panda{filter:drop-shadow(0 22px 18px #0005)}:root[data-theme=dark] .faq-paper{background:var(--theme-surface)}:root[data-theme=dark] .mobile-buybar{box-shadow:0 -8px 30px #0004}:root[data-theme=dark] .mobile-buybar>a{background:var(--theme-button);color:var(--theme-on-button)}
/* Checkout: the same palette covers every form step and result state. */
:root[data-theme] .garden{background:var(--theme-ticket);color:var(--theme-ticket-text)}:root[data-theme] .garden h1 em,:root[data-theme] .garden>.eyebrow{color:var(--theme-mint)}:root[data-theme] .garden-note{color:#c5d4ce}:root[data-theme] .benefits span{background:#ffffff0a;border-color:#ffffff22}
:root[data-theme] .checkout{background:var(--theme-surface);border-color:var(--theme-line)}:root[data-theme] .price{color:var(--theme-text)}:root[data-theme] .brand>span:not(:has(small)){color:#193831}:root[data-theme] .steps li{background:var(--theme-well);color:var(--theme-muted)}:root[data-theme] .steps li[aria-current]{background:var(--theme-mint);color:#16332f}:root[data-theme] .steps li.done{background:var(--theme-well);color:var(--theme-accent)}
:root[data-theme] .notice{background:var(--theme-well);color:var(--theme-text);border:1px solid var(--theme-line);border-inline-start:3px solid var(--theme-accent)}:root[data-theme] input:is([type=email],[type=text],[type=search]),:root[data-theme] select{background:var(--theme-bg);color:var(--theme-text);border-color:var(--theme-line)}:root[data-theme] input::placeholder{color:var(--theme-muted);opacity:.85}:root[data-theme] input{accent-color:var(--theme-button)}
:root[data-theme] .checkout button,:root[data-theme] .checkout .button{background:var(--theme-button);color:var(--theme-on-button)}:root[data-theme] .checkout button:hover:enabled,:root[data-theme] .checkout .button:hover{background:var(--theme-button);filter:brightness(1.07)}:root[data-theme] .checkout button.secondary{background:var(--theme-well);color:var(--theme-text);border:1px solid var(--theme-line)}:root[data-theme] .checkout button.text-button{background:transparent;color:var(--theme-accent)}:root[data-theme] .checkout button:disabled{background:var(--theme-well);color:var(--theme-muted);border:1px solid var(--theme-line);opacity:1;cursor:not-allowed}:root[data-theme] .agreement a{color:var(--theme-accent)}:root[data-theme] .plus-result{background:var(--theme-well);border:1px solid var(--theme-line)}:root[data-theme] .plus-result>span{color:var(--theme-accent)}:root[data-theme] .message{color:var(--theme-error)}
/* Existing Russian purchase information and both sets of legal documents. */
:root[data-theme] :is(.summary,.free-card,.international,.app-preview){background:var(--theme-well);border-color:var(--theme-line)}:root[data-theme] :is(.price-card,.worlds article){background:var(--theme-surface);border-color:var(--theme-line)}:root[data-theme] .price-card.featured{background:var(--theme-well);border-color:var(--theme-accent)}:root[data-theme] footer{border-color:var(--theme-line)}:root[data-payment-page=landing][data-theme] .button{background:var(--theme-button);color:var(--theme-on-button)}:root[data-theme] .legal h1 em{color:var(--theme-accent)}
/* Also match the language picker when that feature is present. */
:root[data-theme=dark] .language-dialog{background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-line);box-shadow:0 24px 90px #0008}:root[data-theme=dark] .language-dialog::backdrop{background:#030c10bb}:root[data-theme=dark] .language-heading h2,:root[data-theme=dark] .language-card{color:var(--theme-text)}:root[data-theme=dark] .language-dialog .language-card{background:var(--theme-well);border-color:var(--theme-line)}:root[data-theme=dark] .language-dialog .language-card:nth-child(3n+2){background:#393a32}:root[data-theme=dark] .language-dialog .language-card:nth-child(3n){background:#263743}:root[data-theme=dark] .language-dialog .language-card:hover,:root[data-theme=dark] .language-dialog .language-card[aria-selected=true]{background:var(--theme-mint);color:#16332f;border-color:var(--theme-mint)}:root[data-theme=dark] .language-stamp{color:var(--theme-accent)}:root[data-theme=dark] .language-card:hover .language-stamp,:root[data-theme=dark] .language-card[aria-selected=true] .language-stamp,:root[data-theme=dark] .language-card[aria-selected=true]::after{color:#16332f}:root[data-theme=dark] .language-hello,:root[data-theme=dark] .language-note,:root[data-theme=dark] .language-empty{color:var(--theme-muted)}:root[data-theme=dark] .language-card:hover .language-hello,:root[data-theme=dark] .language-card[aria-selected=true] .language-hello{color:#254b42}:root[data-theme=dark] .language-dialog .language-close{background:var(--theme-well);color:var(--theme-text)}:root[data-theme=dark] .language-dialog .language-device{color:var(--theme-accent)}
@media(max-width:520px){.payment-theme-tools{gap:12px}.payment-theme-toggle{padding:9px}.payment-theme-toggle>span{display:none}.has-payment-theme .language-utility{gap:10px}.payment-theme-tools>a{font-size:11px}}
@media(max-width:355px){.payment-theme-tools:has(a,nav){width:100%;justify-content:space-between}.has-payment-theme{column-gap:12px}}
:root[data-motion=reduced] .payment-theme-toggle,:root[data-motion=reduced] .payment-theme-toggle *{transition:none!important;rotate:none!important}@media(prefers-reduced-motion:reduce){.payment-theme-toggle,.payment-theme-toggle *{transition:none!important;rotate:none!important}}

:root[data-payment-page=legal] :is(h1,h2,th,td,dt,dd){overflow-wrap:anywhere;hyphens:auto}

@media(max-width:800px){.payment-theme-toggle>span{display:none}.payment-theme-toggle{padding:9px}}
@media(max-width:520px){header.language-host.has-payment-theme{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:12px}header.language-host.has-payment-theme>:is(.brand,.shop-brand){grid-column:1;grid-row:1;min-width:0}header.language-host.has-payment-theme>.language-utility{display:contents}header.language-host.has-payment-theme .payment-theme-toggle{grid-column:2;grid-row:1;justify-self:end}header.language-host.has-payment-theme .language-launch{grid-column:2;grid-row:2;justify-self:end}header.language-host.has-payment-theme .language-utility>a{grid-column:1;grid-row:2;justify-self:start;min-width:0;max-width:100%;font-size:11px}}
