* {
    box-sizing: border-box;
}

:root {
    --cream: #fff7ec;
    --cream-light: #fffbf5;
    --ink: #161b2b;
    --muted: #5d5f68;
    --orange: #ffad1f;
    --orange-dark: #f59e0b;
    --green: #1f9d55;
    --purple: #6f42c1;
    --blue: #0b69a3;
    --red: #d6284b;
    --shadow: 0 14px 32px rgba(60, 35, 12, 0.12);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 223, 173, 0.55), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 235, 202, 0.6), transparent 28%),
        var(--cream);
    color: var(--ink);
}

.mobile-shell {
    width: min(480px, 100%);
    margin: 0 auto;
    min-height: 100vh;
    padding: 28px 16px 22px;
}

.hero {
    position: relative;
    text-align: center;
    padding: 42px 0 0;
}

.brand-title {
    margin: 0;
    display: grid;
    gap: 0;
    justify-content: center;
    font-size: clamp(3rem, 15vw, 5.2rem);
    line-height: 0.86;

    font-family: 'Baloo 2', cursive;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: -0.03em;

    color: var(--ink);
    text-shadow: 0 4px 0 rgba(22,27,43,0.08);
}

.brand-title .orange {
    color: var(--orange);
}

.tagline {
    margin: 22px 0 24px;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.heart {
    color: var(--orange);
}

.burst {
    position: absolute;
    top: 64px;
    color: var(--orange);
    font-size: 2.1rem;
    font-weight: 900;
    transform: rotate(35deg);
}

.burst-left {
    left: 34px;
}

.burst-right {
    right: 32px;
}

.food-table {
    position: relative;
    height: 132px;
    margin: 0 -16px;
    background:
        linear-gradient(rgba(255, 211, 139, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 211, 139, 0.35) 1px, transparent 1px),
        #fff2d8;
    background-size: 32px 32px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    overflow: hidden;
}

.food-item {
    position: absolute;
    bottom: 14px;
    filter: drop-shadow(0 8px 8px rgba(75, 42, 10, 0.14));
}

.salad {
    left: 12px;
    width: 92px;
    height: 52px;
    border-radius: 0 0 44px 44px;
    background: #f5efe4;
    border: 4px solid #fff;
}

.salad::before {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: -22px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 18px 20px, #e63946 0 5px, transparent 6px),
        radial-gradient(circle at 48px 18px, #e63946 0 5px, transparent 6px),
        radial-gradient(circle at 66px 28px, #f4a261 0 5px, transparent 6px),
        radial-gradient(circle at 20px 32px, #3fa34d 0 13px, transparent 14px),
        radial-gradient(circle at 48px 30px, #4caf50 0 15px, transparent 16px),
        radial-gradient(circle at 70px 25px, #5dbb63 0 13px, transparent 14px);
}

.pot {
    left: 112px;
    width: 104px;
    height: 70px;
    border-radius: 14px 14px 22px 22px;
    background: #de2f2f;
}

.pot::before {
    content: "";
    position: absolute;
    left: 12px;
    top: -18px;
    width: 80px;
    height: 28px;
    border-radius: 50% 50% 10px 10px;
    background: #f04a3e;
}

.pot::after {
    content: "";
    position: absolute;
    left: 42px;
    top: -26px;
    width: 22px;
    height: 12px;
    border-radius: 8px 8px 0 0;
    background: #b91c1c;
}

.tray {
    left: 194px;
    width: 126px;
    height: 54px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 42px 24px, #67b246 0 6px, transparent 7px),
        radial-gradient(circle at 74px 18px, #67b246 0 5px, transparent 6px),
        linear-gradient(#ffc65a, #f6a623);
    border: 8px solid #697581;
}

.bottle {
    right: 88px;
    width: 28px;
    height: 86px;
    border-radius: 9px 9px 6px 6px;
    background: linear-gradient(#f8d36b 0 28%, #f59e0b 28% 100%);
    border: 3px solid rgba(80, 80, 80, 0.18);
}

.bottle::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 4px;
    width: 14px;
    height: 18px;
    border-radius: 4px 4px 0 0;
    background: #4b5563;
}

.cups {
    right: 48px;
    width: 34px;
    height: 58px;
    background:
        linear-gradient(to bottom, #d6284b 0 12px, #f05c6e 12px 24px, #d6284b 24px 36px, #f05c6e 36px 48px, #d6284b 48px);
    clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.chips {
    right: 0;
    width: 70px;
    height: 44px;
    border-radius: 0 0 32px 32px;
    background: #f8efe0;
    border: 4px solid #fff;
}

.chips::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: -20px;
    height: 36px;
    background:
        linear-gradient(70deg, transparent 0 8px, #ffc247 8px 18px, transparent 18px),
        linear-gradient(110deg, transparent 10px, #ffb21a 10px 22px, transparent 22px),
        linear-gradient(85deg, transparent 28px, #ffc247 28px 40px, transparent 40px),
        linear-gradient(110deg, transparent 42px, #ffb21a 42px 54px, transparent 54px);
}

.action-panel {
    position: relative;
    z-index: 2;
    margin-top: -2px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.action-card {
    display: grid;
    grid-template-columns: 74px 1fr 24px;
    gap: 14px;
    align-items: center;
    min-height: 108px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 18px rgba(24, 27, 43, 0.05);
}

.action-card:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 2.6rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.38);
    border: 2px solid currentColor;
}

.action-text h2 {
    margin: 0 0 6px;
    font-size: 1.22rem;
    line-height: 1.12;
}

.action-text p {
    margin: 0;
    color: #1f2937;
    font-size: 0.98rem;
    line-height: 1.28;
}

.action-text small {
    display: block;
    margin-top: 7px;
    font-size: 0.86rem;
    font-weight: 700;
}

.chevron {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--ink);
}

.create {
    background: linear-gradient(135deg, #fff8ec, #fff1dc);
    color: var(--orange-dark);
}

.join {
    background: linear-gradient(135deg, #f4fff8, #eefaf2);
    color: var(--green);
}

.live {
    background: linear-gradient(135deg, #fbf7ff, #f3edff);
    color: var(--purple);
}

.resume-event {
    background: linear-gradient(135deg, #f3f9ff, #eaf5ff);
    color: var(--blue);
}

.resume-contribution {
    background: linear-gradient(135deg, #fff4f6, #ffecee);
    color: var(--red);
}

.resume-event .action-text small {
    color: var(--blue);
}

.resume-contribution .action-text small {
    color: var(--red);
}

.simple-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 4px 0;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #666;
    box-shadow: 0 8px 18px rgba(24, 27, 43, 0.05);
}

.simple-note span {
    color: #555;
}

.simple-note p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.25;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #7b6b5c;
    font-size: 0.82rem;
}

@media (max-width: 380px) {
    .mobile-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .action-card {
        grid-template-columns: 62px 1fr 18px;
        gap: 12px;
        min-height: 98px;
    }

    .icon-box {
        width: 56px;
        height: 56px;
        font-size: 2.2rem;
    }

    .action-text h2 {
        font-size: 1.08rem;
    }

    .action-text p {
        font-size: 0.9rem;
    }
}

.page-header {
    padding: 22px 4px 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.small-brand-title {
    margin: 0 0 10px;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.4;
}

.form-card,
.event-card,
.placeholder-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: var(--ink);
}

.stack-form input,
.share-box input {
    width: 100%;
    border: 2px solid #f0d4b8;
    border-radius: 16px;
    padding: 15px;
    font-size: 1rem;
    background: #fffdf9;
    color: var(--ink);
}

.submit-btn {
    border: none;
    border-radius: 18px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 900;
    background: var(--orange);
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.22);
}

.error-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffecee;
    color: #b4233c;
    font-weight: 800;
}

.event-code-box {
    display: grid;
    gap: 8px;
    text-align: center;
    padding: 18px;
    border-radius: 22px;
    background: #fff2d8;
    margin-bottom: 16px;
}

.event-code-box span,
.detail-row span,
.share-box label {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.92rem;
}

.event-code-box strong {
    font-size: 2.6rem;
    letter-spacing: 0.12em;
    font-family: 'Baloo 2', cursive;
    color: var(--orange-dark);
}

.detail-row {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.detail-row strong {
    font-size: 1rem;
    line-height: 1.35;
}

.share-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.placeholder-card {
    margin-top: 16px;
}

.placeholder-card h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.placeholder-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

/* Fix mobile datetime overflow */
.stack-form input,
.share-box input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stack-form label {
    min-width: 0;
    max-width: 100%;
}

input[type="datetime-local"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

/* Fix datetime-local visual width consistency */
.stack-form input[type="datetime-local"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding-right: 12px;
}

.stack-form input[type="text"],
.stack-form input[type="datetime-local"] {
    height: 54px;
}


/* ---------- Feature 003 : Copy Link + QR Code ---------- */

.copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-row input {
    flex: 1;
}

.copy-btn {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--orange);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--orange-dark);
    transform: scale(1.04);
}

.qr-section {
    margin-top: 24px;
    text-align: center;
}

.qr-image {
    width: 220px;
    max-width: 100%;
    background: white;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.qr-section p {
    margin-top: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* ---------- Feature 004 : Participant Join Flow ---------- */

.items-area {
    display: grid;
    gap: 8px;
}

.items-label {
    font-weight: 800;
    color: var(--ink);
}

#itemFields {
    display: grid;
    gap: 10px;
}

#itemFields input {
    width: 100%;
    border: 2px solid #f0d4b8;
    border-radius: 16px;
    padding: 15px;
    font-size: 1rem;
    background: #fffdf9;
    color: var(--ink);
}

.section-title {
    margin: 0 0 14px;
    font-size: 1.24rem;
    line-height: 1.2;
}

.simple-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink);
    line-height: 1.7;
    font-weight: 700;
}

.list-card {
    margin-top: 16px;
}

.person-block {
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.person-block:first-child {
    border-top: none;
    padding-top: 0;
}

.person-block h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--orange-dark);
}

.person-block ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.person-block li {
    font-weight: 700;
}

.empty-state {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.4;
}

/* ---------- Feature 005 : Live Creator Dashboard ---------- */

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eefaf2;
    color: var(--green);
    font-weight: 900;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--green);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.stat-box {
    border-radius: 18px;
    padding: 16px;
    background: #fff2d8;
    text-align: center;
}

.stat-box span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.stat-box strong {
    display: block;
    color: var(--orange-dark);
    font-family: 'Baloo 2', cursive;
    font-size: 2.1rem;
    line-height: 1;
}


/* ---------- Feature 006 : Resume Sections ---------- */

.resume-section{

    margin-top:18px;

    border-top:1px solid rgba(0,0,0,.06);

    padding-top:18px;

}

.resume-header{

    font-weight:900;

    font-size:1rem;

    margin-bottom:12px;

    color:var(--ink);

}

.resume-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 16px;

    margin-bottom:10px;

    border-radius:16px;

    text-decoration:none;

    color:inherit;

    background:#fffdf8;

    border:1px solid rgba(0,0,0,.06);

    transition:.15s;

}

.resume-item:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.08);

}

.resume-item strong{

    display:block;

    font-size:1rem;

}

.resume-date{

    margin-top:4px;

    font-size:.88rem;

    color:#777;

}

.resume-item span{

    font-size:1.5rem;

    color:#999;

}

/* ---------- Feature 007 ---------- */

#editForm{

    display:grid;

    gap:12px;

}

#editForm input{

    width:100%;

    border:2px solid #f0d4b8;

    border-radius:16px;

    padding:15px;

    font-size:1rem;

    box-sizing:border-box;

    background:#fffdf9;

}


/* ---------- Feature 007A ---------- */

.edit-helper {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

#editForm input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245,158,11,.15);
}

/* ---------- Participant Event Details ---------- */

.participant-greeting {
    margin-top: 14px;
    font-weight: 800;
    color: var(--ink);
}

/* ---------- Feature 008 : Lock Event ---------- */

.lock-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.lock-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill.open {
    background: #eefaf2;
    color: var(--green);
}

.status-pill.locked {
    background: #ffecee;
    color: var(--red);
}

.lock-btn,
.unlock-btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.lock-btn {
    background: var(--red);
    color: white;
}

.unlock-btn {
    background: var(--green);
    color: white;
}

.locked-notice {
    padding: 16px;
    border-radius: 18px;
    background: #fff2d8;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.locked-notice strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.05rem;
}

.locked-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 700;
}

/* ---------- Feature 009 : Creator Contributions ---------- */

.creator-contribution-card {
    margin-top: 16px;
}

.creator-name-label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--ink);
}

.creator-name-label input,
#creatorItemFields input {
    width: 100%;
    border: 2px solid #f0d4b8;
    border-radius: 16px;
    padding: 15px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fffdf9;
    color: var(--ink);
}

#creatorItemFields {
    display: grid;
    gap: 10px;
}

.creator-name-label input:focus,
#creatorItemFields input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245,158,11,.15);
}
