/* =========================================================
   Neon Core — styles
   ========================================================= */

:root {
    --neon: #29f3ff;
    --neon-soft: rgba(41, 243, 255, 0.35);
    --neon-text: #c8fbff;
    --jump: #4dff88;
    --font-hud: 'Orbitron', 'Rajdhani', 'Courier New', monospace;
    --font-ui: 'Rajdhani', 'Orbitron', 'Courier New', sans-serif;

    /* notch / home-bar safe areas (0 on most screens) */
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
}

body {
    margin: 0;
    overflow: hidden;
    font-family: var(--font-ui), system-ui, -apple-system, sans-serif;
    touch-action: none;
    background-color: #03060d;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Shared panels (menus) ---------- */

.glass-panel {
    background: rgba(10, 10, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.15);
}

/* ---------- Colour helpers ---------- */

.c-cyan    { color: #00ffff; }
.c-red     { color: #ff4444; }
.c-green   { color: #00ff00; }
.c-orange  { color: #ffaa00; }
.c-magenta { color: #ff00ff; }

/* =========================================================
   In-game HUD
   ========================================================= */

#ui {
    display: none; /* shown by JS when a run starts */
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ---------- Screen frame ---------- */

.hud-frame {
    position: absolute;
    top: calc(8px + var(--safe-t));
    right: calc(8px + var(--safe-r));
    bottom: calc(8px + var(--safe-b));
    left: calc(8px + var(--safe-l));
    border: 1px solid rgba(41, 243, 255, 0.12);
}

.hud-frame .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 0 solid var(--neon);
    opacity: 0.75;
    filter: drop-shadow(0 0 4px var(--neon));
}
.corner.tl { top: -1px;    left: -1px;  border-top-width: 2px;    border-left-width: 2px; }
.corner.tr { top: -1px;    right: -1px; border-top-width: 2px;    border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px;  border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.sys-label {
    position: absolute;
    bottom: 6px;
    font: 600 9px var(--font-hud);
    letter-spacing: 2px;
    color: rgba(170, 235, 255, 0.5);
}
.sys-label.left  { left: 12px; }
.sys-label.right { right: 12px; }

/* ---------- Top-left: data counter + bar ---------- */

.hud-left {
    position: absolute;
    top: calc(20px + var(--safe-t));
    left: calc(24px + var(--safe-l));
    width: min(300px, 40vw);
}

#score-txt {
    font: 700 clamp(16px, 2.4vw, 26px)/1 var(--font-hud);
    letter-spacing: 2px;
    color: var(--neon-text);
    text-shadow: 0 0 10px rgba(41, 243, 255, 0.85), 0 0 24px rgba(41, 243, 255, 0.35);
}

.data-bar {
    margin-top: 9px;
    height: 12px;
    padding: 2px;
    border: 1.5px solid rgba(41, 243, 255, 0.8);
    background: rgba(4, 12, 22, 0.65);
    box-shadow: 0 0 10px rgba(41, 243, 255, 0.35), inset 0 0 6px rgba(41, 243, 255, 0.2);
}

#data-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0fb3d6, var(--neon) 70%, #d6feff);
    box-shadow: 0 0 10px var(--neon);
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#data-fill[style*="width: 0%"]::after { display: none; }
#data-fill::after {           /* bright leading edge */
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 14px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
}

#status-txt {
    margin-top: 8px;
    font: 700 11px var(--font-ui);
    letter-spacing: 2px;
    color: #00ffff;
    text-shadow: 0 0 6px currentColor;
    opacity: 0.9;
}

/* ---------- Top-right: sector + time panels ---------- */

.hud-right {
    position: absolute;
    top: calc(16px + var(--safe-t));
    right: calc(126px + var(--safe-r));   /* leaves room for the pause and mute buttons */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hud-panel {
    --cut: 10px;
    position: relative;
    z-index: 0;
    min-width: 150px;
    padding: 9px 18px 11px 18px;
    text-align: right;
    font: 700 clamp(14px, 2vw, 21px)/1 var(--font-hud);
    letter-spacing: 2px;
    color: #dcfbff;
    text-shadow: 0 0 8px rgba(41, 243, 255, 0.7);
    background: rgba(41, 243, 255, 0.55);   /* acts as the 1.5px border */
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.hud-panel::before {          /* dark glass inside the border */
    content: '';
    position: absolute;
    inset: 1.5px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 34, 50, 0.94), rgba(6, 14, 26, 0.94));
    clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.hud-panel::after {           /* small hatch marks, bottom-right */
    content: '';
    position: absolute;
    right: 14px;
    bottom: 4px;
    width: 30px;
    height: 3px;
    background: repeating-linear-gradient(-60deg, rgba(41, 243, 255, 0.75) 0 2px, transparent 2px 5px);
}

.diff-chip {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 5px;
    vertical-align: middle;
    font: 700 9px/1 var(--font-hud);
    letter-spacing: 1px;
    color: #03060d;
    background: var(--neon);
    text-shadow: none;
    transform: translateY(-2px);
}

/* ---------- Mute & Pause buttons (sits above menus too) ---------- */

#top-controls {
    position: absolute;
    top: calc(16px + var(--safe-t));
    right: calc(18px + var(--safe-r));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    --cut: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
    color: var(--neon);
    background: linear-gradient(180deg, rgba(16, 34, 50, 0.9), rgba(6, 14, 26, 0.9));
    box-shadow: inset 0 0 0 1.5px rgba(41, 243, 255, 0.55);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    filter: drop-shadow(0 0 6px rgba(41, 243, 255, 0.35));
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .ico-off { display: none; }
.icon-btn.muted { color: #ff5a7a; }
.icon-btn.muted .ico-on { display: none; }
.icon-btn.muted .ico-off { display: block; }

/* =========================================================
   Full-screen menus
   ========================================================= */

.fullscreen-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 15, 30, 0.95) 0%, rgba(5, 5, 10, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

/* Hidden until the game shows them */
#level-menu,
#gameover-menu {
    display: none;
}

.menu-box {
    width: 90%;
    max-width: 480px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.6);
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.8);
    background: rgba(10, 10, 25, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(15px);
}

.menu-box h1 {
    font-family: var(--font-hud);
    color: #00ffff;
    margin-top: 0;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 0 20px #00ffff, 0 0 35px rgba(0, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.menu-subtitle {
    font-family: var(--font-hud);
    color: #ff00ff;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Game-over variant */
.menu-box.danger {
    border-color: #ff3333;
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.15), 0 0 40px rgba(255, 0, 0, 0.4);
}

.menu-box.danger h1 {
    color: #ff4444;
    text-shadow: 0 0 20px #ff0000;
}

#death-reason {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* ---------- Rules / stats lists ---------- */

.rules-list {
    text-align: left;
    margin-bottom: 20px;
    font-family: var(--font-ui);
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.5px;
    border-left: 4px solid #ff00ff;
    padding: 12px 16px;
    color: #e6f7ff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.08);
}

.rules-list b {
    font-family: var(--font-hud);
    font-size: clamp(13px, 1.2vw, 15px);
    letter-spacing: 1px;
}

.rules-list ul {
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.rules-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.pause-desc {
    font-family: var(--font-ui);
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(200, 240, 255, 0.9);
    margin: 12px 0 24px;
    line-height: 1.5;
}

.rules-list.stats-list {
    text-align: left;
    border: 1px solid rgba(41, 243, 255, 0.35);
    background: rgba(3, 14, 30, 0.7);
    border-radius: 8px;
    padding: 14px 20px;
    margin: 14px auto 20px;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.rules-list.stats-list p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-hud);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(195, 240, 255, 0.85);
    border-bottom: 1px dashed rgba(41, 243, 255, 0.2);
    padding-bottom: 8px;
}

.rules-list.stats-list p:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 2px;
}

.rules-list.stats-list p b {
    font-family: var(--font-hud);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px currentColor;
}

.highlight {
    color: #00ffff;
    font-weight: bold;
}

/* ---------- Difficulty picker ---------- */

.diff-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.diff-btn {
    flex: 1;
    padding: 11px 6px;
    font-size: 15px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    color: #aaeaff;
    border: 1px solid rgba(41, 243, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-hud);
    letter-spacing: 2px;
}

.diff-btn.active {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 8px #00ffff;
}

/* ---------- Buttons ---------- */

.btn {
    padding: 15px 30px;
    font-size: 17px;
    font-weight: 800;
    color: #03060d;
    background: linear-gradient(90deg, #00ffff, #00d9ff);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.3s;
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.5);
    width: 100%;
    margin-bottom: 12px;
    border-radius: 6px;
    font-family: var(--font-hud);
}

.btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ff33cc;
    border: 1px solid #ff33cc;
    box-shadow: 0 0 15px rgba(255, 51, 204, 0.25);
    text-shadow: 0 0 8px rgba(255, 51, 204, 0.4);
}

.btn-danger,
.btn-danger:active {
    background: linear-gradient(90deg, #ff3333, #ff0000);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    border: none;
}

/* ---------- Level-complete screen ---------- */

#stars-display {
    font-size: 35px;
    margin: 10px 0;
    letter-spacing: 10px;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

#remark-txt {
    font-family: var(--font-hud);
    color: #00ffff;
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(41, 243, 255, 0.7);
}

/* ---------- Joystick sensitivity picker (start menu, touch only) ---------- */

.touch-only { display: none; }
body.touch .touch-only { display: flex; }

.sens-row {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -4px 0 12px;
}
.sens-label {
    font-family: var(--font-hud);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(200, 240, 255, 0.75);
}
.sens-steps { display: flex; gap: 5px; }
.sens-step {
    width: 32px;
    height: 30px;
    padding: 0;
    font: 800 14px var(--font-hud);
    color: #9adfe6;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #44575c;
    border-radius: 5px;
    cursor: pointer;
}
.sens-step.active {
    color: #00ffff;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
}

/* =========================================================
   Touch controls
   ========================================================= */

#mobile-controls {
    display: none; /* shown by JS on touch devices */
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* ---------- Joystick ---------- */

#joystick {
    position: absolute;
    left: calc(28px + var(--safe-l));
    bottom: calc(30px + var(--safe-b));
    width: 150px;
    height: 150px;
    pointer-events: auto;
    touch-action: none;
}

.joy-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(200, 232, 255, 0.28);
    background: radial-gradient(circle, rgba(20, 40, 60, 0.18) 0%, rgba(8, 18, 32, 0.45) 62%, rgba(41, 243, 255, 0.07) 100%);
    box-shadow: inset 0 0 26px rgba(41, 243, 255, 0.12), 0 0 18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.joy-ring::before {            /* inner guide ring */
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 1px solid rgba(200, 232, 255, 0.1);
}

.joy-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    opacity: 0.6;
}
.joy-arrow.up    { top: 9px;    left: 50%; transform: translateX(-50%); border-top: 0;    border-bottom: 10px solid rgba(220, 240, 255, 0.75); }
.joy-arrow.down  { bottom: 9px; left: 50%; transform: translateX(-50%); border-bottom: 0; border-top: 10px solid rgba(220, 240, 255, 0.75); }
.joy-arrow.left  { left: 9px;   top: 50%;  transform: translateY(-50%); border-left: 0;   border-right: 10px solid rgba(220, 240, 255, 0.75); }
.joy-arrow.right { right: 9px;  top: 50%;  transform: translateY(-50%); border-right: 0;  border-left: 10px solid rgba(220, 240, 255, 0.75); }

#joy-knob {
    position: absolute;
    width: 64px;
    height: 64px;
    left: calc(50% - 32px);
    top: calc(50% - 32px);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.4), rgba(170, 200, 220, 0.2) 55%, rgba(80, 110, 140, 0.25));
    border: 2px solid rgba(225, 242, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease-out, border-color 0.2s, box-shadow 0.2s;
}

#joystick.active .joy-ring {
    border-color: rgba(41, 243, 255, 0.55);
    box-shadow: inset 0 0 30px rgba(41, 243, 255, 0.22), 0 0 22px rgba(41, 243, 255, 0.25);
}
#joystick.active #joy-knob {
    transition: border-color 0.2s, box-shadow 0.2s;   /* follow the thumb instantly */
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(41, 243, 255, 0.6), inset 0 0 14px rgba(41, 243, 255, 0.35);
}

/* ---------- Jump button ---------- */

#btn-jump {
    position: absolute;
    right: calc(30px + var(--safe-r));
    bottom: calc(30px + var(--safe-b));
    width: 116px;
    height: 116px;
    padding: 0;
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--jump);
    font: 800 15px/1 var(--font-hud);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(77, 255, 136, 0.9);
    border: 3px solid var(--jump);
    background: radial-gradient(circle, rgba(60, 255, 130, 0.2) 0%, rgba(8, 40, 22, 0.6) 72%);
    box-shadow: 0 0 22px rgba(77, 255, 136, 0.5), inset 0 0 24px rgba(77, 255, 136, 0.32);
    transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
}
#btn-jump::before {            /* outer halo ring */
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid rgba(77, 255, 136, 0.35);
}
#btn-jump svg {
    width: 40px;
    height: 40px;
    fill: var(--jump);
    filter: drop-shadow(0 0 6px rgba(77, 255, 136, 0.9));
}
#btn-jump.pressed {
    transform: scale(0.92);
    background: radial-gradient(circle, rgba(120, 255, 170, 0.5) 0%, rgba(10, 70, 35, 0.65) 75%);
    box-shadow: 0 0 36px rgba(77, 255, 136, 0.85), inset 0 0 32px rgba(77, 255, 136, 0.6);
}

/* =========================================================
   Portrait (phones held upright)
   ========================================================= */

@media (orientation: portrait) {
    .menu-box h1 { font-size: 28px; }
    .rules-list { font-size: 13px; }
    .rules-list.stats-list { padding: 12px 16px; margin: 10px auto 16px; }
    .rules-list.stats-list p { font-size: 13px; }
    .rules-list.stats-list p b { font-size: 16px; }
    .btn { font-size: 16px; padding: 13px 20px; }

    .hud-left { max-width: 38vw; left: calc(14px + var(--safe-l)); top: calc(14px + var(--safe-t)); }
    #score-txt { font-size: 13px; letter-spacing: 1px; }
    .data-bar { height: 9px; margin-top: 6px; }
    #status-txt { font-size: 9px; letter-spacing: 1px; }

    #top-controls {
        right: calc(10px + var(--safe-r));
        top: calc(14px + var(--safe-t));
        gap: 6px;
    }
    #top-controls .icon-btn {
        width: 36px;
        height: 36px;
    }
    #top-controls .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .hud-right {
        right: calc(94px + var(--safe-r));   /* cleanly avoids the 2 buttons (36px + 6px + 36px + 10px margin = 88px) */
        top: calc(14px + var(--safe-t));
        gap: 5px;
    }
    .hud-panel {
        min-width: 0;
        padding: 6px 10px 7px 10px;
        font-size: 11px;
        letter-spacing: 1px;
        --cut: 6px;
    }
    .hud-panel::after {
        width: 16px;
        right: 6px;
        bottom: 2px;
    }
    .diff-chip {
        margin-right: 4px;
        padding: 2px 4px;
        font-size: 7.5px;
    }

    .sys-label { display: none; }

    #joystick { width: 136px; height: 136px; left: calc(22px + var(--safe-l)); bottom: calc(34px + var(--safe-b)); }
    #joy-knob { width: 58px; height: 58px; left: calc(50% - 29px); top: calc(50% - 29px); }
    #btn-jump { width: 100px; height: 100px; right: calc(26px + var(--safe-r)); bottom: calc(40px + var(--safe-b)); font-size: 13px; }
    #btn-jump svg { width: 34px; height: 34px; }
}

/* Short landscape screens (most phones sideways) */
@media (orientation: landscape) and (max-height: 500px) {
    .hud-left { top: calc(16px + var(--safe-t)); }
    #joystick { width: 132px; height: 132px; bottom: calc(30px + var(--safe-b)); }
    #joy-knob { width: 56px; height: 56px; left: calc(50% - 28px); top: calc(50% - 28px); }
    #btn-jump { width: 100px; height: 100px; bottom: calc(32px + var(--safe-b)); }
    #btn-jump svg { width: 34px; height: 34px; }

    /* menus must fit a ~360-420px tall screen */
    .menu-box { padding: 14px 20px; max-width: 520px; }
    .menu-box h1 { font-size: 24px; }
    .menu-subtitle { margin: 4px 0 10px; }
    .diff-container { margin-bottom: 10px; }
    .diff-btn { padding: 7px 5px; font-size: 13px; }
    .rules-list { font-size: 12px; margin-bottom: 12px; padding-top: 6px; padding-bottom: 6px; }
    .rules-list li { margin-bottom: 4px; }
    .rules-list.stats-list { padding: 8px 14px; margin: 8px auto 12px; }
    .rules-list.stats-list p { margin: 4px 0; font-size: 12px; padding-bottom: 4px; }
    .rules-list.stats-list p b { font-size: 14px; }
    #stars-display { font-size: 26px; margin: 4px 0; }
    #remark-txt { font-size: 17px; margin-bottom: 8px; }
    .btn { font-size: 15px; padding: 10px 20px; margin-bottom: 8px; }
    .sens-row { margin: -2px 0 8px; }
    .sens-step { height: 26px; }
}

/* =========================================================
   Desktop & Large Screens (Responsive 2-column Start Box)
   ========================================================= */

@media (min-width: 768px) {
    .menu-box {
        max-width: 540px;
        padding: 30px;
    }

    .start-box {
        max-width: 860px;
        width: 90%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 34px 38px;
        text-align: left;
        align-items: center;
    }

    .start-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .start-box h1 {
        text-align: left;
        font-size: 36px;
    }

    .start-box .menu-subtitle {
        text-align: left;
        margin-bottom: 18px;
    }

    .start-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .rules-list {
        margin-bottom: 14px;
        font-size: 15px;
        padding: 14px 18px;
    }

    .rules-list li {
        margin-bottom: 8px;
    }
}

@media (min-width: 1200px) {
    .start-box {
        max-width: 960px;
        gap: 36px;
        padding: 40px 46px;
    }

    .start-box h1 {
        font-size: 42px;
    }

    .rules-list {
        font-size: 17px;
        padding: 18px 22px;
    }

    .rules-list b {
        font-size: 15px;
    }

    .rules-list li {
        margin-bottom: 10px;
    }

    .diff-btn {
        padding: 13px 8px;
        font-size: 16px;
    }

    .btn {
        padding: 17px 32px;
        font-size: 19px;
    }
}

