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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Arial', sans-serif;
    gap: 60px;
    padding: 20px;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    flex-direction: column;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-select {
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 36px;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select option {
    background: #667eea;
    color: white;
}

/* Android Install Banner */
.android-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.android-install-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.android-install-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.android-install-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.android-install-button {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    min-height: 36px;
    flex-shrink: 0;
}

.android-install-button:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.android-install-button:active {
    transform: translateY(0);
}

.android-install-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.8;
}

.android-install-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

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

body.android-banner-visible {
    padding-top: 104px;
}

body.android-banner-visible .main-header {
    top: 44px;
}

body.android-banner-visible .page-container {
    padding-top: 124px;
}

@media (max-width: 768px) {
    body.android-banner-visible {
        padding-top: 104px;
    }
    
    body.android-banner-visible .main-header {
        top: 44px;
    }
    
    body.android-banner-visible .page-container {
        padding-top: 114px;
    }
    
    .android-install-banner {
        padding: 10px 15px;
    }
    
    .android-install-text {
        font-size: 13px;
    }
    
    .android-install-button {
        padding: 6px 16px;
        font-size: 13px;
        min-height: 32px;
    }
}

@media (max-width: 480px) {
    body.android-banner-visible {
        padding-top: 100px;
    }
    
    body.android-banner-visible .main-header {
        top: 44px;
    }
    
    body.android-banner-visible .page-container {
        padding-top: 110px;
    }
    
    .android-install-banner {
        padding: 8px 12px;
    }
    
    .android-install-icon {
        font-size: 20px;
    }
    
    .android-install-text {
        font-size: 12px;
    }
    
    .android-install-button {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 30px;
    }
    
    .android-install-close {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    gap: 20px;
    transition: top 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Page Container */
.page-container {
    width: 100%;
    padding-top: 80px;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.main-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
}

.main-container.answers-container {
    justify-content: center;
    align-items: center;
    gap: 0;
}

.clickable-ball {
    cursor: pointer;
    transition: transform 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.clickable-ball:hover {
    transform: scale(1.05);
}

.clickable-ball:active {
    transform: scale(0.98);
}

.ball-container {
    perspective: 2000px;
    perspective-origin: center center;
}

.ball {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(100, 100, 100, 0.2) 15%,
        rgba(0, 0, 0, 0.8) 30%,
        #000000 50%,
        #0a0a0a 100%);
    position: relative;
    box-shadow: 
        inset -40px -40px 100px rgba(0, 0, 0, 0.8),
        inset 40px 40px 100px rgba(255, 255, 255, 0.1),
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
}

.ball::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%);
    top: 25%;
    left: 25%;
    filter: blur(16px);
    pointer-events: none;
}

.ball::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.window {
    position: relative;
    z-index: 10;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.95) 100%);
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.9),
        inset 0 0 80px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.window::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(33, 150, 243, 0.6) 0%,
        rgba(33, 150, 243, 0.4) 20%,
        rgba(33, 150, 243, 0.2) 40%,
        rgba(33, 150, 243, 0.1) 60%,
        transparent 80%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

.ball-text {
    position: relative;
    z-index: 15;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    user-select: none;
    opacity: 1;
    padding: 8px;
}

.ball-text.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-40px) rotateX(5deg) rotateY(5deg);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px) translateY(-5px) rotate(-2deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px) translateY(5px) rotate(2deg);
    }
}

.ball.shake {
    animation: shake 0.5s ease-in-out !important;
}

.shadow {
    width: 360px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    margin-top: 60px;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
    max-width: 300px;
}

.form-label {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.items-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin-top: -10px;
    margin-bottom: -10px;
    transition: color 0.3s ease;
}

.items-counter.has-items {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.list-input {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.list-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.list-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.select-button {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    touch-action: manipulation;
    min-height: 48px;
}

.select-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* Number Inputs */
.number-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.number-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.number-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.number-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
    max-width: 300px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.clear-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    min-height: 36px;
}

.clear-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.results-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.results-list::-webkit-scrollbar {
    width: 8px;
}

.results-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.result-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.result-item:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.no-results {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.cookies-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookies-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookies-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookies-button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    min-height: 40px;
}

.cookies-button.accept-button {
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border-color: rgba(76, 175, 80, 0.6);
}

.cookies-button.accept-button:hover {
    background: rgba(76, 175, 80, 1);
    border-color: rgba(76, 175, 80, 0.8);
    transform: translateY(-2px);
}

.cookies-button.decline-button {
    background: rgba(158, 158, 158, 0.5);
    color: white;
    border-color: rgba(158, 158, 158, 0.4);
}

.cookies-button.decline-button:hover {
    background: rgba(158, 158, 158, 0.7);
    border-color: rgba(158, 158, 158, 0.6);
    transform: translateY(-2px);
}

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

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

.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

body.cookies-banner-visible .copyright {
    /* bottom will be set dynamically by JavaScript */
}

/* Shake Permission Button */
.shake-permission-button {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 999;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.shake-permission-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.shake-permission-button:active {
    transform: scale(0.95);
}

body.cookies-banner-visible .shake-permission-button {
    bottom: 250px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright a.footer-link,
.copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.copyright a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Tablet styles */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .ball {
        width: 300px;
        height: 300px;
        animation: float 3s ease-in-out infinite;
    }

    .window {
        width: 150px;
        height: 150px;
    }

    .window::before {
        width: 120px;
        height: 120px;
        filter: blur(22px);
    }

    .ball-text {
        font-size: 18px;
    }

    .shadow {
        width: 270px;
        height: 45px;
        margin-top: 45px;
    }

    .form-container,
    .results-container {
        width: 100%;
        max-width: 500px;
        min-width: auto;
    }

    body {
        padding: 15px;
        padding-top: 70px;
        gap: 40px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 60px;
        padding-bottom: 48px;
        gap: 30px;
    }

    .cookies-banner {
        padding: 15px;
    }

    .cookies-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cookies-text {
        font-size: 13px;
    }

    .cookies-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookies-button {
        flex: 1;
    }

    body.cookies-banner-visible .copyright {
        /* bottom will be set dynamically by JavaScript */
    }

    .copyright {
        padding: 10px 15px;
    }

    .copyright p {
        font-size: 13px;
    }

    .main-header {
        height: 50px;
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .logo-text {
        font-size: 14px;
        display: none;
    }

    .main-nav {
        gap: 5px;
    }

    .nav-item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .language-select {
        padding: 6px 10px;
        font-size: 13px;
        min-height: 32px;
    }

    .page-container {
        padding-top: 70px;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    .main-container.answers-container {
        gap: 0;
    }

    .number-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .ball-container {
        margin-top: 0;
        order: -1;
    }

    .ball {
        width: 340px;
        height: 340px;
        animation: float 3s ease-in-out infinite;
    }

    .ball::before {
        width: 102px;
        height: 102px;
        filter: blur(10px);
    }

    .window {
        width: 170px;
        height: 170px;
    }

    .window::before {
        width: 136px;
        height: 136px;
        filter: blur(18px);
    }

    .ball-text {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .shadow {
        width: 306px;
        height: 51px;
        margin-top: 51px;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .form-label {
        font-size: 16px;
    }

    .items-counter {
        font-size: 13px;
        padding: 6px 0;
    }

    .list-input {
        min-height: 150px;
        padding: 12px;
        font-size: 14px;
    }

    .select-button {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 44px;
    }

    .results-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .results-title {
        font-size: 16px;
    }

    .clear-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .results-list {
        min-height: 200px;
        max-height: 300px;
        padding: 12px;
    }

    .result-item {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .no-results {
        padding: 30px 15px;
        font-size: 14px;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px) rotateX(0deg) rotateY(0deg);
        }
        50% {
            transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
        }
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    body {
        padding: 8px;
        padding-top: 55px;
        padding-bottom: 48px;
        gap: 25px;
    }

    .main-header {
        height: 45px;
        padding: 0 8px;
    }

    .logo {
        font-size: 14px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-text {
        font-size: 12px;
    }

    .nav-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .language-select {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 28px;
    }

    .main-header {
        gap: 8px;
    }

    .page-container {
        padding-top: 16px;
    }

    .main-container {
        gap: 25px;
    }

    .main-container.answers-container {
        gap: 0;
    }

    .ball-container {
        margin-top: 0;
        order: -1;
    }

    .main-container.answers-container .ball-container {
        margin-top: 0;
    }

    .ball {
        width: 340px;
        height: 340px;
        animation: float 3s ease-in-out infinite;
    }

    .ball::before {
        width: 102px;
        height: 102px;
        filter: blur(10px);
    }

    .window {
        width: 170px;
        height: 170px;
    }

    .window::before {
        width: 136px;
        height: 136px;
        filter: blur(18px);
    }

    .ball-text {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .shadow {
        width: 306px;
        height: 51px;
        margin-top: 16px;
    }

    .form-label {
        font-size: 14px;
    }

    .items-counter {
        font-size: 12px;
        padding: 5px 0;
    }

    .list-input {
        min-height: 120px;
        padding: 10px;
        font-size: 14px;
    }

    .select-button {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .clear-button {
        min-height: 32px;
    }

    .results-title {
        font-size: 14px;
    }

    .clear-button {
        padding: 5px 10px;
        font-size: 11px;
    }

    .results-list {
        min-height: 150px;
        max-height: 250px;
        padding: 10px;
    }

    .result-item {
        padding: 8px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .no-results {
        padding: 20px 10px;
        font-size: 12px;
    }

    .cookies-banner {
        padding: 12px;
    }

    .cookies-text {
        font-size: 12px;
    }

    .cookies-button {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 36px;
    }

    body.cookies-banner-visible .copyright {
        /* bottom will be set dynamically by JavaScript */
    }
    
    .shake-permission-button {
        bottom: 120px;
        right: 15px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    body.cookies-banner-visible .shake-permission-button {
        bottom: 220px;
    }

    .copyright {
        padding: 10px 15px;
    }

    .copyright p {
        font-size: 12px;
    }
}
