.text-primary {
    color: #EA71CE !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-accent {
    color: #8638B9 !important;
}

/* Score Display Colors */
#current-score {
    color: #EA71CE !important;
    font-weight: bold !important;
}

#high-score {
    color: #8638B9 !important;
    font-weight: bold !important;
}

.text-tertiary {
    color: var(--color-tertiary) !important;
}

.text-quaternary {
    color: var(--color-quaternary) !important;
}

.text-quinary {
    color: var(--color-quinary) !important;
}

.text-white {
    color: var(--color-text-white) !important;
}

.text-black {
    color: var(--color-text-black) !important;
}

.text-gray {
    color: var(--color-text-secondary) !important;
}

.bg-primary {
    background-color: #2e5b3c !important;
}

.bg-secondary {
    background-color: #2e5b3c !important;
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

.bg-tertiary {
    background-color: var(--color-tertiary) !important;
}

.bg-quaternary {
    background-color: var(--color-quaternary) !important;
}

.bg-quinary {
    background-color: var(--color-quinary) !important;
}

.bg-white {
    background-color: var(--color-bg-secondary) !important;
}

.bg-transparent {
    background-color: var(--color-bg-transparent) !important;
}

.border-primary {
    border-color: #2e5b3c !important;
}

.border-secondary {
    border-color: var(--color-secondary) !important;
}

.border-accent {
    border-color: var(--color-accent) !important;
}

.border-white {
    border-color: var(--color-border-white) !important;
}

.border-light {
    border-color: var(--color-border-light) !important;
}

.shadow-primary {
    box-shadow: 0 4px 0 var(--color-shadow-primary) !important;
}

.shadow-secondary {
    box-shadow: 0 4px 0 var(--color-secondary) !important;
}

.shadow-accent {
    box-shadow: 0 4px 0 var(--color-accent) !important;
}

.title-main {
    font-family: "Baloo 2", cursive;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #fba1a9;
}

@media (min-width: 768px) {
    .title-main {
        font-size: 3rem;
    }
}

.title-section {
    font-family: "Baloo 2", cursive;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 1.5px;
    color: #fba1a9;
}

@media (min-width: 768px) {
    .title-section {
        font-size: 3rem;
    }
}

.title-subtitle {
    font-family: "Baloo 2", cursive;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 1px;
    color: #fba1a9;
}

.nav-text {
    font-family: "Baloo 2", cursive;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

@media (min-width: 1280px) {
    .nav-text {
        font-size: 1rem;
    }
}

.btn-text {
    font-family: "Baloo 2", cursive;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    /* White text for buttons */
}

/* Action Button Text Colors */
.nav-btn.bg-secondary {
    color: #ffffff !important;
    /* White text for secondary background */
}

.nav-btn.bg-white {
    color: #2D1B69 !important;
    /* Dark text for white background */
}

.nav-btn.bg-primary {
    color: #ffffff !important;
    /* White text for primary background */
}

.nav-btn.bg-accent {
    color: #ffffff !important;
    /* White text for accent background */
}

/* Override for specific button backgrounds */
button.nav-btn.bg-secondary,
button.nav-btn.bg-primary,
button.nav-btn.bg-accent {
    color: #ffffff !important;
    /* Force white text */
}

button.nav-btn.bg-white {
    color: #ffffff !important;
    /* White text for white background */
}

/* Specific override for CA ADDRESS button */
#copy-ca-btn {
    color: #ffffff !important;
    /* Force white text */
    background-color: #2D1B69 !important;
    /* Dark background for contrast */
}

.body-text {
    font-family: 'Dokdo', cursive;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #ffffff;
}

.small-text {
    font-family: 'Dokdo', cursive;
    font-weight: 400;
    font-size: 1.3125rem;
    /* 0.875rem * 1.5 */
    line-height: 1.4;
    color: #ffffff;
}

:root {
    --color-primary: #2D1B69;
    --color-secondary: #FFE066;
    --color-accent: #FF9BB3;
    --color-tertiary: #FFB366;
    --color-quaternary: #D4A5FF;
    --color-quinary: #A5FFA5;
    --color-bg-primary: #E8F4FD;
    --color-bg-secondary: #FFFFFF;
    --color-bg-dark: #2D1B69;
    --color-bg-transparent: transparent;
    --color-text-primary: #2D1B69;
    --color-text-secondary: #6B7280;
    --color-text-white: #FFFFFF;
    --color-text-black: #000000;
    --color-border-primary: #2D1B69;
    --color-border-light: #E5E7EB;
    --color-border-white: #FFFFFF;
    --color-shadow-primary: #2D1B69;
    --color-shadow-light: rgba(0, 0, 0, 0.1);
}

html,
body {
    background-image: url("../bg.png") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-color: transparent !important;
}

body {
    background-image: url("../bg.png") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-color: transparent !important;
    min-height: 100vh !important;
}

section {
    background: transparent !important;
}

.bg-white,
.bg-sky,
.bg-gray-100 {
    background: transparent !important;
}

.bg-image {
    background-color: rgb(255, 0, 0) !important;
    background-image: url("./bg.png") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 100vh !important;
}

.bg-image-alt1 {
    background-image: url("../bg.png") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 100vh !important;
}

.bg-image-alt2 {
    background-image: url("/bg.png") !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 100vh !important;
}

.sky-grid {
    background: linear-gradient(transparent 95%, rgba(45, 27, 105, 0.15) 95%) 0% 0% / 80px 80px, linear-gradient(90deg, transparent 95%, rgba(45, 27, 105, 0.15) 95%) rgb(232, 244, 253);
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    animation: 20s linear 0s infinite normal none running drift;
}

.cloud::before {
    content: "";
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud::after {
    content: "";
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud-1 {
    width: 80px;
    height: 30px;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 100px;
    height: 40px;
    top: 40%;
    left: -120px;
    animation-delay: -5s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-2::after {
    width: 70px;
    height: 50px;
    top: -20px;
    right: 15px;
}

.cloud-3 {
    width: 60px;
    height: 25px;
    top: 60%;
    left: -80px;
    animation-delay: -10s;
}

.cloud-3::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 8px;
}

.cloud-3::after {
    width: 45px;
    height: 30px;
    top: -12px;
    right: 8px;
}

.cloud-4 {
    width: 90px;
    height: 35px;
    top: 80%;
    left: -110px;
    animation-delay: -15s;
}

.cloud-4::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 12px;
}

.cloud-4::after {
    width: 65px;
    height: 45px;
    top: -18px;
    right: 12px;
}

@keyframes drift {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100px + 100vw));
    }
}

.marquee {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    overflow: hidden;
    transform: translateZ(0px);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    animation-play-state: running;
}

.marquee>div {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: 20s linear 0s infinite normal none running marquee-scroll;
}

.marquee.reverse>div {
    animation: 20s linear 0s infinite normal none running marquee-scroll-reverse;
}

/* Hover effect disabled for gallery marquees */

.marquee img {
    backface-visibility: hidden;
    transform: translateZ(0px);
    flex-shrink: 0;
}

#gallery .overflow-hidden {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden !important;
    width: 100vw !important;
    padding: 0px !important;
}

#gallery .marquee {
    left: 0px;
    right: 0px;
    margin-left: 0px;
    margin-right: 0px;
    width: 100vw !important;
    overflow: visible !important;
}

#gallery .marquee>div {
    width: max-content !important;
    min-width: 200vw;
    display: flex;
    flex-shrink: 0;
}

#gallery {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: none !important;
}

#gallery * {
    max-width: none !important;
}

#gallery .marquee img {
    flex-shrink: 0 !important;
    width: 128px !important;
    height: 128px !important;
}

#gallery .marquee .space-x-8 {
    gap: 0px !important;
}

#gallery .marquee .space-x-8>* {
    margin-right: 2rem !important;
}

#gallery .marquee .space-x-8> :last-child {
    margin-right: 0px !important;
}

#gallery .marquee>div:first-child {
    margin-right: 2rem !important;
}

#gallery .marquee>div:last-child {
    margin-left: 0px !important;
}

.gallery-marquee {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    overflow: hidden;
    transform: translateZ(0px);
    animation: 20s linear 0s infinite normal none running marquee-scroll !important;
}

.gallery-marquee.reverse {
    animation: 20s linear 0s infinite normal none running marquee-scroll-reverse !important;
}

.gallery-marquee:hover {
    animation-play-state: paused !important;
}

#gallery .marquee {
    animation: 15s linear 0s infinite normal none running marquee-scroll !important;
}

#gallery .marquee.reverse {
    animation: 15s linear 0s infinite normal none running marquee-scroll-reverse !important;
}

/* Gallery marquee hover effect disabled */

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

.social-icon {
    transition: transform 0.3s, filter 0.3s;
    filter: brightness(0) invert(1);
    /* Makes images white */
}

.social-icon:hover {
    transform: translateY(-5px);
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .text-outline {
        letter-spacing: 0.5px;
    }

    .title-main {
        letter-spacing: 1px;
    }

    .title-section {
        letter-spacing: 1px;
    }

    .sky-grid {
        background-size: 60px 60px;
    }

    .cloud {
        animation-duration: 15s;
    }

    .marquee:not(.marquee-banner):not(.running-text-footer) {
        animation-duration: 12s;
    }

    .marquee.reverse:not(.marquee-banner):not(.running-text-footer) {
        animation-duration: 12s;
    }

    .marquee:not(.marquee-banner):not(.running-text-footer) img {
        width: 24vw;
        height: 24vw;
        min-width: 80px;
        min-height: 80px;
        max-width: 120px;
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .title-main {
        letter-spacing: 0.5px;
    }

    .title-section {
        letter-spacing: 0.5px;
    }

    .marquee:not(.marquee-banner):not(.running-text-footer) img {
        width: 20vw;
        height: 20vw;
        min-width: 60px;
        min-height: 60px;
        max-width: 100px;
        max-height: 100px;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Font Dokdo for small text elements */
p,
.text-sm,
.text-xs,
.text-base,
.text-lg,
.description,
.caption,
.label,
.helper-text,
.marquee-banner span,
.running-text-footer span,
.game-instructions,
.score-label,
.score-value {
    font-family: 'Dokdo', cursive !important;
    font-size: 1.15em !important;
    /* Reduced from 1.5em to 1.15em (1.3x smaller) */
}

/* Override specific text elements */
#gallery p,
#about p,
#community p,
footer p,
.game-instructions p {
    font-family: 'Dokdo', cursive !important;
    font-size: 1.5em !important;
}

/* Additional text elements for Dokdo font */
.text-gray-600,
.text-gray-500,
.text-gray-400,
.text-secondary,
.text-tertiary,
.text-quaternary,
.helper-text,
.subtitle,
.meta-text {
    font-family: 'Dokdo', cursive !important;
    font-size: 1.5em !important;
}

/* Game section text elements */
.game-instructions kbd,
.score-display,
.game-controls {
    font-family: 'Dokdo', cursive !important;
    font-size: 1.5em !important;
}

/* Preloader Background */
.preloader-bg {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Ensure all marquees run infinitely and smoothly */
.marquee {
    animation-fill-mode: none;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: normal;
}

/* Text marquees use JavaScript - disable CSS animation */
.marquee-banner,
.running-text-footer {
    animation: none !important;
    animation-fill-mode: none;
    animation-iteration-count: none;
    animation-timing-function: none;
    animation-direction: none;
}

.marquee>div {
    animation-fill-mode: none;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: normal;
}

/* Text marquees use JavaScript - disable CSS animation */
.marquee-banner,
.running-text-footer {
    animation: none !important;
    animation-fill-mode: none;
    animation-iteration-count: none;
    animation-timing-function: none;
    animation-direction: none;
}

/* Gallery marquee specific optimizations */
#gallery .marquee {
    /* CSS animation disabled - using JavaScript instead */
    animation: none !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#gallery .marquee.reverse {
    /* CSS animation disabled - using JavaScript instead */
    animation: none !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#gallery .marquee>div {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(241, 241, 241);
}

::-webkit-scrollbar-thumb {
    background: rgb(255, 224, 102);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(255, 155, 179);
}

button {
    transition: 0.2s;
}

button:active {
    transform: translateY(2px);
    box-shadow: rgb(45, 27, 105) 0px 2px 0px;
}

nav {
    background: var(--color-secondary) !important;
}

@supports (backdrop-filter: blur(10px)) {
    nav {
        backdrop-filter: blur(10px);
        background: var(--color-secondary) !important;
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0px, 0px, 0px);
    }

    40%,
    43% {
        transform: translate3d(0px, -15px, 0px);
    }

    70% {
        transform: translate3d(0px, -7px, 0px);
    }

    90% {
        transform: translate3d(0px, -2px, 0px);
    }
}

button:focus,
a:focus {
    outline: rgb(255, 224, 102) solid 2px;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .text-outline {
        color: rgb(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .cloud,
    .animate-bounce {
        animation: auto ease 0s 1 normal none running none;
    }

    .hover\:scale-105:hover {
        transform: none;
    }
}

.banner-marquee-container {
    margin-top: 80px;
    overflow: hidden;
    position: relative;
}

.banner-marquee-container .marquee-banner {
    position: relative;
    left: 0;
    top: 0;
}

.marquee-banner,
.running-text-footer {
    display: flex;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    overflow: hidden;
    transform: translateZ(0px);
    /* CSS animation disabled - using JavaScript instead */
    animation: none !important;
    animation-play-state: running;
}

@keyframes marquee-text {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-banner span,
.running-text-footer span {
    flex-shrink: 0;
    display: inline-block;
    backface-visibility: hidden;
}

/* Footer marquee container */
.bg-primary:has(.running-text-footer) {
    overflow: hidden;
    position: relative;
}

.running-text-footer {
    position: relative;
    left: 0;
    top: 0;
}

.nav-btn {
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: bold;
    color: black;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: black 0px 2px 0px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: black 0px 4px 0px;
    background: rgb(240, 240, 240);
}

.nav-btn:active {
    transform: translateY(0px);
    box-shadow: black 0px 2px 0px;
}

@media (max-width: 1280px) {
    .nav-btn {
        padding: 4px 8px;
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .nav-btn {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 2px 4px;
        font-size: 0.625rem;
    }
}

.pou-logo-text {
    transition: transform 0.3s;
}

.pou-logo-text:hover {
    transform: scale(1.05);
}

.pou-logo-text span {
    /* font-weight: 900; */
    /* text-shadow: rgb(45, 27, 105) 2px 2px 0px; */
    /* -webkit-text-stroke: 1px rgb(45, 27, 105); */
    color: #ffffff !important;
    /* Force white color */
    /* letter-spacing: -2px; */
    font-family: "Baloo 2", cursive;
}

.social-icon-small {
    transition: transform 0.3s;
}

.social-icon-small:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon-large {
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.social-icon-large:hover {
    transform: translateY(-5px);
}

.social-icon-large .social-icon {
    filter: brightness(0) invert(1);
    /* Makes images white */
    transition: filter 0.3s ease;
}

.social-icon-large:hover .social-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.social-icon-large span {
    color: rgb(45, 27, 105);
    font-weight: 600;
}

.pou-character {
    /* Hover effects removed */
}

.pou-character img {
    /* Shadow and hover effects removed */
}

.vertical-pou {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@media (max-width: 768px) {
    .vertical-pou {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }
}

nav {
    overflow: hidden;
}

.navbar-container {
    overflow: auto hidden;
}

.navbar-container::-webkit-scrollbar {
    display: none;
}


@media (max-width: 1024px) {
    .nav-btn {
        min-width: auto;
        flex-shrink: 1;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        min-width: auto;
        flex-shrink: 1;
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}

.bg-black {
    background-color: rgb(45, 27, 105) !important;
}

.text-white {
    color: rgb(255 255 255) !important;
}

/* ========================================
   POU GAME STYLING
   ======================================== */

/* Game Container */
.game-container {
    position: relative;
    background: var(--color-bg-secondary) !important;
    border: 4px solid #2D5016 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 0 #2D5016 !important;
    padding: 24px !important;
    max-width: 800px;
    margin: 0 auto;
}

/* Game Canvas Wrapper */
.game-canvas-wrapper {
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid #2D5016 !important;
}

/* Game Canvas */
#pou-game-canvas {
    display: block !important;
    width: 100% !important;
    height: 400px !important;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%) !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

/* Game Over Overlay */
#game-over-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

#game-over-overlay.hidden {
    display: none !important;
}

/* Game Controls */
.game-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
}

@media (min-width: 640px) {
    .game-controls {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
}

/* Score Display */
.score-display {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.score-item {
    text-align: center !important;
}

.score-label {
    font-size: 0.875rem !important;
    color: var(--color-text-secondary) !important;
    margin-bottom: 4px !important;
}

.score-value {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--color-primary) !important;
    font-family: 'Baloo 2', cursive !important;
}

.high-score-value {
    color: var(--color-accent) !important;
}

/* Game Buttons */
.game-btn {
    background: var(--color-primary) !important;
    color: var(--color-text-white) !important;
    border: 2px solid var(--color-primary) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: 'Baloo 2', cursive !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.game-btn:hover {
    background: var(--color-secondary) !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 0 var(--color-primary) !important;
}

.game-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 0 var(--color-primary) !important;
}

.game-btn.hidden {
    display: none !important;
}

/* Jump Button Special Styling */
#jump-btn {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    animation: pulse 2s infinite !important;
}

#jump-btn:hover {
    background: var(--color-quaternary) !important;
    color: var(--color-text-white) !important;
}

/* Game Instructions */
.game-instructions {
    text-align: center !important;
    margin-top: 16px !important;
}

.game-instructions kbd {
    display: inline-block !important;
    padding: 4px 8px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-family: monospace !important;
    color: var(--color-text-primary) !important;
    box-shadow: 0 1px 0 #9ca3af !important;
}

/* Game Character and Obstacles */
.game-character {
    position: absolute !important;
    z-index: 5 !important;
}

.game-obstacle {
    position: absolute !important;
    z-index: 3 !important;
}

.game-ground {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
}

.game-cloud {
    position: absolute !important;
    z-index: 1 !important;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes jump {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-container {
        padding: 16px !important;
        margin: 0 16px !important;
    }

    #pou-game-canvas {
        height: 300px !important;
    }

    .score-display {
        gap: 16px !important;
    }

    .score-value {
        font-size: 1.25rem !important;
    }

    .game-btn {
        padding: 10px 20px !important;
        font-size: 0.875rem !important;
    }
}