/* Classic Atelier: burgundy #642c3b / #f5f0e8 #f5f0e8 / brass #b79a64. */
:root{--burgundy:#642c3b;--ivory:#f5f0e8;--brass:#b79a64;--soft-sand:#f5f0e8;--mocha-green:#642c3b;--watermelon-pink:#b79a64;--paper:var(--soft-sand);--surface:#f5f0e8;--surface-soft:#ebe2dc;--ink:#2d141b;--navy:#2d141b;--green:var(--mocha-green);--teal:var(--mocha-green);--muted:#885d66;--text-soft:#885d66;--line:#d8c9c5;--accent:var(--watermelon-pink);--at-lime:var(--watermelon-pink);--at-forest:var(--mocha-green);--course-color:var(--mocha-green);--course-soft:#ebe2dc;--course-button:var(--mocha-green);--game-bg:var(--paper);--game-surface:var(--surface);--game-soft:var(--surface-soft);--game-text:var(--ink);--game-muted:var(--muted);--game-line:var(--line);--game-accent:var(--green);--game-gold:var(--watermelon-pink)}
:root[data-theme=dark]{--soft-sand:#f5f0e8;--mocha-green:#642c3b;--watermelon-pink:#d0bc99;--paper:#2d141b;--surface:#3c1a23;--surface-soft:#5a2835;--ink:#f5f0e8;--navy:#f5f0e8;--green:#d8c9c5;--teal:#d8c9c5;--muted:#cab5b4;--text-soft:#cab5b4;--line:#754450;--accent:var(--watermelon-pink);--course-color:#d8c9c5;--course-soft:#5a2835;--course-button:#642c3b;--game-bg:var(--paper);--game-surface:var(--surface);--game-soft:var(--surface-soft);--game-text:var(--ink);--game-muted:var(--muted);--game-line:var(--line);--game-accent:var(--green);--game-gold:var(--watermelon-pink)}
::selection{background:var(--watermelon-pink);color:#2d141b}body,body.portal-page,body.games-page{background:var(--paper)!important;color:var(--ink)}body>header,body.games-page>.game-header{background:var(--paper)!important;border-color:var(--line)}.nav-games{background:var(--mocha-green)!important;color:#f5f0e8!important}header nav a.nav-games{color:#f5f0e8!important}html[data-theme=dark] .nav-games{background:#754450!important;color:#f5f0e8!important}.brand small,.game-brand small{color:var(--muted)!important}.eyebrow,html[data-theme=dark] .eyebrow{color:var(--green)!important}
html body.portal-page .portal-hero{background:#642c3b!important}.hero-photo img{filter:sepia(.2) saturate(.7)}.hero-photo:after{background:linear-gradient(90deg,#2d141be8 0%,#642c3bc2 30%,#642c3b30 70%,#642c3b10),linear-gradient(0deg,#2d141b75,transparent 60%)}html body.portal-page .portal-hero h1{color:#f5f0e8!important}html body.portal-page .portal-hero em,html[data-theme=dark] body.portal-page .portal-hero em{color:#dcceb3!important}html body.portal-page .portal-hero .eyebrow{color:#dcceb3!important}html body.portal-page .portal-hero .hero-intro{color:#f5f0e8!important}.portal-page .hero-signature,.portal-page .hero-signature strong{color:#ebe2dc!important}html body.portal-page .hero-buttons .primary,html body.portal-page #hukuk-oyunlari .button{background:var(--watermelon-pink)!important;border-color:var(--watermelon-pink)!important;color:#2d141b!important}.portal-page .quiet-link.hero-game-link{color:#e9dfce!important;border-color:#dcceb366}.portal-page .study-board{background:#642c3bed!important;border-color:#d0bc9966;box-shadow:0 20px 55px #2d141b4d,inset 0 1px 0 #f5f0e826}.portal-page .study-board .board-top{color:#e4d8d3;border-color:#d0bc9946}.portal-page .study-board .board-mark,.portal-page .study-board .board-link{color:#dcceb3}.portal-page .study-board .board-row{border-color:#d0bc9938}.portal-page .study-board .board-row strong{color:#f5f0e8}.portal-page .study-board .board-icon{color:#e9dfce;background:#b79a6424}.portal-page .study-board .board-row:hover{background:#b79a6418!important}
html body.portal-page #hukuk-oyunlari{background:radial-gradient(ellipse at 100% 100%,#b79a6412,transparent 65%),#642c3b!important;border-color:#885d66}.portal-page #hukuk-oyunlari .eyebrow{color:#dcceb3!important}html body.portal-page #hukuk-oyunlari h2,html[data-theme=dark] body.portal-page #hukuk-oyunlari h2{color:#f5f0e8!important}.portal-page #hukuk-oyunlari p,.portal-page #hukuk-oyunlari .bk-game-badge{color:#e4d8d3!important}.studio-live-case{background:#f5f0e8;border-color:#d8c9c5;color:#2d141b;box-shadow:0 12px 26px #2d141b30}.studio-live-case h3{color:#642c3b!important}.portal-page #hukuk-oyunlari .studio-live-case p{color:#885d66!important}.studio-case-label,.studio-case-action{color:#642c3b}.studio-case-action{border-color:#d8c9c5}.studio-live-case:hover{border-color:#b79a64}
button.primary,.button.primary,body[data-course] #app .primary{background:var(--mocha-green)!important;border-color:var(--mocha-green)!important;color:#f5f0e8!important}.button:not(.primary),button:not(.primary),.toolbar input,.toolbar select{border-color:var(--line)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:#754450!important}.choice.green,.miras-choice-grid .choice.green{background:var(--mocha-green)!important;border-color:var(--mocha-green)!important;color:#f5f0e8!important}.choice.green h2,.choice.green h3,.choice.green p{color:#f5f0e8!important}.choice.green .number{color:#e4d8d3}.panel,.choice,.legal-page article,.bk-search-dialog{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)}.event{background:var(--surface-soft)!important;border-left-color:var(--watermelon-pink)}.solution,.topic-example,.topic-tip,.quiz-feedback{background:var(--surface-soft)!important;border-color:var(--line);color:var(--ink)}.quiz-option.selected{border-color:var(--watermelon-pink)!important;background:var(--surface-soft)!important}.bk-reading-progress span,body[data-course] .bk-reading-progress span{background:var(--watermelon-pink)!important}.course-progress-fill{background:var(--watermelon-pink)!important}.portal-page .course-shell{border-color:var(--line)!important}.portal-page .course-shell:hover{border-color:var(--watermelon-pink)!important}.portal-page .course-code,.portal-page .course-symbol,.portal-page .course-cta{color:var(--green)!important}.portal-page .course-shell:before{background:var(--watermelon-pink)!important}.quick-links a{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}.quick-links a:hover{border-color:var(--watermelon-pink)!important}.portal-note{background:var(--surface-soft)!important}.legal-nav a{color:var(--muted)!important}
/* Each binding stays distinct within the new three-color family. */
.atelier-book-stage,.course-mohuk .atelier-book-stage{background:#e4d8d3!important}.course-is .atelier-book-stage{background:#ebe2dc!important}.course-miras .atelier-book-stage{background:#e4d8d3!important}.course-cmk .atelier-book-stage{background:#e4d8d3!important}.course-hr .atelier-book-stage{background:#ebe2dc!important}.atelier-book-stage .atelier-book{background:linear-gradient(95deg,#3c1a23,#885d66 12%,#642c3b 17%,#754450 85%,#4b212c)!important}.course-is .atelier-book-stage .atelier-book{background:linear-gradient(95deg,#3c1a23,#885d66 12%,#642c3b 17%,#754450 85%,#4b212c)!important}.course-miras .atelier-book-stage .atelier-book{background:linear-gradient(95deg,#5a2835,#885d66 12%,#754450 17%,#754450 85%,#642c3b)!important}.course-cmk .atelier-book-stage .atelier-book{background:linear-gradient(95deg,#3c1a23,#754450 12%,#5a2835 17%,#642c3b 85%,#4b212c)!important}.course-hr .atelier-book-stage .atelier-book{background:linear-gradient(95deg,#642c3b,#a27e5a 12%,#794845 17%,#8e6350 85%,#794845)!important}.atelier-book>strong{background:linear-gradient(115deg,#c3ab7e,#f5f0e8 45%,#d0bc99 70%,#dcceb3)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important}.atelier-book-emblem{color:#dcceb3;border-color:#c3ab7e7a;outline-color:#c3ab7e4f}.atelier-book-ribbon{background:linear-gradient(90deg,#8e6350,#d0bc99,#a27e5a)!important}.atelier-book-back{background:linear-gradient(95deg,#b4989a,#f5f0e8 8%,#e4d8d3 13%,#cab5b4);border-color:#cab5b4}.atelier-book-note{background:#f5f0e8;border-color:#d8c9c5}
.bk-screen-exit{background:#642c3b!important}.bk-screen-exit:after{background:var(--watermelon-pink)}.palette-shimmer{position:relative;overflow:hidden}.palette-shimmer-label{display:inline-block;background:linear-gradient(110deg,#2d141b 0%,#2d141b 40%,#5a2835 50%,#2d141b 60%,#2d141b 100%);background-size:200% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;font-weight:600}.palette-shimmer-label svg{display:none}.palette-shimmer:active{transform:scale(.98)!important}
html[data-motion-engine=motion] .hero-copy,html[data-motion-engine=motion] .hero-copy>*,html[data-motion-engine=motion] .course-shell.motion-arrived,html[data-motion-engine=motion] .bk-resume.motion-arrived{animation:none!important}


.hero-buttons a>.palette-shimmer-label{display:inline-block!important}
html body.portal-page .course-shell,html body.portal-page .course-shell .choice,html body.portal-page .course-shortcuts{background:var(--surface)!important;color:var(--ink)!important}html body.portal-page .course-shell .choice>p{color:var(--muted)!important}html body.portal-page .course-meta span,html body.portal-page .course-code,html body.portal-page .course-symbol{background:var(--surface-soft)!important;color:var(--green)!important}html body.portal-page .course-cta,html body.portal-page .course-shortcuts summary{color:var(--green)!important;border-color:var(--line)!important}
html body .panel,html body .bk-search-dialog,html body .miras-scope,html body .scope-box,html body .legal-page article{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}html body .article,html body .hr-body,html body .hr-body p,html body .hr-body li{color:var(--ink)!important}html body .pill,html body .quiz-counts,html body .bk-reader-controls,html body .bk-step-nav{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}html body .list button small{color:var(--muted)!important}html body .source-note{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--watermelon-pink)!important}
html[data-theme=dark] body .panel,html[data-theme=dark] body .choice,html[data-theme=dark] body .course-shell,html[data-theme=dark] body .course-shell .choice,html[data-theme=dark] body .study-method,html[data-theme=dark] body .stats,html[data-theme=dark] body .bk-search-dialog,html[data-theme=dark] body.bk-focus #detail{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}html[data-theme=dark] body .bk-step-nav{background:var(--surface)!important}html[data-theme=dark] body #detail .topic-example,html[data-theme=dark] body #detail .topic-tip{background:var(--surface-soft)!important;color:var(--ink)!important}

/* Complete the selected palette across game scenes and reading controls. */
body:before{background:linear-gradient(90deg,#642c3b,#885d66 55%,#b79a64)!important}
html body .hero-photo:after{background:linear-gradient(90deg,#2d141bef 0%,#4b212cbd 36%,#642c3b35 75%,#642c3b10),linear-gradient(0deg,#2d141b88,transparent 65%)}
html body .game-hero em{color:var(--green)!important}html body .lobby-art,html body .witness-scene,html body .verdict-visual{background:radial-gradient(ellipse at 70% 20%,#9e7a803d,transparent 65%),#5a2835!important}
html body .case-brief{background:var(--surface-soft)!important;border-color:var(--line)!important;border-left-color:var(--brass)!important}html body .case-brief>p{color:var(--ink)!important}html body .brief-heading{color:var(--green)!important}
html body .speech-bubble,html body .evidence-note{background:#f5f0e8!important;color:#4b212c!important}html body .speech-bubble p,html body .evidence-note p{color:#4b212c!important}html body .speech-caption{color:#885d66!important}html body .bubble-next{color:#642c3b!important}
html body .clue-choice,html body .decision-choice,html body .file-card,html body .dialogue-panel,html body .decision-panel,html body .evidence-board,html body .verdict-panel{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html body .file-card:hover,html body .clue-choice:hover,html body .decision-choice:hover{border-color:var(--green)!important}html body .question-budget,html body .choice-mark,html body .question-symbol,html body .folder-tab{background:var(--surface-soft)!important;color:var(--green)!important}
html body .verdict-stamp,html body .score-stars .earned{color:#dcceb3!important;border-color:#d0bc99!important}html body .score-stars span:not(.earned){color:#9e7a80!important}html body .verdict-visual>strong,html body .verdict-visual>p{color:#f5f0e8!important}
html body .hero-folder{background:#754450!important}html body .art-seal{background:#d0bc99!important;color:#2d141b!important}html body .law-book{background:#642c3b!important}html body .confetti i{background:#d0bc99!important}html body .confetti i:nth-child(even){background:#b4989a!important}
html body .bk-mobile-nav{background:var(--surface)!important;border-color:var(--line)!important}html body .bk-mobile-nav button{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}html body .bk-mobile-nav button:last-child{background:#642c3b!important;color:#f5f0e8!important}
html[data-theme=dark] body .study-method,html[data-theme=dark] body .vivid-dashboard,html[data-theme=dark] body .vivid-today,html[data-theme=dark] body .bk-resume{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
