/* ==========================================================================
   Monster Lab Simulator — game page
   Sections: hero · facts · trailer · what you do · inside · screenshots ·
             latest patch · runs on / speaks · community
   ========================================================================== */

.tone--teal { color: var(--mls-teal); }
.tone--peach { color: var(--mls-peach); }
.tone--gold { color: var(--mls-gold); }
.tone--pink { color: var(--mls-pink); }
.tone--lilac { color: var(--mls-lilac); }
.mono--teal { color: var(--mls-teal); }

.btn--lilac {
  border-color: var(--mls-lilac);
  color: var(--mls-lilac);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ghero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 760px;
  overflow: hidden;
  background: var(--mls-navy);
}

.ghero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.6);
}

.ghero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 41, 0.2) 0%, rgba(11, 34, 41, 0.35) 50%, rgba(11, 34, 41, 0.97) 100%);
}

.ghero__glow {
  position: absolute;
  right: 120px;
  bottom: -40px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 138, 0.35) 0%, rgba(255, 126, 142, 0.15) 40%, transparent 70%);
  pointer-events: none;
}

.ghero__glow img {
  position: absolute;
  left: 156px;
  top: 143px;
  width: 560px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5));
}

.ghero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: calc(640px + 2 * var(--gutter));
  padding: 0 var(--gutter) 64px;
}

.ghero .crumbs,
.ghero .crumbs a { color: var(--mls-teal); }

.ghero__logo {
  width: 400px;
  height: auto;
}

.ghero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghero__lead {
  margin: 0;
  max-width: 30ch;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--mls-cream);
}

.ghero__stores {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1200px) {
  .ghero__glow { right: 0; bottom: -30px; width: 540px; height: 540px; }
  .ghero__glow img { left: 110px; top: 100px; width: 400px; }
  .ghero__body { max-width: calc(560px + 2 * var(--gutter)); }
  .ghero__stores { flex-wrap: wrap; max-width: 420px; }
}

@media (max-width: 900px) {
  .ghero { min-height: 620px; }
  .ghero__glow { right: -60px; bottom: -20px; width: 460px; height: 460px; }
  .ghero__glow img { left: 90px; top: 100px; width: 340px; }
  .ghero__logo { width: 320px; }
  .ghero__body { max-width: none; padding-top: 48px; }
  .ghero__lead { max-width: 28ch; font-size: 19px; }
}

@media (max-width: 600px) {
  .ghero { min-height: 0; }
  .ghero__glow { display: none; }
  .ghero__logo { width: 78%; }
  .ghero__body { gap: 16px; padding-top: 40px; padding-bottom: 40px; }
  .ghero__lead { max-width: none; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Facts strip
   -------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px var(--gutter);
  background: var(--mls-navy-2);
  border-top: 1px solid #013e59;
  border-bottom: 1px solid #013e59;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact b { font-weight: 700; }

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

@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   Trailer
   -------------------------------------------------------------------------- */

.trailer { padding-top: var(--sec-y); }

.trailer__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mls-navy);
}

.trailer__poster,
.patch__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 48px rgba(237, 29, 43, 0.45);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.trailer__frame:hover .trailer__play {
  transform: scale(1.06);
  box-shadow: 0 0 64px rgba(237, 29, 43, 0.6);
}

/* Bottom scrim keeps the captions legible over any poster. */
.trailer__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(11, 34, 41, 0) 0%, rgba(11, 34, 41, 0.92) 100%);
  pointer-events: none;
}

.trailer__cap {
  position: absolute;
  z-index: 1;
  bottom: 20px;
}

.trailer__cap--l { left: 24px; color: var(--text); }
.trailer__cap--r { right: 24px; }

@media (max-width: 900px) {
  .trailer__cap--r { display: none; }
}

@media (max-width: 600px) {
  .trailer { padding-top: 40px; }
  .trailer__play { width: 60px; height: 60px; }
  .trailer__play svg { width: 20px; height: 22px; }
}

/* --------------------------------------------------------------------------
   What you do — core loop
   -------------------------------------------------------------------------- */

.loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--line);
}

.loop__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 32px;
  background: var(--ink);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.loop__item:hover {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--red), 0 0 24px rgba(237, 29, 43, 0.14);
}

.loop__render {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 8px;
}

.loop__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.loop__text {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-2);
}

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

@media (max-width: 600px) {
  .loop { grid-template-columns: 1fr; }
  .loop__item { padding: 20px 20px 24px; }
  .loop__render { max-width: 280px; margin: 0 auto 8px; }
}

/* --------------------------------------------------------------------------
   Inside the lab — counters
   -------------------------------------------------------------------------- */

.cnt {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--line);
}

.cnt__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  background: var(--ink);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.cnt__item:hover {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--red);
}

.cnt__item svg {
  width: 40px;
  height: 40px;
  fill: var(--text);
}

.cnt__item .ink { fill: var(--ink); }

.cnt__item .ink-stroke {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.cnt__value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .cnt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cnt__value { font-size: 40px; }
}

@media (max-width: 600px) {
  .cnt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cnt__item { padding: 20px 18px; }
  .cnt__item svg { width: 32px; height: 32px; }
  .cnt__value { font-size: 34px; }
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */

.shotgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.shot--alt { object-position: 30% 50%; }

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

@media (max-width: 600px) {
  .shotgrid { gap: 10px; }
  .shotgrid > .shot { flex: 0 0 calc(50% - 15px); width: calc(50% - 15px); min-width: 0; }
}

/* --------------------------------------------------------------------------
   Latest patch
   -------------------------------------------------------------------------- */

.patch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 460px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.patch:hover {
  border-color: var(--line-3);
  box-shadow: 0 0 24px rgba(237, 29, 43, 0.14);
}

.patch__img {
  position: relative;
  display: block;
  min-height: 460px;
  overflow: hidden;
  background: var(--mls-navy);
}

.patch__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 40px;
}

.patch__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.patch__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.patch__title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.patch__excerpt {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-2);
}

.patch__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.patch__actions .btn { height: 48px; }

@media (max-width: 900px) {
  .patch { grid-template-columns: 1fr; min-height: 0; }
  .patch__img { min-height: 0; aspect-ratio: 16 / 9; }
  .patch__body { padding: 28px; }
  .patch__title { font-size: 34px; }
}

@media (max-width: 600px) {
  .patch__img { aspect-ratio: 16 / 10; }
  .patch__body { gap: 16px; padding: 20px; }
  .patch__title { font-size: 26px; }
  .patch__excerpt { font-size: 15px; }
  .patch__actions .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   Runs on + Speaks
   -------------------------------------------------------------------------- */

.reqgrid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: stretch;
}

.runs,
.spk {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reqgrid .sec-head { margin-bottom: 0; }

.req {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  border-top: 1px solid var(--line);
}

.req > span {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #c9c8cc;
}

.req__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.req__span { grid-column: span 2; }

.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eacard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.eacard p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

@media (max-width: 1200px) {
  .reqgrid { grid-template-columns: 1fr; gap: 64px; }
  .spk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 48px; align-items: start; }
  .spk__head { grid-column: 1 / -1; }
  .eacard { margin-top: 0; }
}

@media (max-width: 900px) {
  .reqgrid { gap: 56px; }
  .req { grid-template-columns: 120px 1fr 1fr; }
  .spk { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 32px; }
}

@media (max-width: 600px) {
  .reqgrid { gap: 48px; }
  .req { grid-template-columns: 84px 1fr 1fr; }
  .req > span { padding: 10px 0; font-size: 12px; }
  .spk { grid-template-columns: 1fr; gap: 20px; }
  .lang span { padding: 4px 7px; font-size: 10px; }
}

/* --------------------------------------------------------------------------
   Community + press
   -------------------------------------------------------------------------- */

.cta3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.cta:hover {
  border-color: var(--line-3);
  box-shadow: 0 0 24px rgba(237, 29, 43, 0.14);
}

.cta__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cta__text {
  font-size: 15px;
  color: var(--text-2);
}

@media (max-width: 1200px) {
  .cta3 { gap: 16px; }
  .cta { padding: 24px; }
  .cta__title { font-size: 24px; }
}

@media (max-width: 900px) {
  .cta3 { grid-template-columns: 1fr; gap: 12px; }
  .cta { flex-direction: row; align-items: center; gap: 20px; padding: 20px 24px; }
  .cta > .mono { flex: 0 0 96px; }
  .cta__title { flex: 1 1 auto; font-size: 22px; }
  .cta__text { flex: 0 1 38%; font-size: 14px; text-align: right; }
}

@media (max-width: 600px) {
  .cta { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
  .cta > .mono,
  .cta__text { flex: none; }
  .cta__text { text-align: left; }
}
