:root {
    --primary-color: #c61e24;      /* Rojo Osasuna */
    --secondary-color: #003366;    /* Azul marino Osasuna */
    --background-color: #111827;
    --text-color: #F3F4F6;
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.03);
    --accent-color: #c61e24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: transparent;
    color: white;
    padding: 2rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.guess-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 3.5rem;
}

.guess-button:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.guess-button i {
    font-size: 1.3rem;
}

/* Título de sección del conversor */
.section-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-size: 1.3rem;
    opacity: 0.9;
    padding-top: 1rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

/* Estilos mejorados para el slider */
.number-slider {
    position: absolute;
    width: calc(100% - 4rem);
    left: 2rem;
    top: 30px;
}

/* Estilo del track del slider */
.number-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    border: none;
}

/* Estilo del thumb del slider */
.number-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* Efectos hover en el thumb */
.number-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(198, 30, 36, 0.4);
    background: #a01a1f;
}

/* Estilos para Firefox */
.number-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    border: none;
}

.number-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* Contenedor principal del control numérico */
.number-control {
    position: relative;
    width: 100%;
    height: 110px;
    background: var(--input-bg);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

/* Display del número */
.number-display {
    position: absolute;
    width: 100%;
    bottom: 5px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Eliminar la línea de guía que podría estar interfiriendo */
.number-control::before {
    display: none;
}

/* Nuevo diseño para el selector de unidades */
.unit-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.unit-selector::-webkit-scrollbar {
    display: none;
}

.unit-option {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.8rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.unit-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.unit-option.selected {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.unit-option i {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    display: block;
}

.unit-option div {
    font-size: 0.8rem;
}

.unit-option:hover i {
    color: var(--primary-color);
    opacity: 1;
}

.unit-option.selected i {
    color: white;
    opacity: 1;
}

/* Botón de conversión mejorado */
.convert-button {
    width: 100%;
    padding: 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.convert-button:hover {
    background: #a01a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 30, 36, 0.3);
}

.convert-button i {
    font-size: 1.4rem;
    margin-right: 0.8rem;
    vertical-align: middle;
}

/* Resultado mejorado */
.result-section {
    background: var(--input-bg);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: top;
    animation: slideIn 0.5s ease-out;
    position: relative;
}

.result-section.hidden {
    display: none;
}

.result-value {
    font-size: 5rem;
    text-align: center;
    margin: 1rem 0;
    font-weight: normal;
    color: var(--primary-color);
}

/* Actualizar los estilos de visualización */
.sadar-visualization {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.sadar-unit {
    aspect-ratio: 16/9;
    background-image: url('../img/sadar.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.8);
    animation: sadarAppear 0.5s ease forwards;
    transition: all 0.3s ease;
}

.sadar-unit.partial {
    opacity: 0.5;
}

/* Mejorar la disposición de los grupos */
.sadar-grid-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.group-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    width: 100%;
}

.group-container::before {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text-color);
}

.sadar-group {
    justify-self: center;
    width: 100%;
    max-width: 60px;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background-image: url('../img/sadar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    position: relative;
}

/* Ajustar tamaños para diferentes grupos */
.sadar-group.x1000 {
    max-width: 80px;
}

.sadar-group.x100 {
    max-width: 70px;
}

.sadar-group.x10 {
    max-width: 60px;
}

.sadar-group::after {
    content: attr(data-value);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1;
}

/* Animaciones mejoradas */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.comparison-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.visualization {
    min-height: 300px;
    background: var(--card-bg);
    border-radius: 20px;
    margin: 1rem 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Reposicionar los botones de compartir */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.share-buttons button {
    flex: 1;
    max-width: 200px;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-buttons button:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Efectos de glassmorphism */
.glass-effect {
    background: #ffffff1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.sadar-unit:hover {
    transform: scale(1.05);
}

/* Efecto de partículas flotantes */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 1.5rem 2rem;
        margin-bottom: 2rem;
    }

    header p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .header-actions {
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .unit-selector {
        gap: 0.5rem;
    }

    .unit-option {
        padding: 0.6rem 0.3rem;
    }

    .unit-option i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .result-value {
        font-size: 3.5rem;
        margin: 0.5rem 0;
    }

    .sadar-visualization {
        gap: 1.5rem;
    }

    .sadar-grid-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sadar-group::after {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }

    .number-display {
        font-size: 2rem;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .sadar-group {
        max-width: 60px;
    }
    
    .sadar-group.x1000 {
        max-width: 80px;
    }
    
    .sadar-group.x100 {
        max-width: 70px;
    }
    
    .sadar-group.x10 {
        max-width: 60px;
    }
    
    .group-container {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 1rem;
    }
}

/* Estilos para el botón de adivinanza */
.guess-button {
    /* eliminar estas líneas:
    position: absolute;
    top: 1rem;
    right: 1rem;
    */
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 3.5rem;
}

.guess-button:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal de adivinanza mejorado */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--background-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--primary-color);
}

.guess-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guess-input-container input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1.1rem;
    min-height: 3.5rem;
}

.guess-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-guess, .next-guess {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.next-guess {
    background: var(--secondary-color);
    margin-top: 1.5rem;
}

.guess-result {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.guess-result.correct {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
}

.guess-result.wrong {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
}

.guess-result.close {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #F59E0B;
}

.fact-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ajustes responsive */
@media (min-width: 768px) {
    .guess-input-container input {
        font-size: 1.2rem;
    }

    .submit-guess, .next-guess {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .guess-question {
        font-size: 1.2rem;
        margin: 1rem 0 1.5rem;
    }

    .close-button {
        font-size: 1.5rem;
        padding: 0.3rem;
    }

    .fact-message {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Estilo para el contador de grupos adicionales */
.total-counter {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: pre-line;
    text-align: center;
    color: var(--text-color);
    margin-top: 1rem;
}

@keyframes sadarAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ajustar el orden de los elementos en el resultado */
.result-section {
    display: flex;
    flex-direction: column;
}

.result-section > * {
    order: 2;
}

.share-buttons {
    order: 1;
}

/* Añadir estilos para la transición */
.converter-container, .result-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.converter-container.hidden, .result-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Estilo para el botón de nueva medición */
.new-measurement {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1.5rem auto 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-height: 4rem;
}

.new-measurement i {
    font-size: 1.4rem;
}

/* Estilos para el footer con logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: 'BaksoSapi', system-ui, sans-serif;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-brand {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .footer-brand img {
        width: 120px;
    }

    .footer-brand p {
        font-size: 1rem;
    }
}

/* Declarar la fuente personalizada */
@font-face {
    font-family: 'BaksoSapi';
    src: url('../fonts/BaksoSapi.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Aplicar la fuente a los títulos */
h1, h2, .result-value {
    font-family: 'BaksoSapi', system-ui, sans-serif;
}

/* Estilos para la sección de patrocinio */
.sponsor-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sponsor-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.sponsor-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sponsor-button:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sponsor-button i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .sponsor-section {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }

    .sponsor-section h2 {
        font-size: 1.5rem;
    }

    .sponsor-section p {
        font-size: 1rem;
    }
}

/* Mejorar el diseño de la pregunta */
.guess-question {
    font-size: 1.4rem;
    margin: 1.5rem 0 2rem;
    text-align: center;
    line-height: 1.6;
    color: var(--text-color);
}

.guess-question strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Banner de instalación */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.install-banner.hidden {
    display: none;
}

.install-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.install-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.install-text i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.install-actions {
    display: flex;
    gap: 0.8rem;
}

.install-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dismiss-button {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.install-button:hover {
    background: #a01a1f;
    transform: translateY(-2px);
}

.dismiss-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
    .install-content {
        flex-direction: column;
        text-align: center;
    }
    
    .install-actions {
        width: 100%;
    }
    
    .install-button,
    .dismiss-button {
        flex: 1;
    }
}

/* Estilos para la sección del juego */
.game-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    );
    margin: 3rem 0;
}

.guess-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.guess-input-container input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.submit-guess {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-guess:hover {
    background: #a01a1f;
    transform: translateY(-2px);
}

.next-guess {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.next-guess:hover {
    background: #004080;
    transform: translateY(-2px);
}

/* Ajustar estilos existentes */
.guess-question {
    font-size: 1.4rem;
    margin: 1.5rem 0 2rem;
    text-align: center;
    line-height: 1.6;
    color: var(--text-color);
}

.guess-result {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.guess-result.hidden {
    display: none;
}

@media (max-width: 768px) {
    .game-section {
        padding: 1.5rem;
        margin: 1rem;
    }

    .guess-input-container {
        flex-direction: column;
    }

    .guess-input-container input,
    .submit-guess {
        width: 100%;
    }
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 1.1rem;
        margin: 1rem auto;
        padding: 0 1.5rem;
    }
}

.header-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.sadar-logo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sadar-logo:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .header-image {
        max-width: 200px;
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 