/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background: url('../../../assets/images/code kingdom the sintaxia.png') center/cover no-repeat fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(180, 100, 0, 0.2) 0%, rgba(220, 160, 60, 0.1) 50%, rgba(180, 100, 0, 0.2) 100%);
    z-index: 0;
}

/* Cloud Background Animation */
.cloud-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    background-image: url('../../../assets/images/cloud.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    animation: float linear infinite;
}

.cloud1 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: -250px;
    animation-duration: 30s;
}

.cloud2 {
    width: 200px;
    height: 200px;
    top: 25%;
    left: -200px;
    animation-duration: 45s;
    animation-delay: 5s;
}

.cloud3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -300px;
    animation-duration: 40s;
    animation-delay: 10s;
}

.cloud4 {
    width: 350px;
    height: 350px;
    top: 70%;
    left: -350px;
    animation-duration: 50s;
    animation-delay: 3s;
}

.cloud5 {
    width: 225px;
    height: 225px;
    top: 85%;
    left: -225px;
    animation-duration: 35s;
    animation-delay: 8s;
}

@keyframes float {
    from {
        left: -400px;
    }
    to {
        left: 100%;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Floating orb 1 */
@keyframes orb-float {
    0%   { transform: translate(0, 0) scale(1);           }
    25%  { transform: translate(20px, -30px) scale(1.12); }
    50%  { transform: translate(40px, 10px) scale(0.95);  }
    75%  { transform: translate(10px, 35px) scale(1.08);  }
    100% { transform: translate(0, 0) scale(1);           }
}

/* Floating orb 2 */
@keyframes orb-float-alt {
    0%   { transform: translate(0, 0) scale(1);            }
    30%  { transform: translate(-25px, 20px) scale(1.15);  }
    60%  { transform: translate(18px, -25px) scale(0.9);   }
    100% { transform: translate(0, 0) scale(1);            }
}

/* Floating orb 3 */
@keyframes orb-float-3 {
    0%   { transform: translate(0, 0) scale(1);            }
    40%  { transform: translate(28px, -18px) scale(1.1);   }
    80%  { transform: translate(-12px, 28px) scale(0.92);  }
    100% { transform: translate(0, 0) scale(1);            }
}

/* Floating orb 4 */
@keyframes orb-float-4 {
    0%   { transform: translate(0, 0) scale(1);             }
    35%  { transform: translate(-28px, -22px) scale(1.18);  }
    70%  { transform: translate(22px, 18px) scale(0.88);    }
    100% { transform: translate(0, 0) scale(1);             }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

/* Desktop Container */
.desktop-container {
    display: none;
    position: center;
    width: 100%;
    max-width: 64rem;
    z-index: 10;
}

/* Main Card */
.main-card {
    position: relative;
    background: white;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #f3f4f6;
    height: 500px;
}

/* Orb 1 — top-left */
.main-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 112, 48, 0.35) 0%, rgba(184, 112, 48, 0.1) 50%, transparent 70%);
    top: -80px;
    left: -60px;
    pointer-events: none;
    z-index: 1;
    animation: orb-float 8s ease-in-out infinite;
}

/* Orb 2 — bottom-center */
.main-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 90, 32, 0.30) 0%, rgba(154, 90, 32, 0.08) 50%, transparent 70%);
    bottom: -60px;
    left: 80px;
    pointer-events: none;
    z-index: 1;
    animation: orb-float-alt 11s ease-in-out infinite;
}

/* Form Containers */
.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Orb 3 — mid-right of white area */
.form-container.left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 140, 60, 0.28) 0%, rgba(210, 140, 60, 0.08) 50%, transparent 70%);
    bottom: 50px;
    right: -30px;
    pointer-events: none;
    z-index: 0;
    animation: orb-float-3 13s ease-in-out infinite;
}

/* Orb 4 — top-right of white area */
.form-container.left::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 90, 20, 0.25) 0%, rgba(160, 90, 20, 0.07) 50%, transparent 70%);
    top: 40px;
    right: 20px;
    pointer-events: none;
    z-index: 0;
    animation: orb-float-4 10s ease-in-out infinite 1.5s;
}

.form-container.left {
    left: 0;
}

.form-container.right {
    right: 0;
    padding-top: 2rem;
}

/* Orb 3b — bottom-left of sign up area */
.form-container.right::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 140, 60, 0.28) 0%, rgba(210, 140, 60, 0.08) 50%, transparent 70%);
    bottom: 50px;
    left: -30px;
    pointer-events: none;
    z-index: 0;
    animation: orb-float-3 12s ease-in-out infinite 0.8s;
}

/* Orb 4b — top-left of sign up area */
.form-container.right::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 90, 20, 0.25) 0%, rgba(160, 90, 20, 0.07) 50%, transparent 70%);
    top: 40px;
    left: 20px;
    pointer-events: none;
    z-index: 0;
    animation: orb-float-4 9s ease-in-out infinite 2.5s;
}

.form-container.show {
    opacity: 1;
    pointer-events: auto;
}

.form-container.hide {
    opacity: 0;
    pointer-events: none;
}

/* Form Inner */
.form-inner {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

/* Headings */
.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-divider {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Forms */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sign-up-row {
    display: flex;
    gap: 0.75rem;
}

.sign-up-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sign-up-field .other-input {
    margin-top: 0;
}

/* ── Custom Dropdown ── */
.sign-up-field select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b87030' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.sign-up-field select.input-field option {
    background: white;
    color: #1f2937;
}

/* Error Messages */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 1rem;
    padding: 0.75rem;
    display: none;
}

.error-box.show {
    display: flex;
    align-items: center;
}

.error-icon {
    color: #ef4444;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.error-text {
    color: #991b1b;
    font-size: 0.875rem;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    outline: none;
    transition: all 0.2s;
    background: #f9fafb;
    font-size: 0.875rem;
}

.input-field:hover {
    background: white;
}

.input-field:focus {
    outline: none;
    ring: 2px;
    ring-color: #ff8c00;
    border-color: transparent;
    box-shadow: 0 0 0 2px #ff8c00;
}

.input-field.large {
    padding: 0.75rem 1rem;
    padding-right: 3rem;
}

.input-field.small {
    padding: 0.5rem 0.75rem;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.password-toggle:hover svg {
    color: #4b5563;
}

.password-toggle.small svg {
    width: 1rem;
    height: 1rem;
}

/* Buttons */
.btn {
    width: 100%;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    transition: all 0.1s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    height: 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #3a1a00;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.25);
    background: linear-gradient(
        to bottom,
        #d4913d 0%,
        #c07830 20%,
        #a86020 40%,
        #925010 60%,
        #7e4208 80%,
        #6c3605 100%
    );
    border-radius: 12px;
    box-shadow: 
        0 4px 0 #5a2e04,
        0 6px 0 #3d1e02,
        0 8px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 12px 12px 0 0;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(139, 90, 43, 0.1) 30px,
            rgba(139, 90, 43, 0.1) 32px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(139, 90, 43, 0.05) 8px,
            rgba(139, 90, 43, 0.05) 10px
        );
    border-radius: 12px;
    pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    background: linear-gradient(
        to bottom,
        #e0a050 0%,
        #cc8840 20%,
        #b87030 40%,
        #a05820 60%,
        #8a4812 80%,
        #763c08 100%
    );
    box-shadow: 
        0 7px 0 #5a2e04,
        0 9px 0 #3d1e02,
        0 12px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 #5a2e04,
        0 2px 0 #3d1e02,
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.15),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: scale(1);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-text {
    background: transparent;
    border: none;
    color: #a86020;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #c07830;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.btn-loader.show {
    display: block;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Orange Panel */
.green-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(160deg, #b87030 0%, #9a5a20 45%, #7e4510 100%);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.green-panel.right {
    left: 50%;
    border-radius: 3rem 0 0 3rem;
}

.green-panel.left {
    left: 0;
    border-radius: 0 3rem 3rem 0;
}

/* Panel Decorations */
.panel-decoration-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    opacity: 0.1;
    transform: rotate(-12deg) translate(-4rem, -4rem);
}

.panel-decoration-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12rem;
    height: 12rem;
    opacity: 0.1;
    transform: rotate(12deg) translate(3rem, 3rem);
}

.decoration-circle {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
}

/* Panel Content */
.panel-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Logo Container */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box.small {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-img.small {
    width: 4rem;
    height: 4rem;
}

.logo-fallback {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    display: none;
}

.logo-fallback.small {
    font-size: 1.5rem;
}

/* Promotion Container */
.promotion-container {
    position: relative;
    height: 12rem;
}

.promotion-content {
    position: absolute;
    inset: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.promotion-content.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.promotion-content.hide-left {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-2rem);
}

.promotion-content.hide-right {
    opacity: 0;
    pointer-events: none;
    transform: translateX(2rem);
}

.promotion-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promotion-text {
    color: rgba(255, 235, 200, 0.85);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.625;
}

.btn-panel {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3a1a00;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
    background: linear-gradient(
        to bottom,
        #e8c88a 0%,
        #d4aa60 25%,
        #c09040 50%,
        #a87828 75%,
        #906218 100%
    );
    border: none;
    border-radius: 10px;
    box-shadow:
        0 4px 0 #6a4010,
        0 6px 0 #4a2c08,
        0 8px 14px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    padding: 0.65rem 2.5rem;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: all 0.1s ease;
    letter-spacing: 0.05em;
}

.btn-panel:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        to bottom,
        #f0d49a 0%,
        #deba70 25%,
        #ca9a50 50%,
        #b08238 75%,
        #986a28 100%
    );
    box-shadow:
        0 6px 0 #6a4010,
        0 8px 0 #4a2c08,
        0 12px 18px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.btn-panel:active {
    transform: translateY(4px);
    box-shadow:
        0 1px 0 #6a4010,
        0 2px 0 #4a2c08,
        0 3px 6px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Mobile Container */
.mobile-container {
    display: block;
    position: relative;
    width: 100%;
    max-width: 28rem;
    z-index: 10;
}

.mobile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* Mobile Header */
.mobile-header {
    background: linear-gradient(to right, #ff8c00, #ffa500, #ffb733);
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.mobile-header-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    opacity: 0.1;
    transform: rotate(12deg) translate(1.5rem, -1.5rem);
}

.mobile-header-content {
    position: relative;
    z-index: 10;
}

.mobile-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mobile-subtitle {
    color: #ffe4b3;
    font-size: 0.875rem;
}

/* Mobile Tabs */
.mobile-tabs {
    padding: 1.25rem;
}

.tab-buttons {
    display: flex;
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.5s;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
}

.tab-btn.active {
    background: white;
    color: #ff8c00;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile Forms */
.mobile-form-container {
    position: relative;
    overflow: hidden;
}

.mobile-form {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-form.show {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.mobile-form.hide-left {
    opacity: 0;
    transform: translateX(-100%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mobile-form.hide-right {
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mobile-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-form .input-field {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.mobile-form .input-field:focus {
    box-shadow: 0 0 0 2px #ff8c00;
    border-color: #ff8c00;
}

.mobile-form .error-box {
    border-radius: 0.75rem;
    padding: 0.625rem;
}

.mobile-form .error-icon {
    font-size: 0.75rem;
}

.mobile-form .error-text {
    font-size: 0.75rem;
}

.mobile-form .btn {
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

/* Mobile Footer */
.mobile-footer {
    margin-top: 2rem;
    text-align: center;
}

.mobile-footer p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ══════════════════════════════════════════════════════════════════
   GAME THEMED ERROR / SUCCESS MODAL
   ══════════════════════════════════════════════════════════════════ */

.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 0, 0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.game-modal.active {
    display: flex;
}

.game-modal-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(380px, 90vw);
}

.game-modal-title-banner {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #F5DEB3;
    border: 2.5px solid #6B4423;
    border-radius: 6px;
    padding: 6px 24px;
    box-shadow: 2px 2px 0 #6B4423, 0 2px 8px rgba(0,0,0,0.18);
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #1A0E05;
    letter-spacing: 2px;
    white-space: nowrap;
}

.game-modal-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid #6B4423;
    background: #C49A6C;
    color: #1A0E05;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 #5A3A1E;
    transition: background 0.18s, color 0.18s, transform 0.15s;
    font-family: 'Press Start 2P', cursive;
}

.game-modal-close-btn:hover {
    background: #6B4423;
    color: #F5DEB3;
    transform: scale(1.1);
}

.game-modal-content {
    width: 100%;
    background: linear-gradient(to bottom, #E8C896 0%, #C49A6C 50%, #8B6B4A 100%);
    border-radius: 12px;
    padding: 40px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 0 0 3px #6B4423,
        0 0 0 6px #C49A6C,
        0 16px 50px rgba(0,0,0,0.55),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.game-modal-icon {
    font-size: 40px;
    line-height: 1;
}

.game-modal-message {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #1A0E05;
    text-align: center;
    line-height: 1.7;
    margin: 0;
    word-break: break-word;
}

.game-modal-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    font-weight: 700;
    color: #3a1a00;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.25);
    background: linear-gradient(
        to bottom,
        #d4913d 0%,
        #c07830 20%,
        #a86020 40%,
        #925010 60%,
        #7e4208 80%,
        #6c3605 100%
    );
    border: none;
    border-radius: 10px;
    box-shadow:
        0 4px 0 #5a2e04,
        0 6px 0 #3d1e02,
        0 8px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    padding: 12px 40px;
    cursor: pointer;
    position: relative;
    transition: all 0.1s ease;
    letter-spacing: 0.05em;
    min-width: 120px;
}

.game-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 10px 10px 0 0;
}

.game-modal-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        to bottom,
        #e0a050 0%,
        #cc8840 20%,
        #b87030 40%,
        #a05820 60%,
        #8a4812 80%,
        #763c08 100%
    );
    box-shadow:
        0 6px 0 #5a2e04,
        0 8px 0 #3d1e02,
        0 12px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.game-modal-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 1px 0 #5a2e04,
        0 2px 0 #3d1e02,
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(0, 0, 0, 0.15),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.flex {
    display: flex;
}

/* Login Footer */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* Responsive */
@media (min-width: 1024px) {
    .desktop-container {
        display: block;
    }
    
    .mobile-container {
        display: none;
    }
}
