#game-root {
    --mc-accent: #10B981;
    --mc-accent-dark: #0c8d64;
    --mc-accent-light: #e3f9ef;
    --mc-accent-border: #a7f3d0;
    --mc-glass-bg: rgba(255, 255, 255, .78);
    --mc-glass-border: rgba(255, 255, 255, .55);
    --mc-text: var(--kw-text, #2D2A32);
    --mc-slot: rgba(30, 30, 36, .62);
}

#game-root .kwi-muted { color: #cbd5e1; }

.mc-wrap {
    max-width: 980px;
    margin: 0 auto;
    color: var(--mc-text);
}

.mc-wrap-narrow {
    max-width: 560px;
}

.mc-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* ---- loading / error ---- */

.mc-status {
    text-align: center;
    padding: 48px 16px;
}

.mc-status-icon {
    font-size: 44px;
    margin-bottom: 10px;
    color: #fff;
}

.mc-pulse {
    animation: mc-pulse 1.2s ease-in-out infinite;
}

.mc-status-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.mc-status-error {
    display: inline-block;
    background: #EF4444;
    padding: 6px 16px;
    border-radius: 999px;
    text-shadow: none;
}

/* ---- header / level picker ---- */

.mc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.mc-header-icon {
    display: flex;
    font-size: 32px;
    line-height: 1;
}

.mc-header-icon img {
    display: block;
    height: 38px;
    width: auto;
}

.mc-header-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}

.mc-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mc-level-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mc-glass-border);
    border-radius: var(--kw-radius, 12px);
    background: var(--mc-glass-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: transform .15s ease, box-shadow .15s ease;
    font: inherit;
    color: inherit;
}

.mc-level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
}

.mc-level-thumb {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    font-size: 38px;
    background: linear-gradient(135deg, var(--mc-accent-light), var(--mc-accent-border));
    background-size: 70px 70px;
    background-repeat: no-repeat;
    background-position: center;
}

.mc-level-body {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    text-align: center;
}

.mc-level-name {
    font-size: 17px;
    font-weight: 800;
}

.mc-level-age {
    font-size: 13px;
    color: #6b7280;
}

/* ---- top bar: quest + tools ---- */

.mc-top {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}

.mc-quest {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--kw-radius, 12px);
    background: var(--mc-glass-bg);
    border: 1px solid var(--mc-glass-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.mc-quest-pop {
    animation: mc-pop .5s ease;
}

.mc-quest-icon {
    flex: 0 0 auto;
    display: flex;
}

.mc-quest-img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.mc-quest-body {
    flex: 1 1 auto;
    min-width: 0;
}

.mc-quest-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mc-accent-dark);
}

.mc-quest-text {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.mc-quest-bar {
    margin-top: 5px;
    height: 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .16);
    overflow: hidden;
}

.mc-quest-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--mc-accent);
    border-radius: 999px;
    transition: width .4s ease;
}

.mc-quest-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--mc-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    animation: mc-glow 1.4s ease-in-out infinite;
}

.mc-quest-btn[hidden] {
    display: none;
}

.mc-tools {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.mc-tool-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 56px;
    border: 1px solid var(--mc-glass-border);
    border-radius: var(--kw-radius, 12px);
    background: var(--mc-glass-bg);
    color: var(--mc-text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.mc-tool-btn svg {
    width: 20px;
    height: 20px;
}

.mc-tool-craft {
    background: #8b5a2b;
    border-color: #6e4520;
    color: #fff;
}

.mc-tool-finish.mc-armed {
    background: #f59e0b;
    border-color: #d97706;
    color: #fff;
}

.mc-tool-finish.mc-glow,
.mc-glow {
    background: var(--mc-accent);
    border-color: var(--mc-accent-dark);
    color: #fff;
    animation: mc-glow 1.4s ease-in-out infinite;
}

/* ---- the 3D stage ---- */

.mc-stage {
    position: relative;
    height: min(64vh, 560px);
    min-height: 340px;
    border-radius: var(--kw-radius, 12px);
    overflow: hidden;
    background: #8fd3ff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    border: 3px solid rgba(255, 255, 255, .7);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.kw-play-viewer:fullscreen .mc-stage,
.kw-play-viewer:-webkit-full-screen .mc-stage {
    height: min(72vh, 900px);
}

.mc-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

.mc-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: none;
}

.mc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.mc-chip svg {
    width: 13px;
    height: 13px;
}

.mc-chip img {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
}

.mc-chip-math {
    background: rgba(16, 185, 129, .85);
}

.mc-help {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .45);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.mc-toast {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--mc-text);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    pointer-events: none;
    z-index: 3;
}

.mc-toast-in {
    animation: mc-toast-in .25s ease;
}

.mc-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 3px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: mc-float 1s ease-out forwards;
    z-index: 2;
}

.mc-float img {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}

.mc-float b {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* touch controls (shown on touch screens only) */

.mc-stick,
.mc-jump {
    display: none;
}

.mc-touch .mc-stick {
    display: block;
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 2px solid rgba(255, 255, 255, .55);
    touch-action: none;
    z-index: 2;
}

.mc-stick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.mc-touch .mc-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    bottom: 24px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .28);
    color: #fff;
    touch-action: none;
    cursor: pointer;
    z-index: 2;
}

.mc-touch .mc-jump svg {
    width: 30px;
    height: 30px;
}

.mc-touch .mc-help {
    bottom: auto;
    top: 44px;
}

/* ---- hotbar ---- */

.mc-hotbar {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 6px;
    border-radius: var(--kw-radius, 12px);
    background: var(--mc-slot);
}

.mc-flash {
    animation: mc-pop .5s ease 2;
}

.mc-slot {
    position: relative;
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(0, 0, 0, .25);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-slot img {
    width: 34px;
    height: 34px;
    image-rendering: pixelated;
}

.mc-slot-on {
    border-color: #fff;
    background: rgba(16, 185, 129, .55);
    box-shadow: 0 0 0 2px var(--mc-accent);
}

.mc-slot-key {
    position: absolute;
    top: 1px;
    left: 4px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, .7);
}

.mc-treasure {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 0 12px;
    margin-left: 4px;
    border-left: 2px solid rgba(255, 255, 255, .2);
}

.mc-treasure-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 1px 1px 0 #000;
}

.mc-treasure-item img {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
}

.mc-slot-count {
    position: absolute;
    right: 3px;
    bottom: 0;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

/* ---- modal cards ---- */

.mc-modal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(17, 24, 39, .45);
    z-index: 5;
}

.mc-modal[hidden] {
    display: none;
}

.mc-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    overflow: auto;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    animation: mc-card-in .25s ease;
}

.mc-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 900;
    margin: 0 30px 12px 0;
}

.mc-card-title svg {
    width: 20px;
    height: 20px;
}

.mc-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-card-close svg {
    width: 16px;
    height: 16px;
}

.mc-item-icon {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    vertical-align: middle;
}

/* question */

.mc-card-question {
    border-top: 6px solid var(--mc-q, var(--mc-accent));
    text-align: center;
}

.mc-q-head {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 10px;
}

.mc-q-icon {
    width: 44px;
    height: 44px;
    image-rendering: pixelated;
    animation: mc-bob 1.6s ease-in-out infinite;
}

.mc-q-head > div {
    flex: 1 1 auto;
}

.mc-q-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--mc-q, var(--mc-accent));
}

.mc-q-sub {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.mc-q-prompt {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mc-q-picture {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 6px auto 8px;
    max-width: 400px;
}

.mc-q-picture[hidden] {
    display: none;
}

.mc-pic {
    font-size: 30px;
    line-height: 1.1;
}

.mc-pic-away {
    position: relative;
    opacity: .4;
}

.mc-pic-away::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 3px;
    background: #ef4444;
    transform: rotate(-35deg);
    border-radius: 2px;
}

.mc-pic-plus {
    font-size: 26px;
    font-weight: 900;
    color: var(--mc-accent-dark);
    margin: 0 4px;
}

.mc-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.mc-grid-flat {
    transform: perspective(420px) rotateX(38deg);
    margin: -6px 0;
}

.mc-grid-row {
    display: flex;
    gap: 2px;
}

.mc-grid-cell {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.mc-grid-empty {
    display: inline-block;
    border-radius: 4px;
    background: #bbf7d0;
}

.mc-q-expr {
    font-size: 30px;
    font-weight: 900;
    margin: 4px 0 10px;
    letter-spacing: .02em;
}

.mc-q-expr[hidden] {
    display: none;
}

.mc-answers {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.mc-answers-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mc-answers-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mc-answer {
    position: relative;
    border: 0;
    border-radius: 12px;
    padding: 14px 6px;
    background: #f3f4f6;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    color: var(--mc-text);
    cursor: pointer;
    transition: transform .1s ease, background .15s ease;
}

.mc-answer:hover:not(:disabled) {
    background: var(--mc-accent-light);
    transform: translateY(-2px);
}

.mc-answer:disabled {
    cursor: default;
}

.mc-answer-key {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 11px;
    color: #9ca3af;
}

.mc-answer.mc-correct {
    background: var(--mc-accent);
    color: #fff;
}

.mc-answer.mc-wrong {
    background: #ef4444;
    color: #fff;
    animation: mc-shake .4s ease;
}

.mc-q-feedback {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
}

.mc-q-feedback[hidden] {
    display: none;
}

.mc-q-right {
    color: var(--mc-accent-dark);
}

.mc-q-wrong {
    color: #b91c1c;
}

/* craft */

.mc-card-craft {
    max-width: 560px;
    display: flex;
    flex-direction: column;
}

.mc-bag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    margin-bottom: 10px;
}

.mc-bag-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 900;
}

.mc-bag-empty {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.mc-recipes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
    min-height: 0;
}

.mc-recipe {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.mc-recipe-goal {
    border-color: var(--mc-accent);
    background: var(--mc-accent-light);
}

.mc-recipe-made {
    animation: mc-pop .4s ease;
}

.mc-recipe-ins {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.mc-ing {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 14px;
    font-weight: 900;
}

.mc-ing-short b {
    color: #dc2626;
}

.mc-plus,
.mc-arrow {
    font-weight: 900;
    color: #9ca3af;
}

.mc-recipe-out {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 900;
}

.mc-recipe-name {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    margin-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-craft-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--mc-accent);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.mc-craft-btn:disabled {
    background: #d1d5db;
    cursor: default;
}

/* menu / intro */

.mc-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-menu-note {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
}

.mc-intro {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-intro li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.mc-intro li > span,
.mc-intro li > img {
    flex: 0 0 28px;
    font-size: 24px;
    text-align: center;
}

.mc-intro-quest {
    font-size: 15px;
    font-weight: 800;
    color: var(--mc-accent-dark);
    margin: 4px 0 12px;
}

.mc-btn-primary,
.mc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.mc-btn-primary svg,
.mc-btn-secondary svg {
    width: 16px;
    height: 16px;
}

.mc-btn-primary {
    border: 0;
    background: var(--mc-accent);
    color: #fff;
    box-shadow: 0 3px 0 var(--mc-accent-dark);
}

.mc-btn-secondary {
    border: 2px solid var(--mc-accent-border);
    background: #fff;
    color: var(--mc-accent-dark);
}

.mc-card .mc-btn-primary {
    width: 100%;
}

/* ---- result ---- */

.mc-done-card {
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    background: var(--mc-glass-bg);
    border: 1px solid var(--mc-glass-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    margin-bottom: 14px;
}

.mc-done-shot {
    display: block;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 3px solid #fff;
}

.mc-done-title {
    font-size: 24px;
    font-weight: 900;
}

.mc-done-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 6px 0;
    color: #f59e0b;
}

.mc-star svg {
    width: 28px;
    height: 28px;
}

.mc-done-score {
    font-size: 17px;
    font-weight: 700;
}

.mc-done-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.mc-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mc-accent-light);
    color: var(--mc-accent-dark);
    font-size: 14px;
    font-weight: 800;
}

.mc-stat svg {
    width: 14px;
    height: 14px;
}

.mc-practice {
    text-align: left;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff7ed;
    margin-bottom: 12px;
}

.mc-practice-title {
    font-weight: 900;
    color: #c2410c;
    margin-bottom: 4px;
}

.mc-practice ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 600;
}

.mc-done-share {
    justify-content: center;
}

.mc-done-actions {
    margin-bottom: 4px;
}

/* ---- animations ---- */

@keyframes mc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes mc-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes mc-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
    50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

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

@keyframes mc-float {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -160%); }
}

@keyframes mc-card-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes mc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

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

/* ---- phones ---- */

@media (max-width: 640px) {
    .mc-top {
        flex-direction: column;
    }

    .mc-tools {
        justify-content: stretch;
    }

    .mc-tool-btn {
        flex: 1 1 0;
        flex-direction: row;
        gap: 6px;
        font-size: 13px;
    }

    .mc-tool-btn[data-el="menu"] {
        flex: 0 0 52px;
    }

    .mc-stage {
        height: 58vh;
        min-height: 320px;
    }

    .mc-quest-text {
        font-size: 14px;
    }

    .mc-slot {
        width: 44px;
        height: 44px;
    }

    .mc-slot img {
        width: 28px;
        height: 28px;
    }

    .mc-answers-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-answer {
        font-size: 22px;
        padding: 12px 6px;
    }

    .mc-q-prompt {
        font-size: 16px;
    }

    .mc-pic {
        font-size: 26px;
    }

    .mc-grid-cell {
        width: 26px;
        height: 26px;
    }

    .mc-card {
        padding: 14px;
    }

    .mc-recipe-name {
        display: none;
    }

    .mc-levels {
        gap: 10px;
    }

    .mc-help {
        font-size: 11px;
    }
}
