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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.birthday-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.clue-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.duck-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: duck-bounce 2s infinite;
}

@keyframes duck-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

main {
    padding: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.birthday-card {
    border-left: 4px solid #f5576c;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
}

.clue-card {
    border-left: 4px solid #4facfe;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
}

.clue-number {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.qr-section {
    border-left: 4px solid #f5576c;
    text-align: center;
}

.qr-container {
    margin: 20px 0;
}

.qr-code {
    border: 4px solid #667eea;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-caption {
    margin-top: 10px;
    font-weight: 600;
    color: #667eea;
}

.info-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.birthday-card h2 {
    color: #f5576c;
}

.clue-card h2,
.clue-content h2 {
    color: #0284c7;
}

.info-card p {
    margin-bottom: 10px;
    color: #555;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: #555;
}

.instructions-list {
    padding-left: 25px;
    margin: 15px 0;
}

.instructions-list li {
    margin: 10px 0;
    color: #555;
}

.action-box {
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.clue-box {
    background: white;
    border: 3px solid #4facfe;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    position: relative;
}

.clue-decoration {
    font-size: 2rem;
}

.clue-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0284c7;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.clue-hint {
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

.duck-hint-text {
    color: #4facfe;
    font-weight: 600;
}

.encouragement {
    font-weight: bold;
    color: #f5576c;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}

.duck-celebration {
    text-align: center;
    margin: 20px 0;
}

.big-duck {
    font-size: 4rem;
    display: block;
    margin: 10px 0;
}

.duck-message {
    font-weight: 600;
    color: #4facfe;
    font-size: 1.1rem;
}

.duck-emoji {
    font-size: 1.5rem;
    display: inline-block;
    animation: duck-waddle 3s infinite;
}

@keyframes duck-waddle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.duck-footer {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.duck-footer .duck-emoji {
    margin: 0 15px;
    font-size: 2rem;
}

.duck-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #e0f2fe;
    border-radius: 8px;
}

.hint-text {
    font-weight: 600;
    color: #0284c7;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.clue-form {
    margin: 20px 0;
}

.clue-form input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.clue-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #c33;
    text-align: center;
}

.error-message p {
    margin: 5px 0;
    color: #c33;
}

.error-duck {
    font-size: 0.9rem;
    font-style: italic;
}

.back-link {
    margin-top: 30px;
    text-align: center;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #764ba2;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.party-emoji {
    font-size: 1.5rem;
    display: inline-block;
}

.final-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.final-card {
    border-left: 4px solid #f5576c;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
}

.final-box {
    border-color: #f5576c;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.final-instruction {
    color: #f5576c;
    font-size: 2rem;
    margin-top: 10px;
}

.celebration-hint {
    color: #f5576c;
    font-weight: 700;
    font-size: 1.2rem;
}

.pizza-section {
    text-align: center;
    border-left: 4px solid #0284c7;
}

.pizza-logo {
    padding: 20px;
}

.dominos-logo {
    max-width: 300px;
    height: auto;
}

.completion-card {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.completion-card h2 {
    color: #10b981;
}

.celebration-ducks {
    font-size: 2.5rem;
}

.celebration-ducks .duck-emoji,
.celebration-ducks .party-emoji {
    font-size: 2.5rem;
    margin: 0 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .container {
        border-radius: 0;
    }

    main {
        padding: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .clue-text {
        font-size: 1.4rem;
    }

    .duck-icon {
        font-size: 2rem;
    }
}
