@font-face {
  font-family: "VCR OSD Mono";
  src:
    local("VCR OSD Mono"),
    local("VCR OSD Mono Regular"),
    url("assets/fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-primary-orange: #ff8a00;
  --color-primary-blue: #00d1ff;
  --color-bg-deep: #14142b;
  --color-bg-surface: #22224a;
  --color-text-light: #fff4d6;
  --color-text-dark: #1d1832;
  --color-accent-lime: #7cff6b;
  --color-danger: #ff3366;
  --elite-orange: var(--color-primary-orange);
  --elite-blue: var(--color-primary-blue);
  --arena-dark: var(--color-bg-deep);
  --ink: #131313;
  --paper: var(--color-text-light);
  --panel-bg: #fff6e8;
  --header-bg: rgb(20 20 43 / 78%);
  --header-bg-solid: rgb(20 20 43 / 88%);
  --link-accent: #fff4d6;
  --outline: 4px solid var(--ink);
  --shadow: 0 8px 0 var(--ink);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "VCR OSD Mono", "Courier New", monospace;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 12%, rgb(0 209 255 / 24%) 0%, transparent 34%),
    radial-gradient(circle at 82% 18%, rgb(255 138 0 / 24%) 0%, transparent 36%),
    radial-gradient(circle at 52% 82%, rgb(124 255 107 / 16%) 0%, transparent 38%),
    radial-gradient(circle at 20% 10%, #34346f 0%, var(--color-bg-surface) 44%, var(--arena-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.arena-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 90% 22%, rgb(0 209 255 / 40%), transparent 34%),
    radial-gradient(circle at 15% 88%, rgb(255 138 0 / 34%), transparent 36%),
    radial-gradient(circle at 50% 55%, rgb(124 255 107 / 20%), transparent 37%),
    radial-gradient(circle at 30% 30%, rgb(0 209 255 / 14%), transparent 42%);
  filter: saturate(1.18);
}

.arena-bg::before,
.arena-bg::after {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.arena-bg::before {
  background:
    radial-gradient(circle at 38% 36%, rgb(0 209 255 / 24%), transparent 32%),
    radial-gradient(circle at 62% 62%, rgb(255 138 0 / 18%), transparent 37%);
  animation: drift-a 12s ease-in-out infinite alternate;
}

.arena-bg::after {
  background:
    radial-gradient(circle at 70% 65%, rgb(255 138 0 / 25%), transparent 38%),
    radial-gradient(circle at 20% 78%, rgb(0 209 255 / 20%), transparent 36%);
  animation: drift-b 14s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(28 22 70 / 24%) 0%, rgb(12 10 36 / 70%) 100%),
    conic-gradient(
      from 15deg at 50% 50%,
      rgb(0 209 255 / 12%),
      rgb(255 138 0 / 11%),
      rgb(124 255 107 / 9%),
      rgb(0 209 255 / 12%)
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 26px,
      rgb(255 255 255 / 0.03) 26px,
      rgb(255 255 255 / 0.03) 27px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 26px,
      rgb(255 255 255 / 0.03) 26px,
      rgb(255 255 255 / 0.03) 27px
    );
  mix-blend-mode: soft-light;
  background-size: 100% 100%, 140% 140%, 100% 100%, 100% 100%;
  animation: grid-drift 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  left: -8vw;
  right: -8vw;
  bottom: -14vh;
  height: 42vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 75% at 10% 100%, #2f2f63 0%, transparent 72%),
    radial-gradient(58% 72% at 38% 100%, #22224a 0%, transparent 70%),
    radial-gradient(64% 76% at 70% 100%, #353572 0%, transparent 74%),
    radial-gradient(62% 72% at 95% 100%, #1f1f45 0%, transparent 70%);
  filter: drop-shadow(0 -6px 0 rgb(0 0 0 / 18%));
  animation: hills-sway 16s ease-in-out infinite alternate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: var(--outline);
  transition: background 220ms ease, border-color 220ms ease;
}

.brand {
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-size: 1.85rem;
  color: var(--color-accent-lime);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--ink);
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.site-header a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  transition: transform 200ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header a.active,
.site-header a:hover,
.site-header a:focus-visible {
  border-color: var(--elite-blue);
  background: rgb(0 209 255 / 16%);
  transform: translateY(-1px);
}

.site-header nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .lang-switcher .lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
}

.site-header .lang-switcher .lang-option.active {
  border-color: var(--elite-blue);
  background: rgb(0 209 255 / 16%);
  transform: translateY(-1px);
}

.site-header .lang-switcher a.lang-option:hover,
.site-header .lang-switcher a.lang-option:focus-visible {
  background: rgb(0 209 255 / 24%);
  border-color: var(--elite-blue);
  transform: translateY(-1px);
}

.lang-switcher-shell {
  display: inline-flex;
  align-items: center;
}

.section-shell {
  width: min(1100px, 92vw);
  margin: 0 auto 3.5rem;
}

.inner-main {
  padding-top: 1.2rem;
}

.panel {
  border: var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 1.25rem 0 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgb(17 16 32 / 45%), rgb(17 16 32 / 62%)),
    image-set(
      url("assets/images/elit_header_1280.jpg") 1x,
      url("assets/images/elit_header_1920.jpg") 2x
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 28%, rgb(255 255 255 / 22%), rgb(17 16 32 / 8%) 44%, rgb(17 16 32 / 45%) 100%);
}

.hero-video,
.hero-overlay {
  display: none;
}

.hero-video {
  width: 0;
  height: 0;
}

.hero-overlay {
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(520px, 84vw);
  margin: 0 auto;
  padding: 0.8rem 0.85rem 1rem;
  color: var(--paper);
  background: linear-gradient(160deg, rgb(19 18 40 / 42%), rgb(19 18 40 / 24%));
  border: 2px solid rgb(255 244 214 / 38%);
  box-shadow: 0 6px 18px rgb(0 0 0 / 30%);
  backdrop-filter: blur(2px);
  animation: hero-pop 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content.panel:hover {
  transform: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / 30%);
}

h1,
.logo,
h2,
h3,
h4 {
  font-family: "VCR OSD Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
  transform: skewX(-4deg);
  margin: 0;
}

h1,
.logo {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--ink);
}

.logo {
  font-size: clamp(3.2rem, 11vw, 6.4rem);
}

.tagline {
  margin: 0.5rem auto 0.9rem;
  max-width: 25ch;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 800;
  color: rgb(255 244 214 / 92%);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: var(--outline);
  box-shadow: 0 5px 0 var(--ink);
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 220ms ease;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn-primary {
  background: linear-gradient(170deg, #fff4d6, var(--elite-orange));
}

.btn-secondary {
  background: linear-gradient(170deg, #fff4d6, var(--elite-blue));
  opacity: 0.95;
}

.release-meta {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.release-meta a {
  text-decoration: none;
}

.release-meta img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.section-head {
  display: grid;
  gap: 0.3rem;
  margin: 1.8rem 0 1.1rem;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.3rem);
  color: #fff4d6;
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.75);
}

h3 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--color-text-dark);
  margin-bottom: 0.7rem;
}

h4 {
  font-size: 1.35rem;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
}

.trailer-frame {
  padding: 0.35rem;
  overflow: hidden;
}

.trailer-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
}

.video-consent {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  align-items: center;
  padding: 1rem;
  border: var(--outline);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 0 var(--ink);
  background: linear-gradient(150deg, #fff4df, #ffe8cc);
  color: var(--color-text-dark);
}

.trailer-frame .video-consent {
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: none;
}

.video-consent.is-loaded {
  padding: 0;
  background: #000;
}

.video-consent iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: inherit;
  display: block;
}

.video-consent-inner {
  margin: 0 auto;
  max-width: 62ch;
  display: grid;
  gap: 0.75rem;
}

.video-consent-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text-dark);
}

.video-consent-copy,
.video-consent-note {
  margin: 0;
  font-weight: 700;
}

.video-consent-note a {
  color: var(--color-text-dark);
}

.video-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}


.pitch-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.pitch-list li {
  padding: 0.9rem 1rem;
  font-weight: 700;
  background: linear-gradient(160deg, #fff0dc, #fff4d6);
}

.page-teaser {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.page-teaser p {
  margin: 0;
}

.page-hero {
  padding: 1.1rem;
  margin-bottom: 1.4rem;
}

.page-hero p {
  margin: 0.4rem 0 0;
  font-weight: 600;
}

.about {
  padding-bottom: 2rem;
}

.about-block {
  padding: 1rem;
}

.availability-section {
  margin-top: 0.8rem;
}

.availability-intro {
  margin: 0;
  color: var(--paper);
  max-width: 64ch;
  opacity: 0.94;
}

.availability-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.7rem;
}

.availability-col {
  background:
    radial-gradient(circle at 100% 0, rgb(0 209 255 / 14%), transparent 34%),
    radial-gradient(circle at 0 100%, rgb(255 138 0 / 14%), transparent 36%),
    linear-gradient(160deg, #fff1de, #ffe8d2);
}

.availability-col h3 {
  margin-top: 0;
}

.channel-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  background: linear-gradient(160deg, #fff4e7, #ffe8cd);
  box-shadow: 0 5px 0 rgb(19 19 19 / 20%);
  font-weight: 700;
}

.availability-col a {
  color: var(--color-text-dark);
  font-weight: 700;
}

.channel-link {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.availability-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability-status.current {
  background: rgb(124 255 107 / 30%);
}

.availability-status.planned {
  background: rgb(255 138 0 / 26%);
}

.availability-status.required {
  background: rgb(0 209 255 / 24%);
}

.avail-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.avail-icon-text {
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  background: rgb(255 244 214 / 65%);
}

.platform-row {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(150deg, #fff4df, #ffeacc);
  box-shadow: 0 4px 0 rgb(19 19 19 / 18%);
  font-weight: 700;
}

.req-list {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.req-list li {
  padding: 0.46rem 0.62rem;
  border-radius: 12px;
  border: 2px solid rgb(19 19 19 / 25%);
  background: rgb(255 244 214 / 65%);
}

.repo-panel p {
  margin: 0.2rem 0 0.7rem;
}

.repo-panel a {
  color: var(--color-text-dark);
  font-weight: 700;
}

.repo-assets,
.release-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.repo-assets a,
.release-list a {
  color: var(--color-text-dark);
  font-weight: 700;
}

.game-loop {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.game-loop li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  padding: 0.6rem;
  font-weight: 700;
  background: linear-gradient(160deg, #fff0dc, #fbe7cf);
}

.game-loop span {
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: "VCR OSD Mono", "Courier New", monospace;
  background: var(--elite-orange);
}

.about-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.roles {
  display: grid;
  gap: 0.7rem;
}

.roles section {
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: linear-gradient(160deg, #ffe8d2, #f7dfc6);
}

.powerups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.powerup-card {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
}

.freeze {
  background: linear-gradient(150deg, #fff4d6, var(--elite-blue));
}

.bomb {
  background: linear-gradient(150deg, #fff4d6, var(--elite-orange));
}

.throw-boost {
  background: linear-gradient(150deg, #fff4d6, #ff6f91);
}

.speed-boost {
  background: linear-gradient(150deg, #fff4d6, var(--color-accent-lime));
}

.growth-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  min-height: 220px;
  padding: 0.9rem 0.6rem 0.6rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff0dc, #ffe8d2);
}

.growth-chart div {
  height: var(--height);
  border-radius: 12px 12px 6px 6px;
  border: 3px solid var(--ink);
  background: linear-gradient(170deg, #fff4d6, var(--elite-blue));
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 0.3rem;
  font-weight: 800;
}

.growth-chart div:last-child {
  background: linear-gradient(170deg, #fff4d6, var(--elite-orange));
}

.growth-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-weight: 700;
}

.pill {
  display: inline-block;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin: 0.3rem 0.25rem 0;
  font-weight: 700;
}

.pill.green {
  background: var(--color-accent-lime);
}

.pill.red {
  background: var(--color-danger);
}

.smart-feedback-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.smart-feedback-shot {
  margin: 0;
}

.smart-feedback-shot img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgb(19 19 19 / 20%);
}

.smart-feedback-shot figcaption {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.devlog-grid {
  display: grid;
  gap: 1rem;
}

.dev-card {
  overflow: hidden;
}

.dev-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.dev-card a:hover .thumb,
.dev-card a:focus-visible .thumb {
  transform: scale(1.03);
}

.thumb {
  min-height: 150px;
  border-bottom: var(--outline);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 320ms ease;
}

.thumb-a {
  background: radial-gradient(circle at 20% 30%, #fff4d6 0%, var(--elite-orange) 40%, #22224a 100%);
}

.thumb-b {
  background: radial-gradient(circle at 80% 20%, #fff4d6 0%, var(--elite-blue) 40%, #22224a 100%);
}

.thumb-c {
  background: linear-gradient(135deg, var(--elite-blue) 0%, var(--elite-orange) 50%, #22224a 100%);
}

.dev-card-body {
  padding: 0.9rem;
}

.dev-date {
  margin: 0 0 0.4rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

.article-shell {
  padding: 1rem;
  margin-bottom: 2rem;
}

.article-shell h1,
.article-shell h2,
.article-shell h3,
.article-shell h4 {
  color: var(--color-text-dark);
  text-shadow: none;
}

.article-shell h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  margin-bottom: 0.55rem;
}

.article-shell h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 1rem 0 0.45rem;
}

.article-shell h3 {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  margin: 0.7rem 0 0.35rem;
}

.article-shell p {
  line-height: 1.55;
}

.article-shell ul,
.article-shell ol {
  margin: 0.35rem 0 0.95rem 1.25rem;
  padding: 0;
  line-height: 1.5;
}

.article-shell li {
  margin-bottom: 0.3rem;
}

.devlog-nav {
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: center;
  margin: 0.85rem 0 1rem;
  flex-wrap: wrap;
}

.devlog-nav.next-only,
.devlog-nav.prev-only {
  justify-content: space-between;
}

.devlog-media-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0.9rem 0 1.15rem;
}

.devlog-media-grid > figure:only-child {
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

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

.devlog-media-grid.devlog-media-triplet img,
.devlog-media-grid.devlog-media-triplet video {
  max-height: 230px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .devlog-media-grid.devlog-media-triplet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .devlog-media-grid.devlog-media-triplet {
    grid-template-columns: 1fr;
  }
}

.devlog-media-full {
  margin: 0.95rem 0 1.2rem;
}

.article-shell figure {
  margin: 0;
}

.article-shell img,
.article-shell video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: var(--outline);
  box-shadow: 0 6px 0 var(--ink);
  background: #000;
}

.article-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: var(--outline);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 0 var(--ink);
  background: #000;
}

.article-shell .video-consent iframe {
  border: 0;
  box-shadow: none;
}

.article-shell figcaption {
  margin-top: 0.42rem;
  font-size: 0.9rem;
  color: #3b3652;
}

.article-image {
  border: var(--outline);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
}

.team-card {
  padding: 1rem;
  text-align: center;
}

.team-card p {
  margin: 0;
  font-weight: 700;
}

.contributor-card {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.avatar {
  width: 88px;
  aspect-ratio: 1;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  border: var(--outline);
  box-shadow: 0 6px 0 var(--ink);
  display: grid;
  place-items: center;
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-size: 2rem;
  color: var(--ink);
  background: linear-gradient(150deg, #fff4d6, var(--elite-orange) 55%, var(--elite-blue));
}

.avatar.has-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  object-fit: cover;
  display: block;
}

.contributor-avatar-link {
  display: inline-flex;
  text-decoration: none;
}

.contributor-link {
  font-weight: 700;
  color: var(--color-text-dark);
}

.community-grid {
  display: grid;
  gap: 1rem;
}

.link-card {
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.link-card:hover .icon-chip,
.link-card:focus-visible .icon-chip {
  transform: rotate(-6deg) scale(1.05);
}

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-size: 1.3rem;
  background: linear-gradient(160deg, #fff4d6, var(--elite-blue));
  margin-bottom: 0.5rem;
  transition: transform 220ms ease;
}

.icon-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.presskit-box {
  margin-top: 1rem;
  padding: 1rem;
}

.release-box {
  margin-top: 1rem;
  padding: 1rem;
}

.support-box {
  margin-top: 1rem;
  padding: 1rem;
}

.release-box p {
  margin-top: 0;
}

.release-list {
  margin-top: 0.8rem;
}

.support-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.support-icon {
  margin-bottom: 0;
  background: linear-gradient(160deg, #fff4d6, #fff4d6);
}

.support-copy {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--color-text-dark);
}

.support-mail-btn {
  margin-top: 0.9rem;
  margin-left: calc(52px + 0.75rem);
  width: fit-content;
}

.presskit-box p {
  margin-top: 0;
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
  border-top: var(--outline);
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--link-accent);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift-a {
  from {
    transform: translate3d(-2%, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) rotate(5deg) scale(1.06);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(2%, -1%, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(-3%, 2%, 0) rotate(-5deg) scale(1.05);
  }
}

@keyframes hero-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hills-sway {
  from {
    transform: translateX(-1.5%);
  }
  to {
    transform: translateX(1.5%);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 14% 10%, 0 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 700px) {
  .hero-content {
    width: min(560px, 80vw);
    padding: 1rem 1rem 1.15rem;
  }

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

  .about-grid,
  .devlog-grid,
  .community-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .devlog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 650px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header ul {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .lang-switcher-shell {
    margin-top: 0;
  }

  .game-loop,
  .powerups {
    grid-template-columns: 1fr;
  }

  .smart-feedback-gallery {
    grid-template-columns: 1fr;
  }

  .support-head {
    grid-template-columns: 1fr;
  }

  .support-mail-btn {
    margin-left: 0;
  }

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