/* Generated by lc from design/brick-steps.tokens.json; edit the Brick Steps artifact instead. */
:root {
  --paper: #f2f7f8;
  --surface: #ffffff;
  --ink: #1f2a30;
  --ink-muted: #52616a;
  --line: #c9d7dc;
  --azure: #36aebf;
  --azure-deep: #0b6f7e;
  --yellow: #f2cd37;
  --magenta: #923978;
  --green: #237841;
  --block-events: #edc542;
  --block-control: #f4b744;
  --block-movement: #ea66c9;
  --block-motors: #3990ef;
  --block-myblocks: #ff6680;
  --block-variables: #ff9835;
  --port-a: #1d5fc4;
  --port-b: #c2410c;
  --port-c: #6d3fc0;
  --port-d: #0f766e;
  --port-e: #3f6f12;
  --port-f: #b42323;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --tap-min: 48px;
  --thumb: 96px;
  --page-max: 744px;
  --page-wide: 1133px;
  --side-panel: 320px;
  --stop: 148px;
  --font-display: "Lexend", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}
.t-step-number {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
}
.t-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}
.t-heading {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}
.t-count {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}
.t-button {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}
.t-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}
.t-caption {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
/* Brick Steps components. Every value comes from a design token (see design/brick-steps.tokens.json). */
/* Touch, for children on an iPad:
   - manipulation on every element: no double-tap zoom anywhere (pinch zoom still works). WebKit does not pass
     touch-action down from <html>, and the 3D canvas overrides it with none further down.
   - no text selection, long-press menus or image dragging: a held finger should do nothing, not open a menu.
   - no grey tap flash and no rubber-band scrolling; pressed things shrink a little instead (below). */
*, *::before, *::after { box-sizing: border-box; touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
button, .chapter, .tile, .stop, .back, .sheet .go, .open-app { transition: scale 80ms ease-out; }
button:active, .chapter:active, .tile:active, .stop:active, .back:active, .sheet .go:active, .open-app:active { scale: 0.96; }
@media (prefers-reduced-motion: reduce) { button, .chapter, .tile, .stop, .back, .sheet .go, .open-app { transition: none; } }
/* keep-all: Korean lines break between words, not inside them. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: var(--azure-deep); }
:focus-visible { outline: 3px solid var(--azure-deep); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, p, figure { margin: 0; }

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
  padding-block: calc(var(--space-6) + env(safe-area-inset-top, 0px)) var(--space-10);
  display: grid;
  gap: var(--space-6);
}
.manual .wrap { padding-bottom: calc(var(--tap-min) + var(--space-10) + env(safe-area-inset-bottom, 0px)); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-6); }
.deck.js .card { display: none; }
.deck.js .card.on { display: grid; animation: slide-in 160ms ease-out; }
@keyframes slide-in { from { transform: translateX(var(--dir, 24px)); opacity: 0.4; } to { transform: none; opacity: 1; } }
.deck.js .card.on.jump { animation: none; }
@media (prefers-reduced-motion: reduce) { .deck.js .card.on { animation: none; } }

.hero { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--paper); display: block; }
.cover .side, .done .side { justify-items: center; text-align: center; }

/* One card fills the screen in both orientations: the info takes what it needs, the picture the rest.
   Landscape (iPad mini 1133 x 744) puts the info in a side panel left of the picture. */
.side { display: grid; gap: var(--space-4); align-content: start; }
.manual .deck.js {
  height: 100dvh; grid-template-rows: minmax(0, 1fr);
  padding-block: calc(var(--tap-min) + 2 * var(--space-2) + var(--space-4) + env(safe-area-inset-top, 0px)) calc(var(--tap-min) + 2 * var(--space-4) + env(safe-area-inset-bottom, 0px));
}
.deck.js .card.on { display: flex; flex-direction: column; gap: var(--space-4); min-height: 0; }
.deck.js .main { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.deck.js .main > .step-img { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.deck.js .main .stage3d { aspect-ratio: auto; width: 100%; height: 100%; }
.deck.js .main img { max-height: 100%; width: auto; object-fit: contain; }
.deck.js .mission .main { place-items: start; overflow: auto; }
/* Portrait cover: the finished model on top at full width, its name and story right under it. */
@media (orientation: portrait), (max-width: 899px) {
  .deck.js .cover.on { justify-content: center; }
  .deck.js .cover .main { flex: 0 1 auto; order: -1; }
  .deck.js .cover .main img { width: 100%; height: auto; }
}

/* Section bar: brand mark home, the manual's parts, contents. Fixed at the top; current part outlined,
   the build part fills with azure as steps are turned. */
.chapters {
  position: fixed; left: 0; right: 0; top: 0; z-index: 2; background: var(--paper);
  display: flex; align-items: center; gap: var(--space-2);
  padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) max(var(--space-4), env(safe-area-inset-right, 0px), calc(50% - var(--page-max) / 2 + var(--space-4))) var(--space-2) max(var(--space-4), env(safe-area-inset-left, 0px), calc(50% - var(--page-max) / 2 + var(--space-4)));
}
.chapters .home { flex: none; display: block; line-height: 0; }
/* 48px: the full mark's smallest size (design system). */
.chapters .home img { width: calc(var(--tap-min) - var(--space-2)); height: auto; }
.chapter, .chapters .toc, .contents .close {
  min-height: var(--tap-min); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; cursor: pointer;
}
.chapter {
  flex: 1; min-width: 0; position: relative; overflow: hidden; display: grid; place-items: center;
  background: var(--surface); border: 3px solid var(--surface); white-space: nowrap;
}
.chapter[data-chapter="build"]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--azure); }
.chapter span { position: relative; }
.chapter[aria-current] { border-color: var(--azure-deep); }
.chapters .toc, .contents .close { flex: none; padding: 0 var(--space-6); background: var(--surface); border: 3px solid var(--azure-deep); }

/* Contents: a full-screen sheet with a tile per card */
.contents {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: auto;
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) max(var(--space-4), env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left, 0px));
}
.contents-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.contents h2 { margin: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tile {
  position: relative; height: 100%; min-height: var(--tap-min); display: grid; align-content: start; justify-items: center; gap: var(--space-2);
  padding: var(--space-2); background: var(--surface); border: 3px solid var(--surface); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; text-align: center;
}
.tile img { object-fit: contain; }
.tile img, .tile .play-mark { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--paper); }
.tile .play-mark { display: grid; place-items: center; color: var(--azure-deep); }
.tile[aria-current] { border-color: var(--azure-deep); }
.tile.seen::after {
  content: "✓"; position: absolute; top: var(--space-2); right: var(--space-2);
  background: var(--green); color: var(--surface); border-radius: var(--radius-pill); padding: 0 var(--space-2);
}

/* Step */
/* The total sits right after the big number, so "4 / 15 단계" reads as one phrase. */
.step-head { display: flex; align-items: baseline; gap: var(--space-4); }
.step-total { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sub-label { justify-self: start; background: var(--magenta); color: var(--surface); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); }

/* Parts tray */
.tray { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.tray-head { background: var(--yellow); color: var(--ink); padding: var(--space-2) var(--space-4); }
.tray ul { list-style: none; margin: 0; padding: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-4); }
/* The count sits on the thumbnail's corner, so two parts fit side by side in the landscape panel. */
.tray li { position: relative; padding: 0 var(--space-2) var(--space-2) 0; }
.tray img { width: var(--thumb); height: var(--thumb); object-fit: contain; border-radius: var(--radius-sm); background: var(--paper); }
.tray li.sub img { outline: 3px solid var(--magenta); outline-offset: -3px; }
.count { position: absolute; right: 0; bottom: 0; background: var(--yellow); color: var(--ink); border-radius: var(--radius-sm); padding: var(--space-2); font-family: var(--font-display); }

.step-img img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); background: var(--paper); }

/* 3D step view: takes the picture's place once it is ready (viewer3d.js) */
.step-img { position: relative; margin: 0; width: 100%; }
/* Over the picture while the 3D view is made: the 3D hint's pill, bobbing like the map's next-stop pill. */
.step-img .loading3d { position: absolute; left: 50%; top: var(--space-4); translate: -50% 0; white-space: nowrap; background: var(--ink); color: var(--surface); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); pointer-events: none; animation: bob 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .step-img .loading3d { animation: none; } }
.step-img.has-3d > img { display: none; }
.stage3d { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius-md); background: var(--paper); overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stage3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage3d .hint { position: absolute; left: 50%; top: var(--space-4); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--surface); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); pointer-events: none; transition: opacity 160ms ease-out; }
.stage3d .hint.gone { opacity: 0; }
.stage3d .tools { position: absolute; left: var(--space-2); right: var(--space-2); bottom: var(--space-2); display: flex; gap: var(--space-2); pointer-events: none; }
.stage3d .tools button { pointer-events: auto; min-height: var(--tap-min); padding: 0 var(--space-6); border-radius: var(--radius-pill); border: 3px solid var(--azure-deep); background: var(--surface); color: var(--ink); cursor: pointer; }
.stage3d .tools .home { margin-left: auto; }
.credit { color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .stage3d .hint { transition: none; } }

/* Mission cards: SPIKE App word blocks (ADR 0003) */
.intro { text-wrap: balance; }
.mission-label { color: var(--ink-muted); }
/* The mission's project, opened in the SPIKE App (ADR 0006): the card's one action. */
.open-app {
  justify-self: start; min-height: var(--tap-min); padding: 0 var(--space-10); border-radius: var(--radius-pill);
  display: inline-grid; place-items: center; background: var(--azure); color: var(--ink); text-decoration: none;
}
/* Word blocks drawn like the SPIKE App: stacked blocks joined by a notch on top and a tab below,
   a rounded hat on event blocks, C-shaped repeat blocks, white number inputs and darker dropdowns. */
.blocks, .repeat-body { list-style: none; margin: 0; padding: 0; display: grid; justify-items: start; }
.blocks { --behind: var(--surface); padding-top: var(--space-4); }
.repeat-body { --behind: var(--block-bg); margin-left: var(--space-6); }
.block { position: relative; background: var(--block-bg); color: var(--ink); border-radius: var(--radius-sm); }
.block.events { --block-bg: var(--block-events); border-top-left-radius: 0; }
.block.control { --block-bg: var(--block-control); }
.block.movement { --block-bg: var(--block-movement); }
.block.motors { --block-bg: var(--block-motors); }
.block.myblocks { --block-bg: var(--block-myblocks); }
.block::before, .block::after { content: ""; position: absolute; left: var(--space-4); width: var(--space-6); height: 6px; clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); }
.block::before { top: 0; background: var(--behind); }
.block::after { top: 100%; background: var(--block-bg); z-index: 1; }
.block.events::before { left: 0; top: auto; bottom: 100%; width: calc(2 * var(--space-10)); height: var(--space-4); background: var(--block-bg); clip-path: none; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.block.events > .block-text::before { content: "▶"; }
.block-text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); }
.block.c { padding-bottom: var(--space-6); }
.slot { background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 0 var(--space-2); }
.slot.menu { background: color-mix(in srgb, var(--block-bg) 45%, var(--ink)); color: var(--surface); }
.slot.var { background: var(--block-variables); }
.try { justify-self: start; background: var(--yellow); color: var(--ink); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4); }

/* Cable card: which device goes into which hub port */
.cable-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.cable-list li { display: flex; align-items: center; gap: var(--space-4); }
.cable-list img { width: var(--thumb); height: var(--thumb); border-radius: var(--radius-sm); background: var(--paper); }
.port { display: inline-grid; place-items: center; width: calc(var(--space-10) + var(--space-2)); aspect-ratio: 1; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); }
.port-a { background: var(--port-a); }
.port-b { background: var(--port-b); }
.port-c { background: var(--port-c); }
.port-d { background: var(--port-d); }
.port-e { background: var(--port-e); }
.port-f { background: var(--port-f); }

/* Hidden lab of drafts */
.draft-note { background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4); justify-self: stretch; text-align: start; }
.site-head .brand { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Finished */
.badge { background: var(--green); color: var(--surface); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-6); }

/* Pager: fixed to the bottom, Next wider than Back */
.pager {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  padding: var(--space-4) max(var(--space-4), env(safe-area-inset-right, 0px)) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left, 0px));
}
.pager-in { max-width: var(--page-max); margin: 0 auto; display: flex; gap: var(--space-4); }
.pager button { min-height: var(--tap-min); border-radius: var(--radius-pill); border: 0; cursor: pointer; color: var(--ink); padding: 0 var(--space-6); }
.pager .prev { flex: 0 0 auto; min-width: calc(3 * var(--tap-min)); background: var(--surface); border: 3px solid var(--azure-deep); }
/* Sized to their words, not stretched across the screen; Next stays the wider one, at the far end. */
.pager .next { flex: 0 0 auto; min-width: calc(5 * var(--tap-min)); margin-left: auto; background: var(--azure); }
.pager button:disabled { visibility: hidden; }

/* Adventure map: home and lab. A road per series, a stop per model (site.gallery_html). */
.map-page {
  min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-4);
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) max(var(--space-4), env(safe-area-inset-right, 0px)) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left, 0px));
}
.site-head { display: grid; gap: var(--space-4); justify-items: start; }
.brand-box { display: grid; gap: var(--space-2); }
.map-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.map-title h1, .map-title p { margin: 0; }
.back {
  min-height: var(--tap-min); padding: 0 var(--space-6); border-radius: var(--radius-pill); display: inline-grid; place-items: center;
  background: var(--surface); border: 3px solid var(--azure-deep); color: var(--ink); text-decoration: none;
}
.site-head .brand { height: var(--tap-min); width: auto; max-width: 100%; }
.tagline, .site-foot, .version, .map-title .t-body { color: var(--ink-muted); }
.empty { align-self: center; justify-self: center; display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.empty .t-body { color: var(--ink-muted); }
.site-foot { text-align: center; }
.map {
  position: relative; overflow: hidden;
  min-height: calc(var(--lanes) * (var(--stop) + 3 * var(--space-10)));
  min-width: calc(var(--cols) * (var(--stop) + var(--space-6)));
}
.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.roads path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.road-edge { stroke: var(--line); stroke-width: var(--tap-min); }
.road { stroke: var(--surface); stroke-width: calc(var(--tap-min) - 2 * var(--space-2)); }
.road-line { stroke: var(--yellow); stroke-width: var(--space-2); stroke-dasharray: 1 var(--space-6); }
.branch { stroke: var(--azure); stroke-width: var(--space-2); stroke-dasharray: 1 var(--space-4); }
.sign {
  position: absolute; left: 0; margin: 0; transform: translateY(calc(var(--stop) / -2 - 100% - var(--space-4)));
  background: var(--yellow); color: var(--ink); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4);
}
.stop {
  position: absolute; transform: translate(-50%, calc(var(--stop) / -2));
  display: grid; justify-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none;
}
.stop .disc {
  width: var(--stop); aspect-ratio: 1; border-radius: 50%; background: var(--surface); overflow: hidden;
  display: grid; place-items: center; border: 6px solid var(--azure);
}
.stop .disc img { width: 92%; height: auto; }
.stop.built .disc { border-color: var(--green); }
.stop.locked .disc { border: 4px dashed var(--line); background: var(--paper); color: var(--ink-muted); }
.stop .label { background: var(--surface); border-radius: var(--radius-pill); padding: 0 var(--space-4); white-space: nowrap; }
.stop.locked .label { background: none; color: var(--ink-muted); }
.stop .here, .stop .tick { display: none; position: absolute; left: 50%; border-radius: var(--radius-pill); padding: 0 var(--space-4); white-space: nowrap; }
.stop .tick { top: 0; transform: translate(-50%, -50%); background: var(--green); color: var(--surface); }
.stop.built .tick { display: block; }
.stop .here { bottom: 100%; margin-bottom: var(--space-2); translate: -50% 0; background: var(--ink); color: var(--surface); animation: bob 1.4s ease-in-out infinite; }
.stop.next .here { display: block; }
@keyframes bob { 50% { transform: translateY(calc(-1 * var(--space-2))); } }
@media (prefers-reduced-motion: reduce) { .stop .here { animation: none; } }

/* Sheet that rises when a stop is tapped */
.sheet {
  position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; max-width: var(--page-max); margin: 0 auto;
  transform: translateY(100%); transition: transform 220ms ease-out;
  background: var(--surface); border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-6) max(var(--space-6), env(safe-area-inset-right, 0px)) calc(var(--space-10) + env(safe-area-inset-bottom, 0px)) max(var(--space-6), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); align-items: center;
}
.sheet.on { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.sheet-img { width: 100%; border-radius: var(--radius-md); background: var(--paper); }
.sheet .info { display: grid; gap: var(--space-2); justify-items: start; }
.sheet h2 { margin: 0; }
.sheet .from { color: var(--ink-muted); }
.sheet .go {
  min-height: var(--tap-min); padding: 0 var(--space-10); margin-top: var(--space-2); border-radius: var(--radius-pill);
  display: inline-grid; place-items: center; background: var(--azure); color: var(--ink); text-decoration: none;
}
.sheet .x {
  position: absolute; top: var(--space-2); right: var(--space-2); min-width: var(--tap-min); min-height: var(--tap-min);
  background: none; border: 0; color: var(--ink-muted); cursor: pointer;
}
/* Clearing a build is deliberately small and needs two taps, so a child does not hit it by accident. */
.sheet .clear {
  position: absolute; right: var(--space-4); bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: none; border: 0; padding: var(--space-2); color: var(--ink-muted); text-decoration: underline; cursor: pointer;
}
@media (max-width: 479px) { .sheet { grid-template-columns: minmax(0, 1fr); } }

/* PDF (WeasyPrint): one card per page */
@page { size: A4; margin: 12mm; }
.print { background: var(--surface); }
.print .wrap { max-width: none; padding: 0; display: block; }
.print .card { break-after: page; padding: 0; }

/* Landscape iPad mini (1133 x 744): last, so it overrides the portrait rules above. */
@media (orientation: landscape) and (min-width: 900px) {
  .manual .deck.js { max-width: none; padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
  .deck.js .card.on { display: grid; grid-template-columns: var(--side-panel) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--space-6); }
  /* Room at the bottom of the panel for the pager, which sits there in landscape. */
  .deck.js .side { min-height: 0; overflow: auto; padding-bottom: calc(var(--tap-min) + var(--space-4)); }
  .deck.js .cover .side, .deck.js .done .side { align-content: center; }
  .deck.js .main { height: 100%; }
  .pager {
    left: calc(2 * var(--space-4) + env(safe-area-inset-left, 0px)); right: auto;
    bottom: calc(2 * var(--space-4) + env(safe-area-inset-bottom, 0px));
    width: var(--side-panel); padding: 0; background: none;
  }
  .pager .prev { flex: 1; min-width: 0; }
  .pager .next { flex: 2; min-width: 0; }
  .deck.js .mission .main { place-items: center; }
  .chapters { padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@font-face { font-family: "Noto Sans KR"; src: url("fonts/noto-sans-kr-abe99c534920.woff2") format("woff2"); font-weight: 400 700; font-display: block; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-7a4363231e19.woff2") format("woff2"); font-weight: 600 700; font-display: block; }
@font-face { font-family: "Noto Sans KR"; src: url("fonts/noto-sans-math-26df81b3414f.woff2") format("woff2"); font-weight: 400 700; unicode-range: U+21BA, U+21BB, U+25BE; font-display: block; }
