@font-face{font-family:Shojumaru;src:url('assets/fonts/Shojumaru.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Texturina;src:url('assets/fonts/Texturina.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:'Uncial Antiqua';src:url('assets/fonts/UncialAntiqua.ttf') format('truetype');font-weight:400;font-display:swap}
body[data-theme=china],body[data-theme=japan]{--display-font:Shojumaru;--reading-font:Shojumaru;--theme-weight:400}
body[data-theme=egypt],body[data-theme=incas],body[data-theme=aztecs]{--display-font:Texturina;--reading-font:Texturina;--theme-weight:800;--theme-reading-weight:800}
body[data-theme=rome],body[data-theme=greece]{--display-font:'Times New Roman',Times;--reading-font:'Times New Roman',Times;--theme-weight:700}
body[data-theme=england],body[data-theme=france],body[data-theme=spain]{--display-font:'Uncial Antiqua';--reading-font:'Uncial Antiqua';--theme-weight:400}
body:is([data-theme=egypt],[data-theme=aztecs],[data-theme=incas],[data-theme=china],[data-theme=japan],[data-theme=rome],[data-theme=greece],[data-theme=england],[data-theme=france],[data-theme=spain]) :is(#taskHeading,#topic,.team-name,#openingTitle,#directionsTitle,.direction-banner h3,.welcome-copy h1,.random-head strong,.random-answer){font-weight:var(--theme-weight,700);font-synthesis:none}
body:is([data-theme=egypt],[data-theme=aztecs],[data-theme=incas],[data-theme=china],[data-theme=japan],[data-theme=rome],[data-theme=greece],[data-theme=england],[data-theme=france],[data-theme=spain]) :is(#target,#openingText,.direction-banner p){font-weight:var(--theme-reading-weight,400);font-synthesis:none}
body[data-theme=france] #topic{font-style:normal}
/* Cards live outside main's stacking context so the decorative header cannot trap handles. */
body>main{z-index:auto}body>header{z-index:auto;pointer-events:none}#menuBtn{pointer-events:auto;position:relative;z-index:1000}
#scoreboard{display:none!important}body>#teams{display:contents!important;container-type:normal}
body:not([data-screen=game])>#teams,.no-teams>#teams{display:none!important}
body>#teams>.team-card{position:fixed!important;z-index:10;container-type:inline-size;margin:0!important;max-width:none;transform:none}
.team-card .team-top{cursor:grab;touch-action:none;user-select:none}
.drag-title{cursor:grab;touch-action:none;user-select:none}.drag-title:active{cursor:grabbing}
.team-card>.resize-corner{width:44px;height:44px;min-height:44px;z-index:60;right:0;bottom:0;font:30px Arial;background:#16343ccc;color:#ffe4a1}
#task .task-top[hidden]{display:block!important;min-height:28px}#task .task-top:has(#taskHeading:empty){border-top:2px solid #74573155}
#storyBuilder #builderDrag,#storyBuilder>.resize-corner{display:none!important}#storyBuilder img{height:100%}
#menu{z-index:1100!important}.menu-scroll{z-index:1101!important}#slideOptions{z-index:1000!important}
#cardOptions select{display:block;width:100%;margin-top:8px}#cardOptions button{width:100%;margin-bottom:8px}#resizeAllCards[aria-pressed=true]{background:#846325;border-color:#ffe2a2}

.team-card .team-top{min-height:44px!important}

body:is([data-theme=egypt],[data-theme=aztecs],[data-theme=incas],[data-theme=china],[data-theme=japan],[data-theme=rome],[data-theme=greece],[data-theme=england],[data-theme=france],[data-theme=spain]) :is(header h1,#worldName){font-family:var(--display-font),serif;font-weight:var(--theme-weight);font-synthesis:none}
