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

:root {
    --primary-color: #7C2D37;
    --primary-dark: #4A1A21;
    --secondary-color: #A0303E;
    --accent-color: #C5495A;
    --bg-color: #1A1A1A;
    --bg-light: #2A2A2A;
    --text-light: #F5F5F5;
    --text-muted: #B8B8B8;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --border-color: #3A3A3A;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #0F0F0F 100%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo span {
    color: var(--accent-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#authButtons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#userSection {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.user-greeting {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.user-greeting strong {
    color: var(--accent-color);
}

/* Buttons */
button, .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Spinner Section */
.spinner-section {
    text-align: center;
    padding: 3rem 0;
}

.spinner-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.spinner-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Wheel Container */
.wheel-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto 2rem;
}

.wheel-outer, .wheel-inner {
    position: absolute;
    overflow: hidden;
}

.wheel-outer {
    width: 600px !important;
    height: 600px !important;
    top: 0;
    left: 0;
    transform-origin: 50% 50%;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.wheel-border {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 0;
    left: 0;
    background: radial-gradient(circle, transparent 290px, #4A1A21 290px, #4A1A21 300px, transparent 300px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

.wheel-inner {
    width: 350px;
    height: 350px;
    top: 125px;
    left: 125px;
    box-shadow: inset 0 0 0 8px var(--secondary-color), 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform-origin: center center;
    z-index: 10;
}

.wheel-slice {
    position: absolute;
    width: 600px !important;
    height: 600px !important;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform-origin: 50% 50%;
    box-sizing: border-box !important;
}

.wheel-slice-inner {
    width: 350px !important;
    height: 350px !important;
}

.wheel-slice-text {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 25%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    text-align: center;
}

.wheel-slice-inner .wheel-slice-text {
    font-size: 0.65rem;
}

.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--accent-color);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    z-index: 15;
}

.spin-button-container {
    margin-top: 2rem;
}

#spinButton {
    font-size: 1.3rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 6px 25px rgba(210, 105, 30, 0.4);
}

#spinButton:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(210, 105, 30, 0.5);
}

#spinButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: none;
}

.results-section.show {
    display: block;
    animation: slideUp 0.5s ease;
}

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

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

.results-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.combo-title {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.result-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.result-card h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-card p, .result-card ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.result-card ul {
    padding-left: 1.5rem;
}

.result-card li {
    margin-bottom: 0.5rem;
}

.recipe-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-item strong {
    color: var(--accent-color);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-btn .star {
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.modal-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-switch a:hover {
    color: var(--secondary-color);
}

/* Dashboard */
.dashboard {
    display: none;
    margin-top: 3rem;
}

.dashboard.show {
    display: block;
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-btn:hover {
    color: var(--accent-color);
}

.tab-content {
    display: none;
}

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

.history-list, .favorites-list {
    display: grid;
    gap: 1rem;
}

.history-item, .favorite-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.history-item:hover, .favorite-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.item-info h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Signup Prompt */
.signup-prompt {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border: 2px solid var(--accent-color);
}

.signup-prompt h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.signup-prompt p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.signup-prompt ul {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.signup-prompt li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.signup-prompt li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.95);
    border-top: 2px solid var(--primary-color);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-color);
}

.footer-content a[href^="mailto"] {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-content a[href^="mailto"]:hover {
    color: var(--secondary-color);
}

/* Admin Portal */
.admin-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 3rem 4rem;
    min-height: calc(100vh - 200px);
}

.admin-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.admin-section > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.admin-tabs .tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-tabs .tab-btn:hover {
    color: var(--accent-color);
}

.admin-tabs .tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.admin-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-actions h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0;
}

.admin-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.admin-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 45, 55, 0.2);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.admin-item-header h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.admin-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.admin-item-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-item-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.admin-item-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.admin-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-item-meta strong {
    color: var(--accent-color);
}

.modal-large {
    max-width: 900px;
}

.modal-large textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.modal-large textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Terms Page */
.terms-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.terms-section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.terms-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.terms-content h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-content ul {
    color: var(--text-light);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.terms-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.terms-content a:hover {
    color: var(--secondary-color);
}

.terms-content strong {
    color: var(--accent-color);
}

/* Slot Machine (Mobile) */
.slots-section {
    text-align: center;
    padding: 2rem 0;
}

.slots-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slots-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.slots-container {
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.slot-machine {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.slot-column {
    flex: 1;
    max-width: 200px;
}

.slot-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slot-window {
    height: 400px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.9) 50%, rgba(26, 26, 26, 0.95) 100%);
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(124, 45, 55, 0.3);
}

.slot-window::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 100px;
    transform: translateY(-50%);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 15px rgba(197, 73, 90, 0.5);
}

.slot-reel {
    display: flex;
    flex-direction: column;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    will-change: transform;
}

.slot-item {
    height: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.slot-item:nth-child(odd) {
    background: var(--bg-color);
}

.pull-button-container {
    margin-top: 1.5rem;
}

#pullButton {
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 6px 25px rgba(210, 105, 30, 0.4);
    min-width: 200px;
}

#pullButton:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(210, 105, 30, 0.5);
}

#pullButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Slide-out Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.slide-menu.active {
    right: 0;
}

.slide-menu-content {
    padding: 80px 2rem 2rem 2rem;
}

.menu-auth-section,
.menu-user-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-user-section .user-greeting {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Show/Hide based on device */
/* By default (desktop), show wheel and hide slots */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

/* Print Styles */
@media print {
    header, .nav-buttons, .spinner-section, .slots-section, .signup-prompt, .dashboard, .results-actions {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .results-section {
        border: none;
        box-shadow: none;
    }

    .result-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* Hamburger menu hidden by default (desktop) */
.hamburger-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger, hide nav buttons on mobile */
    .hamburger-btn {
        display: flex !important;
    }

    .nav-buttons {
        display: none !important;
    }

    /* Hide desktop wheel, show mobile slots */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile adjustments */
    .container {
        padding: 1rem;
    }

    .results-content {
        grid-template-columns: 1fr;
    }

    .header-content {
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    button, .btn {
        padding: 0.75rem 1rem;
    }

    .slots-section h1 {
        font-size: 2rem;
    }

    .slots-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .slot-label {
        font-size: 1rem;
    }

    .slot-window {
        height: 350px;
    }

    .slot-item {
        font-size: 0.95rem;
        height: 87.5px;
    }

    .slot-window::before {
        height: 87.5px;
    }

    #pullButton {
        font-size: 1.3rem;
        padding: 1rem 2.5rem;
        width: auto;
    }

    .results-section {
        padding: 1.5rem;
    }

    .results-header h2 {
        font-size: 2rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .result-card h3 {
        font-size: 1.5rem;
    }

    .admin-list {
        grid-template-columns: 1fr;
    }

    .admin-section {
        padding: 1.5rem 1rem;
    }

    .dashboard-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .slots-section h1 {
        font-size: 1.75rem;
    }

    .slot-machine {
        gap: 1rem;
    }

    .slot-window {
        height: 300px;
    }

    .slot-item {
        font-size: 0.85rem;
        height: 75px;
        padding: 0 0.5rem;
    }

    .slot-window::before {
        height: 75px;
    }

    #pullButton {
        font-size: 1.2rem;
        padding: 0.9rem 2rem;
    }

    .result-card h3 {
        font-size: 1.3rem;
    }
}
