:root {
    --green: #2d6336;
    --green-dark: #183d20;
    --orange: #ff6b2b;
    --cream: #fff8eb;
    --cream-deep: #f2e6d2;
    --ink: #18251b;
    --muted: #716d61;
    --line: rgba(86, 63, 38, .15);
    --shadow: 0 22px 60px rgba(54, 39, 19, .16);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 185, 98, .24), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(45, 99, 54, .17), transparent 24%),
        linear-gradient(135deg, #fffaf0, #f6ead7);
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

button {
    font: inherit;
}

.game-app {
    position: relative;
    min-height: 660px;
    min-height: 100svh;
    height: 100svh;
    isolation: isolate;
}

.game-app::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .36)),
        repeating-linear-gradient(45deg, rgba(45, 99, 54, .05) 0 1px, transparent 1px 18px);
    box-shadow: inset 0 0 0 1px rgba(83, 61, 38, .05);
}

.screen {
    display: none;
    min-height: 100%;
    padding: clamp(12px, 2.5vw, 24px);
}

.screen.is-active {
    display: grid;
}

.screen--start,
.screen--memorize,
.screen--result {
    place-items: center;
}

.start-card,
.memorize-card,
.result-card {
    width: min(640px, 100%);
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 253, 246, .9);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(18px);
}

.memorize-card {
    width: min(700px, 100%);
}

.screen-recipe-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 18px auto 4px;
    border: 1px solid rgba(45, 99, 54, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .9), transparent 42%),
        linear-gradient(145deg, #eff8ea, #fff9ee);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .78),
        0 18px 36px rgba(54, 39, 19, .1);
}

.screen-recipe-mark .food-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef7e9;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 16px 0 12px;
    color: #142218;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.04em;
    line-height: 1;
}

h1 {
    font-size: clamp(46px, 8vw, 84px);
}

h2 {
    font-size: clamp(34px, 6vw, 62px);
}

p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
}

.recipe-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 28px;
}

.recipe-preview--large span {
    padding: 13px 16px;
    font-size: 18px;
}

.recipe-preview span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
}

.recipe-picker {
    display: grid;
    gap: 12px;
    margin: 24px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
}

.picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--green-dark);
    font-weight: 900;
}

.ghost-button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(45, 99, 54, .18);
    border-radius: 999px;
    color: var(--green);
    background: #f4faef;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.recipe-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.recipe-option {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 10px 8px;
    border: 1px solid rgba(86, 63, 38, .13);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.recipe-option small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.recipe-option.is-selected {
    border-color: rgba(45, 99, 54, .42);
    color: var(--green-dark);
    background: #eef7e9;
    box-shadow: inset 0 0 0 1px rgba(45, 99, 54, .12);
}

.selected-recipe {
    display: inline-grid;
    gap: 3px;
    margin-top: 4px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.selected-recipe span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.selected-recipe strong {
    color: var(--green-dark);
}

.game-links {
    display: inline-grid;
    gap: 3px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid rgba(45, 99, 54, .12);
    border-radius: 18px;
    color: var(--green-dark);
    background: rgba(238, 247, 233, .68);
}

.game-links span {
    font-size: 13px;
    font-weight: 900;
}

.game-links small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.game-app.has-recipe-param .recipe-picker {
    display: none;
}

.countdown {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 92px;
    height: 92px;
    margin-top: 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 18px 34px rgba(45, 99, 54, .22);
}

.countdown span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.countdown strong {
    font-size: 36px;
    line-height: 1;
}

.memorize-footer {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.goal-note {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 112px;
    height: 76px;
    padding: 10px 14px;
    border: 1px solid rgba(45, 99, 54, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 28px rgba(54, 39, 19, .08);
}

.goal-note span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.goal-note strong {
    color: var(--green-dark);
    font-size: 28px;
    line-height: 1;
}

.primary-button {
    min-width: 172px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #f04f1c);
    box-shadow: 0 14px 28px rgba(255, 107, 43, .24);
    cursor: pointer;
    font-weight: 900;
}

.primary-button:focus-visible {
    outline: 4px solid rgba(45, 99, 54, .22);
    outline-offset: 4px;
}

.screen--play {
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
}

.game-brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(45, 99, 54, .12);
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 22px rgba(54, 39, 19, .06);
}

.game-brand span {
    font-size: 13px;
    font-weight: 950;
}

.game-brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.hud,
.target-strip,
.time-track {
    width: min(1000px, 100%);
    margin: 0 auto;
}

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

.hud div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 24px rgba(54, 39, 19, .08);
}

.hud span,
.result-score span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hud strong {
    display: block;
    margin-top: 4px;
    color: var(--green-dark);
    font-size: clamp(18px, 3vw, 26px);
    line-height: 1;
}

.time-track {
    overflow: hidden;
    height: 10px;
    border: 1px solid rgba(70, 52, 30, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 2px 5px rgba(54, 39, 19, .06);
}

.time-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), #7fa86c 68%, var(--orange));
    transition: width .25s linear;
}

.target-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
}

.target-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.target-strip b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--green-dark);
    background: #eef7e9;
    font-size: 13px;
}

.food-icon {
    --icon-bg: #fff8ed;
    --icon-line: #8a6e43;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 9px;
    background: var(--icon-bg);
    box-shadow: inset 0 0 0 1px rgba(91, 68, 38, .1);
    vertical-align: middle;
}

.food-icon svg {
    width: 84%;
    height: 84%;
    overflow: visible;
}

.food-icon path,
.food-icon circle {
    fill: none;
    stroke: var(--icon-line);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.food-icon .red,
.food-icon--tomato,
.food-icon--sauce,
.food-icon--paste {
    --icon-bg: #fff1e8;
    --icon-line: #d94d24;
}

.food-icon .red {
    fill: #f46134;
    stroke: #d94d24;
}

.food-icon .green,
.food-icon--pepper,
.food-icon--parsley,
.food-icon--mint {
    --icon-bg: #eef8ea;
    --icon-line: #2d6336;
}

.food-icon .green,
.food-icon .leaf {
    fill: #5f9b45;
    stroke: #2d6336;
}

.food-icon .yellow,
.food-icon--banana,
.food-icon--cheese,
.food-icon--sugar {
    --icon-bg: #fff7dc;
    --icon-line: #b77b17;
}

.food-icon .yellow {
    fill: #f4b437;
    stroke: #b77b17;
}

.food-icon .blue,
.food-icon--fish,
.food-icon--water,
.food-icon--milk {
    --icon-bg: #edf7fb;
    --icon-line: #377694;
}

.food-icon .blue {
    fill: #75bad6;
    stroke: #377694;
}

.food-icon .blue-dark {
    fill: #377694;
    stroke: #28627d;
}

.food-icon .cream,
.food-icon--egg,
.food-icon--yogurt,
.food-icon--rice,
.food-icon--flour,
.food-icon--salt {
    --icon-bg: #fffaf0;
    --icon-line: #8a6e43;
}

.food-icon .cream,
.food-icon .light,
.food-icon .sack,
.food-icon .jar {
    fill: #fff9ea;
    stroke: #8a6e43;
}

.food-icon .brown,
.food-icon--chocolate,
.food-icon--cocoa {
    --icon-bg: #f7eee5;
    --icon-line: #6d412b;
}

.food-icon .brown {
    fill: #7b4a32;
    stroke: #5b3423;
}

.food-icon .tan,
.food-icon--potato,
.food-icon--bulgur,
.food-icon--lentil {
    --icon-bg: #fff3df;
    --icon-line: #9a6a2c;
}

.food-icon .tan,
.food-icon .orange,
.food-icon .grain {
    fill: #d9903d;
    stroke: #9a6a2c;
}

.food-icon .purple,
.food-icon--onion {
    --icon-bg: #f7eef9;
    --icon-line: #7b4a87;
}

.food-icon .purple {
    fill: #c998cf;
    stroke: #7b4a87;
}

.food-icon .pink,
.food-icon--icecream {
    --icon-bg: #fff0ee;
    --icon-line: #b85b52;
}

.food-icon .pink {
    fill: #f4aaa0;
    stroke: #b85b52;
}

.food-icon .cone {
    fill: #e6b772;
    stroke: #9a6a2c;
}

.food-icon .cap,
.food-icon .cube,
.food-icon .cube-top,
.food-icon .cube-side,
.food-icon .bowl {
    fill: #fffdf7;
}

.food-icon .hole {
    fill: #fff7dc;
    stroke: #b77b17;
}

.food-icon .shine,
.food-icon .line,
.food-icon .dot,
.food-icon .specks,
.food-icon .grain-line,
.food-icon .brown-stroke,
.food-icon .pasta {
    fill: none;
}

.food-icon .dot-fill {
    fill: #14333f;
    stroke: none;
}

.stage {
    position: relative;
    overflow: hidden;
    width: min(1000px, 100%);
    min-height: min(480px, 58vh);
    margin: 0 auto;
    border: 1px solid rgba(86, 63, 38, .18);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 248, 235, .92)),
        radial-gradient(circle at 20% 20%, rgba(255, 107, 43, .16), transparent 28%),
        radial-gradient(circle at 80% 34%, rgba(45, 99, 54, .14), transparent 30%);
    box-shadow: var(--shadow);
    touch-action: none;
    user-select: none;
}

.stage.is-faster {
    box-shadow:
        var(--shadow),
        inset 0 0 0 2px rgba(255, 107, 43, .08);
}

.stage.is-faster .stage-note {
    color: #7a3a1c;
    background: rgba(255, 244, 235, .82);
}

.stage::before {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    box-shadow:
        -78px -26px 0 rgba(255, 255, 255, .25),
        -150px 20px 0 rgba(255, 255, 255, .22);
}

.stage-note {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 1;
    translate: -50% 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(24, 37, 27, .72);
    background: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 800;
}

.ingredient {
    position: absolute;
    z-index: 2;
    top: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(86, 63, 38, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 28px rgba(54, 39, 19, .14);
    will-change: transform;
}

.ingredient > span {
    display: grid;
    place-items: center;
    line-height: 1;
}

.ingredient .food-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    box-shadow:
        inset 0 0 0 1px rgba(91, 68, 38, .1),
        0 8px 16px rgba(54, 39, 19, .09);
}

.ingredient small {
    max-width: 92%;
    overflow: hidden;
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingredient.is-wrong {
    background: rgba(255, 246, 243, .94);
}

.basket {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    display: block;
    width: clamp(92px, 14vw, 132px);
    height: clamp(70px, 10vw, 92px);
    translate: -50% 0;
    filter: drop-shadow(0 18px 18px rgba(48, 35, 18, .2));
}

.basket__handle,
.basket__body,
.basket__rim,
.basket__weave {
    position: absolute;
    pointer-events: none;
}

.basket__handle {
    left: 18%;
    right: 18%;
    top: 1px;
    height: 48%;
    border: clamp(5px, .9vw, 8px) solid rgba(105, 77, 38, .62);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent);
}

.basket__body {
    left: 7%;
    right: 7%;
    bottom: 0;
    height: 68%;
    overflow: hidden;
    border: 3px solid rgba(105, 77, 38, .48);
    border-radius: 22px 22px 34px 34px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #ffe3a9, #d99a50 74%, #b87538);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, .28),
        inset 0 -10px 18px rgba(95, 58, 22, .18);
}

.basket__body::before,
.basket__body::after {
    content: "";
    position: absolute;
    inset: 12px 8px auto;
    height: 2px;
    border-radius: 999px;
    background: rgba(117, 77, 36, .28);
    box-shadow:
        0 13px 0 rgba(117, 77, 36, .25),
        0 26px 0 rgba(117, 77, 36, .2);
}

.basket__body::after {
    inset: 8px auto 0 18%;
    width: 2px;
    height: auto;
    background: rgba(117, 77, 36, .22);
    box-shadow:
        22px 0 0 rgba(117, 77, 36, .18),
        44px 0 0 rgba(117, 77, 36, .18),
        66px 0 0 rgba(117, 77, 36, .16);
}

.basket__weave {
    inset: 5px 7px;
    border-radius: 18px 18px 28px 28px;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .32), transparent 16%),
        linear-gradient(135deg, transparent 45%, rgba(106, 67, 28, .18) 46% 50%, transparent 51%),
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, .18) 46% 50%, transparent 51%);
    background-size: auto, 22px 22px, 22px 22px;
    opacity: .9;
}

.basket__rim {
    left: 2%;
    right: 2%;
    bottom: 52%;
    height: 17px;
    border: 2px solid rgba(105, 77, 38, .46);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff3cb, #c7853f);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .45),
        0 9px 14px rgba(70, 45, 20, .13);
}

.feedback {
    position: absolute;
    top: 64px;
    left: 50%;
    z-index: 6;
    translate: -50% -8px;
    opacity: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(54, 39, 19, .14);
    font-weight: 900;
    transition: opacity .18s ease, translate .18s ease;
}

.feedback.is-visible {
    translate: -50% 0;
    opacity: 1;
}

.feedback.is-good {
    color: var(--green);
}

.feedback.is-bad {
    color: #c83b1d;
}

.result-score {
    display: inline-grid;
    gap: 4px;
    min-width: 180px;
    margin: 24px 0;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.result-score strong {
    color: var(--orange);
    font-size: 42px;
    line-height: 1;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 0;
}

.result-summary span {
    padding: 8px 12px;
    border: 1px solid rgba(70, 52, 30, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 14px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(45, 99, 54, .18);
    border-radius: 999px;
    color: var(--green-dark);
    background: linear-gradient(180deg, #fff, #f4faef);
    box-shadow: 0 12px 24px rgba(54, 39, 19, .08);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.share-status {
    min-height: 22px;
    margin: 0 auto 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.scoreboard-card {
    display: grid;
    gap: 12px;
    width: min(520px, 100%);
    margin: 2px auto 18px;
    padding: 14px;
    border: 1px solid rgba(70, 52, 30, .12);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 247, 235, .78));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .64),
        0 18px 40px rgba(54, 39, 19, .09);
    text-align: left;
}

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

.scoreboard-head span {
    display: block;
    color: var(--orange);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scoreboard-head strong {
    display: block;
    margin-top: 3px;
    color: var(--green-dark);
    font-size: 16px;
    line-height: 1.2;
}

.scoreboard-refresh {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(45, 99, 54, .16);
    border-radius: 999px;
    color: var(--green);
    background: #f3faef;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.score-list {
    display: grid;
    gap: 7px;
    max-height: 214px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    scrollbar-width: thin;
}

.score-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas:
        "rank player score"
        "rank meta score";
    align-items: center;
    gap: 1px 10px;
    min-height: 52px;
    padding: 9px 11px;
    border: 1px solid rgba(70, 52, 30, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .74);
}

.score-rank {
    grid-area: rank;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #75995b);
    font-size: 13px;
    font-weight: 950;
}

.score-player {
    grid-area: player;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-list strong {
    grid-area: score;
    color: var(--orange);
    font-size: 20px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.score-list small {
    grid-area: meta;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.score-list__empty {
    display: block !important;
    min-height: auto !important;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.score-save {
    display: grid;
    gap: 8px;
    width: min(500px, 100%);
    margin: 0 auto 14px;
    padding: 13px;
    border: 1px solid rgba(70, 52, 30, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .68);
}

.score-save label {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 950;
    text-align: left;
}

.score-save div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.score-save input {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(70, 52, 30, .14);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 800;
}

.score-save button {
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    cursor: pointer;
    font-weight: 950;
}

.score-save button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.score-save p {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.score-save.is-saved {
    border-color: rgba(45, 99, 54, .24);
    background: rgba(238, 247, 233, .72);
}

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

    .game-app {
        min-height: 600px;
        height: auto;
    }

    .screen {
        padding: 12px;
    }

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

    .hud div {
        padding: 10px 11px;
        border-radius: 16px;
    }

    .target-strip {
        border-radius: 20px;
    }

    .game-brand {
        padding: 6px 10px;
    }

    .result-actions {
        display: grid;
    }

    .picker-head {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-option {
        min-height: 58px;
    }

    .recipe-preview {
        margin: 16px 0 20px;
    }

    .recipe-preview--large span {
        font-size: 15px;
    }

    .screen-recipe-mark {
        width: 66px;
        height: 66px;
        margin-top: 12px;
        border-radius: 22px;
    }

    .screen-recipe-mark .food-icon {
        width: 44px;
        height: 44px;
        border-radius: 17px;
    }

    .memorize-footer {
        grid-template-columns: 1fr;
        width: min(230px, 100%);
    }

    .countdown {
        width: 78px;
        height: 78px;
        justify-self: center;
    }

    .goal-note {
        width: 100%;
        min-width: 0;
        height: 62px;
    }

    .result-summary {
        margin-top: 14px;
    }

    .stage {
        min-height: min(390px, 52svh);
        border-radius: 24px;
    }

    .basket {
        bottom: 14px;
        width: 76px;
        height: 58px;
    }

    .stage-note {
        top: 12px;
        width: calc(100% - 28px);
        text-align: center;
        white-space: normal;
    }

    .ingredient small {
        display: none;
    }

    .start-card,
    .result-card {
        border-radius: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Premium visual layer for Tarif Ustasi. Kept at the end to override browser defaults safely. */
button,
.recipe-option,
.ghost-button,
.primary-button {
    appearance: none;
    border: 0;
    font: inherit;
}

body {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 183, 94, .35), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(47, 102, 56, .24), transparent 26%),
        linear-gradient(135deg, #fff8eb 0%, #f3e4cc 52%, #fff7ec 100%);
    font-family: "Aptos", "Segoe UI", Verdana, sans-serif;
}

.game-app::before {
    inset: 18px;
    border-color: rgba(91, 68, 38, .14);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(250, 241, 225, .64)),
        repeating-linear-gradient(45deg, rgba(45, 99, 54, .045) 0 1px, transparent 1px 18px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .78),
        0 28px 90px rgba(72, 52, 28, .14);
}

.start-card,
.memorize-card,
.result-card {
    position: relative;
    overflow: hidden;
    width: min(760px, 100%);
    border-color: rgba(84, 61, 34, .13);
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 253, 247, .97), rgba(255, 248, 236, .92));
    box-shadow: 0 34px 100px rgba(48, 36, 20, .18);
}

.start-card::before,
.memorize-card::before,
.result-card::before {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 30px;
    pointer-events: none;
}

.pill {
    background: linear-gradient(135deg, #edf8e8, #dcefd6);
    box-shadow: inset 0 0 0 1px rgba(45, 99, 54, .06);
}

h1 {
    font-size: clamp(46px, 7vw, 78px);
}

p {
    font-size: clamp(14px, 1.8vw, 17px);
}

.recipe-picker {
    width: min(620px, 100%);
    margin-inline: auto;
    padding: 16px;
    border-color: rgba(47, 102, 56, .14);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(246, 239, 225, .68));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .72),
        0 18px 44px rgba(61, 45, 24, .08);
}

.picker-head {
    padding: 0 2px;
}

.ghost-button {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(45, 99, 54, .2);
    border-radius: 999px;
    color: #275a30;
    background: linear-gradient(180deg, #fbfff8, #eaf5e4);
    box-shadow: 0 10px 22px rgba(45, 99, 54, .08);
}

.recipe-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.recipe-option {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 86px;
    padding: 13px 9px;
    border: 1px solid rgba(86, 63, 38, .12);
    border-radius: 22px;
    color: #18251b;
    background: linear-gradient(180deg, #fffefb, #fff5e5);
    box-shadow: 0 14px 30px rgba(64, 45, 20, .09);
    cursor: pointer;
    line-height: 1.14;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.recipe-option::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4ddaf, #fff8e9);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .75);
}

.recipe-option:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 99, 54, .28);
    box-shadow: 0 18px 36px rgba(64, 45, 20, .13);
}

.recipe-option.is-selected {
    border-color: rgba(45, 99, 54, .48);
    background: linear-gradient(180deg, #eff8ea, #fffdf6);
    box-shadow:
        inset 0 0 0 1px rgba(45, 99, 54, .13),
        0 20px 38px rgba(45, 99, 54, .14);
}

.recipe-option.is-selected::before {
    background: linear-gradient(135deg, #2d6336, #7aa863);
}

.recipe-option span {
    display: block;
    font-weight: 950;
}

.recipe-option small {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(45, 99, 54, .08);
    color: #62705d;
}

.selected-recipe {
    border: 1px solid rgba(70, 52, 30, .1);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 24px rgba(64, 45, 20, .07);
}

.recipe-preview span {
    border-color: rgba(70, 52, 30, .13);
    background: linear-gradient(180deg, #fff, #fff7ea);
    box-shadow: 0 9px 20px rgba(50, 38, 21, .07);
    font-weight: 950;
}

.primary-button {
    min-height: 56px;
    padding: 0 26px;
    box-shadow: 0 18px 38px rgba(255, 99, 48, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(255, 99, 48, .32);
}

.hud div,
.target-strip,
.time-track,
.stage {
    border-color: rgba(70, 52, 30, .13);
}

.stage {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 248, 235, .95)),
        radial-gradient(circle at 18% 18%, rgba(255, 99, 48, .16), transparent 28%),
        radial-gradient(circle at 82% 36%, rgba(45, 99, 54, .14), transparent 30%);
}

@media (max-width: 720px) {
    .start-card,
    .memorize-card,
    .result-card {
        border-radius: 28px;
        padding: 22px 14px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .recipe-picker {
        padding: 12px;
        border-radius: 22px;
    }

    .recipe-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .recipe-option {
        min-height: 66px;
        border-radius: 18px;
        padding: 10px 8px;
    }

    .recipe-option::before {
        width: 14px;
        height: 14px;
    }
}

/* Game-feel polish: readable HUD, clear catch feedback and lightweight effects. */
.hud div {
    position: relative;
    overflow: hidden;
    min-height: 74px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 248, 236, .82));
}

.hud div::after {
    content: "";
    position: absolute;
    inset: auto 12px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, rgba(45, 99, 54, .55), rgba(255, 99, 48, .5));
}

.hud strong {
    font-variant-numeric: tabular-nums;
}

.target-strip {
    box-shadow: 0 12px 26px rgba(54, 39, 19, .07);
}

.time-track {
    position: relative;
    height: 11px;
    margin-top: -2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 246, 232, .7));
    box-shadow:
        inset 0 2px 6px rgba(54, 39, 19, .07),
        0 10px 22px rgba(54, 39, 19, .06);
}

.time-track::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
    pointer-events: none;
}

.time-track span {
    box-shadow: 0 0 18px rgba(45, 99, 54, .2);
}

.target-strip b {
    box-shadow: inset 0 0 0 1px rgba(45, 99, 54, .08);
}

.ingredient {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 247, 235, .9));
    box-shadow:
        0 16px 30px rgba(54, 39, 19, .15),
        inset 0 0 0 1px rgba(255, 255, 255, .58);
}

.ingredient::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 16px;
    border: 1px solid rgba(45, 99, 54, .07);
    pointer-events: none;
}

.ingredient > span {
    filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .88));
}

.ingredient.is-wrong {
    background:
        linear-gradient(180deg, rgba(255, 251, 247, .96), rgba(255, 240, 232, .9));
}

.basket {
    filter:
        drop-shadow(0 20px 18px rgba(48, 35, 18, .22))
        drop-shadow(0 0 0 rgba(45, 99, 54, 0));
    transition: filter .18s ease, translate .18s ease;
}

.basket::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: -8px;
    height: 9px;
    border-radius: 999px;
    background: rgba(60, 42, 22, .14);
    filter: blur(4px);
}

.basket.is-good-catch {
    animation: basketGood .34s ease;
    filter:
        drop-shadow(0 20px 18px rgba(48, 35, 18, .2))
        drop-shadow(0 0 18px rgba(45, 99, 54, .28));
}

.basket.is-bad-catch {
    animation: basketBad .32s ease;
    filter:
        drop-shadow(0 20px 18px rgba(48, 35, 18, .2))
        drop-shadow(0 0 18px rgba(216, 61, 31, .24));
}

.hit-burst {
    position: absolute;
    z-index: 8;
    translate: -50% -50%;
    min-width: 44px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
    font-weight: 950;
    pointer-events: none;
    animation: hitBurst .62s ease forwards;
}

.hit-burst--good {
    color: #1f6a31;
    background: #eff9e9;
    box-shadow: 0 12px 26px rgba(45, 99, 54, .18);
}

.hit-burst--bad {
    color: #b9361c;
    background: #fff0e9;
    box-shadow: 0 12px 26px rgba(185, 54, 28, .16);
}

[data-lives].is-life-alert {
    color: #d83d1f;
    animation: lifeAlert .42s ease;
}

.result-card.is-success {
    background:
        radial-gradient(circle at 50% 0, rgba(238, 247, 233, .9), transparent 34%),
        linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(255, 248, 236, .94));
}

.result-card.is-fail {
    background:
        radial-gradient(circle at 50% 0, rgba(255, 232, 218, .62), transparent 34%),
        linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(255, 248, 236, .94));
}

.memorize-card {
    width: min(760px, 100%);
}

.screen-recipe-mark--result {
    margin-top: 16px;
}

.result-card.is-success .screen-recipe-mark {
    border-color: rgba(45, 99, 54, .2);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .9), transparent 42%),
        linear-gradient(145deg, #e7f6df, #fff9ee);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .8),
        0 20px 44px rgba(45, 99, 54, .16);
}

.result-card.is-fail .screen-recipe-mark {
    border-color: rgba(255, 107, 43, .22);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .9), transparent 42%),
        linear-gradient(145deg, #fff0e8, #fff9ee);
}

.memorize-footer {
    padding: 7px;
    border: 1px solid rgba(70, 52, 30, .09);
    border-radius: 30px;
    background: rgba(255, 255, 255, .5);
}

.goal-note {
    min-width: 124px;
}

.result-summary {
    max-width: 520px;
}

.result-spark {
    position: absolute;
    top: 28px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ffb23e;
    box-shadow: 0 0 0 6px rgba(255, 178, 62, .14);
    pointer-events: none;
    animation: resultSpark 1.05s ease forwards;
}

.sound-toggle {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(45, 99, 54, .16);
    border-radius: 999px;
    color: #275a30;
    background: linear-gradient(180deg, #fff, #edf7e8);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.sound-toggle--compact {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
}

@keyframes basketGood {
    0% { transform: scale(1); }
    45% { transform: scale(1.08) translateY(-3px); }
    100% { transform: scale(1); }
}

@keyframes basketBad {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

@keyframes hitBurst {
    0% { opacity: 0; transform: translateY(8px) scale(.86); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-34px) scale(1.08); }
}

@keyframes lifeAlert {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.22); }
    70% { transform: scale(.96); }
}

@keyframes resultSpark {
    0% { opacity: 0; transform: translateY(16px) scale(.6); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(86px) scale(1.1); }
}

@media (max-width: 720px) {
    .screen--play {
        gap: 8px;
    }

    .screen--play {
        padding: 10px;
    }

    .sound-toggle {
        min-height: 40px;
        padding-inline: 14px;
    }

    .sound-toggle--compact {
        min-height: 34px;
    }

    .hud div {
        min-height: 62px;
    }

    .time-track {
        height: 9px;
    }

    .target-strip {
        max-height: 82px;
        overflow: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .target-strip::-webkit-scrollbar {
        display: none;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    body {
        overflow: auto;
    }

    .game-app {
        height: auto;
        min-height: 520px;
    }

    .screen {
        padding: 10px;
    }

    .start-card,
    .memorize-card,
    .result-card {
        padding: 18px 14px;
    }

    h1 {
        margin-block: 10px 8px;
        font-size: clamp(34px, 8vw, 52px);
    }

    .recipe-picker {
        margin-block: 12px 10px;
    }

    .recipe-preview {
        margin-block: 12px 14px;
    }

    .stage {
        min-height: 280px;
    }

    .hud div {
        min-height: 58px;
        padding-block: 9px;
    }
}

/* Start screen redesign: compact, warmer and less form-like. */
.screen--start {
    place-items: center;
    padding: clamp(16px, 2.6vw, 30px);
}

.screen--start .start-card {
    width: min(1080px, 100%);
    min-height: min(610px, calc(100svh - 58px));
    display: grid;
    grid-template-columns: minmax(280px, .86fr) minmax(420px, 1.14fr);
    grid-template-areas:
        "intro picker"
        "title picker"
        "text picker"
        "steps picker"
        "selected scoreboard"
        "links scoreboard"
        "button preview";
    gap: 18px 34px;
    align-items: center;
    padding: clamp(28px, 4vw, 54px);
    text-align: left;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 107, 43, .13), transparent 24%),
        radial-gradient(circle at 88% 22%, rgba(45, 99, 54, .12), transparent 25%),
        linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(255, 248, 236, .95));
}

.screen--start .start-card::after {
    content: "";
    position: absolute;
    left: clamp(24px, 5vw, 60px);
    bottom: clamp(22px, 4vw, 48px);
    width: min(330px, 36%);
    height: 132px;
    z-index: 0;
    border-radius: 38px;
    background:
        radial-gradient(circle at 18% 48%, rgba(255, 107, 43, .22), 0 18px, transparent 19px),
        radial-gradient(circle at 48% 40%, rgba(45, 99, 54, .18), 0 28px, transparent 29px),
        radial-gradient(circle at 76% 56%, rgba(183, 123, 23, .18), 0 23px, transparent 24px);
    opacity: .85;
}

.screen--start .start-card > * {
    position: relative;
    z-index: 1;
}

.screen--start .pill {
    grid-area: intro;
    justify-self: start;
}

.screen--start h1 {
    grid-area: title;
    max-width: 430px;
    margin: 0;
    font-size: clamp(54px, 6.8vw, 92px);
    letter-spacing: -.065em;
}

.screen--start p {
    grid-area: text;
    max-width: 420px;
    margin: 0;
    color: #676457;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.72;
}

.how-to-play {
    grid-area: steps;
    display: grid;
    gap: 9px;
    max-width: 390px;
}

.how-to-play span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(45, 99, 54, .12);
    border-radius: 15px;
    background: rgba(255, 255, 255, .68);
    color: #314436;
    box-shadow: 0 10px 22px rgba(54, 39, 19, .06);
    font-size: 14px;
    font-weight: 850;
}

.how-to-play b {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #6f9659);
    font-size: 12px;
}

.screen--start .recipe-picker {
    grid-area: picker;
    width: 100%;
    margin: 0;
    padding: 18px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .93), rgba(251, 244, 232, .74));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .78),
        0 22px 55px rgba(61, 45, 24, .11);
}

.screen--start .picker-head {
    margin-bottom: 4px;
}

.screen--start .recipe-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.screen--start .recipe-option {
    min-height: 116px;
    padding: 14px 10px;
    border-radius: 26px;
}

.screen--start .recipe-option::before {
    display: none;
}

.screen--start .recipe-option .food-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    box-shadow:
        inset 0 0 0 1px rgba(91, 68, 38, .1),
        0 12px 22px rgba(45, 99, 54, .1);
}

.screen--start .recipe-option span {
    min-height: 30px;
    display: grid;
    place-items: end center;
    font-size: 15px;
}

.screen--start .recipe-option small {
    justify-self: center;
}

.screen--start .selected-recipe {
    grid-area: selected;
    justify-self: center;
    margin: 0;
    padding: 11px 18px;
    border-radius: 20px;
    text-align: center;
}

.screen--start .recipe-preview {
    grid-area: preview;
    justify-content: center;
    margin: 0;
}

.screen--start .scoreboard-card--start {
    grid-area: scoreboard;
    align-self: stretch;
    width: 100%;
    margin: 0;
}

.screen--start .recipe-preview span {
    min-height: 44px;
    padding: 9px 12px;
}

.screen--start .game-links {
    grid-area: links;
    justify-self: start;
    max-width: 330px;
    margin: 0;
    padding: 13px 15px;
    text-align: left;
}

.screen--start .primary-button {
    grid-area: button;
    justify-self: start;
    min-width: 208px;
}

@media (max-width: 980px) {
    .screen--start .start-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "title"
            "text"
            "steps"
            "picker"
            "selected"
            "preview"
            "scoreboard"
            "links"
            "button";
        min-height: auto;
        text-align: center;
    }

    .screen--start .pill,
    .screen--start .how-to-play,
    .screen--start .game-links,
    .screen--start .primary-button {
        justify-self: center;
    }

    .screen--start h1,
    .screen--start p {
        max-width: 680px;
        margin-inline: auto;
    }
}

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

    .screen--start .start-card {
        padding: 20px 14px;
        gap: 13px;
    }

    .screen--start h1 {
        font-size: clamp(42px, 14vw, 60px);
    }

    .screen--start p {
        font-size: 14px;
        line-height: 1.55;
    }

    .screen--start .recipe-picker {
        padding: 12px;
        border-radius: 24px;
    }

    .screen--start .recipe-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screen--start .recipe-option {
        min-height: 76px;
        border-radius: 18px;
    }

    .screen--start .recipe-option::before {
        display: none;
    }

    .screen--start .recipe-option .food-icon {
        width: 26px;
        height: 26px;
        border-radius: 11px;
    }

    .screen--start .recipe-option span {
        min-height: 0;
        font-size: 14px;
    }

    .screen--start .game-links {
        display: none;
    }

    .scoreboard-card {
        margin-bottom: 12px;
        padding: 11px;
        border-radius: 18px;
    }

    .score-list {
        max-height: 176px;
    }

    .score-list li {
        min-height: 48px;
        padding: 8px 9px;
    }

    .score-save {
        padding: 11px;
        border-radius: 18px;
    }

    .score-save div {
        grid-template-columns: 1fr;
    }

    .score-save button {
        width: 100%;
    }

    .how-to-play {
        width: 100%;
        gap: 7px;
    }

    .how-to-play span {
        min-height: 36px;
        font-size: 13px;
    }

    .screen--start .primary-button {
        width: min(260px, 100%);
    }
}

/* Compact, non-serif start screen polish. Keeps the game inside the iframe without clipped controls. */
body {
    overflow: auto;
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

h1,
h2 {
    font-family: inherit;
    font-weight: 950;
    letter-spacing: -.055em;
}

.game-app {
    min-height: 620px;
    height: auto;
}

.screen {
    min-height: 620px;
}

.screen--start {
    padding: clamp(12px, 2vw, 20px);
}

.screen--start .start-card {
    width: min(1040px, 100%);
    min-height: auto;
    grid-template-columns: minmax(260px, .78fr) minmax(430px, 1.22fr);
    grid-template-areas:
        "intro picker"
        "title picker"
        "text picker"
        "steps picker"
        "links selected"
        "button preview"
        ". scoreboard";
    gap: 12px 28px;
    padding: clamp(24px, 3.2vw, 38px);
    border-radius: 32px;
}

.screen--start h1 {
    max-width: 360px;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: .96;
}

.screen--start p {
    max-width: 390px;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.55;
}

.screen--start .pill {
    padding: 7px 12px;
    font-size: 11px;
}

.how-to-play {
    gap: 7px;
    max-width: 360px;
}

.how-to-play span {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
}

.how-to-play b {
    width: 23px;
    height: 23px;
    border-radius: 8px;
}

.screen--start .recipe-picker {
    padding: 14px;
    border-radius: 28px;
}

.screen--start .recipe-options {
    gap: 8px;
}

.screen--start .recipe-option {
    min-height: 92px;
    padding: 11px 8px;
    border-radius: 22px;
}

.screen--start .recipe-option .food-icon {
    width: 32px;
    height: 32px;
    border-radius: 13px;
}

.screen--start .recipe-option span {
    min-height: 24px;
    font-size: 14px;
}

.screen--start .recipe-option small {
    padding: 3px 7px;
    font-size: 10px;
}

.screen--start .selected-recipe {
    justify-self: start;
    padding: 9px 15px;
    border-radius: 17px;
}

.screen--start .recipe-preview {
    justify-content: flex-start;
}

.screen--start .recipe-preview span {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
}

.screen--start .scoreboard-card--start {
    align-self: start;
}

.scoreboard-card {
    padding: 12px;
    border-radius: 20px;
}

.score-list {
    max-height: 124px;
}

.score-list li {
    min-height: 46px;
    padding: 8px 10px;
}

.game-links {
    border-radius: 16px;
}

.screen--start .game-links {
    max-width: 290px;
    padding: 10px 12px;
}

.screen--start .primary-button {
    min-width: 190px;
    min-height: 48px;
}

@media (max-width: 980px) {
    .game-app,
    .screen {
        min-height: 0;
    }

    .screen--start .start-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "title"
            "text"
            "steps"
            "picker"
            "selected"
            "preview"
            "scoreboard"
            "links"
            "button";
        gap: 12px;
        text-align: center;
    }

    .screen--start h1,
    .screen--start p,
    .how-to-play {
        max-width: 640px;
        margin-inline: auto;
    }

    .screen--start .selected-recipe,
    .screen--start .recipe-preview,
    .screen--start .scoreboard-card--start {
        justify-self: center;
    }

    .screen--start .recipe-preview {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .screen--start .start-card {
        padding: 18px 12px;
        border-radius: 24px;
    }

    .screen--start h1 {
        font-size: clamp(34px, 10vw, 46px);
        letter-spacing: -.045em;
    }

    .screen--start .recipe-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screen--start .recipe-option {
        min-height: 72px;
    }

    .score-list {
        max-height: 150px;
    }
}
