/* All worlds without a specifically requested font use Texturina Extra Bold. */
body:not([data-theme=china]):not([data-theme=japan]):not([data-theme=rome]):not([data-theme=greece]):not([data-theme=england]):not([data-theme=france]):not([data-theme=spain]){--display-font:Texturina;--reading-font:Texturina;--theme-weight:800;--theme-reading-weight:800}
body :is(#taskHeading,#topic,.team-name,#openingTitle,#directionsTitle,.direction-banner h3,.welcome-copy h1,.random-head strong,.random-answer,#builderAdvice h3){font-weight:var(--theme-weight,800);font-synthesis:none}
body :is(#target,#openingText,.direction-banner p,#adviceText){font-family:var(--reading-font),serif;font-weight:var(--theme-reading-weight,400);font-synthesis:none}
#classPanel{padding:14px 18px;margin-bottom:20px;border-radius:12px;border:1px solid #c9bda5;background:#f1eadc;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}#classPanel label{margin:0}#classProgressHint{grid-column:1/-1;order:3;margin:0;font-size:13px;color:#48615d}#classPanel select{width:100%}
#taskFolders{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.folder-button{background:#38565b;color:#fff4dc;border-color:#a18a5f;text-align:left}.folder-button:hover{background:#4c7273}#taskPicker{width:min(1150px,96vw)}#taskChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow-y:auto;scrollbar-width:auto;max-height:62vh;padding:18px;align-items:stretch}.task-choice{position:relative;display:block!important;border:2px solid #cbbb9d!important;border-radius:12px;background:#f5eddb;padding:18px!important;min-height:165px;transition:background .15s,box-shadow .15s}.task-choice input{position:absolute;right:10px;top:10px;width:19px;height:19px;opacity:0}.task-choice strong{padding-right:15px;font-size:19px}.task-choice small{font-size:15px;line-height:1.4}.task-choice:has(input:checked){background:#e4efdc;border-color:#51866c!important;box-shadow:0 0 0 3px #80b99a55,inset 0 0 20px #a8d8a555}.task-choice:has(input:checked):after{content:'✓';position:absolute;right:8px;top:7px;color:#316a4e;font-size:20px}.task-choice:focus-visible{outline:3px solid #388dae;outline-offset:2px}
#builderAdvice{pointer-events:auto;display:flex!important;align-items:stretch;gap:0;max-width:none;height:auto}#builderAdvice[hidden]{display:none!important}#advicePortrait{width:31%;height:100%;flex:none;object-fit:contain;object-position:center bottom;pointer-events:none}#builderAdvice .advice-tablet{width:69%;height:100%;padding:0;position:relative;overflow:hidden;display:block}.advice-copy{position:absolute;inset:var(--safe-y) var(--safe-x);display:flex;flex-direction:column;gap:7px;overflow:hidden;min-height:0}#builderAdvice h3{font-family:var(--display-font),serif;height:25%;flex:none;max-height:60px;min-height:0;line-height:1.05;overflow:hidden;margin:0;cursor:grab;touch-action:none}#adviceText{flex:1;min-height:0;max-height:none;line-height:1.18;overflow:hidden;overflow-wrap:anywhere;margin:0}#builderAdvice>.resize-corner{z-index:100;pointer-events:auto}
#inkTools{display:flex;flex-wrap:nowrap;align-items:center;align-content:center;justify-content:center;gap:7px;padding:5px 9px!important;border-radius:9px;overflow:hidden;min-height:0;max-width:calc(100vw - 16px)!important}#inkTools>span{display:block!important;flex:0 0 26px;font:23px Arial;margin:0;cursor:grab;touch-action:none}#inkTools button{height:30px;min-height:30px;padding:3px 7px;font:12px Arial}#inkTools input[type=color]{height:28px;width:31px;padding:1px;flex:none}#inkTools label{font:12px Arial;white-space:nowrap;gap:4px;flex:none}#inkSize{width:68px!important;margin:0}#clearInk{font-size:11px!important}#inkTools .team-color-toggle{display:flex;align-items:center}#allowTeamColors{width:16px;height:16px;margin:0;accent-color:var(--accent)}#inkTools>.resize-corner{display:none!important}
.team-ink-color{position:relative;display:grid;place-items:center;width:30px;height:30px;min-height:30px;background:var(--control-bg);border-radius:5px;margin:0!important;padding:0!important;cursor:pointer;font:24px Arial}.team-ink-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0}.team-ink-color:focus-within{outline:2px solid #57bce4}
#randomMenuIcons{display:flex;gap:9px;margin:9px 0}#menu #randomMenuIcons button{width:auto;flex:1;min-height:45px;display:grid;place-items:center;padding:8px;background:#243d42}#randomMenuIcons svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linejoin:round;stroke-linecap:round}
#layoutPresets{border-top:1px solid #cbbc9f;padding-top:18px;margin-top:20px}#layoutPresets label{min-width:150px}#layoutPresetHint{font-size:13px;line-height:1.4;color:#48615d}
.team-card.compact-card .team-top{min-height:0!important}.team-card.compact-card .quick-score{height:26px!important;min-height:26px!important;width:24px!important;min-width:24px!important;flex-basis:24px!important;font-size:19px}.team-card.compact-card .card-ink-actions{top:25%;width:22px;gap:2px}.team-card.compact-card .card-ink-actions button,.team-card.compact-card .team-ink-color{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;font-size:17px}.team-card.compact-card .card-ink-actions svg{width:16px;height:16px}.team-card.compact-card .panel-content{gap:1px}.team-card.tiny-card .team-students{display:none}.team-card.tiny-card .card-ink-actions{top:2px;right:1px;gap:1px}.team-card.tiny-card .card-ink-actions button,.team-card.tiny-card .team-ink-color{height:15px!important;min-height:15px!important;width:18px!important;min-width:18px!important;font-size:12px}.team-card.tiny-card .card-ink-actions svg{width:12px;height:12px}.team-card.tiny-card .quick-score{height:18px!important;min-height:18px!important;font-size:14px;flex-basis:18px!important;min-width:18px!important}.team-card.tiny-card>.resize-corner{width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;font-size:12px!important}
#timerBox{border-color:var(--timer-color)!important;--control-ink:var(--timer-color)}#timer,#timerSettings,#timerReset,#timerSpotlight,#timerBox>.resize-corner{color:var(--timer-color)!important}#timerSettings,#timerReset{outline:1px solid color-mix(in srgb,var(--timer-color) 65%,transparent);outline-offset:-1px}#timer{font-family:var(--display-font),serif!important;font-weight:var(--theme-weight,800)}#timerColor{display:block;width:100%;height:40px;padding:2px}#themeTimerColor{font-size:13px;margin-top:8px}
@media(max-width:650px){#classPanel{grid-template-columns:1fr}#inkTools{flex-wrap:wrap;gap:5px}#taskChoices{gap:5px;padding:7px}.task-choice{padding:10px!important;min-height:135px}.task-choice strong{font-size:15px}.task-choice small{font-size:12px}}
header h1,#worldName,.team-score,.team-students{font-family:var(--display-font),serif!important;font-weight:var(--theme-weight,800);font-synthesis:none}

#teamActionButtons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#teamActionButtons button{min-width:0;padding:10px 6px;white-space:normal;font-size:13px}

#importRosterFromClass{display:block;width:100%;text-align:left;margin-top:6px;min-height:44px}#importRosterFromClass[hidden],#teamClass[hidden]{display:none}
/* Large touch-friendly controls in the timer editor. */
#timerDialog>.line{display:flex;flex-wrap:wrap;gap:18px}
#timerDialog .timer-time-field{flex:1 1 220px;min-width:0}
#timerDialog .timer-stepper{display:grid;grid-template-columns:52px minmax(65px,1fr) 52px;align-items:center;gap:8px;margin-top:8px}
#timerDialog .timer-stepper button{width:52px;height:52px;min-height:52px;padding:0;font-size:30px;line-height:1;touch-action:manipulation}
#timerDialog .timer-stepper input{width:100%;min-width:0;height:52px;margin:0;text-align:center;font-size:24px;appearance:textfield;-moz-appearance:textfield}
#timerDialog .timer-stepper input::-webkit-inner-spin-button,#timerDialog .timer-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#timerDialog .timer-quick-adjust{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 8px}
#timerDialog .timer-quick-adjust button{min-height:52px;padding:12px 16px;font-size:18px}
#timerDialog .timer-edit-readout{text-align:center;flex:1;min-width:100px}
#timerDialog .timer-edit-readout span{display:block;font-size:13px}
#timerCurrentTime{display:block;font-size:32px;font-weight:bold;font-variant-numeric:tabular-nums}
#timerUpdatePreview{text-align:center;font-weight:bold}
