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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 50%, #1a472a 100%);
    color: #2d2d2d;
    min-height: 100vh;
    padding: 20px;
    padding-top: 230px; /* Space for sticky header + tab nav */
    position: relative;
    overflow-x: hidden;
}

/* Snowflakes animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1.5em;
    opacity: 0.8;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 15s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 60%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 70%; animation-duration: 9s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 80%; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 90%; animation-duration: 10s; animation-delay: 4.5s; }

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Tab Navigation */
.tab-nav {
    margin: 10px -20px -10px -20px;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-buttons {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: white;
    border-bottom-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Food Overview Section */
.food-overview-section {
    margin-bottom: 40px;
}

.all-food-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.food-category-card {
    background: #fff8e1;
    border: 2px solid #ffa726;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.food-category-card h3 {
    color: #e65100;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #ffa726;
    padding-bottom: 8px;
}

.food-category-list {
    list-style: none;
}

.food-category-item {
    background: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #ffa726;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.food-item-name {
    font-weight: 500;
    color: #333;
}

.food-item-family {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.no-food-message {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
    grid-column: 1 / -1;
}

.food-edit-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.add-family-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
    text-align: center;
}

.add-family-footer .form-container {
    margin-top: 15px;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Sticky Header Container */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 20px;
    background: rgba(26, 71, 42, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-compact {
    text-align: left;
    color: white;
    flex: 1;
    min-width: 250px;
}

.header-compact h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.party-details-compact {
    font-size: 0.85em;
    opacity: 0.95;
}

.party-details-compact span {
    margin-right: 15px;
    display: inline-block;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.countdown-label {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-unit-label {
    font-size: 0.7em;
    margin-top: 2px;
    opacity: 0.9;
    text-transform: uppercase;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.party-details {
    font-size: 1.2em;
    margin-top: 15px;
}

.party-details p {
    margin: 5px 0;
}

/* Guest Counters - Sticky Version */
.counters-sticky {
    display: flex;
    gap: 15px;
}

.counter-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #165b33;
    min-width: 130px;
}

.counter-box.guests-box {
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.counter-box.guests-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 91, 51, 0.3);
}

.counter-box.swapper-box {
    border-color: #c41e3a;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.counter-box.swapper-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.counter-box.food-box {
    border-color: #d4851f;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.counter-box.food-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 133, 31, 0.3);
}

.counter-box.food-box .label {
    color: #d4851f;
}

.counter-box.food-box .count {
    color: #d4851f;
}

.rules-icon {
    font-size: 0.9em;
    opacity: 0.7;
}

.counter-box .label {
    font-size: 0.75em;
    font-weight: bold;
    color: #165b33;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-box.swapper-box .label {
    color: #c41e3a;
}

.counter-box .count {
    font-size: 2em;
    font-weight: bold;
    color: #c41e3a;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.yankee-link-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #165b33;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.yankee-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.instructions {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.instructions p {
    color: #165b33;
    font-size: 1.3em;
    font-weight: bold;
}

.instructions .scroll-note {
    font-size: 1em;
    margin-top: 10px;
    color: #c41e3a;
}

.featuring-yankee {
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 25px;
    font-size: 1.4em;
    font-weight: bold;
    color: #165b33;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }
}

/* Yankee Swap Section */
.yankee-swap-section {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.yankee-swap-header {
    padding: 20px;
    text-align: center;
}

.yankee-swap-header h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.yankee-teaser {
    color: #ffe4e8;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.theme-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.theme-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.yankee-rules {
    background: white;
    padding: 25px;
    border-top: 3px solid #ffd700;
    display: block;
}

.rules-final {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.rule-section {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #c41e3a;
}

.rule-section ol {
    margin: 10px 0 0 20px;
}

.rule-section ol li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.rule-section ul {
    margin: 5px 0 5px 20px;
}

.rule-section ul li {
    margin-bottom: 3px;
}

.rule-section.final-note {
    background: #e8f5e9;
    border-left-color: #4caf50;
    font-style: italic;
}

/* Swappers Section */
.swappers-section {
    background: white;
    padding: 25px;
}

.swappers-section.swappers-top {
    border-bottom: 3px solid #c41e3a;
    margin-bottom: 0;
}

.swappers-section h3 {
    color: #165b33;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.swappers-list {
    text-align: center;
}

.no-swappers {
    color: #666;
    font-style: italic;
}

.swappers-names {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.swappers-names li {
    background: linear-gradient(135deg, #c41e3a, #a01830);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.swapper-family {
    opacity: 0.8;
    font-weight: normal;
    font-size: 0.9em;
}

/* Donate Button */
.donate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 8px 12px;
    border-radius: 15px;
    text-decoration: none;
    border: 3px solid #e8a835;
    transition: all 0.2s ease;
    min-width: 80px;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 53, 0.3);
}

.donate-btn span {
    font-size: 0.7em;
    font-weight: bold;
    color: #e8a835;
    text-transform: uppercase;
}

.donate-logo {
    height: 22px;
    width: auto;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.families-section, .food-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c41e3a;
}

.section-header h2 {
    color: #165b33;
    font-size: 2em;
}

.food-section h2 {
    color: #165b33;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c41e3a;
}

/* Festive Rounded Buttons */
.btn {
    padding: 12px 26px;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-add {
    background: #165b33;
    color: white;
}

.btn-add:hover {
    background: #1a7040;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(22, 91, 51, 0.3);
}

.btn-primary {
    background: hsl(355, 70%, 54%);
    color: white;
}

.btn-primary:hover {
    background: hsl(355, 70%, 40%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.btn-danger {
    background: #d32f2f;
    color: white;
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.3);
}

.form-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.form-container input,
.form-container select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    flex: 1;
    min-width: 200px;
}

.form-container input:focus,
.form-container select:focus {
    outline: none;
    border-color: #c41e3a;
}

.family-card {
    background: #fafafa;
    border: 2px solid #165b33;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.family-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #165b33;
}

.family-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.status-invited {
    background: #2196f3;
    color: white;
}

.status-confirmed {
    background: #4caf50;
    color: white;
}

.status-maybe {
    background: #ff9800;
    color: white;
}

.status-no {
    background: #f44336;
    color: white;
}

.status-selector {
    padding: 5px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

.members-section {
    margin: 15px 0;
}

.add-member-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-member-form input {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Four-column layout for members */
.member-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.member-column {
    border-radius: 10px;
    padding: 10px;
    min-height: 100px;
    transition: all 0.2s ease;
}

.member-column.col-invited {
    background: #f5f5f5;
    border: 2px dashed #999;
}

.member-column.col-swapping {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.member-column.col-attending {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.member-column.col-notcoming {
    background: #ffebee;
    border: 2px solid #f44336;
}

.member-column.drag-over {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.column-header {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.col-invited .column-header { color: #666; }
.col-swapping .column-header { color: #2e7d32; }
.col-attending .column-header { color: #e65100; }
.col-notcoming .column-header { color: #c62828; }

.column-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-column {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.85em;
}

.member-tag {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.member-tag:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.member-tag.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.member-tag.status-invited {
    border: 2px solid #999;
}

.member-tag.status-swapping {
    border: 2px solid #4caf50;
    background: #c8e6c9;
}

.member-tag.status-attending {
    border: 2px solid #ff9800;
    background: #ffe0b2;
}

.member-tag.status-notcoming {
    border: 2px solid #f44336;
    background: #ffcdd2;
    opacity: 0.7;
}

.member-name {
    font-weight: bold;
    color: #333;
    flex: 1;
}

/* Mobile arrow buttons - hidden on desktop */
.mobile-arrows {
    display: none;
    flex-direction: column;
    gap: 2px;
}

.arrow-btn {
    background: #165b33;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 18px;
    cursor: pointer;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.arrow-btn:hover:not(.disabled) {
    background: #1a7040;
}

.arrow-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.remove-member {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-member:hover {
    background: #d32f2f;
}

/* Inline Food Section */
.food-section-inline {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.food-items-inline {
    list-style: none;
    margin: 10px 0 15px 0;
}

.food-item-inline {
    background: #fff8e1;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffa726;
}

.no-food-yet {
    color: #999;
    font-style: italic;
    margin: 10px 0;
}

.food-family {
    background: #fff8e1;
    border: 2px solid #ffa726;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.food-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.food-family-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #e65100;
}

.food-items {
    list-style: none;
    margin-bottom: 15px;
}

.food-item {
    background: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffa726;
}

.add-food-form {
    display: flex;
    gap: 10px;
}

.add-food-form input {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Christmas Lights */
.lightrope {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: fixed;
    z-index: 1001;
    margin: -15px 0 0 0;
    padding: 0;
    pointer-events: none;
    width: 100%;
    top: 0;
    left: 0;
}

.lightrope li {
    position: relative;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 12px;
    height: 28px;
    border-radius: 50%;
    margin: 20px;
    background: rgba(0, 247, 165, 1);
    box-shadow: 0px 5px 24px 3px rgba(0, 247, 165, 1);
    animation-name: flash-1;
    animation-duration: 2s;
}

.lightrope li:nth-child(2n+1) {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0px 5px 24px 3px rgba(0, 255, 255, 0.5);
    animation-name: flash-2;
    animation-duration: 0.4s;
}

.lightrope li:nth-child(4n+2) {
    background: rgba(247, 0, 148, 1);
    box-shadow: 0px 5px 24px 3px rgba(247, 0, 148, 1);
    animation-name: flash-3;
    animation-duration: 1.1s;
}

.lightrope li:nth-child(odd) {
    animation-duration: 1.8s;
}

.lightrope li:nth-child(3n+1) {
    animation-duration: 1.4s;
}

.lightrope li:before {
    content: "";
    position: absolute;
    background: #222;
    width: 10px;
    height: 9px;
    border-radius: 3px;
    top: -5px;
    left: 1px;
}

.lightrope li:after {
    content: "";
    top: -14px;
    left: 9px;
    position: absolute;
    width: 52px;
    height: 19px;
    border-bottom: solid #222 2px;
    border-radius: 50%;
}

.lightrope li:last-child:after {
    content: none;
}

.lightrope li:first-child {
    margin-left: -40px;
}

@keyframes flash-1 {
    0%, 100% {
        background: rgba(0, 247, 165, 1);
        box-shadow: 0px 5px 24px 3px rgba(0, 247, 165, 1);
    }
    50% {
        background: rgba(0, 247, 165, 0.4);
        box-shadow: 0px 5px 24px 3px rgba(0, 247, 165, 0.2);
    }
}

@keyframes flash-2 {
    0%, 100% {
        background: rgba(0, 255, 255, 1);
        box-shadow: 0px 5px 24px 3px rgba(0, 255, 255, 1);
    }
    50% {
        background: rgba(0, 255, 255, 0.4);
        box-shadow: 0px 5px 24px 3px rgba(0, 255, 255, 0.2);
    }
}

@keyframes flash-3 {
    0%, 100% {
        background: rgba(247, 0, 148, 1);
        box-shadow: 0px 5px 24px 3px rgba(247, 0, 148, 1);
    }
    50% {
        background: rgba(247, 0, 148, 0.4);
        box-shadow: 0px 5px 24px 3px rgba(247, 0, 148, 0.2);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 165px; /* Compact mobile header + tab nav */
    }

    /* Mobile Tab Navigation */
    .tab-nav {
        position: relative;
        margin: 8px -8px -5px -8px;
        padding: 0;
    }

    .hamburger-btn {
        display: flex;
        padding: 10px 12px;
    }

    .tab-buttons {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 71, 42, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .tab-buttons.open {
        max-height: 200px;
    }

    .tab-btn {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left-color: #ffd700;
    }

    /* Hamburger animation when open */
    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.open .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .party-details {
        font-size: 1em;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-container {
        flex-direction: column;
    }

    .family-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Sticky header mobile adjustments - horizontal layout */
    .sticky-header {
        padding: 5px 8px;
    }

    .sticky-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        width: 100%;
    }

    .header-compact {
        text-align: left;
        grid-column: 1;
    }

    .header-compact h1 {
        font-size: 0.9em;
        margin-bottom: 2px;
    }

    .party-details-compact {
        font-size: 0.6em;
        line-height: 1.3;
    }

    .party-details-compact span {
        display: block;
        margin: 1px 0;
    }

    .countdown-container {
        padding: 5px 8px;
        grid-column: 2;
    }

    .countdown-label {
        font-size: 0.6em;
        margin-bottom: 2px;
    }

    .counters-sticky {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        gap: 5px;
        width: 100%;
    }

    .counter-box {
        flex: 1;
        min-width: 0;
        padding: 5px 8px;
    }

    .counter-box .label {
        font-size: 0.6em;
        margin-bottom: 2px;
    }

    .counter-box .count {
        font-size: 1.3em;
    }

    .rules-icon {
        font-size: 0.8em;
    }

    .donate-btn {
        padding: 5px 8px;
        min-width: 60px;
    }

    .donate-btn span {
        font-size: 0.55em;
    }

    .donate-logo {
        height: 18px;
    }

    .member-columns {
        grid-template-columns: 1fr;
    }

    /* Show mobile arrows on touch devices */
    .mobile-arrows {
        display: flex;
    }

    /* Hide drag hint on mobile since we use arrows */
    .empty-column {
        font-size: 0.75em;
    }

    .member-tag {
        cursor: default;
    }

    .countdown-timer {
        gap: 6px;
    }

    .countdown-value {
        font-size: 1em;
    }

    .countdown-unit-label {
        font-size: 0.55em;
    }

    .guest-counter-sticky {
        width: 100%;
    }

    /* Hide the separate Yankee link button on mobile */
    .yankee-link-btn {
        display: none;
    }
}
