:root {
  --space-bg: #030712;
  --space-bg-2: #09111f;
  --space-bg-3: #14103a;
  --card: rgba(12, 20, 39, 0.72);
  --card-solid: rgba(8, 14, 28, 0.94);
  --text: #f8fafc;
  --muted: #a8b3cf;
  --muted-2: #71809f;
  --accent: #8bd3ff;
  --accent-2: #d8b4fe;
  --accent-soft: rgba(139, 211, 255, 0.12);
  --border: rgba(148, 163, 184, 0.24);
  --border-bright: rgba(226, 232, 240, 0.42);
  --star: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
}

body.theme-dawn {
  --space-bg: #111827;
  --space-bg-2: #1e1b4b;
  --space-bg-3: #312e81;
  --card: rgba(255, 255, 255, 0.13);
  --card-solid: rgba(15, 23, 42, 0.9);
  --text: #ffffff;
  --muted: #d7def4;
  --muted-2: #a8b3cf;
  --accent: #fef3c7;
  --accent-2: #93c5fd;
  --accent-soft: rgba(254, 243, 199, 0.13);
  --border: rgba(226, 232, 240, 0.26);
  --border-bright: rgba(255, 255, 255, 0.52);
  --star: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.38);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(147, 197, 253, 0.2) 0, transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(216, 180, 254, 0.18) 0, transparent 30%),
    radial-gradient(circle at 52% 88%, rgba(34, 211, 238, 0.11) 0, transparent 28%),
    linear-gradient(145deg, var(--space-bg) 0%, var(--space-bg-2) 46%, var(--space-bg-3) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

.background-space {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.background-space::before,
.background-space::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.98) 20%,
    rgba(139, 211, 255, 0.82) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
  transform: rotate(200deg);
}

.background-space::before {
  top: 14%;
  right: 5%;
  animation: shooting-star-left 14s linear infinite;
  animation-delay: 1.8s;
}

.background-space::after {
  top: 32%;
  right: 1%;
  animation: shooting-star-left 18s linear infinite;
  animation-delay: 8.2s;
}

.stars,
.stars::before,
.stars::after {
  position: absolute;
  inset: 0;
  content: "";
  background-repeat: repeat;
}

.stars {
  background-image:
    radial-gradient(circle, var(--star) 0 1px, transparent 1.35px),
    radial-gradient(circle, rgba(139, 211, 255, 0.8) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(216, 180, 254, 0.75) 0 1px, transparent 1.25px);
  background-size: 90px 90px, 140px 140px, 210px 210px;
  background-position: 4px 8px, 33px 48px, 88px 22px;
  opacity: 0.82;
  animation: twinkle-a 6.5s ease-in-out infinite;
}

.stars::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.1px);
  background-size: 260px 260px, 320px 320px;
  background-position: 28px 120px, 140px 18px;
  opacity: 0.5;
  animation: twinkle-b 8.2s ease-in-out infinite;
}

.stars::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 1.4px, transparent 1.8px),
    radial-gradient(circle, rgba(139, 211, 255, 0.58) 0 1.6px, transparent 2px);
  background-size: 520px 520px, 620px 620px;
  background-position: 220px 80px, 40px 320px;
  opacity: 0.42;
  animation: twinkle-c 9.5s ease-in-out infinite;
}

.twinkle-stars {
  position: absolute;
  inset: 0;
}

.twinkle-star {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(139, 211, 255, 0.45);
  opacity: 0.16;
  transform: scale(0.65);
  animation-name: star-pulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.floating-kuma-ufo {
  position: absolute;
  z-index: 0;
  width: clamp(54px, 6vw, 96px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(139, 211, 255, 0.42))
    drop-shadow(0 0 20px rgba(254, 243, 199, 0.24));
  transform: translate3d(0, 0, 0) rotate(-4deg);
  will-change: transform, opacity;
}

.floating-kuma-ufo-a {
  top: 18%;
  right: -120px;
  animation: kuma-ufo-float-left 34s ease-in-out infinite;
  animation-delay: 5s;
}

.floating-kuma-ufo-b {
  top: 62%;
  left: -120px;
  width: clamp(44px, 5vw, 78px);
  opacity: 0;
  animation: kuma-ufo-float-right 42s ease-in-out infinite;
  animation-delay: 22s;
}

.nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(68px);
  mix-blend-mode: screen;
}

.nebula-a {
  width: 440px;
  height: 440px;
  top: -130px;
  left: -120px;
  background: rgba(59, 130, 246, 0.22);
}

.nebula-b {
  width: 420px;
  height: 420px;
  top: 90px;
  right: -110px;
  background: rgba(168, 85, 247, 0.2);
}

.nebula-c {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: 36%;
  background: rgba(34, 211, 238, 0.13);
}

.orbit-line {
  position: absolute;
  width: 760px;
  height: 240px;
  top: 118px;
  right: -180px;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.orbit-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 46px;
  left: 142px;
  border-radius: 999px;
  background: #fef3c7;
  box-shadow: 0 0 18px rgba(254, 243, 199, 0.95);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  animation: fade-down 0.42s ease-out both;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(139, 211, 255, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.86) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 62%, rgba(216, 180, 254, 0.72) 0 4px, transparent 5px),
    linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(88, 28, 135, 0.32));
  box-shadow: 0 0 24px rgba(139, 211, 255, 0.18);
  color: #ffffff;
  font-size: 1.15rem;
  animation: brand-float 5s ease-in-out infinite;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-buttons {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  cursor: pointer;
  user-select: none;
}

.language-buttons::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}

.language-buttons:hover {
  border-color: rgba(139, 211, 255, 0.72);
  box-shadow:
    0 0 28px rgba(139, 211, 255, 0.14),
    var(--shadow-soft);
}

.language-buttons:focus-visible {
  outline: 3px solid rgba(139, 211, 255, 0.34);
  outline-offset: 4px;
}

.language-button {
  position: relative;
  z-index: 1;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.language-button.is-active {
  background: rgba(139, 211, 255, 0.2);
  color: var(--text);
}

.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-width: 136px;
  padding: 0 16px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(14px);
}

.mode-button:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 211, 255, 0.72);
  box-shadow: 0 0 28px rgba(139, 211, 255, 0.16), var(--shadow-soft);
}

.mode-button:active {
  transform: translateY(0) scale(0.97);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  align-items: center;
  gap: 34px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 15px;
  border: 1px solid rgba(139, 211, 255, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(139, 211, 255, 0.08);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.45rem, 4.85vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 0 34px rgba(139, 211, 255, 0.16);
  white-space: nowrap;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.status-summary {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: fade-up 0.5s ease-out 0.1s both;
}

.status-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 211, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(216, 180, 254, 0.15), transparent 30%);
  pointer-events: none;
}

.summary-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.summary-item {
  min-height: 120px;
  padding: 14px 10px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-number {
  margin: 0;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(139, 211, 255, 0.18);
}

.summary-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-panel {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  animation: fade-up 0.5s ease-out 0.16s both;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-mark {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--accent);
  z-index: 1;
  font-weight: 900;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(3, 7, 18, 0.48);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.search-input:focus {
  border-color: rgba(139, 211, 255, 0.68);
  background: rgba(3, 7, 18, 0.72);
  box-shadow: 0 0 0 4px rgba(139, 211, 255, 0.1), 0 0 26px rgba(139, 211, 255, 0.1);
}

.category-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-button {
  white-space: nowrap;
  padding: 10px 15px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-button:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 211, 255, 0.38);
  color: var(--text);
}

.category-button:active {
  transform: scale(0.96);
}

.category-button.is-active {
  border-color: rgba(139, 211, 255, 0.62);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(147, 51, 234, 0.22));
  color: #ffffff;
  box-shadow: 0 0 22px rgba(139, 211, 255, 0.14);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(22px);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
  animation: fade-up 0.36s ease-out both;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 211, 255, 0.11), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(216, 180, 254, 0.1), transparent 22%);
  opacity: 0.85;
  pointer-events: none;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.tool-card > * {
  position: relative;
}

.tool-card:not(.is-disabled):hover {
  transform: translateY(-7px) scale(1.012);
  border-color: rgba(139, 211, 255, 0.56);
  box-shadow: 0 0 34px rgba(139, 211, 255, 0.11), var(--shadow);
}

.tool-card:not(.is-disabled):active {
  transform: translateY(-3px) scale(0.99);
}

.tool-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.28) brightness(0.78);
}

.tool-card.is-disabled::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.08), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(100, 116, 139, 0.08), transparent 22%);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(139, 211, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(147, 51, 234, 0.14));
  color: var(--accent);
  font-size: 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(139, 211, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:not(.is-disabled):hover .tool-icon {
  transform: rotate(-4deg) scale(1.08);
}

.tool-card.is-disabled .tool-icon {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(145deg, rgba(51, 65, 85, 0.32), rgba(30, 41, 59, 0.28));
  color: #94a3b8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.status-available {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(6, 78, 59, 0.42);
  color: #a7f3d0;
}

.status-production {
  border-color: rgba(251, 146, 60, 0.42);
  background: rgba(154, 52, 18, 0.34);
  color: #fdba74;
}

body.theme-dawn .status-production {
  border-color: rgba(251, 146, 60, 0.48);
  background: rgba(194, 65, 12, 0.24);
  color: #ffedd5;
}

.status-idea {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(30, 41, 59, 0.52);
  color: #cbd5e1;
}

.tool-category {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tool-card.is-disabled .tool-category,
.tool-card.is-disabled .open-text {
  color: #94a3b8;
}

.tool-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.tool-description {
  flex: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.open-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 950;
  text-shadow: 0 0 14px rgba(139, 211, 255, 0.16);
}

.tool-card.is-development {
  overflow: visible;
}

.tool-hover-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: 220px;
  padding: 8px 12px;
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.96);
  color: #fff7ed;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tool-card.is-development:hover .tool-hover-message {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portal-info-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.portal-info-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.portal-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 211, 255, 0.12), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(216, 180, 254, 0.1), transparent 30%);
  pointer-events: none;
}

.portal-info-card summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.portal-info-card summary::-webkit-details-marker {
  display: none;
}

.portal-info-card summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--accent);
  font-weight: 950;
  transition: transform 0.18s ease;
}

.portal-info-card[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.info-summary-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(139, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(139, 211, 255, 0.08);
}

.portal-info-body {
  position: relative;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.portal-info-body p {
  margin: 0;
}

.portal-info-body p + p {
  margin-top: 10px;
}

.status-note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.status-note-grid h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 950;
}

.status-note-grid p {
  margin: 0;
}

.portal-info-card:hover {
  border-color: rgba(139, 211, 255, 0.42);
  box-shadow:
    0 0 30px rgba(139, 211, 255, 0.1),
    var(--shadow-soft);
}

.portal-info-card summary:focus-visible {
  outline: 3px solid rgba(139, 211, 255, 0.34);
  outline-offset: -3px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(22px);
  animation: fade-up 0.28s ease-out both;
}

.empty-title {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
}

.empty-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  margin-top: 48px;
  color: var(--muted-2);
  text-align: center;
  font-size: 0.88rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-float {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(8deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes twinkle-a {
  0%, 100% {
    opacity: 0.72;
  }

  25% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.62;
  }

  75% {
    opacity: 0.84;
  }
}

@keyframes twinkle-b {
  0%, 100% {
    opacity: 0.42;
  }

  30% {
    opacity: 0.7;
  }

  60% {
    opacity: 0.36;
  }

  85% {
    opacity: 0.6;
  }
}

@keyframes twinkle-c {
  0%, 100% {
    opacity: 0.38;
  }

  20% {
    opacity: 0.56;
  }

  50% {
    opacity: 0.3;
  }

  78% {
    opacity: 0.52;
  }
}

@keyframes star-pulse {
  0%, 100% {
    opacity: 0.16;
    transform: scale(0.65);
  }

  20% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  45% {
    opacity: 0.95;
    transform: scale(1.25);
  }

  60% {
    opacity: 0.38;
    transform: scale(0.9);
  }

  80% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

@keyframes shooting-star-left {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(200deg) scaleX(0.2);
  }

  5% {
    opacity: 1;
    transform: translate3d(-18px, 8px, 0) rotate(200deg) scaleX(1);
  }

  14% {
    opacity: 0;
    transform: translate3d(-360px, 130px, 0) rotate(200deg) scaleX(1.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(-360px, 130px, 0) rotate(200deg) scaleX(1.08);
  }
}

@keyframes kuma-ufo-float-left {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-5deg) scale(0.92);
  }

  8% {
    opacity: 0.82;
  }

  22% {
    transform: translate3d(-22vw, -18px, 0) rotate(3deg) scale(1);
  }

  46% {
    transform: translate3d(-50vw, 16px, 0) rotate(-6deg) scale(0.98);
  }

  70% {
    opacity: 0.78;
    transform: translate3d(-78vw, -10px, 0) rotate(4deg) scale(1.03);
  }

  86% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translate3d(-118vw, 10px, 0) rotate(-4deg) scale(0.96);
  }
}

@keyframes kuma-ufo-float-right {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(5deg) scale(0.88);
  }

  10% {
    opacity: 0.68;
  }

  28% {
    transform: translate3d(24vw, 14px, 0) rotate(-3deg) scale(0.96);
  }

  52% {
    transform: translate3d(54vw, -18px, 0) rotate(6deg) scale(1);
  }

  74% {
    opacity: 0.62;
    transform: translate3d(84vw, 12px, 0) rotate(-5deg) scale(0.94);
  }

  88% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translate3d(118vw, -8px, 0) rotate(4deg) scale(0.9);
  }
}

@media (max-width: 1180px) {
  .page {
    width: min(1180px, calc(100% - 36px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 450px);
    gap: 24px;
  }

  h1 {
    font-size: clamp(2.1rem, 4.55vw, 3.45rem);
  }

  .lead {
    font-size: 0.96rem;
  }

  .status-summary {
    max-width: 450px;
  }

  .summary-item {
    min-height: 110px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .status-summary {
    max-width: none;
    justify-self: stretch;
  }

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

  .portal-info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-row {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .language-buttons {
    justify-content: center;
    width: 100%;
  }

  .mode-button {
    width: 100%;
  }

  .floating-kuma-ufo {
    width: 52px;
  }

  .floating-kuma-ufo-b {
    width: 44px;
  }

  h1 {
    white-space: normal;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .summary-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    min-height: 102px;
  }
}
.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.header-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.header-link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 211, 255, 0.72);
  box-shadow:
    0 0 28px rgba(139, 211, 255, 0.14),
    var(--shadow-soft);
}

.x-post-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 14px 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(139, 211, 255, 0.08);
  font-size: clamp(0.95rem, 1.6vw, 1.32rem);
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.x-post-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 211, 255, 0.5);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(139, 211, 255, 0.16);
}

.x-post-pill:active {
  transform: translateY(0) scale(0.98);
}

.x-post-icon {
  font-size: 1.28em;
  line-height: 1;
}

.lead {
  white-space: pre-line;
}

.site-links-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 32px;
}

.site-links-section a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.site-links-section a:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 211, 255, 0.48);
  color: var(--text);
  box-shadow: 0 0 24px rgba(139, 211, 255, 0.1);
}

@media (max-width: 680px) {
  .topbar {
    position: relative;
    top: auto;
  }

  .header-link-button {
    width: 100%;
  }

  .x-post-pill {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.98rem;
  }
}
.x-post-pill {
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 15px;
  border: 1px solid rgba(139, 211, 255, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 26px rgba(139, 211, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: normal;
}

.x-post-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 211, 255, 0.5);
  box-shadow: 0 0 28px rgba(139, 211, 255, 0.14);
}

.x-post-icon {
  font-size: 1rem;
  line-height: 1;
}

.lead {
  white-space: normal;
}