:root,
[data-theme="light"] {
  --bg: #f4f3ef;
  --surface: #fffcf7;
  --ink: #0a0a0a;
  --muted: #8a8a86;
  --line: #0a0a0a;
  --line-soft: rgba(10, 10, 10, 0.14);
  --accent: #0a0a0a;
  --accent-ink: #f4f3ef;
  --hit: #ebe8e1;
  --chip: #fffcf7;
  --chip-edge: #0a0a0a;
  --shadow: 3px 3px 0 #0a0a0a;
  --fade: var(--bg);
  --display: "Lilita One", "Arial Black", sans-serif;
  --border: 3px;
  --page: min(1180px, calc(100% - 2.5rem));
}

[data-theme="dark"] {
  --bg: #0c0c0c;
  --surface: #161616;
  --ink: #f4f3ef;
  --muted: #9a9a94;
  --line: #f4f3ef;
  --line-soft: rgba(244, 243, 239, 0.18);
  --accent: #f4f3ef;
  --accent-ink: #0c0c0c;
  --hit: #222222;
  --chip: #161616;
  --chip-edge: #f4f3ef;
  --shadow: 3px 3px 0 #f4f3ef;
  --fade: var(--bg);
  --display: "Lilita One", "Arial Black", sans-serif;
  --border: 3px;
  --page: min(1180px, calc(100% - 2.5rem));
}

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 0, 0, 0.03), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(0, 0, 0, 0.025), transparent 32%),
    var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.03), transparent 32%),
    var(--bg);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 1.25rem 0 0.75rem;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--ink);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.region-pick {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border: var(--border) solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: var(--border) solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-filter .region-label {
  margin: 0;
}

.quiz-filter .lang-switch {
  margin: 0;
}

.region-row {
  display: grid;
  gap: 0.4rem;
}

.region-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

html[dir="rtl"] .region-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

.region-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.region-btn {
  appearance: none;
  border: var(--border) solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  line-height: 1.2;
}

.region-btn:hover {
  color: var(--ink);
}

.region-btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--ink);
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Source Sans 3", "Segoe UI", sans-serif;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .page-title,
html[dir="rtl"] .hub-title,
html[dir="rtl"] .splash-title,
html[dir="rtl"] h1 {
  font-family: "Noto Sans Arabic", var(--display), sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .quiz-prompt {
  font-size: 1.2rem;
  line-height: 1.55;
}

html[dir="rtl"] .chip-term {
  font-family: "Noto Sans Arabic", inherit;
}

.quiz-ar .quiz-prompt {
  font-size: 1.15rem;
}

.quiz-ar .chip-term,
.quiz-ar .quiz-prompt,
.quiz-ar .quiz-opt span {
  font-family: "Noto Sans Arabic", "Source Sans 3", "Segoe UI", sans-serif;
}

.nav-back:hover {
  color: var(--ink);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border: var(--border) solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.tool-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.tool-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-card strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.tool-card span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
}

.quiz-q {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.quiz-q p {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.quiz-progress {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-prompt {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.quiz-opt {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  background: var(--surface);
}

.quiz-opt:hover {
  background: var(--hit);
}

.quiz-opt.is-picked {
  border-color: var(--ink);
}

.quiz-opt.is-correct {
  border-color: #2f7a4b;
  background: color-mix(in srgb, #2f7a4b 12%, var(--surface));
}

.quiz-opt.is-wrong {
  border-color: #a34a3a;
  background: color-mix(in srgb, #a34a3a 10%, var(--surface));
}

.quiz-feedback {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.quiz-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.quiz-mode label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.quiz-mode label:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
}

.review-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.review-item p {
  margin: 0 0 0.25rem;
}

.review-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.review-item.ok .review-line:last-child {
  color: #2f7a4b;
}

.review-item.miss .review-line:last-child {
  color: #a34a3a;
}

.quiz-opts {
  display: grid;
  gap: 0.4rem;
}

.quiz-opts label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.quiz-opts label:hover {
  background: var(--hit);
}

.share-card {
  margin: 0.75rem 0 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--hit);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: pre-wrap;
  line-height: 1.45;
}

.chal-prompt {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hub-section {
  margin-top: 2rem;
}

.hub-section h2 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.hub-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: var(--border) solid transparent;
}

.hub-nav a:hover {
  color: var(--ink);
}

.hub-nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--ink);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.lane-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.lane-card:hover {
  transform: none;
  border-color: var(--ink);
}

.lane-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lane-title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lane-copy {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: none;
  flex: 0;
}

.lane-go {
  display: none;
}

.page-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

@media (max-width: 720px) {
  .lane-grid {
    grid-template-columns: 1fr;
  }

  .hub-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }
}

.hub-section > .sub {
  margin-bottom: 0.85rem;
}

.hub-page {
  position: relative;
}

.hub-glow {
  display: none;
}

.hub-page .top,
.hub-page .hub-hero,
.hub-page .ticker,
.hub-page .main {
  position: relative;
  z-index: 1;
}

.hub-top {
  width: var(--page);
  padding-top: 1.15rem;
  padding-bottom: 0.5rem;
}

.hub-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hub-intro {
  margin: 0 0 1rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hub-hero {
  width: var(--page);
  margin: 1rem auto 1.25rem;
  animation: none;
}

.hub-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.hub-lede {
  margin: 0 0 0.85rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hub-cta .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hub-ticker {
  margin-bottom: 1.5rem;
  animation: none;
}

.hub-page .main.hub {
  width: var(--page);
  margin-bottom: 2.5rem;
  animation: none;
}

.hub-page .hub-section {
  margin-top: 1.35rem;
}

.hub-page .hub-section:first-child {
  margin-top: 0;
}

.tool-card.featured {
  border-color: var(--line);
  background: var(--surface);
}

.hub-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  border-top: var(--border) solid var(--line);
}

.hub-list li {
  border-bottom: var(--border) solid var(--line);
}

.hub-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}

.hub-list a:hover {
  padding-left: 0.15rem;
  background: var(--hit);
}

.hub-list strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hub-list span {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.splash-page .hub-top.splash-top {
  width: var(--page);
  position: relative;
  z-index: 2;
}

.splash {
  position: relative;
  width: 100%;
  min-height: min(86vh, 760px);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0 0 1.5rem;
}

.splash-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
  animation: splashIn 0.7s ease both;
}

[data-theme="dark"] .splash-art {
  opacity: 0.55;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.splash-inner {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-12vh);
  animation: splashRise 0.55s ease 0.08s both;
}

.splash-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 0 24px var(--bg), 0 0 48px var(--bg);
}

.splash-lede {
  margin: 0 0 1.5rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  text-shadow: 0 0 18px var(--bg), 0 0 36px var(--bg);
}

.splash-note {
  margin: 1.1rem 0 0;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-shadow: 0 0 18px var(--bg), 0 0 36px var(--bg);
}

.splash-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.splash-cta .btn {
  min-width: 8.5rem;
  justify-content: center;
  text-decoration: none;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.splash-cta .btn.lure {
  gap: 0.45rem;
  min-width: 0;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1rem;
}

.splash-cta .btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.tag-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: var(--accent-ink);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  vertical-align: 0.12em;
}

.btn.lure .tag-new {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}

.hub-list a.is-lure strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hub-list a.is-lure .tag-new {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.splash-main {
  position: relative;
  z-index: 1;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 0.92; transform: scale(1); }
}

@keyframes splashRise {
  from { opacity: 0; transform: translateY(calc(-12vh + 10px)); }
  to { opacity: 1; transform: translateY(-12vh); }
}

@media (max-width: 720px) {
  .splash {
    min-height: min(78vh, 640px);
  }

  .splash-art {
    object-position: 85% center;
  }

  .splash-inner {
    padding-top: 3.25rem;
    transform: translateY(-8vh);
  }

  @keyframes splashRise {
    from { opacity: 0; transform: translateY(calc(-8vh + 10px)); }
    to { opacity: 1; transform: translateY(-8vh); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-art,
  .splash-inner {
    animation: none;
  }
}

@keyframes hubIn {
  from { opacity: 1; transform: none; }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-hero,
  .hub-ticker,
  .hub-page .main.hub {
    animation: none;
  }

  .hub-list a {
    transition: none;
  }
}

@media (max-width: 560px) {
  .hub-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .hub-list span {
    text-align: left;
  }
}

.out .row {
  margin-top: 0.75rem;
}

.theme-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 2px 2px 0 var(--ink);
}

.theme-icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset -0.28rem 0 0 0 var(--surface);
}

[data-theme="dark"] .theme-icon {
  box-shadow: none;
}

.ticker {
  margin: 0 0 1.75rem;
}

.ticker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: var(--page);
  margin: 0 auto 0.7rem;
}

.ticker-head h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ticker-viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
  padding: 0.35rem 0;
  animation: slide 42s linear infinite;
  will-change: transform;
}

.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 7.5rem;
  border: var(--border) solid var(--chip-edge);
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  padding: 0.65rem 1rem;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  outline: none;
  background: var(--hit);
}

.chip-term {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chip-def {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  width: var(--page);
  margin: 0 auto 3rem;
}

.main h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-share {
  margin: -0.25rem 0 1.25rem;
}

.page-share .btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.05rem;
}

.mode {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  margin-bottom: 1rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--ink);
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.mode-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

textarea {
  width: 100%;
  border: var(--border) solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 7rem;
  box-shadow: var(--shadow);
}

textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn {
  border: var(--border) solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn.quiet {
  background: var(--surface);
  color: var(--ink);
  border: var(--border) solid var(--line);
}

.btn.quiet:hover {
  color: var(--ink);
  background: var(--hit);
}

.out {
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border: var(--border) solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.out-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.out-text {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hits {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
  border: var(--border) solid var(--line);
  border-radius: 16px;
  background: var(--hit);
  box-shadow: 2px 2px 0 var(--ink);
}

.hits[hidden] {
  display: none;
}

.hit-head,
.hit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.hit-head {
  padding: 0 0.15rem 0.35rem;
  border-bottom: 2px solid var(--line-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hit-row {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.hit-from,
.hit-to {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  line-height: 1.3;
  word-break: break-word;
}

.hit-from {
  font-weight: 700;
}

.hit-to {
  color: var(--muted);
  font-weight: 500;
}

.hit-arrow {
  width: 1.6rem;
  height: 1.6rem;
  justify-self: center;
  border-radius: 999px;
  background: var(--ink);
  position: relative;
}

.hit-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg) translate(-1px, -1px);
}

html[dir="rtl"] .hit-arrow::before {
  transform: rotate(135deg) translate(-1px, -1px);
}

@media (max-width: 560px) {
  .hit-head,
  .hit-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hit-head span:nth-child(2),
  .hit-arrow {
    display: none;
  }

  .hit-head {
    display: none;
  }

  .hit-to {
    position: relative;
    margin-inline-start: 0.75rem;
  }

  .hit-to::before {
    content: "→";
    position: absolute;
    left: -0.7rem;
    top: 0.45rem;
    color: var(--ink);
    font-weight: 700;
  }

  html[dir="rtl"] .hit-to::before {
    left: auto;
    right: -0.7rem;
    content: "←";
  }
}

.hits li {
  font-size: 0.85rem;
  color: var(--muted);
}

.hits strong {
  color: var(--ink);
  font-weight: 600;
}

.hit-tip {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.foot {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.foot p {
  margin: 0;
}

/* One reserved slot after the main task. Quiet chrome. No sticky overlays. */
.ad-slot {
  width: var(--page);
  margin: 2rem auto 1.25rem;
  display: grid;
  gap: 0.35rem;
  justify-items: stretch;
  position: relative;
  z-index: 1;
}

.ad-slot--mid {
  margin: 1.75rem auto;
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ad-frame {
  width: 100%;
  min-height: 100px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.ad-frame .adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.splash .ad-slot,
.splash-cta .ad-slot,
.top .ad-slot {
  display: none;
}

@media (max-width: 640px) {
  .ad-slot {
    margin: 1.5rem auto 1rem;
  }

  .ad-frame {
    min-height: 90px;
  }
}

.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;
}

@media (max-width: 640px) {
  .ticker-hint {
    display: none;
  }

  .chip {
    min-width: 6.5rem;
    padding: 0.6rem 0.75rem;
  }

  .chip-def {
    max-width: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: var(--page);
    margin: 0 auto;
    justify-content: flex-start;
  }

  .ticker-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
    padding-inline: 1rem;
  }
}
