@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/mightCow/media/bricolage-grotesque-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172e48;
  background: #f8f5eb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #dcefe6, transparent 31rem), #f8f5eb;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #155dbc; outline-offset: 4px; }

.shell {
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.site-header {
  border-top: 5px solid #193950;
  border-bottom: 1px solid #d4ddd3;
  background: #e5f0e8;
}

.site-header .shell {
  display: flex;
  align-items: center;
  min-height: 4.1rem;
}

.studio-link { display: inline-flex; border-radius: 0.3rem; }
.studio-link img { width: 8.8rem; height: auto; }

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem clamp(2rem, 4vw, 3.25rem);
}

h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  margin: 0;
  color: #142c46;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

h1 span {
  color: #895007;
  text-shadow: 0 2px #f6d99f;
}

.intro p {
  max-width: 32rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.45;
  color: #3e5461;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.8rem, 2vw, 1.5rem);
}

.game {
  --tint: #d6edf0;
  --frame: #173b54;
  --frame-light: #397b89;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #b7c7c7;
  border-radius: 1.4rem;
  background: #fffdf6;
  box-shadow: 0 4px 0 #d7ded4, 0 9px 20px #17394915;
}

.run {
  --tint: #f7e6d5;
  --frame: #312d4b;
  --frame-light: #706283;
}

.factory {
  --tint: #f9ebba;
  --frame: #143459;
  --frame-light: #315b93;
}

.game-brand {
  display: grid;
  place-items: center;
  min-height: 8.2rem;
  padding: 0.75rem;
  background: var(--tint);
}

.game-brand h2 { margin: 0; }
.game-brand img { object-fit: contain; height: 6.3rem; width: auto; }
.run .game-brand img { height: 6.55rem; }

.factory h2 img {
  clip-path: polygon(0 18%, 6% 4%, 16% 4%, 17% 0, 86% 0, 86% 5%, 94% 5%, 100% 20%, 100% 82%, 93% 100%, 8% 100%, 0 80%);
}

.preview {
  display: grid;
  place-items: center;
  height: clamp(15.5rem, 27vw, 20rem);
  margin: 0;
  padding: 1rem;
  border-block: 1px solid #0c203c;
  background:
    repeating-linear-gradient(135deg, #ffffff07 0 2px, transparent 2px 20px),
    radial-gradient(ellipse at 50% 35%, var(--frame-light), var(--frame) 77%);
}

.preview a {
  display: block;
  min-width: 0;
  max-width: 100%;
  border: 2px solid #bdd8e094;
  border-radius: 0.65rem;
  background: #102843;
  box-shadow: 0 0.5rem 1.25rem #101e3080;
}

.preview a:focus-visible { outline-color: #fce5a9; }
.preview img { width: auto; height: auto; border-radius: 0.5rem; }
.portrait img { max-height: clamp(13.4rem, 25vw, 17.85rem); }
.landscape img { max-height: 13rem; }

.game-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
}

.game-details p {
  margin: 0 0 auto;
  min-height: 2.8em;
  line-height: 1.4;
  color: #3e5361;
}

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

.store, .policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.store { background: #173a53; color: #fffdf6; }
a.store:hover { background: #245374; }

.unavailable {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.05rem;
  border-color: #dce2dc;
  background: #eef0eb;
  color: #415461;
}

.unavailable small { font-size: 0.72rem; font-weight: 400; }

.policy {
  min-height: 2.75rem;
  padding-inline: 0.7rem;
  border-color: #b9c7cb;
  background: #f5f7f2;
}

.policy:hover { background: #e5f0e8; }

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid #cbd8d4;
  background: #e5f0e8;
}

.site-footer .shell { display: flex; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
.site-footer a { font-size: 0.86rem; font-weight: 700; text-underline-offset: 0.18em; }

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

@media (max-width: 580px) {
  .shell { width: calc(100% - 1.5rem); }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .game-brand { min-height: 7.2rem; }
  .preview { height: 18rem; }
  .portrait img { max-height: 15.85rem; }
  .game-details p { min-height: 0; }
}

