/* DropHunter Classic — the new front end's look: classic Mac character, modern manners.
   Rules: black lines on white paper; yellow = the main action or what's selected; solid black = chosen or hot.
   Chicago names things (titles, tabs, buttons, scores); the system font is for reading and numbers.
   Everything tappable is at least 44px tall, focus is a 3px blue ring, text contrast is 4.5:1 or better. */

@font-face {
  font-family: "ChicagoFLF";
  src: url("/static/fonts/ChicagoFLF.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --panel: #f4f4f1;
  --desk: #cfd0cc;
  --rule: #d9d9d4;
  --muted: #4d4d4d;
  --faint: #6b6b6b;
  --yellow: #ffd86f;
  --yellow-hover: #ffe39a;
  --yellow-press: #f1c94a;
  --yellow-soft: #fff4cc;
  --row-hover: #fffaf0;
  --link: #1d4ed8;
  --link-dark: #1e3a8a;
  --link-soft: #eef3ff;
  --error: #a1251b;
  --error-soft: #fff1ef;
  --green: #1e7a3c;
  --green-dark: #14532d;
  --green-soft: #dcf5e3;
  --green-bar: #4bb36b;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-chicago: "ChicagoFLF", "Chicago", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.dh {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--desk);
  background-image: radial-gradient(rgba(17, 17, 17, .10) 1px, transparent 1.2px);
  background-size: 4px 4px;
  -webkit-font-smoothing: antialiased;
}

.dh a { color: var(--link); }
.dh a:hover { color: var(--link-dark); }
.dh :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.dh [hidden] { display: none !important; }

.chi { font-family: var(--font-chicago); font-weight: normal; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.help { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 13px; height: 13px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---- Page frame: rainbow stripe, top bar, folder tabs, sheet ---- */
/* The test site (new.drophunter.com) says so on every page, so it's never mistaken for the live one. */
.stage-bar { padding: 7px 16px; background: #fdb827; color: #111; border-bottom: 2px solid #111; text-align: center; font-size: 14px; line-height: 1.35; }
.stage-bar a { color: #111; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.rainbow { height: 6px; background: linear-gradient(90deg, #61bb46 0 16.66%, #fdb827 0 33.33%, #f5821f 0 50%, #e03a3e 0 66.66%, #963d97 0 83.33%, #009ddc 0); }

.topbar { background: var(--paper); border-bottom: 2px solid var(--ink); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink) !important; text-decoration: none; font-size: 20px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.brand-mark .ico { width: 18px; height: 18px; }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.toplink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.toplink:hover { background: var(--panel); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.navtabs { display: flex; gap: 6px; padding-top: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.navtabs::-webkit-scrollbar { display: none; }
/* Keep touch gestures native scrolling, without lifting links or selecting tab labels. */
.navtab { -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.navtab { flex: none; position: relative; top: 2px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: #cfcfca; color: var(--ink) !important; text-decoration: none; font-size: 15px; }
.navtab:hover { background: #e4e4e0; }
.navtab[aria-current="page"] { z-index: 2; background: var(--panel); }
.navtab[aria-current="page"]:hover { background: var(--panel); }

.sheet { position: relative; z-index: 1; margin-bottom: 56px; padding: 32px; background: var(--panel); border: 2px solid var(--ink); border-radius: 0 12px 12px 12px; box-shadow: 5px 5px 0 var(--ink); }
.sheet.no-tab { border-radius: 12px; }  /* pages that aren't a tab (Earn, Account): no tab is attached */

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.lede { margin: 8px 0 0; max-width: 660px; color: var(--muted); font-size: 16px; }

/* ---- Buttons ---- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink) !important; font-family: var(--font-chicago); font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); cursor: pointer;
}
.btn:hover { background: var(--panel); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.primary { background: var(--yellow); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); margin: 3px; }
.btn.primary:hover { background: var(--yellow-hover); }
.btn.primary:active { transform: none; background: var(--yellow-press); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--link) !important; font-family: var(--font-ui); font-weight: 600; font-size: 14px; padding: 0 10px; }
.btn.quiet:hover { background: var(--panel); color: var(--link-dark) !important; }
.btn.quiet:active { transform: none; }
.iconbtn { appearance: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink) !important; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--yellow-soft); }
.iconbtn:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---- Windows ---- */
.win { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.closebox { flex: none; width: 15px; height: 15px; border: 2px solid var(--ink); background: var(--paper); }
.stripes { flex: 1; min-width: 16px; height: 11px; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 2px); }
.wtitle { margin: 0; padding: 1px 8px 2px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.4; }

/* ---- Search ---- */
.search-area { padding: 24px 24px 20px; }
.field-label { display: block; margin-bottom: 10px; font-size: 15px; }
.search { display: flex; align-items: center; gap: 18px; }
.field { position: relative; flex: 1; min-width: 0; }
.field > .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; pointer-events: none; }
.input {
  width: 100%; height: 56px; padding: 0 16px 0 50px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 20px; font-weight: 600;
  box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .12);
}
.input::placeholder { color: var(--faint); font-weight: 400; }
.input::-webkit-search-cancel-button { cursor: pointer; }
.search-area .help { margin-top: 10px; }
.form-error { margin: 10px 0 0; color: var(--error); font-weight: 600; font-size: 14px; }
.text-input { height: 40px; min-width: 220px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .10); }
.text-input::placeholder { color: var(--faint); font-weight: 400; }

/* Options, folded to a summary line after a search */
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--rule); background: var(--panel); }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 13px; }
.opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr); border-top: 2px solid var(--ink); background: var(--paper); }
.opt { min-width: 0; margin: 0; padding: 20px 24px 24px; border: 0; }
.opt + .opt { border-left: 1px solid var(--rule); }
/* A legend normally sits on the fieldset's top edge, outside its padding; floating it puts it inside, like a heading. */
.opt-label { float: left; width: 100%; display: flex; align-items: center; margin: 0 0 14px; padding: 0; font-size: 15px; }
.opt-label + * { clear: both; }
.stepn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 13px; }
.opt .help { margin-top: 12px; }

.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.seg-item {
  appearance: none; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; border-left: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.seg-item:first-child { border-left: 0; }
.seg-item:hover { background: var(--yellow-soft); }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item:has(input:checked), .seg-item[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-item:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: -6px; }
.seg-n { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .85; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: start; min-height: 44px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.choice b { font-size: 14px; }
.choice .desc { grid-column: 2; font-size: 13px; line-height: 1.35; color: var(--ink); }
.choice .ex { grid-column: 2; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.choice:has(input:checked) { background: var(--yellow-soft); }
.ex mark, mark.hl { background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-top: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check b { display: block; font-size: 14px; }
.check.inline { align-items: center; margin: 0; font-weight: 600; font-size: 14px; }
.check.inline input { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink) !important; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.chip:has(input:checked) { background: var(--yellow-soft); }
.chip small { font-weight: 500; color: var(--muted); }
button.chip { box-shadow: 2px 2px 0 var(--ink); }
button.chip:hover { background: var(--yellow-soft); }
button.chip:active { transform: translate(2px, 2px); box-shadow: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ---- Notices ---- */
.notice { margin: 16px 0 0; font-weight: 600; }
.notice:empty { display: none; }
.notice.is-error { color: var(--error); }

/* ---- Results window ---- */
.results { margin-top: 28px; }
.reshead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; }
.reshead p { margin: 0; }
.big-word { margin-right: 4px; font-size: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Result views: four big tab buttons that can't be missed. Raised white = click me; black = the one you're on. */
.ctatabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px 20px 20px; border-top: 1px solid var(--rule); border-bottom: 2px solid var(--ink); background: var(--panel); }
.ctatab {
  appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 76px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); color: var(--ink); font: inherit; text-align: left;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: background-color .12s ease;
}
.ctatab:hover { background: var(--yellow-hover); }  /* the same colors as the Look up button */
.ctatab:active { transform: translate(4px, 4px); box-shadow: none; }
.ctatab[aria-selected="true"] { background: var(--ink); color: var(--paper); transform: translate(4px, 4px); box-shadow: none; cursor: default; }
.ctatab:focus-visible { outline-offset: 4px; }
.ctatab-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.ctatab-l { font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctatab .count { margin-left: auto; }
.ctatab-sub { font-size: 13px; color: var(--muted); }
.ctatab[aria-selected="true"] .ctatab-sub { color: #e4e4e0; }
.ctatab[aria-selected="true"] .count { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.count { flex: none; min-width: 22px; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-weight: 700; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; }
.count:empty { display: none; }

/* The short "searching" window shown before the results fade in */
.loader { margin-top: 28px; }
.loader-body { display: flex; align-items: center; gap: 22px; padding: 28px 28px 30px; }
.loader-icon { flex: none; width: 56px; height: 56px; fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.loader-hand { transform-origin: 24px 26px; animation: dh-spin 1.2s steps(12) infinite; }
.loader-text { flex: 1; min-width: 0; }
.loader-title { margin: 0 0 4px; font-size: 19px; }
.progress { height: 22px; margin-top: 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.progress span {
  display: block; height: 100%; width: 0; border-right: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--yellow) 6px 12px); background-size: 34px 34px;
  animation: dh-stripes .6s linear infinite; transition: width .35s ease;
}
.results.fade-in { animation: dh-fade-in .5s ease-out both; }
@keyframes dh-spin { to { transform: rotate(360deg); } }
@keyframes dh-stripes { to { background-position: 34px 0; } }
@keyframes dh-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabhelp { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--yellow-soft); color: var(--muted); font-size: 14px; }
.tabhelp .ico { color: var(--ink); }
.panel { padding: 20px 20px 24px; }
.panel-section { margin-top: 32px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink) !important; text-align: left; text-decoration: none; font: inherit; }
.stat-n { font-size: 30px; line-height: 1.15; }
.stat-n small { font-size: 16px; }
.stat-l { font-weight: 700; font-size: 14px; }
button.stat { appearance: none; background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
button.stat:hover { background: var(--yellow); }
button.stat:active { transform: translate(3px, 3px); box-shadow: none; }

/* ---- Admin: Word data (/admin/words) ---- */
.wd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.wd-stat { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.wd-stat b { display: block; font-size: 24px; font-weight: normal; line-height: 1.2; }
.wd-stat span { color: var(--muted); font-size: 13px; }
.wd-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.wd-search input { width: 220px; max-width: 100%; min-height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.wd-tbl tbody th { font-size: 14px; }
.wd-st { display: inline-block; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 6px; font-size: 12px; white-space: nowrap; }
.wd-rated { border-color: #1f7a3a; color: #1f7a3a; font-weight: 700; }
.wd-low, .wd-new { color: var(--muted); }
.wd-unclear { border-color: #b8860b; color: #8a6400; }
.wd-unreadable { color: var(--faint); text-decoration: line-through; }
.wd-tbl td.wd-thin { color: var(--muted); font-style: italic; }

/* ---- Tables ---- */
.tablebox { position: relative; overflow-x: auto; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tbl.wide { min-width: 900px; }
.tbl th { padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td, .tbl tbody th { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; text-align: left; }
.tbl tbody th { background: var(--paper); color: var(--ink); font-family: var(--font-chicago); font-size: 15px; font-weight: normal; letter-spacing: 0; text-transform: none; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: var(--row-hover); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tfoot td, .tbl tfoot th { padding: 11px 14px; border-top: 2px solid var(--ink); background: var(--panel); color: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tbl .idx { width: 52px; color: var(--muted); }
.tbl .is-pending td, .tbl .is-failed td { color: var(--muted); }
.sub { display: block; color: var(--muted); font-family: var(--font-ui); font-size: 12px; }
.dom { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink) !important; font-weight: 600; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.dom:hover .dn { text-decoration: underline; }
.dom .ico { color: var(--muted); }
.dn { min-width: 0; }
.dom b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.dom .wfade { opacity: .5; }  /* every other word of the name, so the words stand apart */
.ptitle { max-width: 300px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.zero { color: var(--faint); }
.cnt { appearance: none; display: inline-block; min-width: 28px; min-height: 32px; padding: 4px 2px; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; text-align: right; cursor: pointer; }
.cnt:hover { text-decoration: underline; }
.bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bar i { display: block; height: 10px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--yellow); }
.also { display: block; font-size: 12.5px; color: var(--muted); }
.also a { color: var(--muted) !important; }
.rowact { display: flex; justify-content: flex-end; gap: 8px; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }

/* ---- Badges and scores ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge .dot { display: inline-block; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; }
.badge.is-taken { background: var(--ink); color: var(--paper); }
.badge.is-https { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.badge.is-redirect { border-color: var(--link); background: var(--link-soft); color: var(--link-dark); }
.badge.is-parked { background: var(--yellow); }
.badge.is-none, .badge.is-missing { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.badge.is-error { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.badge.is-wait { border-style: dotted; border-color: var(--faint); color: var(--muted); }
.badge.is-bare { border-style: dashed; }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score-n { display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.score.hot .score-n { background: var(--ink); color: var(--paper); }
.score.warm .score-n { background: var(--yellow); }
.score.cold .score-n { background: var(--paper); }
.score.none .score-n { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.score-t { width: 44px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rel b { display: block; font-size: 14px; }
.rel span { color: var(--muted); font-size: 12.5px; }

/* Site check breakdown */
.stack { display: flex; height: 30px; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.stack span { display: block; height: 100%; border-right: 2px solid var(--ink); }
.stack span:last-child { border-right: 0; }
.s-live { background: var(--green-bar); }
.s-redirect { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 6px); }
.s-parked { background: var(--yellow); }
.s-error { background: #f3c1ba; }
.s-none { background: var(--paper); }
.s-wait { background: repeating-linear-gradient(90deg, var(--rule) 0 4px, var(--paper) 4px 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 18px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }

/* ---- Filters, list bars, pagers ---- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); }
.filters + .filters { margin-top: 12px; }
.ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctl-l { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pop { position: relative; display: inline-flex; }
.pop select { appearance: none; -webkit-appearance: none; min-width: 170px; min-height: 40px; padding: 0 36px 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.pop select:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pop .ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.filter-note { flex-basis: 100%; }
.listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 18px 0 12px; }
.listbar p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.pager:has(button:disabled + span:empty + button:disabled) { display: none; }

/* ---- Help: callouts and steps ---- */
.callout { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.callout > .ico { margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
.how { margin-top: 10px; }
.how summary { display: inline-flex; align-items: center; min-height: 36px; color: var(--link); font-weight: 700; cursor: pointer; }
.howgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.howcard { padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--panel); }
.howcard ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.howcard li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted #b9b9b4; }
.howcard li:last-child { border-bottom: 0; }
.howcard li b { font-variant-numeric: tabular-nums; }

.section { margin-top: 40px; }
.section > .h2 { margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stepcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.stepcard p { margin: 0; color: var(--muted); }
.bign { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); font-size: 22px; }

.price { width: 120px; height: 40px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .10); }
.price::placeholder { color: var(--faint); font-weight: 400; }
.golink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.golink:hover { text-decoration: underline; }

/* The PNG report, drawn off screen */
.report-frame { position: fixed; left: -10000px; top: 0; width: 1000px; padding: 32px; background: var(--desk); background-image: radial-gradient(rgba(17, 17, 17, .10) 1px, transparent 1.2px); background-size: 4px 4px; }
.report-foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 2px solid var(--ink); font-size: 13px; color: var(--muted); }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .ctatabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt + .opt { border-left: 0; border-top: 1px solid var(--rule); }
  .steps, .howgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .topbar-in { padding: 0 16px; }
  .sheet { padding: 20px 16px; }
  .h1 { font-size: 26px; }
  .panel { padding: 16px; }
  .search-area { padding: 18px 16px; }
  .search { flex-direction: column; align-items: stretch; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .filters .ctl { flex: 1 1 100%; }
  .pop, .pop select, .text-input { width: 100%; }
  .hide-sm { display: none; }
  /* Tables become stacked cards: the first cell (rank or score) on the left, the rest beside it. */
  .tbl.stack-sm { min-width: 0; }
  .tbl.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack-sm tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .tbl.stack-sm tbody tr:last-child { border-bottom: 0; }
  .tbl.stack-sm tbody td { display: block; grid-column: 2; padding: 0; border: 0; text-align: left; }
  .tbl.stack-sm tbody td:first-child { grid-column: 1; grid-row: 1 / span 7; }
  .tbl.stack-sm.single tbody tr { grid-template-columns: minmax(0, 1fr); }
  .tbl.stack-sm.single tbody td, .tbl.stack-sm.single tbody td:first-child { grid-column: 1; grid-row: auto; }
  .tbl.stack-sm tbody td.empty { grid-column: 1 / -1; }
  .tbl.stack-sm .ptitle { max-width: none; white-space: normal; }
  .tbl.stack-sm td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 12px; font-weight: 700; }
  .tbl.stack-sm .rowact { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ctatabs { gap: 10px; padding: 14px 14px 16px; }
  .ctatab { min-height: 68px; padding: 10px 12px; }
  .ctatab-l { font-size: 15px; }
  .ctatab-sub { font-size: 12px; }
  .loader-body { padding: 20px 16px 22px; gap: 14px; }
  .loader-icon { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .iconbtn:active, button.chip:active, button.stat:active, .ctatab:active { transform: none; }
  .loader-hand, .progress span { animation: none; }
  .results.fade-in { animation: none; }
}

/* ---- "Other TLDs registered": the count opens a small window listing them ---- */
.tldcount { appearance: none; min-width: 34px; min-height: 32px; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: var(--link); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.tldcount:hover { background: var(--link-soft); }
.tldpop { position: absolute; z-index: 40; width: min(380px, calc(100vw - 16px)); box-shadow: 5px 5px 0 var(--ink); }
.tldpop .closebox { padding: 0; cursor: pointer; }
.tldpop .closebox:hover { background: var(--ink); }
.tldpop-body { max-height: min(60vh, 420px); overflow-y: auto; padding: 14px 16px 16px; }
.tldlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.tldlist a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tldlist a:hover { text-decoration: underline; }
.tldlist a b { font-weight: 800; }
.tldlist .ico { color: var(--muted); }

.match-help { margin-top: 8px; }

/* ---- Dark / light switch under each domain table ---- */
.tablefoot { display: flex; justify-content: flex-end; margin-top: 14px; }
.themeswitch { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.themeswitch .track { position: relative; width: 48px; height: 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.themeswitch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); transition: left .15s ease; }
.themeswitch[aria-checked="true"] .track { background-color: #141414; background-image: conic-gradient(#262626 25%, #141414 0 50%, #262626 0 75%, #141414 0); background-size: 2px 2px; }
.themeswitch[aria-checked="true"] .knob { left: 24px; background: var(--yellow); }

/* ---- Domain tables, dark: a dense 1-pixel dither, like an old Mac desktop pattern at night ---- */
.tablebox.is-dark {
  --d-text: #ecece6; --d-muted: #b9b9b1; --d-faint: #8e8e88; --d-rule: rgba(255, 255, 255, .11); --d-line: #5f5f5a;
  border-color: var(--ink); color: var(--d-text); color-scheme: dark;
  background-color: #141414;
  background-image: conic-gradient(#2c2c2c 25%, #101010 0 50%, #2c2c2c 0 75%, #101010 0);
  background-size: 2px 2px;
}
.tablebox.is-dark .tbl th { background: #0b0b0b; color: var(--d-muted); border-bottom-color: #000; }
.tablebox.is-dark .tbl td { border-bottom-color: var(--d-rule); }
.tablebox.is-dark .tbl tbody tr:hover td { background: rgba(255, 216, 111, .09); }
.tablebox.is-dark .idx, .tablebox.is-dark .ptitle, .tablebox.is-dark .also, .tablebox.is-dark .also a, .tablebox.is-dark .rel span, .tablebox.is-dark .score-t, .tablebox.is-dark .empty { color: var(--d-muted) !important; }
.tablebox.is-dark .zero { color: var(--d-faint); }
.tablebox.is-dark .dom { color: var(--d-text) !important; }
.tablebox.is-dark .dom b { text-decoration-color: var(--yellow); }
.tablebox.is-dark .dom .ico { color: var(--d-muted); }
.tablebox.is-dark .badge { border-color: var(--d-line); background: #1b1b1b; color: var(--d-text); }
.tablebox.is-dark .badge .dot { border-color: var(--d-text); }
.tablebox.is-dark .badge.is-https { border-color: #3fbf6a; background: #10331d; color: #a6ecbd; }
.tablebox.is-dark .badge.is-redirect { border-color: #7d9cf0; background: #131f3d; color: #c3d2fa; }
.tablebox.is-dark .badge.is-parked { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.tablebox.is-dark .badge.is-none, .tablebox.is-dark .badge.is-wait, .tablebox.is-dark .badge.is-bare { border-color: var(--d-faint); background: transparent; color: var(--d-muted); }
.tablebox.is-dark .badge.is-error { border-color: #e0796e; background: #3a1512; color: #f6bdb5; }
.tablebox.is-dark .score-n { border-color: var(--d-line); }
.tablebox.is-dark .score.hot .score-n { border-color: #f5f5f0; background: #f5f5f0; color: var(--ink); }
.tablebox.is-dark .score.warm .score-n { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.tablebox.is-dark .score.cold .score-n { background: transparent; color: var(--d-text); }
.tablebox.is-dark .score.none .score-n { background: transparent; color: var(--d-muted); border-color: var(--d-faint); }
.tablebox.is-dark .iconbtn { border-color: var(--d-line); background: #1b1b1b; color: var(--d-text) !important; box-shadow: 2px 2px 0 #000; }
.tablebox.is-dark .iconbtn:hover { background: #2a2a2a; }
.tablebox.is-dark .tldcount { color: #9fb7ff; }
.tablebox.is-dark .tldcount:hover { background: rgba(159, 183, 255, .14); }
.tablebox.is-dark .golink { color: #9fb7ff; }
.tablebox.is-dark .price { border-color: var(--d-line); background: #0d0d0d; color: var(--d-text); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .5); }
.tablebox.is-dark .price::placeholder { color: var(--d-faint); }
.tablebox.is-dark .rel b { color: var(--d-text); }
.tablebox.is-dark :focus-visible { outline-color: #9fb7ff; }
@media (max-width: 640px) {
  .tablebox.is-dark .tbl.stack-sm tbody tr { border-bottom-color: var(--d-rule); }
  .tablebox.is-dark .tbl.stack-sm td[data-label]::before { color: var(--d-muted); }
  .tldlist { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== New site additions ===================== */

/* Sections not moved over yet: greyed out, not links, can't be visited. */
.navtab.is-off { gap: 6px; background: #d6d6d2; border-color: #8a8a86; color: #555 !important; cursor: not-allowed; }
.navtab.is-off:hover { background: #d6d6d2; }
.soon { padding: 2px 6px; border: 1.5px solid #8a8a86; border-radius: 999px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* Top bar: account */
.inline-form { display: inline; margin: 0; }
.toplink.is-static:hover { background: none; }
/* The Founders Pass badge in the top bar: an old-school marquee. A black pill whose rainbow border (the six classic
   stripes, like the top of the page) scrolls; the name in gold with a stepped shine sweeping across; a pixel star that
   twinkles; and a FOUNDER tag that flickers like an old sign. Still with reduced motion. */
.toplink.founder-badge { gap: 7px; min-height: 36px; margin: 4px 0; padding: 0 12px 0 9px; border: 3px solid transparent; border-radius: 999px;
  background: linear-gradient(#141008, #141008) padding-box,
              repeating-linear-gradient(90deg, #61bb46 0 18px, #fdb827 18px 36px, #f5821f 36px 54px, #e03a3e 54px 72px, #963d97 72px 90px, #009ddc 90px 108px) border-box;
  background-size: auto, 108px 100%; animation: fb-rainbow 2.4s linear infinite; box-shadow: 2px 2px 0 var(--ink); }
.toplink.founder-badge:hover { background: linear-gradient(#000, #000) padding-box,
  repeating-linear-gradient(90deg, #61bb46 0 18px, #fdb827 18px 36px, #f5821f 36px 54px, #e03a3e 54px 72px, #963d97 72px 90px, #009ddc 90px 108px) border-box;
  background-size: auto, 108px 100%; }
.fb-star { display: inline-flex; width: 18px; height: 18px; }
.fb-star svg { width: 18px; height: 18px; fill: #ffd76a; filter: drop-shadow(0 0 3px rgba(255, 215, 106, .8)); animation: fb-twinkle 1.6s steps(1) infinite; }
.fb-name { font-size: 15px; line-height: 1; color: #ffd76a; background: linear-gradient(100deg, #a8740a 0%, #ffd76a 35%, #fffbe6 50%, #ffd76a 65%, #a8740a 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fb-shine 3s steps(30) infinite; }
.fb-tag { padding: 3px 6px 2px; border-radius: 4px; background: #ffd76a; color: #141008; font-size: 10.5px; line-height: 1; letter-spacing: .08em;
  text-transform: uppercase; animation: fb-flicker 4s steps(1) infinite; }
@keyframes fb-rainbow { to { background-position: 0 0, 108px 0; } }
@keyframes fb-shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes fb-twinkle { 0% { transform: scale(1); opacity: 1; } 25% { transform: scale(.8); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; }
  75% { transform: scale(.9) rotate(45deg); opacity: .9; } }
@keyframes fb-flicker { 0%, 88%, 100% { background: #ffd76a; } 90% { background: #fff4b8; } 92% { background: #c99a1a; } 94% { background: #fff4b8; } }
/* The founders' thank-you on the account page: the founder badge, grown up. Black and gold inside a scrolling
   six-stripe rainbow border, the name shining, pixel stars twinkling around it. Still with reduced motion. */
.founder-hero { position: relative; overflow: hidden; margin: 0 0 24px; padding: 26px 28px 22px; border: 5px solid transparent; border-radius: 14px;
  background: radial-gradient(ellipse at 20% 0%, #2b2213 0%, #141008 55%, #0b0905 100%) padding-box,
              repeating-linear-gradient(90deg, #61bb46 0 24px, #fdb827 24px 48px, #f5821f 48px 72px, #e03a3e 72px 96px, #963d97 96px 120px, #009ddc 120px 144px) border-box;
  background-size: auto, 144px 100%; animation: fh-rainbow 3s linear infinite; box-shadow: 5px 5px 0 var(--ink); color: #f4e6bf; }
.founder-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.fh-body { position: relative; z-index: 1; max-width: 880px; }
.fh-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: #c9a85a; letter-spacing: .04em; }
.fh-tag { padding: 4px 8px 3px; border-radius: 4px; background: #ffd76a; color: #141008; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  animation: fb-flicker 4s steps(1) infinite; }
.fh-title { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; color: #fff3c4; }
.fh-name { color: #ffd76a; background: linear-gradient(100deg, #a8740a 0%, #ffd76a 35%, #fffbe6 50%, #ffd76a 65%, #a8740a 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: fb-shine 3s steps(30) infinite; }
.fh-lede { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.fh-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
.fh-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.fh-perks li > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: #ffd76a; filter: drop-shadow(0 0 3px rgba(255, 215, 106, .6)); }
.fh-perks b { color: #ffd76a; }
.fh-perks a { color: #9fd3ff; }
.fh-foot { margin: 0; padding-top: 12px; border-top: 1px dashed rgba(255, 215, 106, .35); font-size: 14px; color: #c9b88e; }
.fh-sign { margin-left: 8px; color: #ffd76a; font-size: 16px; }
.fh-twinkle { position: absolute; z-index: 1; width: 14px; height: 14px; animation: fb-twinkle 2.2s steps(1) infinite; }
.fh-twinkle svg { width: 100%; height: 100%; fill: #ffd76a; filter: drop-shadow(0 0 4px rgba(255, 215, 106, .9)); }
.fh-twinkle.t1 { top: 16px; right: 34px; width: 20px; height: 20px; }
.fh-twinkle.t2 { top: 58px; right: 96px; animation-delay: .6s; }
.fh-twinkle.t3 { bottom: 26px; right: 44px; width: 12px; height: 12px; animation-delay: 1.1s; }
.fh-twinkle.t4 { top: 22px; right: 160px; width: 10px; height: 10px; animation-delay: 1.6s; }
.fh-twinkle.t5 { bottom: 64px; right: 150px; width: 9px; height: 9px; animation-delay: .3s; }
.fh-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(255, 215, 106, .35);
  border-radius: 10px; background: rgba(255, 215, 106, .06); }
.fh-ask p { flex: 1 1 340px; margin: 0; font-size: 14.5px; line-height: 1.5; }
.fh-ask b { color: #ffd76a; }
.btn.fh-ask-btn { background: #ffd76a; color: #141008 !important; border-color: #ffd76a; box-shadow: 3px 3px 0 #000; }
.btn.fh-ask-btn:hover { background: #fff3c4; }
.msg-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); }
.msg-dialog::backdrop { background: rgba(17, 17, 17, .45); }
.xr-leave-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.xr-leave-row .xr-leave { flex: 1 1 300px; margin: 0; }
#xrCancelDialog .msg-q { margin: 0; font-size: 17px; }
.msg-body { display: grid; gap: 10px; padding: 18px; }
.msg-q { font-weight: 700; }
.msg-body textarea { width: 100%; min-height: 140px; resize: vertical; font: inherit; line-height: 1.5; }
.msg-body .help, .msg-body .notice { margin: 0; }
.msg-body .help b { color: var(--ink); }
.msg-done { display: grid; justify-items: center; gap: 10px; padding: 22px 18px 18px; text-align: center; }
.msg-done[hidden] { display: none; }
.msg-done p { margin: 0; line-height: 1.5; }
.msg-check { display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 50%; background: #9be7a8; box-shadow: 3px 3px 0 var(--ink); font-size: 28px; font-weight: 800; animation: msg-pop .35s ease-out; }
.msg-done-title { font-size: 22px; }
.msg-copy { justify-self: stretch; max-height: 120px; overflow: auto; margin: 4px 0 0; padding: 10px 12px; border: 2px dashed var(--ink); border-radius: 8px; color: var(--muted, #555); font-size: 14px; line-height: 1.5; text-align: left; white-space: pre-wrap; }
.msg-done .actions { justify-content: center; }
@keyframes msg-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg-check { animation: none; } }
@keyframes fh-rainbow { to { background-position: 0 0, 144px 0; } }
@media (max-width: 640px) { .founder-hero { padding: 20px 18px 18px; } .fh-twinkle.t2, .fh-twinkle.t4, .fh-twinkle.t5 { display: none; } }
@media (prefers-reduced-motion: reduce) { .founder-hero, .fh-tag, .fh-name, .fh-twinkle { animation: none; } .fh-name { background-position: 50% 0; } }
.badge.founder-chip { background: #141008; color: #ffd76a; border-color: #141008; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .toplink.founder-badge, .fb-star svg, .fb-name, .fb-tag { animation: none; }
  .fb-name { background-position: 50% 0; }
}
.topbar .btn.sm { min-height: 38px; }
.topbar .btn.primary { margin: 3px 3px 3px 6px; }

/* Log in, sign up */
.authwin { max-width: 520px; margin: 4px auto 24px; }
.authform { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.authform .lede { margin: 0; }
.authfield { display: flex; flex-direction: column; gap: 6px; }
.authfield > .chi { font-size: 15px; }
.authfield .text-input { width: 100%; height: 48px; font-size: 16px; }
.authform .btn.big { align-self: flex-start; }
.authswitch { margin: 0; font-size: 14px; }

/* The blurred "log in to see more" section for logged-out visitors. The rows are made up, not real results. */
.locked { position: relative; min-height: 340px; overflow: hidden; border-top: 1px solid var(--rule); }
.locked-rows { padding: 4px 0; filter: blur(5px); opacity: .85; user-select: none; pointer-events: none; }
.fake-row { display: grid; grid-template-columns: 52px minmax(0, 240px) 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.fake-row.cols-3 { grid-template-columns: 70px minmax(0, 240px) 140px minmax(0, 1fr); }
.fake-idx { color: var(--muted); font-weight: 500; text-align: right; }
.fake-pill { height: 22px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .6; }
.fake-text { height: 10px; border-radius: 4px; background: currentColor; opacity: .25; }
.locked-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(470px, calc(100% - 24px));
  padding: 22px 22px 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink); text-align: center;
}
.locked-card .ico.lock { width: 30px; height: 30px; }
.locked-card .help { color: var(--muted) !important; }
.locked-title { margin: 6px 0 6px; font-size: 20px; line-height: 1.2; }
.locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.locked-free { margin-top: 10px; }
.tablebox.is-dark .locked { border-top-color: var(--d-rule); }
.tablebox.is-dark .fake-row { border-bottom-color: var(--d-rule); color: var(--d-text); }
.tablebox.is-dark .fake-idx { color: var(--d-muted); }
#investorsLocked .locked { border-top: 0; }
@media (max-width: 640px) {
  .fake-row, .fake-row.cols-3 { grid-template-columns: 34px minmax(0, 1fr) 70px; }
  .fake-text { display: none; }
  .locked { min-height: 380px; }
  .authform { padding: 18px 16px; }
  .authform .btn.big { align-self: stretch; padding: 0 16px; }
  .topbar .btn.primary { margin-left: 2px; }
}

/* ---- Account page and notification words ---- */
.acct-flash { margin: 0 0 18px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--green-soft); font-weight: 600; }
.acct-flash.is-error { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.acct-win { margin-bottom: 24px; }
.acct-body { padding: 22px 24px; }
.acct-intro { display: flex; align-items: flex-start; gap: 10px; max-width: 720px; margin: 0 0 18px; color: var(--muted); }
.acct-intro .ico { flex: none; margin-top: 2px; color: var(--ink); }
.acct-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow-soft); }
.acct-callout p { margin: 0; }
.acct-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
.acct-add { margin: 0 0 26px; }
.acct-add-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.acct-add-row .text-input { flex: 1; min-width: 0; max-width: 360px; }
.acct-list { margin: 0; padding: 0; list-style: none; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.acct-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.acct-list li:last-child { border-bottom: 0; }
.acct-word { font-size: 16px; }
.acct-added { margin-right: auto; }
.acct-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.acct-facts dt { color: var(--muted); font-weight: 600; }
.acct-facts dd { margin: 0; }
.btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green-dark) !important; }
.notify-note { margin: 0 20px 16px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--yellow-soft); font-size: 14px; font-weight: 600; }
.notify-note.is-error { border-color: var(--error); background: var(--error-soft); color: var(--error); }
@media (max-width: 640px) {
  .acct-body { padding: 18px 16px; }
  .acct-add-row .text-input { max-width: none; }
  .acct-facts { grid-template-columns: 1fr; gap: 2px; }
  .acct-facts dd { margin-bottom: 10px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Word Lookup sub-tabs ---- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px; }
.subtabs .subtab { white-space: nowrap; }
.subtab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.subtab:hover { background: var(--yellow-soft); }
.subtab[aria-current="page"] { background: var(--ink); color: var(--paper) !important; }

/* ---- New registrations ---- */
:root { --series-new: #2a78d6; --series-dropped: #eb6834; --chart-grid: #e7e7e2; --chart-axis: #b9b9b2; }
.ins-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; }
.ins-daypick { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; max-width: 380px; }
.ins-day { flex: 1; min-width: 0; }
.ins-day select { width: 100%; min-width: 0; }
.ins-tile .stat-n { font-size: clamp(20px, 4.2vw, 30px); overflow-wrap: anywhere; }
.ins-body { transition: opacity .15s; }
.ins-body.is-loading { opacity: .55; }
.ins-win { margin-top: 20px; }
.ins-pad { padding: 18px 20px; }
.ins-top0 { padding-top: 0; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ins-grid.side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ins-grid > * { min-width: 0; }
.ins-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ins-tile { display: flex; flex-direction: column; gap: 4px; }
.ins-legend { display: flex; gap: 16px; margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ins-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.key.new { background: var(--series-new); }
.key.dropped { background: var(--series-dropped); }
.key.line { width: 14px; height: 2px; border-radius: 1px; }
.hbars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: minmax(64px, 118px) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 28px; }
.hbars.ranked li { grid-template-columns: 28px minmax(60px, 110px) minmax(0, 1fr); }
.hbars.pairs { gap: 10px; }
.hb-rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.hb-label { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; text-align: left; }
.hb-label.is-link { appearance: none; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hb-label .sub { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Old-school bars: solid fill, ink outline, hard shadow, like the site's buttons and windows. */
.hbars { --reserve: 70px; }
.hbars.badged { --reserve: 118px; }
.hb-bar { flex: none; width: calc((100% - var(--reserve)) * var(--p)); min-width: 6px; height: 20px; border: 2px solid var(--ink); background: var(--series-new); box-shadow: 3px 3px 0 var(--ink); }
.hb-bar.dropped { background: var(--series-dropped); }
.hb-pair .hb-bar { height: 16px; box-shadow: 2px 2px 0 var(--ink); }
.hb-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-badge { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hb-pair { display: grid; gap: 5px; }
.ins-chart { width: 100%; overflow: hidden; }
.ins-svg { display: block; }
.ins-svg .grid { stroke: var(--chart-grid); stroke-width: 1; }
.ins-svg .axis { stroke: var(--ink); stroke-width: 2; }
.ins-svg .shadow { fill: var(--ink); }
.ins-svg .col { stroke: var(--ink); stroke-width: 2; }
.ins-svg .tick { fill: var(--muted); font-family: var(--font-ui); font-size: 11px; }
.ins-svg .tick.on { fill: var(--ink); font-weight: 700; }
.ins-svg .col.new { fill: var(--series-new); }
.ins-svg .col.dropped { fill: var(--series-dropped); }
.ins-svg .sel { fill: var(--yellow-soft); }
.ins-svg .hit { fill: transparent; cursor: pointer; outline: none; }
.ins-svg .hit:focus-visible { stroke: var(--ink); stroke-width: 2; }
.ins-tip { position: fixed; z-index: 50; min-width: 130px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font-size: 13px; pointer-events: none; }
.tip-title { margin-bottom: 4px; color: var(--muted); font-weight: 600; }
.tip-row { display: flex; align-items: center; gap: 8px; }
.tip-row b { font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--muted); }
.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink) !important; font-size: 13px; text-decoration: none; }
a.ins-chip:hover { background: var(--yellow-soft); }
.ins-chip small { margin-left: 4px; color: var(--muted); font-size: 11.5px; }
.ins-more { align-self: center; }
.ins-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 18px; }
.ins-controls.small { margin-bottom: 10px; }
.ins-controls.small .pop select { min-width: 110px; min-height: 36px; }
.ins-scroll { max-height: 470px; overflow-y: auto; padding: 12px 12px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .08); scrollbar-color: var(--ink) var(--panel); }
.ins-scroll.short { max-height: 520px; padding: 0; overflow-x: auto; }
.ins-scroll.ins-chips { align-content: flex-start; }
.ins-rows .ins-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 4px; border-bottom: 1px solid var(--rule); }
.ins-rows .ins-row:last-child { border-bottom: 0; }
.ins-row b { overflow-wrap: anywhere; font-size: 15px; }
.ins-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.ins-tags .tag { min-height: 22px; padding: 0 8px; font-size: 12px; }
.ins-gap { margin-top: 24px; }
.panel-head .ins-intro { margin: 0; }
.ins-foot { margin-top: 8px; }
.ins-sub { margin: 0 0 10px; }
.ins-intro { max-width: 760px; margin: 0 0 12px; }
.ins-tbl { min-width: 0; }
.ins-tbl th[scope="row"] { font-family: var(--font-ui); font-size: 14px; }
.ins-wordform { margin-bottom: 16px; }
.ins-wordhead { margin-top: 18px; }
@media (max-width: 560px) {
  .subtab { min-height: 34px; padding: 0 11px; font-size: 13px; }
  .hbars li { grid-template-columns: minmax(52px, 84px) minmax(0, 1fr); gap: 8px; }
  .hbars.ranked li { grid-template-columns: 22px minmax(52px, 84px) minmax(0, 1fr); }
  .hbars.badged { --reserve: 104px; }
  .ins-scroll { padding: 10px 8px 12px; }
  .ins-daypick { max-width: none; flex-basis: 100%; }
}
@media (max-width: 900px) {
  .ins-grid, .ins-grid.side { grid-template-columns: 1fr; }
  .ins-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-kind { margin-left: 0; }
  .ins-pad { padding: 16px; }
}

/* ---- Points: top-bar note, leaderboard column, avatars, Earn page ---- */
.access-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink) !important; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.access-chip.is-full { background: var(--green-soft); }
.access-chip:hover { background: var(--yellow-soft); }
.access-chip .pts { font-variant-numeric: tabular-nums; }
.board-open { appearance: none; border: 0; background: none; font: inherit; cursor: pointer; }
.board { width: min(440px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; color: var(--ink); }
.board[open] { display: flex; flex-direction: column; }
.board::backdrop { background: rgba(17, 17, 17, .45); }
.board .titlebar .closebox { padding: 0; cursor: pointer; }
.board-tabs { display: flex; margin: 10px 10px 4px; }
.board-tabs .seg-item { flex: 1; justify-content: center; min-height: 32px; font-size: 12px; }
.board-list { flex: 1; min-height: 0; margin: 0; padding: 4px 8px 8px; overflow-y: auto; list-style: none; }
.board-row { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.board-row:last-child { border-bottom: 0; }
.board-row.is-me { border-radius: 6px; background: var(--yellow-soft); }
.board-row:nth-child(-n+3) .board-rank { color: var(--ink); font-weight: 700; }
.board-rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.board-av { display: block; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); image-rendering: pixelated; }
.board-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.board-you { padding: 0 5px; border: 1px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.board-pts { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board-empty { padding: 14px 6px; color: var(--muted); font-size: 13px; }
.board-foot { display: grid; gap: 8px; padding: 10px 12px; border-top: 2px solid var(--ink); font-size: 13px; font-weight: 600; }
.board-me { display: flex; align-items: center; gap: 8px; }
.board-me a { margin-left: auto; }
.profile-form { display: grid; gap: 14px; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.avatar-pick legend { margin-bottom: 8px; font-size: 14px; }
.avatar-opt { position: relative; cursor: pointer; }
.avatar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-opt img { display: block; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); image-rendering: pixelated; }
.avatar-opt:hover img { box-shadow: 2px 2px 0 var(--ink); }
.avatar-opt input:checked + img { outline: 3px solid var(--link); outline-offset: 2px; box-shadow: 3px 3px 0 var(--ink); }
.avatar-opt input:focus-visible + img { outline: 3px solid var(--link); outline-offset: 2px; }
/* Founders Pass avatars: shown to everyone, chosen only by founders */
.avatar-premium { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.avatar-premium .avatar-opt img { image-rendering: auto; background: #0c0a06; }
.avatar-premium.is-locked .avatar-opt { cursor: not-allowed; }
.avatar-premium.is-locked .avatar-opt img { opacity: .92; }  /* in full color and moving: they're the pitch */
.avatar-lock { position: absolute; right: -5px; bottom: -5px; padding: 1px 2px; border-radius: 4px; background: var(--paper); font-size: 12px; line-height: 1; box-shadow: 0 0 0 1.5px var(--ink); }
.founder-pitch { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: #141008; color: #fff3c4; box-shadow: 3px 3px 0 var(--ink); }
.founder-pitch p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; }
.founder-pitch b { color: #ffd76a; }
.founder-pitch .btn.primary { background: #ffd76a; }
.pass-avatars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pass-avatars img { display: block; width: 34px; height: 34px; border-radius: 4px; }
.earn-tiles { margin-bottom: 10px; }
.earn-link-row { display: flex; align-items: center; gap: 10px; }
.earn-link-row .text-input { flex: 1; min-width: 0; font-family: Menlo, Consolas, monospace; font-size: 14px; }
.earn-kits { margin-top: 20px; }
.earn-kits .actions { margin-top: 10px; }
.text-input.earn-text { width: 100%; height: auto; margin-top: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; line-height: 1.45; resize: vertical; }
.earn-tbl { min-width: 0; }
.earn-tbl td { vertical-align: top; }
tr.is-later td, .is-later { color: var(--faint); }
.earn-pass { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--faint); border-radius: 10px; }
.admin-adjust { flex-wrap: wrap; }
.admin-adjust .text-input { flex: 1 1 160px; min-width: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) {
  .earn-link-row { flex-direction: column; align-items: stretch; }
  .access-chip { padding: 0 9px; }
}

/* ---- Share cards ---- */
.ins-share { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
/* Daily take: a post-ready paragraph about the day, with a Copy button (adds the member's link) */
/* Cyra, DropHunter's AI: a sparkle mark beside her takes */
.cyra-title { display: inline-flex; align-items: center; gap: 6px; }
.cyra-title .ico { fill: currentColor; stroke-width: 1; }
.cyra { display: flex; gap: 16px; align-items: flex-start; }
.cyra-mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.cyra-mark .ico { width: 26px; height: 26px; fill: var(--ink); stroke-width: 1; }
.cyra-body { flex: 1; min-width: 0; }
.cyra-name { margin: 0 0 10px; font-size: 16px; }
.take-tabs { margin: 0 0 14px; }
.take-tabs .seg-item { font: inherit; font-weight: 700; cursor: pointer; border-top: 0; border-bottom: 0; border-right: 0; }
.take-text { margin: 0; font-size: 19px; line-height: 1.5; }
.take-text.is-wait { color: var(--muted); font-size: 16px; }
/* Cyra "typing" for a moment before her take appears (the takes are already written; this is only a pause) */
.cyra-typing { display: inline-flex; gap: 6px; align-items: center; height: 28px; }
.cyra-typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: cyra-dot 1s infinite ease-in-out; }
.cyra-typing i:nth-child(2) { animation-delay: .15s; }
.cyra-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cyra-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .cyra-typing i { animation: none; opacity: .6; } }
.take-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.take-with { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cyra { gap: 12px; } .cyra-mark { width: 36px; height: 36px; } .cyra-mark .ico { width: 21px; height: 21px; } }
/* Cyra's screen: an old green-phosphor terminal inside the window (matrix rain behind, scanlines over, glowing text) */
.cyra-term { --phos: #39ff6e; --phos-dim: rgba(57, 255, 110, .7); --phos-glow: rgba(57, 255, 110, .45); position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #04160a 0%, #010703 100%); color: var(--phos);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }
.cyra-term::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px); }
.cyra-term > :not(.cyra-rain) { position: relative; z-index: 1; }
.cyra-rain { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .2; }
.cyra-term .cyra-mark { background: #000; border-color: var(--phos); border-radius: 6px; box-shadow: 0 0 12px var(--phos-glow); }
.cyra-term .cyra-mark .ico { fill: var(--phos); filter: drop-shadow(0 0 4px var(--phos-glow)); }
.cyra-term .cyra-name { font-size: 14px; color: var(--phos-dim); }
.cyra-prompt { color: #b6ffcc; }
.cyra-term .take-text { min-height: 3.1em; color: #6bff95; font-size: 18px; line-height: 1.55; text-shadow: 0 0 5px var(--phos-glow), 0 0 14px rgba(57, 255, 110, .2); }
.cyra-term .take-text::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.15em;
  background: var(--phos); box-shadow: 0 0 6px var(--phos-glow); animation: cyra-blink 1s steps(1) infinite; }
@keyframes cyra-blink { 50% { opacity: 0; } }
.cyra-term .take-text.is-wait { color: var(--phos-dim); font-size: 15px; }
.cyra-term .seg { background: transparent; border: 1.5px solid var(--phos); border-radius: 4px; box-shadow: 0 0 8px rgba(57, 255, 110, .25); }
.cyra-term .seg-item { color: var(--phos); background: transparent; border-left: 1px solid rgba(57, 255, 110, .4); font-family: inherit;
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.cyra-term .seg-item:hover { background: rgba(57, 255, 110, .14); }
.cyra-term .seg-item[aria-pressed="true"] { background: var(--phos); color: #021006; }
.cyra-term .take-foot { border-top: 1px dashed rgba(57, 255, 110, .35); }
.cyra-term .take-with { color: var(--phos-dim); font-family: inherit; }
.cyra-term .btn, .cyra-term .btn.primary { background: transparent; color: var(--phos) !important; border-color: var(--phos); box-shadow: 0 0 8px rgba(57, 255, 110, .35);
  font-family: inherit; text-transform: uppercase; letter-spacing: .06em; }
.cyra-term .btn:hover:not(:disabled) { background: var(--phos); color: #021006 !important; }
.cyra-term .btn:disabled { opacity: .45; }
.cyra-term .btn .ico { stroke: currentColor; }
@media (prefers-reduced-motion: reduce) { .cyra-term .take-text::after { animation: none; } .cyra-rain { display: none; } }
.ins-share-btn { align-self: flex-end; margin-left: auto; }
.share-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; color: var(--ink); }
.share-dialog::backdrop { background: rgba(17, 17, 17, .45); }
.share-dialog .titlebar .closebox { cursor: pointer; padding: 0; }
.share-body { display: grid; gap: 12px; padding: 18px 20px 20px; }
.share-img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 8px; }
.share-cyra-help { margin: 0 0 8px; }
.share-cyra { margin: 0 0 10px; }
.share-cyra .seg-item { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border-top: 0; border-bottom: 0; border-right: 0; }
.share-kits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.share-kits .actions { margin-top: 8px; }
.share-wait { margin: 20px 0; font-weight: 600; text-align: center; }
.earn-card-btns { margin: 12px 0 8px; }
.earn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.earn-card { display: grid; gap: 6px; color: var(--ink) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.earn-card img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.earn-card:hover img { box-shadow: 5px 5px 0 var(--ink); }
@media (max-width: 640px) { .share-kits { grid-template-columns: 1fr; } }
.invite-link { width: 100%; min-width: 260px; font-family: Menlo, Consolas, monospace; font-size: 12px; }

/* ---- The subscribe form (shared by the home page, card pages and the coming-soon page) ---- */
.announce-form { display: flex; align-items: center; gap: 16px; width: min(520px, 100%); }
.announce-form .input { flex: 1; min-width: 0; padding-left: 16px; font-size: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.thankyou { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow-soft); font-weight: 700; }
.thankyou img { width: 28px; height: 28px; image-rendering: pixelated; }

/* ---- Home page for visitors ---- */
.land-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 36px; margin-bottom: 44px; }
.land-kicker { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.land-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; }
.land-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.land-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.land-shot { margin: 0; }
/* The home page's free lookup (static/try.js) */
.land-hero:has(.land-try) { align-items: start; }
@media (min-width: 901px) { .land-hero:has(.land-try) .land-copy { position: sticky; top: 24px; } }
.land-try { box-shadow: 6px 6px 0 var(--ink); }
.try-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px 20px; }
.try-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.try-q { font-size: 18px; line-height: 1.3; }
.try-row { display: flex; gap: 10px; }
.try-row .text-input { flex: 1; width: 100%; min-width: 0; font-size: 17px; }
.try-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.try-idea { padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.try-idea:hover { background: var(--yellow-soft); }
.try-out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 150px; }
.try-out > * { margin: 0; }
.try-promise { display: grid; gap: 8px; padding: 14px 16px 14px 34px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--yellow-soft); font-size: 15px; line-height: 1.45; }
.try-free { text-align: center; }
.try-status { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.try-spin { width: 14px; height: 14px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; flex: none; animation: dh-spin .8s linear infinite; }
.try-clock { margin-left: auto; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 5px; background: var(--ink); color: #9be7a8; font-size: 14px; font-variant-numeric: tabular-nums; }
.try-why[hidden] { display: none; }
.try-picking { display: flex; align-items: center; gap: 8px; }
.try-big { font-size: 17px; line-height: 1.3; }
.try-big .chi { font-size: 30px; margin-right: 4px; }
.try-out > .try-scope { margin-top: -8px; }
.try-tlds { display: grid; grid-template-columns: 44px minmax(36px, 1fr) max-content; align-items: center; gap: 5px 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 14px; }
.try-tr { display: contents; }
.try-th > span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.try-tld { font-size: 14px; }
.try-bar { height: 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.try-bar i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); transition: width .5s steps(6, end); }
.try-bar i[style="width:0%"] { border-right: 0; }
.try-bar.is-busy i { background: repeating-linear-gradient(-45deg, var(--ink) 0 5px, var(--yellow) 5px 10px); background-size: 28px 28px; border-right: 0; animation: dh-stripes .6s linear infinite; }
.try-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.try-wait { color: var(--muted); }
.try-kinds { font-size: 13.5px; }
.try-names { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.try-names li { padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); font-size: 15px; }
.try-dom b { background: var(--yellow-soft); }
.try-locked { position: relative; display: grid; }
.try-fake { filter: blur(4px); opacity: .7; user-select: none; pointer-events: none; }
.try-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 18px; text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper); }
.try-more .ico.lock, .try-inside .ico.lock { width: 18px; height: 18px; flex: none; }
.try-invite { display: grid; gap: 10px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow-soft); box-shadow: 4px 4px 0 var(--ink); }
.try-invite-title { margin: 0; font-size: 20px; }
.try-inside { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.try-inside li { display: flex; gap: 8px; align-items: flex-start; }
.try-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.try-cta .help { flex: 1 1 180px; }
@media (max-width: 560px) {
  .try-body { padding: 14px 14px 16px; }
  .try-tlds { grid-template-columns: 36px minmax(28px, 1fr) max-content; gap: 5px 7px; padding: 8px 10px; }
  .try-big .chi { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .try-spin, .try-bar.is-busy i { animation: none; } .try-bar i { transition: none; } }
.land-shot img { display: block; width: 100%; height: auto; }
.land-shot figcaption { padding: 8px 4px 0; text-align: center; }
.land-section { margin: 0 0 44px; }
.land-section > .h2 { margin-bottom: 16px; font-size: 26px; }
.land-sub { margin: -8px 0 16px; }
.land-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.land-feature { padding: 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.land-feature img, .land-quote figcaption img { display: block; border: 2px solid var(--ink); border-radius: 8px; image-rendering: pixelated; }
.land-feature .h3 { margin: 12px 0 6px; font-size: 18px; }
.land-feature p { margin: 0; color: var(--muted); }
.land-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.land-quote { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.land-quote blockquote { position: relative; flex: 1; margin: 0; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--ink); }
.land-quote blockquote::after { content: ""; position: absolute; left: 22px; bottom: -11px; width: 18px; height: 18px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--yellow-soft); transform: rotate(45deg); }
.land-quote blockquote p { margin: 0; font-size: 15px; line-height: 1.5; }
.land-quote figcaption { display: flex; align-items: center; gap: 10px; padding-left: 8px; }
.land-quote figcaption span { display: flex; flex-direction: column; }
.land-story { margin: 0 0 44px; }
.land-story-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 28px; padding: 24px 28px; }
.land-story-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.land-logo { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.land-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.land-plan { padding: 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.land-plan.is-hot { background: var(--yellow-soft); box-shadow: 4px 4px 0 var(--ink); }
.land-plan p { margin: 8px 0 0; color: var(--muted); }
.land-join { margin: 0; }
.land-join-body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 24px; text-align: center; }
.land-join-body p { max-width: 560px; margin: 0; }
@media (max-width: 900px) {
  .land-hero, .land-story-body { grid-template-columns: 1fr; }
  .land-features, .land-quotes, .land-plans { grid-template-columns: 1fr; }
  .land-logo { max-width: 320px; }
}
@media (max-width: 560px) {
  .announce-form { flex-direction: column; align-items: stretch; }
  .announce-form .input { flex: none; }
}

/* ---- Admin: accounts ---- */
.acct-stats { margin-bottom: 16px; }
.people-find { flex-wrap: wrap; margin: 0 0 14px; }
.people-find .text-input { flex: 1 1 240px; min-width: 0; max-width: 360px; }
.people-box { max-height: 70vh; overflow: auto; }
.people-tbl td { font-size: 13px; }
.people-tbl td b { font-size: 14px; }
.people-tbl .badge { margin: 3px 4px 0 0; font-size: 11px; padding: 1px 7px; }
.people-tbl tr.is-banned td { background: var(--error-soft); }
.people-actions { min-width: 150px; }
.people-actions details { margin: 0 0 4px; }
.people-actions summary { list-style: none; display: inline-flex; cursor: pointer; }
.people-actions summary::-webkit-details-marker { display: none; }
.people-confirm { display: grid; gap: 6px; margin-top: 6px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
.people-confirm .text-input { min-width: 0; height: 34px; font-size: 13px; }
.btn.danger { border-color: var(--error); color: var(--error) !important; }
.btn.danger:hover { background: var(--error-soft); }

/* ---- Top bar: Earn ---- */
.earn-link { gap: 6px; }
.earn-link[aria-current="page"] { background: var(--yellow-soft); }
.earn-pts { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Earn page ---- */
.earn-explain { margin: 0 0 18px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--ink); }
.earn-explain p { margin: 0; font-size: 15px; line-height: 1.5; }
.earn-explain .earn-explain-t { margin: 0 0 6px; font-size: 15px; }
.earn-stand-main p { margin: 0 0 8px; }
.earn-big { margin: 0 0 6px !important; font-size: 36px; line-height: 1.1; }
.earn-meter { display: flex; gap: 6px; margin: 12px 0 8px; }
.earn-meter span { width: 46px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.earn-meter span.on { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.earn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.earn-steps li { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.earn-steps b { font-size: 15px; }
.earn-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.earn-step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 17px; }
.earn-ways td { vertical-align: middle; }
.earn-quick { margin: 12px 0 0; }
.earn-gap { margin-top: 20px; }
@media (max-width: 760px) { .earn-steps { grid-template-columns: 1fr; } }

/* Small phones: the logo alone, tighter links, so Earn, Leaderboard, account and Log out all fit. */
@media (max-width: 480px) {
  .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar-in { gap: 8px; padding: 0 12px; }
  .toplinks { gap: 2px; }
  .toplink { padding: 0 7px; }
  .topbar .btn.sm { padding: 0 10px; }
}

/* ---- Between pages: a little "please wait" window over a dotted desk, with a ticking wristwatch ---- */
.navload {
  position: fixed; inset: 0; z-index: 9000; display: none; place-items: center; padding: 16px; cursor: wait;
  background: rgba(255, 255, 255, .45) repeating-conic-gradient(rgba(17, 17, 17, .32) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}
.navload.on { display: grid; }
/* A page that opens with the window already up (still fetching its data) doesn't zoom it open again. */
.navload.is-page .navload-win { animation: none; }
.navload-win { width: min(340px, 100%); box-shadow: 5px 5px 0 var(--ink); animation: navload-zoom .24s steps(4, end) both; }
.navload-body { display: flex; align-items: center; gap: 18px; padding: 20px 22px 22px; }
.navload-watch { flex: none; width: 48px; height: 66px; }
.navload-hand { transform-box: view-box; transform-origin: 8px 11px; animation: dh-spin 1.6s steps(8) infinite; }
.navload-text { flex: 1; min-width: 0; }
.navload-line { margin: 0 0 12px; font-size: 17px; }
.navload-dots { display: inline-block; min-width: 2ch; }
.navload-bar { height: 18px; overflow: hidden; border: 2px solid var(--ink); border-radius: 5px; background: var(--paper); }
.navload-bar span {
  display: block; height: 100%;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--yellow) 6px 12px); background-size: 34px 34px;
  animation: dh-stripes .6s linear infinite;
}
/* The classic "window zooms open" from a small outline */
@keyframes navload-zoom { from { transform: scale(.4); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .navload-win, .navload-hand, .navload-bar span { animation: none; }
}

/* New registrations without unlimited access: a padlock and the way in */
.ins-lock-body { display: flex; gap: 22px; align-items: flex-start; }
.ins-lock-ico { flex: none; width: 56px; height: 63px; }
.ins-lock-text { flex: 1; min-width: 0; }
.ins-lock-text .earn-meter { margin: 6px 0 4px; }
@media (max-width: 560px) { .ins-lock-body { flex-direction: column; gap: 12px; } .ins-lock-ico { width: 40px; height: 45px; } }
.ins-lock { min-width: 0; }
.ins-lock .actions { flex-wrap: wrap; }
.ins-lock .actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.ins-lock .actions .btn { height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }

/* Members who haven't confirmed their email: a bar under the top bar on every page */
.confirm-bar { background: var(--yellow-soft); border-bottom: 2px solid var(--ink); }
.confirm-bar-in { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.45; }
.confirm-bar-in p { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.confirm-bar-in .ico { flex: none; }
.confirm-bar-in .btn { flex: none; }
@media (max-width: 560px) { .confirm-bar-in { flex-wrap: wrap; padding: 10px 16px; } .confirm-bar-in .ico { display: none; } }

/* Most popular words: the two lists side by side start and end on the same lines, whatever their headings hold */
.ins-pair { grid-template-rows: auto auto; }
.ins-pair > .ins-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.ins-pair .panel-head { align-self: end; align-items: center; min-height: 36px; }
.ins-pair #insRising .ins-scroll { max-height: 470px; }

/* ---- The webmaster: Michael leaning in from the bottom-left corner of every page, with a rainbow name like it's 1997.
   He sits under the last window (never over content) and rises from the page's bottom edge. ---- */
.maker { position: relative; height: 240px; margin-top: -50px; overflow: hidden; pointer-events: none; }
.maker-img { position: absolute; left: -66px; bottom: -36px; width: 340px; height: auto; transform: rotate(-8deg); transform-origin: 40% 100%; }
.maker-tag { position: absolute; left: 268px; bottom: 82px; display: flex; align-items: center; gap: 18px; pointer-events: auto; }
.maker-by { margin: 0; display: flex; flex-direction: column; gap: 2px; transform: rotate(-4deg); }
.maker-small { font-size: 14px; color: var(--ink); }
.maker-name { font-size: 24px; line-height: 1.15; white-space: nowrap; }
.rb { display: inline-block; text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 3px 3px 0 var(--ink); animation: maker-wave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
.rb0 { color: #61bb46; } .rb1 { color: #fdb827; } .rb2 { color: #f5821f; } .rb3 { color: #e03a3e; } .rb4 { color: #c56cc7; } .rb5 { color: #009ddc; }
.maker-coffee {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; flex: none; transform: rotate(10deg);
  color: #e03a3e; font-size: 14px; line-height: 1.1; text-align: center; text-decoration: none;
  animation: maker-wobble 2.4s ease-in-out infinite;
}
.maker-coffee::before, .maker-coffee::after {
  content: ""; position: absolute; z-index: 0;
  clip-path: polygon(50% 0, 59% 15%, 75% 7%, 76% 24%, 93% 25%, 85% 41%, 100% 50%, 85% 59%, 93% 75%, 76% 76%, 75% 93%, 59% 85%, 50% 100%, 41% 85%, 25% 93%, 24% 76%, 7% 75%, 15% 59%, 0 50%, 15% 41%, 7% 25%, 24% 24%, 25% 7%, 41% 15%);
}
.maker-coffee::before { inset: 0; background: var(--ink); }
.maker-coffee::after { inset: 5px; background: var(--yellow); }
.maker-coffee > span { position: relative; z-index: 1; }
a.maker-coffee:hover::after { background: var(--yellow-hover); }
a.maker-coffee:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@keyframes maker-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes maker-wobble { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }
@media (max-width: 560px) {
  .maker { height: 180px; margin-top: -40px; }
  .maker-img { width: 260px; left: -52px; bottom: -28px; }
  .maker-tag { left: 178px; bottom: 50px; gap: 4px; flex-direction: column; align-items: flex-start; }
  .maker-name { font-size: 18px; }
  .maker-coffee { width: 88px; height: 88px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rb, .maker-coffee { animation: none; } }

/* Pages with the corner picture: at least as tall as the window, so Michael always sits at the very bottom. */
body.dh-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.dh-page > .wrap { flex: 1 0 auto; width: 100%; }
body.dh-page > .maker { flex: none; }
.maker-legal { position: absolute; right: 24px; bottom: 14px; margin: 0; font-size: 13px; pointer-events: auto; }
.maker-legal a { color: var(--muted); }
.maker-legal a:hover { color: var(--ink); }
@media (max-width: 560px) { .maker-legal { right: 16px; bottom: 10px; } }

/* Privacy and Terms */
.legal { display: grid; gap: 18px; max-width: 860px; }
.legal p, .legal li { line-height: 1.55; }
.legal .acct-body > p:first-child { margin-top: 0; }
.legal .acct-body > p:last-child { margin-bottom: 0; }
.legal-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.acct-delete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.acct-delete .authfield { flex: 1 1 260px; margin: 0; }
.earn-meter-label { margin: 10px 0 0; }

/* The Pass and coffee pages */
.pass-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.pass-price .earn-big { margin: 0 0 4px; }
.pass-amount { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.pass-amount .earn-big { margin: 0 !important; }
.pass-once { padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.pass-deadline { margin: 6px 0 4px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow-soft); font-size: 15px; line-height: 1.45; max-width: 46ch; }
.pass-perk { padding: 6px 10px; border-radius: 6px; background: var(--green-soft); list-style-position: inside; margin-left: -20px; }
.pass-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.coffee-form { display: grid; gap: 14px; justify-items: start; }
.coffee-pick { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; border: 0; }
.coffee-pick legend { margin-bottom: 10px; font-size: 15px; }
.coffee-cup { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); cursor: pointer; }
.coffee-cup:has(input:checked) { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.coffee-cup input { position: absolute; opacity: 0; pointer-events: none; }
.coffee-cup:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
.coffee-cups { font-size: 24px; letter-spacing: 2px; }
@media (max-width: 760px) { .pass-body { grid-template-columns: 1fr; } }

/* Who you pay: the NameOffice logo next to the buy buttons */
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pay-to { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.pay-to img { display: block; height: 18px; width: auto; }
.pay-note { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 46ch; }

/* Orphan .coms */
.or-tiles { margin-bottom: 18px; }
.or-controls { flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.or-check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }
.or-tbl .badge { margin: 2px 2px 2px 0; }
/* Orphans for logged-out visitors: blurred made-up rows behind a "create an account" card that sets the height */
.or-guest { margin-top: 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); overflow: hidden; }
.or-guest .locked { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; border-top: 0; }
.or-guest .locked > * { grid-area: 1 / 1; }
.or-guest .locked-card { position: relative; left: auto; top: auto; transform: none; align-self: center; justify-self: center; margin: 22px 12px; }
.or-lock { margin-top: 14px; padding: 14px 16px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--yellow-soft); }
.or-lock p { margin: 0 0 10px; }
/* Tomorrow's Word */
.game-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.game-pick { margin-top: 0; font-size: 18px; }
.game-pick b { font-size: 22px; }
.game-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.game-form .authfield { flex: 1 1 220px; margin: 0; }
.game-how { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.game-prizes { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; }
.game-prizes td { white-space: normal; }
.game-prizes td:first-child { width: 34%; }
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }
.or-tbl a.or-free { text-decoration: none; }
.or-tbl a.or-free:hover { text-decoration: underline; }
.or-tbl button.or-free { font-family: inherit; line-height: inherit; cursor: copy; }
.or-tbl button.or-free:hover { text-decoration: underline; }

/* Orphans: light blue = registered that day; green https:// = a working secure site; keys in the table header */
.or-tbl .badge.or-new, .xr-tbl .badge.or-new { font-weight: inherit; border-width: 1px; background: #d6e8ff; border-color: #6f9ee8; color: var(--ink); }
.or-tbl a.or-taken, .xr-tbl a.or-taken { color: var(--ink); text-decoration: none; }
.or-tbl a.or-taken:hover, .xr-tbl a.or-taken:hover { text-decoration: underline; }
.or-https { color: var(--green); font-weight: 700; }
.or-tbl th .or-key, .xr-tbl th .or-key { margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: normal; font-weight: 600; font-size: 12px; }

/* The game button: Tomorrow's Word on its own at the right, above the page */
.subtabs { align-items: center; }
.subtab-game {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 12px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink) !important; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.subtab-game .ico { fill: var(--paper); }
.subtab-game:hover { background: var(--yellow-hover); }
.subtab-game:active, .subtab-game[aria-current="page"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.subtab-earn { padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--yellow); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.pagehead .subtabs { margin: 0; align-self: flex-start; }  /* on the page title's line, at the right */
/* Look up a word by date: the extension pick beside the word, and the loader while a word loads */
.word-row .word-tld { flex: none; }
.word-row .word-tld select { min-width: 150px; }
.word-loader { margin-top: 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.word-loader .loader-body { padding: 20px 22px; }
@media (max-width: 560px) { .word-row { flex-wrap: wrap; } .word-row .text-input { flex: 1 1 100%; } }
@media (max-width: 640px) { .subtab-game { margin-left: 0; } }

/* Tomorrow's Word: a little classic-Mac game screen */
.gm-win { margin-bottom: 18px; }
.gm-screen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px;
  background: var(--ink) repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); color: var(--paper); }
.gm-title { margin: 0; font-size: 34px; line-height: 1.1; color: var(--yellow); text-shadow: 3px 3px 0 #e03a3e; }
.gm-sub { margin: 8px 0 0; font-size: 15px; color: #e8e8e2; }
.gm-stats { display: flex; gap: 12px; margin: 0; }
.gm-stats > div { min-width: 104px; padding: 10px 12px; border: 2px solid #61bb46; border-radius: 8px; background: #0b170b; text-align: center; }
.gm-stats dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9ad48a; }
.gm-stats dd { margin: 4px 0 0; font-size: 24px; color: #7cf05c; }
.gm-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.gm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.gm-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px;
  padding: 12px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow-soft); box-shadow: 4px 4px 0 var(--ink); text-align: center; }
.gm-tile.is-empty { background: var(--paper); border-style: dashed; box-shadow: none; color: var(--faint); }
.gm-tile-n { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gm-tile-word { font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.gm-tile.is-empty .gm-tile-word { font-size: 30px; color: var(--rule); }
.gm-remove-form { position: absolute; top: 6px; right: 6px; margin: 0; }
.gm-remove { width: 24px; height: 24px; padding: 0; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); font: 700 14px/1 var(--font-ui); cursor: pointer; }
.gm-remove:hover { background: var(--ink); color: var(--paper); }
.gm-form { display: flex; flex-wrap: wrap; gap: 12px; }
.gm-form .text-input { flex: 1 1 220px; min-width: 0; }
.gm-go { min-width: 140px; }
.gm-ladder { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.gm-ladder li { display: flex; align-items: baseline; gap: 10px; width: var(--w); min-width: 150px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.gm-ladder li span { min-width: 64px; }
.gm-ladder li small { color: var(--muted); font-size: 12px; }
.gm-scores { max-height: 520px; }
.gm-my-row td { background: var(--green-soft); }
.gm-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gm-history li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.gm-day { min-width: 52px; font-size: 16px; }
.gm-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.gm-chip { display: inline-flex; flex-direction: column; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--panel); font-weight: 700; line-height: 1.2; }
.gm-chip small { font-weight: 500; font-size: 12px; color: var(--muted); }
.gm-chip.is-hit { background: var(--green-soft); border-color: var(--green); }
.gm-chip.is-hit small { color: var(--green-dark); }
.gm-chip.is-miss { color: var(--muted); border-style: dashed; }
.gm-total { min-width: 40px; text-align: right; font-size: 18px; }
@media (max-width: 760px) { .gm-grid { grid-template-columns: 1fr; } .gm-title { font-size: 26px; } }
@media (max-width: 480px) { .gm-tiles { grid-template-columns: 1fr; } .gm-tile { min-height: 72px; flex-direction: row; justify-content: flex-start; padding-left: 14px; } .gm-stats > div { min-width: 0; flex: 1; } }
@media (max-width: 480px) {
  .gm-screen { padding: 18px 16px; }
  .gm-stats { width: 100%; gap: 8px; }
  .gm-stats > div { padding: 8px 4px; }
  .gm-stats dt { font-size: 10px; letter-spacing: .02em; }
  .gm-stats dd { font-size: 18px; }
}

/* Word Lookup: recent searches under the search bar (saved in this browser) */
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: -6px; padding: 0 24px 18px; }
.recent-l { font-size: 14px; }
.recent-list { display: contents; list-style: none; margin: 0; padding: 0; }
.recent-list li { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.recent-item { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 4px 0 12px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.recent-item small { font-weight: 500; font-size: 12px; color: var(--muted); }
.recent-item:hover, .recent-x:hover { background: var(--yellow-soft); }
.recent-list li.is-on { background: var(--yellow); }
.recent-list li.is-on .recent-item small { color: var(--ink); }
.recent-x { min-width: 30px; border: 0; background: none; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }
.recent-x:hover { color: var(--ink); }
.recent-ren { min-width: 26px; font-size: 14px; }
.recent-list li.is-editing { background: var(--yellow-soft); }
.recent-edit { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 8px; }
.recent-edit-input { width: 210px; max-width: 52vw; min-height: 26px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 6px; font: inherit; font-size: 14px; background: var(--paper); }
.recent-save { min-height: 26px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--yellow); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.xr-name-field { display: grid; gap: 6px; max-width: 420px; margin: 4px 0 12px; }
.xr-name-field .help { font-family: inherit; font-weight: 400; }
.xr-label { font-size: 16px; }
.recent-item:focus-visible, .recent-x:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.recent-clear { min-height: 30px; font-size: 13px; }
@media (max-width: 560px) { .recent { padding: 0 16px 16px; } }

/* ---- Portfolio X-ray ---- */
.xr-form { padding: 22px 24px 24px; }
.xr-input { display: block; width: 100%; min-height: 150px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.xr-input:focus { outline: 3px solid var(--link); outline-offset: 2px; }
.xr-form .help { margin-top: 10px; }
.xr-go { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.xr-leave { margin-top: 10px; }
.xr-body { padding: 18px 20px 22px; }
.xr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.xr-summary { margin: 0; }
.xr-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.xr-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 130px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.xr-tile .stat-n { font-size: 24px; }
.xr-tile:hover { background: var(--yellow-soft); }
.xr-tile[aria-pressed="true"] { background: var(--ink); color: var(--paper); transform: translate(3px, 3px); box-shadow: none; }
.xr-tbl th[scope="row"] { min-width: 170px; }
.xr-tbl thead th { white-space: normal; }
.xr-dom { font-size: 15px; }
.xr-sub { display: block; margin-top: 3px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); white-space: normal; }
.xr-v { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.xr-v.is-raise { background: var(--ink); color: var(--yellow); }
.xr-v.is-keep { background: var(--green-soft); }
.xr-v.is-review { background: var(--yellow-soft); }
.xr-v.is-drop { background: var(--error-soft); color: var(--error); border-color: var(--error); }
.xr-v.is-unknown { background: var(--panel); color: var(--muted); }
.xr-tile.is-raise .stat-l::before { content: "★ "; }
.xr-words { min-width: 0; }
.xr-word { display: block; font-size: 13px; white-space: nowrap; }
.xr-word.is-rising { color: var(--green); }
.xr-word.is-fading { color: var(--error); }
.xr-how { margin: 0 0 12px; padding-left: 20px; line-height: 1.55; }
.xr-how li + li { margin-top: 6px; }
@media (max-width: 560px) { .xr-form { padding: 18px 16px 20px; } .xr-body { padding: 14px 14px 18px; } .xr-tile { min-width: 0; flex: 1 1 40%; } }
.xr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xr-pickcol { width: 40px; text-align: center; }
.xr-pickcol input { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; vertical-align: middle; }
.xr-tbl tr.is-picked > * { background: var(--yellow-soft); }
.xr-close { min-width: 200px; }
.xr-count { display: block; }
.xr-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.xr-pills .badge { font-weight: 500; }
.xr-more { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.xr-bar { display: flex; align-items: center; gap: 12px; }
.xr-bar .progress { flex: 1; }
.xr-pct { flex: none; min-width: 3.2em; margin-top: 14px; font-size: 16px; text-align: right; }
.xr-word-link { color: inherit !important; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.xr-word-link:hover { text-decoration-style: solid; }
.xr-days { margin: -6px 0 12px; }
.xr-word.is-whole { padding-bottom: 3px; margin-bottom: 3px; border-bottom: 1px dashed var(--rule); }
.xr-word.is-dropped, .xr-net.is-down { color: var(--error); }
.xr-net.is-up { color: var(--green); }
.xr-tbl th, .xr-tbl td { padding-left: 10px; padding-right: 10px; }
/* Orphans: a taken name that's for sale (an investor's) */
.or-sale { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 11.5px; line-height: 1.6; }
.or-parked { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rule); color: var(--muted); font-weight: 700; font-size: 11px; line-height: 1.5; }
/* Click-to-sort table headings */
.th-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th.num .th-sort { flex-direction: row-reverse; }
.th-sort:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-arrow { font-size: 10px; opacity: .45; }
.th-sort.is-on .th-arrow { opacity: 1; }
/* Orphans: fixed column shares, so filters and long names never push Taken and Free off the page */
.or-tbl { table-layout: fixed; }
.or-tbl thead th { white-space: normal; }
.or-tbl thead th:nth-child(1) { width: 24%; }
.or-tbl thead th:nth-child(2) { width: 46%; }
.or-tbl thead th:nth-child(3) { width: 21%; }
.or-tbl thead th:nth-child(4) { width: 9%; }
.or-tbl tbody th { white-space: normal; overflow-wrap: anywhere; }
.or-tbl tbody th .help { display: block; margin-top: 2px; }
.or-tbl td .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Portfolio X-ray: the words cell, three titled lines */
.xr-tbl td.xr-words { min-width: 260px; }
.xr-wl { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.5; }
.xr-wl + .xr-wl { margin-top: 3px; }
.xr-wt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.xr-wv .xr-word { display: inline; white-space: nowrap; font-size: 13px; }
.xr-dot { margin: 0 6px; color: var(--faint); }

/* ---- Admin: Analytics ---- */
/* Cyra's brief on the Analytics page (newsite/brief.py), in her green terminal */
.an-brief-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.an-brief-head .cyra-name { margin: 0; }
.an-brief-pick select { background: #021006; color: var(--phos); border: 1.5px solid var(--phos); border-radius: 4px; padding: 4px 8px;
  font: inherit; font-size: 13px; }
.an-brief .an-brief-headline { margin: 0 0 8px; color: #b6ffcc; font-size: 19px; line-height: 1.4; font-weight: 700; text-shadow: 0 0 6px var(--phos-glow); }
.an-brief .an-brief-summary { margin: 0 0 14px; color: #6bff95; font-size: 16px; line-height: 1.6; text-shadow: 0 0 5px var(--phos-glow); }
.an-brief h3 { margin: 14px 0 6px; color: var(--phos); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.an-brief ul { margin: 0; padding-left: 1.3em; color: #6bff95; font-size: 15px; line-height: 1.55; }
.an-brief li { margin: 0 0 6px; }
.an-brief li::marker { content: "> "; color: var(--phos-dim); }
.an-brief .an-brief-meta, .an-brief .an-brief-wait { margin: 14px 0 0; color: var(--phos-dim); font-size: 12px; }
/* Portfolio X-ray: the name's style (like the Startups page), its points by part, and re-registrations */
/* Orphans early access: the note for members waiting on today's list, the Pass holders' note, and names taken early */
.or-banner { margin: 0 0 16px; }
.or-banner-in { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink); }
.or-banner-in.is-wait { background: var(--yellow-soft); }
.or-banner-in.is-early { background: var(--green-soft); }
.or-banner-in p { margin: 0 0 6px; }
.or-banner-in p:last-child { margin-bottom: 0; }
.or-banner-big { font-size: 17px; }
.or-banner-ico { font-size: 24px; line-height: 1; }
.or-early { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: var(--panel); border-style: dashed; cursor: help; white-space: nowrap; }
.or-early s { text-decoration-thickness: 1.5px; }
.or-tbl .badge.or-early, .or-tbl .badge.or-early s { white-space: nowrap; overflow-wrap: normal; }
.or-tbl .badge.or-early { max-width: none; }
.or-early-tag { padding: 0 5px; border-radius: 3px; white-space: nowrap; background: var(--error-soft); color: var(--error); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; }
.or-early-line { margin: 0 0 8px; color: var(--ink); }
.xr-style { display: inline-block; margin-left: 4px; padding: 1px 7px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 11px;
  font-weight: 700; vertical-align: 2px; cursor: help; background: #fff; }
.xr-style.is-abstract { background: #e9e2ff; }
.xr-style.is-lexical { background: #dff3e4; }
.xr-style.is-evocative { background: #fff1cc; }
.xr-style.is-other { background: #eee; }
/* Why: one line per part of the score, under the verdict (label, points, the facts) */
.xr-tbl td.xr-vcell { min-width: 400px; max-width: 470px; }
.xr-score { font-size: 13px; font-weight: 700; white-space: nowrap; }
.xr-why { margin: 8px 0 0; padding: 0; font-family: var(--font-ui); font-size: 12.5px; line-height: 1.35; }
.xr-why-row { display: grid; grid-template-columns: 86px 42px 1fr; gap: 0 8px; align-items: baseline; padding: 3px 0;
  border-top: 1px solid var(--rule); cursor: help; }
.xr-why-row:first-child { border-top: 0; }
.xr-why dt { margin: 0; font-weight: 700; font-size: 12px; white-space: nowrap; }
.xr-why dd { margin: 0; color: var(--muted); }
.xr-why dd.xr-why-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-why-held dt, .xr-why-held .xr-why-text { color: var(--error); }
.xr-why dd.xr-why-pts { text-align: right; }
.xr-pts { display: inline-block; padding: 0 5px; border-radius: 4px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12px; }
.xr-pts small { font-size: 10.5px; font-weight: 400; opacity: .7; }
.xr-pts.is-high { background: var(--green-soft); }
.xr-pts.is-mid { background: var(--yellow-soft); }
.xr-pts.is-low { background: var(--panel); }
.xr-pts.is-none { background: var(--panel); color: var(--muted); }
.xr-why-old { padding-left: 1.1em; color: var(--muted); }
.xr-backcol { min-width: 120px; }
.xr-back { display: inline-block; margin: 2px 4px 0 0; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.xr-back.is-back { background: #dff3e4; color: #14532d; }
.xr-back.is-gone { background: #f3f1ec; color: var(--muted); }
.an-who { padding: 0; border: 0; background: none; color: var(--link, #1a4fd6); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.an-member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.an-member-head .h3 { margin: 0; }
.an-sub { margin: 16px 0 8px; font-size: 14px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.an-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.an-controls .notice { margin: 0; }
.an-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.an-chart { overflow-x: auto; }
.an-svg { display: block; width: 100%; min-width: 560px; height: auto; }
.an-grid { stroke: var(--rule); stroke-width: 1; }
.an-ax { fill: var(--muted); font-size: 11px; }
.an-col { fill: var(--series-new); stroke: var(--ink); stroke-width: 1.5; }
.an-hit { fill: transparent; }
.an-bar:hover .an-col { fill: var(--yellow); }
.an-heat-wrap { overflow-x: auto; }
.an-heat { display: grid; gap: 3px; min-width: 620px; }
.an-hrow { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 3px; align-items: center; }
.an-hhead span { color: var(--muted); font-size: 11px; }
.an-day { color: var(--muted); font-size: 12px; font-weight: 700; }
.an-cell { height: 20px; border-radius: 3px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--series-new) calc(var(--a) * 100%), var(--paper)); }
.an-tbl { min-width: 0; }

/* Admin Analytics: Right now */
.an-now-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-bottom: 8px; }
.an-now-big { margin: 0; font-size: 16px; }
.an-now-big .chi { font-size: 28px; margin-right: 4px; }
.an-now-head .help { margin: 0; }
.an-live { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 2px solid var(--ink); border-radius: 50%; background: #3fbf5a; vertical-align: 1px; animation: an-live 1.6s steps(2, end) infinite; }
@keyframes an-live { 50% { background: #c9f2d1; } }
@media (prefers-reduced-motion: reduce) { .an-live { animation: none; } }

/* Coffee: what a coffee gives a logged-in member (5 points each and the coffee avatar) */
.coffee-perks { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--yellow-soft); }
.coffee-avatars { display: flex; flex: none; gap: 6px; }
.coffee-perks img { flex: none; border: 2px solid var(--ink); border-radius: 8px; }
@media (max-width: 560px) { .coffee-perks { flex-direction: column; align-items: flex-start; } }
.coffee-perks p { margin: 0; line-height: 1.5; }
.avatar-coffee .coffee-thanks { flex-basis: 100%; margin: 4px 0 0; }

/* Admin: taste test (pick the better of two names, blind) */
.taste-pad { display: grid; gap: 18px; }
.taste-progress { display: flex; align-items: center; gap: 12px; }
.taste-progress .progress { flex: 1; }
.taste-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.taste-pair[hidden] { display: none; }
.taste-pick { position: relative; display: grid; place-items: center; min-height: 140px; padding: 18px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; font: inherit; color: var(--ink); }
.taste-pick:hover { background: var(--yellow-soft); }
.taste-pick:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.taste-pick.is-picked { background: var(--yellow); }
.taste-name { font-size: clamp(20px, 3.4vw, 32px); overflow-wrap: anywhere; }
.taste-key { position: absolute; top: 8px; left: 10px; min-width: 22px; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 5px; font-size: 12px; font-weight: 700; }
.taste-or { align-self: center; color: var(--muted); }
.taste-actions { display: flex; justify-content: space-between; gap: 10px; }
.taste-done[hidden] { display: none; }
.taste-done-title { font-size: 22px; margin: 0 0 6px; }
@media (max-width: 560px) { .taste-pair { grid-template-columns: 1fr; } .taste-or { justify-self: center; } .taste-pick { min-height: 100px; } }
