/* /login/: one page, four doors. A wall of kraft-paper doorways; each room shows who comes in through it.
   Choosing a door opens its way in: the doorway moves beside the steps (a view transition where the browser has it). */

.lg { width: min(1220px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: clamp(26px, 4.2vw, 60px) 0 88px; }
.lg__head { text-align: center; margin-bottom: clamp(22px, 3.2vw, 42px); }
.lg__head h1 { font-size: 34px; }
.lg__lead { margin-top: 8px; font: 700 19px/1.4 var(--font-body); color: var(--ink-2); }
@media (min-width: 860px) { .lg__head h1 { font-size: 54px; } .lg__lead { font-size: 21px; } }
.lg__foot { margin: clamp(22px, 3vw, 36px) auto 0; max-width: 60ch; text-align: center; font: 650 16px/1.5 var(--font-body); color: var(--ink-2); }

/* ---------- the doors */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 34px); align-items: start; }
@media (max-width: 859.98px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; } }
.door { display: grid; justify-items: center; gap: 12px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; border-radius: 26px; }
.door:focus-visible { outline: none; }
.door__frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; isolation: isolate;
  border-radius: 50% 50% 16px 18px / 37.5% 37.5% 15px 17px;
  background: var(--kraft) url(/assets/art/textures/kraft-tile.webp) 0 0 / 512px 512px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(90, 42, 0, .12), var(--sh);
  transition: translate 420ms var(--settle); }
/* the lift shadow lives on its own layer: hover changes only its opacity */
.door__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--sh-lift); opacity: 0; transition: opacity 400ms var(--settle); }
.door:focus-visible .door__frame { outline: 3px solid var(--blue); outline-offset: 5px; }
.door__room { position: absolute; inset: 6% 7% 6.5%; overflow: hidden; isolation: isolate; border-radius: 50% 50% 10px 11px / 37% 37% 9px 10px;
  background: var(--room, var(--sky)); box-shadow: inset 0 16px 20px -12px rgba(90, 42, 0, .34), inset 0 0 0 2px rgba(90, 42, 0, .08); }
/* the floor: a strip of deeper paper with a hand-cut top edge */
.door__room::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: 0; height: 21%; z-index: 0; background: var(--floor, var(--mint));
  border-radius: 58% 42% 0 0 / 16px 11px 0 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 -1px 3px rgba(90, 42, 0, .14); }
.dp { position: absolute; z-index: 1; max-width: none; } /* the art has its paper shadows baked in */
.door__plate { display: grid; justify-items: center; gap: 3px; text-align: center; }
.door__name { font: 800 25px/1.1 var(--font-display); color: var(--ink); }
.door__how { font: 700 15.5px/1.25 var(--font-body); color: var(--ink-2); }
@media (max-width: 859.98px) { .door__name { font-size: 21px; } .door__how { font-size: 15px; } .door { gap: 9px; } }
/* the School door carries Nila's own logo */
.door__how--nila { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; }
.door__nila { width: auto; height: 32px; }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door__frame { translate: 0 -5px; }
  .door:hover .door__frame::before { opacity: 1; }
}
.door:active .door__frame { translate: 0 1px; transition-duration: 100ms; }

/* the rooms */
.door--student { --room: #FFF4E4; --floor: #FFD35C; } /* cream room: works whether Kuru's still has transparency or the page's cream ground */
.door--parent { --room: #FFE4EA; --floor: #FFC4D2; }
.door--teacher { --room: #DDF5E7; --floor: #ADDFC2; }
.door--school { --room: #E3E9FF; --floor: #C3CEF5; }

/* ---------- already signed in */
.lg__here { margin: 0 auto clamp(22px, 3vw, 34px); max-width: 860px; }
/* a child and a grown-up signed in on one device: two cards, apart (11 Nov: they touched) */
.lg__here > .here + .here { margin-top: 14px; }
.here { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; border-radius: var(--cut); background: var(--mint);
  box-shadow: var(--edge), var(--sh-sm); }
.here p { flex: 1 1 260px; font: 700 17px/1.4 var(--font-body); }
.here__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.here .face, .here__head { width: 52px; height: 52px; flex: none; }
.here__head { border-radius: 50%; object-fit: cover; background: var(--card); box-shadow: var(--sh-sm); }
.here__head--icon { object-fit: contain; padding: 7px; }
.here__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ok); color: #FFFFFF; }
.here--live p { overflow-wrap: anywhere; }

/* ---------- screen 2: the way in */
.lg__all { margin: -6px 0 14px -12px; }
.flow { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 600px); justify-content: center; align-items: start; gap: clamp(28px, 4vw, 64px); }
.flow__door { position: sticky; top: calc(var(--ab-h) + 28px); }
.flow__door .door { pointer-events: none; }
.flow__door .door__name { font-size: 30px; }
.flow__panel { display: grid; gap: 16px; min-width: 0; }
.flow__who { display: none; }
@media (max-width: 859.98px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__door { display: none; }
  .flow__who { display: flex; align-items: center; gap: 12px; }
}
.who__head { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--room, var(--sky)); box-shadow: var(--sh-sm); }
.who__name { font: 800 24px/1.1 var(--font-display); }

/* step pebbles */
.steps { display: flex; flex-wrap: wrap; gap: 8px 6px; counter-reset: st; }
.steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px 4px 5px; border-radius: 99px;
  background: rgba(30, 42, 90, .06); color: var(--ink-2); font: 800 15px/1.1 var(--font-body); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card);
  color: var(--ink-2); font: 800 14px/1 var(--font-body); box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .16); }
.steps li.is-on { background: var(--ink); color: #FFFFFF; }
.steps li.is-on::before { background: var(--sun); color: var(--ink); box-shadow: none; }
.steps li.is-done::before { content: ""; background: var(--ok) url(/assets/art/icons/mark-tick.svg) center / 16px no-repeat; box-shadow: none; }
.steps li.is-done { color: var(--ink); }
@media (max-width: 559.98px) { /* phones: only the current step keeps its name on screen */
  .steps li:not(.is-on) { padding-right: 5px; }
  .steps li:not(.is-on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.flow__card { position: relative; isolation: isolate; padding: clamp(20px, 3vw, 32px); border-radius: var(--cut); background: var(--card); box-shadow: var(--edge), var(--sh); }
.flow__card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .45; }
.flow__card h1 { font-size: 28px; line-height: 1.12; }
.flow__card h1:focus { outline: none; }
.flow__sub { margin-top: 6px; font: 700 17px/1.45 var(--font-body); color: var(--ink-2); }
.flow__body { display: grid; gap: 18px; margin-top: 20px; }
.flow__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.flow__acts .btn--blue { min-width: 150px; }
@media (min-width: 860px) { .flow__card h1 { font-size: 34px; } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .flow__card.is-new { animation: card-in 420ms var(--settle) both; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }

/* the code field: big, spaced digits */
.input--code { max-width: 260px; font: 800 30px/1 var(--font-display); letter-spacing: .32em; text-align: center; padding-inline: 10px 2px; }
.input--class { max-width: 300px; font: 800 26px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.input--class::placeholder { text-transform: none; letter-spacing: 0; font: 600 18px/1 var(--font-body); }

/* the sample line inside a step: plain about it, with the one-tap way in */
.sample { display: block; padding: 13px 16px; border-radius: var(--cut-sm); background: #FFF1C2; color: var(--ink); font: 650 16px/1.55 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 rgba(90, 42, 0, .1); }
.sample b { font-weight: 800; }
.sample .tag { margin-right: 8px; vertical-align: 1px; }
.sample .linkish { margin-left: 2px; min-height: 0; }
.try { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.try__art { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: var(--room, var(--sky)); box-shadow: var(--sh-sm); }
.try p { flex: 1; font: 650 16px/1.4 var(--font-body); color: var(--ink-2); }
.try p b { display: block; color: var(--ink); font-size: 17px; }
@media (max-width: 479.98px) { .try { flex-wrap: wrap; } .try .btn { width: 100%; } }

/* faces of a class: find yourself */
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.kid { display: grid; justify-items: center; gap: 7px; padding: 12px 6px 12px; border: 0; border-radius: var(--cut-sm); background: var(--field); color: var(--ink);
  font: 800 16px/1.15 var(--font-body); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1), 0 1px 0 rgba(255, 255, 255, .8);
  transition: translate 300ms var(--settle), background-color 150ms var(--settle); touch-action: manipulation; }
.kid .face { width: 66px; height: 66px; }
@media (hover: hover) and (pointer: fine) { .kid:hover { translate: 0 -3px; background: #FFF6DC; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .2), var(--sh-sm); } }
.kid:active { translate: 0 1px; transition-duration: 100ms; }

/* ---------- signing in: one sheet, cut in two. What is real sits on top; a perforated line, then the sample stub. The
   tear line is the honesty note made visible: the part you can tear off is the part that stays in this browser. */
/* R6 (2nd pass): the card is only a holder. The sign-in sheet (.signin) and the sample visitor pass (.pass) are two separate objects. */
.flow__card--parent, .flow__card--teacher, .flow__card--school { --pad: clamp(20px, 3vw, 32px); padding: 0; background: none; box-shadow: none; }
.flow__card--parent::after, .flow__card--teacher::after, .flow__card--school::after { content: none; }
.signin { position: relative; isolation: isolate; overflow: clip; border-radius: var(--cut); background: var(--card); box-shadow: var(--edge), var(--sh); }
.signin::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .45; }
.acct__top { padding: var(--pad); }
.acct__h { display: flex; align-items: center; gap: 8px; font: 800 17px/1.25 var(--font-body); letter-spacing: 0; color: var(--ink); }
.acct__real { display: grid; gap: 12px; margin-top: 20px; }
.acct__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acct__ways .btn { width: 100%; min-height: 54px; padding-inline: 14px; font-size: 16.5px; }
.acct__google { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .16), var(--sh-sm); }
.acct__google:hover { box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .3), var(--sh); }
.acct__google .ico, .acct__mail .ico { width: 21px; height: 21px; }
.acct__invite { margin-top: 2px; font: 700 15.5px/1.4 var(--font-body); }
.otp, .otp__step { display: grid; gap: 12px; }
.acct__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 700 15.5px/1.4 var(--font-body); }
.acct__links .linkish[disabled] { color: var(--ink-2); text-decoration: none; cursor: default; }
@media (max-width: 559.98px) { .acct__ways { grid-template-columns: minmax(0, 1fr); } }

/* notes */
.flow__card .note { align-items: center; padding: 11px 14px; font-size: 15.5px; }
.flow__card .note .ico { width: 21px; height: 21px; }
.note--err { background: var(--no-bg); color: var(--no-ink); }
.note--info { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* the tear line: a row of perforations with a punched notch at each end of the sheet (the card clips the notches) */
.tear { position: relative; z-index: 1; display: grid; place-items: center; height: 0; margin: 0; }
.tear::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; border-top: 2.5px dashed rgba(30, 42, 90, .26); }
.tear::after { content: ""; position: absolute; left: -12px; right: -12px; top: -12px; height: 24px; pointer-events: none;
  background: radial-gradient(circle at 12px 12px, var(--paper) 11.5px, transparent 12px), radial-gradient(circle at calc(100% - 12px) 12px, var(--paper) 11.5px, transparent 12px); }
.tear span { position: relative; z-index: 1; padding: 5px 15px; border-radius: 99px; background: var(--card); color: var(--ink-2); font: 800 15px/1.2 var(--font-body);
  box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .16); white-space: nowrap; }

/* the stub */
.stub { display: grid; gap: 14px; padding: 36px var(--pad) var(--pad); background: #E9F1FF url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; background-blend-mode: multiply; }
.stub--nila { background-color: #E8EBFF; }
.stub .hint { color: var(--ink-2); }
.acct__form { display: grid; gap: 12px; }
.acct__fields { display: grid; gap: 14px; }
.acct__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 21px; }
.acct__row .linkish { font-size: 15px; line-height: 21px; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 54px; }
.pw__eye { position: absolute; right: 5px; top: 50%; translate: 0 -50%; }
.pw__eye:active { transform: none; }
.pw__eye svg { width: 22px; height: 22px; }
.acct__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.acct__go .btn { flex: 0 1 200px; min-width: 150px; }
.check { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; font: 700 16px/1.25 var(--font-body); color: var(--ink); cursor: pointer; }
.check .tick { width: 42px; height: 42px; }
.check .tick span { width: 28px; height: 28px; }
.check .tick span::after { width: 20px; height: 20px; }
@media (min-width: 560px) { .acct__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; } }
@media (max-width: 559.98px) { .acct__go .btn { flex: 1 1 100%; } }

/* the demo accounts: small paper name cards */
.demos { display: grid; gap: 9px; padding-top: 4px; }
.demos__list { display: grid; gap: 8px; }
.demo { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 9px; border-radius: var(--cut-sm); background: var(--card); box-shadow: var(--edge), var(--sh-sm); }
.demo__head { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; background: var(--room, #DDF5E7); }
.demo__head--icon { object-fit: contain; padding: 7px; background: #E3E9FF; }
.flow__card--parent .demo__head { --room: #FFE4EA; }
.demo__txt { flex: 1; min-width: 0; }
.demo__txt b { display: block; font: 800 16px/1.25 var(--font-body); color: var(--ink); }
.demo__txt small { display: block; margin-top: 1px; font: 650 15px/1.3 var(--font-body); color: var(--ink-2); overflow-wrap: anywhere; }
.demos__wait { font: 650 15.5px/1.4 var(--font-body); color: var(--ink-2); }
.acct__legal { font: 600 15px/1.5 var(--font-body); color: var(--ink-2); }

/* working, done, wrong */
.btn.is-busy { cursor: progress; opacity: 1; }
.btn.is-busy::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: lg-turn 800ms linear infinite; }
.btn.is-done { background: var(--ok); color: #FFFFFF; }
.btn.is-done::before { display: none; }
@keyframes lg-turn { to { transform: rotate(1turn); } }
html:not(.rm) .is-wrong { animation: pp-shake 420ms both; }

/* ---------- the School door: Nila's night band over the same sheet */
.nl__band { display: flex; align-items: center; gap: 14px 22px; padding: 18px var(--pad); color: #FFFFFF;
  background: var(--night) url(/assets/art/textures/night-paper-tile.webp) 0 0 / 256px 256px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.nl__logo { flex: none; width: auto; height: 74px; }
.nl__title { min-width: 0; padding-left: 22px; border-left: 2px solid rgba(227, 233, 255, .26); }
.flow__card .nl__title h1 { color: #FFFFFF; font-size: 28px; }
.nl__title .flow__sub { margin-top: 3px; font-size: 16px; color: var(--ink-on-night); }
.nl__pad { padding: 22px var(--pad) 32px; }
.nl__part--real { display: grid; gap: 12px; }
.nl__form, .nl__form > div { display: grid; gap: 10px; }
.nl__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.nl__line .btn { min-height: 54px; }
.nl__google { width: 100%; min-height: 52px; margin-top: 12px; font-size: 16.5px; }
.nl__schools { display: grid; gap: 10px; justify-items: start; }
.nl__choices { display: grid; gap: 8px; width: 100%; }
.nl__choices .btn { justify-content: flex-start; min-height: 48px; text-align: left; line-height: 1.2; }
.nl__roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nl__roles li:first-child { grid-column: 1 / -1; }
.nlr { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 70px; padding: 8px 12px 8px 10px; border: 0; border-radius: var(--cut-sm); background: var(--card);
  color: var(--ink); text-align: left; box-shadow: var(--edge), var(--sh-sm); transition: translate 260ms var(--settle); touch-action: manipulation; }
.nlr__art { width: 46px; height: 46px; flex: none; }
.nlr__txt { flex: 1; min-width: 0; }
.nlr__txt b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 800 17px/1.2 var(--font-body); }
.nlr__txt small { display: block; margin-top: 2px; font: 650 15px/1.3 var(--font-body); color: var(--ink-2); }
.ico.nlr__go { width: 20px; height: 20px; color: var(--ink-3); transition: translate 260ms var(--settle); }
@media (hover: hover) and (pointer: fine) {
  .nlr:hover { translate: 0 -2px; box-shadow: var(--edge), var(--sh); }
  .nlr:hover .nlr__go { translate: 3px 0; }
}
.nlr:active { translate: 0 1px; transition-duration: 100ms; }
.nl__head { display: grid; gap: 2px; }
.nl__note { font-size: 15px; }
@media (max-width: 559.98px) {
  .nl__band { flex-direction: column; align-items: flex-start; }
  .nl__logo { height: 68px; }
  .nl__title { padding-left: 0; border-left: 0; }
  .nl__line { grid-template-columns: minmax(0, 1fr); }
  .nl__line .btn { width: 100%; }
  .nl__roles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- through the door: the sheet lifts away and the doorway comes forward, so the next page is not a jump */
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) body.is-going .flow__card, html:not(.rm) body.is-going .others, html:not(.rm) body.is-going .lg__all { opacity: 0; transform: translateY(-12px); transition: opacity 280ms var(--settle), transform 420ms var(--settle); }
  html:not(.rm) body.is-going .flow__door .door__frame { translate: 0 -8px; scale: 1.06; transition: translate 460ms var(--settle), scale 460ms var(--settle); }
}

/* ---------- the picture password */
.pp { display: grid; gap: 18px; }
.pp__hi { display: flex; align-items: center; gap: 14px; }
.pp__hi .face { width: 60px; height: 60px; }
.pp__grid, .pp__slots { width: 100%; max-width: 420px; margin-inline: auto; }
.pp__slots { display: flex; justify-content: center; gap: clamp(10px, 3vw, 18px); }
.pp__slot { position: relative; display: grid; place-items: center; width: clamp(70px, 20vw, 88px); aspect-ratio: 1; border-radius: 22px 25px 21px 24px / 24px 21px 25px 22px;
  background: var(--paper-deep); box-shadow: inset 0 3px 7px rgba(90, 42, 0, .2), inset 0 0 0 2px rgba(90, 42, 0, .06); color: rgba(30, 42, 90, .34);
  font: 800 26px/1 var(--font-display); }
.pp__slot img { width: 82%; height: auto; }
.pp__slot.is-filled { background: var(--card); box-shadow: var(--edge), var(--sh-sm); }
.pp__slots.is-right .pp__slot { background: var(--mint); box-shadow: inset 0 0 0 2.5px var(--ok), var(--sh-sm); }
.pp__slots.is-wrong .pp__slot { background: var(--no-bg); }
.pp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 12px); }
.pp__btn { display: grid; justify-items: center; align-content: center; gap: 2px; aspect-ratio: 1 / 1.02; padding: 6px 4px 8px; border: 0;
  border-radius: 20px 23px 19px 22px / 22px 19px 23px 20px; background: var(--tile, var(--sky)); color: var(--ink); font: 800 15px/1.1 var(--font-body);
  box-shadow: var(--edge), var(--sh-sm); transition: translate 260ms var(--settle); touch-action: manipulation; }
.pp__btn img { width: 72%; height: auto; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .pp__btn:hover { translate: 0 -3px; box-shadow: var(--edge), var(--sh); } }
.pp__btn:active { translate: 0 2px; transition-duration: 90ms; }
.pp__btn[disabled] { opacity: .62; cursor: default; }
.pp__btn--elephant { --tile: #DCE4FF; }
.pp__btn--parrot { --tile: #FFE28A; }
.pp__btn--fish { --tile: #FFD9B0; }
.pp__btn--cat { --tile: #FFF0B8; }
.pp__btn--rabbit { --tile: #D6E6FF; }
.pp__btn--tiger { --tile: #C9EFD9; }
.pp__btn--cow { --tile: #DDF2C2; }
.pp__btn--peacock { --tile: #FFD2DC; }
.pp__btn--squirrel { --tile: #F3E0BA; }
.pp__tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pp__msg { min-height: 1.5em; text-align: center; font: 800 18px/1.4 var(--font-body); color: var(--ink); }
.pp__msg.is-no { color: var(--no-ink); }
.pp__msg.is-ok { color: var(--ok-ink); }
.pp__hint { border-radius: var(--cut-sm); background: #FFF1C2; }
.pp__hint summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer; font: 800 16px/1.2 var(--font-body); list-style: none; }
.pp__hint summary::-webkit-details-marker { display: none; }
.pp__hint summary .ico { width: 20px; height: 20px; color: var(--ink-2); }
.pp__hint[open] summary .ico { transform: rotate(180deg); }
.pp__hint div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 0 16px 14px; font: 650 16px/1.4 var(--font-body); }
.pp__hint ol { display: flex; gap: 8px; }
.pp__hint li { display: grid; justify-items: center; font: 800 14.5px/1.1 var(--font-body); }
.pp__hint li img { width: 44px; height: 44px; }

/* a paper piece dropping into its slot, on twos */
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .pp__slot.is-new img { animation: pp-drop 420ms both; }
  html:not(.rm) .pp__slots.is-wrong { animation: pp-shake 500ms both; }
  html:not(.rm) .pp__slots.is-right .pp__slot { animation: pp-pop 500ms both; }
  html:not(.rm) .pp__slots.is-right .pp__slot:nth-child(2) { animation-delay: 80ms; }
  html:not(.rm) .pp__slots.is-right .pp__slot:nth-child(3) { animation-delay: 160ms; }
}
@keyframes pp-drop {
  0% { transform: translateY(-26px) rotate(-8deg) scale(.86); opacity: 0; animation-timing-function: steps(1, end); }
  20% { transform: translateY(-12px) rotate(-4deg) scale(.95); opacity: 1; animation-timing-function: steps(1, end); }
  40% { transform: translateY(3px) rotate(1deg) scale(1.03, .97); animation-timing-function: steps(1, end); }
  60% { transform: translateY(-2px) rotate(0deg); animation-timing-function: steps(1, end); }
  80%, 100% { transform: none; }
}
@keyframes pp-shake {
  0%, 100% { transform: none; }
  16% { transform: translateX(-10px); } 33% { transform: translateX(8px); } 50% { transform: translateX(-6px); } 66% { transform: translateX(4px); } 83% { transform: translateX(-2px); }
}
@keyframes pp-pop { 0% { transform: none; } 40% { transform: translateY(-8px) scale(1.06); } 100% { transform: none; } }

/* other doors, at the foot of the panel */
.others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 6px; }
.others > span { font: 700 15.5px/1.2 var(--font-body); color: var(--ink-2); margin-right: 2px; }
.other { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 4px 16px 4px 5px; border-radius: 99px; background: var(--card); color: var(--ink);
  text-decoration: none; font: 800 16px/1 var(--font-body); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1), var(--sh-sm); transition: translate 260ms var(--settle); }
.other img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--room, var(--sky)); }
@media (hover: hover) and (pointer: fine) { .other:hover { translate: 0 -2px; } }
.other--student, .who--student, .try--student { --room: #FFEDB2; }
.other--parent, .who--parent, .try--parent { --room: #FFE4EA; }
.other--teacher, .who--teacher, .try--teacher { --room: #DDF5E7; }
.other--school, .who--school, .try--school { --room: #E3E9FF; }
/* heads cut from the people art: show the top of the figure in a round frame */
.head { object-fit: cover; object-position: 50% 4%; }
.head--kid { object-position: 50% 8%; }

/* ---------- the door opens: shared-element view transition (Chromium); everyone else gets the plain swap */
::view-transition-group(door) { animation-duration: 560ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn.is-busy::before { animation: none; border-right-color: currentColor; opacity: .5; }
  .door__frame, .kid, .pp__btn, .nlr, .other { transition: none; }
}

/* R4: the Student door points families without a class code to the at-home Kuru account */
.sample a { font-weight: 800; color: var(--blue-deep); }
