:root {
  --radius: 0.125rem;
  --background: oklch(0.08 0 0);
  --foreground: oklch(0.97 0 0);
  --card: oklch(0.12 0 0);
  --primary: oklch(0.9 0.24 128);
  --primary-foreground: oklch(0.08 0 0);
  --muted: oklch(0.16 0 0);
  --muted-foreground: oklch(0.65 0 0);
  --border: oklch(0.25 0 0);
  --input: oklch(0.2 0 0);
  --font-display: "Permanent Marker", cursive;
  --font-stencil: "Bebas Neue", sans-serif;
  --font-body: "Rubik", sans-serif;
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.notifications {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  max-height: 100vh;
  flex-direction: column-reverse;
  padding: 1rem;
  pointer-events: none;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: oklch(0.08 0 0 / 70%);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(12px);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  width: auto;
  height: 2.25rem;
  filter: invert(1);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-stencil);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.site-nav a,
.mobile-nav > a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-nav > a:hover,
.mobile-nav > a.is-active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-social-link {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 6%);
  color: var(--foreground);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-social-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

.header-social-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-social-link .icon-dot,
.header-social-link--facebook svg,
.header-social-link--facebook path,
.header-social-link--youtube .youtube-play {
  fill: currentColor;
  stroke: none;
}

.mobile-menu {
  position: static;
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 6%);
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.mobile-menu-button::-webkit-details-marker {
  display: none;
}

.mobile-menu-button::marker {
  content: "";
}

.mobile-menu-button:hover,
.mobile-menu[open] .mobile-menu-button {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.mobile-menu-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu[open] .line-top {
  transform: translateY(0.375rem) rotate(45deg);
}

.mobile-menu[open] .line-middle {
  opacity: 0;
}

.mobile-menu[open] .line-bottom {
  transform: translateY(-0.375rem) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  border-bottom: 1px solid var(--border);
  background: oklch(0.08 0 0 / 96%);
  padding: 0.5rem 1.5rem 1rem;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 35%);
  backdrop-filter: blur(16px);
}

.mobile-nav > a {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-family: var(--font-stencil);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.mobile-nav > a:first-child {
  border-top: 0;
}

.mobile-nav-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.mobile-nav-socials a {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-stencil);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: border-color 180ms ease, color 180ms ease;
}

.mobile-nav-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-nav a:focus-visible,
.mobile-nav a:focus-visible,
.play-button:focus-visible,
.header-social-link:focus-visible,
.mobile-menu-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0.25rem;
}

.play-button,
.primary-action,
.secondary-action,
.signup-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stencil);
  letter-spacing: 0.08em;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.play-button {
  min-height: 2.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.steam-button {
  gap: 0.5rem;
  border: 1px solid rgb(255 255 255 / 16%);
  background: #171a21;
  color: var(--foreground);
  padding-right: 0.95rem;
  padding-left: 0.95rem;
}

.youtube-button {
  gap: 0.5rem;
  background: #ff0033;
  color: white;
  padding-right: 0.95rem;
  padding-left: 0.95rem;
}

.steam-button:hover {
  opacity: 1;
  background: var(--primary);
  color: var(--primary-foreground);
}

.youtube-button:hover {
  opacity: 1;
  background: var(--primary);
  color: var(--primary-foreground);
}

.steam-button svg,
.youtube-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.youtube-button .youtube-play {
  fill: currentColor;
  stroke: none;
}

.play-button:not(.steam-button):not(.youtube-button):hover,
.signup-form button:hover {
  opacity: 0.9;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 6rem 1.5rem 0;
}

.diagonal-bg,
.diagonal-current,
.stripe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 24px);
}

.diagonal-bg {
  color: var(--primary);
  opacity: 0.05;
}

.diagonal-bg.faint {
  opacity: 0.04;
}

.diagonal-current {
  color: currentColor;
  opacity: 0.08;
}

.logo-watermark {
  position: absolute;
  top: 25%;
  right: 2rem;
  opacity: 0.1;
  pointer-events: none;
}

.logo-watermark img {
  width: 480px;
}

.home-hero-content {
  position: relative;
  max-width: 64rem;
}

.eyebrow,
.class-row-meta,
.class-row-ability,
.news-meta,
.news-cta,
.footer-brand,
.footer-note,
.footer-link,
.scroll-cue,
.card-index,
.card-role,
.card-tagline,
.card-cta,
.class-hero-meta,
.stat-label,
.ultimate-box > div,
.weapon-list span,
.comic-kicker,
.comic-card-meta,
.comic-reader-head,
.comic-page figcaption,
.reader-link {
  font-family: var(--font-stencil);
  letter-spacing: 0.08em;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.875rem;
}

.eyebrow.with-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow.with-line span {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--primary);
}

.home-title,
.section-title,
.page-title,
.cta-title,
.class-row-title,
.card-name,
.class-detail-title,
.step-number,
.ultimate-box h3,
.arsenal-title,
.news-row h2,
.comic-card h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.home-title {
  font-size: 3rem;
  line-height: 0.9;
}

.text-primary {
  color: var(--primary);
}

.drip-shadow {
  filter: drop-shadow(0 0 12px oklch(0.9 0.24 128 / 50%));
}

.hero-copy {
  max-width: 36rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.primary-action {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.primary-action:hover {
  transform: translateY(-2px);
}

.secondary-action {
  border: 2px solid var(--foreground);
  background: transparent;
  color: var(--foreground);
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.secondary-action:hover {
  background: var(--foreground);
  color: var(--background);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  display: flex;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.section,
.list-section {
  border-top: 1px solid var(--border);
  padding: 6rem 1.5rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-heading p {
  max-width: 28rem;
  color: var(--muted-foreground);
}

.section-title {
  font-size: 3rem;
  line-height: 1;
}

.class-card-grid,
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.class-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 500ms ease, box-shadow 500ms ease;
}

.class-card:hover {
  z-index: 10;
  transform: scale(1.02);
  box-shadow: 0 0 60px -10px var(--primary);
}

.class-card.bg-toxic {
  background: var(--primary);
  color: var(--primary-foreground);
}

.class-card.bg-dark {
  background: var(--card);
  color: var(--foreground);
}

.class-card.bg-white {
  background: var(--foreground);
  color: var(--background);
}

.stripe-overlay {
  background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 12px);
  opacity: 0.08;
  transition: opacity 180ms ease;
}

.class-card:hover .stripe-overlay {
  opacity: 0.2;
}

.card-index,
.card-role {
  position: absolute;
  top: 1rem;
  z-index: 2;
  font-size: 0.75rem;
  opacity: 0.7;
}

.card-index {
  left: 1rem;
}

.card-role {
  right: 1rem;
}

.card-image,
.media-card img {
  position: absolute;
  inset: 0;
}

.card-image {
  overflow: hidden;
}

.card-image img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card-image img {
  object-position: top;
}

.class-card:hover .card-image img,
.media-card:hover img {
  transform: scale(1.1);
}

.image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 80%), rgb(0 0 0 / 20%), transparent);
}

.card-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.5rem;
  color: white;
}

.card-name {
  font-size: 2.25rem;
  line-height: 1;
}

.card-tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 300ms ease, transform 300ms ease;
}

.class-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
}

.gameplay-section,
.other-section {
  background: var(--card);
}

.gameplay-grid,
.stats-grid {
  display: grid;
  max-width: 72rem;
  margin: 0 auto;
  gap: 3rem;
}

.gameplay-step {
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
}

.step-number {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 3.75rem;
}

.gameplay-step h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-stencil);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.gameplay-step p,
.cta-inner p,
.page-lead,
.class-row-lore,
.news-row p,
.ultimate-box p,
.class-detail-lore {
  color: var(--muted-foreground);
}

.cta-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 1;
}

.cta-inner p {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}

.signup-form {
  display: flex;
  max-width: 36rem;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.signup-form input {
  min-width: 240px;
  flex: 1;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--foreground);
  padding: 1rem 1.25rem;
  font-family: var(--font-stencil);
  letter-spacing: 0.08em;
}

.signup-form input:focus {
  border-color: var(--primary);
  outline: none;
}

.signup-form button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 8rem 1.5rem 4rem;
}

.compact-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.page-hero-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
}

.page-title {
  font-size: 3.75rem;
  line-height: 0.85;
}

.page-lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.list-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.class-list,
.news-list {
  max-width: 72rem;
  margin: 0 auto;
}

.class-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.class-row {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: transform 300ms ease, background-color 300ms ease, color 300ms ease;
}

.class-row:hover,
.news-row:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateX(0.5rem);
}

.class-row:hover .class-row-lore,
.news-row:hover p {
  color: rgb(0 0 0 / 70%);
}

.class-row-image {
  position: relative;
  display: flex;
  height: 16rem;
  align-items: flex-end;
  justify-content: center;
}

.class-row-image img {
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms ease;
}

.class-row:hover .class-row-image img {
  transform: scale(1.1);
}

.class-row-meta {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.class-row-title {
  margin-bottom: 0.75rem;
  font-size: 3rem;
  line-height: 1;
}

.class-row-tagline {
  margin-bottom: 1rem;
  font-family: var(--font-stencil);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.class-row-lore {
  max-width: 36rem;
  font-size: 0.875rem;
}

.class-row-ability {
  font-size: 0.875rem;
}

.class-row-ability div {
  margin-bottom: 0.25rem;
  opacity: 0.6;
}

.class-row-ability strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
}

.class-row-ability span {
  display: block;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.class-row:hover .class-row-ability span {
  opacity: 1;
}

.class-detail-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 0;
}

.hero-toxic {
  background: var(--primary);
  color: var(--primary-foreground);
}

.hero-white {
  background: var(--foreground);
  color: var(--background);
}

.hero-dark {
  background: var(--card);
  color: var(--foreground);
}

.class-detail-grid {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
  gap: 3rem;
}

.class-hero-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.class-detail-title {
  font-size: 4.5rem;
  line-height: 0.85;
}

.class-detail-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-stencil);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.class-detail-lore {
  max-width: 32rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  opacity: 0.8;
}

.hero-toxic .class-detail-lore,
.hero-white .class-detail-lore {
  color: currentColor;
}

.class-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-detail-image img {
  width: 100%;
  max-width: 28rem;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 35%));
}

.stats-section {
  border-top: 1px solid var(--border);
}

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

.small-title {
  margin-bottom: 2.5rem;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.stat-label span:last-child {
  color: var(--primary);
}

.stat-track {
  height: 0.5rem;
  overflow: hidden;
  background: var(--muted);
}

.stat-bar {
  height: 100%;
  background: var(--primary);
}

.ability-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ultimate-box {
  position: relative;
  border: 2px solid var(--primary);
  padding: 2rem;
}

.ultimate-box > div {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--background);
  color: var(--primary);
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.ultimate-box h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 2.25rem;
  line-height: 1;
}

.arsenal-title {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  line-height: 1;
}

.weapon-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weapon-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.weapon-list span {
  width: 2rem;
  color: var(--primary);
  font-size: 0.875rem;
}

.weapon-list strong {
  font-family: var(--font-stencil);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.other-grid {
  display: grid;
  max-width: 48rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.other-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 180ms ease;
}

.other-card:hover {
  transform: scale(1.05);
}

.other-toxic {
  background: var(--primary);
}

.other-white {
  background: var(--foreground);
}

.other-dark {
  background: var(--background);
}

.other-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  padding-top: 1rem;
  transition: transform 180ms ease;
}

.other-card:hover img {
  transform: scale(1.1);
}

.other-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 60%), transparent);
  color: white;
  padding: 0.75rem;
  font-family: var(--font-stencil);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.news-list {
  display: flex;
  max-width: 56rem;
  flex-direction: column;
  gap: 1rem;
}

.news-row {
  display: grid;
  gap: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: transform 300ms ease, background-color 300ms ease, color 300ms ease;
  cursor: pointer;
}

.news-meta {
  font-size: 0.875rem;
}

.news-meta div,
.news-meta time {
  display: block;
  opacity: 0.6;
}

.news-meta span {
  display: inline-block;
  margin-top: 0.5rem;
  border: 1px solid currentColor;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.news-meta small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.news-row h2 {
  margin-bottom: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.25;
}

.news-row p {
  max-width: 36rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.news-cta {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.news-row:hover .news-cta {
  opacity: 1;
}

.empty-state {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  padding: 1.5rem;
}

.article-page {
  background: var(--background);
}

.article-hero {
  position: relative;
  display: flex;
  min-height: 78vh;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 8rem 1.5rem 4.5rem;
}

.article-hero-media,
.article-hero-overlay {
  position: absolute;
  inset: 0;
}

.article-hero-media {
  background-position: right 8% center;
  background-repeat: no-repeat;
  background-size: min(560px, 82vw) auto;
  filter: invert(1);
  opacity: 0.1;
  transform: rotate(-6deg) scale(1.05);
}

.article-hero-overlay {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 10%), var(--background) 88%),
    linear-gradient(90deg, var(--background), rgb(0 0 0 / 38%) 60%, var(--background));
}

.article-hero-inner,
.article-shell {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.article-breadcrumb,
.article-kicker,
.article-meta-line,
.article-tags,
.article-info-label,
.article-info-value,
.article-author-name,
.article-cta-links {
  font-family: var(--font-stencil);
  letter-spacing: 0.08em;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-breadcrumb a:hover,
.article-meta-line a:hover,
.article-author-name:hover {
  color: var(--primary);
}

.article-kicker {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.875rem;
}

.article-hero h1 {
  max-width: 58rem;
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.article-standfirst {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.article-meta-line,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta-line {
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-meta-line a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 28%);
  text-underline-offset: 0.24em;
}

.article-tags {
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 5%);
  color: var(--muted-foreground);
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.article-content-section {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 6rem;
}

.article-shell {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.article-aside {
  order: 2;
}

.article-info-panel {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
}

.article-info-label {
  margin: 1.25rem 0 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.article-info-label:first-child {
  margin-top: 0;
}

.article-author-name,
.article-info-value {
  color: var(--foreground);
  font-weight: 400;
}

.article-info-copy {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-body {
  max-width: 48rem;
  color: rgb(255 255 255 / 88%);
  font-size: 1.125rem;
  line-height: 1.85;
}

.article-body > * + * {
  margin-top: 1.5rem;
}

.article-body strong {
  color: var(--foreground);
}

.article-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(0.9 0.24 128 / 45%);
  text-underline-offset: 0.24em;
}

.article-cta {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.article-cta p {
  color: var(--foreground);
  font-family: var(--font-stencil);
  letter-spacing: 0.08em;
}

.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.article-cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.article-cta-links a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.media-grid {
  max-width: 72rem;
  margin: 0 auto;
}

.media-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  margin: 0;
}

.media-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  color: white;
  font-family: var(--font-stencil);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.media-card figcaption span:last-child {
  opacity: 0.7;
}

.comic-list {
  display: grid;
  max-width: 72rem;
  margin: 0 auto;
  gap: 1.5rem;
}

.comic-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.comic-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 60px -18px var(--primary);
  transform: translateY(-0.25rem);
}

.comic-cover {
  overflow: hidden;
  background: var(--background);
}

.comic-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms ease;
}

.comic-card:hover .comic-cover img {
  transform: scale(1.04);
}

.comic-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.comic-kicker {
  color: var(--primary);
  font-size: 0.875rem;
}

.comic-card h2 {
  font-size: 3rem;
  line-height: 0.9;
}

.comic-card p {
  max-width: 32rem;
  color: var(--muted-foreground);
}

.comic-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.875rem;
}

.comic-card-meta span:last-child {
  color: var(--primary);
}

.comic-hero {
  padding-bottom: 0;
}

.comic-hero .page-title {
  font-size: 3.75rem;
}

.comic-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.comic-hero-cover {
  display: none;
}

.comic-hero-cover img {
  width: 100%;
  max-height: 28rem;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.comic-reader-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--background) 18rem);
  padding: 2rem 1.5rem 6rem;
}

.comic-reader-head {
  display: flex;
  max-width: 52rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.reader-link:hover {
  color: var(--primary);
}

.comic-pages {
  display: flex;
  max-width: 52rem;
  margin: 0 auto;
  flex-direction: column;
  gap: 2rem;
}

.comic-page {
  overflow: hidden;
  border: 1px solid var(--border);
  background: oklch(0.04 0 0);
  margin: 0;
}

.comic-page img {
  width: 100%;
  height: auto;
}

.comic-page figcaption {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-brand img {
  width: auto;
  height: 1.5rem;
  filter: invert(1);
}

.footer-note,
.footer-link {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.footer-link:hover {
  color: var(--primary);
}

@media (max-width: 420px) {
  .site-header {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-social-links {
    gap: 0.25rem;
  }

  .header-social-link {
    width: 1.875rem;
    height: 1.875rem;
    flex-basis: 1.875rem;
  }

  .play-button {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .steam-button,
  .youtube-button {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (min-width: 640px) {
  .class-card-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .site-header,
  .home-hero,
  .section,
  .list-section,
  .page-hero,
  .article-hero,
  .article-content-section,
  .class-detail-hero,
  .comic-reader-section,
  .site-footer {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .site-nav {
    display: flex;
  }

  .header-social-links {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .home-title {
    font-size: 4.5rem;
  }

  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .section-title {
    font-size: 4.5rem;
  }

  .card-name {
    font-size: 3rem;
  }

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

  .cta-title {
    font-size: 6rem;
  }

  .page-title {
    font-size: 10rem;
  }

  .class-row {
    grid-template-columns: 280px 1fr auto;
    gap: 2.5rem;
  }

  .class-row-image {
    height: 18rem;
  }

  .class-row-title {
    font-size: 4.5rem;
  }

  .class-row-ability {
    text-align: right;
  }

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

  .class-detail-title {
    font-size: 10rem;
  }

  .class-detail-tagline {
    font-size: 1.5rem;
  }

  .news-row {
    grid-template-columns: 140px 1fr;
  }

  .news-row h2 {
    font-size: 2.25rem;
  }

  .article-hero h1 {
    font-size: 5.5rem;
  }

  .article-shell {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 4rem;
  }

  .article-aside {
    position: sticky;
    top: 7.5rem;
    order: 0;
  }

  .comic-card {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  }

  .comic-card-body {
    padding: 3rem;
  }

  .comic-card h2 {
    font-size: 5rem;
  }

  .comic-hero .page-title {
    font-size: 7rem;
  }

  .comic-hero-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }

  .comic-hero-cover {
    display: block;
  }
}

@media (min-width: 1024px) {
  .home-title {
    font-size: 6rem;
  }

  .logo-watermark {
    right: 6rem;
  }

  .logo-watermark img {
    width: 720px;
  }

  .class-card-grid,
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comic-hero-grid {
    grid-template-columns: minmax(0, 1fr) 28rem;
  }
}
