    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0
    }

    body:before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        opacity: .55;
        background-image:
            radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 1px),
            radial-gradient(circle, rgba(125, 211, 252, .8) 1px, transparent 1px);
        background-size: 80px 80px, 130px 130px;
        background-position: 0 0, 30px 45px
    }

    body {
        font-family: Nunito, Lexend, ui-rounded, system-ui, sans-serif;
        background:
            radial-gradient(circle at 18% 18%, rgba(34, 211, 238, .16), transparent 28%),
            radial-gradient(circle at 82% 24%, rgba(129, 140, 248, .18), transparent 32%),
            radial-gradient(circle at 50% 95%, rgba(250, 204, 21, .08), transparent 38%),
            linear-gradient(180deg, #08111f, #0f172a 52%, #020617);
        color: #e2e8f0;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    button,
    input {
        font: inherit
    }

    .screen {
        display: none;
        min-height: 100vh;
        height: auto;
        padding: clamp(10px, 2vw, 18px);
        overflow: visible;
    }

    .screen.active {
        display: flex;
        flex-direction: column;
        justify-content: center
    }

    .hero,
    .card {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto 16px;
        border-radius: 28px;
        box-shadow: 0 16px 40px rgba(25, 39, 71, .14)
    }

    .hero {
        background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 58, 138, .92), rgba(6, 182, 212, .78));
        color: #fff;
        padding: 22px 24px;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(125, 211, 252, .45);
        box-shadow: 0 0 42px rgba(34, 211, 238, .18), 0 16px 40px rgba(0, 0, 0, .24)
    }

    .hero:after {
        content: "✦";
        position: absolute;
        right: 24px;
        top: 16px;
        font-size: 70px;
        opacity: .28
    }

    .top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap
    }

    h1 {
        font-family: Orbitron, Nunito, system-ui, sans-serif;
        font-size: clamp(34px, 5vw, 56px);
        line-height: 1;
        letter-spacing: -.04em
    }

    .subtitle {
        font-size: 18px;
        opacity: .95;
        margin-top: 8px;
        max-width: 760px
    }

    .pills {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 18px
    }

    .pill {
        background: rgba(255, 255, 255, .22);
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 999px;
        padding: 8px 13px;
        font-weight: 900
    }

    .btn {
        border: 0;
        border-radius: 18px;
        padding: 12px 17px;
        cursor: pointer;
        font-weight: 950;
        background: #fff;
        color: #1d4ed8;
        box-shadow: 0 7px 0 rgba(0, 0, 0, .1);
        transition: .12s
    }

    .btn:hover {
        transform: translateY(-1px)
    }

    .btn:active {
        transform: translateY(3px);
        box-shadow: 0 3px 0 rgba(0, 0, 0, .1)
    }

    .btn.primary {
        background: #facc15;
        color: #713f12
    }

    .btn.blue {
        background: #2563eb;
        color: white
    }

    .btn.ghost {
        background: rgba(255, 255, 255, .18);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, .35)
    }

    .main-grid {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 16px
    }

    .card {
        background: rgba(15, 23, 42, .82);
        border: 1px solid rgba(125, 211, 252, .28);
        padding: 16px;
        color: #e2e8f0;
        backdrop-filter: blur(10px)
    }

    .section-title {
        font-family: Orbitron, Nunito, system-ui, sans-serif;
        font-size: 23px;
        margin-bottom: 12px;
        letter-spacing: .02em
    }

    .avatar-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px
    }

    .avatar {
        aspect-ratio: 1;
        border-radius: 20px;
        border: 3px solid transparent;
        background: #eef2ff;
        cursor: pointer;
        font-size: 34px;
        display: grid;
        place-items: center
    }

    .avatar.selected {
        border-color: #f59e0b;
        background: #fef3c7
    }

    .map {
        display: grid;
        gap: 10px
    }

    .world {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 22px;
        background: rgba(15, 23, 42, .72);
        border: 1px solid rgba(125, 211, 252, .22);
        cursor: pointer
    }

    .world:hover,
    .world.selected {
        background: rgba(30, 58, 138, .55);
        border-color: #22d3ee;
        box-shadow: 0 0 0 3px rgba(34, 211, 238, .18), 0 0 22px rgba(34, 211, 238, .18)
    }

    .world-icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        background:
            radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .62), transparent 20%),
            linear-gradient(135deg, rgba(34, 211, 238, .42), rgba(99, 102, 241, .42));
        border: 1px solid rgba(125, 211, 252, .48);
        font-family: Orbitron, Nunito, sans-serif;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .04em;
        color: #e2e8f0;
        box-shadow: 0 0 16px rgba(34, 211, 238, .22);
    }

    .world h3 {
        font-size: 18px
    }

    .world p,
    .lesson-card small {
        color: #94a3b8;
        font-size: 13px;
        margin-top: 2px
    }

    .progressbar {
        height: 10px;
        background: rgba(148, 163, 184, .22);
        border-radius: 999px;
        overflow: hidden;
        margin-top: 9px
    }

    .progressbar span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #22d3ee, #818cf8, #facc15)
    }

    .lesson-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        max-height: calc(100vh - 120px);
        overflow: auto;
        padding: 2px
    }

    .lesson-card {
        background: rgba(15, 23, 42, .76);
        border: 2px solid rgba(125, 211, 252, .22);
        border-radius: 18px;
        padding: 10px;
        cursor: pointer;
        text-align: left;
        color: #e2e8f0
    }

    .lesson-card:hover,
    .lesson-card.selected {
        border-color: #22d3ee;
        background: rgba(30, 58, 138, .55);
        box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 0 22px rgba(34, 211, 238, .16)
    }

    .lesson-card b {
        display: block;
        font-size: 16px;
        margin-bottom: 5px
    }

    .backbar {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap
    }

    .typing-wrap {
        width: 100%;
        max-width: 1080px;
        margin: 0 auto;
        display: grid;
        gap: 10px
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px
    }

    .stat {
        background: rgba(15, 23, 42, .82);
        border-radius: 20px;
        padding: 12px;
        text-align: center;
        border: 1px solid rgba(125, 211, 252, .25);
        color: #e2e8f0
    }

    .stat .label {
        color: #94a3b8;
        font-size: 12px;
        font-weight: 900
    }

    .stat .value {
        font-size: 25px;
        font-weight: 1000
    }

    .prompt {
        background: rgba(2, 6, 23, .82);
        border: 3px solid rgba(34, 211, 238, .58);
        border-radius: 28px;
        padding: 18px 22px;
        font-size: clamp(24px, 3.5vw, 38px);
        line-height: 1.45;
        letter-spacing: .04em;
        min-height: 110px;
        box-shadow: 0 0 28px rgba(34, 211, 238, .16), 0 16px 40px rgba(0, 0, 0, .28);
        cursor: text;
        color: #f8fafc
    }

    .ch.done {
        background: rgba(34, 197, 94, .55);
        border-radius: 7px
    }

    .ch.current {
        background: rgba(250, 204, 21, .85);
        color: #0f172a;
        outline: 3px solid #22d3ee;
        border-radius: 7px
    }

    .ch.wrong {
        background: rgba(248, 113, 113, .7);
        border-radius: 7px
    }

    .keyboard {
        --key: 38px;
        --gap: 5px;
        background: rgba(15, 23, 42, .9);
        border-radius: 24px;
        padding: 12px;
        display: grid;
        gap: var(--gap);
        justify-self: center;
        border: 1px solid rgba(125, 211, 252, .28);
        box-shadow: 0 0 26px rgba(34, 211, 238, .12), 0 16px 40px rgba(0, 0, 0, .28);
        max-width: 100%;
        overflow: hidden
    }

    .krow {
        display: flex;
        gap: var(--gap);
        justify-content: center
    }

    .key {
        width: var(--key);
        min-width: var(--key);
        height: 38px;
        border-radius: 10px;
        border: 2px solid rgba(148, 163, 184, .45);
        display: grid;
        place-items: center;
        font-weight: 900;
        background: rgba(30, 41, 59, .92);
        line-height: 1;
        color: #e2e8f0
    }

    .key.wide {
        width: 64px;
        min-width: 64px
    }

    .key.space {
        width: 360px;
        min-width: 220px;
        max-width: 58vw
    }

    .key.hl {
        background: #fffb00 !important;
        color: #000 !important;
        border: 3px solid #ff6b00 !important;
        box-shadow:
            0 0 0 4px #ffffff,
            0 0 15px #ff6b00,
            0 0 30px #ff6b00;
        transform: scale(1.1);
    }

    .key.pressed {
        transform: translateY(2px);
        box-shadow: none
    }

    .key.pinky {
        background: #60a5fa;
        color: #0f172a;
    }

    .key.ring {
        background: #c084fc;
        color: #0f172a;
    }

    .key.middle {
        background: #4ade80;
        color: #0f172a;
    }

    .key.index-left,
    .key.index-right {
        background: #fde047;
        color: #0f172a;
    }

    .key.thumb {
        background: #cbd5e1;
        color: #0f172a;
    }

    .key.home::after {
        content: "";
        font-size: 11px;
        position: absolute;
        bottom: 2px;
        right: 4px;
    }

    .key {
        position: relative;
    }


    @media(max-width:760px) {
        .keyboard {
            --key: 32px;
            --gap: 4px;
            padding: 10px
        }

        .key {
            height: 34px;
            font-size: 14px
        }

        .key.wide {
            width: 54px;
            min-width: 54px
        }

        .key.space {
            width: 280px;
            min-width: 180px
        }
    }

    .result {
        max-width: 550px;
        margin: 30px auto;
        text-align: center
    }

    .result-mascot {
        width: 220px;
        max-width: 80%;
        margin: 0 auto 12px;
        display: block;
    }

    .big-emoji {
        font-family: Orbitron, Nunito, sans-serif;
        font-size: 48px;
        letter-spacing: .08em;
        color: #67e8f9
    }

    .rewards {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin: 16px 0
    }

    .reward {
        background: rgba(30, 58, 138, .55);
        border: 2px solid rgba(34, 211, 238, .65);
        border-radius: 20px;
        padding: 10px 14px;
        font-weight: 950;
        color: #e0f2fe
    }

    .settings-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 10px;
        margin: 12px 0
    }

    .preset {
        background: rgba(15, 23, 42, .76);
        border: 2px solid rgba(125, 211, 252, .22);
        border-radius: 20px;
        padding: 14px;
        text-align: left;
        cursor: pointer;
        color: #e2e8f0
    }

    .preset.selected {
        border-color: #22d3ee;
        background: rgba(30, 58, 138, .55)
    }

    .field {
        margin: 12px 0
    }

    label {
        display: block;
        font-weight: 900;
        margin-bottom: 6px
    }

    input[type=range] {
        width: 100%
    }

    .hidden {
        display: none
    }

    .name-card {
        max-width: 620px;
        text-align: center;
    }

    .name-input {
        width: 100%;
        margin: 14px 0;
        padding: 14px 16px;
        border-radius: 18px;
        border: 2px solid rgba(34, 211, 238, .58);
        background: rgba(2, 6, 23, .82);
        color: #f8fafc;
        font-size: 22px;
        font-weight: 900;
        text-align: center;
    }

    .name-input::placeholder {
        color: #94a3b8;
    }

    #trap {
        position: fixed;
        left: 0;
        top: 0;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none
    }

    .weekly-card {
        display: grid;
        gap: 12px
    }

    .weekly-step {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        background: rgba(15, 23, 42, .7);
        border: 1px solid rgba(125, 211, 252, .22);
        border-radius: 18px;
        padding: 12px
    }

    .weekly-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(34, 211, 238, .18);
        border: 1px solid rgba(125, 211, 252, .35);
        display: grid;
        place-items: center;
        font-size: 18px;
        flex: 0 0 auto;
        font-family: Orbitron, Nunito, sans-serif;
        color: #67e8f9
    }

    .weekly-step b {
        display: block;
        margin-bottom: 3px
    }

    .weekly-step p {
        color: #94a3b8;
        font-size: 14px;
        line-height: 1.3
    }

    .mission-callout {
        background: #fef3c7;
        border: 2px solid #f59e0b;
        border-radius: 20px;
        padding: 12px;
        font-weight: 950;
        text-align: center
    }


    .teacher-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .btn.danger {
        background: #ef4444;
        color: white;
    }

    .progress-summary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .progress-table-wrap {
        max-height: calc(100vh - 250px);
        overflow: auto;
        border-radius: 18px;
        border: 1px solid rgba(125, 211, 252, .22);
    }

    .progress-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 760px;
        background: rgba(2, 6, 23, .48);
    }

    .progress-table th,
    .progress-table td {
        padding: 10px;
        border-bottom: 1px solid rgba(125, 211, 252, .18);
        text-align: left;
        font-size: 14px;
    }

    .progress-table th {
        position: sticky;
        top: 0;
        background: rgba(15, 23, 42, .96);
        color: #67e8f9;
        z-index: 1;
    }

    .progress-table td.num,
    .progress-table th.num {
        text-align: right;
    }

    .status-complete {
        color: #86efac;
        font-weight: 900;
    }

    .status-open {
        color: #cbd5e1;
        font-weight: 900;
    }

    .status-needs-practice {
        color: #f87171;
        font-weight: 900;
    }

    .lesson-status {
        margin-top: 6px;
        color: #22c55e;
        font-weight: 900;
        font-size: 13px;
    }

    @media(max-width:820px) {
        body {
            overflow: auto
        }

        .screen {
            height: auto;
            min-height: 100vh;
            overflow: visible;
            padding: 10px
        }

        .main-grid {
            grid-template-columns: 1fr
        }

        .stats {
            grid-template-columns: repeat(2, 1fr)
        }
    }

    .lesson-complete {
        color: #22c55e;
        font-weight: 900;
        text-shadow: 0 0 8px rgba(34, 197, 94, .6);
    }

.music-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.music-box button {
  background: rgba(15, 23, 42, .92);
  color: #67e8f9;
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 16px;
  padding: 10px 14px;

  font-family: Orbitron, Nunito, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;

  cursor: pointer;

  backdrop-filter: blur(10px);

  box-shadow:
    0 0 16px rgba(34, 211, 238, .18),
    0 8px 24px rgba(0, 0, 0, .25);

  transition: all .15s ease;
}

.music-box button:hover {
  border-color: #22d3ee;
  box-shadow:
    0 0 20px rgba(34, 211, 238, .35),
    0 8px 24px rgba(0, 0, 0, .25);
  transform: translateY(-1px);
}

.music-box button:active {
  transform: translateY(1px);
}