/* Nemoroen — white, colorful, interactive */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6ff;
  --ink: #17181f;
  --muted: #5a6173;
  --line: #e6e8f2;
  --card: #ffffff;
  --chip: #ffffff;
  --footer: rgba(255, 255, 255, 0.72);
  --brand: #6b4dff;
  --brand-deep: #5134e4;
  --brand-soft: #efeaff;
  --gaming: #7b4dff;
  --gaming-soft: #efe8ff;
  --cartoons: #ff4f8b;
  --cartoons-2: #ff7a3d;
  --cartoons-soft: #ffe8ef;
  --hardware: #00b3b8;
  --hardware-2: #22c55e;
  --hardware-soft: #e6faf8;
  --games: #22c55e;
  --games-soft: #e9fbe9;
  --wash-1: rgba(107, 77, 255, 0.14);
  --wash-2: rgba(255, 79, 139, 0.12);
  --wash-3: rgba(0, 179, 184, 0.11);
  --display: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --radius: 24px;
  --shadow: 0 14px 36px rgba(23, 24, 31, 0.08);
  --shadow-sm: 0 8px 20px rgba(23, 24, 31, 0.06);
  --spring: cubic-bezier(0.22, 1.4, 0.36, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

html[data-theme="dark"] {
  --bg: #10131c;
  --bg-soft: #181c28;
  --ink: #eef1f8;
  --muted: #a8b0c4;
  --line: #2c3346;
  --card: #1a1f2e;
  --chip: #222839;
  --footer: rgba(16, 19, 28, 0.86);
  --brand: #8b7cff;
  --brand-deep: #c2b8ff;
  --brand-soft: #2a2450;
  --gaming: #9a7dff;
  --gaming-soft: #2a2250;
  --cartoons: #ff6b9d;
  --cartoons-2: #ff8a55;
  --cartoons-soft: #3a2230;
  --hardware: #2ad4d8;
  --hardware-2: #3ddc7a;
  --hardware-soft: #163530;
  --games: #3ddc7a;
  --games-soft: #16351f;
  --wash-1: rgba(139, 124, 255, 0.2);
  --wash-2: rgba(255, 107, 157, 0.14);
  --wash-3: rgba(42, 212, 216, 0.12);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; background: var(--bg); }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  background:
    radial-gradient(900px 480px at 6% -12%, var(--wash-1), transparent 58%),
    radial-gradient(720px 420px at 100% -8%, var(--wash-2), transparent 55%),
    radial-gradient(820px 520px at 90% 110%, var(--wash-3), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.paper { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle .theme-sun,
.theme-toggle .theme-moon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--spring), opacity 0.28s var(--ease);
}
.theme-toggle svg { width: 22px; height: 22px; display: block; }
.theme-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-moon { opacity: 0; transform: rotate(-90deg) scale(0.35); }
html[data-theme="dark"] .theme-sun { opacity: 0; transform: rotate(90deg) scale(0.35); }
html[data-theme="dark"] .theme-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  transform-origin: 70% 90%;
  animation: fitz-bob 2.8s ease-in-out infinite;
}

.brand-mark-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gaming), var(--cartoons), var(--cartoons-2), var(--hardware), var(--games), var(--gaming));
  z-index: 0;
  animation: ring-spin 8s linear infinite;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}

@keyframes fitz-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-5px) rotate(-8deg); }
  60% { transform: translateY(2px) rotate(5deg); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.wordmark {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.nav-links { display: flex; gap: 8px; }

.nav-chip,
.tab,
.read-on,
.btn-source,
.share-native,
.share-btn,
.theme-toggle,
.site-footer a:not(.source-link),
.btn-youtube {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s var(--spring), box-shadow 0.28s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  background: var(--chip);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-chip[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px 28px;
  align-items: center;
  padding: 6px 0 4px;
}

.hero-copy { max-width: 36rem; padding-bottom: 8px; }

.hero h1,
.page-intro h1,
.about-layout h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.lede {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
}

.hero-art {
  justify-self: end;
  width: min(100%, 420px);
}

.hero-art img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 16px 24px rgba(107, 77, 255, 0.16));
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "title art"
    "panel art";
  gap: 8px 28px;
  align-items: start;
  padding: 8px 0 56px;
}
.about-layout h1 { grid-area: title; }
.about-layout .about-art { grid-area: art; }
.about-layout .prose,
.about-layout .lede { grid-area: panel; }
.about-layout .prose { margin-bottom: 0; }

.about-art {
  width: min(100%, 400px);
  justify-self: end;
  position: sticky;
  top: 24px;
}
.about-art img { max-height: 460px; }

.about-404 {
  grid-template-areas:
    "title art"
    "panel art";
  min-height: 50vh;
  align-items: center;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 2px 22px;
  padding-right: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::after { content: ""; flex: 0 0 8px; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 7px 16px;
  background: var(--chip);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.tab[data-filter="gaming"][aria-selected="true"] {
  background: var(--gaming);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(123, 77, 255, 0.3);
}
.tab[data-filter="cartoons"][aria-selected="true"] {
  background: linear-gradient(90deg, var(--cartoons), var(--cartoons-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 79, 139, 0.3);
}
.tab[data-filter="hardware"][aria-selected="true"] {
  background: linear-gradient(90deg, var(--hardware), var(--hardware-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 179, 184, 0.28);
}
.tab[data-filter="games"][aria-selected="true"] {
  background: var(--games);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.28);
}
.tab[data-filter="all"][aria-selected="true"] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28);
}

.tab.is-wobble,
.nav-chip.is-wobble,
.share-native.is-wobble,
.share-btn.is-wobble,
.theme-toggle.is-wobble {
  animation: wobble 0.48s var(--spring);
}
.tab.is-pressed,
.nav-chip.is-pressed,
.read-on.is-pressed,
.btn-source.is-pressed,
.share-native.is-pressed,
.share-btn.is-pressed,
.theme-toggle.is-pressed {
  transform: scale(0.94);
}

@keyframes wobble {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.1) rotate(-6deg); }
  55% { transform: scale(1.04) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.tab:focus-visible,
.nav-chip:focus-visible,
.card:focus-visible,
.feature:focus-visible,
.btn-source:focus-visible,
.back-link:focus-visible,
.source-link:focus-visible,
.read-on:focus-visible,
.share-native:focus-visible,
.share-btn:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.status {
  font-weight: 700;
  padding: 36px 0;
  color: var(--muted);
}
.status.error { color: #d42a5b; }

#feed-root {
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
#feed-root.is-leaving {
  opacity: 0;
  transform: translateY(12px);
}

.feature,
.card,
.coming,
.story,
.panel,
.missing {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-bottom: 28px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(var(--lift, 0)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), border-color 0.2s ease;
}

.feature.gaming { border-color: color-mix(in srgb, var(--gaming) 40%, var(--line)); }
.feature.cartoons { border-color: color-mix(in srgb, var(--cartoons) 40%, var(--line)); }
.feature.hardware { border-color: color-mix(in srgb, var(--hardware) 40%, var(--line)); }

.feature-media {
  position: relative;
  min-height: 250px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--chip);
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 30px 28px;
  gap: 12px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.sticker {
  display: inline-block;
  padding: 4px 10px 5px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
}

.sticker.gaming { background: var(--gaming); }
.sticker.cartoons { background: linear-gradient(90deg, var(--cartoons), var(--cartoons-2)); }
.sticker.hardware { background: linear-gradient(90deg, var(--hardware), var(--hardware-2)); }

.burst {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--card);
  color: var(--brand);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.feature-body h2,
.card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.feature-body h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }

.read-on {
  margin-top: 6px;
  display: inline-flex;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28); }
  50% { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 24px rgba(107, 77, 255, 0.36); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transform: translateY(var(--lift, 0)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), border-color 0.2s ease;
}

.card.gaming { border-color: color-mix(in srgb, var(--gaming) 35%, var(--line)); }
.card.cartoons { border-color: color-mix(in srgb, var(--cartoons) 35%, var(--line)); }
.card.hardware { border-color: color-mix(in srgb, var(--hardware) 35%, var(--line)); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--chip);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 1;
}

.card-body h3 { font-size: 1.12rem; }

.card-meta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.coming {
  text-align: center;
  padding: 48px 22px 52px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 8px 0 56px;
}

.coming h1,
.coming h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.coming p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1.5px solid var(--line);
  background: var(--footer);
  backdrop-filter: blur(8px);
  padding: 22px 0 36px;
  font-weight: 600;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 8px 16px rgba(107, 77, 255, 0.22);
  font-weight: 800;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  box-shadow: 0 8px 16px rgba(107, 77, 255, 0.22);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.btn-youtube svg {
  width: 22px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.about-youtube {
  margin: 4px 0 12px;
}
.prose a.btn-youtube,
.lede a.btn-youtube {
  background-image: none;
  color: #fff;
}
.prose a.btn-youtube:hover,
.prose a.btn-youtube:focus-visible,
.lede a.btn-youtube:hover,
.lede a.btn-youtube:focus-visible {
  background-image: none;
  background-size: 0 0;
  color: #fff;
}

.prose {
  max-width: 42rem;
  margin: 0 0 64px;
  color: var(--ink);
}

.panel {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 12px;
}

.prose p { margin: 0 0 16px; font-size: 1.06rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 18px;
  color: var(--brand);
  font-weight: 800;
}

.story {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
  max-width: 46rem;
}

.story-media {
  position: relative;
  background: transparent;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.story-body { padding: 26px 26px 32px; }
.story-body .kicker { margin-bottom: 10px; }

.story-body h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.65rem, 4.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.story-excerpt p {
  margin: 0 0 1em;
  font-size: 1.08rem;
  line-height: 1.65;
}
.story-excerpt p:last-child { margin-bottom: 0; }
.story-empty {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.credit {
  margin: 22px 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.btn-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28);
}

.more { padding-bottom: 8px; }
.more h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.missing {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px 32px;
  margin: 8px 0 56px;
  max-width: 36rem;
}
.missing h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.missing p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }

.lede-plain {
  margin: 0 0 1.2rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 600;
}
.image-credit {
  margin: 0;
  padding: 8px 14px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-soft);
}
.story-media { position: relative; }
.story-media .image-credit { position: static; }

/* Animated underlines for text links */
.back-link,
.source-link,
.prose a,
.lede a,
.story-excerpt a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  text-decoration: none;
  transition: background-size 0.28s var(--ease), color 0.2s ease, transform 0.28s var(--spring);
}
.back-link:hover,
.back-link:focus-visible,
.source-link:hover,
.source-link:focus-visible,
.prose a:hover,
.lede a:hover,
.story-excerpt a:hover {
  background-size: 100% 2px;
}

.source-link {
  color: var(--brand);
  font-weight: 800;
}
.source-link:hover { color: var(--brand-deep); }

.coming.soon-empty h2 { margin-bottom: 8px; }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  mix-blend-mode: overlay;
  animation: ripple 0.6s ease-out forwards;
  z-index: 2;
}
.tab .ripple,
.nav-chip:not([aria-current="page"]) .ripple,
.site-footer a .ripple,
.btn-youtube .ripple {
  background: rgba(107, 77, 255, 0.28);
  mix-blend-mode: normal;
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}


/* Share block */
.share {
  margin: 28px 0 4px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
}
.share-label {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.share-native {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  margin: 0 0 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(107, 77, 255, 0.28);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
.share-native svg,
.share-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.share-x { background: #0f1419; }
html[data-theme="dark"] .share-x {
  background: #2c3142;
  box-shadow: inset 0 0 0 1.5px #4a5168;
}
html[data-theme="dark"] .share-toast {
  background: #f0f2f8;
  color: #17181f;
}

.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #2aa0d9; }
.share-reddit { background: #ff4500; }
.share-email { background: var(--brand); }
.share-copy { background: var(--hardware); }
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.share-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll / enter animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.55s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
.in-view { }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .tab:hover,
  .nav-chip:hover,
  .btn-source:hover,
  .share-btn:hover,
  .theme-toggle:hover,
  .site-footer a:hover,
  .btn-youtube:hover {
    transform: translateY(-2px) scale(1.08);
  }
  .feature:hover,
  .card:hover {
    --lift: -8px;
    box-shadow: 0 22px 40px rgba(23, 24, 31, 0.12);
  }
  .feature:hover img.is-loaded,
  .card:hover img.is-loaded {
    transform: scale(1.05);
  }
  .share-native:hover,
  .read-on:hover {
    animation: none;
    transform: translateY(-2px) scale(1.07);
  }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 4px; }
  .hero-art {
    justify-self: center;
    width: min(100%, 340px);
    margin-top: -8px;
  }
  .hero-art img { max-height: 380px; }
  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "art"
      "panel";
    padding-bottom: 48px;
  }
  .about-art {
    justify-self: center;
    width: min(78%, 300px);
    position: static;
    margin: -4px auto 4px;
  }
  .about-art img { max-height: 300px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 210px; aspect-ratio: 16 / 9; }
  .feature-body { padding: 24px 20px 22px; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--max), calc(100% - 22px)); }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .site-header.wrap {
    width: 100%;
    padding-left: 6px;
    padding-right: 4px;
  }
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
  }
  .brand-mark-wrap::after { inset: -2px; }
  .brand-mark-wrap,
  .brand-mark { width: 44px; height: 44px; }
  .wordmark {
    flex: 0 0 auto;
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .header-actions {
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }
  .nav-links { gap: 6px; flex-shrink: 0; }
  .nav-chip { flex-shrink: 0; padding: 6px 13px; min-height: 38px; font-size: 0.9rem; }
  .nav-links[data-current="news"] .nav-chip[data-nav="news"],
  .nav-links[data-current="games"] .nav-chip[data-nav="games"],
  .nav-links[data-current="about"] .nav-chip[data-nav="about"] { display: none; }
  .theme-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .theme-toggle svg { width: 20px; height: 20px; }
  .hero-copy { padding-top: 4px; }
  .hero-art { width: min(88%, 300px); }
  .hero-art img { max-height: 300px; }
  .tabs { gap: 8px; flex-wrap: wrap; overflow: visible; padding: 14px 0 18px; padding-right: 0; }
  .tab { padding: 7px 13px; font-size: 0.92rem; min-height: 40px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .panel { padding: 20px 18px 8px; }
  .story-body { padding: 20px 18px 24px; }
  .missing { padding: 26px 18px 24px; }
}

@media (max-width: 340px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .header-actions:has(.nav-links) {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-end;
  }
}



/* Loading skeletons */
.card.skeleton {
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.card.skeleton .card-body { gap: 12px; }
.skel-line {
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip) 70%, var(--line));
  position: relative;
  overflow: hidden;
}
.skel-line.skel-tag { width: 5.5rem; height: 22px; }
.skel-line.skel-short { width: 46%; }
.skel-line::after,
.media-ph.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.0) 65%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
html[data-theme="dark"] .skel-line::after,
html[data-theme="dark"] .media-ph.shimmer::after {
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 65%, transparent 100%);
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.feed-sentinel { height: 1px; width: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .skel-line::after,
  .media-ph.shimmer::after { animation: none; }
}

/* Category media placeholders + loaded photos */
.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(145deg, #7a6bff 0%, var(--brand) 55%, #8c5bff 100%);
}
.gaming > .media-ph,
.media-ph.gaming {
  background: linear-gradient(145deg, #9a72ff 0%, #6b4dff 48%, #4f2fd6 100%);
}
.cartoons > .media-ph,
.media-ph.cartoons {
  background: linear-gradient(145deg, #ff4f8b 0%, #ff6a55 55%, #ff7a3d 100%);
}
.hardware > .media-ph,
.media-ph.hardware {
  background: linear-gradient(145deg, #00c4c8 0%, #12c4a0 50%, #22c55e 100%);
}

.ph-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: ph-drift 7s ease-in-out infinite;
}
.ph-orb-a { width: 48%; aspect-ratio: 1; top: -20%; left: -14%; animation-duration: 8s; }
.ph-orb-b { width: 36%; aspect-ratio: 1; right: -12%; bottom: -18%; animation-duration: 6.4s; animation-delay: -2.2s; background: rgba(255, 255, 255, 0.16); }
.ph-orb-c { width: 16%; aspect-ratio: 1; right: 18%; top: 16%; animation-duration: 5.2s; animation-delay: -1.1s; background: rgba(255, 255, 255, 0.2); }

@keyframes ph-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, -12%) scale(1.1); }
}

.ph-icon {
  position: relative;
  z-index: 1;
  width: 42%;
  max-width: 128px;
  aspect-ratio: 1;
  background: #fff;
  filter: drop-shadow(0 8px 16px rgba(23, 24, 31, 0.16));
  -webkit-mask: var(--ph-icon) center / contain no-repeat;
  mask: var(--ph-icon) center / contain no-repeat;
  /* default spark */
  --ph-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M32 4l7 18 19 2-14 12 4 19-16-10-16 10 4-19-14-12 19-2z'/></svg>");
}
.gaming .ph-icon {
  --ph-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M18 20h28c9 0 16 7 16 15s-7 15-16 15h-6.1c-1.2 0-2.3-.7-2.8-1.8l-2.4-5.2H25.3l-2.4 5.2c-.5 1.1-1.6 1.8-2.8 1.8H18C9 50 2 43 2 35s7-15 16-15zm5 10a2.2 2.2 0 00-2.2 2.2V35h-2.8a2.2 2.2 0 000 4.4h2.8v2.8a2.2 2.2 0 004.4 0v-2.8h2.8a2.2 2.2 0 000-4.4h-2.8v-2.8A2.2 2.2 0 0023 30zm22.2 3.2a3.4 3.4 0 11-6.8 0 3.4 3.4 0 016.8 0zm1.8 7.2a2.6 2.6 0 11-5.2 0 2.6 2.6 0 015.2 0z'/></svg>");
}
.cartoons .ph-icon {
  --ph-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M32 6l6.4 16.8L56 25 42.4 36.4 46.8 54 32 44.8 17.2 54l4.4-17.6L8 25l17.6-2.2z'/><path fill='white' d='M52 8.5l1.6 4 4 .4-3 2.8.8 4-3.4-2.2-3.4 2.2.8-4-3-2.8 4-.4zM10 12l1.2 3 3 .3-2.2 2.1.6 3-2.6-1.6-2.6 1.6.6-3-2.2-2.1 3-.3z'/></svg>");
}
.hardware .ph-icon {
  --ph-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M24 8h4v8h8V8h4v8h8v4h8v4h-8v8h8v4h-8v8h8v4h-8v8h-4v-8h-8v8h-4v-8h-8v8h-4v-8h-8v-4h8v-8h-8v-4h8v-8h-8v-4h8v-8h8V8zm4 20v16h16V28H28z'/></svg>");
}

.card-media img,
.feature-media img,
.story-media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.5s var(--ease);
}
.card-media img.is-loaded,
.feature-media img.is-loaded,
.story-media img.is-loaded {
  opacity: 1;
}
.card-media.no-image img,
.feature-media.no-image img,
.story-media.no-image img {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .brand-mark-wrap,
  .brand-mark-wrap::after,
  .card,
  .feature,
  .read-on,
  .tab,
  .nav-chip,
  .btn-source,
  .share-native,
  .share-btn,
  .theme-toggle,
  .theme-toggle .theme-sun,
  .theme-toggle .theme-moon,
  .reveal,
  #feed-root,
  #feed-root.is-leaving {
    transform: none !important;
  }
  .reveal { opacity: 1 !important; }
  .ripple { display: none !important; }
  .ph-orb { animation: none !important; }
  .card-media img,
  .feature-media img,
  .story-media img { transition: none !important; }
  .card-media img.is-loaded,
  .feature-media img.is-loaded,
  .story-media img.is-loaded { opacity: 1 !important; }
}

