/* ===================== LOCAL FONTS ===================== */
@font-face {
    font-family: 'DB Heavent';
    src: url('/fonts/DB Heavent v3.2.1.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('/fonts/DB Heavent Bd v3.2.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Display';
    src: url('/fonts/Funnel_Display/static/FunnelDisplay-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Teal color palette matching background images */
    --teal-dark: #1a5c5a;
    --teal-mid: #2d7d7b;
    --teal-light: #a8e6cf;
    --coral: #ff6b6b;

    /* Dynamic colors (overridden per data-bg) */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.25);
    --border-hover: rgba(255, 255, 255, 0.5);
    --btn-bg: rgba(255, 255, 255, 0.2);
    --btn-bg-hover: rgba(255, 255, 255, 0.35);
    --input-bg: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-bg-hover: rgba(255, 255, 255, 0.2);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== PER-PAGE COLOR THEMES ===================== */
/* bgPage0 & bgPage1: dark teal background → white text */
body[data-bg="0"],
body[data-bg="1"] {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.55);
    --border-color: rgba(255, 255, 255, 0.25);
    --border-hover: rgba(255, 255, 255, 0.5);
    --btn-bg: rgba(255, 255, 255, 0.2);
    --btn-bg-hover: rgba(255, 255, 255, 0.35);
    --input-bg: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-bg-hover: rgba(255, 255, 255, 0.2);
}

/* bgPage2: light mint background → dark teal text */
body[data-bg="2"] {
    --text-primary: #1a4a48;
    --text-secondary: #2d6b69;
    --text-muted: #4a8a88;
    --border-color: rgba(26, 92, 90, 0.25);
    --border-hover: rgba(26, 92, 90, 0.5);
    --btn-bg: rgba(26, 92, 90, 0.15);
    --btn-bg-hover: rgba(26, 92, 90, 0.25);
    --input-bg: rgba(26, 92, 90, 0.08);
    --card-bg: rgba(26, 92, 90, 0.08);
    --card-bg-hover: rgba(26, 92, 90, 0.15);
}

/* bgPage3 & bgPage4: white/cream background → dark teal text */
body[data-bg="3"],
body[data-bg="4"] {
    --text-primary: #1a4a48;
    --text-secondary: #2d6b69;
    --text-muted: #6a9e9c;
    --border-color: rgba(26, 92, 90, 0.2);
    --border-hover: rgba(26, 92, 90, 0.4);
    --btn-bg: rgba(26, 92, 90, 0.12);
    --btn-bg-hover: rgba(26, 92, 90, 0.22);
    --input-bg: rgba(26, 92, 90, 0.06);
    --card-bg: rgba(26, 92, 90, 0.06);
    --card-bg-hover: rgba(26, 92, 90, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    background: transparent;
    color: var(--text-primary);
    position: relative;
}

/* ===================== PAGE BACKGROUNDS ===================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
    transition: opacity 0.6s ease-in-out;
}

/* Dark gradient overlay removed */

/* Page backgrounds controlled via data-bg attribute set by JavaScript */
body[data-bg="0"]::before {
    background-image: url('/assets/bgPage0.jpg');
}

body[data-bg="1"]::before {
    background-image: url('/assets/bgPage1.jpg');
}

body[data-bg="2"]::before {
    background-image: url('/assets/bgPage2.jpg');
}

body[data-bg="3"]::before {
    background-image: url('/assets/bgPage3.jpg');
}

body[data-bg="4"]::before {
    background-image: url('/assets/bgPage4.jpg');
}

/* ===================== GAME CONTAINER ===================== */
.game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bg-info-1 {
    background-image: url('/assets/bgPageCurriculum.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-info-2 {
    background-image: url('/assets/bgPageNetwork.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

}

.bg-info-3 {
    background-image: url('/assets/bgPageFacilitator.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

}

.bg-info-1-2 {
    background-image: url('/assets/bgPageCurriculum_2.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-info-2-2 {
    background-image: url('/assets/bgPageNetwork_2.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-info-3-2 {
    background-image: url('/assets/bgPageFacilitator_2.gif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Responsive background for mobile devices */
@media (max-width: 768px) {

    .bg-info-1,
    .bg-info-2,
    .bg-info-3,
    .bg-info-1-2,
    .bg-info-2-2,
    .bg-info-3-2 {
        background-size: 100% 100%;
        background-position: center top;
        background-attachment: scroll;
    }
}

/* @media (max-width: 480px) and (orientation: portrait) {
    .bg-info-1 {
        background-size: 100% auto;
        background-position: center top;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .bg-info-1 {
        background-size: cover;
        background-position: center center;
    }
} */

.logo-container {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px 0;
}

/* Top 70% for content */
.game-content {
    flex: 0 0 85%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px 20px;
    position: relative;
    scrollbar-width: none;
}

/* Index page specific styles */
.page-menu .game-content { 
    flex: 0%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px 20px;
    position: relative;
    scrollbar-width: none;
} 

.game-content::-webkit-scrollbar {
    display: none;
}

/* Bottom 30% reserved for keyboard */
.keyboard-space {
    flex: 0 0 15%;
    max-height: 15vh;
    /* background removed */
    pointer-events: none;
}

/* ===================== ANIMATED BACKGROUND ===================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-particles .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.bg-particles .orb:nth-child(1) {
    width: 300px;
    height: 300px;
    /* background removed */
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.bg-particles .orb:nth-child(2) {
    width: 200px;
    height: 200px;
    /* background removed */
    top: 50%;
    right: -80px;
    animation-delay: -7s;
}

.bg-particles .orb:nth-child(3) {
    width: 250px;
    height: 250px;
    /* background removed */
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* ===================== HOME BUTTON ===================== */
.home-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.home-btn i {
    color: var(--primary);
    transition: var(--transition);
}

.home-btn:hover {
    background: var(--card-bg-hover);
    transform: scale(1.1);
}

.home-btn:hover i {
    color: var(--accent);
}

.home-btn:active {
    transform: scale(0.95);
}

/* ===================== VIRTUAL KEYBOARD ===================== */
.keyboard-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 74, 72, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    max-height: 50vh;
    overflow-y: auto;
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.keyboard-header span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.keyboard-lang {
    background:rgba(255, 255, 255, 0.226);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyboard-lang:hover {
    background: var(--text-primary);
}

.keyboard-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.keyboard-close:hover {
    color: var(--coral);
    transform: scale(1.1);
}

.simple-keyboard {
    background: transparent;
    padding: 10px;
}

.simple-keyboard .hg-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.simple-keyboard .hg-button:active {
    background: var(--card-bg-hover);
    transform: scale(0.95);
}

.simple-keyboard .hg-button.hg-red {
    background: rgba(255, 107, 107, 0.3);
}

/* ===================== KEYBOARD BUTTON ===================== */
.keyboard-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 1000;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.keyboard-btn i {
    color: var(--primary);
    transition: var(--transition);
}

.keyboard-btn:hover {
    background: var(--card-bg-hover);
    transform: scale(1.1);
}

.keyboard-btn:hover i {
    color: var(--accent);
}

.keyboard-btn:active {
    transform: scale(0.95);
}

/* ===================== SCREEN LOGO ===================== */
.screen-logo {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    max-width: 80px;
    padding: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.screen-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ===================== PAGES ===================== */
.page {
    display: none;
    width: 100%;
    max-width: 700px;
    /* animation: pageIn 0.5s ease-out; */
    position: relative;
    z-index: 1;
}

.page.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================== QUESTION HEADER ===================== */
.question-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    /* background: var(--gradient-1); */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* ===================== OPTION CARDS ===================== */
.options-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    position: relative;
    width: 100%;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-card i {
    font-size: 1.3rem;
    min-width: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    /* background removed */
    opacity: 0;
    transition: var(--transition);
}

.option-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.option-card:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card:active {
    transform: scale(0.97);
}

.option-card.selected {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
}

.option-card.selected::before {
    opacity: 1;
}

/* ===================== TEXT INPUT ===================== */
.text-input-group {
    width: 100%;
    position: relative;
}

.text-input {
    width: 100%;
    padding: 20px 24px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    font-size: 1.5rem;
    resize: none;
    min-height: 150px;
    outline: none;
    transition: var(--transition);
    line-height: 1.6;
}

.text-input::placeholder {
    color: var(--text-muted);
}

.text-input:focus {
    border-color: var(--border-hover);
}

/* ===================== SUBMIT BUTTON ===================== */
.submit-btn {
    width: 100%;
    padding: 20px 24px;
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: var(--btn-bg-hover);
}

.submit-btn:active::after {
    width: 300px;
    height: 300px;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===================== INFO IMAGE PAGE ===================== */
.info-image-container {
    width: 100%;
    max-width: 500px;
    max-height: 35vh;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    /* box-shadow removed */
}

.info-image-container img {
    width: 100%;
    height: 100%;
    max-height: 35vh;
    object-fit: cover;
    display: block;
}

.info-placeholder {
    width: 100%;
    height: 35vh;
    max-height: 300px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-placeholder .icon {
    font-size: 3rem;
    opacity: 0.5;
}

.info-placeholder .icon i {
    color: var(--primary);
}

.continue-btn {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.continue-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===================== MAIN MENU ===================== */
.main-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.menu-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.2);
}

.screen-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.screen-card {
    position: relative;
    width: 100%;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.screen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* card top bar backgrounds removed */

.screen-card:hover {
    transform: translateY(-4px);
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
}

.screen-card:active {
    transform: scale(0.98);
}

.screen-card .card-number {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.screen-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.screen-card .card-title i {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* card title colors removed */

.screen-card .card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================== EXPORT BUTTON ===================== */
.export-section {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
}

.export-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: 'DB Heavent', 'Funnel Display', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.export-btn:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

/* ===================== THANK YOU PAGE ===================== */
.thank-you {
    text-align: center;
}

.thank-you .emoji {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

.thank-you .emoji i {
    color: var(--primary);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.thank-you h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.thank-you p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* ===================== OTHER TEXT INPUT (INLINE) ===================== */
.other-input-row {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.other-input-row .text-input {
    min-height: 80px;
    flex: 1;
    /* font-size: 1.5rem; */
}

.other-input-row .submit-btn {
    width: auto;
    padding: 18px 32px;
    flex-shrink: 0;
    /* font-size: 1.5rem; */
}

/* Hidden other input initially */
.other-input-wrapper {
    display: none;
    width: 100%;
}

.other-input-wrapper.visible {
    display: block;
    animation: pageIn 0.3s ease-out;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 380px) {
    .question-text {
        font-size: 1.5rem;
    }

    .option-card {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .menu-title {
        font-size: 1.8rem;
    }

    .menu-subtitle {
        font-size: 0.9rem;
    }

    .screen-card {
        padding: 18px;
    }

    .screen-card .card-number {
        font-size: 0.7rem;
    }

    .screen-card .card-title {
        font-size: 1.2rem;
    }

    .screen-card .card-title i {
        font-size: 1.1rem;
    }

    .screen-card .card-desc {
        font-size: 0.85rem;
    }

    /* .main-logo {
        max-width: 80px;
        max-height: 80px;
    } */

    .screen-logo {
        max-width: 60px;
        padding: 6px;
    }

    .info-placeholder {
        height: 30vh;
        max-height: 250px;
        font-size: 0.8rem;
    }

    .info-placeholder .icon {
        font-size: 2.5rem;
    }

    .continue-btn {
        padding: 12px 32px;
        font-size: 1rem;
    }
}

/* Specific for 1080x1920 screens */
@media (min-width: 1080px) and (min-height: 1920px) {
    .menu-title {
        font-size: 6rem;
    }

    .home-btn {
        font-size: 3rem;
        padding: 50px;
    }

    .menu-subtitle {
        font-size: 2.8rem;
    }

    .screen-card {
        padding: 60px;
    }

    .screen-card .card-number {
        font-size: 1.8rem;
    }

    .screen-card .card-title {
        font-size: 3.6rem;
    }

    .screen-card .card-title i {
        font-size: 3.4rem;
    }

    .screen-card .card-desc {
        font-size: 2.4rem;
    }

    .main-logo {
        max-width: 500px;
        max-height: 500px;
    }

    .question-text {
        font-size: 4.5rem;
    }

    .question-badge {
        font-size: 4rem;
        padding: 10px 28px;
    }

    .option-card {
        padding: 48px 52px;
        font-size: 3.5rem;
        border-radius: 50px;
    }

    .option-card i {
        font-size: 3.8rem;
        min-width: 48px;
    }

    .text-input {
        padding: 28px 32px;
        font-size: 3rem;
        min-height: 200px;
    }

    .submit-btn {
        padding: 28px;
        font-size: 3.2rem;
    }

    .continue-btn {
        padding: 40px 100px;
        font-size: 3.5rem;
    }

    .info-image-container {
        max-height: 50vh;
    }

    .info-image-container img {
        max-height: 50vh;
    }

    /* Thank you page */
    .thank-you .emoji {
        font-size: 10rem;
        margin-bottom: 32px;
    }

    .thank-you h2 {
        font-size: 4.4rem;
        margin-bottom: 24px;
    }

    .thank-you p {
        font-size: 2.3rem;
    }

    .game-content {
        padding-top: 100px;
    }

    .submit-btn {
        padding: 28px;
        font-size: 3.2rem;
    }

    .continue-btn {
        padding: 25px 80px;
        font-size: 3.3rem;
        border-radius: 90px;
    }

    .info-image-container {
        max-height: 50vh;
    }

    .info-image-container img {
        max-height: 50vh;
    }
}

@media (min-width: 768px) {
    /* .game-content {
        padding: 30px;
    } */

    .page {
        max-width: 800px;
    }

    /* .menu-title {
        font-size: 2.5rem;
    } */

    /* .menu-subtitle {
        font-size: 1.1rem;
    } */

    /* .screen-card .card-title {
        font-size: 1.5rem;
    } */

    /* .screen-card .card-desc {
        font-size: 1rem;
    } */

    /* .main-logo {
        max-width: 150px;
        max-height: 150px;
    } */

    /* .screen-logo {
        max-width: 100px;
    } */

    .info-placeholder {
        height: 40vh;
        max-height: 350px;
    }
}