@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(fonts/Cairo-Regular.woff) format('woff'); }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(fonts/Cairo-Bold.woff) format('woff'); }
@font-face { font-family: Cairo; font-weight: 900; font-display: swap; src: url(fonts/Cairo-Black.woff) format('woff'); }
/* Palette: deep plum (ink, hero, headers) + coral (actions) + gold (highlights) on warm cream. */
:root {
  --plum: #2B1034; --plum-2: #4F1B62; --plum-3: #7A2C74;
  --coral: #F04E3A; --coral-d: #C8301F; --coral-l: #FF6B57; --gold: #FFC23D; --gold-d: #F2A516;
  --cream: #FFF7F0; --ink: #2B1034; --soft: #66506C; --line: #EBDAE2; --white: #fff;
  --ok: #1F8F5A; --warn: #B7791F; --bad: #C53030;
  --r: 20px; --shadow: 0 12px 32px -14px rgba(75, 27, 98, .28);
  --grad: linear-gradient(135deg, #FF6B57 0%, #E8432F 100%);
  --grad-gold: linear-gradient(135deg, #FFD36B 0%, #FFB020 100%);
  --grad-plum: linear-gradient(150deg, #2B1034 0%, #4F1B62 55%, #7A2C74 100%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Cairo, system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; font-weight: 700; min-width: 320px; overflow-x: hidden; }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 900; line-height: 1.3; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
p { margin: 0 0 .8rem; }
a { color: var(--coral-d); }
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
.wrap.wide { max-width: 980px; }

/* top bar of inner pages: plum band with a coral-gold stripe */
.hdr { background: var(--grad-plum); position: relative; }
.hdr::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--coral-l), var(--gold), var(--coral-l)); }
.hdr .logo { color: #fff; }
.hdr .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; max-width: 980px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.45rem; color: var(--plum); text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.top .actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.top .btn.small { white-space: nowrap; padding: 8px 14px; }

.btn { appearance: none; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 900; font-size: 1.1rem; padding: 14px 22px; min-height: 52px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; box-shadow: 0 10px 22px -10px rgba(232, 67, 47, .75); transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: 0 4px 10px -6px rgba(232, 67, 47, .75); }
.btn.big { font-size: 1.3rem; min-height: 64px; width: 100%; }
.btn.light { background: #fff; color: var(--plum); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--plum); border: 2px solid var(--line); box-shadow: none; }
.btn.gold { background: var(--grad-gold); color: var(--plum); box-shadow: 0 12px 26px -10px rgba(255, 176, 32, .8); }
.btn.green { background: linear-gradient(135deg, #27A96B, #1B8050); color: #fff; box-shadow: 0 10px 22px -10px rgba(31, 143, 90, .7); }
.btn.on { background: var(--grad); color: #fff; }
.btn.red { background: var(--bad); }
.btn.small { font-size: .95rem; min-height: 44px; padding: 8px 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, .chip:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card > h3:first-child { color: var(--plum); }
label { display: block; font-weight: 900; margin: 14px 0 4px; color: var(--plum); }
.hint { color: var(--soft); font-size: .9rem; font-weight: 700; }
input, select, textarea { width: 100%; font: inherit; font-weight: 700; font-size: 1.1rem; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); min-height: 54px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(240, 78, 58, .25); border-color: var(--coral); }
textarea { min-height: 96px; resize: vertical; }
.seg { display: flex; gap: 8px; }
.seg > button { flex: 1; }
.seg > .btn.light.on, .seg > .btn.on { background: var(--grad); color: #fff; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--plum); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer; min-height: 44px; }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(232, 67, 47, .8); }
span.chip { cursor: default; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 14px; font-size: .9rem; font-weight: 900; background: var(--line); color: var(--plum); white-space: nowrap; }
.tag.collecting { background: #FFE9B8; color: #6B4A06; } .tag.queued, .tag.rendering { background: #E9DAFB; color: #4F1B62; } .tag.done { background: #CFF1DD; color: #0F5B38; } .tag.failed { background: #FBD0D0; color: #8A1F1F; }
.tag.pending { background: #FFE9B8; color: #6B4A06; } .tag.approved { background: #CFF1DD; color: #0F5B38; } .tag.rejected, .tag.blocked { background: #FBD0D0; color: #8A1F1F; }
.err { color: var(--bad); font-weight: 900; margin: 8px 0; }
.note { background: #FFF1D6; border: 1px solid #F5D08A; border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.note.bad { background: #FDE3E3; border-color: #F2B3B3; }
.note.ok { background: #E0F6EA; border-color: #A8E0C0; }

/* dashboard credits: plum card, big gold number */
.credits { text-align: center; background: var(--grad-plum); border: 0; color: #fff; position: relative; overflow: hidden; padding: 22px 18px; }
.credits::before, .credits::after { content: ''; position: absolute; border-radius: 50%; opacity: .9; }
.credits::before { width: 90px; height: 90px; inset-block-start: -30px; inset-inline-start: -24px; background: radial-gradient(circle at 35% 30%, #FF8A78, #F04E3A); }
.credits::after { width: 60px; height: 60px; inset-block-end: -20px; inset-inline-end: -10px; background: radial-gradient(circle at 35% 30%, #FFE08A, #FFB020); }
.credits .num { font-size: 3.8rem; font-weight: 900; color: var(--gold); line-height: 1.1; position: relative; }
.credits > div { position: relative; }
.credits .hint { color: #E9D3F0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.party-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin: 10px 0; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.party-item::before { content: ''; position: absolute; inset-inline-start: 7px; top: 16px; bottom: 16px; width: 5px; border-radius: 99px; background: linear-gradient(var(--coral-l), var(--gold)); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .del { position: absolute; top: 4px; inset-inline-end: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(43, 16, 52, .75); color: #fff; font-size: 1.1rem; cursor: pointer; }
.thumb .kind { position: absolute; bottom: 4px; inset-inline-start: 4px; background: rgba(43, 16, 52, .75); color: #fff; border-radius: 8px; padding: 0 6px; font-size: .75rem; }
.wishcard { padding: 8px; font-size: .9rem; display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; background: linear-gradient(150deg, #FFE3DD, #FFF1D6); }
.bar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral-l), var(--gold)); width: 0; transition: width .3s; border-radius: 99px; }
.up .bar { height: 12px; }
.up { margin: 6px 0; font-size: .9rem; }
.qr { background: #fff; padding: 12px; border-radius: 18px; width: 220px; height: 220px; margin: 0 auto; display: block; border: 1px solid var(--line); }
video { width: 100%; max-height: 70vh; border-radius: var(--r); background: #000; display: block; }
table.pk { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.pk th, table.pk td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
table.pk th { font-weight: 900; }
.pk-wrap { overflow-x: auto; }
.footer { text-align: center; color: var(--soft); font-size: .9rem; padding: 24px 16px 32px; }
.badge { display: inline-block; min-width: 22px; height: 22px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .8rem; padding: 0 6px; text-align: center; line-height: 22px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; margin: 6px 0; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.msg.mine { margin-inline-start: auto; background: #FFE3DD; border-color: #F6B7AC; }
.msg img { max-width: 100%; border-radius: 10px; display: block; margin-top: 6px; }
.shop-prev { max-width: 100%; max-height: 220px; border-radius: 14px; margin-top: 8px; display: block; }
.toast { position: fixed; inset-inline: 16px; bottom: 16px; background: var(--plum); color: #fff; padding: 12px 16px; border-radius: 16px; text-align: center; z-index: 9; box-shadow: var(--shadow); }
[hidden] { display: none !important; }
.small-note { font-size: .9rem; color: var(--soft); }
.sep { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.page-title { margin: 18px 0 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* guest + watch pages: little CSS balloon trio above the title */
.fest .wrap { padding-top: 26px; }
.fest .wrap::before { content: ''; display: block; width: 220px; height: 96px; margin: 0 auto 8px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 220 96%22%3E%3Cg fill=%22none%22 stroke=%22%23B9A3C2%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M110 70 C104 80 116 88 110 96%22/%3E%3Cpath d=%22M52 66 C48 74 56 80 52 88%22/%3E%3Cpath d=%22M168 62 C172 70 164 78 168 86%22/%3E%3C/g%3E%3Cellipse cx=%22110%22 cy=%2238%22 rx=%2227%22 ry=%2233%22 fill=%22%23F2503C%22/%3E%3Cpath d=%22M105 70h10l-5 6z%22 fill=%22%23F2503C%22/%3E%3Cellipse cx=%22100%22 cy=%2226%22 rx=%225%22 ry=%229%22 fill=%22%23fff%22 opacity=%22.5%22 transform=%22rotate%2820 100 26%29%22/%3E%3Cellipse cx=%2252%22 cy=%2244%22 rx=%2218%22 ry=%2222%22 fill=%22%23D9A8F0%22/%3E%3Cpath d=%22M48.500 65h7l-3.500 5z%22 fill=%22%23D9A8F0%22/%3E%3Cellipse cx=%22168%22 cy=%2240%22 rx=%2218%22 ry=%2222%22 fill=%22%23FFC23D%22/%3E%3Cpath d=%22M164.500 61h7l-3.500 5z%22 fill=%22%23FFC23D%22/%3E%3Crect x=%2214%22 y=%2216%22 width=%228%22 height=%2214%22 rx=%222%22 fill=%22%23FFC23D%22 transform=%22rotate%2825 18 23%29%22/%3E%3Ccircle cx=%22196%22 cy=%2218%22 r=%225%22 fill=%22%23F2503C%22/%3E%3Crect x=%22200%22 y=%2262%22 width=%228%22 height=%2214%22 rx=%222%22 fill=%22%23D9A8F0%22 transform=%22rotate%28-30 204 69%29%22/%3E%3Ccircle cx=%2220%22 cy=%2274%22 r=%225%22 fill=%22%23F2503C%22/%3E%3C/svg%3E") center / contain no-repeat; }
.fest h1 { font-size: 1.75rem; text-wrap: balance; color: var(--plum); }
.seg > .btn { border-radius: 18px; padding: 10px 8px; font-size: 1rem; line-height: 1.25; }
form .btn.big { margin-top: 14px; }
h2 { text-wrap: balance; }
