@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:wght@300;400&display=swap');

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1e1e1e;
    --gold: #c5a059;
    --gold-bright: #e5c17d;
    --text-color: #e0d5c1;
    --accent: #4a0404;
    /* Deep Burgundy */
    --menu-bottom-offset: 75px;
    /* Gap between menu and bottom icon */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Source Sans Pro', sans-serif;
    height: 100vh;
    height: 100dvh;
    /* Dynamic Viewport Height for mobile browsers */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1510 0%, #0d0d0d 100%);
}

header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
}

.footer-corner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.footer-corner-btn:hover {
    background: var(--gold);
    color: var(--bg-color);
}

.util-wrapper {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

.util-btn {
    position: relative;
    top: 0;
    transform: none;
    font-size: 1rem;
}

.info-btn {
    right: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-style: normal;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.venue-tag {
    font-size: 1.1rem;
    color: var(--gold-bright);
    opacity: 0.8;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.venue-badge {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    display: inline-block;
    vertical-align: middle;
}

/* Old venue label logic replaced by .venue-label class in HTML */

.venue-tag.interactive {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(197, 160, 89, 0.3);
}

.venue-subheader {
    font-size: 0.75rem;
    color: var(--gold);
    margin-top: 4px;
    opacity: 0.8;
    letter-spacing: 0.5px;
    font-style: italic;
    animation: softPulse 2s infinite ease-in-out;
}

@keyframes softPulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.highlight-subhead {
    color: var(--gold) !important;
    font-style: italic;
    opacity: 1 !important;
}

/* Mini Table Overlay */
.table-mini-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mini-overlay-content {
    background: #111;
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mini-title {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mini-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.mini-code-box {
    padding: 1rem;
}

.mini-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.mini-table-code {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.mini-qr-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.mini-qr-container img {
    display: block;
    width: 150px;
    height: 150px;
}

.mini-close-link {
    background: transparent;
    border: none;
    color: var(--gold);
    text-decoration: underline;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
}

.venue-tag.interactive:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(229, 193, 125, 0.5);
    text-decoration-color: var(--gold-bright);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.card-section {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    gap: 15px;
    padding: 20px 10px 0;
}

.menu-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.menu-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 5px;
    font-family: 'Source Sans Pro', sans-serif;
}

/* Ensure content doesn't get hidden behind fixed footer on small screens */
@media (max-height: 700px) {
    .menu-section {
        min-height: 80px;
    }
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s;
    user-select: none;
    z-index: 10;
}

.nav-btn:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--gold);
}

@media (max-width: 400px) {
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    main {
        padding: 0;
    }
}

.card-slider {
    width: 85%;
    max-width: 350px;
    height: 100%;
    min-height: 300px;
    max-height: 52vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-container.is-flipped {
    transform: rotateY(180deg);
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(197, 160, 89, 0.3);
    border: 4px solid var(--gold);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.flip-hint {
    position: absolute;
    bottom: 12px;
    right: 18px;
    font-size: 0.65rem;
    opacity: 0.3;
    color: var(--gold);
    transition: opacity 0.3s;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Source Sans Pro', sans-serif;
}

.card:hover .flip-hint {
    opacity: 0.8;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    /* Ensure opaque background for back face */
}

.card-category {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-recap {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    opacity: 0.7;
    font-style: italic;
    max-height: 3.6em;
    /* Show approx 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
}

.card-prompt {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--text-color);
}

.vote-tally {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 1rem;
    pointer-events: none;
}

.tally-chip {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tally-chip span {
    font-size: 1.4rem;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.back-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--bg-color);
}

.back-content {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

footer {
    padding: 0.25rem 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
    background: transparent;
    width: 100%;
    z-index: 1000;
    position: relative;
}

.menu-selector {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 110;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */

    /* Carousel Effects */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
    mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);

    /* Drag-to-scroll polish */
    cursor: grab;
    user-select: none;
    width: 100%;
}

.menu-selector.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.menu-selector::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.action-btn {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--gold);
    padding: 0.5rem 0.4rem;
    border-radius: 6px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;

    /* 3-Button Layout */
    flex: 0 0 calc((100% - 40px - 16px) / 3.2);
    scroll-snap-align: start;
    text-align: center;
}

/* Only apply hover effects on devices that support hovering */
@media (hover: hover) {
    .action-btn:hover {
        background: rgba(197, 160, 89, 0.2);
        box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
    }
}

.action-btn:active {
    transform: scale(0.95);
    background: var(--gold);
    color: var(--bg-color);
}

.action-btn.active {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

/* Desktop Optimization for Category Menu */
@media (min-width: 768px) {
    .menu-selector {
        max-width: 500px;
        padding: 15px 40px;
        background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        scroll-padding: 0 40px;
    }

    .action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 6px;
        letter-spacing: 1px;
    }
}

.cheers-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    z-index: 120;
}

/* Reactions Menu */
.reactions-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
}

.reactions-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--gold);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 5px;
}

.reactions-row {
    display: flex;
    gap: 15px;
}

.reactions-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.reaction-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
}

.reaction-btn:hover {
    transform: scale(1.3);
}

.reaction-btn:active {
    transform: scale(0.9);
}

.reaction-btn.active-vote {
    background: rgba(197, 160, 89, 0.2);
    border-radius: 50%;
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--gold);
}

.cheers-btn.has-voted {
    color: var(--gold);
    text-shadow: 0 0 8px var(--gold);
}

/* Animations */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes slideOutLeft {
    to {
        transform: translateX(-150%) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(150%) rotate(10deg);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-150%) rotate(-10deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

/* Utility Menu */
.util-menu {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 160px;
}

.util-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.util-menu-item {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.util-menu-item:hover {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold);
}

.util-menu-item span {
    font-size: 1.1rem;
}

/* Camera & Log Overlays */
.camera-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gold);
}

#selfie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect */
}

.camera-shutter-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
}

.camera-shutter-glow.flash {
    animation: flashEffect 0.2s ease-out;
}

@keyframes flashEffect {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

.shutter-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.shutter-inner {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.1s;
}

.shutter-btn:active .shutter-inner {
    transform: scale(0.8);
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 1rem;
}

.log-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    font-size: 0.9rem;
    text-align: left;
}

.log-item-prompt {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 5px;
}

.log-item-vote {
    font-size: 0.8rem;
    opacity: 0.8;
}

.clickable-history {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-history:hover {
    background: rgba(197, 160, 89, 0.15);
    border-left: 5px solid var(--gold);
    transform: translateX(5px);
}

.clickable-history:active {
    transform: scale(0.98) translateX(5px);
}

@keyframes slideInRight {
    from {
        transform: translateX(150%) rotate(10deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slideOutLeft 0.4s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s forwards;
}

.cheered {
    animation: shake 0.5s;
}

/* Flip Hint Animation */
@keyframes hintFlip {
    0% {
        transform: rotateY(0deg);
    }

    30% {
        transform: rotateY(25deg);
    }

    70% {
        transform: rotateY(25deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.hint-flip {
    animation: hintFlip 0.8s ease-in-out;
}

/* Vote Animations */
.card-glow-gold {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6), inset 0 0 20px rgba(197, 160, 89, 0.3) !important;
    border-color: #ffd700 !important;
    transition: all 0.5s ease;
}

.card-glow-smile {
    box-shadow: 0 0 25px rgba(255, 230, 0, 0.7), inset 0 0 15px rgba(255, 230, 0, 0.3) !important;
    border-color: #ffe600 !important;
}

.card-glow-love {
    box-shadow: 0 0 25px rgba(255, 50, 100, 0.7), inset 0 0 15px rgba(255, 50, 100, 0.3) !important;
    border-color: #ff3264 !important;
}

.card-glow-cry {
    box-shadow: 0 0 25px rgba(50, 150, 255, 0.7), inset 0 0 15px rgba(50, 150, 255, 0.3) !important;
    border-color: #3296ff !important;
}

.card-glow-angry {
    box-shadow: 0 0 25px rgba(255, 80, 0, 0.7), inset 0 0 15px rgba(255, 80, 0, 0.3) !important;
    border-color: #ff5000 !important;
}

.card-glow-think {
    box-shadow: 0 0 25px rgba(180, 100, 255, 0.7), inset 0 0 15px rgba(180, 100, 255, 0.3) !important;
    border-color: #b464ff !important;
}

.card-glow-cheers {
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.8), inset 0 0 15px rgba(197, 160, 89, 0.4) !important;
    border-color: #c5a059 !important;
}

.card-glow-holo {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(255, 0, 255, 0.3) !important;
    border: 4px solid transparent !important;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%),
        linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: holoPulse 2s infinite;
}

@keyframes holoPulse {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(180deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    font-size: 1.5rem;
}

.particle.up {
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-60vh) scale(1.5);
        opacity: 0;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-60vh) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1.5);
        opacity: 0;
    }
}

.particle.down {
    animation: floatDown 1.5s ease-out forwards;
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.info-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.info-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 1);
    max-height: 80vh;
    overflow-y: auto;

    /* Bloom Animation */
    transform: scale(0.1) translate(100px, 100px);
    transform-origin: bottom right;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    opacity: 0;
}

.info-overlay.active .info-content {
    transform: scale(1) translate(0, 0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

.info-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Venue Modal Specifics */
.menu-brand-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.venue-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 1.5rem 0;
    width: 100%;
}

.venue-badge {
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.venue-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}

.venue-name-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    display: block;
    word-wrap: break-word;
}

.admin-controls-mini {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.admin-controls-mini:hover {
    opacity: 1;
}

.venue-welcome-block {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 10px;
}

.venue-welcome-block p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.venue-promo-card {
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.unified-info-grid {
    margin-top: 5px;
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-mini-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.info-mini-box span {
    font-size: 1.2rem;
}

.info-mini-box label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.app-settings-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.menu-divider {
    border: none;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    margin: 2.2rem 0;
    width: 100%;
}

.unified-menu .info-content {
    padding-bottom: 3rem;
}

.install-info-section {
    padding: 0 5px;
}

.ios-instructions p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.menu-section-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.setting-pill {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-pill:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
}

.copyright-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.65rem;
    opacity: 0.4;
    line-height: 1.4;
}

.inline-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* Golden left border removed per user request: too ai slop */

.promo-tag {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: bold;
}

.venue-promo-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-promo-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--gold-bright);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.info-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    padding: 0 1rem;
    line-height: 1.4;
}

.info-subtitle::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 0;
    opacity: 0.4;
}

.info-section.about {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    font-style: italic;
    text-align: center;
}

.venue-login-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.venue-login-btn:hover {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

/* Private Table Section */
.private-table-section {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.table-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.join-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

.table-code-input {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem;
    border-radius: 4px;
    width: 100px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 2px;
}

.table-code-input::placeholder {
    color: rgba(197, 160, 89, 0.5);
    letter-spacing: normal;
}

.join-btn {
    margin-bottom: 0;
    flex: 1;
}

.current-table-display {
    display: none;
    margin-top: 15px;
    background: rgba(197, 160, 89, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--gold);
}

.table-code-display {
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 4px;
    display: block;
    margin: 10px 0 15px;
}

.table-qr-container {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--gold);
}

.table-qr-img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 4px;
}

.leave-table-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin: 15px auto 0;
    display: block;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.leave-table-btn:hover {
    opacity: 1;
}

/* Admin Controls */
.admin-controls {
    position: absolute;
    top: 15px;
    left: 15px;
}

.admin-access-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-bottom: 0rem;
}

.admin-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.2;
    transition: all 0.3s ease;
    padding: 10px;
    color: var(--gold);
}

.admin-icon-btn:hover {
    opacity: 0.8;
    transform: rotate(45deg);
}

.admin-login-form {
    background: rgba(197, 160, 89, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px dashed var(--gold);
}

.admin-input {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.admin-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 0.5rem;
}

.editable-text.editing {
    display: none;
}

/* Truth/Dare Choices */
.td-choices {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    z-index: 10;
}

.td-choices.active {
    display: flex;
}

.td-btn {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 0;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    border-radius: 8px;
    letter-spacing: 2px;
}

.td-btn:hover {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.td-divider {
    font-size: 0.8rem;
    color: var(--gold-bright);
    opacity: 0.6;
    letter-spacing: 2px;
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 0.25rem;
    }

    h1 {
        font-size: 0.9rem;
        margin: 0;
    }

    .venue-tag {
        margin-top: 0;
        display: inline-block;
        margin-left: 10px;
        font-size: 0.7rem;
    }

    .card-section {
        padding: 2px 10px 0;
    }

    .menu-selector {
        padding: 2px 20px;
        margin-top: 0;
    }

    .card-slider {
        height: 100%;
        width: 70%;
        max-width: 480px;
        max-height: 48vh;
    }

    .card {
        padding: 0.5rem 1rem 2.8rem;
    }

    .card-prompt {
        font-size: 1rem;
        line-height: 1.1;
        margin: 0.25rem 0;
    }

    .card-category {
        margin-bottom: 0.25rem;
        font-size: 0.65rem;
    }

    footer {
        padding: 0.25rem;
    }

    .cheers-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-corner-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }

    .donate-btn {
        left: 0.5rem;
    }

    .info-btn {
        right: 0.5rem;
    }
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 1rem;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    animation: slideUp 0.5s ease-out;
}

.install-prompt.active {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.install-content {
    position: relative;
    text-align: center;
    color: var(--text-color);
}

.close-install-btn {
    position: absolute;
    top: -5px;
    right: 0;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.ios-instructions {
    margin-top: 10px;
    background: rgba(197, 160, 89, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

.ios-instructions p {
    font-size: 0.85rem;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.share-icon-wrapper svg {
    width: 18px;
    height: 18px;
    color: #007AFF;
}

.add-home-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.add-home-icon-wrapper svg {
    width: 22px;
    height: 22px;
    stroke: #000;
}

/* Fade-in animation for info overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-overlay.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.info-overlay.fade-in .info-content {
    animation: slideUp 0.6s ease-out;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 13, 13, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 160, 89, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 160, 89, 0.3) rgba(13, 13, 13, 0.5);
}