.party-app {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.25rem;
    user-select: none;
    color: #1e293b;
}

.party-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.theme-dark .party-card {
    background: rgba(15,23,42,0.9);
    border-color: rgba(255,255,255,0.1);
}

.party-deco {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3rem);
}

.party-deco-top {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: rgba(251,191,36,0.3);
}

.party-deco-bottom {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
    background: rgba(34,211,238,0.3);
}

.party-grid {
    display: grid;
    position: relative;
    z-index: 1;
}

@media (min-width: 1280px) {
    .party-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.party-inputs {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: rgba(255,255,255,0.4);
}

@media (min-width: 1280px) {
    .party-inputs {
        border-right: 1px solid #e2e8f0;
    }
}

.theme-dark .party-inputs {
    background: rgba(255,255,255,0.03);
    border-color: #1e293b;
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calc-header-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(to bottom right, #fbbf24, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(251,191,36,0.3);
    color: #fff;
}

.calc-header-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.calc-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    line-height: 1;
    color: #1e293b;
}

.theme-dark .calc-title {
    color: #f1f5f9;
}

.calc-subtitle {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.25rem 0 0;
}

.slider-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.slider-lbl {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slider-val {
    font-size: 1.875rem;
    font-weight: 300;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.theme-dark .slider-val {
    color: #f1f5f9;
}

.slider-val-unit {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.slider-unit {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.custom-slider-wrap {
    position: relative;
    height: 3rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    cursor: pointer;
}

.theme-dark .custom-slider-wrap {
    background: #1e293b;
    border-color: #334155;
}

.custom-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    cursor: pointer;
    margin: 0;
}

.slider-track-fill {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    border-radius: 0.5rem;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: width 0.1s;
}

.slider-fill-amber {
    background: linear-gradient(to right, #fbbf24, #f97316);
}

.slider-fill-blue {
    background: linear-gradient(to right, #60a5fa, #6366f1);
}

.slider-fill-temp {
    background: linear-gradient(to right, #22d3ee, #2dd4bf, #fb7185);
}

.slider-thumb {
    position: absolute;
    height: 2rem;
    width: 4px;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 2;
    pointer-events: none;
    transform: translateX(-2px);
    transition: left 0.1s;
}

.vibe-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vibe-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.vibe-btn {
    position: relative;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.theme-dark .vibe-btn {
    border-color: #334155;
    background: #0f172a;
}

.vibe-btn:hover {
    background: #f8fafc;
}

.vibe-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.vibe-bg-green {
    background: rgba(16,185,129,0.1);
}

.vibe-bg-amber {
    background: rgba(245,158,11,0.1);
}

.vibe-bg-rose {
    background: rgba(244,63,94,0.1);
}

.vibe-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vibe-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.vibe-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.2s;
}

.vibe-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.vibe-bar-green {
    background: #10b981;
}

.vibe-bar-amber {
    background: #f59e0b;
}

.vibe-bar-rose {
    background: #f43f5e;
}

.vibe-btn.active .vibe-bg {
    opacity: 1;
}

.vibe-btn.active .active-bar {
    transform: scaleX(1);
}

.vibe-btn[data-mult="1"].active .icon-col {
    color: #10b981;
}

.vibe-btn[data-mult="1.5"].active .icon-col {
    color: #f59e0b;
}

.vibe-btn[data-mult="2.5"].active .icon-col {
    color: #f43f5e;
}

.temp-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.theme-dark .temp-section {
    border-color: #334155;
}

.temp-lbl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temp-icon {
    color: #94a3b8;
    width: 1.25rem;
    height: 1.25rem;
}

.party-results {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    position: relative;
}

.theme-dark .party-results {
    background: rgba(0,0,0,0.2);
}

.stats-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.theme-dark .stats-header {
    border-color: #1e293b;
    background: rgba(255,255,255,0.03);
}

.stat-block {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.stat-block-left {
    border-right: 1px solid #e2e8f0;
}

.theme-dark .stat-block-left {
    border-color: #1e293b;
}

.stat-deco-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.05;
}

.stat-block:hover .stat-deco-icon {
    opacity: 0.1;
    transition: opacity 0.2s;
}

.stat-deco-svg {
    width: 6rem;
    height: 6rem;
    color: #0f172a;
    transform: rotate(12deg);
}

.stat-block-right .stat-deco-svg {
    transform: rotate(-12deg);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.theme-dark .stat-number {
    color: #f1f5f9;
}

.stat-unit {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 700;
}

.stat-sub {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-sub-amber {
    color: #d97706;
}

.stat-sub-cyan {
    color: #0891b2;
}

.visual-stage-wrap {
    flex: 1;
    min-height: 400px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(203,213,225,0.5) 0%, rgba(248,250,252,0) 100%);
}

.theme-dark .visual-stage-wrap {
    background: linear-gradient(to top, rgba(15,23,42,0.5) 0%, transparent 100%);
}

.visual-stage-header {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
}

.visual-title {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ice-hint {
    font-size: 0.75rem;
    color: #64748b;
}

.visual-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3rem;
    width: 100%;
}

.stage-baseline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #cbd5e1;
}

.theme-dark .stage-baseline {
    background: #334155;
}

@keyframes drop-in {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.animate-drop {
    animation: drop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.visual-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .visual-container {
        gap: 4rem;
    }
}

.keg-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    margin-bottom: -2rem;
    min-width: 80px;
}

.keg-item {
    position: relative;
    transition: transform 0.3s;
    transform-origin: bottom;
    cursor: default;
}

.keg-item:hover {
    transform: scale(1.05);
}

.keg-plus {
    text-align: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: #b45309;
    margin-bottom: 1rem;
    background: rgba(251,191,36,0.8);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fde68a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 50;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.ice-pile {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    width: 15rem;
    margin-left: -1.25rem;
    padding: 1rem;
    position: relative;
}

.ice-bag {
    transition: transform 0.3s;
    cursor: pointer;
}

.ice-bag:hover {
    transform: scale(1.1);
    z-index: 50;
}

.bags-plus {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-weight: 900;
    font-size: 1.25rem;
    color: #0e7490;
    background: rgba(236,254,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 2px solid #a5f3fc;
    box-shadow: 0 4px 20px rgba(6,182,212,0.3);
    animation: bounce 1s infinite;
}