
body.citadel-interface{--citadel-gold:#c49a5c;--citadel-metal:#87857d;--citadel-frame:url('rpg-art/castle-frame.svg');background:#080909 url('obsidian-art/stone.svg');color:#e5e2db;font-family:Arial,sans-serif;padding:12px}
body.citadel-interface main.portal-shell{display:grid;grid-template-columns:215px minmax(340px,1fr) 360px;gap:12px;max-width:1500px;width:100%;margin:0 auto;padding:0;border:0!important;box-shadow:none;background:none!important;isolation:isolate}
.citadel-interface .portal-shell>header{grid-column:1/-1;min-height:150px;position:relative;justify-content:center;align-items:center;display:flex;text-align:center;margin:0;padding:20px 25px 50px;background:#111 url('obsidian-art/citadel.svg') center/cover;border-bottom:1px solid #6c6250;box-sizing:border-box}
.citadel-interface .portal-shell>header b{font:38px Georgia,serif;letter-spacing:7px;color:#e9e4d8;text-shadow:0 3px 3px #000}.citadel-interface .brand-gradient{background:none!important;color:inherit!important;-webkit-text-fill-color:initial!important}.citadel-interface .portal-shell>header>div:first-child>small{font:10px Arial;letter-spacing:4px;color:#c8c4b9;margin-top:10px}.citadel-interface .header-tools{position:absolute;right:15px;bottom:8px;gap:6px}.citadel-interface .header-tools button{padding:6px 10px;font-size:10px}
.citadel-interface .portal-navigation{grid-column:2/-1;display:flex;margin:0;gap:8px;padding:9px;background:url('obsidian-art/stone.svg');border:5px ridge #66645e}.citadel-interface .portal-navigation button{flex:1;padding:12px 8px;font-size:13px}.citadel-interface .portal-navigation button[hidden]{display:none!important}
.citadel-interface .citadel-profile{grid-column:1;grid-row:2 / span 2;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 14px;gap:14px;background:#111 url('obsidian-art/stone.svg');border:7px ridge #66645e;box-shadow:inset 0 0 0 2px #191919}.citadel-profile h2{font:22px Georgia;margin:0;color:#e9e3d6}.citadel-profile .student-avatar{width:130px;height:130px;border:5px ridge #9a8565;border-radius:0;clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);background:#222}.citadel-profile .student-avatar img{object-fit:cover}.citadel-profile>button{width:100%;font-size:11px}.citadel-profile>small{color:#aaa79e;font-size:10px}.citadel-xp{font:16px Georgia;margin:0}.citadel-progress{height:11px;width:100%;background:#090909;border:1px solid #6b6558;padding:2px;border-radius:8px;box-sizing:content-box}.citadel-progress i{display:block;height:100%;background:linear-gradient(#e0d7bd,#8b7b63);border-radius:8px}
.citadel-crest{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:150px;height:175px;background:url('obsidian-art/crest.svg') center/contain no-repeat;flex:none;color:#e9dfc8;padding-top:8px;box-sizing:border-box}.citadel-crest small{font:14px Georgia;color:#d5ccbb}.citadel-crest strong{font:45px Georgia;text-shadow:1px 2px #000}.citadel-interface .profile-sword{width:150px;height:175px}.citadel-interface .profile-weapon{border:0}
.citadel-interface .portal-study{grid-column:2;grid-row:3;min-width:0;max-width:none!important;margin:0!important;padding:20px!important;border:7px ridge #66645e;background:#111 url('obsidian-art/stone.svg')!important;box-sizing:border-box}.citadel-section-heading{border-bottom:1px solid #6d6555;padding:0 0 18px;margin-bottom:18px}.citadel-section-heading h1{font:26px Georgia;margin:0 0 7px;color:#e8e3d8}.citadel-section-heading p{font-size:12px;color:#aaa79f;margin:0}.citadel-interface .portal-study #phases{gap:6px;margin:0 0 25px}.citadel-interface .phase{font-size:11px;padding:12px 5px;border:1px solid #656057!important}.citadel-interface .phase.active{color:#edcb8c;background:#392b17!important;border-color:#d29c42!important}.citadel-interface #card{border:1px solid #6b655c;border-radius:0;padding:23px;background:#131414d9;box-shadow:inset 0 0 0 4px #090a0a}.citadel-interface #card h2{font:24px/1.3 Arial,sans-serif;color:#e6e4df}.citadel-interface .portal-study .answer{min-height:54px;font-size:18px;font-weight:600;border-radius:0!important}.citadel-interface .portal-study details{border:1px solid #5a574f;border-radius:0;background:#111212}.citadel-interface .portal-study .meta{color:#b8a786;letter-spacing:1.5px;font-size:10px}
.citadel-interface #view-games{grid-column:3;grid-row:3;min-width:0;padding:17px;border:7px ridge #66645e;background:#111 url('obsidian-art/stone.svg')}.citadel-interface #view-games .portal-welcome,.citadel-interface #view-games .capture-entry,.citadel-interface #view-games .portal-shortcuts{display:none}.citadel-interface #view-games .portal-section-title{display:block;margin:0 0 17px;padding-bottom:12px;border-bottom:1px solid #6d6555}.citadel-interface #view-games .portal-section-title h2{font:25px Georgia;margin:0}.citadel-interface #view-games .portal-section-title span{font-size:10px;color:#a9a497}.citadel-interface .mission-grid{grid-template-columns:1fr 1fr!important;gap:12px}.citadel-interface .mission-card{border:3px ridge #6a685f!important;border-radius:0!important;padding:8px!important;background:#111!important;gap:7px;min-height:0;overflow:hidden;box-shadow:none!important}.citadel-interface .mission-card h2{font:16px/1.2 Georgia;margin:6px 0 10px}.citadel-interface .mission-card p,.citadel-interface .mission-card .portal-kicker,.citadel-interface .mission-tags{display:none}.citadel-interface .mission-card .lab-card-cover,.citadel-interface .mission-chart-art{height:102px!important;min-height:0!important;width:100%;object-fit:cover;opacity:.9;margin:0;order:0}.citadel-interface .mission-card-body{padding:0;display:flex;flex-direction:column;flex:1}.citadel-interface .mission-card .portal-action{width:100%;min-height:30px;padding:6px!important;font-size:10px;margin-top:auto}.citadel-interface .portal-view:not(#view-games){grid-column:2/-1;grid-row:3;min-width:0;padding:22px;background:#101112;border:6px ridge #66645e}
.citadel-interface .portal-shell [hidden]{display:none!important}
body.citadel-interface button:not(.theme-dot):not(.colors-theme),body.citadel-interface .portal-study .answer{background:linear-gradient(135deg,#272726,#141515 55%,#222322)!important;color:#ded9cb!important;border:1px solid #858075!important;border-radius:0;box-shadow:inset 0 0 0 2px #0b0c0c,0 2px 2px #000!important;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}body.citadel-interface button:hover{border-color:#dbad5b!important;color:#ffe1a2!important;background:linear-gradient(135deg,#3b3020,#171714)!important;filter:none!important}body.citadel-interface .portal-navigation [aria-current=page]{background:linear-gradient(#3c3020,#181613)!important;border-color:#d09a40!important;color:#ffd28b!important;box-shadow:inset 0 -2px #b57e2b!important}
body.citadel-interface :is(.practice-lab,.arcade-game,.arcade-settings,.lab-result-dialog,.sword-arsenal,.knight-evolution){border:7px ridge #77736a!important;border-image:none!important;background:#101111 url('obsidian-art/stone.svg')!important;color:#dedbd2}.citadel-interface .practice-lab[data-mode=management][open]{width:min(1400px,97vw);height:96dvh;max-width:97vw;grid-template-rows:auto 0 0 minmax(260px,1fr) auto auto auto}.citadel-interface .practice-lab>header{border-bottom:1px solid #685b42}.citadel-interface .practice-lab .lab-chart{background:var(--bg,#080909)!important;outline:1px solid #55524b;border-color:#292b2a}.citadel-interface .practice-lab h2,.citadel-interface .arcade-game .game-top h2{font:22px Georgia!important;text-shadow:none!important;letter-spacing:0}.citadel-interface .lab-result-dialog{width:min(1300px,96vw)}.citadel-interface .lab-bank{border-radius:0;background:#141514;border-color:#696359}.citadel-interface .lab-chart .lab-actions .lab-advance-candle{background:var(--upFill,#b92842)!important;border-color:var(--up,#ff526d)!important;color:#fff!important;clip-path:none!important;border-radius:50%!important}.citadel-interface .lab-help-button{clip-path:none!important}
@media(min-width:1500px){body.citadel-interface main.portal-shell{grid-template-columns:235px minmax(450px,1fr) 410px}.citadel-interface .mission-card .lab-card-cover,.citadel-interface .mission-chart-art{height:130px!important}}
@media(max-width:1150px){body.citadel-interface main.portal-shell{grid-template-columns:180px minmax(300px,1fr) 290px;gap:8px}.citadel-interface .portal-study{padding:14px!important}.citadel-interface #view-games{padding:10px}.citadel-interface .mission-grid{gap:7px}.citadel-interface .mission-card h2{font-size:14px}.citadel-profile .student-avatar{width:105px;height:105px}}
@media(max-width:900px){body.citadel-interface main.portal-shell{grid-template-columns:160px minmax(0,1fr)}.citadel-interface .portal-navigation{grid-column:2}.citadel-interface .portal-study{grid-column:2;grid-row:3}.citadel-interface #view-games{grid-column:2;grid-row:4}.citadel-interface .citadel-profile{grid-row:2 / span 3}.citadel-interface .portal-view:not(#view-games){grid-column:2}.citadel-interface .mission-grid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:600px){body.citadel-interface{padding:5px}body.citadel-interface main.portal-shell{display:flex;flex-direction:column;gap:8px}.citadel-interface .portal-shell>header{min-height:135px;padding:20px 8px 55px}.citadel-interface .portal-shell>header b{font-size:25px;letter-spacing:3px}.citadel-interface .portal-shell>header>div:first-child>small{font-size:8px;letter-spacing:2px}.citadel-interface .header-tools{right:7px;left:7px;justify-content:center}.citadel-interface .portal-navigation{order:1;gap:5px}.citadel-interface .citadel-profile{order:2;display:grid;grid-template-columns:65px 1fr 65px;padding:10px;gap:7px}.citadel-profile .student-avatar{width:55px;height:55px;border-width:2px;grid-row:1/3}.citadel-profile h2{font-size:17px;text-align:left}.citadel-profile .citadel-crest{width:65px;height:77px;grid-column:3;grid-row:1/4}.citadel-crest strong{font-size:23px}.citadel-crest small{font-size:9px}.citadel-profile .citadel-xp{font-size:12px;grid-column:2;text-align:left}.citadel-profile>.citadel-progress{grid-column:1/3}.citadel-profile>button,.citadel-profile>small{display:none}.citadel-interface .portal-study{order:3;padding:12px!important}.citadel-interface #view-games{order:4;padding:12px}.citadel-interface .portal-view:not(#view-games){order:3}.citadel-interface .portal-study #phases{margin-bottom:15px}.citadel-interface #card{padding:18px}.citadel-interface .practice-lab[data-mode=management][open]{width:99vw;height:98dvh}.citadel-interface .portal-navigation button{font-size:11px}}

.citadel-interface .portal-study{width:100%!important;justify-self:stretch;min-width:0}.citadel-interface #view-games{width:100%;box-sizing:border-box}.citadel-interface .mission-card h2{font-size:16px!important;line-height:1.25!important}.citadel-interface .mission-card .portal-action{font-size:10px!important;white-space:normal}.citadel-interface .portal-shell>header b{font-size:36px!important}.citadel-interface .citadel-profile .student-avatar.large{width:130px;height:130px;aspect-ratio:1;flex-shrink:0}.citadel-interface .portal-navigation button:focus-visible{outline:2px solid #e6b768;outline-offset:2px}@media(max-width:600px){.citadel-interface .citadel-profile .student-avatar.large{width:55px;height:55px}}

.citadel-interface .practice-lab>header small,.citadel-interface .lab-bank>small{color:#c5b594!important;letter-spacing:.6px}.citadel-interface .practice-lab .lab-note{color:#c0bbae!important}.citadel-interface .citadel-profile .student-avatar.large{display:block;line-height:120px}.citadel-interface .citadel-profile .student-avatar.large img{width:100%;height:100%;position:absolute;inset:0}.citadel-interface .citadel-profile .student-avatar.large{position:relative}.citadel-interface button:focus-visible{outline:2px solid #e0b36a;outline-offset:3px}@media(prefers-reduced-motion:reduce){.citadel-interface *{scroll-behavior:auto!important}}

/* Arte de pedra e metal reconstruída a partir da referência. */
body.citadel-interface{background:#070808 url('obsidian-art/citadel-scene-v2.png') top center / 100% auto no-repeat fixed;padding:5px 12px 28px}
body.citadel-interface main.portal-shell{max-width:1560px;grid-template-columns:220px minmax(360px,1fr) 385px;gap:10px}
body.citadel-interface .portal-shell>header{min-height:132px;background:transparent!important;border:0;box-shadow:none;padding:18px 20px 45px}
body.citadel-interface .portal-shell>header b{font-family:Georgia,'Times New Roman',serif!important;font-weight:400;font-size:44px!important;letter-spacing:6px;text-shadow:0 2px 2px #000,1px 0 #a49a84;color:#e9e2d6}
body.citadel-interface :is(.citadel-profile,.portal-study,#view-games,.portal-navigation,.portal-view:not(#view-games)){background:#101111!important;border:14px solid transparent!important;border-image:url('obsidian-art/stone-panel-v2.png') 105 fill stretch!important;box-shadow:0 4px 8px #0008!important}
body.citadel-interface .citadel-profile{padding:22px 10px;gap:12px}
body.citadel-interface .portal-study{padding:16px!important}
body.citadel-interface #view-games{padding:16px!important}
body.citadel-interface .portal-navigation{padding:0;gap:6px;border-width:10px!important}
body.citadel-interface button:not(.theme-dot):not(.colors-theme),body.citadel-interface .portal-study .answer{background:#131414 url('obsidian-art/stone-button-v2.png') center / 100% 100% no-repeat!important;border:0!important;box-shadow:none!important;clip-path:none!important;border-radius:0!important;padding:12px 18px;color:#dcd8d0!important;min-height:40px;line-height:1.25;transition:filter .15s}
body.citadel-interface button:hover{filter:brightness(1.22)!important;color:#ffe3ab!important}
body.citadel-interface .portal-navigation [aria-current=page]{background:#131414 url('obsidian-art/stone-button-v2.png') center / 100% 100% no-repeat!important;color:#ffcc75!important;filter:drop-shadow(0 0 3px #bc7b26);box-shadow:none!important}
body.citadel-interface .portal-navigation button{font:15px Arial,sans-serif;min-height:42px}
body.citadel-interface :is(.citadel-section-heading h1,#view-games .portal-section-title h2){font:600 25px Arial,sans-serif;letter-spacing:.2px;position:relative;padding-left:14px}
body.citadel-interface :is(.citadel-section-heading h1,#view-games .portal-section-title h2):before{content:'';position:absolute;left:0;top:1px;bottom:1px;width:3px;background:#e8ae43;box-shadow:0 0 6px #d98a28}
body.citadel-interface .citadel-section-heading p{padding-left:14px;font-size:12px}
body.citadel-interface #card{background:linear-gradient(#0c0d0dcc,#0c0d0ddd);border:1px solid #6d685e;box-shadow:inset 0 0 0 4px #0b0c0c;padding:24px 20px}
body.citadel-interface #card h2{font:600 24px/1.35 Arial,sans-serif;text-shadow:0 2px #000}
body.citadel-interface .portal-study .answer{min-height:65px;font:600 22px Arial,sans-serif;margin-bottom:10px;padding:15px 20px}
body.citadel-interface .portal-study #phases{display:flex;gap:5px}.citadel-interface .portal-study .phase{flex:1;background:#121313;border-color:#696257!important;color:#c4beb0;clip-path:polygon(8px 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,8px 100%,0 50%)}
body.citadel-interface .mission-card{border:10px solid transparent!important;border-image:url('obsidian-art/stone-panel-v2.png') 105 fill stretch!important;padding:4px!important;background:#111!important}
body.citadel-interface .mission-card h2{font:16px/1.2 Georgia!important;color:#e2d9c7}.citadel-interface .mission-card .portal-action{min-height:33px;padding:8px 12px!important}
body.citadel-interface :is(.practice-lab,.arcade-game,.arcade-settings,.lab-result-dialog,.sword-arsenal,.knight-evolution){background:#101111!important;border:12px solid transparent!important;border-image:url('obsidian-art/stone-panel-v2.png') 105 fill stretch!important;box-shadow:0 20px 60px #000c!important}
body.citadel-interface .practice-lab[data-mode=management][open]{width:min(1450px,98vw);height:97dvh}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle{background:var(--upFill,#b92842)!important;border:2px solid var(--up,#ff526d)!important;color:#fff!important;border-radius:50%!important;min-height:44px;padding:8px!important}
body.citadel-interface :is(.game-top-actions button,.lab-help-button,.lab-width-tools>button){min-width:34px;padding:8px!important}
body.citadel-interface .equipped-sword{border:0!important;background:none!important;width:55px;height:68px;min-width:55px;flex-basis:55px}.equipped-sword .citadel-crest{width:55px;height:68px;padding-top:5px}.equipped-sword .citadel-crest strong{font-size:19px}.equipped-sword .citadel-crest small{font-size:7px}.evo-portrait .citadel-crest{width:90px;height:105px}.evo-portrait .citadel-crest strong{font-size:28px}.evo-portrait .citadel-crest small{font-size:10px}
@media(max-width:1150px){body.citadel-interface main.portal-shell{grid-template-columns:180px minmax(300px,1fr) 300px}body.citadel-interface #view-games{padding:8px!important}body.citadel-interface .portal-navigation button{font-size:12px;padding:9px}}
@media(max-width:900px){body.citadel-interface main.portal-shell{grid-template-columns:160px minmax(0,1fr)}body.citadel-interface .portal-shell>header b{font-size:34px!important}}
@media(max-width:600px){body.citadel-interface{padding:4px;background-size:auto 100vh}body.citadel-interface main.portal-shell{display:flex}body.citadel-interface .portal-shell>header b{font-size:28px!important;letter-spacing:3px}body.citadel-interface .portal-navigation{flex-wrap:wrap}body.citadel-interface .portal-navigation button{flex:1 1 35%;padding:10px}body.citadel-interface .citadel-profile{padding:9px;gap:6px}body.citadel-interface .portal-study{padding:12px!important}body.citadel-interface .portal-study .answer{font-size:18px;min-height:55px}body.citadel-interface .practice-lab[data-mode=management][open]{width:99vw;height:98dvh}body.citadel-interface :is(.citadel-section-heading h1,#view-games .portal-section-title h2){font-size:21px}}

/* Correções de proporção e peças extraídas da referência fornecida. */
body.citadel-interface{background:#070808 url('obsidian-art/citadel-scene-v2.png') center top / 100% auto no-repeat fixed!important}
body.citadel-interface .portal-shell>header{height:145px!important;min-height:145px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr auto!important;justify-items:center!important;align-items:center;padding:12px 20px 8px!important;gap:8px;overflow:visible}
body.citadel-interface .portal-shell>header>div:first-child{grid-row:1;align-self:center;max-width:100%;min-width:0}
body.citadel-interface .portal-shell>header b{font-size:40px!important;line-height:1.12!important;display:block;white-space:nowrap}
body.citadel-interface .header-tools{position:static!important;grid-row:2;justify-self:end;display:flex!important;flex-wrap:nowrap!important;gap:7px;max-width:100%;margin:0!important}
body.citadel-interface .header-tools button{min-height:32px!important;height:32px!important;padding:5px 12px!important}
body.citadel-interface .citadel-profile .student-avatar.large{width:150px!important;height:200px!important;min-height:200px!important;max-height:none!important;flex:0 0 auto!important;aspect-ratio:3 / 4!important;border:4px ridge #9d8964;line-height:190px;box-sizing:border-box;overflow:hidden;clip-path:polygon(12% 0,88% 0,100% 9%,100% 91%,88% 100%,12% 100%,0 91%,0 9%)}
body.citadel-interface .citadel-profile .student-avatar.large img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;background:#111}
body.citadel-interface .portal-study .answers{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;margin-top:28px}
body.citadel-interface button:not(.theme-dot):not(.colors-theme),body.citadel-interface .portal-study .answer{background:#151616!important;background-image:linear-gradient(135deg,#22232388,#0d0e0e99)!important;border:10px solid transparent!important;border-image:url('obsidian-art/reference-button.svg') 20 25 stretch!important;box-shadow:none!important;clip-path:none!important;padding:5px 12px!important;min-height:43px}
body.citadel-interface .portal-study .answer{font-size:21px;justify-content:center!important;text-align:center!important;min-height:68px!important;display:flex;align-items:center;gap:8px;margin:0!important}
body.citadel-interface .portal-study .answer:after{display:none!important}
body.citadel-interface .portal-study .answer:first-child:before{content:'✓';font-size:25px;color:#e3dbc9}.citadel-interface .portal-study .answer:nth-child(2):before{content:'×';font-size:25px;color:#e3dbc9}
body.citadel-interface button:hover{background-image:linear-gradient(135deg,#3a302088,#151616)!important;filter:brightness(1.15)!important}
body.citadel-interface :is(.portal-study,#view-games,.portal-navigation,.portal-view:not(#view-games),.practice-lab,.arcade-game,.arcade-settings,.lab-result-dialog){border-image-source:url('obsidian-art/reference-frame.svg')!important;border-image-slice:28!important;border-image-width:12px!important;border-width:12px!important;background-color:#0c0d0d!important}
body.citadel-interface .citadel-profile{border-image-source:url('obsidian-art/reference-sidebar.svg')!important;border-image-slice:25!important;border-image-width:12px!important;background:#111 url('obsidian-art/stone.svg')!important}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle{border-image:none!important;border:2px solid var(--up,#ff526d)!important;background:var(--upFill,#b92842)!important;border-radius:50%!important;padding:8px!important}
body.citadel-interface .citadel-profile h2{overflow-wrap:anywhere;max-width:100%}
@media(max-width:1150px){body.citadel-interface main.portal-shell{grid-template-columns:205px minmax(300px,1fr) 300px}}
@media(max-width:900px){body.citadel-interface main.portal-shell{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:600px){body.citadel-interface .portal-shell>header{height:150px!important;min-height:150px!important;padding:12px 8px!important}body.citadel-interface .portal-shell>header b{font-size:27px!important;letter-spacing:3px}.citadel-interface .header-tools{justify-self:center!important;gap:3px!important}body.citadel-interface .header-tools button{padding:4px 7px!important}body.citadel-interface .citadel-profile{grid-template-columns:75px 1fr 68px;align-items:center}body.citadel-interface .citadel-profile .student-avatar.large{width:66px!important;height:88px!important;min-height:88px!important;grid-row:1 / 4;line-height:80px}body.citadel-interface .portal-study .answers{gap:7px}body.citadel-interface .portal-study .answer{font-size:18px;min-height:57px!important;padding:4px!important}}

body.citadel-interface #card h1{font:600 26px/1.3 Arial,sans-serif;color:#e5e2da;margin:22px 0 14px}body.citadel-interface #card p{line-height:1.55;color:#bcbcb7}body.citadel-interface .portal-study .answer:not([data-choice=sim]):not([data-choice='não']):before{content:none!important}@media(min-width:1200px){body.citadel-interface main.portal-shell{grid-template-columns:21% minmax(0,1.45fr) minmax(0,1fr)}body.citadel-interface .citadel-profile .student-avatar.large{width:170px!important;height:227px!important;min-height:227px!important}}

/* Cabeçalho mineral: obsidiana substitui o castelo. */
body.citadel-interface{background:#070808 url('obsidian-art/stone.svg') repeat fixed!important}body.citadel-interface .portal-shell>header{background:#080909 url('obsidian-art/mineral-header-v3.png') center 48% / cover no-repeat!important;border-bottom:1px solid #64543a!important;isolation:isolate}body.citadel-interface .portal-shell>header:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 12%,#05060666 40%,#05060666 60%,transparent 88%);z-index:-1;pointer-events:none}body.citadel-interface .portal-shell>header b{text-shadow:0 2px 3px #000,0 0 12px #000!important}

/* Recorte limpo: elimina o fundo externo das peças e integra os cantos. */
body.citadel-interface button:not(.theme-dot):not(.colors-theme),body.citadel-interface .portal-study .answer{--button-cut:7px;clip-path:polygon(var(--button-cut) 0,calc(100% - var(--button-cut)) 0,100% var(--button-cut),100% calc(100% - var(--button-cut)),calc(100% - var(--button-cut)) 100%,var(--button-cut) 100%,0 calc(100% - var(--button-cut)),0 var(--button-cut))!important;border-image-source:url('obsidian-art/reference-button-clean.svg')!important;background-color:#111313!important;background-clip:padding-box!important}
body.citadel-interface .portal-navigation{background:#101111 url('obsidian-art/stone.svg')!important;gap:3px!important;box-shadow:none!important}
body.citadel-interface :is(.portal-navigation,.portal-study,#view-games,.citadel-profile,.mission-card,.arcade-game,.arcade-settings,.practice-lab,.lab-result-dialog,.knight-evolution,.sword-arsenal){--panel-cut:9px;clip-path:polygon(var(--panel-cut) 0,calc(100% - var(--panel-cut)) 0,100% var(--panel-cut),100% calc(100% - var(--panel-cut)),calc(100% - var(--panel-cut)) 100%,var(--panel-cut) 100%,0 calc(100% - var(--panel-cut)),0 var(--panel-cut))}
body.citadel-interface .mission-card{background-color:#101111!important}
body.citadel-interface :is(.lab-chart .lab-actions .lab-advance-candle,.theme-dot,.colors-theme){clip-path:none!important;border-image:none!important}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle{background:var(--upFill,#b92842)!important}
@media(prefers-reduced-motion:reduce){body.citadel-interface button{transition:none!important}}

/* Molduras sem texto embutido e geometria consistente nos controles. */
body.citadel-interface :is(.citadel-profile,.portal-study,#view-games,.portal-navigation,.portal-view:not(#view-games),.mission-card,.arcade-game,.arcade-settings,.practice-lab,.lab-result-dialog,.knight-evolution,.sword-arsenal,.game-surface){border-image-source:url('obsidian-art/stone-panel-v2.png')!important;border-image-slice:105!important;border-image-width:12px!important;border-image-repeat:stretch!important;background-color:rgba(12,14,14,.96)!important;background-image:none!important;box-shadow:none!important}
body.citadel-interface .portal-navigation{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:6px!important;padding:5px!important;margin:0!important;box-sizing:border-box}
body.citadel-interface .portal-navigation>button{width:100%;min-width:0;margin:0!important;align-self:stretch;justify-self:stretch}
body.citadel-interface button:not(.theme-dot):not(.colors-theme),body.citadel-interface .portal-study .answer{box-sizing:border-box!important;display:inline-flex;align-items:center!important;justify-content:center!important;text-align:center!important;gap:7px;line-height:1.25!important;vertical-align:middle;position:relative;border-width:7px!important;border-image-width:7px!important;min-height:40px;height:auto;padding:5px 11px!important;overflow:visible;background-clip:padding-box!important}
body.citadel-interface button>svg{display:block;flex:0 0 auto;margin:0!important;vertical-align:middle;align-self:center}
body.citadel-interface .header-tools{align-items:center!important;gap:6px!important}
body.citadel-interface .header-tools button{height:40px!important;min-height:40px!important;min-width:40px;padding:4px 9px!important;border-width:6px!important;border-image-width:6px!important;flex:0 0 auto}
body.citadel-interface .header-tools button svg{width:17px;height:17px;max-height:17px;position:static!important;transform:none!important}
body.citadel-interface :is(.game-top-actions,.color-top-actions,.lab-bank-confirm-actions,.profile-controls,.ranking-controls){display:flex;align-items:center;gap:7px;flex-wrap:wrap}
body.citadel-interface .game-top-actions button{min-height:36px;padding:4px 9px!important;margin:0!important;border-width:6px!important;border-image-width:6px!important}
body.citadel-interface .arcade-game:before,body.citadel-interface .arcade-game>.game-top:after{content:none!important;display:none!important}
body.citadel-interface :is(.citadel-section-heading,.portal-section-title){background:transparent!important;min-height:0;box-shadow:none!important}
body.citadel-interface :is(.citadel-section-heading h1,.portal-section-title h2){position:relative!important;margin-top:0!important;margin-bottom:8px!important;line-height:1.25!important;transform:none!important}
body.citadel-interface .mission-card .portal-action{display:flex;width:100%;min-height:37px!important;margin:8px 0 0!important;align-items:center!important;justify-content:center!important}
body.citadel-interface .arcade-game .entry-choice{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;line-height:1.25!important;padding:7px 10px!important}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle{display:grid!important;place-items:center!important;border-width:2px!important;border-image:none!important;min-width:44px;min-height:44px;padding:8px!important;border-radius:50%!important;background:var(--upFill,#b92842)!important;clip-path:none!important}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle svg{margin:0!important}
body.citadel-interface .color-top-actions button{height:38px;min-width:38px;padding:4px!important;border-width:6px!important;border-image-width:6px!important}
body.citadel-interface :is(.game-colors,.sword-arsenal,.knight-evolution,.lab-result-dialog){background-color:#101212!important}
@media(max-width:600px){body.citadel-interface .portal-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}body.citadel-interface .portal-navigation>button{min-height:42px!important;font-size:11px}body.citadel-interface .header-tools{flex-wrap:wrap!important;justify-content:center!important}.citadel-interface .header-tools button{min-width:34px!important;min-height:36px!important;height:36px!important}body.citadel-interface .portal-shell>header{height:auto!important;min-height:155px!important}}

body.citadel-interface .mission-brief :is(.arcade-start,.mission-tune){display:inline-flex!important;vertical-align:middle!important;align-items:center!important;justify-content:center!important;min-height:42px!important;margin:16px 8px 0 0!important}
body.citadel-interface .game-top-actions{justify-content:flex-end!important;align-items:center!important;align-content:center;row-gap:7px}
body.citadel-interface .portal-navigation>button svg{width:19px;height:19px;flex-basis:19px}

body.citadel-interface .practice-lab .lab-chart button svg{width:22px!important;height:22px!important;min-height:0!important;max-height:22px!important;display:block!important;flex:none!important;overflow:visible!important;align-self:center!important;justify-self:center!important}body.citadel-interface .practice-lab .lab-chart button.lab-reference-toggle{min-height:28px!important}

@media(max-width:600px){body.citadel-interface .portal-shell>.portal-navigation{position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;transform:none!important;z-index:auto!important;order:1!important;box-sizing:border-box}body.citadel-interface .citadel-profile>button{display:none!important}body.citadel-interface .citadel-profile{display:grid!important;grid-template-columns:75px minmax(0,1fr) 68px!important;min-width:0}body.citadel-interface .portal-shell{padding-bottom:0!important}body.citadel-interface .portal-study #card h1{font-size:23px!important}}
