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

body {
    background: #0a0503;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    color: #e4d5c3;
    position: relative;
    overflow-x: hidden;
    font-family: 'Cinzel', 'Segoe UI', Georgia, serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(180, 130, 70, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(120, 80, 50, 0.15) 0%, transparent 35%),
        repeating-linear-gradient(45deg, rgba(100, 70, 40, 0.1) 0px, rgba(100, 70, 40, 0.1) 2px, transparent 2px, transparent 8px);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.language-corner {
    position: fixed;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #d4af37;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: clamp(0.8rem, 3vw, 1rem);
    color: #ffd966;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(5px);
    font-family: 'Cinzel', serif;
}

.vault-door {
    background: linear-gradient(145deg, #2a1e14 0%, #1a120b 100%);
    border: 8px double #b89b7b;
    border-radius: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px) clamp(10px, 3vw, 20px);
    padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px);
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 20px #b89b7b, 0 0 0 4px #4a3729, 0 0 0 8px #2a1e14;
    position: relative;
    margin-bottom: 20px;
}

.vault-door::before {
    content: '';
    position: absolute;
    top: clamp(12px, 3vw, 20px);
    left: clamp(12px, 3vw, 20px);
    right: clamp(12px, 3vw, 20px);
    bottom: clamp(12px, 3vw, 20px);
    border: 2px solid rgba(180, 140, 100, 0.3);
    border-radius: clamp(15px, 4vw, 30px);
    pointer-events: none;
}

h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: #ffd966;
    text-shadow: 0 0 15px #b8860b, 3px 3px 0 #4a2c1a;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 3px double #b89b7b;
    padding-bottom: 20px;
}

h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    color: #e6c9a8;
    border-bottom: 3px double #b89b7b;
    padding-bottom: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.story-text {
    background: rgba(30, 20, 10, 0.8);
    border: 3px solid #8b6b4b;
    border-radius: 30px 10px 30px 10px;
    padding: clamp(16px, 4vw, 24px);
    margin-bottom: 32px;
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.5;
    text-align: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    position: relative;
}

.highlight {
    color: #ffb347;
    font-weight: bold;
    text-shadow: 0 0 10px #ff8c00;
}

.bonus-info {
    background: rgba(100, 50, 150, 0.3);
    border-radius: 50px;
    padding: 10px 16px;
    margin: 20px 0;
    text-align: center;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    border: 1px solid #b89b7b;
}

.code-input-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

input {
    background: rgba(10, 5, 3, 0.9);
    border: 4px solid #8b6b4b;
    border-radius: 60px;
    padding: 16px 20px;
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: #ffd966;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    width: 100%;
}

input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 30px #d4af37;
}

button {
    background: linear-gradient(165deg, #3a2a1a 0%, #1a0e06 100%);
    border: 4px solid #b89b7b;
    border-radius: 60px;
    padding: 14px 20px;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: bold;
    color: #ffd966;
    text-shadow: 0 2px 0 #4a2c1a;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 0 #4a3729;
    width: 100%;
    text-align: center;
    font-family: 'Cinzel', serif;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.3;
}

button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #4a3729;
}

.votes-left {
    font-size: clamp(1rem, 4vw, 1.2rem);
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 60px;
    border: 2px solid #b89b7b;
}

.votes-number {
    font-size: clamp(1.6rem, 6vw, 2rem);
    font-weight: bold;
    color: #ffd966;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0 30px;
}

.suggestion-card {
    background: rgba(25, 15, 10, 0.9);
    border: 2px solid #6a4e3a;
    border-radius: 16px;
    padding: 10px 6px;
    text-align: center;
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    word-break: break-word;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    color: #e6c9a8;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.suggestion-card.voted {
    background: linear-gradient(135deg, #3a5a3a 0%, #1e3a1e 100%);
    border-color: #7aa87a;
    box-shadow: 0 0 15px #7aa87a;
}

.suggestion-card.guido-triggered {
    background: linear-gradient(135deg, #6a3a3a 0%, #4a2a2a 100%);
    border-color: #ff6b6b;
    opacity: 0.8;
}

.suggestion-card:active {
    transform: scale(0.97);
}

.vote-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d4af37;
    color: #1a0f0c;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid #f1d9b3;
}

.favorite-star {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #9b6b9b;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid #d9b3d9;
}

.forgot-link {
    text-align: center;
    margin: 15px 0 10px;
    color: #b89b7b;
    text-decoration: underline;
    cursor: pointer;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.forgot-link:hover {
    color: #ffd966;
}

.participant-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 10px;
    padding-top: 20px;
    border-top: 2px solid #8b6b4b;
}

.participant-badge {
    background: rgba(30, 20, 10, 0.8);
    border: 2px solid #b89b7b;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    color: #e6c9a8;
    transition: all 0.2s;
}

.participant-badge.voted {
    background: #2a5a2a;
    border-color: #7aa87a;
    color: #aaffaa;
}

.admin-panel {
    background: linear-gradient(165deg, #1a0f08 0%, #0a0502 100%);
    border: 6px double #b8860b;
    border-radius: 40px 10px 40px 10px;
    padding: 24px 16px;
    margin-top: 20px;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.9), 0 0 30px #b8860b;
}

.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #8b6b4b;
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item > div:first-child {
    flex: 2;
}

.stat-item > div:last-child {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-item-details {
    width: 100%;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #b89b7b;
    border-top: 1px solid #8b6b4b;
    padding-top: 8px;
}

.view-votes-btn {
    background: #3a2a1a;
    border: 1px solid #b89b7b;
    border-radius: 20px;
    padding: 4px 12px;
    color: #ffd966;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 8px;
}

.view-votes-btn:hover {
    background: #5a3e2b;
}

.admin-toggle {
    background: #2a1a0a;
    border: 2px solid #b89b7b;
    border-radius: 30px;
    padding: 5px 12px;
    color: #ffd966;
    cursor: pointer;
    font-size: 0.75rem;
}

.badge {
    background: #d4af37;
    color: #1a0f0c;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 4px;
    margin-right: 4px;
}

.gag-meister {
    background: #ff6b6b;
    color: white;
    text-shadow: 0 0 5px red;
}

.leaderboard-item {
    background: rgba(20, 10, 5, 0.8);
    border: 2px solid #d4af37;
    border-radius: 50px;
    padding: 10px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid #d4af37;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.leaderboard-rank {
    font-weight: bold;
    color: #d4af37;
    margin-right: 10px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    min-width: 120px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 12px 8px;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
}

.return-home {
    margin-top: 20px;
    text-align: center;
}

.return-home button {
    background: #2a1a1a;
    border-color: #8b6b4b;
    padding: 10px 16px;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    width: auto;
    min-width: 160px;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,5,3,0.95);
    border: 3px solid #d4af37;
    border-radius: 60px;
    padding: 10px 20px;
    color: #ffd966;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    font-weight: bold;
    z-index: 2000;
    animation: slideDown 0.4s ease, fadeOut 0.5s ease 3.5s forwards;
    text-align: center;
    white-space: normal;
    max-width: 85vw;
    word-break: break-word;
    line-height: 1.3;
}

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

@keyframes fadeOut {
    to { opacity: 0; }
}

.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.boulder-word {
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: bold;
    color: #8b5a2b;
    text-shadow: 6px 6px 0 #4a2c1a;
    background: linear-gradient(145deg, #6a4a2a, #3a2a1a);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 60px;
    margin: 5px;
    box-shadow: 0 20px 30px black;
    transform: scale(0);
    animation: bounceIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    text-align: center;
}

@keyframes bounceIn {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.boulder-crumble {
    animation: crumble 0.5s forwards;
}

@keyframes crumble {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.3) translateY(50px); opacity: 0; }
}

.reveal-message {
    font-size: clamp(0.9rem, 3.5vw, 1.4rem);
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 0 20px red;
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #ff6b6b;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease forwards, pulse 1.5s infinite;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    position: static;
    transform: none;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px red; transform: scale(1); }
    50% { text-shadow: 0 0 25px #ff6b6b; transform: scale(1.02); }
    100% { text-shadow: 0 0 10px red; transform: scale(1); }
}

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

.dark-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 4000;
    animation: darkFade 3s ease-in-out forwards;
}

@keyframes darkFade {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.lost-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
    z-index: 4001;
    animation: imageFade 5s ease-in-out forwards;
}

@keyframes imageFade {
    0% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 20px;
}

.modal-content {
    background: #2d1a14;
    border: 3px solid #b89b7b;
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
}

.footer-note {
    text-align: center;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    color: #b89b7b;
    margin-top: 15px;
}

.victor-bio-text {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.5;
    font-style: italic;
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 20px;
    margin-top: 20px;
    text-align: justify;
}

.rainbow-link {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    font-size: clamp(1rem, 4vw, 1.3rem);
    display: block;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
}

.treat-link {
    background: linear-gradient(135deg, #4a3a2a 0%, #3a2a1a 100%);
    border-radius: 50px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.treat-link p {
    margin-bottom: 6px;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.treat-link a {
    text-decoration: none;
    display: inline-block;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 10px;
    background: rgba(100,0,0,0.3);
    border-radius: 50px;
    margin: 10px 0;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.lang-btn {
    padding: 16px;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    background: linear-gradient(135deg, #3a2a1a 0%, #2a1a0a 100%);
    text-align: center;
    border: 4px solid #b89b7b;
    border-radius: 60px;
    color: #ffd966;
    cursor: pointer;
    font-family: 'Cinzel', serif;
}

.lang-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.intro-text {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 24px;
    text-wrap: balance;
}

.intro-text p {
    margin-bottom: 12px;
}

.center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.test-badge {
    background: #ff6b6b;
    color: #1a0f0c;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.victor-bio {
    text-align: left;
    padding: 20px;
}

.victor-portrait {
    width: 100px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #d4af37;
    background: #2a1e14;
}

.victor-bio ul li {
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    line-height: 1.3;
}
