@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Italic"; src: url("fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype"); font-weight: 300 700; font-style: italic; font-display: swap; }

/* Skin 1 "Gilded Velvet" - the same colours as the Android app's AppSkin.cs: deep green velvet, black panels, ivory writing, aged gold. */
:root {
  --wall: #13201A;
  --surface: rgba(11, 20, 16, 0.94);
  --surface-high: rgba(19, 32, 26, 0.96);
  --inset: #070B09;
  --sheet: #0F1713;
  --black: #0A0E0C;
  --text: #EBDFC0;
  --text-soft: rgba(235, 223, 192, 0.68);
  --on-gold: #1B1307;
  --gold: #BF9B4A;
  --gold-light: #D9B866;
  --gold-deep: #98742F;
  --line: rgba(191, 155, 74, 0.45);
  --green: #7FA878;
  --muted: #2E4236;
  --red: #B24A47;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  --gold-fill: linear-gradient(180deg, #D9BC6C 0%, #BF9B4A 46%, #98742F 100%);
  --heading: "Cinzel", Georgia, serif;
  --display: "Cormorant Italic", Georgia, serif;
  --vh: 100dvh;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--wall);
  color: var(--text);
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}

body { position: fixed; inset: 0; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-light); }

/* the velvet wall behind everything, dimmed a little so writing stays easy to read, with a pool of lamp light near the top */
#app {
  height: var(--vh); display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; position: relative;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255, 230, 165, 0.16), transparent 70%),
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
    url("img/velvet.jpg") center top / cover,
    var(--wall);
}
#view { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
.page { padding: 18px 16px 28px; }
.page h1 {
  font-family: var(--heading); font-weight: 600; font-style: normal; font-size: 22px; letter-spacing: 0.22em; text-transform: uppercase;
  text-align: center; color: var(--gold-light); margin: 8px 0 26px; position: relative;
}
/* the fine rule with a diamond in the middle, under every screen title */
.page h1::after {
  content: ""; display: block; width: 200px; height: 9px; margin: 14px auto 0;
  background:
    linear-gradient(45deg, transparent 38%, var(--gold-light) 39%, var(--gold-light) 61%, transparent 62%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 80%) left center / calc(50% - 12px) 1px no-repeat,
    linear-gradient(270deg, transparent, var(--gold) 80%) right center / calc(50% - 12px) 1px no-repeat;
}
.muted { color: var(--text-soft); }
.hidden { display: none !important; }

/* ---------- bottom navigation ---------- */
#nav {
  display: flex; background: linear-gradient(180deg, #131B17, var(--black)); border-top: 1px solid var(--gold-deep);
  box-shadow: 0 -1px 0 rgba(217, 184, 102, 0.25), 0 -8px 18px rgba(0, 0, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  flex: 1; text-align: center; padding: 10px 4px 9px; text-decoration: none; color: var(--text-soft);
  font-family: var(--heading); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
}
#nav a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#nav a.active { color: var(--gold-light); }
#nav a.active svg { filter: drop-shadow(0 0 5px rgba(217, 184, 102, 0.55)); }
#nav a.active::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--gold-fill); border-radius: 2px; }

/* ---------- common bits ---------- */
/* panels: near-black lacquered plates with a fine gold hairline and a faint sheen along the top */
.card, .chat-row {
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.045), transparent 34%), var(--surface);
  border: 1px solid rgba(191, 155, 74, 0.34); border-radius: 18px; box-shadow: var(--shadow);
}
.card { padding: 14px 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
/* buttons: raised gold metal - bright lip, shadowed foot, dark outline */
.btn {
  border: 1px solid #5E4212; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold); padding: 12px 24px; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, 0.7), inset 0 -2px 0 rgba(60, 40, 8, 0.3), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s;
}
.btn:active { transform: scale(0.95); }
.btn.secondary { background: linear-gradient(180deg, #3A5646, var(--muted)); color: var(--text); border-color: #1B2B21; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 10px rgba(0, 0, 0, 0.5); }
.btn.danger { background: linear-gradient(180deg, #CC5C58, var(--red)); color: #FFF1E8; border-color: #6B1F1D; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.5); }
.btn[disabled] { opacity: 0.55; }
.icon-btn { border: none; background: transparent; font-size: 22px; padding: 6px 10px; color: var(--gold-light); }

input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], textarea, select {
  width: 100%; border: 1px solid rgba(191, 155, 74, 0.22); border-radius: 14px; background: var(--inset); color: var(--text);
  padding: 13px 14px; font-size: 16px; margin-bottom: 10px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
input::placeholder, textarea::placeholder { color: var(--text-soft); font-style: italic; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: none; }
label.field { display: block; font-size: 12px; margin: 2px 4px 4px; color: var(--gold); font-family: var(--heading); letter-spacing: 0.12em; text-transform: uppercase; }

.avatar {
  border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none;
  color: #fff; font-weight: 700; background: var(--gold); user-select: none; box-shadow: 0 0 0 1.5px rgba(191, 155, 74, 0.6);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.tappable { cursor: pointer; }

/* ---------- sign-in ---------- */
.auth { min-height: var(--vh); display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; }
.auth img.logo { width: 240px; max-width: 70%; margin: 0 auto 4px; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.auth h1 { font-family: var(--display); font-weight: 700; font-style: italic; text-align: center; font-size: 56px; margin: 0; line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth p.sub { text-align: center; margin: 12px 0 22px; color: var(--gold); font-family: var(--heading); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.auth .err { color: #F08A86; min-height: 22px; text-align: center; margin: 4px 0 8px; font-size: 14px; }
.auth .switch { text-align: center; margin-top: 16px; }
.auth .switch button { background: none; border: none; color: var(--gold-light); text-decoration: underline; font-size: 15px; }
.auth .btn { width: 100%; }
.hint { font-size: 12.5px; color: var(--text-soft); margin: -4px 4px 10px; }

/* ---------- home ---------- */
.hero { text-align: center; padding: 8px 0 14px; }
.hero .avatar { margin: 0 auto 8px; box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--gold), var(--shadow); }
.hero h1 { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 44px; letter-spacing: 0; text-transform: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1::after { display: none; }
/* the countdown is a gold plate */
.countdown-card { text-align: center; background: var(--gold-fill); color: var(--on-gold); border: 1px solid #5E4212; border-radius: 20px; padding: 16px 16px 14px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, 0.7), inset 0 -3px 0 rgba(60, 40, 8, 0.3), 0 6px 16px rgba(0, 0, 0, 0.5); }
.countdown-card .muted { color: rgba(27, 19, 7, 0.75); }
.countdown { font-family: var(--heading); font-size: 52px; font-weight: 600; color: var(--on-gold); line-height: 1; }
.event-row { display: flex; gap: 12px; align-items: center; }
.event-row .date { min-width: 58px; text-align: center; font-weight: 700; }
.event-row .date b { display: block; font-size: 24px; line-height: 1; font-family: var(--heading); color: var(--gold-light); }
.event-row .date span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft); }
.install-tip { background: var(--surface-high); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; position: relative; }
.install-tip button { position: absolute; top: 4px; right: 6px; }

/* ---------- schedule ---------- */
.day-title { margin: 22px 4px 10px; font-family: var(--heading); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.item { cursor: pointer; }
.item .when { color: var(--gold-light); font-size: 14px; }
.item.task { background: var(--surface-high); border-color: rgba(127, 168, 120, 0.5); }

/* ---------- sheets and toast ---------- */
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet-card { background: var(--sheet); border: 1px solid var(--line); border-bottom: none; width: 100%; max-width: 640px; max-height: 88vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 18px; }
.sheet-head h2 { margin: 0; font-family: var(--heading); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.sheet-body { padding: 8px 18px 22px; overflow-y: auto; }
.profile-card { text-align: center; }
.profile-card .avatar { margin: 0 auto 6px; }
.profile-card h3 { margin: 8px 0 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 32px; color: var(--gold-light); }
.profile-card .about { white-space: pre-wrap; }
.social { display: block; margin: 6px 0; }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--black); color: var(--text); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; opacity: 0; transition: all 0.25s; z-index: 80; font-size: 14px; max-width: 90vw; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- chat list ---------- */
.chat-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; position: relative; }
.chat-pic { width: 62px; height: 62px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #FAE6C8; color: #fff; font-weight: 700; font-size: 26px; box-shadow: 0 0 0 1.5px rgba(191, 155, 74, 0.6); }
.chat-pic img { width: 100%; height: 100%; object-fit: cover; }
.chat-pic img.emoji { width: 66%; height: 66%; object-fit: contain; }
.chat-text { flex: 1; min-width: 0; }
.chat-text .name { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-text .last { color: var(--text-soft); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 12px; color: var(--gold); align-self: flex-start; padding-top: 4px; }

/* ---------- chat thread ---------- */
.thread { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--wall); z-index: 5; }
.thread-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 4px; background: linear-gradient(180deg, #131B17, var(--black)); border-bottom: 1px solid var(--gold-deep); z-index: 2; }
.thread-top h2 { margin: 0; font-family: var(--heading); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-scroll { flex: 1; overflow-y: auto; position: relative; -webkit-overflow-scrolling: touch; }
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.backdrop-pattern, .backdrop-veil { position: absolute; inset: 0; }
.messages { position: relative; z-index: 1; padding: 22px 10px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 100%; justify-content: flex-end; }
.msg { display: flex; align-items: flex-start; gap: 7px; padding-top: 16px; }
.msg.mine { flex-direction: row-reverse; }
.msg .avatar { margin-top: 2px; }
.msg-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: calc(100% - 52px); }
.msg.mine .msg-col { align-items: flex-end; }
.msg-time { font-size: 11px; margin: 12px 8px 0; color: rgba(255, 255, 255, 0.75); }
.thread:not(.dark) .msg-time { color: rgba(27, 19, 7, 0.6); }
.reaction-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; margin-bottom: -8px; }
.reaction-chip { display: flex; align-items: center; gap: 3px; background: rgba(10, 14, 12, 0.88); border-radius: 999px; padding: 2px 7px 2px 4px; font-size: 12px; color: var(--text); border: 1px solid rgba(191, 155, 74, 0.35); }
.reaction-chip.mine { border-color: var(--gold-light); background: rgba(60, 46, 18, 0.92); }
.reaction-chip img { width: 18px; height: 18px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #131B17, var(--black)); border-top: 1px solid var(--gold-deep); z-index: 2; }
.composer textarea { margin: 0; max-height: 120px; flex: 1; padding: 11px 14px; }
.composer .btn { padding: 11px 18px; }
.send-note { font-size: 12px; color: #F08A86; padding: 0 12px 4px; background: var(--black); }
.empty { text-align: center; color: var(--text-soft); padding: 40px 20px; }

/* ---------- bubbles ---------- */
.bubble {
  position: relative; border: 2px solid var(--rim); background: var(--base); color: var(--text);
  border-radius: 20px; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); cursor: pointer; user-select: none;
}
.bubble.glowing { box-shadow: 0 0 10px 2px var(--glow), 0 0 22px 4px color-mix(in srgb, var(--glow) 55%, transparent); }
.bubble-layers { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; pointer-events: none; }
.bubble-pattern, .bubble-veil { position: absolute; inset: 0; }
.bubble-pattern { background-repeat: repeat; }
.bubble-body { position: relative; padding: 8px 14px 10px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; text-align: left; }
.bubble-name { font-size: 12px; font-weight: 700; margin-bottom: 1px; white-space: normal; }
.bubble-tail {
  position: absolute; bottom: -9px; left: 8px; width: 16px; height: 11px; background: var(--rim);
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}
.bubble-tail::after {
  content: ""; position: absolute; inset: 0 2px 2.5px 2px; background: var(--base); clip-path: polygon(0 0, 100% 0, 18% 100%);
}
.bubble.mine .bubble-tail { left: auto; right: 8px; transform: scaleX(-1); }
.bubble-decor { position: absolute; bottom: calc(100% - 3px); transform-origin: 50% 100%; pointer-events: none; max-width: none; }
.bubble-decor.left { left: 0; }
.bubble-decor.right { right: 0; }
.bubble .gif { display: block; border-radius: 10px; max-width: 220px; width: 100%; height: auto; }
.bubble.poll .bubble-body { min-width: 220px; }
.poll-q { font-weight: 700; margin-bottom: 6px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; margin-top: 5px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(0, 0, 0, 0.12); overflow: hidden; }
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: rgba(0, 0, 0, 0.14); }
.poll-opt span { position: relative; }
.poll-opt.chosen { border-color: currentColor; font-weight: 700; }
.poll-total { font-size: 12px; opacity: 0.7; margin-top: 6px; }

/* ---------- reaction picker ---------- */
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.emoji-grid button { border: 1px solid rgba(191, 155, 74, 0.2); background: var(--inset); border-radius: 14px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.emoji-grid button.chosen { background: rgba(60, 46, 18, 0.9); box-shadow: inset 0 0 0 2px var(--gold-light); }
.emoji-grid img { width: 38px; height: 38px; }

/* ---------- profile ---------- */
.skin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding-top: 24px; }
.skin-cell { display: flex; justify-content: center; position: relative; cursor: pointer; padding-top: 10px; }
.skin-cell.chosen::after { content: "\2713"; position: absolute; top: 0; right: 4px; background: var(--gold-fill); color: var(--on-gold); width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-size: 14px; }
.profile-top { text-align: center; }
.profile-top .avatar { margin: 0 auto 8px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }

/* ---------- photos ---------- */
.post { padding: 0; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.post-who .muted { font-size: 12px; }
.post-media { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.post-actions { display: flex; gap: 18px; padding: 10px 14px 4px; }
.post-action { display: flex; align-items: center; gap: 6px; border: none; background: none; color: var(--text); font-size: 15px; padding: 4px 2px; }
.post-action img { width: 28px; height: 28px; filter: grayscale(0.9) opacity(0.7); transition: transform 0.15s; }
.post-action.on img { filter: none; }
.post-action:active img { transform: scale(1.2); }
.post-action .bubble-ico { font-size: 22px; filter: grayscale(1) opacity(0.75); }
.post-caption { margin: 2px 14px 14px; line-height: 1.35; overflow-wrap: anywhere; }
.row-btns, .row-btns-center { display: flex; gap: 10px; flex-wrap: wrap; }
.comments { max-height: 48vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.comment-text b { color: var(--gold-light); font-size: 14px; }
.comment-bar { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.comment-bar input { margin: 0; flex: 1; }
.progress { height: 8px; border-radius: 99px; background: var(--inset); overflow: hidden; margin: 6px 0 12px; border: 1px solid var(--line); }
.progress-fill { height: 100%; width: 0; background: var(--gold-fill); transition: width 0.2s; }

/* ---------- chat tools, new chat, unread dots ---------- */
.composer .tool-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--inset); color: var(--gold-light); font-family: var(--heading); font-size: 12px; letter-spacing: 0.04em; display: flex; align-items: center; justify-content: center; padding: 0; }
.composer .tool-btn:active { transform: scale(0.92); }
#nav a .dot { position: absolute; top: 5px; left: calc(50% + 7px); width: 11px; height: 11px; border-radius: 50%; background: #E5262E; box-shadow: 0 0 0 2px var(--black); }
.chat-row.unread .name::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: #E5262E; vertical-align: middle; }
.chat-row.unread .last { color: var(--text); font-weight: 700; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 52vh; overflow-y: auto; margin-top: 4px; }
.gif-cell { border: 1px solid var(--line); background: var(--inset); border-radius: 10px; padding: 0; overflow: hidden; aspect-ratio: 1; }
.gif-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emoji-grid.small { grid-template-columns: repeat(6, 1fr); margin-bottom: 12px; }
.emoji-grid.small img { width: 30px; height: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip { border: 1px solid var(--line); background: var(--inset); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.chip.on { background: var(--gold-fill); color: var(--on-gold); border-color: #5E4212; }
.who-list { max-height: 30vh; overflow-y: auto; border: 1px solid rgba(191, 155, 74, 0.22); border-radius: 14px; background: var(--inset); }
.who-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; color: var(--text); padding: 11px 14px; border-bottom: 1px solid rgba(191, 155, 74, 0.1); }
.who-row.on { background: rgba(191, 155, 74, 0.22); }
.who-row.on .who-name::before { content: "\2713  "; color: var(--gold-light); }
.who-row .muted { font-size: 12px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 14px; }
.swatch { aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(191, 155, 74, 0.3); padding: 0; position: relative; overflow: hidden; }
.swatch.on { border-color: var(--gold-light); box-shadow: 0 0 0 2px var(--gold-deep); }

/* ---------- connection bar and pull to refresh ---------- */
.conn-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #1A0A07; border-bottom: 2px solid var(--gold); color: var(--text); font-size: 14px; line-height: 1.3; }
.conn-text { flex: 1; }
.conn-retry { flex: none; border: 1px solid #5E4212; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold); padding: 8px 18px; font-size: 14px; }
.pull { position: absolute; top: -34px; left: 0; right: 0; z-index: 60; text-align: center; padding: 8px; font-family: var(--heading); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); pointer-events: none; }
.comment-text .reaction-row { margin-top: 6px; margin-bottom: 0; }

/* ---------- wedding party checklist ---------- */
.center { text-align: center; }
.small { font-size: 13px; }
.back-link { display: inline-block; margin: 2px 4px 0; text-decoration: none; font-family: var(--heading); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.add-bar { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.add-bar input { margin: 0; flex: 1; }
.add-bar .btn { padding: 12px 20px; }
.checklist-card { display: block; border-color: rgba(127, 168, 120, 0.5); }
.checklist-card h3 { color: var(--gold-light); }
.event-row.task { background: var(--surface-high); border-color: rgba(127, 168, 120, 0.5); }
.task-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.task-main { flex: 1; min-width: 0; }
.task-main h3 { overflow-wrap: anywhere; margin-bottom: 8px; }
.small-btn { padding: 8px 16px; font-size: 14px; }
.btn.joined { background: linear-gradient(180deg, #8FB988, #5E8A58); border-color: #2E4D2A; color: #0E1A0C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.5); }
.row-btns.tight { margin: 10px 0 4px; }
.card.sub.mine { background: var(--surface-high); border-color: rgba(127, 168, 120, 0.5); }
.sub-title { font-size: 17px; overflow-wrap: anywhere; }
.sub-due { font-style: italic; font-size: 14px; color: var(--gold-light); margin-top: 4px; }
.sub-on { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 4px; }
.strip { display: flex; align-items: flex-start; gap: 0; border: none; background: transparent; padding: 4px 0 0; color: var(--text); text-align: center; }
.strip-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.strip .avatar.you { box-shadow: 0 0 0 3px var(--green); }
.strip-name { font-size: 12px; color: var(--text-soft); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-more { border-radius: 50%; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.who-person { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 18px; }
.who-person .me { font-weight: 700; }

/* ---------- awards and who's who ---------- */
.award-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.award-tile { flex: none; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 8px 10px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.045), transparent 34%), var(--surface); border: 1px solid rgba(191, 155, 74, 0.34); border-radius: 16px; box-shadow: var(--shadow); }
.award-tile.is-title { border-color: var(--gold); background: linear-gradient(180deg, rgba(217, 184, 102, 0.16), transparent 60%), var(--surface-high); }
.award-tile b { font-size: 14px; margin-top: 4px; }
.award-tile > span { font-size: 12px; color: var(--text-soft); line-height: 1.25; }
.award-art { object-fit: contain; display: block; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.shield { display: flex; align-items: center; justify-content: center; background: var(--gold-fill); color: var(--on-gold); font-family: var(--heading); font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); padding-bottom: 8%; margin: 4px 0; }
.award-detail { text-align: center; }
.award-detail .award-art, .award-detail .shield { margin: 6px auto 4px; }
.award-detail h3 { margin: 10px 0 2px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 30px; color: var(--gold-light); }
.title-card { display: flex; flex-direction: column; gap: 10px; }
.title-top { display: flex; align-items: center; gap: 14px; }
.title-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.title-text b { font-size: 18px; }
.title-text span { font-size: 14px; }
.shield-wrap.dim { opacity: 0.4; filter: grayscale(0.7); }
.ribbon { text-align: center; padding: 9px 14px; border-radius: 10px; background: var(--muted); color: var(--text-soft); font-size: 15px; font-weight: 700; }
.ribbon.on { background: linear-gradient(180deg, #8FB988, #5E8A58); color: #0E1A0C; }
.title-card .btn { align-self: flex-start; }
.person-row { display: flex; align-items: center; gap: 12px; }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who-person.pick { width: 100%; border: none; background: transparent; color: var(--text); text-align: left; font-size: 18px; border-bottom: 1px solid rgba(191, 155, 74, 0.1); }
