.hellochild-dev-runner__controls {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
}

.hellochild-dev-runner__control {
    display: inline-flex;
    min-width: 58px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px 3px 10px 3px;
    background: linear-gradient(145deg, #3b72b5, #284d88);
    color: var(--runner-text);
    font-family: var(--runner-font);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(4, 12, 31, 0.72);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.hellochild-dev-runner__control:hover,
.hellochild-dev-runner__control:focus-visible {
    background: linear-gradient(145deg, #54cdd8, #3674ac);
    color: #fff;
    box-shadow: 0 2px 0 rgba(4, 12, 31, 0.72);
    transform: translateY(2px);
}

.hellochild-dev-runner__control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hellochild-dev-runner__control--icon {
    min-width: 44px;
    padding: 0;
}

.hellochild-dev-runner__control svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hellochild-dev-runner__inversion-label {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    left: 16px;
    padding-left: 14px;
    color: #d9f6f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    opacity: 0;
    text-transform: uppercase;
    transform: translateY(8px);
    transition: opacity 160ms steps(2, end), transform 160ms steps(2, end);
}

.hellochild-dev-runner__inversion-label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--runner-accent);
    content: "";
    transform: translateY(-50%);
}

.hellochild-dev-runner.is-inverted .hellochild-dev-runner__inversion-label {
    opacity: 1;
    transform: translateY(0);
}

.hellochild-dev-runner.is-inversion-warning .hellochild-dev-runner__inversion-label {
    color: var(--runner-muted);
    opacity: 0.86;
    transform: translateY(0);
    animation: dev-runner-inversion-warning 800ms steps(2, end) infinite;
}

.hellochild-dev-runner__achievements {
    position: absolute;
    z-index: 7;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(14px, 2.4vw, 26px);
    background:
        linear-gradient(118deg, transparent 0 72%, rgba(84, 214, 220, 0.06) 72% 74%, transparent 74%),
        radial-gradient(circle at 18% 15%, rgba(52, 119, 172, 0.22), transparent 38%),
        rgba(7, 17, 38, 0.98);
    color: var(--runner-text);
}

.hellochild-dev-runner__achievements[hidden] {
    display: none;
}

.hellochild-dev-runner__achievements-header {
    display: flex;
    width: min(680px, 100%);
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    margin: 0 auto 12px;
    padding-bottom: 0;
    border-bottom: 0;
}

.hellochild-dev-runner__achievements-header h2 {
    min-width: 0;
    margin: 2px 0 0;
    color: #fff;
    font-family: var(--runner-font);
    font-size: clamp(25px, 4vw, 38px);
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: none;
    overflow-wrap: anywhere;
}

.hellochild-dev-runner__achievements-header button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px 3px 10px 3px;
    background: linear-gradient(145deg, #f37e91, #bd496a);
    color: #fff;
    font: 26px/1 var(--runner-font);
    box-shadow: 0 4px 0 rgba(4, 10, 27, 0.7);
    cursor: pointer;
}

.hellochild-dev-runner__achievements-header button:hover,
.hellochild-dev-runner__achievements-header button:focus-visible {
    background: linear-gradient(145deg, #ff9baa, #d95a77);
    color: #fff;
    box-shadow: 0 2px 0 rgba(4, 10, 27, 0.7);
    transform: translateY(2px);
}

.hellochild-dev-runner__achievement-list {
    position: relative;
    display: flex;
    width: min(680px, 100%);
    flex: 1;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 auto;
    padding: 0 6px 8px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(159, 231, 245, 0.45) transparent;
    scrollbar-width: thin;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    list-style: none;
}

.hellochild-dev-runner__achievement-list li {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    min-height: 62px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 5px 12px 5px 8px;
    border: 0;
    border-radius: 12px 3px 12px 3px;
    background: linear-gradient(100deg, rgba(33, 61, 101, 0.88), rgba(20, 37, 72, 0.82));
    box-shadow: none;
    opacity: 0.78;
    overflow: hidden;
}

.hellochild-dev-runner__achievement-list li::after {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--achievement-progress, 0%);
    height: 3px;
    border-radius: 0 5px 5px 0;
    background: #7edbe2;
    content: "";
    transition: width 220ms ease;
}

.hellochild-dev-runner__achievement-list li > * {
    position: relative;
    z-index: 1;
}

.hellochild-dev-runner__achievement-list li:last-child {
    border-bottom: 0;
}

.hellochild-dev-runner__achievement-list li.is-unlocked {
    background: linear-gradient(100deg, rgba(40, 105, 125, 0.94), rgba(45, 62, 112, 0.9));
    box-shadow: none;
    opacity: 1;
}

.hellochild-dev-runner__achievement-list li.is-unlocked::after {
    background: #f4dc73;
}

.hellochild-dev-runner__achievement-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(12, 25, 54, 0.58);
    color: var(--runner-muted);
}

.hellochild-dev-runner__achievement-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.hellochild-dev-runner__achievement-list li.is-unlocked .hellochild-dev-runner__achievement-icon {
    background: rgba(140, 225, 231, 0.18);
    color: #9ce7ec;
    box-shadow: none;
}

.hellochild-dev-runner__achievement-list strong,
.hellochild-dev-runner__achievement-list small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hellochild-dev-runner__achievement-list li > span:nth-child(2) {
    min-width: 0;
}

.hellochild-dev-runner__achievement-list strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.hellochild-dev-runner__achievement-list small {
    margin-top: 3px;
    color: var(--runner-muted);
    font-size: 10px;
    line-height: 1.25;
}

.hellochild-dev-runner__achievement-list em {
    max-width: 100%;
    color: var(--runner-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(6, 14, 36, 0.52);
    white-space: nowrap;
}

.hellochild-dev-runner__achievement-list em::before {
    margin-right: 5px;
    content: "\25c7";
}

.hellochild-dev-runner__achievement-list li.is-unlocked em {
    background: rgba(229, 251, 248, 0.12);
    color: #c9f5f2;
}

.hellochild-dev-runner__achievement-list li.is-unlocked em::before {
    content: "\2713";
}

.hellochild-dev-runner__toast {
    position: absolute;
    z-index: 6;
    top: 78px;
    left: 50%;
    min-width: 220px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(50, 107, 153, 0.98), rgba(42, 65, 117, 0.98));
    color: var(--runner-muted);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    box-shadow: 0 4px 0 rgba(4, 10, 25, 0.6);
}

.hellochild-dev-runner__toast.is-visible {
    animation: dev-runner-toast 3.2s steps(8, end);
}

.hellochild-dev-runner__toast span,
.hellochild-dev-runner__toast strong {
    display: block;
}

.hellochild-dev-runner__toast span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hellochild-dev-runner__toast strong {
    margin-top: 2px;
    color: #fff;
    font-size: 13px;
}

html.has-dev-runner-fullscreen {
    overflow: hidden;
}

.hellochild-dev-runner:fullscreen,
.hellochild-dev-runner.is-fullscreen,
.hellochild-dev-runner.is-pseudo-fullscreen {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    background: #07111f;
    cursor: default !important;
}

.hellochild-dev-runner:fullscreen *,
.hellochild-dev-runner.is-fullscreen *,
.hellochild-dev-runner.is-pseudo-fullscreen * {
    cursor: default !important;
}

.hellochild-dev-runner:fullscreen button,
.hellochild-dev-runner.is-fullscreen button,
.hellochild-dev-runner.is-pseudo-fullscreen button {
    cursor: pointer !important;
}

.hellochild-dev-runner.is-pseudo-fullscreen {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
}

.hellochild-dev-runner:fullscreen .hellochild-dev-runner__game,
.hellochild-dev-runner.is-fullscreen .hellochild-dev-runner__game,
.hellochild-dev-runner.is-pseudo-fullscreen .hellochild-dev-runner__game {
    width: min(100vw, calc(100vh * 16 / 9));
    width: min(100vw, calc(100dvh * 16 / 9));
    max-width: none;
}

@keyframes dev-runner-toast {
    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -12px);
    }

    8%,
    88% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes dev-runner-inversion-warning {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hellochild-dev-runner.is-inversion-warning .hellochild-dev-runner__inversion-label {
        animation: none;
    }

    .hellochild-dev-runner__toast.is-visible {
        opacity: 1;
        transform: translate(-50%, 0);
        animation: none;
    }
}


/* Chunky mobile controls, pause and shop */
.hellochild-dev-runner__controls {
    right: clamp(8px, 1.5cqi, 16px);
    bottom: clamp(8px, 1.5cqi, 16px);
    gap: clamp(5px, .8cqi, 9px);
    align-items: flex-end;
}
.hellochild-dev-runner__control {
    min-width: clamp(44px, 8cqi, 78px);
    height: clamp(40px, 6.2cqi, 58px);
    flex-direction: column;
    gap: 2px;
    padding: 4px clamp(7px, 1.2cqi, 14px);
    border: 2px solid rgba(255,255,255,.65);
    border-radius: clamp(10px, 1.5cqi, 16px);
    background: linear-gradient(145deg, #4b94f0, #3156bd);
    font-size: clamp(7px, 1cqi, 11px);
    letter-spacing: .04em;
    box-shadow: 0 clamp(4px, .7cqi, 7px) 0 rgba(5, 13, 48, .8), 0 8px 18px rgba(5, 13, 48, .3);
    animation: dev-runner-control-idle 2.8s ease-in-out infinite;
}
.hellochild-dev-runner__control:nth-child(2) { animation-delay: -.7s; }
.hellochild-dev-runner__control:nth-child(3) { animation-delay: -1.4s; }
.hellochild-dev-runner__control:active,
.hellochild-dev-runner__control:hover,
.hellochild-dev-runner__control:focus-visible {
    box-shadow: 0 2px 0 rgba(5, 13, 48, .9);
    transform: translateY(4px) scale(.98);
}
.hellochild-dev-runner__control:disabled {
    filter: grayscale(.7);
    opacity: .55;
    cursor: not-allowed;
    animation: none;
}
.hellochild-dev-runner__control--pause { background: linear-gradient(145deg, #ff6685, #d63268); }
.hellochild-dev-runner__control--shop { background: linear-gradient(145deg, #b36cf6, #6736c8); }
.hellochild-dev-runner__control-ruby {
    display: grid;
    width: clamp(17px, 2.4cqi, 24px);
    height: clamp(17px, 2.4cqi, 24px);
    place-items: center;
    border: 2px solid rgba(255,255,255,.66);
    border-radius: 6px;
}
.hellochild-dev-runner__pause-panel,
.hellochild-dev-runner__shop {
    position: absolute;
    z-index: 9;
    inset: 0;
    box-sizing: border-box;
    color: var(--runner-text);
}
.hellochild-dev-runner__pause-panel[hidden],
.hellochild-dev-runner__shop[hidden] { display: none; }
.hellochild-dev-runner__pause-panel {
    display: grid;
    place-items: center;
    padding: clamp(12px, 3cqi, 28px);
    background: radial-gradient(circle at 50% 44%, rgba(86, 108, 229, .28), transparent 45%), rgba(4, 9, 28, .8);
    backdrop-filter: blur(5px);
}
.hellochild-dev-runner__pause-card {
    display: grid;
    width: min(480px, 90%);
    justify-items: center;
    gap: clamp(5px, 1cqi, 10px);
    padding: clamp(15px, 3cqi, 30px);
    border: 3px solid rgba(190, 226, 255, .6);
    border-radius: clamp(16px, 2.6cqi, 26px);
    background: linear-gradient(155deg, #203d86, #111d53);
    box-shadow: 0 10px 0 #08102e, 0 18px 40px rgba(0,0,0,.38);
    text-align: center;
    animation: dev-runner-panel-pop 280ms cubic-bezier(.2,1.5,.5,1);
}
.hellochild-dev-runner__pause-kicker,
.hellochild-dev-runner__panel-header small {
    color: #85eaff;
    font-size: clamp(8px, 1.15cqi, 12px);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hellochild-dev-runner__pause-card > strong { font-size: clamp(24px, 5cqi, 48px); font-style: italic; line-height: 1; }
.hellochild-dev-runner__pause-card > small { color: #b9c9ea; font-size: clamp(9px, 1.4cqi, 14px); }
.hellochild-dev-runner__pause-card button {
    display: inline-flex;
    min-height: clamp(42px, 6cqi, 58px);
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding: 0 clamp(18px, 3cqi, 34px);
    border: 3px solid #fff;
    border-radius: 15px;
    background: linear-gradient(145deg, #55e889, #18af70);
    color: #fff;
    font: 900 clamp(11px, 1.7cqi, 17px)/1 var(--runner-font);
    text-transform: uppercase;
    box-shadow: 0 7px 0 #08704c;
    cursor: pointer;
}
.hellochild-dev-runner__pause-card button svg { width: 21px; fill: currentColor; }
.hellochild-dev-runner__shop {
    display: flex;
    flex-direction: column;
    padding: clamp(10px, 2.2cqi, 24px);
    background: radial-gradient(circle at 15% 20%, rgba(149, 87, 255, .25), transparent 38%), rgba(6, 12, 38, .97);
    overflow: auto;
}
.hellochild-dev-runner__panel-header {
    display: grid;
    width: min(780px, 100%);
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: clamp(8px, 1.5cqi, 16px);
    margin: 0 auto;
}
.hellochild-dev-runner__panel-header h2 { margin: 0; color: #fff; font-size: clamp(24px, 4.5cqi, 44px); font-style: italic; line-height: .95; text-transform: uppercase; }
.hellochild-dev-runner__panel-header > button,
.hellochild-dev-runner__shop [data-dev-runner-shop-close] {
    width: clamp(34px, 4.6cqi, 46px);
    height: clamp(34px, 4.6cqi, 46px);
    border: 2px solid #fff;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff6685, #c32d62);
    color: #fff;
    font: 900 26px/1 var(--runner-font);
    box-shadow: 0 5px 0 #721738;
    cursor: pointer;
}
.hellochild-dev-runner__shop-balance {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 12px;
    background: #3a2376;
}
.hellochild-dev-runner__shop-balance strong { font-size: clamp(14px, 2cqi, 20px); }
.hellochild-dev-runner__shop-intro { width: min(780px, 100%); margin: 8px auto 12px; color: #b9c9ea; font-size: clamp(9px, 1.3cqi, 13px); }
.hellochild-dev-runner__skin-grid {
    display: grid;
    width: min(780px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.5cqi, 16px);
    margin: auto;
}
.hellochild-dev-runner__skin {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 3px;
    padding: clamp(8px, 1.4cqi, 15px);
    border: 3px solid rgba(171, 209, 255, .4);
    border-radius: clamp(12px, 2cqi, 20px);
    background: linear-gradient(155deg, #213c80, #111d4e);
    color: #fff;
    box-shadow: 0 7px 0 #080f2c;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease;
}
.hellochild-dev-runner__skin:hover { transform: translateY(-3px); border-color: #9fe7f5; }
.hellochild-dev-runner__skin.is-selected { border-color: #ffe167; background: linear-gradient(155deg, #584aa4, #263f83); box-shadow: 0 7px 0 #98741b, 0 0 25px rgba(255,225,103,.22); }
.hellochild-dev-runner__skin-preview { display: grid; width: clamp(62px, 9cqi, 86px); height: clamp(66px, 9.5cqi, 91px); place-items: center; border-radius: 14px; background: radial-gradient(circle, #4774be, #172654); overflow: hidden; }
.hellochild-dev-runner__skin-preview canvas { width: 100%; height: 100%; }
.hellochild-dev-runner__skin strong { font-size: clamp(11px, 1.6cqi, 16px); text-align: center; overflow-wrap: anywhere; }
.hellochild-dev-runner__skin small { min-height: 2.5em; color: #aebfe0; font-size: clamp(7px, 1cqi, 10px); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.hellochild-dev-runner__skin em {
    margin-top: 5px;
    padding: .5em .8em;
    border-radius: 9px;
    background: linear-gradient(145deg, #af63ef, #6f37c7);
    color: #fff;
    font-size: clamp(8px, 1.1cqi, 11px);
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}
.hellochild-dev-runner__skin.is-owned em { background: linear-gradient(145deg, #51d995, #18976d); }
.hellochild-dev-runner.is-shop-denied .hellochild-dev-runner__shop-balance { animation: dev-runner-denied 420ms ease; }
.hellochild-dev-runner__action-toast {
    position: absolute;
    z-index: 8;
    top: 24%;
    left: 50%;
    max-width: 78%;
    padding: clamp(7px, 1.2cqi, 12px) clamp(12px, 2cqi, 22px);
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: linear-gradient(90deg, #713bd1, #326fc8);
    color: #fff;
    font-size: clamp(9px, 1.4cqi, 14px);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 10px) scale(.85);
}
.hellochild-dev-runner__action-toast.is-visible { animation: dev-runner-action-toast 1.9s ease both; }
.hellochild-dev-runner__toast {
    min-width: min(360px, 78%);
    padding: clamp(12px, 2cqi, 20px);
    border: 3px solid #fff5a4;
    border-radius: 18px;
    background: linear-gradient(145deg, #7550db, #285cb9);
    color: #dff9ff;
    box-shadow: 0 8px 0 #17235d, 0 16px 35px rgba(0,0,0,.38);
    text-align: center;
}
.hellochild-dev-runner__toast::before { display: block; color: #ffe66d; content: "✦  ★  ✦"; font-size: 22px; letter-spacing: .22em; }
.hellochild-dev-runner__toast.is-visible { animation: dev-runner-success 3.2s cubic-bezier(.18,.9,.3,1); }
.hellochild-dev-runner__toast strong { font-size: clamp(14px, 2cqi, 20px); }
@keyframes dev-runner-control-idle { 50% { transform: translateY(-2px); } }
@keyframes dev-runner-panel-pop { from { opacity: 0; transform: scale(.82) rotate(-2deg); } }
@keyframes dev-runner-action-toast {
    0%, 100% { opacity: 0; transform: translate(-50%, 10px) scale(.85); }
    12%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes dev-runner-success {
    0%, 100% { opacity: 0; transform: translate(-50%, -24px) scale(.65) rotate(-3deg); }
    10% { opacity: 1; transform: translate(-50%, 4px) scale(1.12) rotate(2deg); }
    18%, 84% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(0); }
}
@keyframes dev-runner-denied {
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}


/* Achievement collection — chunky mobile-game presentation */
.hellochild-dev-runner__achievements {
    padding: clamp(10px, 2.2cqi, 22px);
    background:
        radial-gradient(circle at 16% 18%, rgba(121, 86, 255, .32), transparent 35%),
        radial-gradient(circle at 88% 82%, rgba(255, 63, 105, .18), transparent 34%),
        linear-gradient(155deg, #111947, #080d2b 68%, #14103c);
}
.hellochild-dev-runner__achievements-header {
    width: min(860px, 100%);
    margin-bottom: clamp(7px, 1.3cqi, 13px);
}
.hellochild-dev-runner__achievements-header::before {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    margin-right: 10px;
    padding: 0 .85em;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 10px;
    background: linear-gradient(145deg, #a46bff, #5f3fc8);
    color: #fff5aa;
    content: "Collection";
    font-size: clamp(7px, 1cqi, 10px);
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #352076;
}
.hellochild-dev-runner__achievements-header h2 {
    flex: 1;
    font-size: clamp(23px, 4cqi, 40px);
    text-shadow: 0 4px 0 #322272;
}
.hellochild-dev-runner__achievements-header button {
    width: clamp(34px, 4.8cqi, 46px);
    height: clamp(34px, 4.8cqi, 46px);
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 5px 0 #721738;
}
.hellochild-dev-runner__achievement-list {
    display: grid;
    width: min(860px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    gap: clamp(7px, 1.2cqi, 12px);
    padding: 0 5px 8px 0;
}
.hellochild-dev-runner__achievement-list li,
.hellochild-dev-runner__achievement-list li:last-child {
    min-height: 0;
    grid-template-columns: clamp(50px, 7cqi, 68px) minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    gap: 3px clamp(7px, 1.1cqi, 12px);
    padding: clamp(6px, 1cqi, 10px);
    border: 2px solid rgba(176, 199, 255, .42);
    border-radius: clamp(12px, 1.8cqi, 18px);
    background: linear-gradient(150deg, rgba(47, 67, 134, .97), rgba(21, 31, 83, .98));
    box-shadow: 0 clamp(4px, .65cqi, 7px) 0 #090e32;
    opacity: .78;
}
.hellochild-dev-runner__achievement-list li:last-child {
    grid-column: 1 / -1;
    width: calc(50% - clamp(4px, .6cqi, 6px));
    justify-self: center;
}
.hellochild-dev-runner__achievement-list li::after {
    height: 5px;
    background: linear-gradient(90deg, #6de7ff, #9c83ff);
}
.hellochild-dev-runner__achievement-list li.is-unlocked {
    border-color: #ffe786;
    background: linear-gradient(150deg, #6450ba, #263e8c);
    box-shadow: 0 clamp(4px, .65cqi, 7px) 0 #8a6415, 0 0 22px rgba(255, 226, 104, .2);
    animation: dev-runner-achievement-card-in 440ms cubic-bezier(.2,1.45,.45,1);
}
.hellochild-dev-runner__achievement-list li.is-unlocked::after {
    background: linear-gradient(90deg, #ffb62f, #fff27c);
}
.hellochild-dev-runner__achievement-icon {
    width: clamp(50px, 7cqi, 68px);
    height: clamp(50px, 7cqi, 68px);
    grid-row: 1 / 3;
    align-self: center;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.hellochild-dev-runner__achievement-icon canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.hellochild-dev-runner__achievement-icon svg { display: none; }
.hellochild-dev-runner__achievement-list li > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}
.hellochild-dev-runner__achievement-list strong {
    font-size: clamp(9px, 1.35cqi, 14px);
    line-height: 1.1;
}
.hellochild-dev-runner__achievement-list small {
    margin-top: 3px;
    font-size: clamp(6px, .9cqi, 10px);
    line-height: 1.2;
}
.hellochild-dev-runner__achievement-list em {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    padding: .45em .65em;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(5, 10, 37, .48);
    font-size: clamp(6px, .8cqi, 9px);
}
.hellochild-dev-runner__achievement-reward {
    display: inline-flex;
    grid-column: 3;
    grid-row: 2;
    align-items: center;
    justify-self: end;
    gap: 3px;
    padding: .34em .62em;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 8px;
    background: linear-gradient(145deg, #f94c62, #b61538);
    color: #fff;
    font-size: clamp(6px, .85cqi, 9px);
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 3px 0 #68091f;
}
.hellochild-dev-runner__reward-ruby {
    display: block;
    width: clamp(14px, 1.8cqi, 20px);
    height: clamp(14px, 1.8cqi, 20px);
}
.hellochild-dev-runner__achievement-list li.is-unlocked .hellochild-dev-runner__achievement-reward::after {
    margin-left: 2px;
    content: "✓";
    color: #fff4a8;
}

/* Lightweight HUD: icons and typography only */
.hellochild-dev-runner__stat,
.hellochild-dev-runner__stat--lives {
    min-height: 0;
    padding: clamp(2px, .45cqi, 5px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    filter: none;
    text-shadow: 0 2px 2px rgba(3, 8, 28, .88), 0 0 6px rgba(3, 8, 28, .7);
}
.hellochild-dev-runner__label { color: #dbe9ff; }
.hellochild-dev-runner__control-ruby {
    border: 0;
    background: #ec2f4e;
    clip-path: polygon(50% 0, 94% 28%, 78% 82%, 50% 100%, 22% 82%, 6% 28%);
    box-shadow: none;
}
.hellochild-dev-runner__control-ruby::before {
    width: 42%;
    height: 58%;
    background: rgba(255,255,255,.55);
}
@keyframes dev-runner-achievement-card-in {
    0% { transform: scale(.94) rotate(-1deg); }
    65% { transform: scale(1.025) rotate(.5deg); }
    100% { transform: scale(1); }
}


/* Game-over screen aligned with the mobile-game interface */
.hellochild-dev-runner__overlay.is-game-over {
    padding: clamp(8px, 2cqi, 20px);
    background:
        radial-gradient(circle at 18% 15%, rgba(139, 83, 255, .28), transparent 36%),
        radial-gradient(circle at 84% 88%, rgba(255, 66, 101, .2), transparent 34%),
        rgba(5, 9, 31, .94) !important;
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__overlay-copy {
    display: flex;
    width: min(620px, 94%);
    max-width: 94%;
    max-height: 92%;
    flex: 0 1 auto;
    gap: clamp(4px, .8cqi, 9px);
    padding: clamp(11px, 2.2cqi, 22px);
    border: clamp(2px, .4cqi, 4px) solid rgba(198, 218, 255, .7);
    border-radius: clamp(15px, 2.4cqi, 25px);
    background: linear-gradient(155deg, #273f92, #111a53 72%, #21134f);
    box-shadow: 0 clamp(6px, 1cqi, 10px) 0 #080d2f, 0 20px 45px rgba(0,0,0,.42);
    overflow: hidden;
    animation: dev-runner-panel-pop 280ms cubic-bezier(.2,1.5,.5,1);
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__death-emblem {
    width: clamp(46px, 8cqi, 76px);
    margin: 0 0 2px;
    border: 3px solid rgba(255,255,255,.75);
    border-radius: 18px;
    background: linear-gradient(145deg, #ff6b82, #cc285a);
    box-shadow: 0 6px 0 #781635;
    transform: rotate(-3deg);
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__death-kicker {
    padding: .42em .85em;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: linear-gradient(90deg, #a05bfa, #6541ca);
    color: #fff4a5;
    font-size: clamp(7px, 1cqi, 10px);
    font-weight: 900;
    letter-spacing: .14em;
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__overlay-text {
    max-width: 560px;
    color: #fff;
    font-size: clamp(18px, 3.6cqi, 35px);
    font-weight: 1000;
    line-height: 1.02;
    text-shadow: 0 4px 0 #35216f;
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__overlay-subtext {
    max-width: 500px;
    margin: 0;
    color: #c5d5f5;
    font-size: clamp(8px, 1.2cqi, 12px);
    line-height: 1.25;
}
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__death-stats {
    display: grid;
    width: min(390px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 1cqi, 10px);
    margin: clamp(2px, .5cqi, 6px) 0;
}
.hellochild-dev-runner__death-stats > span {
    padding: clamp(5px, 1cqi, 10px);
    border: 2px solid rgba(170, 205, 255, .42);
    border-radius: 12px;
    background: rgba(8, 17, 59, .58);
    box-shadow: 0 4px 0 rgba(5, 9, 34, .75);
}
.hellochild-dev-runner__death-stats > span + span::before { display: none; }
.hellochild-dev-runner__death-stats small { color: #9feaff; }
.hellochild-dev-runner__death-stats strong { font-size: clamp(14px, 2.3cqi, 23px); }
.hellochild-dev-runner__overlay.is-game-over .hellochild-dev-runner__death-action {
    min-height: clamp(36px, 5.5cqi, 54px);
    padding: 0 clamp(15px, 2.6cqi, 28px);
    border: 3px solid #fff;
    border-radius: clamp(11px, 1.6cqi, 16px);
    background: linear-gradient(145deg, #58e88d, #18ad70);
    color: #fff;
    font-size: clamp(9px, 1.3cqi, 13px);
    font-weight: 1000;
    box-shadow: 0 7px 0 #08704c;
}
.hellochild-dev-runner__overlay.is-game-over:hover .hellochild-dev-runner__death-action,
.hellochild-dev-runner__overlay.is-game-over:focus-visible .hellochild-dev-runner__death-action {
    background: linear-gradient(145deg, #70f3a1, #21bd7d);
    box-shadow: 0 3px 0 #08704c;
}


/* Shop header and card text alignment */
.hellochild-dev-runner__panel-header,
.hellochild-dev-runner__shop-intro,
.hellochild-dev-runner__skin-grid {
    box-sizing: border-box;
    width: min(780px, 100%);
    align-self: center;
    margin-right: auto;
    margin-left: auto;
}
.hellochild-dev-runner__panel-header {
    grid-template-columns: minmax(0, 1fr) auto clamp(36px, 4.6cqi, 46px);
}
.hellochild-dev-runner__panel-header > div:first-child {
    min-width: 0;
    text-align: left;
}
.hellochild-dev-runner__panel-header h2,
.hellochild-dev-runner__panel-header small,
.hellochild-dev-runner__shop-intro {
    text-align: left;
}
.hellochild-dev-runner__shop-intro {
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.hellochild-dev-runner__shop [data-dev-runner-shop-close] {
    display: grid;
    min-width: 0;
    max-width: none;
    aspect-ratio: 1 / 1;
    place-items: center;
    align-self: center;
    justify-self: end;
    margin: 0;
    padding: 0;
    appearance: none;
    line-height: 0;
    text-indent: 0;
    transform: none;
}
.hellochild-dev-runner__shop [data-dev-runner-shop-close]::before,
.hellochild-dev-runner__shop [data-dev-runner-shop-close]::after {
    display: none;
    content: none;
}
.hellochild-dev-runner__shop [data-dev-runner-shop-close] svg {
    display: block;
    width: 44%;
    height: 44%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.4;
    stroke-linecap: round;
}
.hellochild-dev-runner__skin {
    grid-template-rows: auto minmax(1.2em, auto) minmax(2.5em, auto) auto;
    align-content: start;
}
.hellochild-dev-runner__skin strong,
.hellochild-dev-runner__skin small {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
}
.hellochild-dev-runner__skin em {
    align-self: end;
    justify-self: center;
}


/* Contextual controls: menus on home/pause, pause only during gameplay */
.hellochild-dev-runner [data-dev-runner-pause] { display: none; }
.hellochild-dev-runner.is-playing:not(.is-paused) [data-dev-runner-pause] { display: inline-flex; }
.hellochild-dev-runner.is-playing:not(.is-paused) [data-dev-runner-shop-toggle],
.hellochild-dev-runner.is-playing:not(.is-paused) [data-dev-runner-achievements-toggle] { display: none; }
.hellochild-dev-runner.is-paused .hellochild-dev-runner__controls,
.hellochild-dev-runner.is-game-over .hellochild-dev-runner__controls { z-index: 12; }
.hellochild-dev-runner.has-shop-open .hellochild-dev-runner__controls,
.hellochild-dev-runner.has-achievements-open .hellochild-dev-runner__controls {
    opacity: 0;
    pointer-events: none;
}
.hellochild-dev-runner.is-paused.has-shop-open .hellochild-dev-runner__shop,
.hellochild-dev-runner.is-paused.has-achievements-open .hellochild-dev-runner__achievements,
.hellochild-dev-runner.is-game-over.has-shop-open .hellochild-dev-runner__shop,
.hellochild-dev-runner.is-game-over.has-achievements-open .hellochild-dev-runner__achievements { z-index: 13; }
