/* District games. */

/* ---------- Mail app (Post Office, Detective Desk, Daily, Endless, quizzes) ---------- */
.mail-card {
  position: relative; background: var(--glass-hi), var(--panel-solid); border: 1px solid var(--edge); border-radius: var(--r);
  box-shadow: var(--rim), var(--depth); text-align: left; color: var(--text); overflow: hidden;
}
.mail-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 70%, transparent), transparent); }
.mc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.mc-back { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: 15px; }
.mc-back b { font-weight: 600; }
.mc-back svg { width: 20px; height: 20px; }
.mc-count { margin-left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); font: 700 11px/1 var(--font); }
.mc-tools { display: inline-flex; gap: 16px; }
.mc-tools svg { width: 19px; height: 19px; }
.mc-head { padding: 14px 16px 8px; }
.mc-subj-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.mail-subj { flex: 1; min-width: 0; font-family: var(--font); font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
.mc-label { flex: none; margin-top: 3px; padding: 2px 8px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--dim); }
.mc-from-row { display: flex; align-items: flex-start; gap: 11px; }
.mc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c, #2563EB) 80%, #fff), var(--c, #2563EB)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 12px -4px color-mix(in srgb, var(--c, #2563EB) 70%, transparent); }
.mc-av.sm { width: 34px; height: 34px; font-size: 13px; }
.mc-av.unknown { background: linear-gradient(145deg, #94A3B8, #64748B); }
.mc-av svg { width: 20px; height: 20px; }
.mc-from-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mail-who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.mail-from { font-weight: 650; font-size: 15px; text-align: left; background: none; border: 0; padding: 0; color: var(--text); }
.mail-from.tap { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.mail-addr { font-family: var(--mono); font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; font-variant-ligatures: none; font-feature-settings: "zero" 1; }
.mail-addr .lt { opacity: .6; }
.mail-addr.reply { color: var(--amber); }
.mc-to { font-size: 12.5px; color: var(--dim); display: inline-flex; gap: 4px; }
.mc-caret { font-size: 10px; opacity: .7; }
.mc-time { font-size: 12px; color: var(--dim); font-family: var(--mono); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mc-reply-to { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 8px 0 0 51px; font-size: 12.5px; color: var(--dim); }
.mc-banners { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.mc-banners:empty { display: none; }
.mc-ext { padding: 2px 8px; border-radius: 5px; font: 700 10.5px/1.6 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; background: #FFE9B8; }
[data-theme="dark"] .mc-ext, :root:not([data-theme="light"]) .mc-ext { color: #FFD27A; background: rgba(255, 178, 92, .14); box-shadow: inset 0 0 0 1px rgba(255, 178, 92, .3); }
.mc-first { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; font-size: 13px; color: var(--soft); background: color-mix(in srgb, var(--blue) 10%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 26%, transparent); }
.mc-first svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.mail-atts { padding: 4px 16px 10px; }
.mc-atts-k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.mc-atts-k svg { width: 14px; height: 14px; }
.mc-atts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.att { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); min-width: 0; max-width: 100%; box-shadow: var(--rim); }
.att-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.att-name { font-family: var(--mono); font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; font-variant-ligatures: none; }
.att small { color: var(--dim); font-size: 11px; }
.mc-doc { padding: 4px 10px 12px; }
.mc-reply { display: flex; gap: 10px; padding: 4px 14px 16px; }
.mc-rbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; color: var(--soft); }
.mc-rbtn svg { width: 16px; height: 16px; }
.mc-rbtn.fwd svg { transform: rotate(0deg); }

/* File-type icons: the true extension, colour-coded, like a real file manager. */
.fi { position: relative; flex: none; width: 26px; height: 32px; border-radius: 3px 0 3px 3px; background: var(--fc, #64748B);
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  box-shadow: inset 0 -10px 16px -10px rgba(0, 0, 0, .35); }
.fi::after { content: ""; position: absolute; top: 0; right: 0; width: 32%; height: 26%; background: rgba(255, 255, 255, .5); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.fi b { font: 800 7.5px/1 var(--mono); color: #fff; letter-spacing: .02em; }
.fi.lg { width: 40px; height: 50px; padding-bottom: 6px; }
.fi.lg b { font-size: 10px; }

/* Two-pane inbox on wide screens */
.mc-app.two { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mc-list { display: none; }
@media (min-width: 960px) {
  .mc-app.two { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .mc-list { display: block; position: sticky; top: 12px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--glass); box-shadow: var(--rim), var(--depth); overflow: hidden; }
}
.mc-list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 6px; }
.mc-list-head b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.mc-list-head span { font-size: 12px; color: var(--acc); font-weight: 600; }
.mc-search { display: flex; align-items: center; gap: 8px; margin: 6px 12px 8px; padding: 8px 12px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.mc-search svg { width: 16px; height: 16px; }
.mc-list ul { list-style: none; margin: 0; padding: 0 6px 8px; }
.mc-row { position: relative; display: flex; gap: 10px; padding: 10px; border-radius: 12px; }
.mc-row + .mc-row { margin-top: 2px; }
.mc-row-txt { flex: 1; min-width: 0; }
.mc-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.mc-row-top b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row-top span { font: 11px var(--mono); color: var(--dim); }
.mc-row-subj { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row-snip { font-size: 12px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-row.unread b, .mc-row.unread .mc-row-subj { font-weight: 700; color: var(--text); }
.mc-row.unread::before { content: ""; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.mc-row.cur { background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 3px 0 0 var(--acc); }
.mc-row.ok, .mc-row.bad { opacity: .62; }
.mc-row-res { align-self: center; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mc-row.ok .mc-row-res { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.mc-row.bad .mc-row-res { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.mc-row-res svg { width: 14px; height: 14px; stroke-width: 2.6; }

/* Browser-style status bar: the real destination of the link under the pointer/finger. */
.url-status { position: fixed; left: 12px; bottom: calc(var(--lift, 14px) + var(--safe-b)); z-index: 90; max-width: min(calc(100vw - 24px), 680px);
  display: flex; flex-direction: column; gap: 3px; padding: 7px 12px 8px; border-radius: 10px; pointer-events: none;
  background: rgba(8, 12, 26, .96); color: #DCEBFF; border: 1px solid rgba(147, 222, 255, .35);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  font: 500 13px/1.35 var(--mono); font-variant-ligatures: none; font-feature-settings: "zero" 1;
  opacity: 0; transform: translateY(8px); transition: opacity .16s, transform .2s var(--ease); }
.url-status.on { opacity: 1; transform: none; }
.us-row { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.us-lock svg { width: 14px; height: 14px; margin-top: 2px; color: #93DEFF; }
.us-url { overflow-wrap: anywhere; }
.us-scheme, .us-path { color: rgba(220, 235, 255, .62); }
.us-host { color: #fff; font-weight: 700; }
.us-says { display: flex; align-items: center; gap: 6px; font: 600 11.5px/1.3 var(--font); color: #FF9AA5; }
.us-says:empty { display: none; }
.us-says svg { width: 13px; height: 13px; }
.us-mono { font-family: var(--mono); font-weight: 500; color: #FFD0D5; }
.url-status.mismatch { border-color: rgba(255, 94, 108, .75); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
.url-status.mismatch .us-host { color: #FFB3BB; }
[data-theme="light"] .url-status { background: rgba(255, 255, 255, .98); color: #13203B; border-color: #B9CBE6; box-shadow: 0 12px 30px -12px rgba(19, 32, 59, .45); }
[data-theme="light"] .us-scheme, [data-theme="light"] .us-path { color: #556583; }
[data-theme="light"] .us-host { color: #0B1730; }
[data-theme="light"] .us-lock svg { color: #1F62E0; }
[data-theme="light"] .us-says, [data-theme="light"] .url-status.mismatch .us-host { color: #C01F33; }
[data-theme="light"] .us-mono { color: #9B1C2E; }

.mail-qr { display: flex; align-items: center; gap: 14px; margin: 0 18px 18px; padding: 12px; border-radius: 12px; border: 1px dashed #CBD5E1; color: #475569; }
.qr { width: 112px; height: 112px; border-radius: 4px; }
.qr-btn { padding: 6px !important; background: #fff !important; border-radius: 10px !important; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .3); }

.fake-link {
  position: relative; display: inline; font: inherit; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  background: none; border: 0; padding: 0 1px; cursor: pointer; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; border-radius: 4px; text-align: inherit;
}
.fake-link.peeking { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.fake-link.inert { cursor: inherit; }
.link-tip {
  position: absolute; z-index: 30; left: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 4px; min-width: 220px; max-width: min(300px, 78vw);
  padding: 10px 12px; border-radius: 12px; background: #0B1122; color: #fff; border: 1px solid #2A4A7A; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  font: 500 12.5px/1.4 var(--mono); text-align: left; text-decoration: none; white-space: normal; cursor: default;
}
.lt-row { display: flex; flex-direction: column; }
.lt-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lt-v { overflow-wrap: anywhere; color: #DCEBFF; }
.lt-v.real { color: #93DEFF; }
.lt-host { display: flex; align-items: center; gap: 6px; margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); font-weight: 700; color: #3DDC84; }
.lt-host svg { width: 14px; height: 14px; }
.link-tip.mismatch .lt-v.real, .link-tip.mismatch .lt-host { color: #FF8A96; }

/* ---------- Brand email templates (always "paper": real emails render light) ---------- */
.em-doc { --ink: #1F2937; --ink2: #4B5563; --ink3: #6B7280; --rule: #E5E7EB; --paper: #FFFFFF;
  color: var(--ink); background: var(--bbg, #F3F5F9); border-radius: 14px; padding: 14px 10px 6px; font: 400 15px/1.6 var(--font); color-scheme: light;
  -webkit-font-smoothing: auto; }
.em-doc.em-dark { --ink: #F3F4F6; --ink2: #D1D5DB; --ink3: #9CA3AF; --rule: rgba(255, 255, 255, .12); --paper: #1A1220; color-scheme: dark; -webkit-font-smoothing: antialiased; }
.em-pre { display: flex; justify-content: center; gap: 6px; font-size: 11px; color: var(--ink3); margin: -2px 0 10px; }
.em-u { text-decoration: underline; text-underline-offset: 2px; }
.em-sheet { position: relative; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 30px -14px rgba(15, 23, 42, .35); }
.em-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.em-hd-label { font: 700 10.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--b1); text-align: right; }
.em-dark .em-hd-label { color: var(--b2); }
.em-band { height: 4px; background: linear-gradient(90deg, var(--b1), var(--b2)); }
.cat-bank .em-hd, .cat-air .em-hd, .cat-hotel .em-hd, .cat-job .em-hd { background: var(--b1); border-bottom: 0; }
.cat-bank .em-hd .bw, .cat-air .em-hd .bw, .cat-hotel .em-hd .bw, .cat-job .em-hd .bw { color: #fff; }
.cat-bank .em-hd .bw b, .cat-air .em-hd .bw b, .cat-hotel .em-hd .bw b, .cat-job .em-hd .bw b { color: #fff; }
.cat-bank .em-hd .bw span, .cat-hotel .em-hd .bw span, .cat-job .em-hd .bw span { color: var(--b2); }
.cat-bank .em-hd-label, .cat-air .em-hd-label, .cat-hotel .em-hd-label, .cat-job .em-hd-label { color: rgba(255, 255, 255, .85); }
.cat-bank .em-hd .bm, .cat-air .em-hd .bm, .cat-hotel .em-hd .bm, .cat-job .em-hd .bm { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); border-radius: 9px; }
.cat-courier .em-band, .cat-shop .em-band { height: 6px; }

/* Logo lockups */
.blogo { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.blogo .bm { flex: none; border-radius: 8px; }
.bw { font-size: 18px; line-height: 1; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.bw b { font-weight: 800; color: var(--b1); }
.em-dark .bw b { color: var(--b2); }
.bw span { font-weight: 600; }
.bw-sans { font-family: var(--font); font-weight: 700; }
.bw-sans-italic { font-family: var(--font); font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.bw-display { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.bw-serif { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; }
.bw-serif b { font-weight: 400; }
.bw-serif-caps { font-family: var(--serif); font-size: 18px; letter-spacing: .16em; }
.bw-mono { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.bw-spaced { font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: .28em; }

.em-widget { padding: 16px 18px 0; }
.em-content { padding: 16px 18px 20px; color: var(--ink); font-size: 15px; line-height: 1.62; overflow-wrap: anywhere; }
.em-content p + p { margin-top: 12px; }
.em-content strong { font-weight: 700; color: var(--ink); }
.em-doc .fake-link { color: color-mix(in srgb, var(--b1) 88%, #000); text-decoration-color: color-mix(in srgb, var(--b1) 55%, transparent); }
.em-dark .fake-link { color: var(--b2); }
.em-doc .cta { display: inline-block; margin: 6px 0; padding: 12px 24px; border-radius: min(var(--bshape), 999px); background: var(--b1); color: #fff !important; text-decoration: none;
  font-weight: 650; font-size: 15px; line-height: 1.2; text-align: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), 0 6px 16px -8px var(--b1); }
.em-dark .em-doc .cta, .em-dark .cta { background: var(--b1); }
.em-doc .cta.peeking { outline: 3px solid color-mix(in srgb, var(--b1) 35%, transparent); background: color-mix(in srgb, var(--b1) 88%, #000); }
.em-doc .cta .fake-link { color: #fff; text-decoration: none; }

.em-ft { padding: 18px 20px 10px; text-align: center; color: var(--ink3); font-size: 11.5px; line-height: 1.55; }
.em-ft p + p { margin-top: 6px; }
.em-ft-top { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.em-ft-top .bm { border-radius: 6px; }
.em-ft-name { font-weight: 650; font-size: 12.5px; color: var(--ink2); }
.em-social { display: inline-flex; gap: 6px; margin-left: 8px; }
.em-social i { width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ink3) 35%, transparent); }
.em-ft-legal { color: color-mix(in srgb, var(--ink3) 85%, transparent); }

/* Widgets */
.em-k { display: block; font: 700 10px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.em-code { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-ligatures: none; }
.em-mono { font-family: var(--mono); }
.em-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 11.5px/1.4 var(--font); background: color-mix(in srgb, var(--b1) 12%, transparent); color: color-mix(in srgb, var(--b1) 85%, #000); white-space: nowrap; }
.em-dark .em-pill { color: var(--b2); background: color-mix(in srgb, var(--b2) 16%, transparent); }
.em-track, .em-invoice, .em-alert, .em-share, .em-job, .em-invite { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; background: color-mix(in srgb, var(--bbg) 45%, var(--paper)); }
.em-track-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.st-held .em-pill { background: #FFF1D6; color: #9A5B00; }
.st-out .em-pill, .st-done .em-pill { background: #DCFCE7; color: #166534; }
.em-steps { list-style: none; margin: 14px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.em-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink3); text-align: center; line-height: 1.25; }
.em-steps li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 3px; background: var(--rule); z-index: 0; }
.em-steps li:first-child::before { display: none; }
.em-steps li i { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rule); }
.em-steps li.done::before, .em-steps li.now::before { background: var(--b1); }
.em-steps li.done i { background: var(--b1); border-color: var(--b1); }
.em-steps li.now i { border-color: var(--b1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b1) 22%, transparent); animation: nowPulse 1.8s ease-in-out infinite; }
.em-steps li.now span { color: var(--ink); font-weight: 650; }
.st-held .em-steps li.now i { border-color: #F59E0B; box-shadow: 0 0 0 4px rgba(245, 158, 11, .22); }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--b1) 8%, transparent); } }
.em-inv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--rule); }
.em-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.em-table th { text-align: left; font-weight: 500; color: var(--ink3); padding: 6px 0; }
.em-table td { text-align: right; font-weight: 600; padding: 6px 0; font-variant-numeric: tabular-nums; }
.em-table tr + tr { border-top: 1px solid var(--rule); }
.em-amt { font-size: 18px; font-weight: 750 !important; color: var(--ink); }
.em-alert, .em-job { display: flex; gap: 12px; align-items: flex-start; }
.em-alert-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--b1) 12%, transparent); color: var(--b1); }
.em-dark .em-alert-ico { color: var(--b2); background: color-mix(in srgb, var(--b2) 14%, transparent); }
.em-alert-ico svg { width: 21px; height: 21px; }
.em-alert b, .em-job b, .em-share b, .em-invite b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.em-alert span, .em-job span, .em-share span, .em-invite span { font-size: 13px; color: var(--ink3); }
.em-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 13px; }
.em-dl dt { color: var(--ink3); }
.em-dl dd { margin: 0; font-weight: 600; color: var(--ink); }
.em-promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, var(--b1), color-mix(in srgb, var(--b2) 70%, var(--b1))); }
.em-promo .em-k { color: rgba(255, 255, 255, .8); }
.em-promo b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.em-promo-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.em-promo-ico svg { width: 30px; height: 30px; }
.em-promo > :not(.em-confetti) { position: relative; z-index: 1; }
.em-confetti i { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: .55; background: #FFD60A; transform: rotate(25deg); }
.em-confetti i:nth-child(3n) { background: #fff; transform: rotate(-30deg); }
.em-confetti i:nth-child(3n+1) { background: #7DF9FF; }
.em-confetti i:nth-child(1) { left: 58%; top: 12%; } .em-confetti i:nth-child(2) { left: 70%; top: 60%; } .em-confetti i:nth-child(3) { left: 82%; top: 22%; }
.em-confetti i:nth-child(4) { left: 92%; top: 70%; } .em-confetti i:nth-child(5) { left: 64%; top: 82%; } .em-confetti i:nth-child(6) { left: 76%; top: 8%; }
.em-confetti i:nth-child(7) { left: 88%; top: 42%; } .em-confetti i:nth-child(8) { left: 52%; top: 50%; } .em-confetti i:nth-child(9) { left: 96%; top: 12%; }
.em-confetti i:nth-child(10) { left: 72%; top: 36%; } .em-confetti i:nth-child(11) { left: 46%; top: 86%; } .em-confetti i:nth-child(12) { left: 84%; top: 88%; }
.em-confetti i:nth-child(13) { left: 40%; top: 6%; } .em-confetti i:nth-child(14) { left: 60%; top: 34%; }
.em-share, .em-invite { display: flex; align-items: center; gap: 14px; }
.em-cal { width: 54px; flex: none; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--rule); background: var(--paper); }
.em-cal span { display: block; background: #E5484D; color: #fff !important; font: 800 10.5px/1.8 var(--font) !important; letter-spacing: .1em; }
.em-cal b { display: block; font: 700 15px/2.1 var(--font) !important; font-variant-numeric: tabular-nums; }
.em-rsvp { margin-left: auto; display: flex; gap: 6px; }
.em-rsvp span { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 12px; color: var(--ink2); }
@media (max-width: 420px) { .em-invite { flex-wrap: wrap; } .em-rsvp { margin-left: 68px; } }

/* Plain mail from a person: no template, just the client's own text. */
.em-plain { background: transparent; padding: 0 6px 6px; color: var(--text); --ink: var(--text); --ink2: var(--soft); --ink3: var(--dim); --rule: var(--line); --paper: var(--panel2); --bbg: var(--panel2); --b1: var(--acc); --b2: var(--acc); color-scheme: inherit; }
.em-plain .em-content { padding: 6px 8px 12px; color: var(--text); }
.em-plain .fake-link { color: var(--acc); }
.em-plain .em-invite { margin: 4px 8px 6px; }

/* Scam copies: what a rushed clone looks like (difficulty 1–3 only). */
.fx3 .em-hd .bm { transform: scale(1.22, .86); filter: hue-rotate(28deg) saturate(.7); }
.fx3 .em-hd .bw { font-family: Georgia, "Times New Roman", serif !important; font-style: normal; font-weight: 700; letter-spacing: .03em; }
.fx3 .em-hd { justify-content: flex-start; }
.fx3 .em-band { filter: hue-rotate(40deg); height: 9px; }
.fx3 .em-sheet { box-shadow: none; border: 1px solid #D9DDE3; }
.fx2 .em-hd .bm { filter: hue-rotate(16deg) saturate(.85); transform: scale(.92); }
.fx2 .em-hd .bw { font-weight: 500; letter-spacing: .02em; }
.fx2 .em-band { filter: hue-rotate(18deg); }
.fx1 .em-hd .bm { transform: translateY(1.5px) scale(.95); }
.fx1 .em-hd .bw { letter-spacing: .01em; }

/* Swipe deck */
.mc-main { min-width: 0; display: flex; flex-direction: column; }
.swipe-wrap { position: relative; margin: 4px 0 10px; }
.swipe-card { position: relative; z-index: 2; touch-action: pan-y; transition: transform .35s var(--ease); outline: none; }
.swipe-card.dragging { transition: none; will-change: transform; }
.swipe-card.fly { transition: transform .32s cubic-bezier(.5, 0, .9, .4), opacity .32s; opacity: 0; }
.ghost-card { position: absolute; left: 8px; right: 8px; top: 8px; bottom: -8px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--edge); z-index: 1; opacity: .7; }
.ghost-card.g2 { left: 16px; right: 16px; top: 16px; bottom: -16px; opacity: .4; }
.stamp { position: absolute; top: 58px; z-index: 3; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; background: color-mix(in srgb, var(--panel-solid) 70%, transparent); }
.stamp.phish { right: 18px; color: var(--red); transform: rotate(12deg); box-shadow: var(--neon-red); }
.stamp.legit { left: 18px; color: var(--ok); transform: rotate(-12deg); box-shadow: var(--neon-ok); }
.swipe-hint { text-align: center; font-size: 13px; color: var(--dim); margin: 8px 0 12px; }
.swipe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 8px; padding-bottom: 96px; }
.choice { width: 100%; }

/* SMS card (Endless, quizzes) */
.sms-card { padding-bottom: 14px; }
.sms-card .ph-status { padding: 0 18px; }
.ms-head.mini { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); }
.ms-who { display: flex; flex-direction: column; min-width: 0; }
.ms-who span { font-size: 12px; color: var(--dim); }
.sms-thread { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 0; }

/* ---------- Detective Desk ---------- */
.spot {
  font: inherit; color: inherit; text-align: left; background: transparent; border: 0; padding: 1px 3px; margin: 0 -3px; border-radius: 6px;
  cursor: pointer; transition: background .2s, box-shadow .2s; box-decoration-break: clone; -webkit-box-decoration-break: clone; position: relative;
}
.rf-body .spot { display: inline; line-height: 1.7; }
.spot:hover { background: color-mix(in srgb, var(--acc) 8%, transparent); }
.spot[aria-pressed="true"] { background: color-mix(in srgb, var(--red) 18%, transparent); box-shadow: inset 0 -2px 0 var(--red); }
.spot.hit { background: color-mix(in srgb, var(--ok) 16%, transparent); box-shadow: inset 0 -2px 0 var(--ok); }
.spot.missed { background: color-mix(in srgb, var(--amber) 18%, transparent); box-shadow: inset 0 -2px 0 var(--amber); }
.spot.false { text-decoration: line-through; text-decoration-color: var(--red); opacity: .7; }
.spot[aria-disabled="true"] { cursor: default; }
.rf-label { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font: 700 11px/1.6 var(--font); background: var(--amber); color: #1A1204; vertical-align: 1px; }
.spot.hit .rf-label { background: var(--ok); color: #03140A; }
.rf-label svg { width: 12px; height: 12px; stroke-width: 2.4; }
.rf-card .mail-head .spot { margin: 0; }
.spot.subj { flex: 1; min-width: 0; display: block; margin: -2px -3px 0; padding: 2px 3px; }
.spot.subj .mail-subj { display: block; }
.rf-card .mail-who .spot { margin: 0 -3px; }
.spot.att { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 12px 7px 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); }
.em-doc .spot.cta[aria-pressed="true"] { background: var(--b1); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--red); }
.em-doc .spot.cta.hit { background: var(--b1); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ok); }
.em-doc .spot.cta.missed { background: var(--b1); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--amber); }
.em-doc .spot { color: inherit; }
.em-doc .spot:hover { background: color-mix(in srgb, var(--b1) 10%, transparent); }
.em-doc .spot[aria-pressed="true"]:not(.cta) { background: rgba(229, 72, 77, .16); box-shadow: inset 0 -2px 0 #E5484D; }
.em-doc .spot.hit:not(.cta) { background: rgba(22, 163, 74, .14); box-shadow: inset 0 -2px 0 #16A34A; }
.em-doc .spot.missed:not(.cta) { background: rgba(245, 158, 11, .18); box-shadow: inset 0 -2px 0 #D97706; }
.rf-check { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.spot.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-s); min-height: 50px; }
.spot.check svg { width: 18px; height: 18px; flex: none; }
.rf-actions { margin-top: 14px; padding-bottom: 96px; }
.rf-count { font-family: var(--mono); color: var(--acc); }

/* ---------- Vault ---------- */
.vault-q { text-align: center; margin: 8px 0 14px; }
.vault-q .q { font-size: 21px; margin-top: 6px; }
.vault-q .statement { font-size: 22px; line-height: 1.35; font-family: var(--serif); font-weight: 400; padding: 16px 6px; }
.pw-pair { display: grid; gap: 12px; padding-bottom: 96px; }
.pw-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; transition: transform .2s var(--spring), border-color .2s; }
.pw-card:hover { border-color: var(--acc); }
.pw-card:active { transform: scale(.98); }
.pw-card.picked { border-color: var(--acc); box-shadow: var(--glow); }
.pw-which { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.pw { font-family: var(--mono); font-size: 20px; overflow-wrap: anywhere; color: var(--text); }
.pw-meter { width: 100%; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width 1s var(--ease); }
.pw-card[data-score="2"] .pw-meter i { background: var(--amber); }
.pw-card[data-score="3"] .pw-meter i, .pw-card[data-score="4"] .pw-meter i { background: var(--ok); }
.pw-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--soft); }
.pw-time svg { width: 16px; height: 16px; }

.meter { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.dial { width: 96px; height: 96px; flex: none; }
.dial.big { width: 128px; height: 128px; }
.dial-track { fill: none; stroke: var(--line); stroke-width: 5; }
.dial-arc { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease), stroke .4s; }
.meter[data-score="2"] .dial-arc { stroke: var(--amber); }
.meter[data-score="3"] .dial-arc, .meter[data-score="4"] .dial-arc { stroke: var(--ok); }
.dial-ticks line { stroke: var(--line2); stroke-width: 1.4; }
.dial-hub { fill: var(--panel2); stroke: var(--line2); }
.dial-mark { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.dial-rotor { transition: transform .5s var(--spring); }
.m-txt { display: flex; flex-direction: column; min-width: 0; }
.m-label { font-size: 19px; }
.m-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.m-time, .m-online { font-weight: 650; font-size: 14.5px; }
.pass-out { display: block; margin: 12px 0 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--panel2); border: 1px dashed var(--line2); font-family: var(--mono); font-size: 16px; text-align: center; overflow-wrap: anywhere; min-height: 48px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.slot { min-width: 72px; height: 42px; border-radius: 12px; border: 1.5px dashed var(--line2); display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; font-weight: 700; }
.slot.full { border-style: solid; border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--text); }
.slot svg { width: 14px; height: 14px; opacity: .6; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 15px; transition: transform .15s var(--spring); }
.tile:active { transform: scale(.92); }
.build-opts { justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.vault-stage > .btn.block { margin-bottom: 96px; }
.lab-card .pw-input { font-family: var(--mono); flex: 1; }
.lab-card .flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Phone device (Scam Texts, Scam Call, Wi-Fi) ---------- */
.phone-dev { position: relative; width: min(100%, 400px); margin: 0 auto 96px; padding: 11px; border-radius: 50px;
  background: linear-gradient(150deg, #3A4252, #12161F 40%, #0A0D14 70%, #2A303C);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #05070B, 0 30px 70px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
[data-theme="light"] .phone-dev { background: linear-gradient(150deg, #F4F6FA, #C9D2E0 45%, #E7ECF4 75%, #B8C3D4); box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 3px #9AA6B8, 0 30px 60px -26px rgba(31, 62, 140, .45); }
.ph-screen { --ph-bg: #05070D; --ph-ink: #F4F7FB; --ph-dim: rgba(244, 247, 251, .62); --ph-line: rgba(255, 255, 255, .09); --ph-card: #141A26; --ph-them: #1E2533; --ph-me1: #3B9CFF; --ph-me2: #2F6BFF;
  position: relative; display: flex; flex-direction: column; min-height: min(720px, 76vh); border-radius: 40px; overflow: hidden; background: var(--ph-bg); color: var(--ph-ink); isolation: isolate; }
[data-theme="light"] .ph-screen { --ph-bg: #F6F8FC; --ph-ink: #101828; --ph-dim: #5B6577; --ph-line: rgba(16, 24, 40, .08); --ph-card: #FFFFFF; --ph-them: #E9EDF4; }
.ph-status { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px 0 30px; font: 650 15px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ph-ink, var(--text)); flex: none; }
.ph-notch { position: absolute; left: 50%; top: 10px; width: 104px; height: 28px; margin-left: -52px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ph-ind { display: inline-flex; align-items: center; gap: 6px; }
.ph-ind svg { height: 12px; width: auto; fill: currentColor; }
.ph-sig rect { opacity: .35; } .ph-sig rect.on { opacity: 1; }
.ph-wifi .out { opacity: 1; }
.ph-bat .shell { fill: none; stroke: currentColor; stroke-opacity: .45; stroke-width: 1.1; }
.ph-bat .nub { fill: currentColor; opacity: .45; }
.ph-home { position: absolute; left: 50%; bottom: 8px; width: 128px; height: 5px; margin-left: -64px; border-radius: 3px; background: var(--ph-ink); opacity: .55; z-index: 6; }
@media (max-width: 480px) {
  .phone-dev { padding: 0; border-radius: 30px; background: none; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--edge); }
  [data-theme="light"] .phone-dev { background: none; box-shadow: 0 20px 50px -30px rgba(31, 62, 140, .45), 0 0 0 1px var(--edge); }
  .ph-screen { border-radius: 30px; min-height: calc(100dvh - 150px); }
  .ph-notch { width: 90px; margin-left: -45px; }
}

/* Messages app */
.ms-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ms-head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 12px; border-bottom: 1px solid var(--ph-line); background: color-mix(in srgb, var(--ph-bg) 85%, var(--ph-card)); }
.ms-back { color: #3B9CFF; display: grid; }
.ms-back svg { width: 24px; height: 24px; }
.ms-head .mc-av { width: 38px; height: 38px; }
.ms-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ms-who b { font-size: 15.5px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ms-who span { font-size: 12px; color: var(--ph-dim, var(--dim)); }
.ms-tools { display: inline-flex; gap: 14px; color: #3B9CFF; }
.ms-tools svg { width: 21px; height: 21px; }
.ms-thread { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; overflow-y: auto; max-height: 56vh; scroll-behavior: smooth; }
.ms-warn { display: flex; align-items: flex-start; gap: 10px; margin: 2px 4px 10px; padding: 11px 12px; border-radius: 14px; background: var(--ph-card); border: 1px solid var(--ph-line); font-size: 12.5px; color: var(--ph-dim); }
.ms-warn > svg { width: 18px; height: 18px; flex: none; color: #F5A524; margin-top: 1px; }
.ms-warn b { display: block; font-size: 13px; color: var(--ph-ink); }
.ms-junk { margin-left: auto; align-self: center; flex: none; color: #FF5E6C; font-weight: 650; font-size: 12.5px; }
.ms-day { align-self: center; margin: 4px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--ph-dim, var(--dim)); }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; animation: msgIn .32s var(--spring) backwards; }
.bubble.them { align-self: flex-start; background: var(--ph-them, var(--panel2)); color: var(--ph-ink, var(--text)); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, var(--ph-me1, #3B9CFF), var(--ph-me2, #2F6BFF)); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 18px -10px #2F6BFF; }
.bubble .fake-link { color: inherit; font-weight: 500; }
.bubble.them .fake-link { color: #3B9CFF; }
[data-theme="light"] .bubble.them .fake-link { color: #1D64E8; }
.bubble-wrap { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.bubble-wrap.them { align-self: flex-start; }
.bubble-wrap.me { align-self: flex-end; align-items: flex-end; }
.bubble-wrap > .bubble { max-width: 100%; }
.ms-receipt { font-size: 11px; color: var(--ph-dim); padding-right: 4px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ph-dim, var(--dim)); animation: dot 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.link-preview { display: flex; flex-direction: column; width: 100%; max-width: 260px; padding: 0; border: 1px solid var(--ph-line, var(--line)); border-radius: 16px; overflow: hidden; background: var(--ph-card, var(--panel2)); color: var(--ph-ink, var(--text)); text-align: left; font: inherit; cursor: pointer; -webkit-touch-callout: none; animation: msgIn .32s .1s var(--spring) backwards; }
.link-preview.peeking { box-shadow: 0 0 0 2px #3B9CFF; }
.lp-art { position: relative; display: grid; place-items: center; height: 92px; background: linear-gradient(135deg, color-mix(in srgb, var(--c, #2563EB) 30%, #0B1020), color-mix(in srgb, var(--c, #2563EB) 10%, #0B1020)); overflow: hidden; }
[data-theme="light"] .lp-art { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #2563EB) 22%, #fff), color-mix(in srgb, var(--c, #2563EB) 8%, #fff)); }
.lp-tile { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 20px/1 var(--font); color: #fff; background: var(--c, #2563EB); box-shadow: 0 8px 20px -8px var(--c, #2563EB); }
.lp-shine { position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, .18), transparent 60%); }
.lp-txt { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px 10px; }
.lp-txt b { font-size: 13.5px; font-weight: 650; }
.lp-host { font: 500 12px/1.3 var(--mono); color: var(--ph-dim, var(--dim)); overflow-wrap: anywhere; font-variant-ligatures: none; }
.ms-note { align-self: center; font-size: 12.5px; font-style: italic; color: var(--ph-dim, var(--dim)); text-align: center; padding: 4px 10px; }
.ms-note.end { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.chat-tip { align-self: stretch; display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; animation: msgIn .3s var(--spring) backwards; }
.chat-tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.chat-tip.good { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ph-ink, var(--text)); border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent); }
.chat-tip.good svg { color: var(--ok); }
.chat-tip.bad { background: color-mix(in srgb, var(--amber) 13%, transparent); color: var(--ph-ink, var(--text)); border: 1px solid color-mix(in srgb, var(--amber) 38%, transparent); }
.chat-tip.bad svg { color: var(--amber); }
.ms-suggest { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--ph-line); }
.ms-suggest:empty { display: none; }
.ms-suggest .reply { border-radius: 18px; background: var(--ph-card); color: var(--ph-ink); border-color: color-mix(in srgb, #3B9CFF 45%, var(--ph-line)); }
.ms-suggest .reply:hover, .ms-suggest .reply:focus-visible { border-color: #3B9CFF; box-shadow: 0 0 0 1px #3B9CFF; }
.ms-compose { display: flex; align-items: center; gap: 10px; padding: 8px 12px 24px; }
.ms-plus, .ms-send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ms-plus { background: var(--ph-card); color: var(--ph-dim); }
.ms-send { background: #2F6BFF; color: #fff; opacity: .5; }
.ms-plus svg, .ms-send svg { width: 18px; height: 18px; }
.ms-field { flex: 1; height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 18px; border: 1px solid var(--ph-line); color: var(--ph-dim); font-size: 14.5px; }
.reply { min-height: 50px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--panel-solid); color: var(--text); text-align: left; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: transform .15s var(--spring), border-color .2s, box-shadow .2s; }
.reply:hover { border-color: var(--acc); }
.reply:active { transform: scale(.98); }
.reply svg { width: 18px; height: 18px; flex: none; }
.reply.hang { border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red); }

/* ---------- Call (Bank): full-screen incoming call and in-call UI ---------- */
.call-phone .ph-screen { --ph-ink: #fff; --ph-dim: rgba(255, 255, 255, .7); background: #0A0618; color: #fff; }
.call-phone .ph-status { color: #fff; }
.call-ui { position: relative; flex: 1; display: flex; flex-direction: column; padding: 8px 18px 26px; min-height: min(660px, 70vh); isolation: isolate; }
@media (max-width: 480px) { .call-ui { min-height: calc(100dvh - 196px); } }
/* Wallpaper: soft colour blobs on their own layer (no text inside the blur). */
.call-wall { position: absolute; inset: -46px -12px -12px; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--w1) 70%, #000), #07040F 75%); }
.call-wall i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .85; }
.call-wall .b1 { width: 70%; height: 46%; left: -14%; top: 4%; background: var(--w1); animation: drift1 16s ease-in-out infinite alternate; }
.call-wall .b2 { width: 64%; height: 40%; right: -18%; top: 30%; background: var(--w2); animation: drift2 19s ease-in-out infinite alternate; }
.call-wall .b3 { width: 80%; height: 44%; left: 10%; bottom: -10%; background: var(--w3); opacity: .6; animation: drift1 22s ease-in-out infinite alternate-reverse; }
.call-wall .grain { inset: 0; width: auto; height: auto; border-radius: 0; filter: none; opacity: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .7)); }
@keyframes drift1 { to { transform: translate(18%, 10%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16%, -12%) scale(.9); } }
.live .call-wall .b1, .live .call-wall .b2, .live .call-wall .b3 { opacity: .45; }

.call-top { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-top: 10px; }
.call-status { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .75); letter-spacing: .01em; }
.call-spam { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 11px; border-radius: 999px; font: 700 12px/1.4 var(--font); color: #FFD1D6; background: rgba(255, 77, 94, .22); box-shadow: inset 0 0 0 1px rgba(255, 120, 132, .5), 0 0 18px -4px rgba(255, 77, 94, .7); }
.call-spam svg { width: 13px; height: 13px; }
.call-av { position: relative; width: 120px; height: 120px; margin: 22px 0 10px; display: grid; place-items: center; }
.call-face { position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px -10px rgba(0, 0, 0, .6); }
.call-face b { font: 600 38px/1 var(--font); letter-spacing: .02em; }
.call-face svg { width: 48px; height: 48px; color: #fff; }
.call-av .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); opacity: 0; }
.incoming .ring { animation: callRing 2.4s var(--ease) infinite; }
.incoming .ring.r2 { animation-delay: .8s; }
.incoming .ring.r3 { animation-delay: 1.6s; }
@keyframes callRing { from { transform: scale(.85); opacity: .75; } to { transform: scale(1.75); opacity: 0; } }
.call-name { font-family: var(--font); font-size: 30px; font-weight: 500; letter-spacing: -.01em; color: #fff; line-height: 1.15; max-width: 14em; overflow-wrap: anywhere; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.call-num { font: 500 15px/1.4 var(--mono); color: rgba(255, 255, 255, .78); font-variant-ligatures: none; }
.call-note { margin-top: 6px; font-size: 13.5px; font-style: italic; color: #FFE2A8; max-width: 30ch; }
.call-time { font: 600 15px/1.2 var(--mono); color: #B6F5CF; min-height: 18px; font-variant-numeric: tabular-nums; }
.incoming .call-time { display: none; }

.call-incoming { margin-top: auto; display: flex; flex-direction: column; gap: 26px; padding-top: 22px; }
.call-pair { display: flex; justify-content: space-around; }
.cp { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.call-round { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; transition: transform .18s var(--spring), box-shadow .2s, opacity .2s; }
.call-round svg { width: 30px; height: 30px; stroke-width: 2; }
.call-round:active { transform: scale(.92); }
.call-round.decline, .call-round.end { background: #FF3B4E; box-shadow: 0 10px 26px -8px rgba(255, 59, 78, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.call-round.msg { background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.call-round.end[disabled] { opacity: .35; box-shadow: none; cursor: default; }
.slide-track { --p: 0; position: relative; height: 70px; border-radius: 35px; padding: 5px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.slide-track::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(48, 209, 120, .35); opacity: var(--p); }
.slide-thumb { position: relative; z-index: 2; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: #30D178; touch-action: none;
  box-shadow: 0 6px 18px -6px rgba(48, 209, 120, .9), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .3s var(--spring); animation: thumbNudge 2.6s ease-in-out infinite; }
.slide-thumb.drag { transition: none; animation: none; }
.slide-thumb svg { width: 28px; height: 28px; stroke-width: 2; }
@keyframes thumbNudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 10px 0; } 90% { translate: 0 0; } }
.slide-lbl { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 56px; font-size: 17px; font-weight: 500; letter-spacing: .01em; pointer-events: none;
  color: rgba(255, 255, 255, .55); background: linear-gradient(90deg, rgba(255, 255, 255, .5) 0%, #fff 50%, rgba(255, 255, 255, .5) 100%) -100% 0 / 50% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }

.call-live { display: none; flex: 1; flex-direction: column; gap: 10px; margin-top: 14px; }
.live .call-live { display: flex; }
.live .call-incoming { display: none; }
.live .call-av { width: 64px; height: 64px; margin: 10px 0 4px; }
.live .call-face { width: 60px; height: 60px; }
.live .call-face b { font-size: 22px; }
.live .call-face svg { width: 30px; height: 30px; }
.live .call-name { font-size: 22px; }
.call-cap-k { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.call-cap-k svg { width: 13px; height: 13px; }
.call-subs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 34vh; min-height: 90px; padding: 12px; border-radius: 18px; background: rgba(8, 6, 20, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sub { display: flex; flex-direction: column; gap: 1px; font-size: 15px; line-height: 1.45; animation: msgIn .3s var(--spring) backwards; }
.sub b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sub.them span { color: #fff; }
.sub.me { align-items: flex-end; text-align: right; }
.sub.me span { color: #BFE8FF; }
.sub-note { font-size: 12.5px; font-style: italic; color: rgba(255, 255, 255, .7); text-align: center; }
.sub-note.end { font-style: normal; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sub-note.end svg { width: 16px; height: 16px; }
.call-ui .chat-tip { color: #fff; }
.pressure { display: flex; align-items: center; gap: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.pbar { flex: 1; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 20%; background: #30D178; border-radius: inherit; transition: width .8s var(--ease), background .6s; }
.pressure[data-level="mid"] .pbar i { background: #FFB25C; }
.pressure[data-level="high"] .pbar i { background: #FF4D5E; }
.call-opts { display: flex; flex-direction: column; gap: 8px; }
.call-opts .reply { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-tap-highlight-color: transparent; }
.call-opts .reply:hover, .call-opts .reply:focus-visible { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.call-opts .reply.hang { color: #FFB3BB; border-color: rgba(255, 94, 108, .55); }
.call-ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin-top: 6px; }
.call-ctl.kp-open { display: none; }
.cc-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 0; }
.cc-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); transition: background .2s, color .2s, transform .15s var(--spring); }
.cc-ico svg { width: 25px; height: 25px; }
.cc-lbl { font-size: 12px; color: rgba(255, 255, 255, .85); }
.cc-btn[aria-pressed="true"] .cc-ico { background: #fff; color: #0A0618; }
.cc-btn:active .cc-ico { transform: scale(.92); }
.cc-btn[disabled] { opacity: .38; cursor: default; }
.call-keypad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kp-display { min-height: 30px; font: 500 24px/1.2 var(--mono); letter-spacing: .1em; color: #fff; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px 22px; }
.kp { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.kp b { font: 500 26px/1 var(--font); }
.kp:active { background: rgba(255, 255, 255, .4); }
.call-endrow { display: flex; justify-content: center; margin-top: 8px; }
.ended .call-endrow, .ended .call-ctl, .ended .call-keypad { opacity: .4; pointer-events: none; }

/* ---------- Wi-Fi (Café): phone Wi-Fi settings ---------- */
.venue { display: flex; align-items: center; gap: 14px; margin: 6px 0 8px; }
.venue h2 { font-size: 20px; }
.venue-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none; color: var(--ok);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ok) 30%, transparent), color-mix(in srgb, var(--ok) 8%, transparent)); box-shadow: var(--neon-ok); }
.venue-ico svg { width: 30px; height: 30px; }
.venue-ctx { margin-bottom: 12px; }
.venue ~ .btn, .venue ~ .callout { margin-bottom: 14px; }
.wf-phone .ph-screen { --ph-card: #161B26; }
[data-theme="light"] .wf-phone .ph-screen { --ph-bg: #F2F4F8; --ph-card: #FFFFFF; }
.wf-app { position: relative; flex: 1; display: flex; flex-direction: column; padding: 4px 14px 30px; }
.wf-head { padding: 2px 4px 8px; }
.wf-back { display: inline-flex; align-items: center; gap: 2px; color: #3B9CFF; font-size: 16px; margin-left: -6px; }
.wf-back svg { width: 22px; height: 22px; }
.wf-title { font-family: var(--font); font-size: 32px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; color: var(--ph-ink); }
.wf-group { background: var(--ph-card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--ph-line); }
.wf-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
.wf-toggle-row b { font-weight: 600; }
.toggle.wf-on { pointer-events: none; background: #30D178; }
.toggle.wf-on::after { transform: translateX(20px); }
.wf-label { display: flex; align-items: center; justify-content: space-between; padding: 18px 6px 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ph-dim); }
.wf-scan { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ph-dim) 40%, transparent); border-top-color: var(--ph-ink); animation: wfSpin 1s linear infinite; }
@keyframes wfSpin { to { transform: rotate(360deg); } }
.net-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; transition: background .25s; }
.net-row + .net-row::before { content: ""; position: absolute; left: 52px; right: 0; top: 0; height: 1px; background: var(--ph-line); }
.net { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 4px 9px 14px; border: 0; background: none; color: var(--ph-ink, var(--text)); text-align: left; transition: background .2s; }
.net:hover:not([disabled]) { background: color-mix(in srgb, #3B9CFF 9%, transparent); }
.net-info { width: 44px; height: 44px; margin-right: 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #3B9CFF; }
.net-info svg { width: 22px; height: 22px; }
.net-info:hover { background: color-mix(in srgb, #3B9CFF 12%, transparent); }
.wf-fan { width: 26px; height: 22px; }
.wf-fan path { fill: var(--ph-ink, var(--text)); opacity: .2; }
.wf-fan.l1 .a0, .wf-fan.l2 .a0, .wf-fan.l2 .a1, .wf-fan.l3 .a0, .wf-fan.l3 .a1, .wf-fan.l3 .a2, .wf-fan.l4 path { opacity: 1; }
.net-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.net-name b { font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.net-name small { font-size: 12.5px; color: var(--ph-dim, var(--dim)); }
.net-lock { width: 17px; height: 17px; color: var(--ph-dim, var(--dim)); stroke-width: 2; }
.net-lock.none { width: 17px; }
.wf-cell { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #30D178; color: #fff; }
.wf-cell svg { width: 18px; height: 18px; }
.net.none { grid-template-columns: 30px 1fr; padding-right: 14px; }
.net-note { grid-column: 1 / -1; display: block; margin: -2px 14px 12px 56px; font-size: 13.5px; line-height: 1.45; color: var(--ph-ink); }
.net-row.best { background: color-mix(in srgb, var(--ok) 14%, transparent); box-shadow: inset 3px 0 0 var(--ok); }
.net-row.twin { background: color-mix(in srgb, var(--red) 14%, transparent); box-shadow: inset 3px 0 0 var(--red); }
.net-row.twin .net-note b { color: var(--red); }
.net-row.meh { opacity: .8; }
.net-row.picked .net-name b::after { content: " ✓"; color: #3B9CFF; }
.net.none.best { background: color-mix(in srgb, var(--ok) 14%, transparent); box-shadow: inset 3px 0 0 var(--ok); }
.net.picked { box-shadow: inset 0 0 0 2px #3B9CFF; }
.net[disabled] { cursor: default; }
.wf-sheet { position: absolute; inset: 0; z-index: 8; padding: 60px 10px 10px; background: color-mix(in srgb, var(--ph-bg) 78%, transparent); }
.wf-sheet[hidden] { display: none; }
.wf-sheet-in { padding: 16px; border-radius: 22px; background: var(--ph-card); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .6), 0 0 0 1px var(--ph-line); animation: sheetIn .35s var(--ease) backwards; }
.wf-sheet-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wf-sheet-top b { flex: 1; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.wf-close { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ph-ink) 10%, transparent); color: var(--ph-ink); }
.wf-close svg { width: 18px; height: 18px; }
.wf-dl { display: grid; grid-template-columns: auto 1fr; margin: 0 0 14px; }
.wf-dl dt, .wf-dl dd { padding: 10px 0; border-top: 1px solid var(--ph-line); font-size: 14.5px; }
.wf-dl dt { color: var(--ph-dim); }
.wf-dl dd { margin: 0; text-align: right; font-weight: 600; }
.stage > .callout:last-child, .stage > .btn:last-child { margin-bottom: 96px; }

/* ---------- Oversharing (Town Square): a social post with an illustrated photo ---------- */
.os-card { position: relative; border-radius: var(--r); background: var(--glass-hi), var(--panel-solid); border: 1px solid var(--edge); overflow: hidden; box-shadow: var(--rim), var(--depth); transition: transform .5s var(--spring), box-shadow .4s; }
.os-card.posted { box-shadow: var(--rim), var(--neon); }
.os-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.os-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; position: relative;
  background: linear-gradient(145deg, #FF9A3C, #FF4F8B); box-shadow: 0 0 0 2px var(--panel-solid), 0 0 0 4px #FF4F8B; }
.os-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.os-who b { font-size: 15px; }
.os-who > span { font-size: 12.5px; color: var(--dim); }
.os-loc { display: inline-flex; align-items: center; gap: 4px; }
.os-loc svg { width: 13px; height: 13px; }
.os-draft { flex: none; }
.os-more { color: var(--dim); display: grid; }
.os-more svg { width: 20px; height: 20px; }
.os-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.os-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.os-scene text { font-weight: 600; }
.os-photo-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, .28)); }
.os-pin { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 14, 30, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 10px rgba(0, 0, 0, .4); transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.os-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(147, 222, 255, .8); animation: pinPulse 2.2s ease-out infinite; }
.os-pin i { font: 800 13px/1 var(--font); font-style: normal; color: #fff; }
.os-pin:hover, .os-pin.hl { transform: scale(1.15); }
.os-pin.on { background: #E5484D; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .4); }
.os-pin.on::after { border-color: rgba(255, 120, 130, .9); }
.os-pin.hit { background: #16A34A; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .4); }
.os-pin.missed { background: #D97706; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(217, 119, 6, .45), 0 4px 10px rgba(0, 0, 0, .4); }
.os-pin.false { background: rgba(10, 14, 30, .55); opacity: .7; }
.os-pin.fine { opacity: .5; }
.os-pin.hit::after, .os-pin.false::after, .os-pin.fine::after { display: none; }
@keyframes pinPulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.os-actions { display: flex; align-items: center; gap: 16px; padding: 10px 14px 4px; color: var(--text); }
.os-actions svg { width: 23px; height: 23px; }
.os-likes { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13.5px; font-weight: 600; }
.os-likes:empty { display: none; }
.os-heart svg { width: 16px; height: 16px; color: #FF4F8B; fill: #FF4F8B; }
.os-caption { padding: 6px 14px 12px; font-size: 15px; line-height: 1.5; }
.os-caption > b { margin-right: 2px; }
.os-num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 9px; font: 800 10.5px/1 var(--font); font-style: normal; color: #fff; background: #3B9CFF; vertical-align: 1px; }
.os-cap-spot { border-radius: 4px; padding: 0 2px; background: color-mix(in srgb, #3B9CFF 14%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.os-cap-spot.on { background: color-mix(in srgb, var(--red) 20%, transparent); box-shadow: inset 0 -2px 0 var(--red); }
.os-cap-spot.on .os-num { background: var(--red); }
.os-cap-spot.hit { background: color-mix(in srgb, var(--ok) 18%, transparent); box-shadow: inset 0 -2px 0 var(--ok); }
.os-cap-spot.missed { background: color-mix(in srgb, var(--amber) 22%, transparent); box-shadow: inset 0 -2px 0 var(--amber); }
.os-comments { padding: 0 14px 14px; font-size: 13.5px; color: var(--soft); display: flex; flex-direction: column; gap: 3px; }
.os-comments:empty { display: none; }
.os-view { color: var(--dim); }
.os-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spot.os-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px 8px 8px; min-height: 46px; border-radius: 99px; border: 1px solid var(--line2); background: var(--glass); box-shadow: var(--rim); font-size: 14px; font-weight: 600; text-align: left; }
.spot.os-chip .os-num { margin: 0; flex: none; }
.spot.os-chip[aria-pressed="true"] .os-num { background: var(--red); }
.spot.os-chip.hit .os-num { background: var(--ok); }
.spot.os-chip.missed .os-num { background: var(--amber); }
.spot.os-chip.fine { opacity: .6; }
.dossier { margin: 14px 0 96px; padding: 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); background: var(--glass-hi), var(--panel-solid); box-shadow: var(--rim), var(--depth); }
.dossier-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dossier-head svg { width: 20px; height: 20px; color: var(--red); }
.dossier-head .chip { margin-left: auto; }
.dossier ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dossier li { padding: 10px 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; animation: rise .5s var(--ease) backwards; }
.dossier li:nth-child(2) { animation-delay: .08s; } .dossier li:nth-child(3) { animation-delay: .16s; } .dossier li:nth-child(4) { animation-delay: .24s; } .dossier li:nth-child(5) { animation-delay: .32s; }
.dossier li span { color: var(--soft); }
.dossier li em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.dossier li.leaked { background: color-mix(in srgb, var(--red) 10%, transparent); }
.dossier li.leaked em { color: var(--red); }
.dossier li.kept { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.dossier li.kept em { color: var(--ok); }

/* ---------- Kids' Park ---------- */
.kids-stage { gap: 14px; }
.kid-top { display: flex; align-items: flex-end; gap: 10px; }
.guide { width: 112px; flex: none; }
.guide-art { width: 112px; height: 112px; overflow: visible; }
.guide-body { transform-origin: 0 40px; transform-box: view-box; animation: bob 3.2s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.guide.happy .guide-body { animation: hop .7s var(--spring) 2; }
.guide.oops .guide-body { animation: tilt .8s var(--ease) 1; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.04); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.kid-say { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-name { font-size: 13px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.kid-bubble { position: relative; padding: 14px 16px; border-radius: 24px 24px 24px 8px; background: var(--panel-solid); border: 2px solid var(--line2); font-size: 19px; line-height: 1.4; font-weight: 600; box-shadow: var(--shadow); }
.kid-bubble p + p { margin-top: 6px; font-weight: 500; font-size: 17px; }
.read { align-self: flex-start; }
.kid-opts { display: flex; flex-direction: column; gap: 12px; padding-bottom: 96px; }
.kid-opt {
  min-height: 72px; padding: 14px 20px; border-radius: 26px; border: 3px solid var(--line2); background: var(--panel-solid);
  font-size: 19px; font-weight: 750; text-align: left; box-shadow: 0 6px 0 var(--line2); transition: transform .15s var(--spring), box-shadow .15s;
}
.kid-opt:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line2); }
.kid-opt.right { border-color: var(--ok); box-shadow: 0 6px 0 var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--panel-solid)); }
.kid-opt.wrong { border-color: var(--amber); box-shadow: 0 6px 0 var(--amber); }
.kid-opt:disabled { cursor: default; }

/* ---------- Daily / misc ---------- */
.daily-flame svg { width: 72px; height: 72px; color: var(--amber); }
.results > svg.ico { width: 48px; height: 48px; color: var(--acc); }

/* ---------- Hall ---------- */
.hall-hero .row { align-items: center; gap: 16px; }
.hall-hero h2 { font-size: 26px; }
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.ranks .rk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; color: var(--dim); font-size: 11.5px; font-weight: 650; }
.ranks .rk.on { color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.cos-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cos { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel2); display: grid; place-items: center; color: var(--dim); }
.cos.on { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 40%, transparent); }
.cos.locked { opacity: .5; }
.cos svg.ico { width: 18px; height: 18px; }
.card .field + .field { margin-top: 14px; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bdg { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel); opacity: .5; filter: grayscale(1); }
.bdg.got { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.bdg .bi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.bdg b { font-size: 14px; }
.bdg span:last-child { font-size: 12px; color: var(--dim); line-height: 1.35; }
@media (min-width: 640px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Workshop ---------- */
.quiz-card { display: flex; flex-direction: column; gap: 10px; }
.row.two { align-items: flex-start; }
.row.two > .field { flex: 1; min-width: 0; }

/* ---------- Certificate ---------- */
.cert { position: relative; margin-top: 16px; padding: 44px 28px 32px; border-radius: 8px; background: var(--panel-solid); border: 2px solid var(--gold); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.cert-border { position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 4px; pointer-events: none; }
.cert-seal { color: var(--gold); }
.cert-brand { display: flex; flex-direction: column; align-items: center; }
.cert-brand .word { font-weight: 850; letter-spacing: .3em; font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-brand .by { font-family: var(--mono); font-size: 10px; letter-spacing: .4em; color: var(--dim); text-transform: uppercase; }
.cert-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 6vw, 40px); }
.cert-name { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 8vw, 52px); border-bottom: 1px solid var(--line2); padding: 0 24px 4px; min-width: 60%; }
.cert-body { max-width: 52ch; color: var(--soft); }
.cert-awarded { font-size: 13px; color: var(--dim); }
.cert-rank { font-weight: 850; letter-spacing: .3em; font-size: 26px; color: var(--gold); padding-left: .3em; }
.cert-foot { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin-top: 12px; font-size: 12px; color: var(--dim); font-family: var(--mono); flex-wrap: wrap; }

@media (min-width: 720px) {
  .pw-pair { grid-template-columns: 1fr 1fr; }
}
.swipe-wrap.done .ghost-card { opacity: 0; transition: opacity .3s; }

/* Post Office review: the card settles back, stamped, with its red flags marked in place. */
.swipe-card.judged { transition: transform .5s var(--spring); }
.swipe-card.judged .stamp { transition: opacity .3s .1s; transform-origin: center; animation: stampIn .45s var(--spring) backwards; }
@keyframes stampIn { from { scale: 1.5; } to { scale: 1; } }
.swipe-wrap.judged ~ .swipe-hint, .swipe-wrap.judged ~ .swipe-actions { display: none; }
.swipe-wrap.judged { margin-bottom: min(56vh, 420px); }
.swipe-wrap.judged .mail-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent), var(--shadow); }
mark.flagged { color: inherit; background: color-mix(in srgb, var(--red) 20%, transparent); box-shadow: inset 0 -2px 0 var(--red); border-radius: 4px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; animation: flagIn .7s var(--ease) backwards; }
.mail-card .flagged:not(mark):not(.flagged-p) { box-shadow: inset 0 -2px 0 var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-radius: 4px; animation: flagIn .7s var(--ease) backwards; }
.mail-card .flagged-p { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
.fnum { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 2px 0 3px; border-radius: 9px; background: var(--red); color: #fff; font: 800 10.5px/1 var(--font); vertical-align: 2px; animation: pop .45s var(--spring) backwards; box-shadow: 0 0 10px -1px var(--red); }
.chip .fnum { margin: 0; vertical-align: 0; }
@keyframes flagIn { from { background-color: transparent; box-shadow: inset 0 0 0 var(--red); } }
.swipe-card.judged .stamp { top: 54px; bottom: auto; right: 16px; left: auto; font-size: 16px; padding: 4px 11px; background: color-mix(in srgb, var(--panel-solid) 88%, transparent); }
.swipe-card.judged .stamp.legit { transform: rotate(-8deg); }
.swipe-card.judged .stamp.phish { transform: rotate(8deg); }

/* Answer micro-feedback on the judged message */
.swipe-card.judged.right .mail-card { box-shadow: var(--rim), var(--neon-ok); animation: rightGlow 1.2s var(--ease) backwards; }
.swipe-card.judged.wrong .mail-card { box-shadow: var(--rim), var(--neon-red); animation: wrongNudge .5s var(--ease) backwards; }
@keyframes rightGlow { from { box-shadow: var(--rim), 0 0 0 3px var(--ok); } }
@keyframes wrongNudge { 25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -2px 0; } }
.spot.mail-addr { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.spot.mail-from { font-weight: 650; font-size: 15px; }

/* Kids' Park answer feedback: a happy bounce or a gentle wobble. */
.kid-opt.right { animation: kidYay .7s var(--spring) backwards; box-shadow: 0 6px 0 var(--ok); }
.kid-opt.wrong { animation: kidNo .5s var(--ease) backwards; }
@keyframes kidYay { 0% { transform: scale(.94); } 50% { transform: scale(1.05) translateY(-4px); } 100% { transform: none; } }
@keyframes kidNo { 25% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.2deg); } 75% { transform: rotate(-.6deg); } }
.kid-bubble { box-shadow: var(--rim), var(--depth); }
.kid-opt { transition: transform .15s var(--spring), box-shadow .15s, border-color .2s; }
.kid-opt:hover:not(:disabled) { border-color: var(--acc); }
/* Review: the stamp sits over the mail toolbar (never on the subject); numbered flags jump to their spot. */
.swipe-card.judged .stamp { top: 10px; right: 12px; left: auto; font-size: 15px; padding: 3px 10px; }
.swipe-card.judged .stamp.legit { left: auto; right: 12px; }
.flag-jump { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; transition: transform .18s var(--spring), box-shadow .2s; }
.flag-jump:hover, .flag-jump:focus-visible { box-shadow: 0 0 0 1px var(--red); }
.flag-jump:active { transform: scale(.96); }
.flagged.pulse, .flagged-p.pulse { animation: flagPulse 1.6s var(--ease); }
@keyframes flagPulse { 0%, 100% { outline: 2px solid transparent; outline-offset: 2px; } 25%, 60% { outline: 2px solid var(--red); outline-offset: 4px; } }

/* Vault true/false: a glass card with a vault door that opens on a right answer. */
.vault-tf { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px 8px; margin-top: 4px; border-radius: var(--r-l); background: var(--glass, var(--panel)); border: 1px solid var(--edge, var(--line)); box-shadow: var(--depth, var(--shadow)); }
.vault-door { width: 132px; height: 132px; color: var(--gold); margin-bottom: 8px; overflow: visible; }
.vault-door .vd-rim { fill: color-mix(in srgb, var(--gold) 8%, var(--panel-solid)); stroke: currentColor; stroke-width: 2; }
.vault-door .vd-face { fill: color-mix(in srgb, var(--gold) 5%, var(--panel-solid)); stroke: currentColor; stroke-opacity: .45; stroke-width: 1; }
.vault-door .vd-bolts rect { fill: currentColor; opacity: .85; transition: transform .6s var(--spring); }
.vault-door .vd-ticks line { stroke: currentColor; stroke-opacity: .55; stroke-width: 1; }
.vault-door .vd-dial { animation: spin 60s linear infinite; }
.vault-door .vd-wheel { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; transition: transform 1.1s var(--spring); }
.vault-door .vd-wheel circle { fill: color-mix(in srgb, var(--gold) 18%, var(--panel-solid)); stroke-width: 2; }
.vault-door .vd-wheel .vd-wheel-rim { fill: none; }
.vault-door.open .vd-wheel { transform: rotate(150deg); }
.vault-door.open .vd-bolts rect { transform: translateY(8px); }
.vault-door.open { color: var(--ok); transition: color .6s; }
.vault-door.jam { animation: jam .5s var(--ease); color: var(--red); transition: color .4s; }
@keyframes jam { 20%, 60% { transform: rotate(-4deg); } 40%, 80% { transform: rotate(4deg); } }
.vault-tf .statement { padding-top: 6px; }
