/* Night Out invite site - "Ink and Blue" (design/sharesite-mockups/ShareSite Ink and Blue.dc.html).
   Light/dark follows the visitor's device. Fully rounded buttons. */
:root {
  --primary: #2f6fed; --primary-dark: #2459c9; --primary-10: rgba(47,111,237,.10);
  --ink: #1c1d22; --on-ink: #ffffff; --text: #232323; --muted: #666;
  --screen: #f1f3f6; --card: #ffffff; --thumb: #d9dde3; --line: rgba(0,0,0,.10);
  --get-app: #e1e9f8; --error: #b22c5a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7aa5ff; --primary-dark: #8fb3ff; --primary-10: rgba(122,165,255,.12);
    --ink: #eef0f4; --on-ink: #15161a; --text: #dddddd; --muted: #999;
    --screen: #131519; --card: #1d2026; --thumb: #2a2e36; --line: rgba(255,255,255,.10);
    --get-app: #1f2a40; --error: #ff80ab;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--screen); color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 440px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; }
.brand .moon { width: 24px; height: 24px; border-radius: 6px; background: #00bfa5; display: grid; place-items: center; color: #fff; font-size: 14px; }
.card { background: var(--card); border-radius: 16px; padding: 20px; }
.center { text-align: center; }
h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 500; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; font-weight: 500; }
p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); font-size: 14px; }
.from { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; }
.message { background: var(--card); border-radius: 16px; padding: 12px 16px; font-size: 15px; }
.stack { position: relative; width: 236px; height: 270px; margin: 18px auto 6px; }
.stack .print { position: absolute; inset: 0; border: 8px solid var(--card); border-radius: 8px; overflow: hidden; background: var(--thumb); }
.stack .print img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack .p1 { transform: rotate(8deg); } .stack .p2 { transform: rotate(-6deg); } .stack .p3 { transform: rotate(-1deg); }
.pill { position: absolute; right: -14px; bottom: 14px; background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 4px 10px; font-size: 12px; }
button, .button { appearance: none; border: 0; border-radius: 999px; height: 48px; padding: 0 20px; width: 100%;
  font: 500 15px/1 inherit; font-family: inherit; text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
  background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.text { background: transparent; color: var(--primary-dark); text-transform: none; }
button:disabled { opacity: .3; cursor: default; }
label { font-size: 12px; color: var(--muted); }
input.code { width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 26px; letter-spacing: .5em; text-align: center; font-family: inherit; }
input.code:focus { outline: 2px solid var(--primary); border-color: transparent; }
.error { color: var(--error); font-size: 14px; text-align: center; }
.getapp { background: var(--get-app); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.grid { columns: 2; column-gap: 6px; }
.grid a { display: block; break-inside: avoid; margin-bottom: 6px; border-radius: 8px; overflow: hidden; background: var(--thumb); position: relative; }
.grid img { width: 100%; display: block; }
.grid .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.5); color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 12px; }
.send-head { display: flex; flex-direction: column; gap: 8px; }
.viewer { position: fixed; inset: 0; background: #000; display: none; z-index: 10; }
.viewer.open { display: block; }
.viewer .strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer .strip::-webkit-scrollbar { display: none; }
.viewer .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .count { position: absolute; top: 20px; left: 16px; color: #fff; font-size: 14px; opacity: .85; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; font-size: 32px; line-height: 1; background: rgba(255,255,255,.15); color: #fff; }
.viewer .prev { left: 12px; }
.viewer .next { right: 12px; }
@media (hover: none) { .viewer .nav { display: none; } }
body.noscroll { overflow: hidden; }
.viewer .close { position: absolute; top: 12px; right: 12px; width: auto; height: 40px; background: rgba(255,255,255,.15); color: #fff; }
@media (min-width: 900px) {
  main.wide { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; min-height: 90vh; }
  main.wide .stack { width: 340px; height: 400px; }
  .grid { columns: 3; }
}

/* layout helpers (the site's CSP blocks inline style attributes) */
.row8 { display: flex; gap: 8px; }
.col8 { display: flex; flex-direction: column; gap: 8px; }
.col16 { display: flex; flex-direction: column; gap: 16px; }
.col20 { display: flex; flex-direction: column; gap: 20px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt24 { margin-top: 24px; }
.from.start { justify-content: flex-start; }
.message.on-screen { background: var(--screen); }

/* comments under each share */
.comments { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.comments .thread { display: flex; flex-direction: column; gap: 8px; }
.comments .c { display: flex; gap: 8px; align-items: flex-start; }
.comments .c p { flex: 1; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.comments .say { display: flex; gap: 8px; }
.comments .say input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 0 16px; font: inherit; }
.comments .say button { width: auto; height: 44px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- the feed: a copy of the app's Feed cards (mockup "Feed Rework v2"); always light, like the app */
main.feed { max-width: 480px; padding: 0 0 48px; gap: 0; background: #fff; color: #232323; min-height: 100vh; }
main.feed .pad { padding: 16px; }
main.feed .empty { padding: 32px; text-align: center; font-size: 16px; line-height: 22px; color: #666; }
.fcard { padding: 4px 0 12px; border-bottom: 12px solid #DDE3E1; }
.fh { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 4px 0 16px; }
.fn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fn .name { font-size: 15px; font-weight: 700; color: #232323; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn .sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; }
.fn .sub > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.face { flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; line-height: 1; }
.face.f36 { width: 36px; height: 36px; font-size: 16px; }
.face.f24 { width: 24px; height: 24px; font-size: 12px; }
.face.f20 { width: 20px; height: 20px; font-size: 9px; border: 1.5px solid #fff; margin-left: -4px; }
.faces { display: inline-flex; align-items: center; padding-left: 8px; flex: none; }
.face.guest { background: #005585; } .face.guest svg { fill: #fff; }
.face.more { width: auto; min-width: 20px; padding: 0 4px; border-radius: 10px; background: #DDE3E1; color: #3F4947; }
.face.you { background: #65AE71; } .face.ux { background: #6E827E; }
.face.u0 { background: #E06B69; }
.face.u1 { background: #DB5B83; }
.face.u2 { background: #A064B0; }
.face.u3 { background: #7D66B0; }
.face.u4 { background: #4D94D0; }
.face.u5 { background: #3E9FCE; }
.face.u6 { background: #3EAAA9; }
.face.u7 { background: #3CA28F; }
.face.u8 { background: #65AE71; }
.face.u9 { background: #D5A84C; }
.face.u10 { background: #E5BA44; }
.face.u11 { background: #DD604D; }
.face.u12 { background: #D15353; }
.face.u13 { background: #E06B89; }
.face.u14 { background: #6D8FD0; }
.face.u15 { background: #5AA496; }
.face.u16 { background: #787CB3; }
.face.u17 { background: #8F56A3; }
.face.u18 { background: #D88D52; }
.face.u19 { background: #AF664B; }

.fh .menu { width: 44px; height: 44px; padding: 0; flex: none; border-radius: 22px; background: transparent; }
.fh .menu svg { fill: #666; }
.fh .menu:hover, .acts .like:hover, .acts .reply:hover { background: #EFF5F3; }
.fcard .single { display: block; position: relative; aspect-ratio: 4 / 5; background: #D7D9D8; }
.fcard .single img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.g3 a { position: relative; aspect-ratio: 1; background: #D7D9D8; display: block; overflow: hidden; }
.g3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g3 .plus { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.acts { display: flex; align-items: center; gap: 4px; padding: 4px 8px 0; }
.acts .grow { flex: 1; }
.acts button { width: auto; text-transform: none; letter-spacing: 0; font: 400 14px/1 Roboto, system-ui, sans-serif; gap: 6px; }
.acts .like { height: 44px; padding: 0 8px; border-radius: 22px; background: transparent; color: #666; }
.acts .like svg { fill: #666; }
.acts .like.on, .acts .like.on svg { color: #FF4081; fill: #FF4081; }
.acts .reply { height: 36px; padding: 0 12px; border-radius: 18px; background: transparent; color: #232323; border: 1px solid rgba(0,0,0,.18); }
.acts .reply svg { fill: #232323; }
.fcard .thread { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 4px; }
.fcard .thread:empty { display: none; }
.fcard .r { display: flex; align-items: flex-start; gap: 8px; }
.fcard .r p { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; padding-top: 2px; color: #232323; overflow-wrap: anywhere; }
.fcard .say { display: flex; gap: 8px; padding: 4px 16px 0; }
.fcard .say[hidden] { display: none; }
.fcard .say input { flex: 1; min-width: 0; height: 40px; border-radius: 20px; border: 1px solid rgba(0,0,0,.18); padding: 0 14px; font: 14px Roboto, system-ui, sans-serif; color: #232323; background: #fff; }
.fcard .say button { width: auto; height: 40px; padding: 0 16px; font-size: 14px; }
.fcard .error:empty { display: none; }
.fcard .error { padding: 4px 16px 0; }
