/* MORE Couples Weekend 2026 — shared styles (palette from the weekend artwork) */
:root {
  --navy: #1f2a5c;
  --navy-deep: #161e45;
  --navy-soft: #2c3874;
  --gold: #f0c75e;
  --gold-soft: #f7e3a6;
  --coral: #f2645a;
  --coral-soft: #fde3df;
  --cream: #fdf6ea;
  --card: #ffffff;
  --ink: #1d2340;
  --muted: #6b7090;
  --line: #e9e2d2;
  --green: #2f9e6e;
  --green-soft: #def3e9;
  --amber: #c98a0b;
  --amber-soft: #fbefd2;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(22, 30, 69, .08);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; line-height: 1.45; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

/* header */
.topbar { background: var(--navy); color: #fff; padding: 14px 16px 18px; position: relative; overflow: hidden; }
.topbar::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.05); }
.eyebrow { letter-spacing: .28em; font-size: .68rem; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.topbar h1 { font-family: var(--serif); font-weight: 400; margin: 4px 0 0; font-size: 1.6rem; line-height: 1.15; }
.topbar .who { position: absolute; right: 14px; top: 12px; font-size: .78rem; color: var(--gold-soft); z-index: 1; text-align: right; }
.topbar .who button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; cursor: pointer; margin-top: 4px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.app-main { padding-bottom: 92px; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid rgba(0,0,0,.02); }
.card h2, .card h3 { margin: 0 0 6px; }
h2.section { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 22px 0 10px; color: var(--navy); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.gold { background: var(--gold-soft); color: #7a5a00; }
.pill.coral { background: var(--coral-soft); color: #a2271e; }
.pill.green { background: var(--green-soft); color: #1d6b49; }
.pill.navy { background: #e4e7f5; color: var(--navy); }
.pill.amber { background: var(--amber-soft); color: #8a5d00; }
.pill.grey { background: #eee; color: #666; }

/* buttons */
.btn { appearance: none; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.coral { background: var(--coral); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid #cfd3e6; }
.btn.green { background: var(--green); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }

/* forms */
label.field { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); }
label.field > span.hint { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; margin-top: 6px; border: 1.5px solid #d9d4c6; border-radius: 12px; padding: 11px 12px; background: #fff; min-height: 44px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,42,92,.12); }
textarea.input { min-height: 84px; resize: vertical; }
.error { color: #b3261e; font-weight: 700; font-size: .9rem; }
.ok { color: var(--green); font-weight: 700; font-size: .9rem; }

/* login */
.login-card { max-width: 380px; margin: 28px auto; }
.pin-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem; }

/* tabs (bottom nav on phones) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
.tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 6px 10px; cursor: pointer; border-radius: 10px; min-width: 64px; }
.tabbar button .ic { font-size: 1.3rem; line-height: 1; }
.tabbar button.active { color: var(--navy); background: #eef0f8; }
.tabbar .dot { position: relative; }
.tabbar .dot::after { content: ""; position: absolute; top: -2px; right: -6px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* leaderboard */
.me-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; }
.me-card .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.me-card .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; margin-bottom: 8px; box-shadow: 0 2px 10px rgba(22,30,69,.05); transition: background .6s; }
.lb li.mine { outline: 2.5px solid var(--gold); }
.lb li.flash { background: #fff6d8; }
.lb .rk { width: 30px; text-align: center; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); flex: none; }
.lb li.top1 .rk, .lb li.top2 .rk, .lb li.top3 .rk { font-size: 1.5rem; }
.lb .nm { font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .pts { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); text-align: right; flex: none; }
.lb .pts small { display: block; font-family: var(--sans); font-size: .68rem; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gold-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.avatar.lg { width: 84px; height: 84px; font-size: 1.6rem; }
.hidden-board { text-align: center; padding: 28px 16px; }
.hidden-board .stamp { display: inline-block; border: 3px dashed var(--coral); color: var(--coral); border-radius: 50%; width: 130px; height: 130px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .1em; transform: rotate(-8deg); font-size: .85rem; line-height: 1.3; }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.feed .fhead { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.feed .fhead .avatar { width: 38px; height: 38px; font-size: .8rem; }
.feed .ftitle { font-weight: 700; font-size: .92rem; }
.feed .ftitle b { color: var(--navy); }
.feed .ftime { font-size: .75rem; color: var(--muted); }
.feed .media { background: #111; max-height: 520px; display: flex; justify-content: center; cursor: zoom-in; }
.feed .media img, .feed .media video { max-height: 520px; width: auto; max-width: 100%; object-fit: contain; }
.feed .fcap { padding: 10px 14px 14px; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed li.announce { background: var(--navy); color: #fff; }
.feed li.announce .fcap { font-size: 1rem; padding: 4px 16px 16px; }
.feed li.announce .ftime { color: var(--gold-soft); }
.feed li.adjust { background: var(--gold-soft); }

/* challenges */
.chal { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: transform .1s; }
.chal:active { transform: scale(.99); }
.chal .cid { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #eef0f8; color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.chal.done .cid { background: var(--green-soft); color: var(--green); }
.chal.closed { opacity: .6; }
.chal .cname { font-weight: 800; color: var(--navy); }
.chal .cdesc { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.chal-list > * + * { margin-top: 10px; }

/* sheet / modal */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,20,45,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0; color: var(--navy); }
.sheet .close { float: right; background: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.brief { background: #fff; border-radius: 12px; padding: 12px; font-size: .9rem; }
.brief dt { font-weight: 800; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.brief dd { margin: 2px 0 10px; }
.brief dd:last-child { margin-bottom: 0; }
.preview { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #111; display: flex; justify-content: center; }
.preview img, .preview video { max-height: 280px; width: auto; }
.progress { height: 8px; background: #e6e1d4; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--coral); transition: width .2s; }

/* toast */
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: var(--navy-deep); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 80; font-size: .9rem; box-shadow: 0 8px 26px rgba(0,0,0,.25); max-width: calc(100% - 32px); animation: tin .25s ease-out; }
.toast b { color: var(--gold); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, -10px); } }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img, .lightbox video { max-height: 100%; max-width: 100%; }

/* two-column on wider screens */
.split { display: grid; gap: 18px; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; align-items: start; } .split .sticky { position: sticky; top: 12px; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scroll-x { overflow-x: auto; }

.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.footer-note { text-align: center; font-size: .72rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin: 26px 0 10px; }
