/* Shared game interface. Canvas, sprites, photographs and game-piece art keep their colors. */
html.kw-game-page{color-scheme:dark;background:#050505}
body.kw-game-theme{--kw-black:#050505;--kw-panel:#11100d;--kw-gold:#e6bf72;--kw-bright:#ffe6ad;--kw-text:#f2ddb0;--kw-muted:#c4ad7b;--kw-line:#9a773b;--gold:#e6bf72;--gold-bright:#ffe6ad;--muted:#c4ad7b;--line:#9a773b66;--accent:#e6bf72;--accent-soft:#bd9248;background:#050505!important;color:#f2ddb0!important;color-scheme:dark;accent-color:#e6bf72;scrollbar-color:#a78343 #050505}
body.kw-game-theme[data-kw-game="pitucao-romao"]{--ink:#f2ddb0;--green:#d4af64;--lime:#ead28f;--cream:#050505}
body.kw-game-theme :is(h1,h2,h3,h4){color:#ffe6ad!important;text-shadow:none!important}
body.kw-game-theme :is(p,small,label,legend,summary,figcaption,.fine,.eyebrow,.hint,.subtitle,.tagline,.intro,.keyboard-help,.play-hint,.loading-text,.game-note,.game-instructions,.community-intro,.community-free,.support-caption,.support-free,.support-purpose-details,.support-steps,.kpx-steps){color:#c4ad7b!important;text-shadow:none!important}
body.kw-game-theme :is(a,strong,b,output,.phase,.stat,.statName,.section-label,.stage-label,.section-top,.journey-heading,.wordmark,.footer-brand,.score,.hud-label,.race-info,.size-meter,.no-timer,.objective,.mission-strip,.footer-label-full,.footer-label-short){color:#f2ddb0!important;text-shadow:none!important}
body.kw-game-theme :is(h1,h2,h3,h4) :is(span,em,strong){color:inherit!important}
body.kw-game-theme :is(header,footer,.topbar,.top,.masthead,.portal-bar,.site-header,.game-toolbar,.game-top,.game-bottom,.hud,.game-hud,.platform-hud,.controls,.platform-controls,.ride-controls,.footerbar,.bottomline,.support-banner,.support-strip,.support,.sharing,.share-row,.community-actions,.community-tabs,.game-console,.game-panel,.play-card,.menuContent,.panel,.dialog,.card,.message-card,.result-card,.overlay-card,.project-card,.mini-count,.recycle-item,.game-shell,.hud-box,.stage-choice,.level-list button,.character-option,.hero-card,.map-content,.targets>span,.stage-button,.mini-screen,.game-toolbar .phase-number,.game-bottom .help-button,.journey li,.journey li.current,.journey li.complete,.game-dialog,.community-dialog,.support-dialog,.pix-card,.modal-card,.scoreboard,.memory-stats,.turn-line,.support-area,.support-amounts,.support-code-details,.share-dialog,.kw-game-share-dialog,.kw-game-pix-dialog){background:linear-gradient(145deg,#1b1811,#090909 75%)!important;border-color:#9a773b99!important;color:#f2ddb0!important;box-shadow:inset 0 1px 0 #ffe6ad12,0 8px 25px #0003}
body.kw-game-theme :is(#app,#gameWrap,.shell,.page-content,.page,#game-panel,.game-layout){background-color:#050505!important}
body.kw-game-theme :is(.screen-cover,.message-screen,.game-overlay,.platform-overlay,.overlay.modal,.memory-intro){background:#050505d9!important;color:#f2ddb0!important}
body.kw-game-theme .home-screen{background:linear-gradient(90deg,#050505f2,#050505b8 48%,#05050518 75%)!important}
body.kw-game-theme .home-copy :is(h2,em){color:#ffe6ad!important}
body.kw-game-theme :is(.home-copy p,.tag,.header-pill,.page-intro,.game-bottom,.stat small,.phase small,.mini-intro,.mini-top,.mini-feedback,.final-summary,.mini-note,.journey li>span,.journey .step-icon,.sharing>span,.sharing>p,footer strong,.footer-brand strong){color:#d2bc8b!important}
body.kw-game-theme :is(.tag,.header-pill,.phase-number,.hud-cell,.hud-stat,.hud-score,.hud-chapter,.hud-vitals,.hud-stars,.stat,.edition-badge,.badge,.scoreboard span,.memory-stats span,.targets>span,.stage-label,.map-status,.community-tabs [aria-pressed="true"],.intro-chips span,.menu-badges span,.support-input,.kw-volume-panel,.tray,.tray-panel,.tray-caption,.game-panel .roundline){background-color:#100f0b!important;border-color:#9a773b77!important}
body.kw-game-theme :is(button,a.btn,a.primary,a.secondary,a.share-button,a.copy-button,a.portal-link,.points-cta,.support-link,.file-button):not(:where(.tile,.memory-card,.tic-cell,.map-card,.hero-card)){background:linear-gradient(155deg,#282218,#080808 80%)!important;border-color:#a88549!important;color:#f5dca3!important;box-shadow:inset 0 1px 0 #ffe8b333,0 3px 9px #0005!important;text-shadow:none!important}
body.kw-game-theme :is(button,a.btn,a.primary,a.secondary,a.share-button):not(:where(.tile,.memory-card)):hover{border-color:#ffe1a0!important}
body.kw-game-theme :is(button,a,input,textarea,summary):focus-visible{outline:3px solid #ffe1a0!important;outline-offset:3px}
body.kw-game-theme :is(button,a)[aria-pressed="true"]{border-color:#ffe1a0!important;background:linear-gradient(145deg,#3d3018,#171209)!important}
body.kw-game-theme :is(button:disabled,[aria-disabled="true"]):not(:where(.tile,.memory-card)){opacity:.65!important;color:#c4ad7b!important}
body.kw-game-theme :is(input:not([type="range"]):not([type="checkbox"]),textarea,select){background:#050505!important;color:#f2ddb0!important;border-color:#a88549!important;caret-color:#ffe1a0}
body.kw-game-theme :is(input,textarea)::placeholder{color:#b39a68!important;opacity:1}
body.kw-game-theme :is(.share-input,.share-link,.kw-share-url,.kpx-code,.kpx-value){background:#050505!important;color:#f2ddb0!important;border-color:#a88549!important}
body.kw-game-theme :is(.progress-track,.air-track,.energy>div,.boss-health-track,.health,.tray-panel,.tray-caption){background-color:#19150b!important;border-color:#9a773b88!important}
body.kw-game-theme :is(.progress-track>span,.energy>div>i,#airBar,#energyBar,#bossBar,#bossHealth,#bossHp,#hpBar,#spBar,.health>i,.health>span,.cooldown-track>i){background:linear-gradient(90deg,#a57932,#f4d58f)!important}
body.kw-game-theme :is(.support-cta,[data-support],#pix-button,.pix-button,.footer-pix,.finale-pix,[data-community-open="pix"],#support-open,#support-copy,.support-copy,[data-kw-game-pix],.kpx-copy){min-height:52px;border:2px solid #ffe4a1!important;border-radius:12px;background:linear-gradient(120deg,#b58738,#ffe6a5 52%,#c39442)!important;color:#191307!important;box-shadow:0 0 0 3px #d4a84821,0 7px 22px #d3a34c38,inset 0 1px 0 #fff1c9!important;font-weight:800!important;text-shadow:none!important;animation:none!important}
body.kw-game-theme :is(.support-cta,[data-support],#pix-button,.pix-button,.footer-pix,.finale-pix,[data-community-open="pix"],#support-open,#support-copy,.support-copy,[data-kw-game-pix],.kpx-copy) :is(span,strong,b,small,svg){color:#191307!important;text-shadow:none!important}
body.kw-game-theme :is(.support-strip,.support,.support-banner){border:1px solid #c9a65e!important;padding:18px;border-radius:16px}
body.kw-game-theme :is(.support-strip,.support) :is(#pix-button,.pix-button){width:100%;min-height:58px;font-size:1rem}
body.kw-game-theme :is(.support-cta,.footer-pix,.finale-pix):before{animation:none!important;background:none!important}
body.kw-game-theme :is(.support-dialog,.community-dialog,.pix-card,.modal-card,.game-dialog,.kw-game-pix-dialog,.kw-game-share-dialog) :is(p,small,label,legend,summary,li,.support-free,.kpx-key,.kpx-status,.kw-share-status){color:#d6c18f!important}
body.kw-game-theme :is(dialog,.modal,.pix-screen)::backdrop{background:#000c}
body.kw-game-theme :is(.pix-screen,.modal){background-color:#000c!important}
body.kw-game-theme .bin{color:#f2ddb0!important}
body.kw-game-theme .bin svg{color:var(--bin-color)!important}
body.kw-game-theme :is(.plant-button,.picnic-button,.plant-button.done,.picnic-button.done){background:#11100d!important;border-color:#b28e4c!important;color:#f2ddb0!important;opacity:1!important}
body.kw-game-theme .memory-back{background:linear-gradient(145deg,#3b2b13,#080808)!important;border-color:#d9b56b!important}
body.kw-game-theme .memory-pair-label{background:#33260f!important;color:#ffe1a0!important}
body.kw-game-theme :is(.home:after,.menuContent:before,.home-screen:before){background-color:transparent}
/* Interface details from the individual games use the same palette. */
body.kw-game-theme{--bg:#050505;--panel:#11100d;--cyan:#e6bf72;--pale:#f2ddb0}
body.kw-game-theme :is(.bottom-actions,.objective,.keyboard-help,.keyboard-guide,.chapters li,.chapter-number,.game-tabs,.mode-switch,.platform-start,.platform-player.is-fullscreen,.story,.toast,.platform-toast,.boss-hud,.boss-panel,.boss-bar,.overlay-stats,.local-best,.hero-footnote,.how-to,.tips article,.sharing a,.tools a,.pix-free,.pix-steps,.tray-slot,.helper-disc,.helper-disc>b,.rule-number,.result-score,.bonus-stamp,.pill,.power-pill,.mission-strip>span,.ride-progress,.platform-progress,.community-details,.support-status:not(:empty)){background:linear-gradient(145deg,#1b1811,#090909 75%)!important;border-color:#a8854980!important;color:#f2ddb0!important;box-shadow:none!important}
body.kw-game-theme :is(.home-copy,.hero-copy,.menu-text,.menu-body,.game-instructions,.control-hint,.keyboard-guide,.hero-footnote,.map-content,.chapter-number,.game-toolbar,.game-bottom,.hud,.hud-cell,.platform-hud,.controls,.support-top,.support-amounts,.kpx-form) :is(span,div,li,kbd){color:#f2ddb0}
body.kw-game-theme :is(.scoreboard span:last-child,.hang-word.lost .letter-slot,.card-label,.card-back,.piece-tag,.j-piece .piece-tag,.console-number,.status-dot,.control-tip,.art-caption,.record-line,.character-tag,.choose-badge,.developer-credit,.result-score>span,.instructions strong,.instruction-number,.game-note,.mission-strip svg,.control-button svg){color:#d8bd83!important}
body.kw-game-theme :is(.memory-card,.tic-cell){background:linear-gradient(145deg,#241c10,#080808)!important;border-color:#a88549!important}
body.kw-game-theme :is(.card-label,.memory-card.matched:after){background:#171209!important;color:#ffe1a0!important}
body.kw-game-theme :is(.hero-card.selected,.character-option.selected,.game-tab.active,.tic-cell.winning,.memory-card.matched,.journey li.current,.chapters li.current){border-color:#ffe1a0!important;box-shadow:inset 0 0 0 1px #e6bf7233,0 0 14px #d4af641c!important}
body.kw-game-theme .home:after{background:linear-gradient(90deg,#050505f5 0%,#050505dd 32%,#05050518 72%,#05050544)!important}
body.kw-game-theme :is(.start-screen,.pause-screen,.result-screen){background-color:#050505ed!important;background-image:linear-gradient(90deg,#050505e8,#050505cc)!important}
body.kw-game-theme :is(.home-screen,.menu-body){background-image:linear-gradient(0deg,#050505ed,#05050522 75%)!important}
body.kw-game-theme :is(.hearts svg,.logo-paw svg){fill:#e6bf72!important}
body.kw-game-theme :is(.energy-pip,.mini-gem,.status-dot,.choice-dot,.energy-bars i,.mission-progress>div,.progress-track>i){background:linear-gradient(110deg,#a57932,#f4d58f)!important;box-shadow:none!important}
body.kw-game-theme :is(.energy-pip.empty,.energy-bars i.spent){background:#302718!important}
body.kw-game-theme progress{accent-color:#e6bf72;background:#1d170c!important}
body.kw-game-theme progress::-webkit-progress-bar{background:#1d170c!important}
body.kw-game-theme progress::-webkit-progress-value{background:#e6bf72!important}
body.kw-game-theme progress::-moz-progress-bar{background:#e6bf72!important}
body.kw-game-theme :is(.support-strip,.support){display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px)}
body.kw-game-theme .portal-bar{flex-wrap:wrap}
body.kw-game-theme .portal-bar .tools{flex-wrap:wrap}
body.kw-game-theme[data-kw-game="hidrom-jonaton"] .share-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:9px}
body.kw-game-theme .share-image-button{grid-column:1/-1;width:100%;padding:12px}
body.kw-game-theme #communityOpen{min-height:38px}
body.kw-game-theme #menu .menuContent{max-height:calc(100dvh - 90px);overflow:auto;padding:16px;border-radius:14px}
body.kw-game-theme #dialog .panel{max-height:calc(100dvh - 34px);overflow:auto}
body.kw-game-theme[data-kw-game="lava-rapido-fv"] :is(.pause-screen,.result-screen){overflow:auto;align-items:safe center}
body.kw-game-theme[data-kw-game="cao-veio"] .overlay-card{max-height:100%;overflow:auto}
@media(max-width:650px){body.kw-game-theme :is(.support-strip,.support){grid-template-columns:1fr}body.kw-game-theme .portal-bar .brand{flex:1 0 100%}body.kw-game-theme .portal-bar .tools{width:100%;justify-content:center}body.kw-game-theme .home:after{background:linear-gradient(0deg,#050505f5 0%,#050505e0 35%,#05050518 85%)!important}}
/* Consistent actions fit inside menus, result screens and ordinary page flow. */
.kw-game-actions{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch;margin:18px 0;padding:14px;border:1px solid #b18b48;border-radius:15px;background:linear-gradient(145deg,#1d1911,#060606);color:#f2ddb0;font:600 13px/1.4 system-ui,sans-serif}
.kw-game-actions button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:52px;padding:12px;border:1px solid #b18b48;border-radius:10px;background:#101010;color:#f5dca3;font:inherit;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
.kw-game-actions [data-kw-game-pix]{font-size:15px}
.kw-game-actions-status{grid-column:1/-1;margin:0;text-align:center;font-size:12px;color:#d6c18f}
.kw-game-actions-status:empty{display:none}
.kw-game-pix-dialog{box-sizing:border-box;position:fixed;z-index:10001;inset:0;width:min(510px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:24px;border:1px solid #d9b56b;border-radius:18px;background:#080808;color:#f2ddb0;font:14px/1.6 system-ui,sans-serif;text-align:left;overscroll-behavior:contain}
.kw-game-pix-dialog h2{font-size:27px;line-height:1.2;margin:14px 35px 12px 0}
.kw-game-pix-dialog .kw-game-pix-close{position:absolute;right:12px;top:10px;width:38px;height:38px;min-height:38px;border:1px solid #a88549;border-radius:50%;background:#101010;color:#f2ddb0;font-size:24px;cursor:pointer}
.kw-game-pix-dialog .kw-game-pix-return{display:block;width:100%;min-height:44px;margin-top:18px;padding:10px;border:1px solid #a88549;border-radius:9px;background:#101010;color:#f2ddb0;font:inherit;cursor:pointer}
.kw-game-pix-dialog[open]:not(:modal){box-shadow:0 0 0 100vmax #000c}
@media(max-width:520px){.kw-game-actions{gap:8px;padding:11px}.kw-game-actions button{font-size:12px;padding:11px 8px}.kw-game-actions [data-kw-game-pix]{font-size:14px}.kw-game-pix-dialog{padding:20px}}
@media(max-width:360px){.kw-game-actions{grid-template-columns:1fr}.kw-game-actions button{min-height:48px}}
@media(max-height:540px) and (orientation:landscape){.kw-game-actions{margin:10px 0;padding:9px;gap:8px}.kw-game-actions button{min-height:42px;padding:8px;font-size:12px}}

body.kw-game-theme .setting input{background:#100d08!important;border-color:#a88549!important}body.kw-game-theme .setting input:before{background:#d6b36f!important}body.kw-game-theme .setting input:checked{background:#675028!important}body.kw-game-theme :is(.journey li,.chapters li){opacity:1}

body.kw-game-theme{--teal:#e6bf72;--orange:#d8bd83}body.kw-game-theme .logo-paw{background:#171209!important;color:#e6bf72!important;border:1px solid #a88549}
body.kw-game-theme :is(.powerline,.companion-status,.account-line,.barlabel,#loading.loading,.move-hint,#nearest-label,#feedback,.progress-row>b,#exitHint,.gate-map span,.live-dot,.choose-badge){background:linear-gradient(145deg,#241c10,#080808)!important;border-color:#a88549!important;color:#f2ddb0!important}
body.kw-game-theme :is(#hud,#bosshp,#cinema-tag,.powerline,.companion-status,.account-line,.barlabel,.help-grid,.project-kind,#stageDesc,#best,#announce,#cutinWords,.loading,.move-hint,#nearest-label,#exitHint) :is(span,div,i,b,em){color:#f2ddb0!important}
body.kw-game-theme :is(#bosshp,#cinema-tag,.powerline,.companion-status,.account-line,.barlabel,.help-grid,.project-kind,#stageDesc,#best,#announce,#cutinWords,.loading,.move-hint,#nearest-label,#exitHint){color:#f2ddb0!important}
body.kw-game-theme :is(#powerfill,.bar-fill,.live-dot){background:linear-gradient(110deg,#a57932,#f4d58f)!important}
body.kw-game-theme .spinner{border-color:#a8854966!important;border-top-color:#ffe1a0!important}
body.kw-game-theme .boss-hud>div{background:#19150b!important}
