/* Tyronix Studio — key art and game identities */
:root {
  --bg: #080d17;
  --surface: #111b2a;
  --ink: #f7f9ff;
  --muted: #bbc6d7;
  --studio-gold: #ffc27d;
  --survival-light: #ffad86;
  --fantasy-light: #8df7e7;
  --accent: var(--studio-gold);
  --cold: var(--fantasy-light);
  --cinema-edge: #b1c9f133;
}

.site-header {
  background: linear-gradient(100deg, #121521f7, #090e19f7 55%, #0f1d29f7);
  border-bottom-color: var(--cinema-edge);
}

.site-header .nav a {
  color: #c7cfdb;
  font-size: .8125rem;
  letter-spacing: .06em;
}

.site-header .nav a:is(:hover, .active) {
  color: var(--ink);
}

.site-header .nav a.active::after {
  height: 2px;
  background: linear-gradient(90deg, #ff8b64, var(--studio-gold));
  box-shadow: 0 0 10px #ff996c65;
}

.site-header .nav a:last-child {
  color: var(--studio-gold);
  border-color: #ffc27d78;
}

.language button {
  min-height: 32px;
  min-width: 34px;
  font-size: .75rem;
}

.language button[aria-pressed=true] {
  background: var(--studio-gold);
  color: #13141a;
}

.btn.primary,
.immersive-hero:is(.survival, .fantasy) .btn.primary {
  --button-light: #ffe4ad;
  --button-color: #ffa665;
  background: linear-gradient(112deg, var(--button-light), var(--button-color));
  border-color: var(--button-color);
  color: #16151d;
  box-shadow: 0 6px 26px -12px var(--button-color);
}

.btn.primary:hover,
.immersive-hero:is(.survival, .fantasy) .btn.primary:hover {
  background: linear-gradient(112deg, #fff6e9, var(--button-light));
  border-color: var(--button-light);
  color: #16151d;
}

.immersive-hero.survival .btn.primary {
  --button-light: #ffd597;
  --button-color: #ff9a76;
}

.immersive-hero.fantasy .btn.primary {
  --button-light: #cbfff1;
  --button-color: #5de3ce;
}

.menu-bars {
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  inset: 2px 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease;
}

.menu-bars::after { top: 9px; }
[aria-expanded="true"] .menu-bars::before { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded="true"] .menu-bars::after { transform: translateY(-3.5px) rotate(-45deg); }

#development-media { scroll-margin-top: 90px; }
#development-media:focus { outline: none; }

.section-head p,
.game-card p {
  font-size: 1rem;
}

body:is([data-route="home"], [data-route="after"], [data-route="valdryth"]) #main > .fade {
  animation: none;
}

.cinematic-scene picture,
.cinematic-scene img {
  display: block;
  width: 100%;
  height: 100%;
}

.cinematic-scene img {
  object-fit: cover;
  object-position: var(--art-position, 58% center);
  filter: var(--art-grade);
}

.cinematic-scene.fantasy {
  --art-position: 65% center;
  --art-grade: saturate(1.4) brightness(1.14) contrast(1.02);
  --art-light: #3bd9ef36;
  --art-shadow: #1224503d;
  background: #0d2038;
}

.cinematic-scene.survival {
  --art-grade: saturate(1.43) brightness(1.22) contrast(1.03);
  --art-light: #ff723645;
  --art-shadow: #29124c42;
  background: #252034;
}

.cinematic-scene::after,
.game-card .cinematic-scene::after {
  content: "";
  background:
    radial-gradient(ellipse at 68% 51%, var(--art-light), transparent 57%),
    linear-gradient(130deg, var(--art-shadow), transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero.studio-hero {
  min-height: clamp(660px, calc(100svh - 86px), 900px);
}

.hero.studio-hero .world-half {
  width: 64%;
  clip-path: none;
}

.studio-hero .worldscape {
  background: linear-gradient(118deg, #28171f 0%, #0d1529 54%, #0b2431 100%);
}

.studio-hero .world-half .scene {
  filter: none;
  opacity: 1;
  animation: none;
}

.hero.studio-hero .world-half.survival {
  width: 58%;
  mask-image: linear-gradient(90deg, #000 70%, #000c 83%, transparent);
}

.studio-hero .world-half.survival .scene {
  --art-position: 99% 50%;
}

.studio-hero .world-half.fantasy {
  mask-image: linear-gradient(108deg, transparent 5%, #000 41%);
}

.studio-hero .worldscape::after {
  background:
    radial-gradient(ellipse at 19% 52%, #090d1daf 0%, #0b102456 33%, transparent 59%),
    linear-gradient(0deg, #080d17 0%, #080d17e3 12%, #0b10263c 41%, transparent 64%);
}

.worldscape-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 44%, #ff674085, transparent 43%),
    radial-gradient(ellipse at 80% 35%, #55f0ef7a, transparent 38%);
  mix-blend-mode: screen;
  opacity: .19;
  pointer-events: none;
}

.hero.studio-hero h1 {
  font-size: clamp(4rem, 7.7vw, 7.4rem);
  line-height: .93;
  letter-spacing: -.077em;
  text-wrap: balance;
  color: #fcf8f3;
  text-shadow: 0 3px 28px #08091deb;
}

.hero.studio-hero .hero-k {
  color: #ffe0b3;
  font-size: .75rem;
  letter-spacing: .16em;
}

.hero.studio-hero h1 span {
  width: fit-content;
  color: var(--studio-gold);
}

@supports (background-clip: text) {
  .hero.studio-hero h1 span {
    background: linear-gradient(100deg, #fff3cf, #ffcb84 40%, #ffa267 76%, #ff927d);
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 11px #0a1229b8);
  }
}

.hero.studio-hero .hero-content > p {
  color: #f1f5ff;
  text-shadow: 0 1px 12px #080b17, 0 1px 4px #080b17;
}

.hero-projects {
  gap: 2px;
  border: 0;
}

.hero-project {
  --project-light: var(--survival-light);
  --project-surface: #301b24f5;
  min-height: 90px;
  background: linear-gradient(108deg, var(--project-surface), #0c1320f2 78%);
  border: 1px solid color-mix(in srgb, var(--project-light) 30%, transparent);
  border-top-color: color-mix(in srgb, var(--project-light) 78%, transparent);
  box-shadow: inset 0 0 0 0 var(--project-light);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.hero-project.fantasy {
  --project-light: var(--fantasy-light);
  --project-surface: #103038f5;
  border-left: 1px solid color-mix(in srgb, var(--project-light) 30%, transparent);
}

.hero-project:is(:hover, :focus-visible) {
  background: linear-gradient(108deg, var(--project-surface), #142138f5 78%);
  border-color: var(--project-light);
  box-shadow: inset 0 -2px var(--project-light);
}

.hero-project small {
  color: var(--project-light);
  font-size: .6875rem;
}

.hero-project strong {
  display: block;
  line-height: 1.2;
}

.hero-caption,
.concept,
.game-hero-foot {
  color: #d4d7db;
  font-size: .75rem;
}

.game-card {
  min-height: clamp(440px, 42vw, 600px);
  --game-color: var(--survival-light);
  --card-shadow: #1b111f;
  background: var(--card-shadow);
  border-color: color-mix(in srgb, var(--game-color) 34%, transparent);
}

.game-card.fantasy,
.immersive-hero.fantasy {
  --game-color: var(--fantasy-light);
}

.game-card.fantasy { --card-shadow: #081e2a; }

.game-card:is(:hover, :focus-visible) {
  border-color: var(--game-color);
}

.game-card.fantasy .cinematic-scene img {
  object-position: 66% center;
}

.game-card .cinematic-scene {
  filter: none;
  transform: none;
}

.game-card .cinematic-scene img {
  transition: transform .6s cubic-bezier(.18, .72, .28, 1);
}

.game-card:is(:hover, :focus-visible) .cinematic-scene {
  transform: none;
}

.game-card:is(:hover, :focus-visible) .cinematic-scene img {
  transform: scale(1.045);
}

.game-card::after {
  background:
    linear-gradient(0deg, var(--card-shadow) 0%, color-mix(in srgb, var(--card-shadow) 92%, transparent) 22%, #080d175c 55%, transparent 82%);
}

.game-card .game-top {
  justify-content: flex-end;
}

.game-card .status,
.game-hero-foot .status {
  background: #080b10ed;
  font-size: .6875rem;
}

.game-card .card-genre,
.immersive-hero .game-genre {
  color: var(--game-color, var(--survival-light));
  font-size: .75rem;
}

.game-card .card-link {
  color: var(--game-color, var(--survival-light));
  gap: 10px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .4em;
  transition: text-decoration-color .25s ease;
}

.game-card:is(:hover, :focus-visible) .card-link {
  text-decoration-color: currentColor;
}

.immersive-hero {
  --game-color: var(--survival-light);
  --hero-shadow: #1d1230dc;
  min-height: clamp(680px, calc(100svh - 86px), 880px);
  background: #191526;
}

.immersive-hero.fantasy {
  --hero-shadow: #071e38dc;
  background: #0c2535;
}

.immersive-hero .cinematic-scene {
  filter: none;
  animation: none;
}

.immersive-hero::after {
  background:
    radial-gradient(ellipse at 14% 68%, var(--hero-shadow), #080d1745 52%, transparent 74%),
    linear-gradient(0deg, #080d17, #080d17aa 17%, transparent 54%);
}

.game-brand {
  --brand-size: clamp(2.6rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.45vw, 1.5rem);
  max-width: max-content;
}

.immersive-hero .game-brand {
  --brand-size: clamp(4.5rem, 9vw, 9.4rem);
  margin: 23px 0 25px;
}

.game-brand .brand-title {
  min-width: 0;
  display: block;
  color: #f1e9df;
  font-family: Bahnschrift, "Arial Narrow", "Arial Black", system-ui, sans-serif;
  font-size: var(--brand-size);
  font-stretch: condensed;
  font-weight: 850;
  line-height: .79;
  letter-spacing: -.079em;
  text-shadow: 0 2px 30px #090b0e99;
  text-transform: uppercase;
}

.game-brand .brand-line {
  display: block;
  white-space: nowrap;
}

.survival .game-brand .brand-line:first-child {
  margin-bottom: .17em;
  font-size: .50em;
  letter-spacing: .095em;
  color: var(--survival-light);
}

.survival .game-brand .brand-line:last-child {
  color: #fff3e8;
}

.brand-emblem {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 0 0 auto;
  width: calc(var(--brand-size) * .65);
  aspect-ratio: 1;
  color: var(--game-color);
  filter: drop-shadow(0 2px 9px #07090eab);
}

.brand-emblem::before,
.brand-emblem::after,
.brand-emblem i {
  position: absolute;
  display: block;
  content: "";
}

.survival .brand-emblem::before {
  inset: 9% 12% 16%;
  background:
    linear-gradient(currentColor 0 0) left top / 38% 9% no-repeat,
    linear-gradient(currentColor 0 0) left top / 9% 35% no-repeat,
    linear-gradient(currentColor 0 0) right top / 38% 9% no-repeat,
    linear-gradient(currentColor 0 0) right top / 9% 35% no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 38% 9% no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 9% 35% no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 38% 9% no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 9% 35% no-repeat;
}

.survival .brand-emblem::after {
  inset: 32% 12%;
  background: currentColor;
  clip-path: polygon(0 58%, 30% 58%, 45% 2%, 60% 66%, 72% 40%, 100% 40%, 100% 54%, 80% 54%, 57% 100%, 43% 46%, 37% 72%, 0 72%);
}

.fantasy .game-brand {
  --brand-size: clamp(2rem, 4.7vw, 5rem);
}

.immersive-hero.fantasy .game-brand {
  --brand-size: clamp(3.5rem, 8.6vw, 9rem);
}

.fantasy .game-brand .brand-title,
.fantasy .game-brand .brand-line {
  color: #dcfff7;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: .9;
  letter-spacing: .025em;
  text-shadow: 0 2px 30px #10251eaa;
}

.fantasy .brand-emblem {
  width: calc(var(--brand-size) * .63);
}

.fantasy .brand-emblem::before {
  inset: 17%;
  border: max(1px, .025em) solid currentColor;
  transform: rotate(45deg);
}

.fantasy .brand-emblem::after {
  inset: 9% 12%;
  background: currentColor;
  clip-path: polygon(0 0, 51% 65%, 100% 0, 72% 54%, 51% 100%, 29% 54%);
}

.fantasy .brand-emblem i {
  inset: 0 45% 78%;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero-project .brand-emblem {
  --brand-size: 2.7rem;
  --game-color: var(--survival-light);
}

.hero-project.fantasy .brand-emblem {
  --game-color: var(--fantasy-light);
}

.valdryth-concept {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #8df7e764;
  background: linear-gradient(120deg, #10233b, #11313c);
}

.valdryth-concept-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 35vw, 530px);
  object-fit: cover;
  background: #102827;
}

.valdryth-concept-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(1.28) brightness(1.07);
}

.valdryth-concept-copy {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 4.5rem);
}

.valdryth-concept-copy .media-kicker {
  color: var(--fantasy-light);
  font-size: .75rem;
}

.valdryth-concept-copy h3 {
  margin: .55em 0;
  color: #eaf3ee;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.valdryth-concept-copy p {
  margin: 0;
  color: #cad8d4;
  line-height: 1.7;
}

.project-section {
  background: radial-gradient(ellipse at 88% 32%, #101c32, transparent 61%), #0b101b;
}

.studio-statement,
.community-cta {
  background: radial-gradient(ellipse at 14% 15%, #302034, transparent 60%), #0d1727;
}

.media-feature,
.greyhaven-dossier,
.game-feature-section.survival {
  background: radial-gradient(ellipse at 9% 0%, #2c1b29, transparent 62%), #0d1522;
}

.valdryth-dossier,
.game-feature-section.fantasy {
  background: radial-gradient(ellipse at 86% 0%, #15343e, transparent 66%), #0d1727;
}

.media-filter[aria-pressed=true] {
  background: var(--survival-light);
  border-color: var(--survival-light);
}

.media-kicker,
.greyhaven-dossier .eyebrow,
.game-feature-section.survival .eyebrow {
  color: var(--survival-light);
}

.valdryth-dossier .eyebrow,
.game-feature-section.fantasy .eyebrow {
  color: var(--fantasy-light);
}

.participation {
  background: radial-gradient(ellipse at 14% 0%, #33202c, transparent 62%), #0d1522;
  border-block: 1px solid var(--cinema-edge);
}

.participation-page {
  background: radial-gradient(ellipse at 80% 26%, #281c31, transparent 50%), var(--bg);
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.participation-card {
  --panel-light: var(--studio-gold);
  --panel-surface: #30251f;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  background: linear-gradient(135deg, var(--panel-surface), #121a29 68%);
  border: 1px solid var(--cinema-edge);
  border-top-color: var(--panel-light);
}

.participation-beta {
  --panel-light: var(--survival-light);
  --panel-surface: #302031;
}

a.participation-card {
  transition: border-color .2s ease;
}

a.participation-card:is(:hover, :focus-visible) {
  border-color: var(--panel-light);
}

.participation-card :is(h2, h3) {
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-transform: none;
}

.participation-card p {
  max-width: 62ch;
  margin: 0;
  color: #e1e8f4;
}

.participation-card .card-link {
  color: var(--panel-light);
  margin-top: auto;
}

.participation-card .actions {
  margin-top: auto;
}

.paypal-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 0;
  font-size: .875rem;
  color: var(--muted);
}

.paypal-qr img {
  display: block;
  width: 124px;
  height: auto;
}

@media (max-width: 680px) {
  .paypal-qr img { width: 96px; }
}

.participation-card .member-game {
  width: 100%;
  min-width: 0;
}

.participation-card .member-game small {
  color: var(--muted);
}

.beta-page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(70px, 13vw, 185px) clamp(54px, 10vw, 115px);
  background: #211827;
}

.beta-page-head .cinematic-scene {
  --art-position: 72% 50%;
}

.beta-page-head::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #0b1020f2, #0b1020b0 53%, transparent 93%),
    linear-gradient(0deg, #080d17b8, transparent 65%);
}

.beta-page-head p {
  max-width: 52ch;
  color: #f1f5ff;
}

@media (max-width: 680px) {
  .participation-grid {
    grid-template-columns: 1fr;
  }

  .beta-page-head::after {
    background: linear-gradient(90deg, #0b1020ed, #0b102079), linear-gradient(0deg, #080d17d1, transparent 72%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-hero .cinematic-scene img,
  .immersive-hero .cinematic-scene img {
    animation: art-settle 4.6s cubic-bezier(.18, .62, .22, 1) both;
  }

  .worldscape-atmosphere {
    animation: atmosphere-settle 4.6s ease-out both;
  }

  .hero-content,
  .game-hero-content {
    animation: copy-arrive .7s cubic-bezier(.18, .72, .24, 1) both;
  }

  .game-card .brand-emblem,
  .hero-project .brand-emblem {
    transition: filter .3s ease;
  }

  :is(.game-card, .hero-project):is(:hover, :focus-visible) .brand-emblem {
    filter: drop-shadow(0 0 9px var(--game-color));
  }
}

@keyframes art-settle {
  from { transform: scale(1.055); }
  to { transform: scale(1); }
}

@keyframes atmosphere-settle {
  from { opacity: .47; }
  to { opacity: .19; }
}

@keyframes copy-arrive {
  from { opacity: .7; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .site-header .topbar {
    height: 70px;
  }

  .site-header .menu-toggle {
    display: block;
    min-height: 40px;
    min-width: 42px;
  }

  .site-header .nav {
    position: absolute;
    inset: 70px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    border-bottom: 1px solid var(--cinema-edge);
    padding: .75rem max(20px, calc((100% - var(--max)) / 2)) 1.25rem;
    background: #0b0e14;
  }

  .site-header .nav.open {
    display: flex;
  }

  .site-header .nav a,
  .site-header .nav a:last-child {
    border: 0;
    border-bottom: 1px solid #fff2;
    padding: .75rem .5rem;
  }

  .site-header .nav a.active::after {
    left: .5rem;
    right: auto;
    bottom: 4px;
    width: 1.5rem;
  }

  .game-card {
    min-height: 410px;
  }
}

@media (max-width: 800px) {
  .hero.studio-hero {
    min-height: clamp(610px, calc(100svh - 70px), 720px);
  }

  .hero.studio-hero h1 {
    font-size: clamp(3rem, 9.7vw, 5.2rem);
  }

  .hero.studio-hero .world-half,
  .hero.studio-hero .world-half.survival {
    width: 68%;
  }

  .studio-hero .world-half.survival .scene {
    --art-position: 77% 40%;
  }

  .studio-hero .world-half.fantasy {
    mask-image: linear-gradient(105deg, transparent 8%, #000 47%);
  }

  .studio-hero .worldscape::after {
    background:
      radial-gradient(ellipse at 16% 54%, #090e20d9, #090e2050 49%, transparent 73%),
      linear-gradient(0deg, #080d17 3%, #080d17e9 24%, #090e2065 55%, transparent 88%);
  }

  .hero-project {
    min-height: 72px;
  }

  .immersive-hero {
    min-height: clamp(630px, calc(100svh - 70px), 730px);
  }

  .immersive-hero .game-brand {
    --brand-size: clamp(3.2rem, 11.4vw, 6.4rem);
  }

  .immersive-hero.fantasy .game-brand {
    --brand-size: clamp(2.5rem, 9.5vw, 6.1rem);
  }

  .game-card .game-brand {
    --brand-size: clamp(2.8rem, 7.5vw, 4.8rem);
  }

  .game-card.fantasy .game-brand {
    --brand-size: clamp(2.35rem, 7.5vw, 4.8rem);
  }

  .valdryth-concept {
    grid-template-columns: 1fr;
  }

  .valdryth-concept-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .hero.studio-hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 3.25rem);
    letter-spacing: -.065em;
  }

  .hero-project {
    min-height: 58px;
  }

  .hero-project + .hero-project {
    border-top-color: color-mix(in srgb, var(--project-light) 78%, transparent);
  }

  .hero-project small {
    font-size: .6875rem;
  }

  .hero.studio-hero .hero-content > p {
    font-size: 1rem;
  }

  .immersive-hero {
    min-height: 600px;
  }

  .immersive-hero::after {
    background:
      radial-gradient(ellipse at 3% 56%, var(--hero-shadow), transparent 85%),
      linear-gradient(0deg, #080d17, #080d17cc 35%, #080d1740 63%, transparent 95%);
  }

  .immersive-hero .game-brand {
    --brand-size: clamp(2.45rem, 11.5vw, 3.6rem);
  }

  .immersive-hero.fantasy .game-brand {
    --brand-size: clamp(1.85rem, 9.5vw, 3.45rem);
  }

  .game-card {
    min-height: 395px;
  }

  .game-card .game-brand {
    --brand-size: clamp(2.5rem, 10vw, 3.3rem);
  }

  .game-card.fantasy .game-brand {
    --brand-size: clamp(1.85rem, 9vw, 3.1rem);
  }
}
