/* ==========================================================================
   Seekho Khelo — base styles
   Palette: sky #7FD3F7 · hill #3BA55C · marigold #FFB627 · hibiscus #E8445A
            ink #22314E · morning #F3FBFF
   ========================================================================== */

/* Baloo 2 (SIL OFL, fonts/OFL-Baloo2.txt), served locally and split by script so a page
   only downloads what it shows. Devanagari keeps every OpenType feature (conjuncts). */

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2-400-devanagari.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2-700-devanagari.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/Baloo2-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --sky: #7fd3f7;
    --sky-deep: #4bb8e6;
    --hill: #3ba55c;
    --hill-dark: #2c7f46;
    --marigold: #ffb627;
    --hibiscus: #e8445a;
    --ink: #22314e;
    --ink-soft: #5a6885;
    --morning: #f3fbff;
    --paper: #ffffff;
    --line: #d7e6f0;

    --band-mastered: #2c7f46;
    --band-proficient: #6fbf73;
    --band-developing: #ffd27f;
    --band-beginning: #f6b0ba;
    --band-unknown: #e7edf3;

    --radius: 16px;
    --radius-lg: 26px;
    --shadow: 0 2px 10px rgba(34, 49, 78, .12);
    --shadow-lift: 0 8px 22px rgba(34, 49, 78, .18);

    --tap: 64px;
    --font: 'Baloo 2', 'Nirmala UI', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--morning);
    overflow-wrap: anywhere;
}

h1, h2, h3 {
    margin: 0 0 .4em;
    line-height: 1.2;
}

p {
    margin: 0 0 .8em;
}

a {
    color: var(--hill-dark);
}

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .85em;
    background: #eef5fa;
    padding: .1em .35em;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--hibiscus);
    outline-offset: 2px;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    min-height: 48px;
    padding: .5em 1.1em;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.btn:active {
    transform: translateY(1px);
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    background: var(--hill);
    color: #fff;
}

.btn--danger {
    background: var(--hibiscus);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    box-shadow: none;
}

.btn--small {
    min-height: 36px;
    padding: .25em .8em;
    font-size: .85em;
}

.btn--big {
    min-height: var(--tap);
    font-size: 1.25rem;
    padding: .6em 1.6em;
}

.btn--block {
    width: 100%;
}

/* -------------------------------------------------------------- forms ---- */

.field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .9rem;
}

.field > span {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    font: inherit;
    padding: .55em .7em;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    min-height: 44px;
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

.field--check {
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

.field--check input {
    min-height: auto;
    width: 22px;
    height: 22px;
}

.field-error {
    color: var(--hibiscus);
    font-weight: 700;
}

/* -------------------------------------------------------------- flash ---- */

.flash-stack {
    max-width: 900px;
    margin: .8rem auto 0;
    padding: 0 1rem;
}

.flash {
    margin: 0 0 .4rem;
    padding: .7rem 1rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.flash--ok {
    background: #e3f6e9;
    color: var(--hill-dark);
}

.flash--error {
    background: #fdeaed;
    color: #a52236;
}

.notice {
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    background: #eaf6fd;
    margin: 0 0 1rem;
}

.notice--ok { background: #e3f6e9; }
.notice--gold { background: #fff3da; }
.notice--calm { background: #eef3f8; }

.empty {
    padding: 1.2rem;
    border-radius: var(--radius);
    background: #eef3f8;
    color: var(--ink-soft);
    text-align: center;
}

/* ------------------------------------------------------ plain / auth ----- */

.page--plain {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 12%, rgba(127, 211, 247, .45), transparent 42%),
        radial-gradient(circle at 85% 8%, rgba(255, 182, 39, .32), transparent 38%),
        var(--morning);
}

.plain-main {
    flex: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.plain-footer {
    text-align: center;
    color: var(--ink-soft);
    font-size: .85rem;
    padding: 1rem;
}

.welcome {
    text-align: center;
    max-width: 640px;
    margin: 2rem auto;
}

.welcome__title {
    font-size: clamp(2.4rem, 8vw, 4rem);
    color: var(--hill-dark);
}

.welcome__sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.welcome__actions {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin: 2rem 0;
}

.welcome__points {
    text-align: left;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem 1.2rem 2.2rem;
    box-shadow: var(--shadow);
}

.auth-card {
    max-width: 420px;
    margin: 2rem auto;
    background: var(--paper);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

.auth-card__hint {
    color: var(--ink-soft);
}

.auth-card__alt {
    margin-top: 1.2rem;
    text-align: center;
}

/* ------------------------------------------------------ picture login ---- */

.pick {
    text-align: center;
}

.pick__title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.pick__sub {
    color: var(--ink-soft);
}

.pick__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 1.5rem 0;
}

.pick__tile,
.pick__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    min-height: 150px;
    justify-content: center;
    padding: 1rem;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.pick__tile:hover,
.pick__face:hover {
    box-shadow: var(--shadow-lift);
}

.pick__tile-emoji {
    font-size: 2.6rem;
}

.pick__face img {
    border-radius: 50%;
    background: var(--sky);
}

.picture-login__slots {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: .7rem;
    padding: 0;
    margin: 1.2rem 0;
}

.picture-login__slot {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--paper);
    border: 3px dashed var(--line);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.picture-login__slot.is-filled {
    border-style: solid;
    border-color: var(--hill);
}

.picture-login__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(var(--tap), 110px));
    gap: .8rem;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.picture-login__key {
    min-width: var(--tap);
    min-height: var(--tap);
    padding: .6rem .2rem;
    border: 2px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    box-shadow: var(--shadow);
}

.picture-login__key:active {
    background: #eaf6fd;
}

.picture-login__emoji {
    font-size: 2rem;
    line-height: 1;
}

.picture-login__label {
    font-size: .8rem;
    color: var(--ink-soft);
}

.picture-login__actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
}

.pick__back {
    margin-top: 1.4rem;
}

/* ----------------------------------------------------- PIN login (Class 4) ---- */

.pin-login__dots {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 1.2rem 0;
}

.pin-login__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--ink-soft);
    background: var(--paper);
}

.pin-login__dot.is-filled {
    background: var(--hill);
    border-color: var(--hill);
}

.pin-login__pad {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: .8rem;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.pin-login__key {
    width: 72px;
    height: 72px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    touch-action: manipulation;
}

.pin-login__key:active {
    background: #eaf6fd;
}

.pin-login__key:focus-visible {
    outline: 3px solid var(--sky-deep);
    outline-offset: 2px;
}

.pin-login__key--soft {
    font-size: 1.5rem;
    color: var(--ink-soft);
    background: var(--morning);
}

.btn--play {
    min-height: var(--tap);
    min-width: 10rem;
    font-size: 1.25rem;
}

/* Children's login messages (wrong PIN, locked out) are calm notes, never red alarms. */
.pick .field-error,
.field-error--locked {
    background: #fff6df;
    border: 2px solid var(--marigold);
    color: var(--ink);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    max-width: 30rem;
    margin: 1rem auto;
}

/* ------------------------------------------------------ student shell ---- */

.page--student {
    min-height: 100vh;
    background:
        linear-gradient(180deg, var(--sky) 0, rgba(127, 211, 247, .25) 220px, var(--morning) 420px);
}

.student-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem 1rem;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
}

.student-bar__brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--hill-dark);
}

.student-bar__nav {
    display: flex;
    gap: .5rem;
    margin-left: auto;
}

.student-bar__nav a {
    text-decoration: none;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow);
    color: inherit;
    font-weight: 700;
}

.student-bar__me {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.student-bar__me form {
    margin: 0;
}

.avatar {
    border-radius: 50%;
    background: var(--sky);
}

.student-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem 4rem;
}

.subject-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.subject-tabs__tab {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: var(--paper);
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    box-shadow: var(--shadow);
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    /* Four or five subjects: tabs go onto a second row, a name never breaks. */
    white-space: nowrap;
}

.subject-tabs__tab small {
    font-size: .7rem;
    color: var(--ink-soft);
}

.subject-tabs__tab.is-active {
    background: var(--marigold);
}

.journey__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.journey__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin: 0;
}

.journey__sub {
    color: var(--ink-soft);
    margin: 0;
}

.callout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow-lift);
    border: 3px solid var(--marigold);
}

.callout--endline {
    border-color: var(--sky-deep);
}

/* --------------------------------------------------------- journey map --- */

.path {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 8px;
    margin-left: -4px;
    background: repeating-linear-gradient(180deg, var(--hill) 0 14px, transparent 14px 28px);
    opacity: .35;
    border-radius: 4px;
}

.path__stop {
    position: relative;
    margin: 0 0 1.4rem;
}

.game-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem;
    position: relative;
}

.path__stop.is-locked .game-card {
    filter: grayscale(.65);
    opacity: .8;
}

.game-card__main {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.game-card__art {
    border-radius: var(--radius);
    background: var(--sky);
    flex: 0 0 auto;
}

.game-card__text h2 {
    margin: 0;
    font-size: 1.35rem;
}

.game-card__text p {
    margin: .15rem 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.game-card__meta {
    font-size: .85rem !important;
}

.stones {
    list-style: none;
    display: flex;
    gap: .6rem;
    padding: .9rem 0 0;
    margin: 0;
    flex-wrap: wrap;
}

.stones__stone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-width: var(--tap);
    min-height: var(--tap);
    padding: .4rem;
    border-radius: 20px;
    background: #e7edf3;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.stones__stone--unlocked {
    background: var(--sky);
    color: var(--ink);
}

.stones__stone--passed {
    background: var(--hill);
    color: #fff;
}

.stones__stone--mastered {
    background: linear-gradient(160deg, var(--marigold), #ff9d00);
    color: #4a2d00;
}

.stones__stone.is-checkpoint {
    box-shadow: 0 0 0 3px var(--hibiscus);
}

.stones__no {
    font-size: 1.3rem;
    line-height: 1;
}

.stones__badge {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 1.1rem;
}

.stones__plays {
    font-size: .7rem;
    opacity: .85;
}

.stars {
    display: inline-flex;
    gap: 1px;
    font-size: .8rem;
    line-height: 1;
}

.stars__pip {
    color: rgba(34, 49, 78, .22);
}

.stars__pip.is-on {
    color: var(--marigold);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}

/* ------------------------------------------------- intro / result page --- */

.intro,
.result,
.notice-page,
.badges {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.intro__title,
.result__title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    margin-bottom: 0;
}

.intro__sub,
.result__sub {
    color: var(--ink-soft);
}

.intro__levels {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
    text-align: left;
}

.intro__level {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .8rem;
    border-radius: var(--radius);
    background: #f2f7fb;
    margin-bottom: .5rem;
}

.intro__level--passed { background: #e3f6e9; }
.intro__level--mastered { background: #fff3da; }
.intro__level--locked { opacity: .6; }

.intro__level-no {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.intro__level-name {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intro__level-name small {
    color: var(--ink-soft);
    font-size: .8rem;
}

.intro__outcomes {
    text-align: left;
    margin-top: 1rem;
}

.result__stars {
    font-size: 3rem;
    margin: .6rem 0;
}

.result__facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .7rem;
    padding: 0;
    margin: 1.2rem 0;
}

.result__facts li {
    background: #f2f7fb;
    border-radius: var(--radius);
    padding: .7rem .4rem;
    display: flex;
    flex-direction: column;
}

.result__facts strong {
    font-size: 1.5rem;
}

.result__facts span {
    font-size: .8rem;
    color: var(--ink-soft);
}

.result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
    margin: 1.2rem 0;
}

.result__badges ul {
    list-style: none;
    display: flex;
    gap: .5rem;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
}

.result__answers {
    text-align: left;
    margin-top: 1rem;
}

.answer-list {
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
}

.answer-list__row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .45rem .3rem;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

.answer-list__row.is-right .answer-list__mark {
    color: var(--hill);
    font-weight: 700;
}

.answer-list__given {
    color: var(--ink-soft);
}

.lo-bars {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.lo-bars li {
    display: grid;
    grid-template-columns: 70px 1fr 60px;
    gap: .6rem;
    align-items: center;
    margin-bottom: .45rem;
}

.lo-bars__track {
    height: 14px;
    border-radius: 7px;
    background: #e7edf3;
    overflow: hidden;
}

.lo-bars__fill {
    display: block;
    height: 100%;
    background: var(--hill);
}

/* -------------------------------------------------------------- badges --- */

.badges__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .9rem;
    padding: 0;
    margin: 1.2rem 0;
}

.badges__item {
    background: #f2f7fb;
    border-radius: var(--radius);
    padding: .9rem .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    filter: grayscale(1);
    opacity: .6;
}

.badges__item.is-earned {
    filter: none;
    opacity: 1;
    background: #fff3da;
}

.badges__date {
    font-size: .75rem;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- mascot ---- */

.mascot {
    display: flex;
    align-items: center;
    gap: .8rem;
    justify-content: center;
}

.mascot__art {
    flex: 0 0 auto;
}

.mascot__bubble {
    position: relative;
    background: var(--paper);
    border: 3px solid var(--sky);
    border-radius: 20px;
    padding: .7rem 1rem;
    margin: 0;
    max-width: 30ch;
    text-align: left;
    font-size: 1.05rem;
}

.mascot__replay {
    border: none;
    background: var(--sky);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: .3rem;
    vertical-align: middle;
}

/* ------------------------------------------------------------- errors ---- */

.error-card {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.error-card__code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hibiscus);
    margin: 0;
}

.error-card__hindi {
    font-size: 1.2rem;
}

.error-card__detail {
    color: var(--ink-soft);
}

.error-card__debug {
    text-align: left;
    margin-top: 1.4rem;
    font-size: .8rem;
}

.error-card__debug pre {
    overflow: auto;
    background: #f2f7fb;
    padding: .7rem;
    border-radius: 10px;
}

.notice-page__en {
    color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ------------------------------------------------ printable login cards ---- */

.login-cards {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.login-cards__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1rem 0;
}

.login-cards__grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.login-card {
    border: 2px dashed var(--ink-soft);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    background: var(--paper);
    break-inside: avoid;
}

.login-card__who {
    display: flex;
    gap: .7rem;
    align-items: center;
}

.login-card__who img {
    border-radius: 50%;
    background: var(--sky);
}

.login-card__who small {
    display: block;
    color: var(--ink-soft);
}

.login-card__label {
    margin: .7rem 0 .2rem;
    font-size: .9rem;
    color: var(--ink-soft);
}

.login-card__pin {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: .15em;
    margin: 0;
}

.login-card__pictures {
    list-style: none;
    display: flex;
    gap: .5rem;
    padding: 0;
    margin: 0;
    counter-reset: pic;
}

.login-card__pictures li {
    counter-increment: pic;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.1;
}

.login-card__pictures li::before {
    content: counter(pic);
    display: block;
    font-size: .75rem;
    color: var(--ink-soft);
}

.login-card__pictures small {
    display: block;
    font-size: .7rem;
}

.login-card__note {
    margin: .6rem 0 0;
    font-size: .8rem;
    color: var(--ink-soft);
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .login-cards {
        padding: 0;
    }
}

/* Hindi / English switch on the Science and Computer maps. */
.lang-switch { display: inline-flex; gap: .4rem; margin: .4rem 0 0; }
.lang-switch form { margin: 0; }
.lang-switch .btn { min-height: 56px; }
.lang-switch .btn.is-active { background: #2f5da8; color: #fff; border-color: #2f5da8; }

/* Phone: the small controls on the child's pages stay easy to tap. */
@media (max-width: 600px) {
    .student-bar .btn--small { min-height: 48px; }
    .mascot__replay { min-width: 48px; min-height: 48px; }
}

/* Phone: the top bar wraps onto three rows, so it scrolls away instead of covering the page. */
@media (max-width: 600px) {
    .student-bar { position: static; }
}

/* Wide report tables scroll inside their panel on a phone instead of stretching the page. */
@media (max-width: 640px) {
    .panel,
    .table-scroll {
        overflow-x: auto;
    }
}

/* The child's map: what the teacher has set for the class. */
.teacher-work {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 2px solid var(--marigold, #ffb627);
    border-radius: 16px;
    background: #fff9e8;
}

.teacher-work__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.teacher-work__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-work__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.teacher-work__item small {
    display: block;
}

.teacher-work__item.is-done {
    opacity: .75;
}

.teacher-work__mark {
    font-size: 1.4rem;
}

/* A child's report for parents: one printed page. */
.child-report {
    max-width: 900px;
    margin: 0 auto;
}

.child-report__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.child-report__stats > div {
    flex: 1 1 150px;
    padding: 8px 12px;
    border: 1px solid #c9d6e2;
    border-radius: 10px;
}

.child-report__stats dd {
    margin: 2px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.child-report__table {
    width: 100%;
    border-collapse: collapse;
}

.child-report__table th,
.child-report__table td {
    padding: 8px;
    border: 1px solid #c9d6e2;
    text-align: left;
    vertical-align: top;
}

.child-report__band {
    display: block;
}

.child-report__notes {
    margin-top: 14px;
    font-size: .9rem;
}

.child-report__sign {
    margin-top: 28px;
}
