/* What Algorithms See · styles
   Light mode follows the reference layout (warm paper background, one white card).
   Dark mode switches to the Shotok OS look (dark glass card), like privacy.html does. */
:root {
  --bg: #efede8; --card: #ffffff; --ink: #1c1b18; --muted: #6f6c64; --line: #e3e0d8;
  --drop: #f0eee9; --dash: #8d8a82; --focus: #3987e5; --err: #b3402a; --shadow: 0 10px 30px rgba(40, 35, 20, .07), 0 1px 3px rgba(40, 35, 20, .05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1020; --card: rgba(26, 28, 46, .82); --ink: #f2f2f7; --muted: #a4a6b8; --line: rgba(255, 255, 255, .09);
    --drop: rgba(255, 255, 255, .04); --dash: rgba(255, 255, 255, .32); --focus: #4ea3ff; --err: #ff8a7a; --shadow: 0 24px 60px rgba(0, 0, 0, .45); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.35; }
@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(900px 500px at 10% -10%, rgba(94, 92, 230, .2), transparent 70%), radial-gradient(800px 500px at 100% 0%, rgba(139, 92, 246, .14), transparent 70%), var(--bg); background-attachment: fixed; }
  .was-card { border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.was-back { position: absolute; top: 18px; left: 20px; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 8px; border-radius: 10px; }
.was-back:hover { color: var(--ink); }

.was-wrap { width: 100%; max-width: 540px; margin: 0 auto; padding: 84px 20px 40px; }
.was-card { background: var(--card); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }

.was-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.was-head h1 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }
.was-muted { color: var(--muted); font-size: 14.5px; white-space: nowrap; }

/* row 1: the photo box and the attractiveness number */
.was-top { display: flex; align-items: center; gap: 18px; }
.was-drop { position: relative; flex: none; width: min(44%, 196px); aspect-ratio: 1; border-radius: 16px; border: 1.5px dashed var(--dash);
  background: var(--drop); display: grid; place-items: center; overflow: hidden; transition: border-color .2s, background .2s, transform .2s; }
.was-drop:hover, .was-drop.over { border-color: var(--ink); }
.was-drop.over { transform: scale(1.02); }
.was-drop.has { border-style: solid; border-color: transparent; }
.was-empty { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.was-plus { font-size: 40px; line-height: .8; font-weight: 300; }
.was-thumb { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s, filter .35s; }
.was-drop.dim .was-thumb { opacity: .45; filter: grayscale(.6); }
.was-busy { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 16px); padding: 5px 11px; border-radius: 99px;
  background: rgba(20, 20, 18, .72); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.was-busy::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ee06a; vertical-align: 1px; animation: was-pulse 1s ease-in-out infinite; }
@keyframes was-pulse { 50% { opacity: .25; } }

.was-attr { min-width: 0; display: grid; gap: 6px; }
.was-label { display: block; color: var(--muted); font-size: 14px; }
.was-big { display: flex; align-items: baseline; gap: 4px; font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.was-big small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.was-note { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.was-status { min-height: 0; margin-top: 0; font-size: 13.5px; color: var(--muted); }
.was-status:not(:empty) { margin-top: 14px; }
.was-status.err { color: var(--err); }
.was-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }

/* row 2: age and gender */
.was-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.was-val { display: block; margin-top: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* moods: two columns, the top mood in bold */
.was-moods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.was-moods ul { list-style: none; display: grid; gap: 6px; align-content: start; }
.was-moods li { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.was-moods li.top { color: var(--ink); font-weight: 700; }

.was-sample { margin-top: 22px; font-size: 16px; font-weight: 500; color: var(--ink); padding: 0 0 2px; border-bottom: 1.5px solid var(--line); }
.was-sample:hover { border-bottom-color: var(--ink); }
.was-sample:disabled { opacity: .45; cursor: default; }

.was-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
.was-foot a { color: inherit; text-underline-offset: 2px; }

.was-dash { color: var(--ink); }
.was-rise { animation: was-rise .45s cubic-bezier(.2, .9, .3, 1.12) both; }
@keyframes was-rise { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 480px) {
  .was-wrap { padding: 66px 14px 32px; }
  .was-back { top: 14px; left: 10px; }
  .was-card { padding: 22px 20px 24px; border-radius: 22px; }
  .was-head { margin-bottom: 18px; }
  .was-head h1 { font-size: 17px; }
  .was-muted { font-size: 13.5px; }
  .was-top { gap: 16px; }
  .was-drop { width: 46%; }
  .was-big { font-size: 38px; }
  .was-moods { gap: 16px; }
  .was-moods li { font-size: 15.5px; }
}
@media (max-width: 340px) { .was-head { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
