:root {
  color-scheme: dark;
  --bg: #0a0914;
  --bg-2: #100e20;
  --panel: rgba(18, 15, 34, .82);
  --panel-solid: #151129;
  --panel-soft: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.14);
  --text: #faf8ff;
  --muted: #b3afc2;
  --faint: #7f7a92;
  --accent: #b892ff;
  --accent-2: #ff8fbe;
  --accent-3: #7ee7f6;
  --accent-soft: rgba(184,146,255,.12);
  --success: #7ee6ae;
  --shadow: 0 22px 70px rgba(0,0,0,.28);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
}

html.light {
  color-scheme: light;
  --bg: #f2eef9;
  --bg-2: #fbf7ff;
  --panel: rgba(255,255,255,.90);
  --panel-solid: #fff;
  --panel-soft: rgba(118,81,213,.075);
  --line: rgba(55,42,82,.13);
  --line-strong: rgba(55,42,82,.20);
  --text: #211a31;
  --muted: #5f586d;
  --faint: #81798f;
  --accent: #7651d5;
  --accent-2: #d95487;
  --accent-3: #208fa7;
  --accent-soft: rgba(118,81,213,.105);
  --success: #258f60;
  --shadow: 0 24px 70px rgba(83,61,112,.16);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 2%, rgba(184,146,255,.14), transparent 23rem),
    radial-gradient(circle at 92% 7%, rgba(255,143,190,.10), transparent 20rem),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,.035) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 65%, rgba(255,255,255,.025) 0 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.ambient,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: 12%;
  left: -180px;
  border-radius: 50%;
  background: rgba(184,146,255,.07);
  filter: blur(100px);
}

.ambient-two {
  width: 320px;
  height: 320px;
  top: 52%;
  right: -110px;
  border-radius: 50%;
  background: rgba(255,143,190,.055);
  filter: blur(100px);
}

.grain {
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 70px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184,146,255,.25);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 35%),
    linear-gradient(135deg, rgba(184,146,255,.22), rgba(255,143,190,.14));
  box-shadow: 0 10px 25px rgba(0,0,0,.14);
}

.brand-star {
  color: var(--accent-2);
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,143,190,.35));
}

.brand-wordmark {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-wordmark strong {
  font-size: 15px;
  letter-spacing: -.035em;
}

.brand-wordmark small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .28em;
  font-weight: 850;
}

.source-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.source-nav::-webkit-scrollbar {
  display: none;
}

.source-nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  transition: .18s ease;
}

.source-nav a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: .18s ease;
}

.action-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-soft);
  transform: translateY(-1px);
}

.action-button > span:first-child {
  color: var(--accent);
  font-size: 15px;
}

.page,
footer {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.page {
  padding: 28px 0 72px;
}

.hero {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 10%, rgba(184,146,255,.17), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255,143,190,.13), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 42px 48px;
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 900;
}

.kicker-jp,
.section-kicker-jp {
  color: var(--accent-2);
  letter-spacing: .06em;
  font-size: 11px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(184,146,255,.08);
}

.hero h1 {
  max-width: 760px;
  margin: 15px 0 0;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero h1 span {
  display: inline-block;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(184,146,255,.15);
}

.hero-copy-text {
  max-width: 680px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero-status {
  margin-top: 23px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(126,230,174,.18);
  border-radius: 999px;
  background: rgba(126,230,174,.065);
  color: var(--success);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(126,230,174,.08);
}

.hero-divider {
  opacity: .45;
}

.hero-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 10px 15px 45px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.08) 0 12px,
    transparent 12px 25px
  );
  transform: rotate(-10deg);
}

.hero-visual::after {
  inset: 36px 25px auto 80px;
  opacity: .55;
  transform: rotate(14deg);
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184,146,255,.24);
}

.orbit-large {
  width: 245px;
  height: 245px;
  top: 36px;
  right: 44px;
  box-shadow: 0 0 0 22px rgba(184,146,255,.02), 0 0 80px rgba(184,146,255,.11);
}

.orbit-small {
  width: 172px;
  height: 172px;
  top: 74px;
  right: 81px;
  border-style: dashed;
  border-color: rgba(255,143,190,.22);
  transform: rotate(24deg);
}

.hero-spark {
  position: absolute;
  color: var(--accent-2);
  filter: drop-shadow(0 0 9px rgba(255,143,190,.36));
  animation: floaty 4.5s ease-in-out infinite;
}

.spark-one {
  top: 31px;
  right: 55px;
  font-size: 20px;
}

.spark-two {
  top: 215px;
  right: 45px;
  color: var(--accent-3);
  font-size: 15px;
  animation-delay: .8s;
}

.hero-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(.4px);
}

.cloud-one {
  width: 95px;
  height: 38px;
  top: 78px;
  right: 222px;
  background: rgba(255,255,255,.035);
  transform: rotate(-9deg);
}

.cloud-two {
  width: 74px;
  height: 30px;
  top: 181px;
  right: 202px;
  background: rgba(255,143,190,.045);
  transform: rotate(13deg);
}

.mascot {
  position: absolute;
  top: 80px;
  right: 102px;
  width: 135px;
  height: 145px;
  animation: floaty 4.5s ease-in-out infinite;
}

.mascot-face {
  position: absolute;
  inset: 18px 8px 22px;
  border-radius: 46% 46% 50% 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.28), transparent 19%),
    linear-gradient(145deg, #fefbff, #ddd2ff);
  border: 2px solid rgba(255,255,255,.54);
  box-shadow: 0 20px 45px rgba(0,0,0,.22), 0 0 50px rgba(184,146,255,.16);
}

html.light .mascot-face {
  background: linear-gradient(145deg, #fff, #ece5ff);
}

.mascot-ear {
  position: absolute;
  top: 9px;
  width: 34px;
  height: 47px;
  background: linear-gradient(145deg, #fefbff, #d8cbff);
  border: 2px solid rgba(255,255,255,.52);
  z-index: 0;
}

.ear-left {
  left: 13px;
  border-radius: 85% 18% 60% 18%;
  transform: rotate(-28deg);
}

.ear-right {
  right: 13px;
  border-radius: 18% 85% 18% 60%;
  transform: rotate(28deg);
}

.mascot-eye {
  position: absolute;
  top: 53px;
  width: 9px;
  height: 15px;
  border-radius: 50%;
  background: #352e4f;
}

.eye-left { left: 38px; }
.eye-right { right: 38px; }

.mascot-mouth {
  position: absolute;
  left: 50%;
  top: 73px;
  transform: translateX(-50%);
  color: #7b587d;
  font-size: 18px;
  line-height: 1;
}

.mascot-blush {
  position: absolute;
  top: 70px;
  width: 16px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,143,190,.36);
}

.blush-left { left: 18px; }
.blush-right { right: 18px; }

.mascot-label {
  position: absolute;
  right: -5px;
  bottom: 1px;
  padding: 5px 9px;
  border: 1px solid rgba(255,143,190,.22);
  border-radius: 999px;
  background: rgba(255,143,190,.10);
  color: var(--accent-2);
  font-size: 9px;
  letter-spacing: .1em;
  font-weight: 900;
  transform: rotate(-7deg);
}

.hero-japanese {
  position: absolute;
  right: 21px;
  bottom: 22px;
  color: rgba(255,255,255,.055);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.stat-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--panel-soft);
  color: var(--accent);
  font-size: 15px;
}

.stat-label {
  display: block;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.language-switcher-wrap {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.language-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.language-tab {
  min-height: 44px;
  padding: 0 13px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.language-tab:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.language-tab.active {
  color: var(--text);
  border-color: rgba(184,146,255,.22);
  background: var(--accent-soft);
}

.language-tab-main {
  font-size: 10px;
  font-weight: 900;
}

.language-tab-sub {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
}

.language-hint {
  max-width: 430px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.story-translation {
  padding: 3px 6px;
  border: 1px solid rgba(126,231,246,.20);
  border-radius: 999px;
  background: rgba(126,231,246,.07);
  color: var(--accent-3);
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}

html.light .language-tabs {
  background: rgba(255,255,255,.88);
  border-color: rgba(55,42,82,.13);
  box-shadow: 0 9px 24px rgba(88,64,118,.07);
}

html.light .language-tab.active {
  border-color: rgba(118,81,213,.22);
  background: rgba(118,81,213,.09);
}

html.light .story-translation {
  border-color: rgba(32,143,167,.18);
  background: rgba(32,143,167,.065);
  color: var(--accent-3);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding: 20px 0 14px;
}

.search {
  position: relative;
  width: min(460px, 100%);
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 41px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255,255,255,.027);
  color: var(--text);
  font-size: 13px;
  transition: .18s ease;
}

.search input::placeholder {
  color: var(--faint);
}

.search input:focus {
  border-color: rgba(184,146,255,.42);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(255,255,255,.045);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 8px;
  color: var(--faint);
  font-size: 21px;
}

.search kbd {
  position: absolute;
  right: 13px;
  top: 13px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.filters button {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  transition: .18s ease;
}

.filters button:hover,
.filters button.active {
  border-color: rgba(184,146,255,.22);
  background: var(--accent-soft);
  color: var(--text);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px;
}

.section-head h2 {
  margin: 4px 0 0;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.048em;
}

.result-count {
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 24px;
  align-items: start;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.page-button {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  transition: .18s ease;
}

.page-button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(184,146,255,.28);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.page-button.active {
  color: var(--text);
  border-color: rgba(184,146,255,.34);
  background: var(--accent-soft);
  box-shadow: 0 7px 20px rgba(0,0,0,.10);
}

.page-button:disabled {
  opacity: .35;
  cursor: default;
}

.page-ellipsis {
  min-width: 28px;
  color: var(--faint);
  text-align: center;
  font-size: 11px;
}

.pagination-top {
  margin-top: 0;
}

.pagination-info {
  margin-top: 9px;
  color: var(--faint);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
}

.story {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(0,0,0,.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.story:hover {
  transform: translateY(-3px);
  border-color: rgba(184,146,255,.24);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.story.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(270px, 37%) minmax(0, 1fr);
}

.story-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(184,146,255,.18), transparent 32%),
    linear-gradient(145deg, #17132a, #0e0c1a);
}

.story:not(.featured) .story-image {
  aspect-ratio: 15 / 8.5;
}

.story.featured .story-image {
  height: 100%;
  min-height: 245px;
  aspect-ratio: auto;
}

.story-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.story:hover .story-image img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.22));
  pointer-events: none;
}

.story-image.fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background:
    radial-gradient(circle at 50% 34%, rgba(184,146,255,.22), transparent 31%),
    radial-gradient(circle at 80% 80%, rgba(255,143,190,.11), transparent 34%),
    linear-gradient(145deg, #17132a, #0e0c1a);
}

.fallback-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184,146,255,.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(184,146,255,.20), rgba(255,143,190,.12));
  color: var(--accent-2);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.fallback-brand {
  color: rgba(255,255,255,.86);
  font-size: 11px;
  letter-spacing: -.02em;
}

.image-fallback-label {
  color: rgba(255,255,255,.50);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 850;
}

.image-error-brand {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 5px;
  background:
    radial-gradient(circle at 50% 34%, rgba(184,146,255,.22), transparent 31%),
    radial-gradient(circle at 80% 80%, rgba(255,143,190,.11), transparent 34%),
    linear-gradient(145deg, #17132a, #0e0c1a);
}

.story-image.fallback .image-error-brand {
  display: none;
}

.story-image.fallback::before {
  content: "✦";
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(255,143,190,.45);
  font-size: 18px;
}

.story-image.fallback span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 900;
}

.story-body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 17px 17px;
}

.story.featured .story-body {
  padding: 25px 27px 23px;
  justify-content: center;
}

.story-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-weight: 850;
}

.story-source-name {
  color: var(--muted);
}

.story-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--source-accent, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--source-accent, var(--accent)) 10%, transparent);
}

.story-fresh {
  padding: 3px 6px;
  border: 1px solid rgba(126,230,174,.18);
  border-radius: 999px;
  background: rgba(126,230,174,.065);
  color: var(--success);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .09em;
}

.story-content h3 {
  margin: 9px 0 0;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -.028em;
  font-weight: 820;
  transition: color .18s ease;
}

.story.featured .story-content h3 {
  max-width: 850px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.story:hover .story-content h3 {
  color: var(--accent);
}

.story-content p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.story.featured .story-content p {
  max-width: 800px;
  font-size: 14px;
  line-height: 1.68;
}

.story-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-read {
  color: var(--accent);
}

.story-arrow {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  transition: .18s ease;
}

.story:hover .story-arrow {
  color: var(--text);
  border-color: rgba(184,146,255,.28);
  background: var(--accent-soft);
  transform: translate(1px,-1px);
}

.sidebar {
  position: sticky;
  top: 92px;
}

.sidebar-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 12px 35px rgba(0,0,0,.09);
}

.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-heading h3 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.035em;
}

.sidebar-badge {
  padding: 5px 7px;
  border: 1px solid rgba(184,146,255,.18);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.source-list {
  display: grid;
}

.source-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.source-link {
  min-width: 0;
  text-decoration: none;
}

.source-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 820;
}

.source-meta {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.source-link:hover .source-name {
  color: var(--accent);
}

.source-rss {
  width: 32px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,146,255,.18);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--muted);
  text-decoration: none;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: .18s ease;
}

.source-rss:hover {
  color: var(--text);
  border-color: rgba(184,146,255,.32);
  transform: translateY(-1px);
}

.sidebar-note {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.sidebar-note-mark {
  flex: 0 0 auto;
  color: var(--accent-2);
}

.all-rss-link {
  margin-top: 15px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
  text-decoration: none;
  transition: .18s ease;
}

.all-rss-link:hover {
  border-color: rgba(184,146,255,.24);
  background: var(--accent-soft);
}

.all-rss-link small {
  display: block;
  color: var(--faint);
  font-size: 7px;
  letter-spacing: .13em;
  font-weight: 900;
}

.all-rss-link strong {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.all-rss-arrow {
  color: var(--accent);
  font-size: 16px;
}

.empty {
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--panel);
}

.empty-icon {
  color: var(--accent-2);
  font-size: 24px;
}

.empty h3 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -.03em;
}

.empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand strong {
  color: var(--muted);
  font-size: 10px;
}

.brand-mark-small {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  font-size: 11px;
}

/* Light theme: preserve the visual richness of dark mode without changing dark mode. */
html.light body {
  background:
    radial-gradient(circle at 7% 0%, rgba(184,146,255,.20), transparent 25rem),
    radial-gradient(circle at 92% 7%, rgba(255,143,190,.16), transparent 23rem),
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.72), transparent 31rem),
    linear-gradient(180deg, #fbf8ff 0%, #f2eef9 58%, #ebe5f5 100%);
}

html.light body::before {
  background-image:
    radial-gradient(circle at 20% 40%, rgba(118,81,213,.075) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 65%, rgba(217,84,135,.055) 0 1px, transparent 1px);
}

html.light .ambient-one {
  background: rgba(151,113,222,.13);
}

html.light .ambient-two {
  background: rgba(225,98,143,.10);
}

html.light .topbar {
  background: rgba(250,247,255,.84);
  border-bottom-color: rgba(55,42,82,.12);
  box-shadow: 0 8px 28px rgba(83,61,112,.07);
}

html.light .source-nav a:hover,
html.light .action-button:hover {
  background: rgba(118,81,213,.075);
}

html.light .hero {
  background:
    radial-gradient(circle at 8% 8%, rgba(184,146,255,.22), transparent 30%),
    radial-gradient(circle at 86% 15%, rgba(255,143,190,.18), transparent 29%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,244,255,.92) 48%, rgba(255,248,252,.94)),
    #f9f5ff;
  border-color: rgba(78,58,110,.16);
  box-shadow:
    0 30px 80px rgba(88,64,118,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
}

html.light .hero::after {
  opacity: .95;
}

html.light .hero-copy-text {
  color: #5e576b;
}

html.light .status-pill {
  background: rgba(45,143,96,.075);
  border-color: rgba(45,143,96,.20);
}

html.light .hero-orbit {
  border-color: rgba(118,81,213,.30);
}

html.light .orbit-small {
  border-color: rgba(217,84,135,.28);
}

html.light .cloud-one {
  background: rgba(118,81,213,.07);
}

html.light .cloud-two {
  background: rgba(217,84,135,.07);
}

html.light .hero-japanese {
  color: rgba(80,61,107,.10);
}

html.light .stat-card,
html.light .story,
html.light .sidebar-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(249,245,255,.91));
  border-color: rgba(55,42,82,.13);
  box-shadow:
    0 12px 32px rgba(88,64,118,.075),
    inset 0 1px 0 rgba(255,255,255,.86);
}

html.light .stat-card:hover,
html.light .story:hover {
  border-color: rgba(118,81,213,.25);
  box-shadow:
    0 18px 42px rgba(88,64,118,.12),
    inset 0 1px 0 rgba(255,255,255,.92);
}

html.light .story-image {
  background:
    radial-gradient(circle at 30% 20%, rgba(184,146,255,.24), transparent 35%),
    linear-gradient(145deg, #e8e0f3, #d7cfe5);
}

html.light .story-image::after {
  background: linear-gradient(180deg, transparent 48%, rgba(32,25,48,.22));
}

html.light .story-source-name {
  color: #625b70;
}

html.light .story-content h3 {
  color: #241d33;
}

html.light .story-content p {
  color: #665e73;
}

html.light .story-footer {
  color: #827a90;
}

html.light .story-arrow {
  border-color: rgba(55,42,82,.13);
}

html.light .search input {
  background: rgba(255,255,255,.78);
  border-color: rgba(55,42,82,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

html.light .search input:focus {
  background: rgba(255,255,255,.96);
  border-color: rgba(118,81,213,.38);
}

html.light .filters button:hover,
html.light .filters button.active {
  background: rgba(118,81,213,.11);
  border-color: rgba(118,81,213,.24);
}

html.light .sidebar-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,143,190,.10), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(247,242,254,.94));
}

html.light .sidebar-badge,
html.light .source-rss,
html.light .all-rss-link {
  background: rgba(118,81,213,.075);
  border-color: rgba(118,81,213,.19);
}

html.light .all-rss-link:hover {
  background: rgba(118,81,213,.11);
}

html.light .empty {
  background: rgba(255,255,255,.82);
  border-color: rgba(55,42,82,.18);
}

html.light .page-button {
  background: rgba(255,255,255,.88);
  border-color: rgba(55,42,82,.14);
  box-shadow: 0 7px 18px rgba(88,64,118,.06);
}

html.light .page-button:hover:not(:disabled),
html.light .page-button.active {
  background: rgba(118,81,213,.10);
  border-color: rgba(118,81,213,.25);
  box-shadow: 0 8px 20px rgba(88,64,118,.10);
}

html.light footer {
  border-top-color: rgba(55,42,82,.12);
}

@media (max-width: 1120px) {
  .topbar-inner {
    grid-template-columns: 180px minmax(0, 1fr) 170px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-card {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .language-switcher-wrap {
    align-items: stretch;
  }

  .language-tabs {
    width: 100%;
  }

  .language-tab {
    flex: 1 1 0;
  }

  .language-hint {
    max-width: none;
    text-align: left;
  }


  .topbar-inner,
  .page,
  footer {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    min-height: 63px;
  }

  .source-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .topbar {
    position: relative;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 30px 10px;
  }

  .hero-visual {
    min-height: 215px;
  }

  .orbit-large {
    top: 0;
    right: 80px;
    width: 195px;
    height: 195px;
  }

  .orbit-small {
    top: 29px;
    right: 112px;
    width: 137px;
    height: 137px;
  }

  .mascot {
    top: 26px;
    right: 136px;
    transform: scale(.82);
    transform-origin: top right;
  }

  .hero-japanese {
    right: 28px;
    bottom: 20px;
    font-size: 23px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

  .story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story.featured {
    grid-column: 1 / -1;
    display: grid;
  }

  .story.featured .story-image {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .story.featured .story-body {
    padding: 17px;
  }

  .story.featured .story-content h3 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .page,
  footer {
    width: calc(100% - 18px);
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-wordmark strong {
    font-size: 14px;
  }

  .action-button span:last-child {
    display: none;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 28px 22px 5px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-copy-text {
    font-size: 13px;
  }

  .hero-status {
    gap: 6px;
  }

  .hero-visual {
    min-height: 190px;
  }

  .orbit-large {
    right: 41px;
    width: 168px;
    height: 168px;
  }

  .orbit-small {
    right: 70px;
    width: 118px;
    height: 118px;
  }

  .mascot {
    top: 21px;
    right: 82px;
    transform: scale(.73);
  }

  .spark-one {
    right: 34px;
  }

  .hero-japanese {
    right: 12px;
    font-size: 19px;
  }

  .section-head {
    align-items: flex-end;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .story-list {
    grid-template-columns: 1fr;
  }

  .story.featured {
    display: flex;
  }

  .story.featured .story-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .story-content h3 {
    font-size: 17px;
  }

  .story-content p {
    font-size: 12px;
  }

  .story.featured .story-content h3 {
    font-size: 22px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
.story-image > img + .image-error-brand {
  display: none;
}

.story-image.image-failed .image-error-brand {
  display: grid;
}

html.light .story-image.fallback,
html.light .story-image:has(> img[style*="display: none"]) .image-error-brand {
  background:
    radial-gradient(circle at 50% 34%, rgba(184,146,255,.20), transparent 31%),
    radial-gradient(circle at 80% 80%, rgba(255,143,190,.12), transparent 34%),
    linear-gradient(145deg, #eee8f8, #ddd4eb);
}

html.light .fallback-brand {
  color: rgba(42,31,55,.84);
}

html.light .image-fallback-label {
  color: rgba(58,47,70,.55);
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
  transition: .18s ease;
}

.github-link > span:first-child {
  color: var(--accent);
  font-size: 12px;
}

.github-link > span:last-child {
  color: var(--faint);
  font-size: 11px;
}

.github-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .footer-note {
    order: 3;
  }

  .github-link {
    order: 2;
  }
}
