@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg-0: #0c1612;
    --bg-1: #14211c;
    --bg-2: #1b2c25;
    --card: #1a2722;
    --card-2: #213029;
    --ink: #e8f1ec;
    --muted: #95a8a0;
    --green: #6fd39a;
    --green-dark: #4caf7a;
    --pink: #ff8ec2;
    --pink-dark: #e96aa0;
    --yellow: #ffd166;
    --soft: #243a31;
    --border: #2a3a33;
    --border-bright: #3a5247;
    --error: #ff7a6e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
    background:
        radial-gradient(circle at 12% 0%, rgba(111, 211, 154, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 88% 8%, rgba(255, 142, 194, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(255, 209, 102, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    background-attachment: fixed;
}

body::before {
    content: "🦕  🦖  🌿  🦴  🌱  🥚  ⭐  🌙";
    position: fixed;
    inset: 0;
    font-size: 22px;
    opacity: 0.045;
    letter-spacing: 80px;
    line-height: 110px;
    pointer-events: none;
    word-spacing: 60px;
    overflow: hidden;
    z-index: 0;
    transform: rotate(-8deg) translateY(-20px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    background: rgba(12, 22, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.lang-toggle {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(111, 211, 154, 0.12);
    color: var(--green);
    border: 1.5px solid var(--border-bright);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
    background: rgba(111, 211, 154, 0.2);
    border-color: var(--green);
    color: var(--green);
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px 56px;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 8px 8px 8px;
}

.hero h1 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    margin: 14px 0 6px;
    font-size: 32px;
    line-height: 1.15;
    color: var(--green);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.hero .theme {
    color: var(--pink);
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.3px;
}

.hero p {
    color: var(--muted);
    margin: 6px 0 0;
}

.invite {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    box-shadow:
        0 0 0 2px var(--border-bright),
        0 16px 40px rgba(0, 0, 0, 0.5);
    animation: float 5s ease-in-out infinite;
}

.invite.small {
    max-width: 220px;
    border-radius: 16px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50%      { transform: translateY(-6px) rotate(0.5deg); }
}

.card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: var(--shadow);
    position: relative;
}

.card h2 {
    font-family: 'Fredoka', sans-serif;
    margin: 0 0 14px;
    font-size: 22px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h2::before {
    content: "🌿";
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details li {
    padding: 10px 0;
    border-bottom: 1.5px dotted var(--border-bright);
    font-size: 16px;
    color: var(--ink);
}

.details li:last-child { border-bottom: none; }

.details li strong {
    color: var(--green);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    margin-right: 6px;
}

.note {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 209, 102, 0.08);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    border: 1.5px dashed rgba(255, 209, 102, 0.45);
    line-height: 1.45;
}

.note::before {
    content: "💡 ";
}

.note.bring {
    background: rgba(111, 211, 154, 0.10);
    border-color: rgba(111, 211, 154, 0.5);
}

.note.bring::before {
    content: "🏊 ";
}

.cal {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1.5px dotted var(--border-bright);
}

.cal-label {
    margin: 0 0 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--green);
    font-size: 15px;
}

.cal-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cal-btn {
    display: block;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid var(--border-bright);
    background: rgba(8, 14, 12, 0.4);
    color: var(--ink);
    transition: transform 0.08s, border-color 0.15s, background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.cal-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(111, 211, 154, 0.08);
}

.cal-btn:active {
    transform: translateY(2px);
}

@media (max-width: 380px) {
    .cal-buttons { grid-template-columns: 1fr; }
}

label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--green);
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-bright);
    border-radius: 14px;
    font-size: 16px;
    background: rgba(8, 14, 12, 0.5);
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s, background 0.15s;
}

input::placeholder, textarea::placeholder {
    color: rgba(232, 241, 236, 0.35);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(111, 211, 154, 0.18);
    background: rgba(8, 14, 12, 0.75);
}

.row {
    display: flex;
    gap: 12px;
}

.row > div { flex: 1; }

button {
    margin-top: 22px;
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 0 #b14878, 0 14px 24px rgba(232, 95, 147, 0.35);
    transition: transform 0.08s, box-shadow 0.08s;
}

button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b14878, 0 4px 10px rgba(232, 95, 147, 0.35);
}

button::after { content: " 🎉"; }

.error {
    color: #ffd9d4;
    background: rgba(255, 122, 110, 0.15);
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 10px;
    border: 1.5px solid rgba(255, 122, 110, 0.45);
    font-weight: 600;
}

.center { text-align: center; }

a {
    color: var(--pink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dotted var(--pink);
}

a:hover { color: var(--green); border-bottom-color: var(--green); }

.totals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: center;
}

.totals > div {
    background: linear-gradient(135deg, var(--soft) 0%, #2c3f37 100%);
    border-radius: 16px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--border-bright);
}

.totals .big {
    font-size: 32px;
    font-weight: 700;
    color: var(--green);
    font-family: 'Fredoka', sans-serif;
    line-height: 1.1;
}

.totals span:last-child {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1.5px solid var(--border-bright);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: var(--card-2);
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--ink);
}

th {
    background: var(--soft);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    color: var(--green);
}

tr:last-child td { border-bottom: none; }

tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }

@media (min-width: 720px) {
    .totals { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 40px; }
    .invite { max-width: 520px; }
}
