:root {
    --tk-blue: #00a0e3;
    --tk-blue-dark: #0080bc;
    --tk-blue-light: #e6f4fb;
    --tk-gray-dark: #2c2c2c;
    --tk-gray-medium: #666666;
    --tk-gray-light: #f5f5f5;
    --tk-white: #ffffff;
    --tk-success: #4ade80;
    --tk-error: #ef4444;
    --tk-warning: #f59e0b;
    --tk-teal: #004466;
    --tk-purple: #7c4198;
    --tk-yellow: #ffcc00;
}

@font-face {
    font-family: 'TK';
    src: url('/fonts/tk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

html {
    background: var(--tk-teal);
}

body {
    font-family: 'TK', -apple-system, BlinkMacSystemFont, 'Arial', 'Helvetica', sans-serif;
    background: var(--tk-teal);
    color: var(--tk-gray-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: manipulation;
    font-weight: 400;
    line-height: 1.5;
}

/* Override body styles for admin pages */
body.admin-page {
    display: block;
    align-items: unset;
    justify-content: unset;
    overflow: auto;
    padding: 0;
    background: var(--tk-gray-light);
}

body.admin-page .container {
    max-width: none;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
}

/* TK Header */
.tk-header {
    background: var(--tk-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--tk-gray-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.tk-logo {
    display: inline-block;
    background: var(--tk-blue);
    color: var(--tk-white);
    padding: 10px 20px;
    font-size: 28px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
}

.quiz-logo {
    max-height: 60px;
    max-width: 250px;
    object-fit: contain;
}

.quiz-logo-large {
    max-height: 120px;
    max-width: 300px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Start Screen */
.start-screen {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
    min-height: 100vh;
    width: 100vw;
    background: var(--tk-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 48px;
}

.logo {
    font-size: 64px;
    font-weight: 700;
    color: var(--tk-white);
    background: var(--tk-blue);
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto;
}

.main-title {
    font-size: 40px;
    font-weight: 500;
    color: var(--tk-white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.subtitle {
    font-size: 20px;
    color: var(--tk-gray-medium);
    margin-bottom: 48px;
    font-weight: 400;
}

/* New Start Screen Styles */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-top-left {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 200px;
    height: auto;
    animation: fadeInPlop 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: scale(0);
}

.decoration-top-right {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 200px;
    height: auto;
    animation: fadeInPlop 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: scale(0);
}

.content-container {
    position: relative;
    z-index: 1;
}

.quiz-question {
    font-size: 48px;
    font-weight: 300;
    color: var(--tk-white);
    margin-bottom: 60px;
    line-height: 1.3;
}

.quiz-question .emoji {
    color: var(--tk-yellow);
}

.start-button-new {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10;
}

.start-button-new:hover {
    transform: scale(1.05);
}

.start-button-new:active {
    transform: scale(0.98);
}

.start-button-new img {
    width: 280px;
    height: auto;
}

.start-button {
    background: var(--tk-blue);
    color: var(--tk-white);
    border: none;
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-button:hover {
    background: var(--tk-blue-dark);
}

.start-button:active {
    transform: scale(0.98);
}

.button-arrow {
    font-size: 24px;
}

.festival-icons {
    margin-top: 48px;
    font-size: 48px;
    display: flex;
    justify-content: center;
    gap: 32px;
    opacity: 0.6;
}

/* Quiz Screen */
.quiz-screen {
    animation: fadeIn 0.3s ease-out;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 120px;
    opacity: 1;
}

.progress-bar {
    background: var(--tk-gray-light);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    background: var(--tk-blue);
    height: 100%;
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    color: var(--tk-gray-medium);
    font-size: 16px;
    margin-bottom: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    color: var(--tk-gray-dark);
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.4;
}

.answer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-button {
    background: var(--tk-white);
    border: 2px solid var(--tk-gray-light);
    padding: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.answer-button:hover {
    border-color: var(--tk-blue);
    background: var(--tk-blue-light);
}

.answer-button:active {
    transform: scale(0.98);
}

.answer-letter {
    font-size: 20px;
    font-weight: 700;
    color: var(--tk-blue);
    min-width: 40px;
    background: var(--tk-blue-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.answer-text {
    font-size: 18px;
    color: var(--tk-gray-dark);
    flex: 1;
    font-weight: 400;
}

/* Result Screen 1 - Initial Result */
.result-screen-1 {
    min-height: 100vh;
    width: 100vw;
    background: var(--tk-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
}

.result-screen-1 .decoration-top-left,
.result-screen-1 .decoration-top-right {
    animation: fadeInPlop 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

.result-screen-1 .decoration-top-left {
    animation-delay: 0.5s;
}

.result-screen-1 .decoration-top-right {
    animation-delay: 0.7s;
}

.result-content-container {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.result-illustration {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPlop 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: scale(0);
}

.placeholder-illustration {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-illustration::after {
    content: "Illustration";
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

.result-main-title {
    font-size: 48px;
    color: var(--tk-white);
    font-weight: 500;
    line-height: 1.2;
}

.result-next-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    z-index: 10;
}

.result-next-button:hover {
    transform: scale(1.05);
}

.result-next-button img {
    width: 280px;
    height: auto;
}

/* Result Screen 2 - Detail */
.result-screen-2 {
    min-height: 100vh;
    width: 100vw;
    background: var(--tk-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    animation: fadeIn 0.3s ease-out;
    padding: 40px;
}

.result-detail-container {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 60px;
}

.result-detail-image {
    flex: 0 0 500px;
    height: 500px;
}

.result-detail-content {
    flex: 1;
    text-align: left;
    max-width: 800px;
}

.result-detail-title {
    font-size: 56px;
    color: var(--tk-white);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.1;
}

.result-detail-subtitle {
    font-size: 32px;
    color: var(--tk-white);
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0.8;
}

.result-detail-description {
    font-size: 24px;
    color: var(--tk-white);
    line-height: 1.6;
    opacity: 0.9;
}

/* Result Screen 3 - QR Code */
.result-screen-3 {
    min-height: 100vh;
    width: 100vw;
    background: var(--tk-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
}

.qr-content-container {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#qrcode {
    display: block;
}

.qr-text {
    font-size: 32px;
    color: var(--tk-white);
    max-width: 700px;
    line-height: 1.4;
}

.result-restart-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    z-index: 10;
}

.result-restart-button:hover {
    transform: scale(1.05);
}

.result-restart-button img {
    width: 280px;
    height: auto;
}

/* Old result screen - remove or update */
.result-screen {
    display: none;
}

.result-header {
    margin-bottom: 32px;
}

.result-title {
    color: var(--tk-white);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.type-title {
    color: var(--tk-white);
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.2;
}

.type-subtitle {
    color: var(--tk-white);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
    opacity: 0.8;
}

.type-icon {
    font-size: 80px;
    margin-bottom: 32px;
    background: var(--tk-blue-light);
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 32px;
}

.type-description {
    color: var(--tk-white);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.app-recommendation {
    background: var(--tk-blue-light);
    padding: 32px;
    border-radius: 4px;
    margin-bottom: 32px;
    border: 1px solid var(--tk-blue);
}

.app-text {
    color: var(--tk-white);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 400;
}

.app-button {
    display: inline-block;
    background: var(--tk-blue);
    color: var(--tk-white);
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-button:hover {
    background: var(--tk-blue-dark);
}

.finish-button {
    background: var(--tk-blue);
    color: var(--tk-white);
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 24px;
}

.finish-button:hover {
    background: var(--tk-blue-dark);
}

/* Type-specific colors */
.type-a {
    background: #f9f9f9;
}

.type-b {
    background: #f9f9f9;
}

.type-c {
    background: #f9f9f9;
}

.result-screen.type-a .type-icon {
    background: rgba(74, 222, 128, 0.1);
    color: var(--tk-success);
}

.result-screen.type-b .type-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tk-error);
}

.result-screen.type-c .type-icon {
    background: var(--tk-blue-light);
    color: var(--tk-blue);
}

/* Admin Styles */
.admin-login {
    background: var(--tk-white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 120px auto;
    border: 1px solid var(--tk-gray-light);
}

.admin-login h1 {
    color: var(--tk-gray-dark);
    margin-bottom: 32px;
    font-weight: 300;
    font-size: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--tk-gray-dark);
    font-size: 16px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--tk-gray-light);
    border-radius: 4px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--tk-blue);
}

.login-button {
    background: var(--tk-blue);
    color: var(--tk-white);
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: var(--tk-blue-dark);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tk-error);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--tk-error);
    font-size: 14px;
}

/* Admin Dashboard */
.admin-dashboard {
    background: var(--tk-white);
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 120px auto 40px;
    min-height: calc(100vh - 160px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tk-gray-light);
}

.admin-header h1 {
    color: var(--tk-gray-dark);
    font-weight: 300;
    font-size: 32px;
}

.admin-actions {
    display: flex;
    gap: 16px;
}

.export-button, .logout-button, .reset-button {
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.export-button {
    background: var(--tk-blue);
    color: var(--tk-white);
}

.export-button:hover {
    background: var(--tk-blue-dark);
}

.logout-button {
    background: var(--tk-gray-light);
    color: var(--tk-gray-dark);
}

.logout-button:hover {
    background: var(--tk-gray-medium);
    color: var(--tk-white);
}

.reset-button {
    background: var(--tk-warning);
    color: var(--tk-white);
}

.reset-button:hover {
    background: #e67e22;
}

.stats-container {
    display: grid;
    gap: 24px;
}

.stat-card {
    background: var(--tk-white);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid var(--tk-gray-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card h3 {
    color: var(--tk-gray-dark);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--tk-blue-light);
    border-radius: 4px;
    border: 1px solid var(--tk-blue);
}

.stat-label {
    color: var(--tk-gray-medium);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--tk-blue);
    font-size: 36px;
    font-weight: 700;
}

.result-distribution {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-bar {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: 16px;
}

.result-label {
    font-weight: 500;
    color: var(--tk-gray-dark);
    font-size: 14px;
}

.result-progress {
    background: var(--tk-gray-light);
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.result-count {
    font-weight: 700;
    color: var(--tk-gray-dark);
    font-size: 16px;
}

.questions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.question-stat {
    background: var(--tk-gray-light);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--tk-gray-light);
}

.question-stat h4 {
    color: var(--tk-gray-dark);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.answer-distribution {
    display: flex;
    justify-content: space-around;
    color: var(--tk-gray-medium);
    font-weight: 500;
    font-size: 14px;
}

.daily-stats table {
    width: 100%;
    border-collapse: collapse;
}

.daily-stats th,
.daily-stats td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--tk-gray-light);
    font-size: 14px;
}

.daily-stats th {
    background: var(--tk-gray-light);
    font-weight: 500;
    color: var(--tk-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInPlop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes resultPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Touch-specific optimizations */
@media (hover: none) {
    .answer-button:hover {
        transform: none;
    }
    
    .start-button:hover {
        transform: none;
    }
}

/* Quiz Selection */
.quiz-selection-screen {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 48px auto 0;
}

.quiz-card {
    background: var(--tk-white);
    border: 2px solid var(--tk-gray-light);
    border-radius: 4px;
    padding: 32px;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-card:hover {
    border-color: var(--tk-blue);
    background: var(--tk-blue-light);
}

.quiz-card-title {
    color: var(--tk-gray-dark);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.quiz-card-subtitle {
    color: var(--tk-blue);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.quiz-card-description {
    color: var(--tk-gray-medium);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.quiz-start-button {
    display: inline-block;
    background: var(--tk-blue);
    color: var(--tk-white);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-start-button:hover {
    background: var(--tk-blue-dark);
}

/* Portrait TV Screen (1080x1920) */
@media (min-width: 1000px) and (min-height: 1800px) and (orientation: portrait) {
    body {
        font-size: 24px;
    }
    
    .container {
        max-width: 1080px;
        padding: 30px;
    }
    
    /* Header */
    .tk-header {
        padding: 20px 0;
    }
    
    .tk-logo {
        font-size: 48px;
        padding: 16px 32px;
    }
    
    .quiz-logo {
        max-height: 80px;
        max-width: 400px;
    }
    
    /* Start Screen */
    .start-screen {
        padding-top: 100px;
    }
    
    .logo-container {
        margin-bottom: 96px;
    }
    
    .logo {
        font-size: 128px;
        width: 240px;
        height: 240px;
    }
    
    .quiz-logo-large {
        max-height: 240px;
        max-width: 600px;
    }
    
    .main-title {
        font-size: 56px;
        margin-bottom: 16px;
    }
    
    .quiz-question {
        font-size: 64px;
        margin-bottom: 80px;
    }
    
    .decoration-top-left,
    .decoration-top-right {
        width: 300px;
        top: 60px;
        animation: fadeInPlop 0.8s ease-out forwards;
        opacity: 0;
        transform: scale(0);
    }
    
    .decoration-top-left {
        left: 60px;
        animation-delay: 0.3s;
    }
    
    .decoration-top-right {
        right: 60px;
        animation-delay: 0.5s;
    }
    
    .start-button-new img {
        width: 380px;
    }
    
    .subtitle {
        font-size: 40px;
        margin-bottom: 96px;
    }
    
    .start-button {
        padding: 40px 96px;
        font-size: 40px;
        border-radius: 8px;
    }
    
    .button-arrow {
        font-size: 48px;
    }
    
    /* Quiz Screen */
    .quiz-screen {
        padding: 150px 20px 20px 20px;
        max-width: 100%;
    }
    
    .progress-bar {
        height: 16px;
        margin-bottom: 40px;
    }
    
    .question-counter {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .question-text {
        font-size: 64px;
        margin-bottom: 60px;
        line-height: 1.3;
    }
    
    .answer-form {
        gap: 32px;
    }
    
    .answer-button {
        padding: 48px;
        border-radius: 8px;
        border-width: 4px;
        gap: 32px;
    }
    
    .answer-letter {
        font-size: 40px;
        width: 80px;
        height: 80px;
        min-width: 80px;
        border-radius: 8px;
    }
    
    .answer-text {
        font-size: 36px;
    }
    
    /* Result Screen */
    .result-screen {
        padding: 40px 30px;
    }
    
    .result-title {
        font-size: 40px;
        margin-bottom: 48px;
    }
    
    .type-title {
        font-size: 80px;
        margin-bottom: 16px;
    }
    
    .type-subtitle {
        font-size: 48px;
        margin-bottom: 64px;
    }
    
    .type-icon {
        font-size: 160px;
        width: 240px;
        height: 240px;
        margin: 0 auto 64px;
    }
    
    .type-description {
        font-size: 36px;
        line-height: 1.5;
        margin-bottom: 96px;
    }
    
    .app-recommendation {
        padding: 64px;
        border-radius: 8px;
        margin-bottom: 64px;
    }
    
    .app-text {
        font-size: 36px;
        margin-bottom: 48px;
    }
    
    .app-button {
        padding: 32px 96px;
        font-size: 36px;
        border-radius: 8px;
    }
    
    .finish-button {
        padding: 32px 96px;
        font-size: 36px;
        border-radius: 8px;
        margin-top: 48px;
    }
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }
    
    .quiz-question {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .decoration-top-left,
    .decoration-top-right {
        width: 120px;
        top: 20px;
        animation: fadeInPlop 0.8s ease-out forwards;
        opacity: 0;
        transform: scale(0);
    }
    
    .decoration-top-left {
        left: 20px;
        animation-delay: 0.3s;
    }
    
    .decoration-top-right {
        right: 20px;
        animation-delay: 0.5s;
    }
    
    .start-button-new {
        bottom: 20px;
        right: 20px;
    }
    
    .start-button-new img {
        width: 220px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    /* Result Screens Mobile */
    .result-illustration {
        width: 280px;
        height: 280px;
    }
    
    .result-main-title {
        font-size: 32px;
    }
    
    .result-next-button,
    .result-restart-button {
        bottom: 20px;
        right: 20px;
    }
    
    .result-next-button img,
    .result-restart-button img {
        width: 200px;
    }
    
    .result-detail-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    
    .result-detail-image {
        flex: 0 0 350px;
        height: 350px;
    }
    
    .result-detail-title {
        font-size: 36px;
        text-align: center;
    }
    
    .result-detail-subtitle {
        font-size: 24px;
        text-align: center;
    }
    
    .result-detail-description {
        font-size: 18px;
        text-align: center;
    }
    
    .qr-text {
        font-size: 24px;
        padding: 0 20px;
    }
    
    #qrcode {
        width: 250px !important;
        height: 250px !important;
    }
    
    .question-text {
        font-size: 24px;
    }
    
    .answer-text {
        font-size: 16px;
    }
    
    .answer-letter {
        font-size: 16px;
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .type-title {
        font-size: 32px;
    }
    
    .type-subtitle {
        font-size: 20px;
    }
    
    .type-description {
        font-size: 16px;
    }
    
    .admin-dashboard {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .result-bar {
        grid-template-columns: 150px 1fr 50px;
    }
}

/* New Quiz Question Design */
body:has(.quiz-question-screen) {
    background: #004466;
    display: block;
    align-items: unset;
    justify-content: unset;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.quiz-question-screen {
    background: #004466;
    height: 100vh;
    width: 100vw;
    padding: 5vh 5vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease-out;
    overflow: hidden;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.quiz-question-title {
    color: white;
    font-size: 3.5vw;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5vh;
    line-height: 1.2;
    font-family: 'TK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quiz-answers-container {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5vh;
    flex: 1;
    justify-content: center;
}

.quiz-answer-option {
    background: #E8F5FB;
    border-radius: 20px;
    padding: 2.5vh 4vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2vw;
    transition: background 0.2s ease;
    font-size: 2vw;
    color: #004466;
    font-weight: 600;
    font-family: 'TK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 10vh;
}

.quiz-answer-option:hover {
    background: #D8E9F2;
}

.quiz-answer-option.selected {
    background: #009FE3;
    color: white;
}

.quiz-answer-letter {
    font-weight: 700;
    font-size: 2.2vw;
    min-width: 3vw;
    flex-shrink: 0;
    line-height: 1.3;
}

.quiz-answer-text {
    flex: 1;
    line-height: 1.3;
}

/* Quiz Navigation Button Container */
.quiz-navigation-container {
    display: flex;
    justify-content: space-between;
    margin-top: 3vh;
}

/* Quiz Back Button */
.quiz-back-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quiz-back-button .button-image {
    display: block;
    height: 12vh;
    width: auto;
    max-height: 120px;
    min-height: 80px;
}

.quiz-back-button:hover {
    transform: translateY(-2px);
}

/* Quiz Next Button Container */
.quiz-next-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 3vh;
}

.quiz-next-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quiz-next-button .button-image {
    display: block;
    height: 12vh;
    width: auto;
    max-height: 120px;
    min-height: 80px;
}

.quiz-next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-next-button:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Pulsating animation for next button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.quiz-next-button.pulsating:not(:disabled) .button-image {
    animation: pulse 1s ease-in-out infinite;
}

/* Full HD 1920x1080 Landscape */
@media (min-width: 1920px) and (min-height: 1080px) and (orientation: landscape) {
    .result-illustration {
        width: 500px;
        height: 770px;
    }
    
    .result-main-title {
        font-size: 52px;
    }
    
    .result-screen-1 .decoration-top-left,
    .result-screen-1 .decoration-top-right {
        width: 250px;
    }
    
    .result-detail-container {
        max-width: 1600px;
        gap: 100px;
    }
    
    .result-detail-image {
        flex: 0 0 600px;
        height: 600px;
    }
    
    .result-detail-content {
        max-width: 900px;
    }
    
    .result-detail-description {
        font-size: 28px;
        line-height: 1.7;
    }
    
    .qr-text {
        font-size: 36px;
        max-width: 800px;
    }
}

/* Specific adjustments for Full HD 1920x1080 */
@media (min-width: 1920px) and (min-height: 1080px) {
    .quiz-question-title {
        font-size: 68px;
        margin-bottom: 60px;
    }
    
    .quiz-answer-option {
        font-size: 38px;
        padding: 30px 80px;
        border-radius: 20px;
        min-height: 110px;
    }
    
    .quiz-answer-letter {
        font-size: 42px;
        min-width: 60px;
    }
    
    .quiz-next-button .button-image {
        height: 120px;
        max-height: 120px;
    }
}

/* Mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .quiz-question-title {
        font-size: 8vw;
    }
    
    .quiz-answer-option {
        font-size: 5vw;
        padding: 3vh 6vw;
        min-height: auto;
    }
    
    .quiz-answer-letter {
        font-size: 6vw;
        min-width: 8vw;
    }
    
    .quiz-next-button .button-image {
        height: 10vh;
        max-height: 80px;
    }
}