/* Map Arcade — landing.
   Hero photo with the Bagel Fat One logo set off to the left (the figure stays
   the foreground), then a full-width 2-up grid of game screenshots that reveal
   the game's name on hover. */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  background: #0e0a22;
  color: #ffd23f;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;        /* match the photo so nothing crops */
  container-type: inline-size;      /* enables cqw → the logo scales with the image */
  overflow: hidden;
  background: #0e0a22;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("hero.jpg") center center / cover no-repeat;
}
/* darken the left so the logo reads there at every size */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 5, 18, 0.84) 0%, rgba(7, 5, 18, 0.5) 28%, rgba(7, 5, 18, 0) 56%),
    linear-gradient(180deg, rgba(7, 5, 18, 0.25) 0%, transparent 30%, rgba(7, 5, 18, 0.4) 100%);
}

/* Size + position are expressed relative to the hero width (cqw / %), and the
   outline + shadow in em — so the logo looks identical at every screen size. */
.logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 5.5%;
  transform: translateY(-50%);
  text-align: left;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-weight: 400;
  font-size: 11.2cqw;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffd23f;
  /* Word Beasts settings, matched exactly (px @ their 112px font → em):
     a thick centered stroke with NO paint-order, so the dark line reads thick
     and the gold fill a touch less bold; a hard dark bottom edge + a diagonal
     violet ghost — both via text-shadow (the ghost is a clean solid silhouette,
     the 4px stroke stays on the front letters only). */
  -webkit-text-stroke: 0.036em #0b0820;
  text-stroke: 0.036em #0b0820;
  text-shadow:
    0 0.054em 0 #0b0820,
    0.071em 0.125em 0 rgba(177, 61, 255, 0.65);
  animation: pop 0.55s cubic-bezier(0.22, 1.3, 0.36, 1);
}
.logo span { display: block; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-50%) scale(0.94); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* =========================================================
   GAME GRID — a 2×2 wall of arcade cabinets.
   Default state = the game's NAME. Hover = a peek at real gameplay.
   ========================================================= */
.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;                 /* the gutter reads as the cabinet bodies */
  padding: 10px;
  background: #0a0717;
}

.tile {
  --accent: #ffd23f;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border-radius: 6px;        /* slight, to read as a screen — kept sharp, not pill */
  /* arcade-cabinet bezel: crisp dark frame + a thin inner edge that lights up */
  border: 2px solid #2a2450;
  box-shadow:
    inset 0 0 0 2px #0a0717,
    inset 0 0 0 3px rgba(255, 255, 255, 0.04),
    0 2px 0 #050310;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* default layer: the GAME VIEW (gameplay screenshot) */
.tile-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--play) center / cover no-repeat;
  background-color: #0e0a22;
}

/* reveal layer: the game's OWN logo (on hover / touch-press) */
.tile-logo {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--logo) center / cover no-repeat;
  background-color: #0e0a22;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.3s ease, transform 0.45s ease;
}
.tile-go {
  position: absolute;
  z-index: 3;
  bottom: 10px; right: 10px;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0e0a22;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover, .tile:focus-visible {
    border-color: var(--accent);
    box-shadow:
      inset 0 0 0 2px #0a0717,
      inset 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent),
      0 0 22px color-mix(in srgb, var(--accent) 28%, transparent);
    outline: none;
  }
  .tile:hover .tile-logo, .tile:focus-visible .tile-logo { opacity: 1; transform: scale(1); }
  .tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; transform: translateY(0); }
}
/* touch devices have no hover — press-and-hold a tile to reveal its logo (a quick tap plays) */
@media (hover: none), (pointer: coarse) {
  .tile:active .tile-logo { opacity: 1; transform: scale(1); }
}

/* placeholder — a name card, no gameplay to peek */
.tile--soon { cursor: default; }
.tile-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a1638, #100c26);
}
.tile-name {
  text-align: center;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3.3vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
  color: #9aa0c8;
  /* matching thick outline */
  -webkit-text-stroke: 0.07em #0c0a1e;
  text-stroke: 0.07em #0c0a1e;
  paint-order: stroke fill;
  text-shadow: 0 0.12em 0 #0c0a1e, 0 0.2em 0.3em rgba(0, 0, 0, 0.5);
}

/* =========================================================
   HERO FOOTER — the man photo as a closing bookend
   ========================================================= */
.hero-footer {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  container-type: inline-size;
  overflow: hidden;
  background: #0e0a22;
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("hero-footer.jpg") center center / cover no-repeat;
}
/* darken the right, where the mark sits (the figure is on the left) */
.footer-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(7, 5, 18, 0.74) 0%, rgba(7, 5, 18, 0.34) 30%, rgba(7, 5, 18, 0) 58%),
    linear-gradient(180deg, transparent 58%, rgba(7, 5, 18, 0.5) 100%);
}
.footer-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6.5%;
  transform: translateY(-50%);
  text-align: right;
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: 7cqw;
  line-height: 0.82;
  text-transform: uppercase;
  color: #ffd23f;
  -webkit-text-stroke: 0.045em #14101d;
  text-stroke: 0.045em #14101d;
  paint-order: stroke fill;
  text-shadow:
    0 0.09em 0 #c98a16,
    0 0.18em 0 #14101d,
    0 0.34em 0.45em rgba(0, 0, 0, 0.65);
}
.footer-mark span { display: block; }

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  .tile, .tile > * { transition: none; }
}
