/* Daily Krill — dark studio look: near-black base, lime accent, DM Sans. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --surface: #151518;
  --surface-2: #1c1c20;
  --surface-3: #25252a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #6b6b73;
  --accent: #d5fa83;
  --accent-ink: #14160c;
  --sidebar: 236px;
  --radius: 14px;

  /* rarity tiers: krillion, deep cut, rare, schooler, too clever, plankton */
  --t0: #d5fa83;
  --t1: #a995ff;
  --t2: #6fb0ff;
  --t3: #55d6b9;
  --t4: #f2c25a;
  --t5: #8f97a3;

  color-scheme: dark;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
::selection {
  background: rgba(213, 250, 131, 0.28);
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a,
button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, opacity 0.18s;
}
svg {
  flex-shrink: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #2a2a2f transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  white-space: nowrap;
}
.brand b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 26px;
  height: 24px;
  color: var(--text);
}
.brand.small b {
  font-size: 16px;
}
.brand.small .brand-mark {
  width: 22px;
  height: 20px;
}

/* ---------- buttons & controls ---------- */
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.primary-button {
  background: #fff;
  color: var(--bg);
}
.primary-button:hover {
  background: #e6e6e8;
}
.primary-button.small,
.secondary-button.small {
  height: 34px;
  padding: 0 15px;
  font-size: 13px;
}
.secondary-button {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.secondary-button:hover {
  background: var(--surface-3);
}
.secondary-button[hidden] {
  display: none;
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.link-button:hover {
  color: var(--text);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.count-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(213, 250, 131, 0.14);
}

/* ---------- app shell ---------- */
.nav-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 8px;
  margin-bottom: 22px;
}
.sidebar-close {
  display: none;
}
.sidebar-cta {
  width: 100%;
  margin-bottom: 18px;
}
.side-nav,
.side-days {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.side-nav a:hover,
.side-days a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.side-nav a.active,
.side-days a.active {
  color: var(--text);
  background: var(--surface-2);
}
.side-divider {
  height: 1px;
  margin: 16px 10px;
  background: var(--line);
}
.side-label {
  padding: 0 11px 6px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.side-days a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.side-days em {
  font-style: normal;
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-credit {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.sidebar-credit > svg {
  color: var(--accent);
}
.sidebar-credit span {
  flex: 1;
  color: var(--muted);
}
.sidebar-credit strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
}
.sidebar-link:hover {
  color: var(--text);
}
.sidebar-scrim {
  display: none;
}
.main-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 28px;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-menu,
.topbar-brand {
  display: none;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-search {
  position: relative;
}
.top-search svg,
.field > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.top-search input {
  width: 230px;
  height: 36px;
  padding: 0 14px 0 37px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, width 0.2s, background 0.18s;
}
.top-search input::placeholder,
.field input::placeholder {
  color: var(--faint);
}
.top-search input:focus {
  width: 280px;
  border-color: var(--line-2);
  background: var(--surface-2);
}
.page-content {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 28px 0;
}
.page-footer {
  max-width: 1480px;
  width: 100%;
  margin: 72px auto 0;
  padding: 26px 28px 34px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-top nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.footer-top nav a:hover {
  color: var(--text);
}
.fineprint {
  margin-top: 16px;
  max-width: 760px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.7;
}
.fineprint a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- hero (home, search, 404) ---------- */
.hero,
.page-hero {
  position: relative;
  z-index: 3;
  isolation: isolate;
  border-radius: 22px;
  border: 1px solid var(--line);
}
.hero {
  display: grid;
  place-items: center;
  min-height: min(620px, 74vh);
  padding: 72px 24px 56px;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: url(/assets/sea.svg) center / cover no-repeat, #0b1a24;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(10, 10, 11, 0.1) 0%, rgba(10, 10, 11, 0.5) 62%, rgba(10, 10, 11, 0.86) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.1) 0%, rgba(10, 10, 11, 0.05) 45%, rgba(10, 10, 11, 0.8) 100%);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 880px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 10px 0 4px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-badge > span {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
}
.hero-badge:hover {
  background: rgba(10, 10, 11, 0.7);
  color: #fff;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero-content > p {
  max-width: 560px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16.5px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.search-hero {
  min-height: 0;
  padding: 64px 24px 48px;
}

/* glowing composer: the search box */
.composer {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-top: 36px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 20, 23, 0.84) 0%, rgba(14, 14, 16, 0.88) 58%, rgba(24, 28, 16, 0.92) 100%);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7), 0 22px 60px -26px rgba(213, 250, 131, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: start;
}
.composer::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 42%, rgba(213, 250, 131, 0.6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.composer::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  border-radius: 0 0 26px 26px;
  background: radial-gradient(70% 90% at 50% 100%, rgba(213, 250, 131, 0.13) 0%, rgba(213, 250, 131, 0) 70%);
  pointer-events: none;
}
.composer:focus-within::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(213, 250, 131, 0.8) 100%);
}
.composer > input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 76px;
  padding: 0 24px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}
.composer > input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
.composer > input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}
.composer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 14px;
}
.composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.composer-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.composer-chip > svg {
  color: var(--muted);
}
.composer-chip b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.select-chip {
  padding-right: 6px;
  cursor: pointer;
}
.select-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.select-chip select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center no-repeat;
  padding: 0 30px 0 0;
  height: 100%;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.select-chip select option {
  background: #141417;
  color: var(--text);
}
.composer-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  height: 50px;
  padding: 0 20px 0 22px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(213, 250, 131, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.composer-go:hover {
  background: #e3ff9f;
  transform: translateY(-1px);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(213, 250, 131, 0.06);
  border: 1px solid rgba(213, 250, 131, 0.18);
  color: #e7f7c7;
  font-size: 13.5px;
  line-height: 1.55;
}
.notice svg {
  margin-top: 1px;
  color: var(--accent);
}

/* ---------- page hero (day, prompt, archive, about) ---------- */
.page-hero {
  padding: 34px 34px 32px;
  overflow: hidden;
}
.page-hero .hero-media {
  background-position: center 30%;
  opacity: 0.75;
}
.page-hero .hero-media::after {
  background: linear-gradient(90deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.7) 55%, rgba(10, 10, 11, 0.45) 100%);
}
.page-hero-inner {
  max-width: 820px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--faint);
  font-size: 12.5px;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.18);
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--text);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.page-hero h1.prompt-h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.035em;
  max-width: 26ch;
}
.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.day-nav > span:empty {
  display: none;
}
.day-nav.bottom {
  justify-content: space-between;
  margin-top: 32px;
}

/* ---------- sections ---------- */
.home-section {
  margin-top: 48px;
}
.home-section.narrow,
.narrow {
  max-width: 980px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.stat {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.stat span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}
.stat strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-link:hover {
  background: var(--surface);
  border-color: var(--line-2);
}
.stat-link strong svg {
  color: var(--muted);
}

/* prompt index row */
.prompt-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.prompt-index::-webkit-scrollbar {
  display: none;
}
.prompt-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 280px;
  height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.prompt-index a b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
}
.prompt-index a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-index a:hover {
  color: var(--text);
  border-color: var(--line-2);
}

/* ---------- prompt card ---------- */
.prompt-list {
  display: grid;
  gap: 14px;
}
.prompt-card {
  min-width: 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.prompt-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.prompt-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(213, 250, 131, 0.1);
  border: 1px solid rgba(213, 250, 131, 0.22);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prompt-title {
  min-width: 0;
}
.prompt-title h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.prompt-title h3 a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}
.prompt-meta {
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
}
.tierbar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin: 18px 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.tierbar .seg {
  min-width: 4px;
  background: var(--tc);
  opacity: 0.85;
}
.t0 {
  --tc: var(--t0);
}
.t1 {
  --tc: var(--t1);
}
.t2 {
  --tc: var(--t2);
}
.t3 {
  --tc: var(--t3);
}
.t4 {
  --tc: var(--t4);
}
.t5 {
  --tc: var(--t5);
}

/* krillion hints */
.krill-box {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(213, 250, 131, 0.05), rgba(213, 250, 131, 0.015));
  border: 1px solid rgba(213, 250, 131, 0.16);
}
.krill-box.empty {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 13.5px;
}
.krill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.krill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}
.hint-set {
  display: grid;
  gap: 8px;
  align-items: start;
}
.hint-set + .hint-set {
  margin-top: 14px;
}
.hint-label {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 760px) {
  .hint-set {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hint-label {
    grid-column: 1 / -1;
  }
}
.hint {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hint summary {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 10px;
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  user-select: none;
}
.hint summary::-webkit-details-marker {
  display: none;
}
.hint summary::after {
  content: '+';
  margin-left: auto;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}
.hint[open] summary::after {
  transform: rotate(45deg);
}
.hint:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.hint[open] {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.hint-step {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.hint.reveal {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -14px rgba(213, 250, 131, 0.8);
}
.hint.reveal summary {
  padding-left: 14px;
  font-weight: 700;
}
.hint.reveal summary::after {
  content: none;
}
.hint.reveal summary {
  justify-content: center;
}
.hint.reveal:hover {
  background: #e3ff9f;
}
.hint.reveal[open] {
  background: var(--surface-2);
  border-color: rgba(213, 250, 131, 0.45);
  color: var(--text);
  box-shadow: none;
}
.hint.reveal[open] summary {
  color: var(--accent);
}
.hint-body {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.big-letter {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
}
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}
.tile-word {
  display: inline-flex;
  gap: 3px;
}
.tile {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}
.tile.shown {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}
.tile.punct {
  width: auto;
  min-width: 8px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.krill-answer {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* answers list */
.answers {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.answers > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}
.answers > summary::-webkit-details-marker {
  display: none;
}
.answers > summary svg {
  color: var(--muted);
  transition: transform 0.2s;
}
.answers[open] > summary svg {
  transform: rotate(180deg);
}
.answers > summary:hover {
  color: #fff;
}
.answers.static {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
.answers-tools {
  display: grid;
  gap: 12px;
  margin: 8px 0 14px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tab b {
  color: var(--faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tab i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc);
}
.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.tab.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}
.tab.is-active b {
  color: rgba(10, 10, 11, 0.55);
}
.field {
  position: relative;
  display: block;
}
.field input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.field input:focus {
  border-color: var(--line-2);
  background: var(--surface);
}
.field input::-webkit-search-cancel-button,
.top-search input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}
.pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 6px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.3;
  cursor: copy;
}
.pill:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.pill:active {
  transform: scale(0.98);
}
.pill i {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc);
}
.pill span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pill em {
  color: var(--tc);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pill mark {
  background: rgba(213, 250, 131, 0.22);
  color: #fff;
  border-radius: 3px;
  padding: 0 1px;
}
.pill.t0 {
  background: rgba(213, 250, 131, 0.08);
  border-color: rgba(213, 250, 131, 0.3);
  font-weight: 600;
}
.pill.spoiler {
  cursor: pointer;
}
.pill.spoiler span {
  filter: blur(6px);
  user-select: none;
  transition: filter 0.25s;
}
.pill.spoiler.revealed span,
.revealed .pill.spoiler span {
  filter: none;
  user-select: auto;
}
.answers-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.shown,
.result-line {
  color: var(--faint);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.result-line {
  margin: -2px 0 12px;
}
.is-loading .pills {
  opacity: 0.45;
  transition: opacity 0.2s;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.empty-state.big p + p {
  margin-top: 6px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.page {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.page:hover {
  color: var(--text);
  background: var(--surface-2);
}
.page.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}
.gap {
  align-self: center;
  color: var(--faint);
}
.back-line {
  margin-top: 20px;
}

/* legend */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
}
.legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 14%, transparent);
}
.legend-item span {
  flex: 1;
}
.legend-item b {
  color: var(--tc);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- archive ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.date-field input {
  width: 200px;
  height: 40px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.6);
  color-scheme: dark;
}
.month-nav {
  margin-top: 16px;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}
.day-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.day-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--surface);
}
.day-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 16 / 8;
  padding: 12px 14px;
  background:
    radial-gradient(90% 120% at 15% 0%, hsl(var(--h) 55% 38% / 0.95) 0%, transparent 60%),
    radial-gradient(80% 120% at 100% 100%, hsl(calc(var(--h) + 35) 60% 26% / 0.9) 0%, transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 40% 16%), #0d0d10);
}
.day-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url(/assets/sea.svg) center / cover;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.day-cover .chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}
.day-cover-date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
  color: #fff;
}
.day-cover-date strong {
  font-size: 46px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.day-cover-date span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.day-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}
.day-body h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.day-body > p {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12.5px;
}
.day-body ol {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}
.day-body li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-body li::marker {
  color: var(--faint);
}
.day-body .more {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
}

/* ---------- search results ---------- */
.results-block + .results-block {
  margin-top: 36px;
}
.prompt-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.prompt-results a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2px 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.prompt-results a:hover {
  background: var(--surface);
  border-color: var(--line-2);
}
.prompt-results a > svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--faint);
}
.date-tag {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
}
.pr-text {
  font-size: 14px;
  font-weight: 600;
}
.pr-text mark {
  background: rgba(213, 250, 131, 0.22);
  color: #fff;
  border-radius: 3px;
}
.pr-count {
  grid-column: 2;
  color: var(--faint);
  font-size: 12.5px;
}
.group-list {
  display: grid;
  gap: 12px;
}
.group {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.group header {
  margin-bottom: 12px;
}
.group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
}
.group-meta a {
  color: var(--muted);
}
.group-meta a:hover {
  color: var(--text);
}
.accepted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(213, 250, 131, 0.12);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}
.group h3 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.group h3 a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
.more-link {
  margin-top: 12px;
}

/* ---------- prose ---------- */
.prose h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.prose ul {
  padding-left: 1.2em;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: rise 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .top-search {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-toggle:checked ~ .app-shell .sidebar {
    transform: none;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
  }
  .nav-toggle:checked ~ .app-shell .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
  }
  .sidebar-close {
    display: inline-flex;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -6px;
  }
  .topbar-brand {
    display: inline-flex;
  }
  .topbar-title {
    display: none;
  }
  .topbar {
    padding: 0 18px;
  }
  .page-content {
    padding: 18px 18px 0;
  }
  .page-footer {
    padding: 22px 18px 28px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 56px;
    padding: 0 14px;
  }
  .page-content {
    padding: 14px 14px 0;
  }
  .page-footer {
    padding: 22px 14px 28px;
    margin-top: 56px;
  }
  .hero {
    min-height: 520px;
    padding: 52px 14px 16px;
    border-radius: 18px;
  }
  .search-hero {
    min-height: 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-content > p {
    font-size: 15px;
  }
  .hero-badge {
    margin-bottom: 20px;
  }
  .composer {
    margin-top: 28px;
    border-radius: 22px;
  }
  .composer > input {
    height: 64px;
    padding: 0 18px;
    font-size: 16px;
  }
  .composer-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px 10px;
  }
  .composer-go {
    width: 100%;
  }
  .hide-sm {
    display: none;
  }
  .page-hero {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }
  .home-section {
    margin-top: 36px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 20px;
  }
  .prompt-card {
    padding: 16px;
    border-radius: 16px;
  }
  .prompt-title h3 {
    font-size: 17px;
  }
  .prompt-num {
    width: 36px;
    height: 36px;
    font-size: 13.5px;
  }
  .pills {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  }
  .day-nav.bottom .secondary-button {
    padding: 0 13px;
  }
  .top-search {
    display: none;
  }
  .topbar-actions .primary-button {
    padding: 0 13px;
  }
}
@media (max-width: 380px) {
  .topbar-brand b {
    display: none;
  }
}
@media (hover: none) {
  .day-tile:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
