:root {
  color-scheme: dark;
  --bg-1: #12051f;
  --bg-2: #090311;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f2ff;
  --muted: #b8a9d4;
  --pink: #ff4fd8;
  --cyan: #27f5ff;
  --yellow: #ffe45a;
  --green: #71ff85;
  --deep-logo: rgba(53, 112, 125, 0.62);
  --shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 18px 50px rgba(0,0,0,0.45);
  --card-bg: linear-gradient(180deg, rgba(26, 21, 52, 0.92), rgba(10, 8, 24, 0.95));
  --theme-btn-bg: rgba(255,255,255,0.08);
  --theme-btn-border: rgba(255,255,255,0.16);
  --theme-btn-shadow: 0 0 18px rgba(39,245,255,0.16), 0 12px 28px rgba(0,0,0,0.26);
  --grid-line: rgba(255,255,255,0.04);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-1: #f6f3ff;
  --bg-2: #e9f7fb;
  --panel-border: rgba(42, 34, 74, 0.16);
  --text: #1a1830;
  --muted: #625978;
  --pink: #c928aa;
  --cyan: #087f92;
  --yellow: #8c6800;
  --green: #0f7a38;
  --deep-logo: rgba(31, 88, 101, 0.56);
  --shadow: 0 0 0 2px rgba(42,34,74,0.06), 0 18px 44px rgba(39,33,66,0.16);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,245,251,0.96));
  --theme-btn-bg: rgba(255,255,255,0.72);
  --theme-btn-border: rgba(42,34,74,0.14);
  --theme-btn-shadow: 0 0 16px rgba(8,127,146,0.12), 0 12px 28px rgba(39,33,66,0.14);
  --grid-line: rgba(42,34,74,0.07);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg-1: #f6f3ff;
    --bg-2: #e9f7fb;
    --panel-border: rgba(42, 34, 74, 0.16);
    --text: #1a1830;
    --muted: #625978;
    --pink: #c928aa;
    --cyan: #087f92;
    --yellow: #8c6800;
    --green: #0f7a38;
    --deep-logo: rgba(31, 88, 101, 0.56);
    --shadow: 0 0 0 2px rgba(42,34,74,0.06), 0 18px 44px rgba(39,33,66,0.16);
    --card-bg: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,245,251,0.96));
    --theme-btn-bg: rgba(255,255,255,0.72);
    --theme-btn-border: rgba(42,34,74,0.14);
    --theme-btn-shadow: 0 0 16px rgba(8,127,146,0.12), 0 12px 28px rgba(39,33,66,0.14);
    --grid-line: rgba(42,34,74,0.07);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(39,245,255,0.1), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(255,79,216,0.16), transparent 22%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.2));
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--theme-btn-border);
  background: var(--theme-btn-bg);
  color: var(--text);
  box-shadow: var(--theme-btn-shadow);
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(39,245,255,0.42);
  outline: none;
}

.theme-toggle-icon { font-size: 1.05rem; line-height: 1; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  position: relative;
  text-align: center;
  padding: 34px 18px 18px;
}

.hero-glow {
  position: absolute;
  inset: -10px auto auto 50%;
  width: 360px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,79,216,0.22), rgba(39,245,255,0.08), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

h1 {
  position: relative;
  margin: 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.2;
  color: var(--text);
  text-shadow:
    0 0 10px rgba(39,245,255,0.45),
    0 0 28px rgba(255,79,216,0.3);
}

.logo-d {
  color: var(--deep-logo);
  opacity: 0.82;
  text-shadow:
    0 0 8px rgba(39,245,255,0.18),
    0 0 18px rgba(255,79,216,0.08);
}

.subtitle {
  position: relative;
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 28px;
  align-items: stretch;
}

.tool-card {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, filter 240ms ease;
}

.tool-card::before,
.tool-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.tool-card::before {
  top: -24px;
  right: -12px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(39,245,255,0.22), transparent 70%);
}

.tool-card::after {
  bottom: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255,79,216,0.22), transparent 70%);
}

.tool-card.active {
  cursor: pointer;
}

.tool-card.active:hover,
.tool-card.active:focus-visible {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(39,245,255,0.48);
  box-shadow: 0 0 0 2px rgba(39,245,255,0.18), 0 20px 55px rgba(0,0,0,0.55);
  outline: none;
}

.tool-card.future {
  cursor: default;
  opacity: 0.78;
}

.tool-card.info-selected {
  border-color: rgba(113,255,133,0.42);
  box-shadow: 0 0 0 2px rgba(113,255,133,0.14), 0 20px 55px rgba(0,0,0,0.48);
}

.card-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px 78px;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Press Start 2P", cursive;
  font-size: 0.6rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.tool-card.active .tool-status { color: var(--green); }
.tool-card.future .tool-status { color: var(--yellow); }

.tool-name {
  margin-top: 34px;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(255,255,255,0.16);
}

.tool-short {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.5;
}

.tool-action {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-family: "Press Start 2P", cursive;
  font-size: 0.52rem;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(39,245,255,0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-action:hover,
.tool-action:focus-visible,
.tool-action.selected {
  transform: translateY(-1px);
  border-color: rgba(39,245,255,0.5);
  background: rgba(39,245,255,0.12);
  box-shadow: 0 0 0 2px rgba(39,245,255,0.12), 0 0 18px rgba(39,245,255,0.18);
  outline: none;
}

.more-info-btn.selected { color: var(--green); }

.tool-info-panel {
  position: relative;
  grid-column: 1 / -1;
  max-height: 0;
  padding: 0 28px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: var(--card-bg);
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 320ms ease,
    padding 320ms ease,
    opacity 220ms ease,
    transform 320ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.tool-info-panel.is-open {
  max-height: 900px;
  padding: 28px;
  border-color: var(--panel-border);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
}

.tool-info-panel[hidden] { display: none; }

.info-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-family: "Press Start 2P", cursive;
  font-size: 0.54rem;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.info-close-btn:hover,
.info-close-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39,245,255,0.5);
  background: rgba(39,245,255,0.12);
  color: var(--text);
  outline: none;
}

.info-panel-glow {
  position: absolute;
  inset: -80px -30px auto auto;
  width: 260px;
  height: 180px;
  background: radial-gradient(circle, rgba(39,245,255,0.18), rgba(255,79,216,0.1), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.info-panel-header {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-right: 88px;
}

.info-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: var(--green);
  font-family: "Press Start 2P", cursive;
  font-size: 0.58rem;
  line-height: 1.4;
}

.tool-info-panel h2 {
  margin: 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  line-height: 1.4;
  text-shadow: 0 0 14px rgba(39,245,255,0.24);
}

.tool-info-panel p {
  color: var(--muted);
  line-height: 1.65;
}

#info-summary {
  margin: 14px 0 0;
  font-weight: 700;
}

.info-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.info-feature-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
}

.info-feature-card h3 {
  margin: 0 0 10px;
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--cyan);
}

.info-feature-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

:root[data-theme="light"] .tool-action,
:root[data-theme="light"] .info-eyebrow,
:root[data-theme="light"] .info-close-btn,
:root[data-theme="light"] .info-feature-card {
  border-color: rgba(42,34,74,0.14);
  background: rgba(255,255,255,0.62);
}

:root[data-theme="light"] .tool-action:hover,
:root[data-theme="light"] .tool-action:focus-visible,
:root[data-theme="light"] .tool-action.selected,
:root[data-theme="light"] .info-close-btn:hover,
:root[data-theme="light"] .info-close-btn:focus-visible {
  border-color: rgba(8,127,146,0.35);
  background: rgba(8,127,146,0.10);
}

body.launching .page-shell {
  animation: shellFade 520ms ease forwards;
}

.launch-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(39,245,255,0.18), rgba(255,79,216,0.18), rgba(9,3,17,0.92) 62%),
    rgba(9,3,17,0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 20;
}

:root[data-theme="light"] .launch-overlay {
  background:
    radial-gradient(circle at center, rgba(8,127,146,0.16), rgba(201,40,170,0.12), rgba(246,243,255,0.94) 62%),
    rgba(246,243,255,0.92);
}

.launch-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 12px rgba(39,245,255,0.08),
    0 0 80px rgba(39,245,255,0.26),
    inset 0 0 40px rgba(255,79,216,0.18);
  animation: pulseCore 900ms ease-in-out infinite;
}

.launch-label {
  position: absolute;
  margin-top: 180px;
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  text-shadow: 0 0 14px rgba(39,245,255,0.4);
}

body.launching .launch-overlay {
  opacity: 1;
  pointer-events: auto;
}

@keyframes pulseCore {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
}

@keyframes shellFade {
  from { transform: scale(1); filter: blur(0px); opacity: 1; }
  to { transform: scale(1.02); filter: blur(5px); opacity: 0.08; }
}


@media (max-width: 720px) {
  .theme-toggle { top: 12px; right: 12px; width: 40px; height: 40px; }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .hero { padding-top: 18px; }

  .tool-grid { gap: 16px; }

  .tool-card {
    min-height: 210px;
    border-radius: 20px;
  }

  .card-content { padding: 20px 18px 72px; }

  .subtitle { font-size: 0.95rem; }

  .tool-short {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .tool-action {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 36px;
    font-size: 0.48rem;
  }

  .tool-info-panel {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 20px;
  }

  .tool-info-panel.is-open {
    max-height: 1100px;
    padding: 20px 16px;
  }

  .info-close-btn {
    top: 14px;
    right: 14px;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.48rem;
  }

  .info-panel-header {
    padding-right: 74px;
  }

  .launch-label {
    font-size: 0.72rem;
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Updates / blog section */
.updates-section {
  position: relative;
  margin: 34px auto 0;
  width: min(980px, 100%);
  z-index: 1;
}

.updates-header {
  position: relative;
  margin-bottom: 16px;
  padding: 0 2px;
}

.updates-eyebrow,
.update-date,
.update-tag {
  font-family: "Press Start 2P", cursive;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updates-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: var(--cyan);
  font-size: 0.52rem;
}

.updates-header h2 {
  margin: 14px 0 8px;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 0 12px rgba(39,245,255,0.22);
}

.updates-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.updates-list {
  display: grid;
  gap: 14px;
}

.update-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.update-card::before,
.update-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.update-card::before {
  width: 130px;
  height: 130px;
  top: -70px;
  right: -40px;
  background: radial-gradient(circle, rgba(39,245,255,0.16), transparent 70%);
}

.update-card::after {
  width: 100px;
  height: 100px;
  bottom: -54px;
  left: -35px;
  background: radial-gradient(circle, rgba(255,79,216,0.14), transparent 70%);
}

.update-date {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.52rem;
  line-height: 1.5;
}

.update-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.82rem, 1.6vw, 1.08rem);
  line-height: 1.55;
  color: var(--text);
}

.update-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.65;
}

.update-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.update-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: var(--cyan);
  font-size: 0.48rem;
  line-height: 1.4;
}

.update-card-loading {
  opacity: 0.82;
}

:root[data-theme="light"] .updates-eyebrow,
:root[data-theme="light"] .update-tag {
  border-color: rgba(42,34,74,0.14);
  background: rgba(255,255,255,0.62);
}

@media (max-width: 720px) {
  .updates-section {
    margin-top: 26px;
  }

  .update-card {
    border-radius: 20px;
    padding: 17px 16px;
  }

  .updates-header p,
  .update-card p {
    font-size: 0.95rem;
  }
}

/* Markdown update body support */
.update-body {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.65;
}
.update-body p {
  margin: 0 0 0.85rem;
}
.update-body p:last-child {
  margin-bottom: 0;
}
.update-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}
.update-body li {
  margin: 0.35rem 0;
}
.update-body h4 {
  margin: 0.9rem 0 0.45rem;
  font-family: "Press Start 2P", cursive;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text);
}
.update-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0.08rem 0.28rem;
  border-radius: 0.35rem;
  background: rgba(255,255,255,0.08);
  color: var(--cyan);
}

/* Update log refinements */
.update-card {
  border-color: rgba(255,255,255,0.075);
  background: linear-gradient(180deg, rgba(26, 21, 52, 0.52), rgba(10, 8, 24, 0.58));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.035), 0 12px 30px rgba(0,0,0,0.24);
}

.update-card::before {
  opacity: 0.48;
}

.update-card::after {
  opacity: 0.42;
}

.update-tag {
  text-decoration: none;
  border-color: rgba(255,255,255,0.085);
  background: rgba(255,255,255,0.045);
  color: color-mix(in srgb, var(--cyan), var(--muted) 34%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.update-tag-link {
  cursor: pointer;
}

.update-tag-link:hover,
.update-tag-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39,245,255,0.28);
  background: rgba(39,245,255,0.075);
  color: var(--cyan);
  outline: none;
}

.update-card-hidden {
  display: none;
}

.updates-more-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
}

.updates-more-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
}

.updates-more-btn {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-2);
  color: var(--muted);
  font-family: "Press Start 2P", cursive;
  font-size: 0.54rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(39,245,255,0.08);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.updates-more-btn:hover,
.updates-more-btn:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(39,245,255,0.32);
  box-shadow: 0 0 18px rgba(39,245,255,0.14);
  outline: none;
}

:root[data-theme="light"] .update-card {
  border-color: rgba(42,34,74,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(239,245,251,0.72));
  box-shadow: 0 0 0 1px rgba(42,34,74,0.035), 0 12px 26px rgba(39,33,66,0.10);
}

:root[data-theme="light"] .update-tag {
  border-color: rgba(42,34,74,0.10);
  background: rgba(255,255,255,0.45);
}

:root[data-theme="light"] .updates-more-wrap::before {
  background: linear-gradient(90deg, transparent, rgba(42,34,74,0.16), transparent);
}

:root[data-theme="light"] .updates-more-btn {
  background: #f6f3ff;
  border-color: rgba(42,34,74,0.14);
}

/* Per-update body text clamp */
.update-body-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-text-expanded .update-body {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.update-body-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  color: color-mix(in srgb, var(--cyan), var(--muted) 35%);
  font-family: "Press Start 2P", cursive;
  font-size: 0.48rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.update-body-toggle:hover,
.update-body-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39,245,255,0.26);
  background: rgba(39,245,255,0.06);
  color: var(--cyan);
  outline: none;
}

.update-body-toggle[hidden] {
  display: none;
}

:root[data-theme="light"] .update-body-toggle {
  border-color: rgba(42,34,74,0.10);
  background: rgba(255,255,255,0.42);
}


/* Update post refinements: clickable tool tags + simple MORE/LESS divider */
.update-tag-link {
  border-color: rgba(255,79,216,0.28);
  background: rgba(255,79,216,0.075);
  color: var(--pink);
  box-shadow: 0 0 12px rgba(255,79,216,0.08);
}

.update-tag-link:hover,
.update-tag-link:focus-visible {
  border-color: rgba(255,79,216,0.48);
  background: rgba(255,79,216,0.12);
  color: var(--pink);
  box-shadow: 0 0 16px rgba(255,79,216,0.16);
}

:root[data-theme="light"] .update-tag-link {
  border-color: rgba(201,40,170,0.26);
  background: rgba(201,40,170,0.075);
  color: #a71f8e;
  box-shadow: 0 0 10px rgba(201,40,170,0.08);
}

:root[data-theme="light"] .update-tag-link:hover,
:root[data-theme="light"] .update-tag-link:focus-visible {
  border-color: rgba(201,40,170,0.42);
  background: rgba(201,40,170,0.12);
  color: #861575;
}

.update-body-toggle {
  display: block;
  width: 100%;
  margin: 12px auto 0;
  min-height: auto;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--cyan), var(--muted) 25%);
  box-shadow: none;
  font-family: "Press Start 2P", cursive;
  font-size: 0.48rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.update-body-toggle:hover,
.update-body-toggle:focus-visible {
  transform: none;
  border: 0;
  background: transparent;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(39,245,255,0.26);
  outline: none;
}

:root[data-theme="light"] .update-body-toggle {
  background: transparent;
  color: color-mix(in srgb, var(--cyan), var(--muted) 20%);
}

:root[data-theme="light"] .update-body-toggle:hover,
:root[data-theme="light"] .update-body-toggle:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(8,127,146,0.18);
}

/* Full update page support */
.update-card-clickable {
  cursor: pointer;
}

.update-card-clickable:hover,
.update-card-clickable:focus-visible {
  border-color: rgba(39,245,255,0.26);
  box-shadow: 0 0 0 1px rgba(39,245,255,0.10), 0 16px 36px rgba(0,0,0,0.28);
  outline: none;
}

.update-card-clickable h3::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.55rem;
  color: var(--cyan);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(39,245,255,0.24);
}

.update-detail-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.update-detail-link:hover,
.update-detail-link:focus-visible {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255,79,216,0.22);
  outline: none;
}

.update-detail-link::before,
.update-detail-link::after {
  content: "";
  width: 34px;
  height: 1px;
  margin: 0 8px;
  background: currentColor;
  opacity: 0.42;
}

:root[data-theme="light"] .update-card-clickable:hover,
:root[data-theme="light"] .update-card-clickable:focus-visible {
  border-color: rgba(8,127,146,0.24);
  box-shadow: 0 0 0 1px rgba(8,127,146,0.08), 0 16px 30px rgba(39,33,66,0.12);
}

/* Dedicated updates page */
.hero-home-link,
.hero-home-link:link,
.hero-home-link:visited,
.hero-home-link:hover,
.hero-home-link:active {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hero-home-link * {
  text-decoration: none !important;
}

.logo-sub {
  display: inline-block;
  margin-top: 14px;
  font-family: "Press Start 2P", cursive;
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 0 14px rgba(39,245,255,0.4);
  letter-spacing: 0.16em;
}

.updates-view-all-link {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(39,245,255,0.32);
}

.updates-view-all-link:hover,
.updates-view-all-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--cyan);
  outline: none;
}

.updates-page-shell {
  max-width: 1180px;
}

.updates-page-hero {
  padding-bottom: 10px;
}

.updates-page-controls {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 20px auto 0;
}

.updates-page-title-block {
  margin-bottom: 18px;
}

.updates-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 21, 52, 0.42), rgba(10, 8, 24, 0.48));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.035), 0 12px 30px rgba(0,0,0,0.18);
}

.updates-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.update-filter-pill {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-family: "Press Start 2P", cursive;
  font-size: 0.48rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.update-filter-pill:hover,
.update-filter-pill:focus-visible,
.update-filter-pill.selected {
  transform: translateY(-1px);
  border-color: rgba(39,245,255,0.32);
  background: rgba(39,245,255,0.08);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(39,245,255,0.10);
  outline: none;
}

.updates-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "Press Start 2P", cursive;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updates-sort-label select {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  padding: 0 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.updates-page-list-section {
  margin-top: 18px;
}

.updates-page-list-section .updates-list {
  gap: 16px;
}

.updates-page-list-section .update-card {
  cursor: default;
}

.updates-page-list-section .update-card-clickable {
  cursor: pointer;
}

:root[data-theme="light"] .updates-toolbar {
  border-color: rgba(42,34,74,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(239,245,251,0.70));
  box-shadow: 0 0 0 1px rgba(42,34,74,0.035), 0 12px 26px rgba(39,33,66,0.09);
}

:root[data-theme="light"] .update-filter-pill,
:root[data-theme="light"] .updates-sort-label select {
  border-color: rgba(42,34,74,0.12);
  background: rgba(255,255,255,0.55);
}

@media (max-width: 720px) {
  .logo-sub {
    font-size: 0.8rem;
  }

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

  .updates-sort-label {
    justify-content: space-between;
    width: 100%;
  }

  .updates-sort-label select {
    flex: 1;
    max-width: 210px;
  }
}
