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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    min-height: 100vh;
}

.site {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

#randomButton {
    background: #111;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 12px 48px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin-top: 32px;
    margin-bottom: 0;
}

#randomButton:hover {
    background: #333;
}

#randomButton:active {
    transform: scale(0.97);
}

.result {
    animation: fadeIn 0.3s ease-out;
}

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

.logo-wrapper {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

#clubLogo {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

#clubName {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.3px;
    word-break: break-word;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.back-arrow {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    font-size: 32px;
    color: #ddd;
    cursor: default;
    transition: color 0.2s;
    padding: 10px;
    margin: 0;
    z-index: 500;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}

.back-arrow:hover {
    background: none !important;
}

.back-arrow:active {
    transform: translateY(-50%) !important;
}

.back-arrow.active {
    color: #999;
    cursor: pointer;
}

.back-arrow.active:hover {
    background: none !important;
    color: #333;
}

.back-arrow.active:active {
    transform: translateY(-50%) !important;
}

/* History dots */
.history-dots {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 500;
}

.history-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.history-dot:hover {
    background: #999;
    transform: scale(1.3);
}

.history-dot:hover::after {
    content: attr(data-name);
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
}

/* Feedback */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #999;
    border: 1.5px solid #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.feedback-button:hover {
    border-color: #666;
    color: #333;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
}

.modal-content p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

textarea#feedbackText {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#sendFeedback {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s;
}

#sendFeedback:hover {
    transform: translateY(-2px);
}

/* Focus */
button:focus,
button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.back-arrow:focus,
.back-arrow:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 550px) {
    .site {
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
    
    #randomButton {
        font-size: 1rem;
        padding: 10px 40px;
    }
    
    .logo-wrapper {
        min-height: 200px;
    }
    
    #clubLogo {
        max-height: 200px;
    }
    
    #clubName {
        font-size: 0.875rem;
    }

    .back-arrow {
        left: 8px;
        font-size: 26px;
    }

    .history-dots {
        bottom: 16px;
        gap: 10px;
    }
    
    .history-dot {
        width: 12px;
        height: 12px;
    }
}