/* Second Look: shared styles (game + app). Colours: rose. */
  :root {
    --bg:#fff1f2; --card:#ffffff; --ink:#3b0a1a; --muted:#7a6670; --line:#f1dde3;
    --accent:#be123c; --accent-ink:#ffffff; --soft:#ffe4e6; --good:#15803d; --warn:#b45309; --bad:#b91c1c;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg:#1a0b10; --card:#2a1219; --ink:#ffe9ee; --muted:#c9a9b3; --line:#45202b;
      --accent:#fb7185; --accent-ink:#2a0710; --soft:#3d1621; --good:#4ade80; --warn:#fbbf24; --bad:#f87171;
    }
  }
  :root[data-theme="dark"] {
    --bg:#1a0b10; --card:#2a1219; --ink:#ffe9ee; --muted:#c9a9b3; --line:#45202b;
    --accent:#fb7185; --accent-ink:#2a0710; --soft:#3d1621; --good:#4ade80; --warn:#fbbf24; --bad:#f87171;
  }
  * { box-sizing: border-box; }
[hidden] { display: none !important; }
  html, body { margin: 0; background: var(--bg); color: var(--ink); }
  body { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
  .wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
  h1 { margin: 0 0 6px; font-size: 1.9rem; letter-spacing: -.02em; }
  h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
  p { margin: 0 0 10px; }
  .muted { color: var(--muted); }
  .small { font-size: .85rem; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
  button { font: inherit; cursor: pointer; color: inherit; }
  .btn { display: block; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
         background: var(--card); color: var(--ink); font-weight: 600; text-align: center; }
  .btn:hover:not(:disabled) { border-color: var(--accent); }
  .btn:disabled { opacity: .4; cursor: default; }
  .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 1.08rem; }
  .link { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; font-size: .9rem; }
  .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 32px; }
  .badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
  .progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
  .progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }
  label.f { display: block; font-weight: 600; margin: 0 0 4px; }
  input[type=text], input[type=number], select {
    width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); }
  .err { color: var(--bad); font-weight: 600; font-size: .9rem; margin: 8px 0 0; }
  .opts { display: flex; flex-direction: column; gap: 8px; }
  .opt { padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; text-align: left; font-size: 1.02rem; }
  .opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

  .prow { display: grid; grid-template-columns: 1fr 84px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
  .prow .x { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; }
  .prow-head { display: grid; grid-template-columns: 1fr 84px 40px; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

  .rank { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .person { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .person.on { border-color: var(--accent); }
  .tap { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; text-align: left; }
  .num { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
  .person.on .num { background: var(--accent); border: 2px solid var(--accent); color: var(--accent-ink); }
  .pname { font-weight: 700; font-size: 1.05rem; }
  .pname small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
  .details { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; padding: 0 12px 12px 12px; }
  .details label { font-size: .75rem; color: var(--muted); font-weight: 600; }
  .details select { padding: 7px 8px; font-size: .88rem; border-radius: 8px; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 600; }
  .hrow { padding: 10px 12px; margin-bottom: 8px; }
  .seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
  .seg3 .chip { border-radius: 10px; padding: 9px 6px; font-size: .84rem; line-height: 1.2; }
  .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

  .vs { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 14px; }
  .vs .opt { text-align: center; font-size: 1.35rem; padding: 26px 16px; }
  .or { text-align: center; color: var(--muted); font-weight: 700; margin: -4px 0; }

  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
  .tag { background: var(--soft); color: var(--accent); border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: .85rem; }
  .result { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
  .result .pct { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
  .verdict { font-weight: 800; }
  .v-look { color: var(--good); } .v-crush { color: var(--accent); } .v-zone { color: var(--warn); } .v-friend { color: var(--muted); }
  .bars { display: grid; grid-template-columns: 92px 1fr 22px; gap: 5px 8px; align-items: center; font-size: .88rem; }
  .bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
  .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
  details summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-top: 6px; }
  .learn p { margin: 0 0 6px; }
  .demo-note { font-size: .78rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- the app ---------- */
a.btn { text-decoration: none; }
.brand { font-weight: 800; letter-spacing: -.01em; color: var(--accent); text-decoration: none; font-size: 1.15rem; }
.testbar { background: var(--warn); color: #fff; text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 12px; }
input[type=email], input[type=password], input[type=date], textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.field { margin: 0 0 14px; }
.hint { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.tick { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; }
.tick input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--accent); }
.ok { color: var(--good); font-weight: 600; font-size: .9rem; margin: 8px 0 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { margin: 0 0 8px; }
.steps a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.steps a .st { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.st.done { color: var(--good); } .st.todo { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .lab { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: .68rem; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 2px 5px; }
.ph .tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.ph .tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .9rem; }
.ph.add { display: grid; place-items: center; border-style: dashed; font-weight: 700; color: var(--accent); background: var(--card); }
.editor canvas { width: 100%; height: auto; border-radius: 12px; touch-action: none; display: block; background: #000; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prompt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--card); }
.prompt select { margin-bottom: 6px; }
.count { font-size: .78rem; color: var(--muted); text-align: right; }
.preview .pics { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 12px; }
.preview .pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }
.preview .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.preview .q { font-weight: 700; margin: 10px 0 2px; font-size: .9rem; color: var(--muted); }
.foot { font-size: .78rem; color: var(--muted); margin: 22px 0 0; text-align: center; }
.foot a { color: var(--muted); }
.hero h1 { font-size: 2.3rem; }
.hero p { font-size: 1.08rem; }

/* ---------- logo and home page ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo img { height: 30px; width: auto; display: block; }
.logo span { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo b { color: var(--accent); font-weight: 800; }
.hero-mark { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 8px 0 18px; }
.hero-mark img { width: 132px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 6px 14px rgba(136, 19, 55, .18)); }
.hero-mark .word { font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.1; }
.hero-mark .word b { color: var(--accent); }
.hero h1 { font-size: 1.95rem; text-align: center; margin: 4px 0 14px; }
.nos { list-style: none; padding: 0; margin: 0 0 18px; }
.nos li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.nos li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path d="M6 11.5l3.2 3.2L16 8" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 22px no-repeat; }
.nos li.big { font-size: 1.2rem; color: var(--accent); }
.step { margin: 0 0 12px; }
.step h3 { margin: 0 0 4px; font-size: 1.15rem; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .95rem; margin-right: 8px; vertical-align: 2px; }
figure.shot { margin: 0 0 14px; }
figure.shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 8px 22px rgba(59, 10, 26, .14); }
.illus { font-size: .75rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* ---------- photo check ---------- */
.cam { position: relative; border-radius: 16px; overflow: hidden; background: #000; margin: 0 0 12px; aspect-ratio: 3 / 4; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam .cue { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; text-align: center; }
.cam .cue b { display: block; font-size: 1.25rem; }
.cam .cue span { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.cam .arrow { position: absolute; top: 42%; width: 0; height: 0; border: 22px solid transparent; opacity: .9; }
.cam .arrow.left { left: 10px; border-right: 30px solid #fff; border-left: 0; }
.cam .arrow.right { right: 10px; border-left: 30px solid #fff; border-right: 0; }
.cam .arrow.straight { display: none; }

/* ---------- staff page ---------- */
.staffmark { position: fixed; inset: 0; pointer-events: none; z-index: 50; color: var(--ink); opacity: .05; font-size: .9rem; font-weight: 700;
  line-height: 3.2; word-spacing: 2rem; transform: rotate(-24deg) scale(1.6); overflow: hidden; user-select: none; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 0 10px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; font-size: 16px; line-height: 1.4; }
.msg.mine { background: var(--soft); align-self: flex-end; }
.msg.sys { max-width: 100%; font-size: 14px; border-style: dashed; }
.msg .when { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.send { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0; }
.send textarea { flex: 1; min-height: 48px; }
.send .btn { width: auto; padding-left: 18px; padding-right: 18px; }

/* new-message badge */
.topr { display: inline-flex; align-items: center; gap: 14px; }
.bell { position: relative; text-decoration: none; font-size: 1.35rem; line-height: 1; }
.bell .dot { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* question cards */
.msg.qcard { border-style: solid; border-color: var(--accent); background: var(--soft); max-width: 100%; }
.qcard .qtext { font-size: 17px; font-weight: 700; margin: 4px 0 8px; }
.qcard textarea { width: 100%; min-height: 56px; }
#qmore { margin-bottom: 8px; }

/* invite a friend */
.sharebox { margin-top: 8px; display: grid; gap: 8px; }
.sharebox .btn { margin: 0; }

/* the launch heart */
.heartbar { text-align: center; margin: 4px 0 12px; }
.heartbar svg { display: block; margin: 0 auto 4px; }
