/* Native route owner applies cipher chrome and restores other routes. */
:root{--chrome-cipher:#101a33}
html[data-header-theme=cipher]{--app-chrome:var(--chrome-cipher);background:#101a33}
html[data-header-theme=cipher] .route-skeleton,html[data-header-theme=cipher] .route-cover{background:#101a33}
html[data-header-theme=cipher] .route-skeleton-card i{background:#263758}
html[data-header-theme=cipher] .route-skeleton-card i:first-child{background:#20304b}
html[data-header-theme=cipher] .route-skeleton-card i:last-child{background:#1b2946}
html[data-header-theme=cipher] body.tazik-app :is(.shell>header,.hub-header,.discussion-header,.header),html[data-header-theme=cipher] body.tazik-app:before{background:var(--chrome-cipher)}
.cipher-main,.around-cipher,body.cipher-page{
 --cipher-cobalt:#4563c6;
 --cipher-citron:#dce77a;
 --cipher-ink:#101a33;
 --cipher-paper:#f8f1df;
 --cipher-mist:#20304b;
 --cipher-muted:#b4bfd9;
 --cipher-line:#43516b;
 --cipher-orange:#ffbe72;
 --cipher-surface:#20304be8;
 --cipher-error:#ff8b91;
 --cipher-success:#8be0a3;
 --cipher-success-soft:#365d53;
 --cipher-error-bright:#f4667b;
 --app-burgundy:var(--cipher-citron);
 --app-green:var(--cipher-paper);
 --app-ink:var(--cipher-paper);
 --app-muted:var(--cipher-muted);
 --app-line:var(--cipher-line);
 --app-mint:var(--cipher-mist);
 --app-selected:var(--cipher-citron);
}


/* Native app palette, fonts and navigation remain the owners of the visual language. */
.tazik-app .around-cipher{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;margin:20px 0;background:var(--app-mint);color:var(--app-ink);text-decoration:none;border:1px solid var(--app-line);box-shadow:0 3px 5px #34302f12;}
.around-cipher-copy small{font:12px TazikText,Arial,sans-serif;color:var(--app-green);}
.tazik-app .around-cipher h2{font:22px/1.2 TazikCompactHeading,TazikText,sans-serif;margin:5px 0 8px;}
.around-cipher p{font:14px/1.4 TazikText,Arial,sans-serif;margin:0;}
.around-cipher-badge{width:64px;height:64px;image-rendering:pixelated;}
.tazik-app .cipher-main{max-width:720px;padding-inline:18px;padding-bottom:20px;}
.tazik-app .cipher-heading{margin-bottom:0;}
.tazik-app .cipher-heading h1{font-size:20px;}
.cipher-tabs{display:flex;gap:4px;align-items:center;padding:4px;background:#eee8dc;margin:14px 0 26px;}
.cipher-tabs a{display:flex;flex:1;justify-content:center;align-items:center;min-height:48px;color:#746758;text-decoration:none;font:17px/1.2 TazikCompact,TazikText,sans-serif;}
.cipher-tabs a[aria-current]{background:var(--app-cream);color:var(--app-burgundy);box-shadow:0 2px 6px #4a3b2f18;}
.cipher-issue-head{margin:0 0 8px;}
.cipher-issue-head p,.cipher-discovery-meta{font:12px/1.4 TazikText,Arial,sans-serif;color:var(--app-muted);margin:0 0 6px;}
.tazik-app .cipher-issue-head h2{font:34px/1.1 TazikCompactHeading,TazikText,monospace;color:var(--app-burgundy);margin:14px 0 10px;}
.cipher-issue-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font:12px/1.5 TazikCompact,monospace;color:var(--app-green);}
.cipher-issue-meta>span:first-child{padding:4px 8px;background:var(--cipher-tone,var(--app-mint));}
.cipher-issue-meta>span:last-child{font:17px TazikCompact,monospace;}
.cipher-total{color:var(--app-muted);font-size:12px;}
.cipher-issue-head .cipher-chapter-name{font:13px/1.4 TazikCompact,monospace;color:#786a5c;margin:0;}
.cipher-main [data-tone=mint]{--cipher-tone:#e3e8f7;}.cipher-main [data-tone=sky]{--cipher-tone:#eef1d8;}.cipher-main [data-tone=peach]{--cipher-tone:#e3e8f7;}.cipher-main [data-tone=gold]{--cipher-tone:#eef1d8;}
/* Each word keeps its own tile as letters open; reserve its padding and border in the cell width. */
.cipher-board{--cipher-letter-gap:3px;--cipher-cell-min:22px;display:flex;flex-wrap:wrap;gap:12px;align-items:start;align-content:start;padding:24px 0 22px;container-type:inline-size;}
.cipher-word{display:inline-flex;flex:0 0 auto;gap:var(--cipher-letter-gap);max-width:100%;align-items:center;box-sizing:border-box;padding:4px 6px;background:linear-gradient(135deg,#f8efdd90,var(--app-cream) 75%);border:1px solid #fffef8;border-radius:0;box-shadow:0 3px 8px #674b3d22;}
.tazik-app .cipher-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:clamp(var(--cipher-cell-min),calc((100cqw - 14px - (var(--longest) - 1)*var(--cipher-letter-gap))/var(--longest)),34px);min-width:0;min-height:58px;padding:5px 0 4px;background:transparent;color:var(--app-green);border:0;border-bottom:2px solid #bec7df;box-shadow:none;border-radius:0;}
.cipher-cell span{font:24px/1.1 TazikCompact,TazikText,monospace;}
.cipher-cell small{font:11px/1 TazikText,Arial,sans-serif;opacity:.85;}
.tazik-app .cipher-cell.is-open{background:transparent;color:var(--app-ink);opacity:1;border-bottom-color:transparent;}
.tazik-app .cipher-cell.is-selected{background:var(--app-burgundy);color:var(--app-cream);border-bottom-color:var(--app-burgundy);box-shadow:none;}
.tazik-app .cipher-cell:focus-visible,.cipher-tabs a:focus-visible,.cipher-key:focus-visible,.cipher-text:focus-visible{outline:2px solid var(--app-green);outline-offset:3px;}
.cipher-punctuation{font:20px/1.2 TazikText,Arial,sans-serif;}
.cipher-input-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font:13px/1.4 TazikText,Arial,sans-serif;padding-top:14px;border-top:1px solid #d7c7ac80;color:var(--app-muted);}
.cipher-input-meta b{font-weight:600;color:var(--app-burgundy);}
.cipher-errors.is-last,.cipher-errors.is-last b{color:var(--cipher-error);}
.cipher-feedback{min-height:20px;font:13px/1.4 TazikCompact,monospace;color:var(--app-green);margin:8px 0 14px;}
.cipher-keyboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;}
.tazik-app .cipher-key{font:21px/1.1 TazikCompact,TazikText,monospace;min-width:0;min-height:55px;padding:6px 0;background:var(--app-cream);color:var(--app-ink);border:1px solid #fffef8;border-radius:0;box-shadow:0 2px 3px #674b3d24;}
.tazik-app .cipher-key:disabled{color:#b5aa99;background:transparent;opacity:1;border-color:transparent;box-shadow:none;}
.tazik-app .cipher-key:not(:disabled):hover{background:var(--app-mint);}
.tazik-app .cipher-key:not(:disabled):active{background:var(--app-burgundy);color:var(--app-cream);}
.tazik-app .cipher-key.is-wrong{color:var(--app-orange);text-decoration:line-through;background:#f4dfd8;opacity:.65;}
.cipher-help-actions{display:flex;justify-content:space-between;gap:12px;margin:20px 0 8px;}
.tazik-app .cipher-text{color:var(--app-green);background:transparent;border:0;box-shadow:none;padding:8px 0;min-height:42px;display:inline-flex;align-items:center;font:15px/1.3 TazikCompact,TazikText,sans-serif;text-decoration:underline;text-underline-offset:4px;}
.tazik-app .cipher-help-actions .cipher-text{padding:10px 14px;min-height:48px;border-radius:22px;background:#e3e8f76b;text-decoration:none;}
.cipher-clue,.cipher-notice,.cipher-practice{font:14px/1.45 TazikText,Arial,sans-serif;padding:12px 14px;border-left:2px solid var(--app-green);background:#eef0f8;margin:8px 0 16px;}
.cipher-practice .cipher-text{margin-left:8px;}
.cipher-rules{font:13px/1.5 TazikText,Arial,sans-serif;color:var(--app-muted);margin:4px 0 0;}
.cipher-rules summary,.cipher-demo summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;}
.cipher-rules summary::after,.cipher-demo summary::after{content:'+';font:16px TazikText,Arial,sans-serif;}
.cipher-rules[open] summary::after,.cipher-demo[open] summary::after{content:'−';}
.cipher-rules p{margin:4px 0 10px;}
.cipher-demo{font:11px/1.45 TazikText,Arial,sans-serif;color:var(--app-muted);margin-top:30px;padding-top:4px;border-top:1px solid var(--app-line);}
.cipher-demo p{max-width:480px;}
.cipher-demo-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;}
.cipher-languages{display:flex;gap:12px;}
.cipher-languages a{color:var(--app-muted);text-decoration:none;padding:8px 0;}
.cipher-languages a[aria-current]{color:var(--app-green);text-decoration:underline;}
.cipher-section-note{font:14px/1.5 TazikText,Arial,sans-serif;color:var(--app-muted);margin:6px 0 16px;}
.cipher-issues{list-style:none;margin:0;padding:0;}
.cipher-issues li>a,.cipher-issues li>div{display:grid;grid-template-columns:1fr 18px;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid var(--app-line);text-decoration:none;color:var(--app-ink);}
.cipher-issues strong{display:block;font:22px/1.2 TazikCompactHeading,TazikText,sans-serif;}
.cipher-issues small{display:block;font:12px/1.4 TazikText,Arial,sans-serif;color:var(--app-muted);margin-top:7px;}
.cipher-issue-number{font:18px TazikCompact,TazikText,monospace;color:var(--app-muted);}
.cipher-issues [aria-disabled]{color:#74695e;}
.cipher-issues .is-current>a{background:#e3e8f750;}
.cipher-arrow{width:7px;height:7px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);}
.cipher-answer{background:#e3e8f780;border:1px solid #fffef8;padding:22px;margin:24px 0 20px;box-shadow:0 4px 12px #674b3d18;}
.cipher-result-label{font:13px/1.4 TazikCompact,monospace;color:var(--app-green);margin:0 0 14px;}
.tazik-app .cipher-result h2,.tazik-app .cipher-discoveries h2{font:29px/1.3 TazikCompactHeading,TazikText,sans-serif;margin:0;text-transform:none;overflow-wrap:anywhere;}
.cipher-fact,.cipher-discoveries article>p:not(.cipher-discovery-meta){font:19px/1.65 TazikReading,Arial,sans-serif;color:var(--app-ink);}
.cipher-source,.cipher-discovery-links a{font:13px/1.5 TazikText,Arial,sans-serif;color:var(--app-green);text-underline-offset:3px;}
.cipher-result-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin:28px 0;}
.tazik-app .cipher-primary{display:inline-flex;align-items:center;justify-content:center;min-height:50px;background:var(--app-burgundy);color:#fff9e9;padding:12px 18px;text-decoration:none;border:0;border-radius:0;box-shadow:0 3px 6px #672f4020;font:17px/1.3 TazikCompact,TazikText,sans-serif;}
.cipher-empty{padding:35px 0 25px;max-width:440px;font:16px/1.6 TazikText,Arial,sans-serif;}
.cipher-empty p{margin:0 0 22px;}
.cipher-discoveries article{padding:24px 20px;margin:0 0 18px;background:var(--app-cream);border:1px solid #fffef8;box-shadow:0 3px 12px #674b3d15;}
.cipher-discovery-links{display:flex;gap:24px;margin-top:18px;}
.cipher-finished{padding:24px 20px;margin-bottom:22px;background:var(--app-mint);}
.cipher-finished img{float:right;margin:0 0 12px 16px;image-rendering:pixelated;}
.tazik-app .cipher-finished h2{font:23px/1.3 TazikCompactHeading,TazikText,sans-serif;}
.cipher-finished p{font:14px/1.5 TazikText,Arial,sans-serif;color:var(--app-muted);}
.cipher-modal-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px;}
.cipher-season-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 20px;background:linear-gradient(120deg,#e3e8f7,#f0f2fa);border:1px solid #fffef8;box-shadow:0 4px 12px #674b3d20;}
.cipher-season-hero img{flex:none;width:88px;height:88px;image-rendering:pixelated;}
.cipher-season-hero p{font:14px/1.5 TazikCompact,monospace;margin:8px 0 0;color:var(--app-green);}
.cipher-season-hero p:first-child{font-size:11px;margin:0 0 12px;}
.tazik-app .cipher-season-hero h2{font:38px/1.1 TazikCompactHeading,monospace;margin:0;color:var(--app-burgundy);}
.cipher-season-progress{display:grid;grid-template-columns:1fr auto;gap:9px;font:13px TazikCompact,monospace;margin:24px 0 12px;color:var(--app-green);}
.cipher-season-progress progress{grid-column:1/-1;appearance:none;border:0;width:100%;height:4px;background:#e6ddcb;margin:0;}
.cipher-season-progress progress::-webkit-progress-bar{background:#e6ddcb;}.cipher-season-progress progress::-webkit-progress-value{background:var(--app-green);}
.cipher-chapter{margin:14px 0;background:#fffdf580;border:1px solid #fffef8;box-shadow:0 3px 10px #674b3d16;}
.cipher-chapter summary{display:grid;grid-template-columns:36px 1fr 10px;align-items:center;gap:12px;padding:20px 16px;cursor:pointer;list-style:none;background:var(--cipher-tone);}
.cipher-chapter summary::-webkit-details-marker{display:none;}
.cipher-chapter-index{font:18px TazikCompact,monospace;color:var(--app-green);}
.cipher-chapter summary strong{display:block;font:22px/1.3 TazikCompactHeading,monospace;color:var(--app-ink);}
.cipher-chapter summary small{display:block;margin-top:6px;font:11px TazikCompact,monospace;color:#6d6454;}
.cipher-chevron{width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);}
.cipher-chapter[open] .cipher-chevron{transform:rotate(225deg);}
.cipher-chapter .cipher-issues li>a,.cipher-chapter .cipher-issues li>div{padding:18px 16px;border-bottom:1px solid #d7c7ac55;}
.cipher-chapter .cipher-issues li:last-child>a,.cipher-chapter .cipher-issues li:last-child>div{border:0;}
.cipher-chapter summary:focus-visible{outline:2px solid var(--app-green);outline-offset:3px;}
@media(max-width:400px){.tazik-app .cipher-main{padding-inline:14px;}.cipher-tabs{margin-bottom:22px;}.cipher-tabs a{font-size:16px;}.tazik-app .cipher-issue-head h2{font-size:32px;}.cipher-board{--cipher-letter-gap:2px;--cipher-cell-min:20px;gap:10px;padding:22px 0 20px;}.cipher-cell span{font-size:25px;}.cipher-keyboard{gap:5px;grid-template-columns:repeat(8,minmax(0,1fr));}.tazik-app .cipher-key{font-size:23px;min-height:55px;}.cipher-help-actions{gap:10px;}.tazik-app .cipher-text{font-size:14px;}.cipher-demo{margin-top:22px;}.tazik-app .cipher-heading h1{font-size:18px;}.cipher-season-hero{padding:20px 16px;}.cipher-season-hero img{width:64px;height:64px;}.tazik-app .cipher-season-hero h2{font-size:34px;}.cipher-answer{padding:18px;}}
/* Profile-style segmented rail: stable DOM and a single translating selection. */
.cipher-tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;background:var(--cipher-ink);border:0;}
.cipher-tab-track{position:absolute;inset:0 auto 0 0;width:calc(100% / 3);background:var(--cipher-citron);pointer-events:none;z-index:0;}
.cipher-tabs a{position:relative;z-index:1;min-width:0;min-height:55px;color:var(--cipher-paper);white-space:nowrap;background:transparent;}
.cipher-tabs a[aria-current]{background:transparent;color:var(--cipher-ink);box-shadow:none;}
.cipher-tabs a:focus-visible{outline:2px solid #fff;outline-offset:-3px;}
.cipher-issue-right{display:flex;align-items:center;gap:8px;}
.cipher-cat-frame{display:block;flex:none;width:50px;height:50px;}
.cipher-cat-frame.is-large{width:100px;height:100px;}
.tazik-app canvas.cipher-cat{position:static;inset:auto;display:block;width:100%;height:100%;max-width:none;margin:0;transform:none;image-rendering:pixelated;pointer-events:none;}
.cipher-issue-head h2{scroll-margin-top:100px;}
.cipher-illustration{margin:24px 0 0;overflow:hidden;background:var(--app-mint);aspect-ratio:3/2;}
.cipher-illustration img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;}
.cipher-illustration+.cipher-answer{margin-top:0;border-top:0;}
.cipher-answer{position:relative;isolation:isolate;}
.cipher-salute{position:absolute;width:230px;height:230px;left:calc(50% - 115px);top:calc(50% - 115px);pointer-events:none;z-index:3;opacity:0;}
.cipher-salute svg{width:100%;height:100%;overflow:visible;}
.tazik-app .cipher-key,.tazik-app .cipher-cell,.cipher-board{position:relative;overflow:visible;}
.cipher-key-flash,.cipher-board-flash{position:absolute;inset:-4px;pointer-events:none;z-index:4;opacity:0;border:2px solid var(--feedback-colour);background:var(--feedback-wash);box-shadow:0 0 0 3px var(--feedback-wash),0 0 18px var(--feedback-wash);}
.cipher-key-flash.is-correct{--feedback-colour:var(--cipher-success);--feedback-wash:#44ba7b30;}
.cipher-key-flash.is-error,.cipher-board-flash{--feedback-colour:var(--cipher-error-bright);--feedback-wash:#df526b20;}
.cipher-board-flash{inset:8px 0;box-shadow:inset 0 0 24px var(--feedback-wash);}
.tazik-app .cipher-cell>.cipher-cell-salute{position:absolute;display:block;pointer-events:none;width:68px;height:68px;left:calc(50% - 34px);top:calc(50% - 34px);z-index:5;opacity:0;}
.cipher-cell-salute svg{display:block;width:100%;height:100%;overflow:visible;}
.cipher-discoveries article .cipher-illustration{margin:0 0 12px;}
.cipher-result h2:focus{outline:none;}
@media(max-width:400px){.cipher-tabs a{font-size:15px;}.cipher-cat-frame.is-large{width:82px;height:82px;}}
@media(prefers-reduced-motion:reduce){#cipher-view *{scroll-behavior:auto;}}
/* A day stays inside the existing Play / Season / Discoveries sections. */
.cipher-day-steps{display:flex;gap:8px;margin:18px 0 4px;}
.cipher-day-steps>a,.cipher-day-steps>span{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;text-decoration:none;font:16px TazikCompact,monospace;color:var(--cipher-ink);background:var(--cipher-mist);border-bottom:3px solid transparent;}
.cipher-day-steps>a[aria-current]{border-bottom-color:var(--cipher-cobalt);background:var(--cipher-paper);}
.cipher-day-steps>.is-done{background:var(--cipher-citron);}
.cipher-day-steps>[aria-disabled]{opacity:.45;}
.cipher-day-steps>a:focus-visible,.cipher-discovery-day>summary:focus-visible{outline:2px solid var(--cipher-cobalt);outline-offset:3px;}
.cipher-day-complete{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 0;padding:14px 16px;background:var(--cipher-citron);color:var(--cipher-ink);font:16px TazikCompact,monospace;}
.cipher-discovery-day{margin:0 0 16px;border:1px solid #fffef8;background:var(--cipher-paper);}
.cipher-discovery-day>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:18px;color:var(--cipher-ink);font:16px TazikCompact,monospace;}
.cipher-discovery-day>summary::-webkit-details-marker{display:none;}
.cipher-discovery-day>summary small{display:block;font:11px TazikText,sans-serif;color:var(--app-muted);margin-bottom:6px;}
.cipher-discovery-day>summary strong{font:24px/1.2 TazikCompactHeading,monospace;}
.cipher-discovery-day>summary>span:last-child{white-space:nowrap;}
.cipher-discovery-day>summary>span:last-child::after{content:'+';display:inline-block;width:12px;margin-left:12px;}
.cipher-discovery-day[open]>summary>span:last-child::after{content:'−';}
.cipher-day-stories>.cipher-illustration{margin:0;}
.cipher-day-stories>article{border:0;border-top:1px solid var(--app-line);box-shadow:none;margin:0;padding:22px 18px;}
.cipher-day-stories>.cipher-text{margin:0 18px 16px;}
.tazik-app .cipher-day-stories h2{font-size:24px;}

/* Geography is explicit for trips outside the city. */
.cipher-location{display:block;font:12px/1.45 TazikText,Arial,sans-serif;color:var(--cipher-muted,#60677a);margin:6px 0 10px}.cipher-issues .cipher-location,.cipher-discovery-day .cipher-location{font-size:11px;margin:4px 0}

.cipher-tabs{margin-bottom:12px}
.cipher-tabs.is-rewards .cipher-tab-track{visibility:hidden}
.cipher-wallet{display:flex;justify-content:space-between;align-items:center;min-height:44px;text-decoration:none;color:var(--cipher-cobalt);font:16px TazikCompact,TazikText,sans-serif;margin-bottom:18px}
.cipher-wallet b{font-weight:400;font-size:20px}.cipher-input-meta{gap:8px;font-size:12px}.cipher-lives{position:relative}.cipher-lives.is-last,.cipher-lives.is-last b{color:var(--cipher-error)}
.cipher-life-effects{position:relative;display:inline-block;width:0;height:1em}.cipher-points-pop{position:absolute;right:-12px;top:-12px;font:16px/1 TazikCompact,TazikText,monospace!important;color:var(--cipher-success);white-space:nowrap;pointer-events:none;z-index:8;opacity:0;text-shadow:0 1px var(--cipher-paper)}
.cipher-points-pop.is-error{color:var(--cipher-error);right:0;top:-14px}
.cipher-key-flash,.cipher-board-flash{border:0;box-shadow:none;border-radius:45%;background:radial-gradient(ellipse at center,var(--feedback-wash) 0%,var(--feedback-wash) 20%,transparent 73%);inset:-14px}
.cipher-key-flash.is-error,.cipher-board-flash{--feedback-wash:#e64d6565}.cipher-key-flash.is-correct{--feedback-wash:#44ba7b65}
.cipher-board-flash{inset:-18px;-webkit-mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}
.cipher-cell-glow{position:absolute;inset:-14px;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse,#48bd7b75,transparent 70%);opacity:0;z-index:2}
.cipher-cell>span:first-child{position:relative;z-index:3}.cipher-cell-salute{z-index:5}.cipher-round-score{font:25px TazikCompact,TazikText,sans-serif;color:var(--cipher-success);margin:16px 0}.cipher-round-score span{font-size:14px}
.cipher-rewards-head h2{font:30px/1.1 TazikCompactHeading,TazikText,sans-serif;color:var(--cipher-cobalt);margin:18px 0 10px}.cipher-rewards-head>p{font:14px/1.45 TazikText,sans-serif;color:var(--app-muted)}
.cipher-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0 28px}.cipher-stats span{display:flex;flex-direction:column;gap:7px;font:12px TazikText,sans-serif;color:var(--app-muted)}.cipher-stats b{font:28px TazikCompact,TazikText,sans-serif;color:var(--cipher-cobalt)}
.cipher-prize-category h3{font:22px TazikCompactHeading,TazikText,sans-serif;margin:28px 0 14px}.cipher-prizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.cipher-prize{min-width:0;display:flex;flex-direction:column;align-items:center;padding:14px 8px 12px;background:#e7e9f345;position:relative}.cipher-prize canvas{width:96px;height:96px;image-rendering:pixelated}.cipher-prize h4{font:17px/1.2 TazikCompact,TazikText,sans-serif;text-align:center;min-height:40px;margin:12px 0 10px}.tazik-app .cipher-prize-buy{width:100%;min-height:42px;background:var(--cipher-cobalt);color:var(--cipher-paper);border:0;border-radius:0;font:18px TazikCompact,sans-serif;box-shadow:none}.tazik-app .cipher-prize-buy:disabled{background:#dbdeec;color:#757c98;opacity:1}.cipher-prize small{font:11px TazikText,sans-serif;margin-top:8px;color:var(--app-muted)}.cipher-prize-owned{display:flex;align-items:center;min-height:42px;font:15px TazikCompact,sans-serif;color:var(--cipher-cobalt);text-decoration:none}.cipher-loading{animation:cipher-load 1.4s ease-in-out infinite}@keyframes cipher-load{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.cipher-loading{animation:none}}

/* Unified identity; limited to the game and its hub invitation. */
body.tazik-app .around-tiles{gap:20px;padding-top:20px}
body.tazik-app .around-tiles>.gift-week-slot{grid-column:1/-1;min-width:0;padding-top:0}
body.tazik-app .around-cipher{position:relative;isolation:isolate;grid-column:1/-1;display:flex;align-items:center;min-height:112px;margin:0;padding:24px;border:0;overflow:hidden;background:var(--cipher-ink);color:var(--cipher-paper)}
body.tazik-app .around-cipher h2{position:relative;z-index:1;margin:0;max-width:calc(100% - 74px);font:20px/1.5 var(--display-font);color:var(--cipher-paper)}
.around-cipher-copy{width:100%;min-width:0}
.around-cipher-badge{position:absolute;right:-24px;top:-28px;width:160px;height:168px;object-fit:cover;transform:rotate(10deg);opacity:.68;image-rendering:pixelated;mask-image:linear-gradient(90deg,transparent,#000 24%);pointer-events:none}
body.tazik-app.cipher-page{background:#101a33;color:var(--cipher-paper)}
body.cipher-page #cipher-view{position:relative;isolation:isolate;min-height:100vh;background:#101a33}
body.cipher-page #cipher-view::before{content:'';position:fixed;inset:-24px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 80% 12%,#4563c628,transparent 60%),linear-gradient(#101a33eb,#101a33f7),url('/mini/static/cipher/art/rewards/19-hotel-square-v4.webp') center/640px auto;opacity:.8}
html.motion-paused #cipher-view::before,html.motion-paused .around-cipher-badge{animation-play-state:paused!important}
body:has(dialog[open]) #cipher-view::before,body:has(dialog[open]) .cipher-chapter::after,body:has(dialog[open]) .around-cipher-badge{animation-play-state:paused!important}
body.tazik-app .cipher-main{position:relative;max-width:720px;padding-inline:var(--app-gutter);padding-bottom:28px;color:var(--cipher-paper)}
body.tazik-app #cipher-view .cipher-heading{height:var(--section-row);min-height:var(--section-row);margin-bottom:0;background:#101a33;color:var(--cipher-paper);--bar-shadow:linear-gradient(#080e1e50,transparent)}
body.tazik-app .cipher-heading h1{color:var(--cipher-paper);font-family:var(--display-font)}
body.tazik-app .cipher-heading .around-back{color:var(--cipher-paper);width:32px;height:var(--section-row);min-height:var(--section-row)}
body.tazik-app .cipher-heading .around-back::before{background:currentColor;mask:url('/transport/assets/pixel/back.svg') center/contain no-repeat}
body.tazik-app.cipher-page .app-dialog{--app-cream:#20304b;--app-ink:#f8f1df;--app-green:#f8f1df;--app-orange:#ffbe72;background:var(--app-cream);color:var(--app-ink);border:1px solid #b4bfd94d;box-shadow:0 12px 48px #080e1e80}
body.tazik-app.cipher-page .app-dialog::backdrop{background:#080e1eaa}
body.tazik-app.cipher-page .app-dialog .app-modal-close{background:transparent;color:var(--app-ink)}
.cipher-tabs{margin:0 calc(-1 * var(--app-gutter)) 18px;background:#1b2946;min-height:55px}
.cipher-tabs a{min-height:55px;font:17px/1.3 var(--ui-font);color:var(--cipher-paper)}
@media(max-width:359px){.cipher-tabs a{font-size:15px;padding-inline:6px}}
.cipher-tab-track{background:var(--cipher-citron)}
.cipher-tabs a[aria-current]{color:var(--cipher-ink)}
.cipher-wallet{box-sizing:border-box;min-height:60px;padding:12px 16px;margin:0 0 20px;background:#20304bc9;color:var(--cipher-paper);border:1px solid #b4bfd922;gap:16px;font:17px/1.3 var(--ui-font)}
.cipher-wallet b{font:22px/1.2 var(--ui-font);color:var(--cipher-orange);white-space:nowrap}
.cipher-wallet[aria-current]{background:var(--cipher-citron);color:var(--cipher-ink);border-color:transparent}
.cipher-wallet[aria-current] b{color:var(--cipher-ink)}
.cipher-wallet:focus-visible,.cipher-main :is(a,button,summary):focus-visible{outline:2px solid var(--cipher-citron);outline-offset:3px}
.cipher-season-hero{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px 18px;padding:22px 20px;background:linear-gradient(120deg,#263758e6,#1b2946e6);border:1px solid #b4bfd91c;box-shadow:none}
.cipher-season-hero>div:first-child{display:contents}
.cipher-season-hero p{grid-column:1/-1;margin:0;font:17px/1.5 var(--ui-font);color:var(--cipher-muted)}
.cipher-season-hero p:first-child{grid-column:1;grid-row:1;margin:0;font:12px/1.4 var(--ui-font);color:var(--cipher-citron)}
body.tazik-app .cipher-season-hero h2{grid-column:1;grid-row:2;font:23px/1.45 var(--display-font);color:var(--cipher-paper);margin:0;overflow-wrap:normal}
.cipher-season-visual{grid-column:2;grid-row:1/3;align-self:center;width:100px;height:100px;overflow:hidden;mask-image:linear-gradient(120deg,transparent,#000 20%,#000 80%,transparent);opacity:.85}
.cipher-season-hero .cipher-season-visual img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.cipher-season-progress{font:15px/1.4 var(--ui-font);color:var(--cipher-muted);margin:22px 0;gap:10px}
.cipher-season-progress b{color:var(--cipher-paper);font-weight:400}
.cipher-season-progress progress,.cipher-season-progress progress::-webkit-progress-bar{background:#b4bfd922}
.cipher-season-progress progress::-webkit-progress-value{background:var(--cipher-citron)}
.cipher-chapter{position:relative;isolation:isolate;margin:14px 0;background:#20304bd9;border:1px solid #b4bfd924;box-shadow:none}
.cipher-chapter summary,.cipher-chapter-label{display:grid;grid-template-columns:32px minmax(0,1fr) 12px;gap:14px;align-items:center;padding:22px 18px;background:transparent;min-height:48px}
.cipher-chapter summary strong,.cipher-chapter-label strong{display:block;font:18px/1.5 var(--display-font);color:var(--cipher-paper);overflow-wrap:normal}
.cipher-chapter summary small,.cipher-chapter-label small{display:block;margin-top:10px;color:var(--cipher-muted);font:13px/1.4 var(--ui-font)}
.cipher-chapter-index{color:var(--cipher-muted);font:19px/1.2 var(--ui-font)}
.cipher-chapter[data-current]{border-color:#dce77a70}
.cipher-chapter[data-current] .cipher-chapter-index{color:var(--cipher-citron)}
.cipher-chapter[data-current]::after{content:'';position:absolute;inset:-1px;z-index:-1;pointer-events:none;border:1px solid var(--cipher-citron);box-shadow:0 0 12px #dce77a33;opacity:.4}
@keyframes cipher-edge{0%,100%{opacity:.22}50%{opacity:.75}}
@media(prefers-reduced-motion:no-preference){.cipher-chapter[data-current]::after{animation:cipher-edge 4.8s ease-in-out infinite}}
.cipher-chapter.is-locked{background:#18243c;border-color:#b4bfd914}
.cipher-chapter.is-locked strong,.cipher-chapter.is-locked .cipher-chapter-index{color:#8995af}
.cipher-chapter.is-locked small{color:#8e9ab2}
.cipher-chapter .cipher-issues li>a,.cipher-chapter .cipher-issues li>div{padding:20px 18px;border-bottom:1px solid #b4bfd91c}
.cipher-issues strong{font:17px/1.5 var(--display-font);color:var(--cipher-paper)}
.cipher-issues small{font:13px/1.4 var(--ui-font);color:var(--cipher-muted)}
.cipher-issues .is-current>a{background:#dce77a0a;box-shadow:inset 3px 0 var(--cipher-citron)}
.cipher-issues [aria-disabled] strong,.cipher-issues [aria-disabled] small{color:#8e9ab2}
.cipher-discovery-day{background:#20304bd9;border:1px solid #b4bfd926;margin:0 0 14px}
.cipher-discovery-day>summary{min-height:55px;padding:20px 18px;color:var(--cipher-paper)}
.cipher-discovery-day>summary strong{font:18px/1.5 var(--display-font);color:var(--cipher-paper)}
.cipher-discovery-day>summary small{font:12px/1.5 var(--ui-font);color:var(--cipher-muted)}
.cipher-discovery-day>summary>span:last-child{font:17px/1.5 var(--ui-font);color:var(--cipher-muted)}
.cipher-day-stories>article{background:transparent;border-color:#b4bfd926}
body.tazik-app .cipher-discoveries h2,body.tazik-app .cipher-result h2{font:19px/1.65 var(--display-font);color:var(--cipher-paper);text-transform:none}
.cipher-fact,.cipher-discoveries article>p:not(.cipher-discovery-meta){color:var(--cipher-paper)}
.cipher-source,.cipher-discovery-links a,.cipher-discovery-meta,.cipher-result-label{color:var(--cipher-muted)}
.cipher-answer{background:var(--cipher-surface);border:1px solid #b4bfd926;box-shadow:none}
body.tazik-app .cipher-primary{background:var(--cipher-citron);color:var(--cipher-ink);min-height:55px;box-shadow:none;font:17px/1.4 var(--ui-font)}
body.tazik-app .cipher-text{color:var(--cipher-paper)}
body.tazik-app .cipher-issue-head h2{font:21px/1.5 var(--display-font);color:var(--cipher-paper)}
.cipher-issue-meta{color:var(--cipher-muted)}
.cipher-issue-meta>span:first-child{background:#20304b}
.cipher-rewards-head h2{font:23px/1.5 var(--display-font);color:var(--cipher-paper);margin:24px 0 12px}
.cipher-rewards-head>p{font:17px/1.5 var(--ui-font);color:var(--cipher-muted)}
.cipher-stats{padding:18px 0;border-block:1px solid #b4bfd926}
.cipher-stats b{color:var(--cipher-orange)}
.cipher-prize-category h3{font:18px/1.5 var(--display-font);color:var(--cipher-paper)}
.cipher-prize{background:#20304bd9;border:1px solid #b4bfd918}
.cipher-prize h4{font:17px/1.5 var(--ui-font);color:var(--cipher-paper)}
body.tazik-app .cipher-prize-buy{background:var(--cipher-citron);color:var(--cipher-ink);min-height:55px}
body.tazik-app .cipher-prize-buy:disabled{background:#304059;color:#9da8c0}
.cipher-prize-owned{color:var(--cipher-citron);min-height:55px}
.cipher-location,.cipher-rules{color:var(--cipher-muted)}
.cipher-finished{background:#20304b;color:var(--cipher-paper)}
body.tazik-app .cipher-finished h2{font:21px/1.5 var(--display-font)}
@media(max-width:359px){body.tazik-app .around-cipher h2{font-size:18px;max-width:calc(100% - 65px)}.cipher-season-hero{grid-template-columns:minmax(0,1fr) 78px;gap:12px;padding:18px 16px}.cipher-season-visual{width:78px;height:88px}body.tazik-app .cipher-season-hero h2{font-size:20px}.cipher-chapter summary,.cipher-chapter-label{padding:18px 14px;gap:10px;grid-template-columns:25px minmax(0,1fr) 10px}.cipher-chapter summary strong,.cipher-chapter-label strong,.cipher-discovery-day>summary strong{font-size:17px}}

/* Static Hotel Uzbekistan panjara, already drawn from the approved reference. */
body.cipher-page #cipher-view::before{inset:0;background:linear-gradient(#101a33f3,#101a33f8),url('/mini/static/cipher/art/rewards/19-hotel-square-v4.webp') center top/520px auto;opacity:1;transform:none;animation:none}
.around-cipher-badge{inset:0 0 0 auto;width:56%;height:100%;transform:none;opacity:.6;object-fit:cover;mask-image:linear-gradient(90deg,transparent,#000)}
.cipher-season-hero{position:relative;isolation:isolate;display:block;overflow:hidden;padding:24px 20px}
.cipher-season-hero>div:first-child{display:block;position:relative;z-index:1}.cipher-season-hero p:first-child{margin-bottom:14px}
.cipher-season-hero h2{max-width:80%;margin-bottom:14px!important}.cipher-season-hero p:last-child{max-width:100%;color:var(--cipher-paper)}
.cipher-season-visual{position:absolute;inset:0 0 0 auto;width:60%;height:100%;z-index:0;opacity:.35;mask-image:linear-gradient(90deg,transparent,#000)}
.cipher-season-visual img{object-fit:cover!important}
body.tazik-app.cipher-page .app-nav::before{display:none}body.tazik-app.cipher-page .app-nav{box-shadow:none;border-top:1px solid #b4bfd926}
.cipher-chapter.is-complete summary{position:relative}.cipher-chapter.is-complete summary::after{content:'✓';position:absolute;right:34px;bottom:7px;color:#8be0a31f;font:76px/1 var(--ui-font);pointer-events:none}
.cipher-chapter.is-complete summary small{color:var(--cipher-success)}
.cipher-chapter .cipher-issues li>a,.cipher-chapter .cipher-issues li>div{display:grid;grid-template-columns:20px minmax(0,1fr) 8px;gap:12px;align-items:center}
.cipher-day-check{color:var(--cipher-success);font:23px/1 var(--ui-font);min-width:20px}

/* The glass is a static painted surface. Effects own only local opacity/transform. */
.cipher-board{--cipher-letter-gap:3px;--cipher-cell-min:18px;gap:12px 10px;padding:16px 0 18px}
.cipher-word{padding:4px 6px;background:linear-gradient(130deg,#293c5bed,#1a2943f5);border:1px solid #b4bfd92c;border-top-color:#c5d0e347;box-shadow:0 3px 10px #080e1e26}
body.tazik-app .cipher-cell{height:48px;min-height:48px;gap:2px;padding:3px 0;border-bottom:1px solid #b4bfd94d;color:var(--cipher-orange);background:transparent}
.cipher-cell span:first-child{font:25px/1.08 var(--ui-font);text-shadow:0 0 8px #ffbe7240}
.cipher-cell small{font:12px/1 var(--ui-font);color:var(--cipher-muted);opacity:1}
body.tazik-app .cipher-cell.is-open{color:var(--cipher-orange);border-bottom-color:transparent;opacity:1}
body.tazik-app .cipher-cell.is-selected{background:#dce77a1c;color:var(--cipher-citron);border-bottom-color:var(--cipher-citron);box-shadow:none}
body.tazik-app .cipher-cell.is-cursor{background:#dce77a2b;outline:1px solid var(--cipher-citron);outline-offset:0}
.cipher-cell.is-selected small{color:var(--cipher-citron)}
.cipher-punctuation{color:var(--cipher-orange)}
.cipher-keyboard{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;padding:10px;background:linear-gradient(135deg,#263953e6,#18263fe8);border:1px solid #b4bfd925;isolation:isolate}
body.tazik-app .cipher-key{box-sizing:border-box;aspect-ratio:1;height:auto;min-height:0;padding:0;display:grid;place-items:center;font:25px/1 var(--ui-font);color:var(--cipher-orange);background:#344560b3;border:1px solid #b4bfd92a;border-top-color:#c5d0e341;box-shadow:0 2px 0 #080e1e40}
body.tazik-app .cipher-key:disabled{color:#73819b;background:#20304b66;border-color:transparent;box-shadow:none}
body.tazik-app .cipher-key:not(:disabled):hover{background:#435474;color:var(--cipher-orange)}
body.tazik-app .cipher-key:not(:disabled):active{background:var(--cipher-orange);color:var(--cipher-ink)}
body.tazik-app .cipher-key.is-wrong{color:var(--cipher-error);background:#b14c5726;text-decoration:line-through;opacity:1}
.cipher-keyboard[aria-busy=true]{opacity:.72}
.cipher-day-steps{margin:16px 0 2px;gap:8px}
.cipher-day-steps>a,.cipher-day-steps>span{box-sizing:border-box;min-height:50px;color:var(--cipher-muted);background:#20304bc9;border:1px solid #b4bfd929;font:18px/1.2 var(--ui-font)}
.cipher-day-steps>.is-done{color:var(--cipher-muted);background:#243c42;border-color:#8be0a32b}
.cipher-day-steps>[aria-disabled]{background:#18243c;color:#8491aa;opacity:1;border-color:#b4bfd914}
.cipher-day-steps>a[aria-current]{background:var(--cipher-citron);color:var(--cipher-ink);border-color:transparent}
.cipher-input-meta{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;padding:14px 0 12px;margin:0;border-top:1px solid #b4bfd926;font:14px/1.4 var(--ui-font);color:var(--cipher-muted)}
.cipher-input-meta>span:first-child{grid-column:1;grid-row:1}
.cipher-input-meta .cipher-combo{grid-column:2;grid-row:1;text-align:right}
.cipher-input-meta .cipher-lives{grid-column:1/-1;grid-row:2;justify-self:end;white-space:nowrap;position:relative;padding-left:56px}
.cipher-input-meta b{font:17px/1.2 var(--ui-font);color:var(--cipher-paper)}
.cipher-input-meta .cipher-combo.is-positive,.cipher-input-meta .cipher-combo.is-positive b{color:var(--cipher-success)}
.cipher-input-meta .cipher-lives.has-errors b{color:var(--cipher-error)}
.cipher-input-meta .cipher-lives.is-last{color:var(--cipher-muted)}
.cipher-feedback{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cipher-feedback.is-input-hint{position:static;width:auto;height:auto;clip-path:none;white-space:normal;color:var(--cipher-paper);margin:4px 0 12px;font:15px/1.5 var(--ui-font)}
.cipher-help-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 14px;margin:14px 0 8px}
.cipher-meaning-slot{min-width:0}
.cipher-help-actions.has-clue .cipher-meaning-slot{min-width:0}
body.tazik-app .cipher-help-actions .cipher-text{min-height:50px;padding:10px 12px;background:#20304bcc;border:1px solid #b4bfd928;border-radius:0;box-sizing:border-box;font:15px/1.4 var(--ui-font);text-decoration:none}
body.tazik-app .cipher-help-actions .cipher-text:disabled{color:#8491aa;background:#18243c;opacity:1}
.cipher-help-actions>[data-action=letter-hint]{white-space:nowrap;justify-self:end}
.cipher-help-actions .cipher-clue{margin:0;padding:12px 14px;background:#20304be6;border-left:2px solid var(--cipher-orange);color:var(--cipher-paper);font:17px/1.5 var(--ui-font)}
.cipher-practice,.cipher-notice{background:#20304b;color:var(--cipher-paper);border-color:var(--cipher-orange)}
.cipher-points-pop{font:26px/1 var(--ui-font)!important;top:-16px;right:-10px;color:var(--cipher-success);text-shadow:0 2px #101a33,0 0 7px #101a33}
.cipher-life-effects{position:absolute;left:0;top:50%;width:48px;height:1em}
.cipher-points-pop.is-error{font-size:34px!important;right:0;top:-.5em;color:var(--cipher-error)}
.cipher-screen-wash{position:fixed;inset:0;z-index:1300;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,#f25d6838 0%,#ed465c55 85%,#ed465c40 100%);contain:strict}
.cipher-cell-glow{background:radial-gradient(ellipse,#68dc9a8a,transparent 70%)}
.cipher-rules{font:15px/1.5 var(--ui-font)}
.cipher-rules summary{min-height:50px}
@media(min-width:440px){.cipher-input-meta{grid-template-columns:auto 1fr auto}.cipher-input-meta .cipher-lives{grid-column:3;grid-row:1}.cipher-input-meta .cipher-combo{text-align:center}}
@media(max-width:359px){.cipher-keyboard{gap:5px;padding:7px}.cipher-board{--cipher-letter-gap:2px;gap:10px 8px}.cipher-word{padding-inline:5px}body.tazik-app .cipher-key{font-size:23px}.cipher-cell span:first-child{font-size:24px}}

.cipher-tutorial-note{margin:0 0 16px;color:var(--cipher-muted);font-size:16px;line-height:1.5}
.cipher-tutorial-row{background:rgba(220,231,122,.055)}
.cipher-fact-title{font-family:TazikUI,monospace;font-size:13px;line-height:1.65;color:var(--cipher-orange);margin:24px 0 10px}
.cipher-fact-title+.cipher-fact{margin-top:0}
.cipher-disclosure-body{display:flow-root;min-width:0}.cipher-disclosure-body[inert]{pointer-events:none}

/* Two stable counters; hint text is in a dialog and never reflows these controls. */
.cipher-input-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.cipher-input-meta .cipher-combo{text-align:left;white-space:nowrap}
.cipher-input-meta .cipher-lives{padding-left:0;justify-self:auto;white-space:nowrap}
.cipher-help-actions{grid-template-columns:minmax(80px,1fr) minmax(max-content,1.7fr);gap:10px}
.cipher-help-actions .cipher-meaning-slot>button,.cipher-help-actions>[data-action=letter-hint]{width:100%;white-space:nowrap}
body.tazik-app .cipher-help-actions .cipher-text{font-size:14px;padding-inline:10px}
.cipher-hint-copy{font:18px/1.65 var(--ui-font);color:var(--cipher-paper)}
.cipher-word{position:relative;overflow:visible}.cipher-cell{isolation:auto}
.cipher-points-pop{font:20px/1 TazikCompact,monospace!important;z-index:30;text-shadow:2px 2px #101a33,-1px -1px #101a33;pointer-events:none}
.cipher-life-effects{left:auto;right:-6px;top:-12px;width:48px}
.cipher-points-pop.is-error{font-size:38px!important;top:-22px;right:0}
.cipher-screen-wash{background:radial-gradient(ellipse at center,#f65c6533 15%,#e3445c80 100%);z-index:2200}
.cipher-keyboard[aria-busy=true]{opacity:1}.cipher-key.is-pending{background:#806a42!important;color:#fff2d8!important}

/* Compact shop, shared currency icon and two pieces of useful statistics. */
.cipher-samsa{display:inline-block;width:1em;height:1em;vertical-align:-.1em;flex:none;background:url('/mini/static/cipher/art/samsa.svg') center/contain no-repeat;image-rendering:pixelated}
.cipher-wallet b,.cipher-round-score,.cipher-prize-buy,.cipher-prize small{display:flex;align-items:center;gap:.35em}
.cipher-round-score .cipher-samsa{width:.85em;height:.85em}
.cipher-rewards-head>p{margin:20px 0 18px;color:var(--cipher-paper);font:18px/1.5 var(--ui-font)}
.cipher-rewards-head .cipher-stats{grid-template-columns:1fr 1fr;margin:0 0 20px;padding:16px 0;gap:24px}
.cipher-rewards-head .cipher-stats span{color:var(--cipher-muted);font:13px/1.4 var(--ui-font)}
.cipher-rewards-head .cipher-stats b{font:26px/1.2 var(--ui-font);color:var(--cipher-orange)}
.cipher-prize-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 18px}
body.tazik-app .cipher-prize-filters button{min-width:0;min-height:55px;padding:10px 2px;border:0;border-bottom:2px solid transparent;background:#20304b99;color:var(--cipher-muted);font:15px/1.3 var(--ui-font);border-radius:0;box-shadow:none}
body.tazik-app .cipher-prize-filters [aria-pressed=true]{color:var(--cipher-citron);border-bottom-color:var(--cipher-citron);background:#dce77a0b}
.cipher-prize{padding:14px 10px 12px;gap:0;overflow:hidden}
.cipher-prize canvas{width:120px;height:120px;max-width:100%;object-fit:contain}
body.tazik-app .cipher-prize-open{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--cipher-paper);box-shadow:none;text-align:center}
.cipher-prize-name{font:14px/1.5 var(--display-font);min-height:42px;display:grid;place-items:center}
.cipher-prize-open:focus-visible{outline:2px solid var(--cipher-citron);outline-offset:4px}
body.tazik-app .cipher-prize-dialog{background:#17253d;color:#fff5e2;max-width:420px;width:calc(100% - 28px);padding:24px 18px;box-sizing:border-box}
body.tazik-app .cipher-prize-dialog h2{color:#fff5e2;font:17px/1.5 var(--display-font);padding-right:48px}
body.tazik-app .cipher-prize-dialog .app-modal-close,body.tazik-app .cipher-hint-dialog .app-modal-close{width:56px;min-width:56px;height:56px;min-height:56px;padding:16px;top:4px;right:4px;background:transparent;border:0;box-shadow:none}
.cipher-prize-preview{display:grid;place-items:center;width:min(100%,264px);aspect-ratio:1;min-height:0;margin:18px auto}
body.tazik-app .cipher-prize-preview canvas.public-cat{width:min(100%,264px);height:auto;aspect-ratio:1;margin:0;image-rendering:pixelated}
.cipher-preview-story,.cipher-preview-shortfall{font:16px/1.45 var(--ui-font);text-align:center;color:#c4ccd9}
body.tazik-app .cipher-prize-dialog .cipher-primary{display:block;width:100%;box-sizing:border-box;margin-top:18px;text-align:center;font:17px/1.4 var(--ui-font);background:#dce77a;color:#17253d;border:0;border-radius:0;padding:13px}
body.tazik-app .cipher-prize-dialog .cipher-primary:disabled{background:#304059;color:#b6c0d1;opacity:1}
body.tazik-app .cipher-preview-toggle{display:block;margin:12px auto;background:transparent;color:#c4ccd9;border:0;border-bottom:1px solid #69768a;border-radius:0;padding:8px;font:15px/1.4 var(--ui-font);box-shadow:none}
body.tazik-app .cipher-preview-toggle[aria-pressed=true]{color:#dce77a;border-color:#dce77a}
body.tazik-app .cipher-prize h4{font:14px/1.6 var(--display-font);min-height:45px;margin:14px 0 6px;overflow-wrap:normal}
.cipher-prize-story{font:12px/1.45 var(--ui-font);color:var(--cipher-muted);text-align:center;margin:0 0 14px;min-height:35px}
body.tazik-app .cipher-prize-buy{justify-content:center;font:21px/1.3 var(--ui-font);margin-top:auto;flex-shrink:0}
body.tazik-app .cipher-prize-buy:disabled{background:#304059;color:#b6c0d1;opacity:1}
.cipher-prize small{justify-content:center;min-height:18px;font:12px/1.3 var(--ui-font);color:var(--cipher-muted)}
.cipher-prize-owned{margin-top:auto;justify-content:center;font:17px/1.3 var(--ui-font)}
@media(max-width:359px){body.tazik-app .cipher-prize h4{font-size:13px}.cipher-prize-story{font-size:12px}.cipher-prizes{gap:12px 10px}.cipher-prize{padding-inline:8px}}

/* One scale for game headings, answer and price buttons. */
body.tazik-app .cipher-main .cipher-issue-head h2,
body.tazik-app .cipher-main .cipher-season-hero h2{font-size:20px;line-height:1.38}
body.tazik-app .cipher-main .cipher-season-hero h2{margin-bottom:0!important}
body.tazik-app .cipher-main .cipher-answer h2{font-size:16px;line-height:1.45;overflow-wrap:anywhere}
body.tazik-app .cipher-main .cipher-answer{margin:16px 0;padding:0}
.cipher-answer-copy{position:relative;padding:14px}
body.tazik-app .cipher-main .cipher-fact-title{font-size:14px}
body.tazik-app .cipher-main .cipher-fact{font-size:16px;line-height:1.55}
.cipher-answer>.cipher-illustration{margin:0}
.cipher-story-art img{display:block;width:100%;height:auto;image-rendering:pixelated}
.cipher-pixel-check{display:inline-block;width:14px;height:12px;vertical-align:middle;flex:none}
.cipher-chapter.is-complete summary::after{display:none}
.cipher-chapter summary{grid-template-columns:30px minmax(0,1fr) 36px 10px}
.cipher-chapter summary .cipher-chapter-check{visibility:hidden}
.cipher-chapter.is-complete summary .cipher-chapter-check{visibility:visible;color:#83cfa4;opacity:.65}
.cipher-chapter-check .cipher-pixel-check{width:27px;height:23px}
.cipher-chapter summary strong,.cipher-chapter .cipher-chapter-label strong{font-size:16px}
.cipher-chapter .cipher-issues{background:#142038;padding:0 10px 4px}
.cipher-chapter .cipher-issues li>a,.cipher-chapter .cipher-issues li>div{
 grid-template-columns:16px minmax(0,1fr);gap:10px;padding:11px 10px;min-height:52px;
}
.cipher-chapter .cipher-issues strong{font:16px/1.35 var(--ui-font)}
.cipher-chapter .cipher-issues small{font-size:12px;margin-top:4px}
.cipher-chapter .cipher-issues li.is-spotlight>*{background:#dce77a22;box-shadow:inset 3px 0 var(--cipher-citron)}
.cipher-chapter .cipher-issues time{color:var(--cipher-citron);white-space:nowrap;font-variant-numeric:tabular-nums}
.cipher-tutorial-row .cipher-arrow{display:none}
body.tazik-app .cipher-hint-dialog[data-explicit-close]>.app-modal-close{inset:1px 1px auto auto;position:absolute;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin:0}
body.tazik-app .cipher-prize-buy{font-size:15px;width:100%;min-height:48px}
body.tazik-app .cipher-prize-dialog .cipher-primary{font-size:15px}
@media(max-width:359px){.cipher-chapter summary{grid-template-columns:24px minmax(0,1fr) 23px 8px;gap:8px}.cipher-chapter-check .cipher-pixel-check{width:21px;height:18px}}

/* Keep one marker in the category rail, so it can travel in either direction. */
.cipher-prize-filters{position:relative;isolation:isolate}
.cipher-prize-filters .cipher-tab-track{inset:auto auto 0 0;width:calc((100% + 4px)/4);height:2px;z-index:2;background:transparent;pointer-events:none}
.cipher-prize-filters .cipher-tab-track::before{content:'';display:block;width:calc(100% - 4px);height:100%;background:var(--cipher-citron)}
body.tazik-app .cipher-prize-filters:has(.cipher-tab-track) [aria-pressed=true]{border-bottom-color:transparent}
.cipher-tab-track[hidden]{display:none}

.cipher-pending-panel{min-height:12rem;padding:1.1rem;background:var(--cipher-paper,#fff7e6);box-sizing:border-box}.cipher-pending-panel h2{margin:0 0 1rem}.cipher-paper-lines{display:grid;gap:.7rem}.cipher-paper-lines i{height:.75rem;background:currentColor;opacity:.1;width:78%}.cipher-paper-lines i:nth-child(2){width:92%}.cipher-paper-lines i:last-child{width:58%}

.cipher-welcome p {line-height:1.38;margin:12px 0}
.cipher-dialog-actions {display:grid;gap:8px;margin-top:16px}
.cipher-dialog-actions>* {width:100%;min-height:40px;box-sizing:border-box;text-align:center}
.cipher-dialog-actions .cipher-primary {background:#e4eb8c;color:#19263a;border:1px solid #72815d;font:inherit;padding:10px}
.cipher-dialog-secondary {display:grid;place-content:center;color:inherit;background:transparent;border:1px solid currentColor;font:inherit;text-decoration:none;padding:7px}
body .cipher-share-button{background:transparent;color:inherit;border:1px solid currentColor;border-radius:0;font:inherit}
.cipher-result-actions .cipher-share-button {justify-self:center}
