﻿/* ========================================
   1. Base + Layout
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 800px at 50% 45%, #0b1116 0%, #070b0f 55%, #05070a 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("./01_assets/5_background/layers/1_first_layer/parallax-demon-woods-close-trees.png"),
        url("./01_assets/5_background/layers/2_second_layer/parallax-demon-woods-mid-trees.png"),
        url("./01_assets/5_background/layers/3_third_layer/parallax-demon-woods-far-trees.png"),
        url("./01_assets/5_background/layers/parallax-demon-woods-bg.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    filter: blur(6px) brightness(0.55) saturate(0.9);
    transform: scale(1.08);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(70% 55% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.6) 100%);
    mix-blend-mode: multiply;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 2rem;
    text-align: center;
    color: white;
}

.game_screen_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - 2rem);
}

.game_screen_wrapper.is-fullscreen {
    width: 100%;
    height: 100vh;
    background-color: #000;
}

.game_screen_wrapper.is-fullscreen .canvas_stage {
    width: 100%;
    height: 100vh;
}

.game_screen_wrapper.is-fullscreen canvas {
    width: 100%;
    height: 100vh;
    object-fit: contain;
}

canvas {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.canvas_stage {
    position: relative;
    display: block;
    width: min(95vw, 1200px, calc((100vh - 120px) * 1.5));
    aspect-ratio: 3 / 2;
    margin: 0 auto;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

.toggle_button {
    background-color: #ff5a5acc;
    color: rgb(62, 6, 6);

}

.toggle_button:hover {
    background-color: #fba5a580;
    color: #3e0606;

}

.icon_button {
    width: 56px;
    height: 56px;
    padding: 0;
    aspect-ratio: 1;
    /* filter: brightness(0) saturate(100%) invert(91%) sepia(25%) saturate(3866%) hue-rotate(298deg) brightness(111%) contrast(96%); */
    filter: brightness(0) saturate(100%) invert(42%) sepia(59%) saturate(1044%) hue-rotate(320deg) brightness(109%) contrast(107%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.461);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
    text-indent: -9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon_button:hover {
    transform: translateY(-1px);
    border-color: rgb(255, 178, 178);
}

.icon_button:focus-visible {
    outline: 2px solid #ff5a5a;
    outline-offset: 3px;
}

.sound_mute.icon_button {
    background-image: url("./01_assets/10_icons/sound_unmuted.png");
}

.sound_mute.icon_button.is-muted {
    background-image: url("./01_assets/10_icons/sound_muted.png");
}

.icon_button--pause {
    background-image: url("./01_assets/10_icons/pause_menu.png");
}

.sound_container .icon_button {
    /* flex: 0 0 56px; */
}

.toggle_button_wrapper .icon_button {
    flex-shrink: 0;
}

.fullscreen_toggle.icon_button {
    background-image: url("./01_assets/10_icons/fullscreen_on.png");
}

.fullscreen_toggle.icon_button[aria-pressed="true"] {
    background-image: url("./01_assets/10_icons/fullscreen_off.png");
}

.start_gif_hero {
    height: 100px;
}

.start_gif_goblin {
    height: 100px;
}

.gif_wrapper {
    width: 100%;
}

/* ========================================
   Canvas HUD controls
======================================== */
.canvas_ui {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
    pointer-events: none;
}

.canvas_ui .ui_button {
    pointer-events: auto;
    border: none;
    /* background: transparent; */
    padding: 0;
}

.touch_controls {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    width: 95%;
    /* padding: 0 0.5rem; */
    display: none;
    gap: 16px;
    pointer-events: none;
    z-index: 5;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
}

.touch_controls.visible {
    display: flex;
}

.touch_controls__group {
    display: flex;
    gap: 8px;
    justify-content: center;
    pointer-events: auto;
    flex-wrap: wrap;
}

.touch_button {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(201, 14, 39, 0.7);
    /* background: rgba(20, 7, 12, 0.85); */
    background-color: #ff5a5a00;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.touch_controls__actions {
    display: flex;
    gap: 3rem;
}

.touch_controls__movement {
    display: flex;
    gap: 2rem;
}

.attack_touch {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 2rem;
}

.up_down_touch {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: end;
    gap: 2rem;
}

.touch_button.primary {
    border-color: rgba(201, 14, 39, 0.7);
}

.touch_button:active {
    transform: scale(0.95);
}

.touch_button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.touch_button--icon {
    width: 80px;
    height: 80px;
    padding: 0;
    border-radius: 50%;
    text-indent: -9999px;
    background-color: #ff5a5a00;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    border: 2px solid rgba(201, 14, 39, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}



.touch_button--icon.touch_button--attack {
    background-image: url("./01_assets/6_salsa_bottle/sword_pick_up.png");
}

.touch_button--icon.touch_button--holy {
    background-image: url("./01_assets/6_salsa_bottle/bottle_rotation/idle_02/holy_idle_2.png");
}

.touch_button--icon.touch_button--dark {
    background-image: url("./01_assets/6_salsa_bottle/bottle_rotation/idle_01/dark_vfx_splash_idle_1.png");
}

/* ========================================
   2. Sound + toggle row
======================================== */
.toggle_button_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1rem;

}

.sound_container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle_button.is-muted {
    opacity: 0.7;
}

/* .slider_label {
    font-size: 1rem;
    color: #fff;
    text-align: left;
} */

.volume_slider {
    -webkit-appearance: none;
    /* Override default CSS styles */
    appearance: none;
    width: 100%;
    /* Full-width */
    height: 1rem;
    /* Specified height */
    background: #ff9292;
    /* Grey background */
    outline: none;
    /* Remove outline */
    opacity: 0.7;
    /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s;
    /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

/* Mouse-over effects */
.volume_slider:hover {
    opacity: 1;
    /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Override default look */
    appearance: none;
    width: 1rem;
    /* Set a specific slider handle width */
    height: 1rem;
    /* Slider handle height */
    background: #ff5a5a;
    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

.volume_slider::-moz-range-thumb {
    width: 1rem;
    /* Set a specific slider handle width */
    height: 1rem;
    /* Slider handle height */
    background: #ff5a5a;

    /* Green background */
    cursor: pointer;
    /* Cursor on hover */
}

/* ========================================
   3. Pause overlay
======================================== */
#pause-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 24px; */
    /* background-color: rgba(0, 0, 0, 0.8); */
    background-color: rgba(20, 5, 7, 0.9);
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease;
}

#pause-screen.visible {
    display: flex;
    opacity: 1;
}

.pause_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    color: #fff;

    font-size: clamp(2.0rem, 7vw, 3rem);
    color: #ff5a5a;
    letter-spacing: .08em;
    text-shadow: 0 0 12px rgba(255, 90, 90, .4);
    margin-bottom: 1.5rem;
}

.pause_actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pause_actions .toggle_button {
    padding: 16px 32px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ========================================
   5. Modal dialog
======================================== */
.modal_overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 30;
}

.modal_overlay.visible {
    display: flex;
}

.modal_dialog {
    width: min(600px, calc(100% - 32px));
    max-height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1b1b1b;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal_header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ff5a5a;
}

.modal_close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal_close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.modal_body {
    padding: 24px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    /* for Firefox */
    scrollbar-color: #ff5a5a #1b1b1b;
    /* thumb and track */
    flex: 1 1 auto;
    min-height: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}


.modal_body a {
    text-decoration: none;
    color: #ff5a5a;
}

.modal_body::-webkit-scrollbar {
    width: 6px;
    /* super thin */
}

.modal_body::-webkit-scrollbar-track {
    background: #1b1b1b;
    /* match modal background */
    border-radius: 8px;
}

.modal_body::-webkit-scrollbar-thumb {
    background-color: #ff5a5a;
    /* red tone */
    border-radius: 8px;
}

.modal_body::-webkit-scrollbar-thumb:hover {
    background-color: #ff7a7a;
    /* slightly brighter on hover */
}

/* ========================================
   6. Orientation guard
======================================== */
.orientation_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    color: #fff;
    background: rgba(20, 5, 7, 0.7);
    z-index: 20;
}

.orientation_overlay.visible {
    display: flex;
}

.orientation_content {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orientation_content h2 {
    font-size: 1.8rem;
}

.orientation_content p {
    font-size: 1.1rem;
}

/* ========================================
   7. Game overlays
======================================== */
#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(20, 5, 7, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    z-index: 10;
    opacity: 1;
    transition: opacity 1s ease;
}

#start-screen h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: #ff5a5a;
    letter-spacing: .08em;
    text-shadow: 0 0 12px rgba(255, 90, 90, .4);
    margin-bottom: 1.5rem;
}


#start-screen .start_footer {
    font-size: .9rem;
    color: #d7b7bc;
    padding-bottom: 1rem;
}

#start-screen .start_footer a {
    color: #ff5a5a;
    text-decoration: none;
}

#start-screen .start_footer a:hover {
    text-decoration: underline;
}

#end-screen,
#gameover-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease;
}

#end-screen h2,
#gameover-screen h2 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: #ff5a5a;
    letter-spacing: .08em;
    text-shadow: 0 0 12px rgba(255, 90, 90, .4);
    /* margin-bottom: 1.5rem; */
}

#end-screen button,
#gameover-restart-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: rgb(255, 90, 90, 1);
    color: rgb(62, 6, 6);
}

/* DEBUG MODE */
/* #end-screen {
    display: flex !important;
    opacity: 1 !important;
} */

.win_stats {
    /* width: min(540px, 90vw);
    margin: 0 auto 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(12, 20, 45, 0.9), rgba(30, 8, 44, 0.85));
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55); */
    backdrop-filter: blur(8px);
}

.win_stats__time {
    display: flex;
    color: rgb(231, 22, 22);
}

.win_stats__grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    justify-items: start;
    align-items: start;
}

.win_stats__group {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    /* padding: 0.85rem 1rem; */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: start; */
}

.win_stats__group h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff5a5a;
}

.win_stats__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.win_stats__list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #c3c3c3;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
    padding-bottom: 0.2rem;
}

.win_stats__list li span:last-child {
    font-weight: 700;
}

.score_submit {
    /* margin-top: 1.5rem; */
    /* width: min(420px, 90vw); */
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 4, 12, 0.85);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.score_submit__heading {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #f7d8d8;
    text-transform: uppercase;
}

.score_submit__value {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #ff5a5a;
    text-shadow: 0 0 16px rgba(255, 90, 90, 0.35);
}

.score_submit__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.score_submit__label {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #fbecec;
    text-align: center;
}

.score_submit__controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.score_submit__controls input {
    flex: 1;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}

.score_submit__controls .toggle_button {
    flex: 0 0 auto;
    min-width: 150px;
    justify-content: center;
}

.score_submit__status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: #f7d8d8;
}

.score_submit__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.score_submit__actions .toggle_button {
    flex: 0 0 auto;
    min-width: 160px;
    justify-content: center;
}

.leaderboard__list {
    margin-top: 1rem;
    padding-left: 1.25rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.leaderboard__list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-family: "Press Start 2P", monospace;
    letter-spacing: 0.03em;
    color: #e8e0e0;
}

.leaderboard__list li span:last-child {
    color: #ff5a5a;
}

.scoreboard_modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 3, 12, 0.8);
    backdrop-filter: blur(4px);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scoreboard_modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scoreboard_modal__dialog {
    width: min(480px, 90vw);
    max-height: 80vh;
    background: rgba(8, 4, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scoreboard_modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.scoreboard_modal__header h3 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff5a5a;
}

.scoreboard_modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.scoreboard_modal__body {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scoreboard_modal__body::-webkit-scrollbar {
    width: 6px;
}

.scoreboard_modal__body::-webkit-scrollbar-thumb {
    background: rgba(255, 90, 90, 0.5);
    border-radius: 4px;
}

.win_stats__group--highlight {
    grid-column: 1 / -1;
    text-align: center;
    background: rgba(17, 47, 76, 0.55);
    border-color: rgba(142, 240, 255, 0.4);
}

.win_stats__value {
    margin: 0.25rem 0 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #ff5a5a;
}

@media (min-width: 1024px) {
    .game_screen_wrapper {
        /* width: min(1100px, 95vw); */
    }

    .canvas_ui {
        /* top: 2rem;
        right: 2rem;
        gap: 0.75rem; */
    }
}

@media (max-width: 420px) {
    .modal_overlay {
        align-items: flex-start;
        padding: 12px;
    }

    .modal_dialog {
        width: 100%;
        max-height: calc(100dvh - 32px);
        border-radius: 12px;
    }

    .modal_body {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .win_stats {
        padding: 1rem;
    }

    .win_stats__grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 932px) {
    .touch_controls {
        /* background-color: #000; */
        left: 50%;
        bottom: 1.5rem;
        transform: translateX(-50%);
        width: 95%;
        /* width: min(100%, 420px); */
        height: 100%;
        /* padding: 0 6px; */
        gap: 16px;
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .touch_controls__group {
        gap: 8px;
    }

    .touch_button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        aspect-ratio: 1;
        background-color: #ff5a5a00;
    }

    .touch_controls__actions {
        display: flex;
        gap: 3rem;
    }

    .touch_controls__movement {
        display: flex;
        gap: 2rem;
    }

    .attack_touch {
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 2rem;
    }

    .up_down_touch {
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: end;
        gap: 2rem;
    }
}

/* ========================================
   8. Responsive tweaks
======================================== */
@media (max-width: 932px) {

    body,
    main,
    .game_screen_wrapper {
        width: 100vw;
        /* height: 100svh; */
    }

    .game_screen_wrapper {
        height: 100dvh;
        padding: 16px;
        box-sizing: border-box;
    }

    canvas {
        width: 100%;
        /* height: 100%; */
        /* max-height: calc(100dvh - 200px); */
        min-height: 200px;
        border-radius: 12px;
    }

    .canvas_stage {
        position: relative;
        display: block;
        width: min(95vw, 1200px, calc((100vh) * 1.5));
        aspect-ratio: 3 / 2;
        margin: 0 auto;
        /* display: flex;
        justify-content: center;
        align-items: center; */
    }

    .start_footer {
        padding-bottom: 0.5rem;
    }

    #start-screen,
    #pause-screen,
    #end-screen,
    #gameover-screen,
    #orientation-overlay {
        border-radius: 12px;
        /* display: flex;

        justify-content: center;
        align-items: center; */
    }

    .pause_content {
        /* background-color: #3e0606; */
        height: 100svh;
        gap: 0.3rem;
        margin-bottom: 0.2rem;

    }

    .icon_button {
        width: 32px;
        height: 32px;
    }

    .pause_actions .toggle_button {
        /* height: 30px; */
        padding: 8px 8px;
        font-size: 1rem;
        cursor: pointer;
    }

    .pause_content h2 {
        font-size: 2rem;
    }

    .sound_mute {
        aspect-ratio: 1;
        height: 32px;
        width: 32px;
    }

    .icon_button {
        /* background-color: #c3c3c3; */
        aspect-ratio: 1;
        height: 32px;
        width: 32px;
    }

    .touch_controls {

        /* background-color: #000; */
        left: 50%;
        bottom: 0.5rem;
        transform: translateX(-50%);

        /* width: min(100%, 420px); */
        height: 100%;
        /* padding: 0 6px; */
        gap: 16px;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .touch_controls__group {
        gap: 8px;
    }

    .touch_button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        aspect-ratio: 1;
        background-color: #ff5a5a00;
    }

    .touch_controls__actions {
        display: flex;
        gap: 2rem;
    }

    .attack_touch {
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 1.5rem;
    }

    .up_down_touch {
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: end;
        gap: 0.5rem;
    }
}