/*
Theme Name: AKV Game Theme
Theme URI: https://akv.szomics.hu
Description: Mobile-first theme for AKV (Szolnoki Városi Akadályverseny) GPS-based urban adventure game with Lion King theme
Version: 1.0.0
Author: Szomics
Author URI: https://szomics.hu
Text Domain: akv-game-theme
Tags: mobile, game, gps, responsive
*/

/* CSS Variables - Lion King Theme */
:root {
    --primary-gold: #D4A574;
    --secondary-blue: #4A90E2;
    --accent-orange: #E67E22;
    --savanna-green: #27AE60;
    --sunset-red: #E74C3C;
    --bg-primary: #FDF6E3;
    --bg-secondary: #FFF8E7;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --border-color: #E0D6C1;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Zazu Message Styles */
.akv-zazu-message {
    background: linear-gradient(135deg, #628fc4 0%, #2c86c3 100%);
    color: white;
    border-radius: 20px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
    animation: slideInUp 0.5s ease;
}

.akv-zazu-avatar {
    font-size: 32px;
    flex-shrink: 0;
    animation: float 2s ease-in-out infinite;
}

.akv-zazu-text {
    flex: 1;
    line-height: 1.5;
    font-weight: 600;
}

.akv-zazu-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.95;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {

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

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #FDF6E3 0%, #F5E6D3 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.akv-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Screen */
.akv-welcome {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.akv-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.akv-title {
    font-size: 32px;
    font-weight: bold;
    color:rgb(91, 39, 7);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.akv-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Compact Header (mobil optimalizált) */
.akv-compact-header {
    padding: 15px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.akv-compact-header .akv-logo {
    width: 50px;
    height: 50px;
    margin: 0;
    font-size: 30px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.akv-compact-header .akv-title {
    font-size: 20px;
    margin: 0;
}

.akv-compact-header .akv-subtitle {
    display: none;
    /* Elrejtjük mobilon */
}

/* Form Elements */

#akv-registration-form {
    background:#eac492; 
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 30px;
}

.akv-form-group {
    margin-bottom: 20px ;
    text-align: left;
}

.akv-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.akv-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.akv-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

/* Textarea Styling */
.akv-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Rovásírás textarea */
.akv-rovasiras {
    font-family: 'Noto Sans Old Hungarian', sans-serif;
    /* Use Rovás font for input */
    font-size: 1.2em;
    line-height: 1.8;
    letter-spacing: 1px;
}

/* File Input Styling */
.akv-file-input {
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border: 3px dashed var(--primary-gold);
    cursor: pointer;
    font-size: 16px;
    border-radius: 12px;
    /* iOS/Android specifikus */
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    font-family: inherit;
}

.akv-file-input:hover,
.akv-file-input:active {
    background: linear-gradient(135deg, #e0e7ef, #b8c6db);
    border-color: var(--accent-orange);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* File input label javítás iOS-re */
.akv-file-input::-webkit-file-upload-button {
    padding: 10px 20px;
    background: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    font-size: 15px;
}

.akv-file-input::file-selector-button {
    padding: 10px 20px;
    background: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    font-size: 15px;
}

.akv-file-preview {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff9e6, #ffe6cc);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-gold);
}

/* Lion King themed Photo Input */
.akv-photo-input {
    background: linear-gradient(135deg, #fff4e6, #ffe6cc);
    border: 3px dashed #E67E22;
    position: relative;
    overflow: hidden;
}

.akv-photo-input::before {
    content: '📸';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    opacity: 0.3;
    pointer-events: none;
}

.akv-photo-input:hover,
.akv-photo-input:active {
    background: linear-gradient(135deg, #ffe6cc, #ffd9a6);
    border-color: #D4A574;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.akv-photo-input::-webkit-file-upload-button {
    background: linear-gradient(135deg, #E67E22, #D4A574);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

.akv-photo-input::file-selector-button {
    background: linear-gradient(135deg, #E67E22, #D4A574);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

/* Lion King themed Video Input */
.akv-video-input {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 3px dashed #4CAF50;
    position: relative;
    overflow: hidden;
}

.akv-video-input::before {
    content: '🎥';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    opacity: 0.3;
    pointer-events: none;
}

.akv-video-input:hover,
.akv-video-input:active {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    border-color: #66BB6A;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.akv-video-input::-webkit-file-upload-button {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.akv-video-input::file-selector-button {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* File hint text */
.akv-file-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
    font-style: italic;
}

.akv-select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Buttons */
.akv-btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-height: 54px;
}

.akv-btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.akv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.akv-btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.akv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.akv-btn-full {
    width: 100%;
    display: block;
}

/* Station Card */
.akv-station-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.akv-station-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.akv-station-id {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.akv-station-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.akv-station-description {
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Station description HTML formatting */
.akv-station-description p {
    margin-bottom: 12px;
}

.akv-station-description strong,
.akv-station-description b {
    color: var(--text-primary);
    font-weight: 700;
}

.akv-station-description em,
.akv-station-description i {
    color: var(--accent-orange);
    font-style: italic;
}

.akv-station-description ul,
.akv-station-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.akv-station-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.akv-station-description br {
    line-height: 2;
}

/* GPS Status */
.akv-gps-status {
    background: white;
    color: var(--text-primary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.akv-gps-distance {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.akv-gps-message {
    font-size: 14px;
    opacity: 0.9;
}

/* Game Map */
.akv-game-map-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.akv-map-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

#akv-game-map {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Progress Bar */
.akv-progress-container {
    margin: 20px 0;
}

.akv-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.akv-progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.akv-progress-fill {
    height: 300px;
    background: linear-gradient(90deg, var(--savanna-green), var(--secondary-blue));
    transition: width 0.5s ease;
}

/* Chat Bubble (Zazu) */
.akv-chat-bubble {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
    cursor: pointer;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.akv-chat-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px var(--shadow-color);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.akv-chat-modal.active {
    transform: translateY(0);
}

.akv-chat-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.akv-chat-title {
    font-size: 20px;
    font-weight: bold;
}

.akv-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.akv-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.akv-chat-message {
    margin-bottom: 15px;
    display: flex;
}

.akv-chat-message.user {
    justify-content: flex-end;
}

.akv-chat-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
}

.akv-chat-message.user .akv-chat-message-content {
    background: var(--secondary-blue);
    color: white;
}

.akv-chat-message.bot .akv-chat-message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.akv-chat-input-container {
    padding: 15px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.akv-chat-input {
    flex: 1;
}

/* Test Mode */
.akv-test-mode-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--sunset-red);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
}


/* Test buttons - hidden by default, shown only when body has test-mode-active class */
.akv-test-buttons {
    display: none !important;
    /* Force hide by default */
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

body.test-mode-active .akv-test-buttons {
    display: flex !important;
    /* Show only when class is present */
}

/* Hide the embedded Rovásírás button if present in description */
.akv-station-description button,
.akv-station-description .akv-btn {
    display: none !important;
}

/* Loading */
.akv-loading {
    text-align: center;
    padding: 40px;
}

.akv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert/Message */
.akv-alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.akv-alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.akv-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.akv-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* ========================================
   ZAZU ÜZENET DOBOZOK (Keretmese)
   ======================================== */

.zazu-message {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE5B4 100%);
    border-left: 4px solid #D4A574;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out;
}

/* Zazu ikon */
.zazu-message:before {
    content: '🦜';
    position: absolute;
    left: -20px;
    top: 20px;
    font-size: 2rem;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border: 3px solid #D4A574;
}

/* Zazu üzenet címe */
.zazu-message strong {
    color: #8B4513;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
}

/* Zazu idézet */
.zazu-message em {
    display: block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin: 15px 0;
    font-style: italic;
    color: #5D4037;
}

/* Tipp rész */
.zazu-message small {
    display: block;
    margin-top: 15px;
    padding: 10px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 6px;
    color: #6D4C41;
}

/* Rovásírás billentyűzet gomb */
.rovas-keyboard-button {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rovas-keyboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

.rovas-keyboard-button:active {
    transform: translateY(0);
}

/* Rovásírás billentyűzet container */
#rovas-keyboard-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D4B0 100%);
    border: 3px solid #8B4513;
    border-radius: 15px;
    display: none;
}

#rovas-keyboard-container.active {
    display: block;
    animation: slideDown 0.4s ease-out;
}

/* Photo upload wrapper fix */
.photo-upload-wrapper,
.video-upload-wrapper {
    border: 2px dashed #D4A574;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 10px 0;
}

.photo-upload-wrapper:hover,
.video-upload-wrapper:hover {
    border-color: #8B4513;
    background: rgba(212, 165, 116, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .akv-container {
        padding: 15px;
    }

    .akv-title {
        font-size: 28px;
    }

    .akv-station-title {
        font-size: 20px;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {

    .akv-btn,
    .akv-input,
    .akv-select {
        min-height: 48px;
    }
}

/* PWA - Hide browser UI */
@media all and (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Permissions Screen */
.akv-permissions-container {
    max-width: 500px;
    margin: 0 auto;
}

.akv-section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 15px;
}

.akv-permissions-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.akv-permission-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.akv-permission-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.akv-permission-content {
    flex: 1;
}

.akv-permission-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.akv-permission-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.akv-permission-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.akv-permission-item.granted .akv-permission-status {
    background: #d4edda;
    color: #155724;
}

.akv-permission-item.denied .akv-permission-status {
    background: #f8d7da;
    color: #721c24;
}

.akv-permissions-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.5;
}

/* Victory Screen */
.akv-victory {
    text-align: center;
    padding: 40px 20px;
}

.akv-victory-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: celebration 1s ease-in-out;
}

@keyframes celebration {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-10deg);
    }

    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.akv-victory-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.akv-victory-stats {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
}

.akv-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.akv-stat-item:last-child {
    border-bottom: none;
}

/* Intro Screen - Keretmese */
.akv-intro-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.akv-intro-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
}

.akv-story-text {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow-color);
    line-height: 1.8;
    font-weight: 600;
    font-style: italic;
}

.akv-story-text p {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.akv-story-text p:last-child {
    margin-bottom: 0;
}

.akv-story-text strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.akv-highlight {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    color: black !important;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: smaller;
    margin-top: 20px !important;
    font-weight: 600;
}

.akv-highlight strong {
    color: rgb(91, 39, 7) !important;
    font-size: larger;
}

.kisokos-summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 0;
    list-style: none;
    user-select: none;
    text-align: center;
    color:rgb(91, 39, 7)
}


.kisokos-summary::-webkit-details-marker {
    display: none;
}

.kisokos-summary::before {
    content: '▼';
    display: inline-block;
    transition: transform 0.3s;
    margin-right: 5px;
}

details[open] .kisokos-summary::before {
    transform: rotate(180deg);
}

.kisokos-content {
    padding: 10px 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.akv-video-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.akv-video-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.akv-video-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.akv-video-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 16px;
}

.akv-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.akv-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.akv-intro-actions {
    text-align: center;
}

.akv-intro-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .akv-intro-title {
        font-size: 24px;
    }

    .akv-story-text {
        padding: 20px;
    }

    .akv-story-text p {
        font-size: 15px;
    }

    .akv-video-placeholder {
        padding: 30px 15px;
    }
}

/* ==================== REFERENCE IMAGES ==================== */

.reference-image-container {
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.reference-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.reference-image:active {
    transform: scale(0.98);
}

.image-caption {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
}

/* ==================== STATION ICONS ==================== */

.station-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-icon:hover,
.station-icon:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ==================== ROVÁSÍRÁS KEYBOARD ==================== */

.rovas-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
    border-top: 2px solid var(--primary-gold);
    padding: 8px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.rovas-keyboard.active {
    display: block;
    transform: translateY(0);
}

.rovas-keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 0 8px;
}

.rovas-keyboard-title {
    color: var(--primary-gold);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.rovas-keyboard-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.rovas-keyboard-close:active {
    background: rgba(255, 255, 255, 0.1);
}

.rovas-keyboard-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    max-height: 140px;
    overflow-y: auto;
    padding: 4px;
}

.rovas-key {
    background: linear-gradient(135deg, #4A90E2 0%, #3498DB 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-family: 'Noto Sans Old Hungarian', sans-serif;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 6px 3px;
    line-height: 1.2;
    overflow: visible;
}

.rovas-key:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rovas-key.special {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--sunset-red) 100%);
    font-size: 18px;
    font-family: system-ui, -apple-system, sans-serif;
}

.rovas-key.space {
    grid-column: span 3;
    font-size: 16px;
}

.rovas-keyboard-controls {
    display: flex;
    gap: 8px;
    padding: 0 8px;
}

.rovas-keyboard-controls button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.rovas-keyboard-controls button:active {
    transform: scale(0.97);
}

.rovas-btn-delete {
    background: linear-gradient(135deg, var(--sunset-red) 0%, #C0392B 100%);
    color: white;
}

.rovas-btn-clear {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
    color: white;
}

.rovas-btn-space {
    background: linear-gradient(135deg, var(--savanna-green) 0%, #229954 100%);
    color: white;
}

#kezdes {
    margin-top: 20px !important;
}

/* iOS Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    .rovas-keyboard {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Scrollbar styling for keyboard grid */
.rovas-keyboard-grid::-webkit-scrollbar {
    width: 6px;
}

.rovas-keyboard-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.rovas-keyboard-grid::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

@media (max-width: 480px) {
    .reference-image-container {
        margin: 15px 0;
        padding: 12px;
    }

    .station-icon {
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .rovas-keyboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
        gap: 6px;
        max-height: 240px;
    }

    .rovas-key {
        min-height: 48px;
        font-size: 22px;
    }

    .rovas-key.special {
        font-size: 16px;
    }

    .rovas-keyboard-controls button {
        padding: 12px;
        font-size: 14px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .rovas-keyboard-grid {
        max-height: 180px;
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    }

    .rovas-key {
        min-height: 40px;
        font-size: 20px;
    }

    .rovas-keyboard-controls button {
        padding: 10px;
    }
}

/* Station Icon */
.akv-station-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.station-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.station-icon:hover {
    transform: scale(1.05);
}

.station-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Rovásírás Keyboard */
.akv-rovas-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f0f0f0;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    border-top: 1px solid #ccc;
    display: none;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.akv-rovas-keys {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.akv-rovas-key {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
    color: #333 !important;
    /* Ensure text is visible */
    font-weight: bold;
    font-family: 'Noto Sans Old Hungarian', sans-serif;
    /* Use Rovás font */
}

.akv-rovas-key:active {
    background: #e0e0e0;
}

.akv-rovas-actions {
    display: flex;
    gap: 10px;
}

.akv-rovas-space {
    flex: 2;
}

.akv-rovas-backspace,
.akv-rovas-close {
    flex: 1;
    background: #e0e0e0;
}

.akv-rovas-close {
    background: var(--primary-gold);
    color: white;
    border: none;
}

/* Hide system keyboard helper */
.no-system-keyboard {
    caret-color: transparent;
    /* Hide cursor if needed, but might want to keep it */
}

/* Map Styles - Fix for overflow and layout issues */
#akv-game-map-container {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #f0f0f0;
    /* Placeholder color */
    position: relative;
    /* Ensure z-index works */
}

#akv-game-map {
    width: 100%;
    height: 300px;
    min-height: 300px;
    z-index: 1;
    /* Ensure it stays below other UI elements */
}