/* The Studio: a hero creator in four steps (Draw, Role, Skills, Fight). The drawing page is the stage; the panel beside
   it holds the pens, then the role stamp, then the kit as ability tiles and an inked lobby panel with the Play button. */
.studiopage { max-width: 1200px; }
.studiohead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 2px 0 16px; flex-wrap: wrap; }
.studiohead .prompt { margin: 0; flex: 1 1 380px; font-size: clamp(26px, 3vw, 34px); }
.studiohead .prompt small { font-size: 15px; }

/* the step tracker: four skewed manga tabs; white is where you are, ink is done, an outline is still to come */
.stepbar { display: flex; list-style: none; margin: 0 0 4px; padding: 0 0 0 8px; flex: none; }
.stepbar li { display: flex; align-items: center; gap: 8px; padding: 6px 18px 5px 14px; margin-left: -3px; border: 3px solid var(--ink); background: transparent; color: var(--on-mat-dim); transform: skewX(-12deg); font-weight: 900; font-size: 15px; white-space: nowrap; border-style: dashed; border-color: var(--on-mat-dim); }
.stepbar li > * { transform: skewX(12deg); }
.stepbar li b { font-family: var(--display); font-weight: 400; font-size: 15px; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid currentColor; }
.stepbar li.now { background: var(--board); color: var(--ink); border-style: solid; border-color: var(--ink); box-shadow: 4px 4px 0 var(--drop); position: relative; z-index: 1; animation: tabin .3s cubic-bezier(.2, 1.5, .5, 1); }
.stepbar li.now b { background: var(--red); color: #fff; border-color: var(--ink); }
.stepbar li.done { background: var(--ink); color: var(--board); border-style: solid; border-color: var(--ink); }
.stepbar li.done b { font-size: 0; border-color: var(--board); } .stepbar li.done b::after { content: '✓'; font-size: 15px; font-family: var(--text); font-weight: 900; color: var(--hi); }
@keyframes tabin { from { transform: skewX(-12deg) translateY(-6px); } }

/* the stage: the drawing page, with a hard ink shadow that takes the role's colour once the hero is made */
.studio { gap: 20px; }
@media (min-width: 820px) { .studio { grid-template-columns: minmax(400px, 560px) minmax(0, 1fr); } .stage { position: sticky; top: 16px; } }
.stage { min-width: 0; align-self: start; }
/* the Play button, always beside the drawing: under it on a computer, a bar along the bottom on a phone */
.stageplay { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.stageplay .btn.primary.playbtn { border-color: var(--ink); }
.stagespell { margin: 0; color: var(--on-mat); font-size: 14px; font-weight: 700; } .stagespell b { font-weight: 900; } .stagespell .linkish { color: var(--hi); margin-left: 6px; font-size: 14px; }
.stagespell .linkish:focus-visible { outline-color: var(--hi); }
@media (max-width: 819px) {
  .stageplay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 3px solid var(--ink); grid-template-columns: minmax(0, 1fr) auto; align-items: center; box-shadow: 0 -4px 0 var(--red); }
  .stageplay .btn.primary.playbtn { font-size: 22px; padding: 10px 12px 8px; box-shadow: 4px 4px 0 var(--red); border-color: var(--hi); }
  .stageplay .playbtn small { font-size: 12px; margin-top: 2px; }
  .stagespell { color: #d6d8dd; font-size: 12px; max-width: 108px; line-height: 1.3; } .stagespell .linkish { display: block; margin: 2px 0 0; font-size: 13px; min-height: 0; }
  body.playbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.sheet { container-type: inline-size; box-shadow: 6px 6px 0 var(--rc, var(--drop)); transition: box-shadow .3s; }
.caption { position: absolute; left: 18px; top: 18px; right: 18px; z-index: 2; color: var(--ink); pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.caption .nameplate { font-size: clamp(24px, 7.2cqi, 42px); line-height: 1.02; min-height: 0; max-width: 94%; -webkit-text-stroke: 7px var(--board); paint-order: stroke fill; overflow-wrap: anywhere; }
.rolebadge { display: inline-flex; gap: 7px; align-items: center; font-family: var(--display); font-size: 15px; line-height: 1; color: var(--on, #fff); background: var(--rc, var(--ink)); border: 3px solid var(--ink); border-radius: 2px; padding: 5px 12px 4px 6px; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--drop); }
.rg { font-style: normal; font-family: var(--display); font-weight: 400; }
.rolebadge .rg { font-size: 17px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--board); color: var(--ink); border: 2px solid var(--ink); }

/* the shared icons (public/ui.js): inline SVG in currentColor, sized by the box they sit in */
.rg, .vglyph, .glyph, .eltag { line-height: 0; }
.rg .ic { width: 68%; height: 68%; } .vglyph .ic { width: 60%; height: 60%; } .glyph .ic { height: 52%; width: auto; aspect-ratio: 1; }
.eltag { display: inline-flex; align-items: center; gap: 5px; line-height: 1.3; } .eltag .ic { width: 14px; height: 14px; }

/* the panel beside the stage */
.tools { padding: 18px 20px 20px; box-shadow: 6px 6px 0 var(--drop); gap: 0; }
.tools .label { display: block; font-size: 13px; font-weight: 900; color: var(--graphite); margin: 0 0 6px; }
.tgroup { margin-bottom: 16px; } .tgroup.split { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.seg { gap: 0; } .seg .btn { border-radius: 0; margin-left: -2.5px; min-height: 44px; } .seg .btn:first-child { margin-left: 0; border-radius: 3px 0 0 3px; } .seg .btn:last-child { border-radius: 0 3px 3px 0; }
.seg .btn.on { background: var(--ink); color: var(--board); position: relative; z-index: 1; }
#colors { gap: 6px; padding-top: 8px; } #colors .pen { width: 30px; height: 44px; }
.size { width: 44px; height: 44px; }
#undo, #erase { min-height: 44px; } #erase.on { background: var(--ink); color: var(--board); }
.gobtn { display: block; width: 100%; font-size: 24px; padding: 16px 22px 15px; margin-top: 4px; box-shadow: 6px 6px 0 var(--drop); }
.btn.primary.gobtn:active { box-shadow: 1px 1px 0 var(--drop); transform: translate(5px, 5px); }
.idea { margin: 16px 0 0; padding-top: 12px; border-top: 2px dashed var(--rule); font-size: 14.5px; }

/* the role step: a stamp in the role's colour, its base numbers, and the other role it could be */
.verdict { display: grid; grid-template-columns: 76px 1fr; gap: 6px 16px; align-items: center; border: 3px solid var(--ink); border-top: 10px solid var(--rc, var(--tone)); padding: 14px 16px 14px 14px; margin-bottom: 14px; background: var(--board); }
.vglyph { width: 76px; height: 76px; display: grid; place-items: center; font-family: var(--display); font-size: 44px; line-height: 1; border: 3px dashed var(--tone); color: var(--tone); transform: rotate(-4deg); }
.verdict.known .vglyph { background: var(--rc); color: var(--on, #fff); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--drop); animation: stamp .35s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes stamp { from { transform: rotate(-16deg) scale(1.8); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.vtext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.verdict b { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; color: var(--rc, var(--ink)); }
.verdict.known b { -webkit-text-stroke: 0; }
.verdict .vtext > span { font-size: 15.5px; } .verdict small { color: var(--graphite); font-size: 14px; } .verdict small:empty { display: none; }
.verdict .stats { grid-column: 1 / -1; margin-top: 8px; }
.verdict.pop .vtext { animation: pop .35s; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.stats:empty { display: none; }
.stat { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 900; color: var(--graphite); }
.stat i { height: 12px; border: 2px solid var(--ink); background: var(--board); display: block; }
.stat i b { display: block; height: 100%; background: radial-gradient(circle, rgba(20,20,22,.28) 1px, transparent 1.3px) 0 0 / 4px 4px, var(--rc, var(--ink)); }
#roleSwitch { margin: 0 0 14px; gap: 6px 10px; }
.orlab { font-size: 13px; font-weight: 900; color: var(--graphite); }
.rolebtn { display: inline-flex; align-items: center; gap: 9px; background: var(--board); color: var(--ink); border: 2.5px dashed var(--rc, var(--ink)); border-radius: 3px; padding: 5px 12px 5px 5px; font: 700 15px var(--text); cursor: pointer; min-height: 44px; }
.rolebtn .rg { width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; background: var(--rc); color: var(--on, #fff); border: 2px solid var(--ink); }
.rolebtn b { color: var(--rc); font-weight: 900; }
.rolebtn:hover { border-style: solid; background: #f4f5f0; } .rolebtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.dotshelp { font-size: 14px; color: var(--graphite); margin: 0 0 12px; }
.namefield { margin: 4px 0 18px; } .namefield input { font-size: 22px; }
.lookrow { gap: 10px; } .lookrow .btn.big { font-size: 22px; padding: 14px 24px; box-shadow: 6px 6px 0 var(--drop); }

/* ability tiles: an element-coloured square with the element's icon, the key it sits on, the name under it */
.kcard, .ltile { position: relative; display: flex; flex-direction: column; background: var(--board); color: var(--ink); border: 3px solid var(--ink); border-radius: 2px; padding: 0; text-align: left; font-family: inherit; min-width: 0; }
.kcard .glyph, .ltile .glyph { display: grid; place-items: center; height: 64px; background: var(--el, var(--ink)); color: var(--on, var(--board)); font-family: var(--display); font-size: 36px; line-height: 1; border-bottom: 3px solid var(--ink); }
.kcard.ult .glyph, .ltile.ult.done .glyph { background: radial-gradient(circle, rgba(20,20,22,.24) 1.2px, transparent 1.5px) 0 0 / 7px 7px, var(--el, var(--ink)); }
.kcard.ult, .ltile.ult.done { border-width: 4px; }
.key { position: absolute; left: -3px; top: -3px; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 13px/1 var(--display); font-style: normal; }
.kcard b { display: block; font-size: 13.5px; font-weight: 900; line-height: 1.15; padding: 7px 8px 0; overflow-wrap: anywhere; }
.kcard .slot { display: block; font-size: 11.5px; font-weight: 700; color: var(--graphite); padding: 2px 8px 8px; margin-top: auto; }
.kit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.kcard { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.kcard:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--drop); }
.kcard.sel { transform: translate(-2px, -4px); box-shadow: 4px 6px 0 var(--drop); }
.kcard.sel::after { content: ''; position: absolute; left: 50%; bottom: -15px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--ink); }
.kcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.kcard:active { transform: translate(0, 0); box-shadow: none; }
.kdetail { margin-top: 14px; border: 3px solid var(--ink); border-left: 10px solid var(--el, var(--ink)); padding: 10px 14px 12px; background: var(--board); }
.kdhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.kdhead .key { position: static; width: 28px; height: 28px; font-size: 15px; }
.kdhead b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.eltag { font-size: 12.5px; font-weight: 900; padding: 2px 9px 1px; background: var(--el, var(--ink)); color: var(--on, #fff); border: 2px solid var(--ink); margin-left: auto; text-transform: lowercase; }
.kdetail p { margin: 8px 0 8px; font-size: 15.5px; line-height: 1.5; }
.kfacts { display: flex; flex-wrap: wrap; gap: 6px; } .kfacts span { font-size: 12.5px; font-weight: 900; border: 2px solid var(--ink); padding: 1px 8px; background: #f2f3ee; }
.kup { margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: #2c2d31; border-top: 2px dashed var(--rule); padding-top: 8px; }

/* the character sheet */
.herosheet { display: flex; flex-direction: column; gap: 0; }
.hhead { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.herosheet .bio { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); border-left: 5px solid var(--rule); padding-left: 12px; }
.hhead .stats { border: 2px solid var(--ink); padding: 10px 12px 11px; background: #f6f7f2; }
.statrole { grid-column: 1 / -1; display: flex; gap: 9px; align-items: center; font-size: 13.5px; line-height: 1.35; margin-bottom: 4px; }
.statrole .rg { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; background: var(--rc); color: #fff; border: 2px solid var(--ink); }
.statrole b { color: var(--rc); font-weight: 900; }
h3.sub { font-size: 18px; margin: 20px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h3.sub small { font: 700 13px var(--text); color: var(--graphite); }
.timeline { font-size: 14px; padding: 7px 11px; border: 2px solid var(--ink); border-radius: 2px; line-height: 1.4; } .timeline b { font-weight: 900; margin-right: 4px; }
.timeline.day { background: #fff6d6; } .timeline.day b { color: #9a5f00; } .timeline.night { background: #1d2550; color: #e8ebff; border-color: #1d2550; } .timeline.night b { color: #aab8ff; }

/* the lobby panel: an inked panel with the loadout and the one highlighter button on the screen */
.playpanel { margin-top: 20px; background: var(--ink); color: var(--board); border: 4px solid var(--ink); padding: 14px 16px 16px; box-shadow: 6px 6px 0 var(--drop); display: flex; flex-direction: column; gap: 12px; }
.loadout .label { display: block; font-size: 13px; font-weight: 900; color: #c9cbd1; margin-bottom: 7px; }
.spells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.spells button { background: transparent; color: var(--board); border: 2px solid #6b6e77; border-radius: 2px; padding: 6px 8px 5px; text-align: left; cursor: pointer; min-height: 44px; font-family: inherit; }
.spells button b { display: block; font-size: 13.5px; font-weight: 900; line-height: 1.15; } .spells button small { font-size: 11.5px; font-weight: 700; color: #a9acb4; }
.spells button:hover { border-color: var(--board); }
.spells button.on { background: var(--board); color: var(--ink); border-color: var(--board); box-shadow: 3px 3px 0 var(--blue); } .spells button.on small { color: var(--graphite); }
.spells button:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
.spelldesc { margin: 8px 0 0; font-size: 13.5px; color: #d6d8dd; line-height: 1.4; } .spelldesc b { color: var(--board); }
.btn.primary.playbtn { display: block; text-align: center; font-size: 30px; padding: 14px 20px 12px; line-height: 1.05; box-shadow: 6px 6px 0 var(--red); border-color: var(--hi); }
.playbtn small { display: block; font: 700 13.5px var(--text); margin-top: 4px; }
.btn.primary.playbtn:active { box-shadow: 1px 1px 0 var(--red); transform: translate(5px, 5px); }
.btn.playbtn:focus-visible { outline: 3px solid var(--hi); outline-offset: 4px; }
.playmore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.playmore .btn { text-align: center; padding: 8px 8px 7px; font-size: 15px; line-height: 1.15; }
.playmore .btn small { display: block; font-size: 11.5px; font-weight: 700; color: var(--graphite); margin-top: 2px; }
.playmore .btn.primary small { color: var(--ink); }
.playmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.playmeta .btn { background: transparent; color: var(--board); border-color: #6b6e77; font-size: 14px; padding: 6px 12px; min-height: 40px; }
.playmeta .btn:hover { border-color: var(--board); background: rgba(251,251,248,.08); }

/* upgrade picks: a track of the four levels, each with the two choices */
.uptrack ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.uptrack li { position: relative; border: 2.5px solid var(--ink); border-top: 6px solid var(--el, var(--ink)); padding: 22px 9px 9px; font-size: 13px; line-height: 1.25; background: var(--board); }
.uptrack .lv { position: absolute; right: 7px; top: 3px; font-family: var(--display); font-size: 13px; }
.uptrack .key { top: -6px; left: -3px; }
.uptrack .ch { display: flex; flex-direction: column; gap: 1px; } .uptrack .ch b { font-weight: 900; } .uptrack .ch em { font-style: normal; font-size: 11.5px; color: var(--graphite); }
.styles { margin-top: 2px; }
.stylegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 7px; margin-top: 0; }
.stylegrid button { background: var(--board); border: 2.5px solid var(--ink); border-radius: 2px; padding: 7px 9px; font: 900 13.5px var(--text); text-align: left; cursor: pointer; color: var(--ink); min-height: 48px; }
.stylegrid button small { display: block; font-size: 11.5px; font-weight: 700; color: var(--graphite); }
.stylegrid button:hover { background: #f2f3ee; }
.stylegrid button.on { background: var(--ink); color: var(--board); box-shadow: 3px 3px 0 var(--purple); } .stylegrid button.on small { color: #cfd1d6; }
.stylegrid button.locked { opacity: .55; cursor: default; border-style: dashed; } .stylegrid button.buy small { color: #8a6d00; }
#mute { display: inline-grid; place-items: center; width: 40px; height: 36px; padding: 0 !important; color: var(--on-mat); text-decoration: none; } #mute svg { width: 22px; height: 22px; }
.profchip { font-weight: 900; font-size: 13px; color: var(--ink); background: var(--hi); border: 2px solid var(--ink); border-radius: 2px; padding: 1px 8px; white-space: nowrap; }
.flag { margin-top: 14px; }

/* while the reading writes: role and name, then six tiles that fill in as the kit arrives */
.loading { gap: 12px; }
.loading h3 { font-size: 26px; }
.lbar { height: 18px; border-width: 3px; }
.lbar i { background: radial-gradient(circle, var(--ink) 1.4px, transparent 1.6px) 0 0 / 6px 6px, var(--hi); animation: lmove .9s linear infinite; }
@keyframes lmove { to { background-position: 12px 0, 0 0; } }
.lmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.lm { display: inline-flex; align-items: center; gap: 7px; border: 2.5px dashed var(--tone); color: var(--tone); padding: 4px 11px 3px; font-weight: 900; font-size: 15px; min-height: 36px; }
.lm.done { border: 2.5px solid var(--ink); color: var(--ink); background: var(--board); animation: pop .3s; }
.lm .rg { width: 24px; height: 24px; display: grid; place-items: center; background: var(--rc); color: #fff; border: 2px solid var(--ink); font-size: 14px; }
.lm b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.ltiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ltile { border: 3px dashed var(--tone); color: var(--tone); }
.ltile .glyph { background: transparent; border-bottom: 3px dashed var(--tone); color: var(--tone); height: 58px; }
.ltile .key { background: var(--tone); }
.ltile b { font-size: 12.5px; font-weight: 900; padding: 6px 7px 8px; line-height: 1.15; overflow-wrap: anywhere; }
.ltile.now { border: 3px solid var(--blue); color: var(--blue); animation: wig .5s ease-in-out infinite alternate; } .ltile.now .glyph { border-bottom: 3px solid var(--blue); } .ltile.now .key { background: var(--blue); }
.ltile.now .glyph::after { content: ''; width: 18px; height: 18px; border: 3px solid var(--blue); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ltile.half { border: 3px solid var(--ink); color: var(--ink); } .ltile.half .glyph { border-bottom: 3px solid var(--ink); color: var(--ink); background: radial-gradient(circle, rgba(20,20,22,.14) 1.1px, transparent 1.3px) 0 0 / 6px 6px; } .ltile.half .key { background: var(--ink); }
.ltile.done { border: 3px solid var(--ink); color: var(--ink); animation: pop .3s; } .ltile.done .glyph { background: var(--el, var(--ink)); color: var(--on, var(--board)); border-bottom: 3px solid var(--ink); } .ltile.done .key { background: var(--ink); }
.tip { margin: 2px 0 0; font-size: 14px; border-left: 5px solid var(--hi); background: #fffbe0; padding: 8px 12px; line-height: 1.45; } .tip b { font-weight: 900; margin-right: 4px; }

/* today: your level and quests, and your heroes as a collection */
.today { margin: 34px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.today .box { padding: 14px 18px 16px; box-shadow: 5px 5px 0 var(--drop); }
.today h2 { font-size: 20px; margin: 0 0 8px; }
.lvbox { display: flex; gap: 16px; align-items: center; }
.lvbadge { flex: none; width: 86px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--purple); color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--drop); transform: rotate(-3deg); }
.lvbadge small { font-size: 12px; font-weight: 900; } .lvbadge b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.lvinfo { flex: 1; min-width: 0; } .lvinfo > small { font-size: 12.5px; color: var(--graphite); font-weight: 700; }
.lvbar { height: 14px; border: 2.5px solid var(--ink); border-radius: 0; overflow: hidden; background: var(--board); margin: 2px 0 4px; } .lvbar i { display: block; height: 100%; background: radial-gradient(circle, rgba(255,255,255,.35) 1.1px, transparent 1.4px) 0 0 / 5px 5px, var(--purple); }
.lvnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; margin-top: 10px; }
.lvnums span { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 700; color: var(--graphite); line-height: 1.2; border-left: 3px solid var(--rule); padding-left: 7px; } .lvnums b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.qrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; padding: 7px 0; border-bottom: 1.5px solid var(--rule); }
.qrow.done { color: var(--green); text-decoration: none; } .qrow.done > div > span { text-decoration: line-through; }
.qck { width: 22px; height: 22px; border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 14px; } .qrow.done .qck { background: var(--hi); color: var(--ink); }
.qbar { display: block; height: 6px; background: var(--rule); margin-top: 4px; } .qbar b { display: block; height: 100%; background: var(--ink); } .qrow.done .qbar b { background: var(--green); }
.qrow small { white-space: nowrap; font-weight: 900; color: #8a6d00; text-align: right; font-size: 12.5px; line-height: 1.3; }
.qnote { display: block; margin-top: 8px; color: var(--graphite); font-size: 12.5px; }
.case { margin: 22px 0 10px; padding: 14px 18px 18px; box-shadow: 5px 5px 0 var(--drop); }
.casehead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .casehead h2 { font-size: 22px; margin: 0; } .casehead span { font-size: 13px; font-weight: 700; color: var(--graphite); }
.casegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.htile { position: relative; display: flex; flex-direction: column; background: var(--board); border: 3px solid var(--ink); border-bottom: 8px solid var(--rc, var(--ink)); text-decoration: none; color: var(--ink); transition: transform .1s, box-shadow .1s; }
.htile:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--drop); } .htile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.htile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: 2px solid var(--ink); display: block; }
.htile .rg { position: absolute; left: -3px; top: -3px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--rc); color: var(--on, #fff); border: 2.5px solid var(--ink); font-size: 16px; }
.htile b { font-size: 13.5px; font-weight: 900; padding: 6px 8px 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htile small { font-size: 12px; font-weight: 700; color: var(--graphite); padding: 0 8px 6px; }
.htile.new { border-style: dashed; border-bottom: 3px dashed var(--ink); align-items: center; justify-content: center; min-height: 150px; gap: 6px; text-align: center; }
.htile.new .plus { width: 54px; height: 54px; display: grid; place-items: center; font: 400 36px/1 var(--display); background: var(--hi); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--drop); }
.htile.new b { white-space: normal; padding: 4px 8px 0; }
.case .empty { grid-column: 2 / -1; align-self: center; margin: 0; font-size: 15px; }

@media (max-width: 1060px) and (min-width: 820px) { .kit { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .kcard b { font-size: 12.5px; padding: 6px 6px 0; } .kcard .glyph { height: 54px; font-size: 30px; } .ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .uptrack ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 819px) { .studiohead { flex-direction: column-reverse; align-items: stretch; } .studiohead .prompt { flex: none; } .stepbar { padding-left: 4px; } .stepbar li { flex: 1; justify-content: center; } }
@media (max-width: 720px) { .today { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  header.top { flex-wrap: wrap; gap: 6px; } nav.links { flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
  #watchLink, #caseLink { display: none; } .studiohead .prompt { font-size: 23px; } .studiohead .prompt small { font-size: 14px; }
  .stepbar li { padding: 5px 6px 4px; gap: 5px; font-size: 13px; } .stepbar li b { width: 20px; height: 20px; font-size: 12px; }
  .tools { padding: 14px 14px 16px; box-shadow: 4px 4px 0 var(--drop); } .sheet { box-shadow: 4px 4px 0 var(--rc, var(--drop)); }
  .seg { width: 100%; } .seg .btn { flex: 1; padding-left: 6px; padding-right: 6px; font-size: 14px; }
  #colors { gap: 4px; } #colors .pen { width: 27px; }
  .gobtn { font-size: 21px; }
  .kit { gap: 5px; } .kcard .glyph { height: 46px; font-size: 26px; border-bottom-width: 2.5px; } .kcard b { font-size: 11px; padding: 5px 4px 0; } .kcard .slot { font-size: 10px; padding: 2px 4px 6px; } .key { width: 19px; height: 19px; font-size: 11px; } .kcard.sel { transform: translateY(-3px); box-shadow: 2px 4px 0 var(--drop); }
  .kdhead b { font-size: 18px; } .eltag { margin-left: 0; }
  .ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spells { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } .spells button { padding: 5px 4px 4px; } .spells button b { font-size: 12px; } .spells button small { font-size: 10.5px; }
  .playbtn { font-size: 25px; }
  .playmore { grid-template-columns: 1fr; } .playmore .btn { display: flex; justify-content: space-between; align-items: baseline; text-align: left; padding: 10px 12px; } .playmore .btn small { margin: 0 0 0 8px; text-align: right; }
  .uptrack ol { grid-template-columns: 1fr 1fr; }
  .lvbox { flex-direction: column; align-items: stretch; } .lvbadge { flex-direction: row; gap: 10px; width: auto; height: auto; padding: 6px 12px; transform: none; justify-content: flex-start; } .lvbadge b { font-size: 30px; }
  .lvnums { grid-template-columns: 1fr 1fr; }
  .casegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } .htile b { font-size: 12px; padding: 5px 6px 0; } .htile small { font-size: 11px; padding: 0 6px 5px; } .htile.new { min-height: 120px; } .htile.new .plus { width: 42px; height: 42px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ltile.now, .lbar i { animation: none; } }
.gofloat { white-space: nowrap; box-shadow: 5px 5px 0 var(--drop); }
@media (max-width: 479px) { .kcard b { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); } .kcard .glyph { height: 54px; font-size: 30px; } .kcard .slot { text-align: center; padding: 5px 2px 6px; font-weight: 900; color: var(--ink); } }

/* the artist's note: who the hero is, in the artist's words (shapes the reading, never its power) */
.descfield { display: flex; flex-direction: column; gap: 5px; margin: -6px 0 16px; font-weight: 700; }
.descfield > span { font-size: 15px; } .descfield > span small { font-weight: 700; font-size: 12.5px; color: var(--graphite); margin-left: 4px; }
.descfield textarea, .rewritebox textarea { font: 500 16px/1.45 var(--text); color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 2px; padding: 8px 10px; resize: vertical; min-height: 64px; width: 100%; box-shadow: 3px 3px 0 var(--drop, var(--ink)); }
.descfield textarea:focus, .rewritebox textarea:focus { outline: none; border-color: var(--blue); background: #fffdf0; }
.descfield textarea::placeholder, .rewritebox textarea::placeholder { color: var(--tone); }
.dnote { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--graphite); } .dnote b { font-variant-numeric: tabular-nums; }
.rolehint { --rc: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; padding: 6px 10px 6px 6px; font-size: 14px; font-weight: 700; border: 2px dashed var(--rc); background: #fbfbf8; }
.rolehint .rg { width: 26px; height: 26px; display: grid; place-items: center; background: var(--rc); color: #fff; border: 2px solid var(--ink); } .rolehint .rg .ic { width: 15px; height: 15px; }
.rolehint .linkish { font-weight: 900; color: var(--rc); }
.artnote { position: relative; margin: 0; padding: 9px 14px 10px; background: #fffbe0; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--drop, var(--ink)); transform: rotate(-.6deg); }
.artnote small { display: block; font: 400 12px var(--display); letter-spacing: .02em; color: var(--graphite); margin-bottom: 2px; }
.artnote p { margin: 0; font-size: 15.5px; line-height: 1.45; font-style: italic; overflow-wrap: anywhere; }
.artnote p::before { content: '\201C'; } .artnote p::after { content: '\201D'; }
.notenote { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--red); }
.rewritebox { margin-top: 14px; padding: 12px 14px 14px; border: 3px solid var(--ink); background: var(--board); box-shadow: 4px 4px 0 var(--drop, var(--ink)); }
.rewritebox h3.sub { margin-top: 0; } .rewritebox p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #2c2d31; }
.rewritebox .row { margin-top: 10px; align-items: center; } .rwcount { margin-left: auto; font-size: 12.5px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.rwerr { margin: 8px 0 0 !important; color: var(--red) !important; font-weight: 900; }
.showcase:empty { display: none; }

/* a skill's tile shows the hero itself doing the move (public/skillicon.js), the element as a badge in its corner */
.kcard .glyph.pic { height: auto; aspect-ratio: 1; position: relative; overflow: hidden; padding: 0; animation: picin .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.kcard .glyph.pic img { display: block; width: 100%; height: 100%; }
.kcard .glyph.pic .elb { position: absolute; right: 4px; bottom: 4px; width: 26%; aspect-ratio: 1; display: grid; place-items: center; background: var(--el); color: var(--on, #fff); border: 2px solid var(--ink); }
.kcard .glyph.pic .elb .ic { width: 70%; height: 70%; }
@keyframes picin { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kcard .glyph.pic { animation: none; } }
