/* I Try Korea · shared styles
   The practice pages are the same one-screen bench as 연습해봐요 (instruction card, step strip, scene) with the
   settings behind a long press. The home page reads like a subway map: each area of everyday life is a line with
   its own colour (a real Seoul line colour), and its tasks are the stations on it.
   Drawn like a comic: a white ground, one dark ink outline round every card, button and drawn thing, flat colours,
   and a yellow button with a hard shadow for the thing to press. Light colours on purpose, one look in every theme:
   the scenes are rooms and shops in daylight. Each task keeps its area's room colour. */
:root{
  --wall:#FFFFFF;
  --floor:#F2F4F6;
  --floor-edge:#1C2430;
  --card:#FFFFFF;
  --card-quiet:#F2F4F6;
  --ink:#1C2430;
  --ink-2:#4A5563;
  --ink-3:#5F6B79;
  --line:#C9CFD6;
  --edge:2.4px solid var(--ink);
  --cue:#EF7C1C;
  --cue-soft:#FFE7CC;
  --cue-ink:#8A3F00;
  --go:#0077B6;
  --go-deep:#005A8A;
  --press:#FFD200;
  --good:#00A84D;
  --good-ink:#00843D;
  --good-soft:#D6F2E1;
  --help-1:#F6D6A2;
  --help-2:#EE9C4B;
  --help-3:#A9541B;
  --teacher:#E6EAEE;
  --veil:rgba(255,255,255,.95);
  --shade:rgba(28,36,48,.42);
  /* one colour per area: the colour of a Seoul subway line */
  --ar-arrive:#0090D2;   /* AREX, the airport railroad */
  --ar-transit:#00A84D;  /* Line 2 */
  --ar-eat:#EF7C1C;      /* Line 3 */
  --ar-stay:#747F00;     /* Line 7 */
  --ar-enjoy:#E6186C;    /* Line 8 */
  --ar-kpop:#996CAC;     /* Line 5 */
  --ar-shop:#0052A4;     /* Line 1 */
  --ar-care:#77C4A3;     /* the Gyeongui-Jungang line */
  --ar-depart:#BDB092;   /* Line 9, to Gimpo Airport */
  --ar-season:#CD7C2F;   /* Line 6 */
  --ar-help:#D4003B;     /* the Sinbundang line */
  --f-display:"Atkinson Hyperlegible Next","IBM Plex Sans KR","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
  --f-ui:"Atkinson Hyperlegible Next","IBM Plex Sans KR","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
  --f-sign:"IBM Plex Sans KR","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
  color-scheme:light;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
/* room colours: a pale wash of the area's line colour on the wall, the floor, and the veil over the room
   (start and end screens). The floor's edge is always the ink line. */
[data-theme="sky"]{--wall:#E8F5FB;--floor:#D2E4EE;--veil:rgba(232,245,251,.95)}
[data-theme="mint"]{--wall:#E8F6EE;--floor:#D3E6DA;--veil:rgba(232,246,238,.95)}
[data-theme="peach"]{--wall:#FDF0E4;--floor:#F0DCC8;--veil:rgba(253,240,228,.95)}
[data-theme="butter"]{--wall:#F3F4E2;--floor:#E2E4C6;--veil:rgba(243,244,226,.95)}
[data-theme="rose"]{--wall:#FCEAF1;--floor:#EFD3DE;--veil:rgba(252,234,241,.95)}
[data-theme="lavender"]{--wall:#F3EDF6;--floor:#E2D7E9;--veil:rgba(243,237,246,.95)}
[data-theme="navy"]{--wall:#ECF0F8;--floor:#D6DEEE;--veil:rgba(236,240,248,.95)}
[data-theme="teal"]{--wall:#EAF6F1;--floor:#D3E8DF;--veil:rgba(234,246,241,.95)}
html{height:100%;box-sizing:border-box;font-synthesis:none}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;min-height:100%;background:var(--wall);color:var(--ink);font-family:var(--f-ui);font-size:15px;line-height:1.5;-webkit-tap-highlight-color:transparent}
body.practice{height:100%;overflow:hidden;overscroll-behavior:none}
html:has(> body.practice){overscroll-behavior:none}
img{max-width:100%}
[hidden]{display:none!important}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
a{color:var(--go)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--go);outline-offset:2px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kr{font-family:var(--f-sign);font-weight:600;word-break:keep-all}

/* ================= home ================= */
body.is-home{height:100%}
.site{min-height:100%;display:grid;grid-template-columns:clamp(220px,20vw,256px) minmax(0,1fr)}
.side{background:var(--card);border-right:var(--edge)}
.side-in{position:sticky;top:env(safe-area-inset-top,0px);display:flex;flex-direction:column;gap:24px;padding-block:clamp(22px,3vw,32px) 28px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:18px}
.menu-btn{display:none;align-items:center;gap:6px;height:42px;padding:0 15px 0 12px;border-radius:999px;border:2px solid var(--ink);background:var(--card);font-size:15px;font-weight:700;color:var(--ink)}
.menu-btn svg{width:20px;height:20px;color:var(--ink)}
.side-nav{display:flex;flex-direction:column}
.nav-label{margin:20px 0 4px;padding-left:12px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.nav-label:first-child{margin-top:0}
/* the areas are the menu's main thing (her fix, 2026-11-16: the clock and the weather under them drew the eye more):
   each is a white button with the ink outline and its line's station ring, the chosen one press yellow */
.side-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.side-nav a{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 12px;border-radius:13px;border:2px solid var(--ink);background:var(--card);font-family:var(--f-display);font-size:17px;font-weight:800;line-height:1.2;color:var(--ink);text-decoration:none}
.side-nav a:hover{background:#FFF6CC}
.side-nav a[aria-current="true"]{background:var(--press);box-shadow:2.5px 2.5px 0 var(--ink)}
/* a line's colour in the menu: a station ring, as on a subway map's legend */
.side-nav .ring{flex:none;width:19px;height:19px;border-radius:50%;background:#fff;border:5px solid var(--c,var(--go));box-shadow:0 0 0 1.5px var(--ink)}
.home{min-height:100%;display:flex;flex-direction:column}
.wrap{width:100%;max-width:1180px;margin-inline:auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.home-head{padding-block:clamp(22px,3.4vw,34px) 0}
.logo{margin:0;display:flex;align-items:center;gap:.32em;font-family:var(--f-display);font-weight:800;font-size:clamp(24px,2.2vw,28px);line-height:1;letter-spacing:-.015em;color:var(--ink);white-space:nowrap}
.mark{width:1.1em;height:1.1em;flex:none;display:block}
.mark .mk-tile{fill:var(--ink)}
.mark .mk-sleeve{fill:var(--ar-arrive)}
.mark .mk-line{fill:none;stroke:var(--press);stroke-width:9}
.mark .mk-stn{fill:#fff;stroke:var(--press);stroke-width:6}
.mark .mk-hand{fill:#FFD7B5;stroke:var(--ink);stroke-width:4;stroke-linejoin:round}
.mark .mk-crease{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}
.logo-link{display:flex;align-items:center;gap:.32em;color:inherit;text-decoration:none;border-radius:10px}
.tag{margin:0;font-family:var(--f-display);font-weight:800;font-size:clamp(23px,2.7vw,32px);line-height:1.2;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.home-main{flex:1;display:flex;flex-direction:column}
.picks{padding-block:clamp(16px,2.4vw,24px) clamp(40px,6vw,64px)}

/* the six areas */
.areas{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(150px,40vw,250px),1fr));gap:clamp(14px,2.2vw,24px)}
.area,.card{display:flex;flex-direction:column;height:100%;background:var(--card);border:var(--edge);border-radius:18px;text-decoration:none;color:var(--ink);overflow:hidden;box-shadow:0 0 0 var(--ink);transition:transform .12s ease,box-shadow .12s ease}
/* lifted like a sticker: a hard ink shadow, no blur */
a.area:hover,a.card:hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--ink)}
a.area:active,a.card:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}
.card-art{position:relative;display:block;box-sizing:content-box;margin:0;overflow:hidden;aspect-ratio:200/170;border-bottom:var(--edge)}
.card-art svg{display:block;width:100%;height:100%}
.area-body{display:flex;flex-direction:column;gap:9px;padding:12px 16px 16px 18px}
.area-name{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-family:var(--f-display);font-weight:800;font-size:clamp(22px,2.4vw,28px);line-height:1.1;letter-spacing:-.01em}
.area-name .kr{font-size:.56em;color:var(--ink-3)}
/* stations along the area's line: a filled stop is a task that is ready, a ring is one still being made */
.stops{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;font-size:13.5px;font-weight:700;color:var(--ink-2);font-variant-numeric:tabular-nums}
.stops > span:last-child{white-space:nowrap}
.track{position:relative;display:flex;align-items:center;gap:9px;padding:0 3px;flex:none}
.track::before{content:"";position:absolute;left:4px;right:4px;top:50%;height:5px;margin-top:-2.5px;border-radius:3px;background:var(--c)}
.stn{position:relative;width:14px;height:14px;border-radius:50%;background:#fff;border:3.5px solid var(--c)}
.stn.on{background:var(--c)}

/* one area: its line, then its task cards */
.area-view{padding-block:clamp(14px,2vw,20px) clamp(40px,6vw,64px)}
.back-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px 0 10px;border-radius:999px;border:2px solid var(--ink);background:var(--card);color:var(--ink);font-size:15px;font-weight:700;text-decoration:none}
.back-link svg{width:20px;height:20px;color:var(--ink)}
.area-head{display:flex;flex-direction:column;gap:12px;margin:18px 0 clamp(18px,2.4vw,26px)}
.area-title{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;font-family:var(--f-display);font-weight:800;font-size:clamp(34px,4.4vw,48px);line-height:1.05;letter-spacing:-.015em}
.area-title .kr{font-size:.5em;color:var(--ink-3)}
.area-head .track{align-self:flex-start;gap:clamp(18px,4vw,44px)}
.area-head .track::before{height:7px;margin-top:-3.5px}
.area-head .stn{width:20px;height:20px;border-width:5px}
.cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(150px,40vw,230px),1fr));gap:clamp(14px,2.2vw,24px)}
.card-name{display:block;padding:12px 16px 16px 18px;font-family:var(--f-display);font-weight:800;font-size:clamp(19px,2vw,23px);line-height:1.2;letter-spacing:-.005em;overflow-wrap:anywhere}
.card-name .kr{display:block;margin-top:4px;font-size:.62em;color:var(--ink-3)}
.go-dot{position:absolute;right:10px;bottom:10px;width:40px;height:40px;border-radius:50%;background:var(--press);color:var(--ink);border:2.4px solid var(--ink);display:grid;place-items:center;box-shadow:2px 2px 0 var(--ink)}
.go-dot svg{width:20px;height:20px;margin-left:2px}
/* a task still being made: same place and size, a dashed outline like a station still being built, not a link */
.card.soon{border-style:dashed}
.card.soon .card-art{filter:saturate(.8);border-bottom-style:dashed}
.soon-tag{position:absolute;left:8px;bottom:8px;padding:2px 10px;border-radius:999px;background:#FFFFFF;border:1.6px solid var(--ink);font-family:var(--f-ui);font-size:12.5px;font-weight:700;letter-spacing:.02em;color:var(--ink)}
.pictogram{color:var(--ink)}
.nojs{margin:0;font-size:16px}

/* below the cards: notes for visitors, parents and teachers */
.floor{flex:1;background:var(--floor);border-top:var(--edge)}
#guide,#about{scroll-margin-top:calc(env(safe-area-inset-top,0px) + 20px)}
.floor-in{padding-block:clamp(28px,4.4vw,52px) 28px;display:flex;flex-direction:column;gap:clamp(30px,4.4vw,48px)}
.paper{container-type:inline-size;background:var(--card);border:var(--edge);border-radius:18px;padding:clamp(20px,3.4vw,40px)}
.guide-head{display:flex;flex-direction:column;gap:8px;padding-bottom:clamp(18px,2.6vw,26px)}
.eyebrow{margin:0;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--go)}
.sec-title{margin:0;font-family:var(--f-display);font-weight:800;font-size:clamp(30px,3.6vw,40px);line-height:1.1;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.lead{margin:0;font-size:clamp(16px,1.6vw,17.5px);line-height:1.7;color:var(--ink-2);max-width:64ch}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(24px,3.6vw,48px)}
.g-block{min-width:0;display:flex;flex-direction:column;gap:10px;padding-block:clamp(18px,2.4vw,24px);border-top:1px solid var(--line)}
.g-wide{grid-column:1 / -1}
.g-block h3{margin:0;font-size:17.5px;font-weight:700;line-height:1.4;color:var(--ink)}
.g-block p{margin:0;font-size:15.5px;line-height:1.7;color:var(--ink-2);max-width:64ch}
.num{list-style:none;margin:0;padding:0;counter-reset:n;display:flex;flex-direction:column;gap:9px}
.num li{counter-increment:n;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;font-size:15.5px;line-height:1.6;color:var(--ink-2)}
.num li::before{content:counter(n);width:26px;height:26px;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;line-height:26px;text-align:center;font-variant-numeric:tabular-nums}
.guide .ladder{font-size:14px;gap:6px 8px}
.ladder .lv-wait{background:var(--card);box-shadow:inset 0 0 0 1.5px var(--ink)}
.ladder .lv-1{background:var(--help-1)}
.ladder .lv-2{background:var(--help-2)}
.ladder .lv-3{background:var(--help-3);color:#fff}
/* a Korean sign as it looks in the scenes: Korean on top, the gloss under it */
.sign-demo{display:inline-flex;flex-direction:column;align-items:flex-start;gap:0;padding:8px 16px 9px;border-radius:12px;border:var(--edge);background:#FFFFFF;color:var(--ink);align-self:flex-start}
.sign-demo .kr{font-size:22px;font-weight:700;line-height:1.2;color:var(--go)}
.sign-demo small{font-size:12.5px;font-weight:700;color:var(--ink-2)}
.pill-teacher{display:inline-flex;align-items:center;gap:5px;margin-inline:2px;padding:1px 10px 1px 7px;border:1.6px solid var(--ink);border-radius:999px;background:var(--card);font-size:13.5px;font-weight:600;line-height:1.6;color:var(--ink-2);white-space:nowrap;vertical-align:1px}
.pill-teacher svg{width:14px;height:14px;flex:none}
.legend{margin:0;display:flex;flex-direction:column;gap:7px}
.legend div{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:12px}
.legend dt{margin:0}
.legend .code{display:block;min-width:0}
.legend dd{margin:0;font-size:15px;line-height:1.5;color:var(--ink-2)}
.dots{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:10px clamp(20px,3vw,36px)}
.dots li{position:relative;min-width:0;padding-left:16px;font-size:15.5px;line-height:1.65;color:var(--ink-2)}
.dots li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--go)}
.about{display:flex;flex-direction:column;gap:8px;max-width:720px}
.about .sec-title{font-size:clamp(26px,3vw,32px)}
.maker{margin:4px 0 0;font-family:var(--f-display);font-weight:800;font-size:clamp(20px,2.2vw,24px);line-height:1.3;color:var(--ink)}
.about p:not(.maker){margin:0;font-size:16px;line-height:1.75;color:var(--ink);max-width:62ch}
.privacy{padding-top:16px;border-top:1.5px solid var(--ink)}
.privacy p{margin:0;font-size:14.5px;color:var(--ink-2)}
.privacy .contact{margin-top:6px}
.privacy a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@container (max-width:680px){
  .guide-grid{grid-template-columns:minmax(0,1fr)}
}
/* the menu with Today in Korea is tall: on a short wide screen it draws closer, and scrolls on its own if it still
   does not fit, so the weather is never cut off below the screen */
@media (min-width:760px){
  .side-in{max-height:calc(100vh - env(safe-area-inset-top,0px));max-height:calc(100dvh - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain}
}
@media (min-width:760px) and (max-height:840px){
  .side-in{gap:16px;padding-block:18px}
  .side-nav ul{gap:4px}
  .side-nav a{min-height:36px;padding-block:3px;font-size:16px}
  .side .today{margin-top:12px;padding-block:7px 8px}
  .side .clock{width:54px;height:54px}
  .side .wx{min-height:54px}
}
@media (min-width:760px){
  .home .wrap{margin-left:0;padding-left:clamp(20px,3vw,40px);padding-right:max(clamp(20px,3vw,40px),env(safe-area-inset-right,0px))}
}
@media (max-width:759px){
  .site{display:block}
  .side{border-right:0;border-bottom:var(--edge)}
  .side-in{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding-block:12px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .logo{font-size:27px}
  .menu-btn{display:inline-flex}
  .side-nav{display:none;flex-basis:100%;padding-block:4px 8px}
  .side.open .side-nav{display:flex}
  .side-nav ul{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .side-nav a{font-size:16px;padding-inline:10px;gap:8px}
  .side .today{max-width:none;margin-top:14px}
}
@media (max-width:420px){
  .areas,.cards{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
  .area-body{padding:10px 12px 14px 13px;gap:7px}
  .area-name{font-size:21px}
  .card-name{padding:10px 12px 14px 13px;font-size:18px}
  .stops{gap:6px;font-size:12.5px}
  .track{gap:6px}
  .stn{width:12px;height:12px;border-width:3px}
  .soon-tag{left:6px;bottom:6px;padding:2px 8px;font-size:11.5px}
}
/* a line with many stations (Eat's nineteen) shrinks its stations to fit the card, down to small beads on a thin
   line, so it never runs past the card on a phone (her fix, 2026-11-16: eat 카드 고쳐) */
.track.many{flex:0 1 auto;min-width:0;max-width:100%;gap:1px;padding:0 1px}
.track.many::before{left:2px;right:2px;height:3px;margin-top:-1.5px}
.track.many .stn{flex:0 1 auto;width:12px;min-width:4px;height:auto;aspect-ratio:1;border-width:2px}
.area-head .track.many{flex:none;gap:4px}
.area-head .track.many .stn{width:18px;border-width:3.5px}
.area-head .track.many::before{height:5px;margin-top:-2.5px}

/* the home page's sky follows the visitor's own clock (her wish, 2026-11-16): index.html sets html[data-sky] to day,
   eve or night and draws the sun or the moon by the words, the clouds or the stars behind the cards, and the city
   above the floor with its windows lit in the evening and at night */
html[data-sky]{--sky-top:#6EC1EE;--sky-low:#D8F0FC;--sky-ink:var(--ink);--sky-ink-2:var(--ink-3);--cloud:#FFFFFF;
  --menu-bg:#E4F4FD;--menu-ink:var(--ink);--menu-ink-2:var(--ink-3);--today-bg:rgba(255,255,255,.55);--today-line:rgba(28,36,48,.16);--today-ink:var(--ink);--today-ink-2:var(--ink-2);
  --c-mtn:#A9CFB6;--c-hill:#84BF86;--c-apt:#F8F3E8;--c-apt2:#E2E8EE;--c-off:#CBDDEA;--c-shop:#F6E3C8;--c-awn:#EF7C1C;
  --c-hwall:#F4E4C4;--c-wood:#A8693A;--c-roof:#59626E;--c-ridge:#FFFFFF;--c-tree:#5FAA62;--c-trunk:#8A5A34;
  --c-twr:#F2F4F6;--c-win:#BFE3F6;--c-lit:#FFD45C;--c-num:#4A5563}
html[data-sky="eve"]{--sky-top:#EE7B72;--sky-low:#FFDBA3;--cloud:#FFD7CA;--menu-bg:#FFEBDD;
  --c-mtn:#D89C8E;--c-hill:#A9A26C;--c-apt:#F7DCC4;--c-apt2:#EAC9B8;--c-off:#DFB7AA;--c-shop:#F4CBA5;--c-awn:#D9622E;
  --c-hwall:#F1D1A8;--c-roof:#5A4E5C;--c-ridge:#FBE9DC;--c-tree:#6F9558;--c-twr:#F8E4D4;--c-win:#F2BD98}
html[data-sky="night"]{--sky-top:#121A3C;--sky-low:#2D3976;--sky-ink:#FFFFFF;--sky-ink-2:#D3DAF2;
  --menu-bg:#1F2858;--menu-ink:#FFFFFF;--menu-ink-2:#C9D0EA;--today-bg:rgba(255,255,255,.09);--today-line:rgba(255,255,255,.26);--today-ink:#FFFFFF;--today-ink-2:#C9D0EA;
  --c-mtn:#27325F;--c-hill:#24414B;--c-apt:#3C487B;--c-apt2:#354171;--c-off:#2F3B6A;--c-shop:#453F64;--c-awn:#6B4A40;
  --c-hwall:#4B4563;--c-wood:#3A3048;--c-roof:#1F2648;--c-ridge:#8C93B8;--c-tree:#22444B;--c-trunk:#3A3048;
  --c-twr:#C9D0E6;--c-win:#28326B;--c-num:#9AA3CC}
html[data-sky] .tag,html[data-sky] .area-title{color:var(--sky-ink)}
html[data-sky] .area-title .kr{color:var(--sky-ink-2)}
/* the menu takes the sky's time too (her pick, 2026-11-16: 1번 좋아): pale sky blue in the day, pale peach in the
   evening, navy with white words at night; the menu button, the areas' buttons and the clock's face stay white */
html[data-sky] .side{background:var(--menu-bg)}
html[data-sky] .logo{color:var(--menu-ink)}
html[data-sky] .nav-label{color:var(--menu-ink-2)}
html[data-sky="night"] .mark .mk-tile{stroke:#FFFFFF;stroke-width:5}
.is-home .sky{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:linear-gradient(180deg,var(--sky-top),var(--sky-low))}
.sky .cloud{position:absolute;left:0;display:block;height:auto;animation:sky-drift var(--d,180s) linear var(--del,0s) infinite}
.sky .cloud path{fill:var(--cloud);stroke:var(--ink);stroke-width:2.4px;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.sky .star{position:absolute;display:block;overflow:visible;animation:sky-twinkle var(--d,4s) ease-in-out var(--del,0s) infinite alternate}
.sky .shoot{position:absolute;top:9%;left:72%;width:74px;height:3px;border-radius:2px;background:#FFFFFF;opacity:0;animation:sky-shoot 17s ease-in 5s infinite}
.sky .shoot::before{content:"";position:absolute;left:-3px;top:-2.5px;width:8px;height:8px;border-radius:50%;background:#FFFFFF}
/* the landing plane (her wish, 2026-11-16): it comes down gently across the open sky over the cards, from the right,
   again and again (under the menu's bar on a phone); with reduced motion it stands still in the sky */
.sky .plane{position:absolute;left:0;top:8px;display:block;width:clamp(92px,11vw,150px);height:auto;overflow:visible;animation:sky-land 24s linear -6s infinite}
.sky .plane g{transform-box:fill-box;transform-origin:center;transform:rotate(-5deg)}
.sky .plane .pb{fill:#FFFFFF}
.sky .plane .pg{fill:#DCE1E6}
.sky .plane .pw{fill:#BFE3F6;stroke:var(--ink);stroke-width:1.4px}
html[data-sky="night"] .sky .plane .pb{fill:#46538C}
html[data-sky="night"] .sky .plane .pg{fill:#35406F}
html[data-sky="night"] .sky .plane .pw{fill:#FFD45C}
@keyframes sky-land{from{transform:translate(calc(100vw + 20px),0)}to{transform:translate(-170px,10vw)}}
@media (max-width:759px){
  .sky .plane{top:calc(72px + env(safe-area-inset-top,0px))}
}
@keyframes sky-drift{from{transform:translateX(-280px)}to{transform:translateX(calc(100vw + 40px))}}
@keyframes sky-twinkle{from{opacity:.3}to{opacity:1}}
@keyframes sky-shoot{0%,90%{opacity:0;transform:translate(0,0) rotate(-28deg)}92%{opacity:1}100%{opacity:0;transform:translate(-300px,160px) rotate(-28deg)}}
@keyframes sky-spin{to{transform:rotate(360deg)}}
.home-head{display:flex;align-items:center;gap:12px}
.home-head .tag{flex:1;min-width:0}
.is-home .orb{flex:none;display:block;width:clamp(56px,6.4vw,84px);height:auto;overflow:visible}
.orb .rays{animation:sky-spin 90s linear infinite}
.is-home .city{display:block;height:clamp(150px,17vw,270px)}
.city svg{display:block;width:100%;height:100%}
.city .o{stroke:var(--ink);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.city .mtn{fill:var(--c-mtn)}.city .hill{fill:var(--c-hill)}.city .apt{fill:var(--c-apt)}.city .apt2{fill:var(--c-apt2)}
.city .off{fill:var(--c-off)}.city .shop{fill:var(--c-shop)}.city .awn{fill:var(--c-awn)}.city .hwall{fill:var(--c-hwall)}
.city .wood{fill:var(--c-wood)}.city .roof{fill:var(--c-roof)}.city .ridge{fill:var(--c-ridge)}.city .tree{fill:var(--c-tree)}
.city .trunk{fill:var(--c-trunk)}.city .twr{fill:var(--c-twr)}.city .red{fill:#E5484D}.city .num{fill:var(--c-num)}
.city .w{fill:var(--c-win)}.city .w.lit{fill:var(--c-lit)}
.city .lat{fill:none;stroke:var(--c-wood);stroke-width:1.6px;vector-effect:non-scaling-stroke}
/* the weather in Seoul now, in the menu (her wish, 2026-11-16) */
/* Today in Korea: Korea's time on a round clock, then the weather in Seoul (her wish, 2026-11-16) */
/* a quiet panel under the areas, still set apart from them (her fix, 2026-11-16: 위의 메뉴와 분리시켜줘) but small and
   pale so the areas come first (her fix the same day: 덜 중요한 아래 날씨와 시간이 더 강조가 되어서 메뉴가 눈에 잘 안들어와):
   no yellow band, no ink outline or shadow, the clock and the weather side by side with their labels under them */
.today{display:flex;flex-direction:column;gap:7px;max-width:280px;margin:20px 0 4px;padding:9px 8px 10px;background:var(--today-bg,var(--card-quiet));border:1.5px solid var(--today-line,var(--line));border-radius:14px}
.today-head{margin:0;padding-left:4px;font-size:12.5px;font-weight:700;letter-spacing:.06em;line-height:1.3;text-transform:uppercase;color:var(--today-ink-2,var(--ink-3))}
.today-row{display:flex;align-items:flex-start;justify-content:center;gap:6px}
.today-cell{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.today-sub{order:2;margin:0;font-size:12px;font-weight:700;line-height:1.25;text-align:center;color:var(--today-ink-2,var(--ink-2))}
.clock{display:block;width:62px;height:62px;overflow:visible}
.wx{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;min-height:62px;margin:0}
.wx-ic{flex:none;display:block;width:36px;height:36px;overflow:visible}
.wx-n{display:flex;flex-direction:column;gap:2px}
.wx-t{font-family:var(--f-display);font-weight:800;font-size:20px;line-height:1;color:var(--today-ink,var(--ink));font-variant-numeric:tabular-nums;white-space:nowrap}
.wx-t small{margin-left:1px;font-size:.55em;vertical-align:top}
.wx-f{font-size:12px;font-weight:700;line-height:1;color:var(--today-ink-2,var(--ink-2));white-space:nowrap}
.privacy .wx-credit{margin-top:4px;font-size:12.5px}
@media (prefers-reduced-motion:reduce){
  .sky .cloud{left:var(--x,0);animation:none}
  .sky .star,.orb .rays{animation:none}
  .sky .shoot{display:none}
  .sky .plane{left:58%;animation:none}
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}

/* ================= practice shell ================= */
.app{height:100%;max-width:1440px;margin:0 auto;display:flex;flex-direction:column;gap:10px;padding-block:10px 12px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bar{display:flex;align-items:center;gap:12px;min-height:44px}
.brand{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--f-display);font-size:22px;line-height:1;white-space:nowrap}
.brand span{overflow:hidden;text-overflow:ellipsis}
.brand svg{width:26px;height:26px;color:var(--ink)}
.quit{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 16px 0 12px;border-radius:999px;border:2px solid var(--ink);background:var(--card);color:var(--ink);font-size:14px;font-weight:700;font-family:inherit;cursor:pointer}
.quit svg{width:20px;height:20px;flex:none}
.quit:not([hidden]) + .teacher{margin-left:0}
.back:not([hidden]) + .quit{margin-left:0}
.quit,.teacher{flex:none}
.quit-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 16px}
.quit-yes{margin-top:0;font-family:inherit;cursor:pointer}
.teacher{margin-left:auto;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px 0 9px;border-radius:999px;border:2px solid var(--ink);background:var(--card);color:var(--ink);font-size:14px;font-weight:700;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hold{position:relative;width:28px;height:28px;flex:none}
.hold svg{position:absolute;inset:0;width:28px;height:28px}
.hold .gl{inset:6px;width:16px;height:16px;color:var(--ink)}
.hold .track{fill:none;stroke:var(--line);stroke-width:2.5}
.hold .fill{fill:none;stroke:var(--go);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:69.12;stroke-dashoffset:69.12;transform:rotate(-90deg);transform-origin:14px 14px;transition:stroke-dashoffset .12s}
.teacher.holding .hold .fill{stroke-dashoffset:0;transition:stroke-dashoffset .7s linear}

.cue{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;background:var(--card);border:var(--edge);border-radius:20px;padding:10px 12px 10px 10px;transition:background .25s,border-color .25s,box-shadow .25s}
.cue.watch{background:var(--card-quiet)}
.cue.nudge{border-color:var(--cue);box-shadow:0 0 0 3px var(--cue)}
.cue-icon{position:relative;width:86px;height:86px;border-radius:16px;border:2px solid var(--ink);background:var(--wall);display:grid;place-items:center;color:var(--ink)}
.cue-icon svg{width:70px;height:70px}
.cue.nudge .cue-icon{animation:breathe 1.3s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.06)}}
.cue-text{min-width:0;display:flex;flex-direction:column;gap:4px}
.cue-top{display:flex;align-items:center;gap:10px;min-height:26px;min-width:0}
.turn{font-size:13px;font-weight:600;letter-spacing:.02em;padding:2px 10px;border-radius:999px;background:var(--cue-soft);color:var(--cue-ink)}
.cue.watch .turn{background:var(--teacher);color:var(--ink-2)}
.count{font-size:13px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.say{margin:0;display:flex;align-items:center;font-family:var(--f-display);font-weight:400;font-size:clamp(28px,4.3vw,48px);line-height:1.16;color:var(--ink);text-wrap:balance;word-break:keep-all}
.sub{display:block;flex:0 1 auto;min-width:0;max-width:100%;font-size:15px;line-height:20px;font-weight:600;color:var(--cue-ink);background:var(--cue-soft);border-radius:999px;padding:2px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.replay{width:74px;height:74px;border-radius:50%;border:2.4px solid var(--ink);background:var(--press);color:var(--ink);display:grid;place-items:center;box-shadow:3px 3px 0 var(--ink)}
.replay svg{width:38px;height:38px}
.replay:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.replay.muted{background:#D9DEE5;color:#4A5563}

.strip{list-style:none;margin:0;padding:8px 6px 4px;display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;flex:none}
.strip::-webkit-scrollbar{display:none}
.chip{position:relative;flex:0 0 auto;width:48px;height:48px;border-radius:14px;background:var(--card);border:2px solid var(--ink);display:grid;place-items:center;color:var(--ink);transition:transform .2s,background .2s,border-color .2s}
.chip:first-child{margin-left:auto}
.chip:last-child{margin-right:auto}
.chip svg{width:32px;height:32px}
.chip .n{position:absolute;top:-8px;left:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--ink);color:#fff;font-size:11px;font-weight:600;line-height:19px;text-align:center;font-variant-numeric:tabular-nums}
.chip .ok{display:none;position:absolute;right:-7px;bottom:-7px;width:21px;height:21px;padding:3px;border-radius:50%;background:var(--good);color:#fff;box-shadow:0 0 0 1.6px var(--ink)}
.chip.helper{border-style:dashed;background:transparent}
.chip.helper > svg:not(.ok){opacity:.5}
.chip.now{border-color:var(--cue);background:var(--cue-soft);box-shadow:0 0 0 2px var(--cue);transform:translateY(-3px)}
.chip.done .ok{display:block}
.chip.helper.done .ok{background:var(--ink-3)}
/* a step already reached: tap its number to go back to it */
.chip.go{cursor:pointer}
.chip.go.done:hover{transform:translateY(-2px);background:var(--cue-soft)}
.chip.go:focus-visible{outline:3px solid var(--cue);outline-offset:3px}

.stage{position:relative;flex:1 1 auto;min-height:0;border:var(--edge);border-radius:20px;overflow:hidden;background:var(--wall)}
#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}
.s-wall{fill:var(--wall)}
.s-floor{fill:var(--floor)}
.s-base{fill:var(--floor);stroke:var(--ink);stroke-width:3}
.s-shadow{fill:rgba(28,36,48,.12)}
.hit{fill:transparent}
[data-hit]{cursor:pointer;outline:none}
[data-hit]:focus-visible .hit{stroke:var(--go);stroke-width:4;stroke-dasharray:10 8}
.w-label{font-family:var(--f-ui);font-size:15px;font-weight:600;fill:#4F5F69;text-anchor:middle}
.w-tag{font-family:var(--f-ui);font-size:12px;font-weight:600;fill:#8F9DA6}
.w-brand{font-family:var(--f-display);font-size:30px;fill:#A39E96}
.ph{font-family:var(--f-ui);font-size:12px;font-weight:600;fill:#22313C;text-anchor:middle}
.display.on .ph{fill:#4D6170}
.display.on .ph.lit{fill:#7FE6D6}
.seg{fill:#1C2933}
.display.on .seg{fill:#22343F}
.display.on .seg.lit{fill:#7FE6D6}
.ring{fill:none;stroke:var(--cue)}
.ring.halo{stroke-width:22;stroke-opacity:.2}
.ring.core{stroke-width:6}
#glow.on .ring.core{animation:pulse 1.3s ease-in-out infinite}
@keyframes pulse{50%{stroke-opacity:.35;stroke-width:11}}
/* the glow and the screen hand never take a touch meant for what they point at */
#fx,#hand{pointer-events:none}
.ripple{fill:none;stroke-width:5}
.ripple.miss{stroke:#5F6B79}
.ripple.hand{stroke:var(--cue)}
#scene.no-stickers .sticker{display:none}

.veil{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:16px;background:var(--veil);overflow-y:auto}
.veil-card{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;max-width:520px}
.veil h1,.veil h2{margin:0;font-family:var(--f-display);font-weight:400;font-size:clamp(34px,5.2vw,56px);line-height:1.08;text-wrap:balance}
/* the one thing to press: yellow, outlined in ink, with a hard shadow that the press closes */
.go-btn{display:inline-flex;align-items:center;gap:12px;font-family:var(--f-display);font-size:clamp(26px,3.6vw,36px);line-height:1;padding:16px 40px 16px 30px;border-radius:16px;border:2.4px solid var(--ink);background:var(--press);color:var(--ink);box-shadow:4px 4px 0 var(--ink)}
.go-btn svg{width:32px;height:32px}
.go-btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}
.veil-meta{margin:0;font-size:14px;color:var(--ink-2);text-wrap:balance}
.home-link{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:9px 16px;border-radius:999px;border:2px solid var(--ink);background:var(--card);color:var(--ink);font-size:15px;font-weight:700;text-decoration:none}
.home-link svg{width:18px;height:18px;color:var(--ink)}
.done-mark{width:104px;height:104px;border-radius:50%;background:var(--good);color:#fff;border:3px solid var(--ink);display:grid;place-items:center;box-shadow:0 0 0 12px var(--good-soft)}
.done-mark svg{width:62px;height:62px}
/* the moment a practice ends: a big check over the finished scene for two seconds, before the results */
.done-pop{position:absolute;inset:0;z-index:4;display:grid;place-items:center;pointer-events:none;background:radial-gradient(closest-side,rgba(255,255,255,.85),rgba(255,255,255,.55) 45%,rgba(255,255,255,0))}
.done-pop-in{display:flex;flex-direction:column;align-items:center;gap:16px}
.done-pop .done-mark{width:clamp(112px,20vmin,170px);height:clamp(112px,20vmin,170px);box-shadow:0 0 0 14px var(--good-soft)}
.done-pop .done-mark svg{width:60%;height:60%}
.done-pop-t{margin:0;font-family:var(--f-display);font-size:clamp(34px,5.2vw,56px);line-height:1.08;color:var(--ink);text-shadow:0 0 12px #fff,0 0 4px #fff}

.veil.done{place-items:start center}
.done-wrap{width:min(1000px,100%);display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start;padding-block:10px}
.done-side{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding-top:clamp(8px,4vh,40px)}
.result{background:var(--card);border:var(--edge);border-radius:18px;padding:14px 18px 16px;-webkit-user-select:text;user-select:text}
.result-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.result-title{margin:0;font-size:16px;font-weight:800}
.result-meta{margin:0;font-size:13px;color:var(--ink-2)}
.res-list{list-style:none;margin:0;padding:0}
.res-row{display:grid;grid-template-columns:22px 30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line)}
.res-row:first-child{border-top:0}
.res-n{font-size:12px;font-weight:600;color:var(--ink-3);text-align:right;font-variant-numeric:tabular-nums}
.res-ico{width:30px;height:30px;color:var(--ink)}
.res-t{min-width:0;font-size:15px;line-height:1.35;word-break:keep-all}
.res-t small{display:block;font-size:12px;color:var(--ink-3)}
.code{display:inline-block;min-width:54px;text-align:center;padding:3px 8px;border-radius:8px;font-size:12.5px;font-weight:600;white-space:nowrap}
.code.lv0{background:var(--good-ink);color:#fff}
.code.lv1{background:var(--help-1);color:var(--ink)}
.code.lv2{background:var(--help-2);color:var(--ink)}
.code.lv3{background:var(--help-3);color:#fff}
.code.lvx{background:var(--teacher);color:var(--ink-3)}
.result-sum{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.result-note{margin:4px 0 0;font-size:12.5px;color:var(--ink-3)}

/* ================= teacher sheet ================= */
.backdrop{position:fixed;inset:0;z-index:40;background:var(--shade)}
.sheet{position:fixed;top:0;right:0;bottom:0;z-index:41;width:min(560px,100%);display:flex;flex-direction:column;background:var(--card);border-left:var(--edge);padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-right:env(safe-area-inset-right,0px);-webkit-user-select:text;user-select:text}
.sheet-head{display:flex;align-items:center;gap:12px;padding:14px 14px 12px 20px;border-bottom:var(--edge)}
.sheet-head h2{margin:0;font-family:var(--f-display);font-weight:400;font-size:24px;line-height:1}
.icon-btn{margin-left:auto;width:44px;height:44px;border-radius:12px;border:0;background:transparent;display:grid;place-items:center;color:var(--ink-2)}
.icon-btn svg{width:24px;height:24px}
.sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 32px}
.group{display:flex;flex-direction:column;gap:10px;padding:18px 0;border-bottom:1px solid var(--line)}
.group:last-child{border-bottom:0}
.group h3{margin:0;font-size:16px;font-weight:600;color:var(--ink)}
.lbl{margin:0;font-size:13px;font-weight:600;color:var(--ink-2)}
.hint{margin:0;font-size:13.5px;line-height:1.6;color:var(--ink-2);max-width:62ch}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
select,input[type="text"]{font:inherit;font-size:15px;color:var(--ink);background:var(--card);border:2px solid var(--ink);border-radius:10px;padding:8px 10px;min-height:42px}
select{flex:1 1 180px;min-width:0}
input[type="text"]{flex:1 1 200px;min-width:0}
.btn{min-height:42px;padding:0 14px;border-radius:10px;border:2px solid var(--ink);background:var(--card);font-size:14px;font-weight:700;color:var(--ink)}
.btn.primary{background:var(--press);border-color:var(--ink);color:var(--ink);box-shadow:3px 3px 0 var(--ink)}
.seg-row{display:flex;flex-wrap:wrap;gap:6px}
.seg-row button{min-height:42px;padding:0 14px;border-radius:10px;border:2px solid var(--ink);background:var(--card);font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.seg-row button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:0 2px;border:0;background:transparent;text-align:left;font-size:15px}
.switch i{position:relative;flex:none;width:48px;height:28px;border-radius:14px;background:var(--line);box-shadow:inset 0 0 0 2px var(--ink);transition:background .2s}
.switch i::after{content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px var(--ink);transition:transform .2s}
.switch[aria-checked="true"] i{background:var(--go)}
.switch[aria-checked="true"] i::after{transform:translateX(20px)}
.stepper{display:inline-flex;align-items:center;gap:6px}
.stepper button{width:42px;height:42px;border-radius:10px;border:2px solid var(--ink);background:var(--card);font-size:20px;line-height:1;color:var(--ink)}
.stepper output{min-width:56px;text-align:center;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.ladder{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;font-weight:600}
.ladder li{padding:4px 10px;border-radius:8px}
.ladder .arrow{padding:0;color:var(--ink-3);font-weight:400}
.editor{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.grp{border:2px solid var(--ink);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;background:var(--card)}
.grp-head{display:flex;align-items:center;gap:8px}
.gnum{flex:none;width:26px;height:26px;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.gico{flex:none;width:30px;height:30px;color:var(--ink)}
.grp-head input{flex:1 1 auto;min-height:40px;padding:6px 10px;font-weight:500}
.acts{list-style:none;margin:0;padding:0 0 0 34px;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--ink-2)}
.acts .act::before{content:"·";margin-right:6px;color:var(--ink-3)}
.acts .cut button,.joint button{border:0;background:transparent;color:var(--go);font-size:12.5px;font-weight:500;padding:2px 0;min-height:28px}
.joint{list-style:none;display:flex;justify-content:center;padding:2px 0}
.joint button{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:2px 10px;border-radius:8px}

.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;max-width:calc(100% - 32px);padding:10px 16px;border-radius:12px;background:var(--ink);color:#fff;font-size:14px;box-shadow:0 10px 24px -12px rgba(0,0,0,.5);text-align:center}

@media (max-width:760px){
  .done-wrap{grid-template-columns:1fr;gap:16px}
  .done-side{padding-top:6px}
}
@media (max-width:700px){
  .cue{gap:10px;border-radius:20px;padding:8px 10px 8px 8px}
  .cue-icon{width:62px;height:62px;border-radius:14px}
  .cue-icon svg{width:50px;height:50px}
  .replay{width:58px;height:58px}
  .replay svg{width:30px;height:30px}
  .chip{width:40px;height:40px;border-radius:12px}
  .chip svg{width:26px;height:26px}
  .strip{gap:8px}
  .brand span{font-size:19px}
  .stage{border-radius:18px}
}
@media (max-width:560px){
  .bar{gap:10px}
  .brand svg{display:none}
  .brand span{font-size:18px}
  .quit{width:44px;padding:0}
  .quit span{display:none}
  .teacher{padding:0 12px 0 7px;gap:6px}
  .cue{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"icon top replay" "say say say";column-gap:10px;row-gap:6px;padding:8px 10px 10px}
  .cue-text{display:contents}
  .cue-icon{grid-area:icon;width:54px;height:54px;border-radius:13px}
  .cue-icon svg{width:44px;height:44px}
  .cue-top{grid-area:top;flex-wrap:wrap;row-gap:4px;align-content:center}
  .say{grid-area:say}
  .replay{grid-area:replay;width:52px;height:52px}
  .replay svg{width:28px;height:28px}
}
@media (max-width:380px){
  .brand span{font-size:16px}
}
@media (max-height:620px){
  .app{gap:6px;padding-block:6px 8px}
  .cue-icon{width:58px;height:58px}
  .cue-icon svg{width:46px;height:46px}
  .replay{width:56px;height:56px}
  .say{font-size:clamp(24px,3.4vw,36px)}
  .strip{padding-top:6px}
}
@media (prefers-reduced-motion:no-preference){
  .done-pop:not([hidden]) .done-pop-in{animation:donePop .5s cubic-bezier(.2,1.5,.4,1) both}
  @keyframes donePop{from{transform:scale(.35);opacity:0}to{transform:scale(1);opacity:1}}
}
@media (prefers-reduced-motion:reduce){
  #glow.on .ring.core,.cue.nudge .cue-icon{animation:none}
  .chip,.cue,.card{transition:none}
}

/* ================= I Try Korea additions to the practice shell ================= */
/* the display face is Atkinson Hyperlegible Next at its heaviest; Hangul in the same lines falls to IBM Plex Sans KR */
.say,.veil h1,.veil h2,.go-btn,.brand,.sheet-head h2,.done-pop-t{font-weight:800;letter-spacing:-.01em}
.say{overflow-wrap:anywhere}
.veil-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 12px;margin-top:4px}
.veil-links .home-link{margin-top:0}
.phr-btn{font-family:inherit;cursor:pointer;background:var(--card)}
/* Korean in a scene: the sign face for the Korean, the UI face for the gloss under it */
.ko-label .ko{font-family:var(--f-sign);font-weight:600}
.ko-label .gloss{font-family:var(--f-ui);font-weight:700;fill:var(--ink-2)}
#scene.no-gloss .gloss{display:none}
/* the screen hand that shows how: the same skin, sleeve and ink outline as the hands drawn in the scenes */
#hand > path:nth-child(1){fill:#996CAC;stroke:var(--ink);stroke-width:3.5;stroke-linejoin:round}
#hand > path:nth-child(2){fill:#FFD7B5;stroke:var(--ink)}
#hand > path:nth-child(3){stroke:var(--ink)}

/* Korean to use: the task's sentences, each to hear or to hold up */
.phrase-veil{place-items:start center}
.phrase-wrap{width:min(760px,100%);display:flex;flex-direction:column;align-items:center;gap:14px;padding-block:clamp(8px,3vh,28px)}
.phrase-note{margin:0;font-size:15.5px;line-height:1.5;color:var(--ink-2);text-align:center;text-wrap:balance}
.phrase-list{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:12px}
.phrase{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;background:var(--card);border:var(--edge);border-radius:18px;padding:14px 16px 14px 20px}
.phrase-tx{min-width:0;flex:1 1 280px;display:flex;flex-direction:column;gap:3px}
.phrase-ko{margin:0;font-family:var(--f-sign);font-weight:700;font-size:clamp(24px,3.2vw,32px);line-height:1.25;color:var(--ink);word-break:keep-all}
.phrase-roman{margin:0;font-size:15.5px;font-weight:700;color:var(--go-deep)}
.phrase-mean{margin:0;font-size:15px;color:var(--ink-2)}
.phrase-btns{display:flex;flex-wrap:wrap;gap:8px;flex:none}
.phrase-btns .btn{display:inline-flex;align-items:center;gap:7px;min-height:46px;padding:0 16px 0 12px;border-radius:999px;font-weight:700}
.phrase-btns svg{width:20px;height:20px;color:var(--ink)}
/* held up for the staff: the sentence alone, as large as the screen allows */
.show-card{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(20px,5vh,48px);overflow-y:auto;background:#FFFFFF;color:#111820;padding-block:max(24px,env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-bottom,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.show-in{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;max-width:1100px}
.show-ko{margin:0;font-family:var(--f-sign);font-weight:700;font-size:clamp(40px,9vw,120px);line-height:1.2;word-break:keep-all;text-wrap:balance}
.show-roman{margin:0;font-size:clamp(18px,2.6vw,28px);font-weight:700;color:var(--go-deep)}
.show-mean{margin:0;font-size:clamp(16px,2.2vw,24px);color:var(--ink-2)}
.show-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 16px}
.show-row .home-link{margin-top:0;font-family:inherit;cursor:pointer}
.show-play svg{width:30px;height:30px}
