:root {
    --pink: #ff9fbd;
    --pink-deep: #f45f92;
    --violet: #8f7cf5;
    --violet-deep: #7c5cf0;
    --sky: #4fb6ff;
    --mint: #37d39c;
    --sun: #ffcf5c;
    --ink: #38304f;
    --muted: #7b7496;
    --line: #ece6f7;
    --girl: #ffd166;
    --radius: 24px;
    --shadow: 0 12px 30px rgba(122, 92, 250, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, #ffe9f3 0%, transparent 60%),
        radial-gradient(1000px 500px at 110% 0%, #e6f2ff 0%, transparent 55%),
        linear-gradient(180deg, #fff9fc 0%, #f3f7ff 100%);
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 20px 48px;
}

.topbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    color: #5b4b9a;
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.brand.small {
    font-size: 18px;
}

.topnav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pack-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    color: #5b4b9a;
}

.ghost-link {
    color: #6f6890;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    transition: background .15s ease;
}

.ghost-link:hover {
    background: #fff;
}

.lead {
    color: var(--muted);
    font-size: 15px;
    margin: 10px 2px 20px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 24px 16px 36px;
}

.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-mock {
    background: #fff4e0;
    color: #b26a00;
    border: 1px solid #ffd9a0;
}

.badge-real {
    background: #e8fbf3;
    color: #127a55;
    border: 1px solid #b7efd9;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
}

.card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, opacity .15s ease;
}

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

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(140deg, #ff9fbd, var(--pink-deep) 60%, #e6508f);
    box-shadow: 0 10px 22px rgba(244, 95, 146, .3);
}

.btn.secondary {
    color: #fff;
    background: linear-gradient(140deg, #7cc7ff, var(--sky) 60%, #2f97e8);
    box-shadow: 0 10px 22px rgba(79, 182, 255, .3);
}

.btn.ghost {
    color: #6f6890;
    background: #f4f1fc;
    border: 1px solid var(--line);
}

.danger-text {
    color: #d64570;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 36px 20px;
}

.empty-emoji {
    font-size: 44px;
    margin-bottom: 8px;
}

.empty .btn {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
}

.footer {
    padding-bottom: 40px;
}

/* ---------- 首页 ---------- */
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.pack-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
    transition: transform .16s ease, box-shadow .16s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(122, 92, 250, .2);
}

.pack-emoji {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(140deg, #fff1f7, #eef2ff);
    display: grid;
    place-items: center;
    font-size: 34px;
    flex: none;
}

.pack-info {
    flex: 1;
    min-width: 0;
}

.pack-info h2 {
    margin: 0 0 8px;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #f0edf9;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9fbd, var(--violet));
    transition: width .4s ease;
}

.pack-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

/* ---------- 迷宫关卡地图 ---------- */
#levelMap {
    --maze-row: 176px;
    margin-top: 4px;
}

.maze-track {
    position: relative;
    width: 100%;
}

.maze-path {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.track-under {
    fill: none;
    stroke: #f1ecfb;
    stroke-width: 16;
    stroke-linecap: round;
}

.track-dash {
    fill: none;
    stroke: #d8d0ef;
    stroke-width: 8;
    stroke-dasharray: 1 18;
    stroke-linecap: round;
}

.maze-node {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 140px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    animation: node-in .3s ease backwards;
}

.maze-node.locked {
    cursor: not-allowed;
    opacity: .75;
}

.maze-node:not(.locked):hover .level-circle {
    transform: translateY(-4px);
}

.level-circle {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(150deg, #ff9fbd, var(--violet));
    box-shadow: 0 12px 24px rgba(143, 124, 245, .28), inset 0 -8px 0 rgba(0, 0, 0, .06);
    transition: transform .15s ease;
}

.maze-node.current .level-circle {
    animation: current-glow 1.8s ease-in-out infinite;
}

.maze-node.done .level-circle {
    background: linear-gradient(150deg, #ffd166, #ff9f43);
    box-shadow: 0 12px 24px rgba(255, 159, 67, .32), inset 0 -8px 0 rgba(0, 0, 0, .06);
}

.maze-node.locked .level-circle {
    background: #e2ddf0;
    box-shadow: none;
    font-size: 30px;
}

.monster-badge {
    position: absolute;
    top: -34px;
    right: 6px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 1;
}

.node-monster {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(90, 70, 140, .25));
}

.maze-node.current .node-monster {
    animation: bob 2.2s ease-in-out infinite;
}

.maze-node.locked .node-monster {
    filter: grayscale(1);
    opacity: .35;
}

.maze-node.done .node-monster {
    transform: rotate(-12deg);
}

.node-plaster {
    position: absolute;
    right: -2px;
    bottom: -2px;
    font-size: 19px;
    transform: rotate(20deg);
}

.node-dizzy {
    --orbit: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -7px;
    font-size: 14px;
    animation: dizzy-orbit 2.6s linear infinite;
}

.node-dizzy.d2 {
    animation-delay: -1.3s;
}

.level-label {
    font-weight: 700;
    font-size: 15px;
}

.level-stars {
    color: #ffb703;
    letter-spacing: 2px;
    font-size: 15px;
    min-height: 18px;
}

.walker {
    position: absolute;
    transform: translateX(-50%);
    font-size: 30px;
    z-index: 2;
    pointer-events: none;
    animation: walker-bob 1.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 4px rgba(90, 70, 140, .25));
}

.maze-deco {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 26px;
    opacity: .7;
    pointer-events: none;
}

.start-sign {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- 闯关浮层 ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 51, 85, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 50;
}

.game-card,
.celebrate-card {
    background: #fff;
    border-radius: 30px;
    width: min(620px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(59, 51, 85, .25);
    animation: pop-in .25s ease;
}

.game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.level-chip {
    background: #f1edff;
    color: #6f5bd8;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
}

.dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e7e2f2;
    transition: background .2s ease, transform .2s ease;
}

.dot.done {
    background: var(--mint);
}

.dot.current {
    background: var(--violet);
    transform: scale(1.25);
}

.icon-btn {
    border: none;
    background: #f4f1fc;
    color: #7a7297;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex: none;
}

.icon-btn.small {
    width: 34px;
    height: 34px;
    font-size: 15px;
    background: transparent;
}

.icon-btn:hover {
    background: #eae4fa;
}

.word-stage {
    text-align: center;
    margin-top: 18px;
}

.word {
    font-size: clamp(46px, 9vw, 74px);
    font-weight: 800;
    letter-spacing: 1px;
    color: #4a3f7a;
    line-height: 1.15;
    word-break: break-word;
}

.meaning {
    font-size: 18px;
    color: var(--muted);
    margin-top: 6px;
    min-height: 26px;
}

.listen-btn {
    margin-top: 12px;
    border: none;
    background: #f3f0ff;
    color: #6f5bd8;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.listen-btn:hover {
    background: #eae4fa;
}

.listen-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.mic-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(140deg, #ff9fbd, var(--pink-deep) 60%, #e6508f);
    box-shadow: 0 16px 32px rgba(244, 95, 146, .35), inset 0 -6px 12px rgba(0, 0, 0, .08);
    transition: transform .15s ease;
    margin: 18px auto 0;
}

.mic-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.mic-btn:disabled {
    opacity: .65;
    cursor: default;
    transform: none;
}

.mic-btn.recording {
    animation: pulse 1.1s infinite;
    background: linear-gradient(140deg, #ff8a8a, #f4445f);
}

.mic-icon {
    font-size: 44px;
    line-height: 1;
}

.mic-hint {
    font-size: 13px;
    font-weight: 700;
    opacity: .95;
}

.status {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    min-height: 22px;
    margin: 16px 4px 0;
}

.result-panel {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff8fb, #f4f0ff);
    border: 1px solid #f0eaff;
    text-align: center;
    animation: pop-in .25s ease;
}

.score-line {
    font-size: 44px;
    font-weight: 800;
    color: var(--violet-deep);
    line-height: 1.1;
}

.score-unit {
    font-size: 18px;
    margin-left: 4px;
    color: var(--muted);
}

.stars {
    display: flex;
    gap: 6px;
    justify-content: center;
    font-size: 34px;
    margin-top: 6px;
}

.stars .star {
    color: #e6e1f2;
    animation: star-pop .35s ease backwards;
}

.stars .star.filled {
    color: var(--sun);
}

.stars.big {
    font-size: 46px;
}

.result-msg {
    margin: 10px 0 16px;
    color: var(--ink);
    font-weight: 600;
}

.result-actions,
.celebrate-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- 过关庆祝 & 打怪 ---------- */
.celebrate-card {
    text-align: center;
    padding: 26px 26px 30px;
}

.celebrate-card h2 {
    margin: 10px 0 4px;
    font-size: 26px;
    color: #5b4b9a;
}

.celebrate-card p {
    color: var(--muted);
    margin: 12px 0 20px;
}

.battle-stage {
    cursor: pointer;
    user-select: none;
}

.battle-title {
    display: inline-block;
    background: #f1edff;
    color: #6f5bd8;
    font-weight: 800;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 999px;
}

.hp-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    min-height: 24px;
    font-size: 18px;
}

.hp-pip {
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.hp-pip.lost {
    filter: grayscale(1);
    opacity: .3;
    transform: scale(.8);
}

.monster-wrap {
    position: relative;
    width: 190px;
    height: 148px;
    margin: 2px auto 0;
    display: grid;
    place-items: center;
}

.monster {
    font-size: 96px;
    line-height: 1;
    transition: transform .25s ease;
    filter: drop-shadow(0 10px 14px rgba(90, 70, 140, .25));
}

.monster-wrap.hit .monster {
    animation: monster-shake .38s ease;
}

.monster-wrap.beaten .monster {
    transform: rotate(-10deg) translateY(4px);
}

.monster-plaster {
    position: absolute;
    right: 20px;
    bottom: 18px;
    font-size: 30px;
    transform: rotate(20deg) scale(0);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1) .12s;
}

.monster-wrap.beaten .monster-plaster {
    transform: rotate(20deg) scale(1);
}

.dizzy-star {
    --orbit: 44px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
}

.monster-wrap.beaten .dizzy-star {
    opacity: 1;
    animation: dizzy-orbit 2.4s linear infinite;
}

.monster-wrap.beaten .dizzy-star.s2 {
    animation-delay: -1.2s;
}

.punch-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.punch-fx span {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -22px 0 0 -22px;
    font-size: 44px;
    animation: punch-in .55s ease-out forwards;
}

.punch-fx span.alt {
    font-size: 50px;
    margin: -25px 0 0 -25px;
}

.battle-hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 60;
}

.confetti-piece {
    position: absolute;
    top: -40px;
    animation: confetti-fall 2.6s ease-in forwards;
}

/* ---------- 家长中心 ---------- */
.parent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.parent-grid .wide {
    grid-column: 1 / -1;
}

.gate-card {
    width: min(420px, 100%);
    text-align: center;
}

.gate-emoji {
    font-size: 44px;
    margin-bottom: 6px;
}

.gate-card form {
    margin-top: 14px;
    text-align: left;
}

button.ghost-link {
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--muted);
}

input,
textarea,
select {
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fdfcff;
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #b8a9ff;
    box-shadow: 0 0 0 4px rgba(143, 124, 245, .12);
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin: 10px 0 0;
    line-height: 1.6;
}

.manage-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.manage-row select {
    flex: 1;
    min-width: 220px;
}

.add-word-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.add-word-row input {
    flex: 1;
    min-width: 160px;
}

.word-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.word-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #faf8ff;
    border-radius: 14px;
    padding: 8px 12px;
}

.word-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.word-state {
    color: #b79a2a;
    font-size: 13px;
    white-space: nowrap;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.status-grid > div {
    background: #faf8ff;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 13px;
    color: var(--muted);
}

.status-grid > div > span:last-child {
    font-weight: 700;
}

/* ---------- 提示 ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: rgba(47, 39, 73, .9);
    color: #fff;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 999px;
    z-index: 100;
    max-width: 90vw;
    text-align: center;
    animation: toast-in .2s ease;
}

/* ---------- 动画 ---------- */
@keyframes pop-in {
    from {
        transform: scale(.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes star-pop {
    from {
        transform: scale(0) rotate(-30deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 68, 95, .45), 0 16px 32px rgba(244, 95, 146, .35);
    }
    70% {
        box-shadow: 0 0 0 26px rgba(244, 68, 95, 0), 0 16px 32px rgba(244, 95, 146, .35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 68, 95, 0), 0 16px 32px rgba(244, 95, 146, .35);
    }
}

@keyframes confetti-fall {
    to {
        transform: translateY(105vh) rotate(540deg);
        opacity: .9;
    }
}

@keyframes toast-in {
    from {
        transform: translate(-50%, 8px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes node-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes walker-bob {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes current-glow {
    0% {
        box-shadow: 0 12px 24px rgba(143, 124, 245, .28), inset 0 -8px 0 rgba(0, 0, 0, .06), 0 0 0 0 rgba(143, 124, 245, .38);
    }
    70% {
        box-shadow: 0 12px 24px rgba(143, 124, 245, .28), inset 0 -8px 0 rgba(0, 0, 0, .06), 0 0 0 16px rgba(143, 124, 245, 0);
    }
    100% {
        box-shadow: 0 12px 24px rgba(143, 124, 245, .28), inset 0 -8px 0 rgba(0, 0, 0, .06), 0 0 0 0 rgba(143, 124, 245, 0);
    }
}

@keyframes monster-shake {
    0% {
        transform: translate(0, 0) rotate(0);
    }
    20% {
        transform: translate(-8px, 2px) rotate(-7deg);
    }
    40% {
        transform: translate(7px, -3px) rotate(6deg);
    }
    60% {
        transform: translate(-6px, 3px) rotate(-5deg);
    }
    80% {
        transform: translate(5px, -2px) rotate(4deg);
    }
    100% {
        transform: translate(0, 0) rotate(0);
    }
}

@keyframes punch-in {
    0% {
        opacity: 0;
        transform: translate(46px, 34px) scale(.4) rotate(24deg);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-64px, -42px) scale(1.4) rotate(-16deg);
    }
}

@keyframes dizzy-orbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit, 42px)) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(var(--orbit, 42px)) rotate(-360deg);
    }
}

/* ---------- 平板/手机 ---------- */
@media (max-width: 760px) {
    .parent-grid {
        grid-template-columns: 1fr;
    }

    #levelMap {
        --maze-row: 168px;
    }

    .maze-node {
        width: 120px;
        gap: 6px;
    }

    .level-circle {
        width: 84px;
        height: 84px;
        font-size: 30px;
    }

    .monster-badge {
        top: -28px;
        right: 0;
        width: 46px;
        height: 46px;
    }

    .node-monster {
        font-size: 32px;
    }

    .node-plaster {
        font-size: 16px;
    }

    .node-dizzy {
        --orbit: 22px;
        margin: -6px 0 0 -6px;
        font-size: 12px;
    }

    .walker {
        font-size: 26px;
    }

    .maze-deco {
        font-size: 20px;
    }

    .level-label {
        font-size: 14px;
    }

    .level-stars {
        font-size: 13px;
    }

    .battle-title {
        font-size: 14px;
    }

    .monster-wrap {
        width: 160px;
        height: 124px;
    }

    .monster {
        font-size: 78px;
    }

    .monster-plaster {
        right: 12px;
        bottom: 10px;
        font-size: 26px;
    }

    .dizzy-star {
        --orbit: 36px;
        margin: -8px 0 0 -8px;
        font-size: 17px;
    }

    .game-card,
    .celebrate-card {
        padding: 18px;
        border-radius: 24px;
    }

    .mic-btn {
        width: 128px;
        height: 128px;
    }

    .mic-icon {
        font-size: 38px;
    }

    .word {
        font-size: clamp(40px, 12vw, 60px);
    }

    .topbar {
        padding: 14px 14px 4px;
    }

    .container {
        padding: 6px 14px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maze-node,
    .maze-node.current .node-monster,
    .maze-node.current .level-circle,
    .node-dizzy,
    .walker,
    .monster-wrap.hit .monster,
    .monster-wrap.beaten .dizzy-star,
    .punch-fx span {
        animation: none !important;
    }
}
