/* TGE Games — shared styles. Morons look: deep-space purple, cheese yellow, chunky headings. */
:root {
  --bg: #17112b;
  --bg-2: #221a3d;
  --card: #2b2150;
  --line: #3d3168;
  --text: #f4f0ff;
  --muted: #b9b0d8;
  --yellow: #ffc928;
  --yellow-dark: #e0a400;
  --cyan: #3fd0ff;
  --pink: #ff6fb5;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(1200px 600px at 80% -10%, #3a2470 0%, transparent 60%) no-repeat;
  color: var(--text);
  font: 17px/1.6 var(--body);
}
img, video { max-width: 100%; display: block; }
a { color: var(--yellow); }
a:hover { color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.yellow { color: var(--yellow); }
.cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(23, 17, 43, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-family: var(--display); font-size: 1.6rem; color: var(--yellow); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--text); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--yellow); }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .nav { gap: 12px; } }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-size: 1.2rem; letter-spacing: .03em; text-decoration: none;
  padding: .7em 1.2em .55em; border-radius: 999px; border: 0; cursor: pointer; background: var(--yellow); color: #2a1a00;
  box-shadow: 0 4px 0 var(--yellow-dark); transition: transform .1s; }
.btn:hover { color: #2a1a00; transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-dark); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.2em 0; }

/* Store links */
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1em 0; }
.stores a { display: inline-flex; }
.stores img { height: 44px; width: auto; }
.store-pill { align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px; background: #000;
  border: 1px solid #a6a6a6; color: #fff; text-decoration: none; font-weight: 800; font-size: .95rem; line-height: 1.1; }
.store-pill small { display: block; font-weight: 600; font-size: .7rem; opacity: .85; }
.store-pill:hover { color: #fff; border-color: #fff; }
.store-soon { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px dashed var(--line); color: var(--muted); font-size: .9rem; font-weight: 700; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.tag { display: inline-block; font-family: var(--display); font-size: 1rem; letter-spacing: .06em; color: #2a1a00;
  background: var(--pink); padding: .35em .8em .25em; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 14px; }
.tag.live { background: var(--cyan); }
.phone { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 6px solid #0c0818;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 2px var(--line); aspect-ratio: 9 / 16; background: #000; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .phone { max-width: 280px; } }

/* Coming soon feature (home page, under the hero) */
section.coming { padding-top: 48px; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-art { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.feature-art:hover { transform: translateY(-4px); border-color: var(--yellow); }
.feature-art img { width: 100%; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 24px; } }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.card > a.cover { display: block; aspect-ratio: 16 / 9; background: #0c0818; }
.card > a.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--yellow); }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .where { margin-top: auto; font-size: .85rem; font-weight: 800; color: var(--cyan); text-transform: uppercase; letter-spacing: .05em; }

/* Morons strip */
.morons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.morons figure { margin: 0; text-align: center; }
.morons img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--card); border-radius: 50%; padding: 8px;
  border: 2px solid var(--line); transition: transform .15s; }
.morons figure:hover img { transform: rotate(-8deg) scale(1.08); border-color: var(--yellow); }
.morons figcaption { font-weight: 800; font-size: .85rem; margin-top: 6px; }

/* Game page */
.game-hero { padding: 40px 0 24px; }
.game-hero .art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }
.game-hero .art img { width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.features li::before { content: "★"; position: absolute; left: 4px; color: var(--yellow); }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots img { height: 360px; width: auto; max-width: none; border-radius: 14px; border: 1px solid var(--line); scroll-snap-align: start; }
.shots.wide img { height: 280px; }
@media (max-width: 560px) { .shots img { height: 300px; } .shots.wide img { height: 190px; } }

/* Sign-up */
.signup { background: linear-gradient(135deg, #3a2470, #2b2150); border: 2px solid var(--yellow); border-radius: 24px; padding: 32px; text-align: center; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px auto 8px; max-width: 520px; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; padding: .75em 1em; border-radius: 999px; border: 2px solid var(--line);
  background: #120d24; color: var(--text); }
.signup input[type=email]:focus { outline: none; border-color: var(--yellow); }
.signup .hp { position: absolute; left: -9999px; }
.signup .msg { min-height: 1.6em; font-weight: 800; }
.signup .msg.ok { color: var(--cyan); }
.signup .msg.err { color: var(--pink); }
.signup .fine { font-size: .85rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }

/* Moron Hoops: roster cards, galleries, key caps */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.moron-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; text-align: center; }
.moron-card img { width: 50%; max-width: 120px; margin: 0 auto 6px; }
.moron-card h3 { font-size: 1.35rem; margin: 0 0 4px; }
.moron-card .gag { font-style: italic; margin: 0 0 4px; }
.moron-card .leans { font-size: .85rem; color: var(--cyan); font-weight: 800; margin: 0 0 10px; }
.moron-card .special { background: #120d24; border-radius: 10px; padding: 10px 12px; font-size: .92rem; text-align: left; color: var(--muted); }
.moron-card .special strong { display: block; color: var(--yellow); }
.moron-card .special.none { text-align: center; font-style: italic; }
.moron-card .num { position: absolute; top: 10px; left: 14px; color: var(--muted); font-weight: 800; }
.moron-card .free { position: absolute; top: 10px; right: 12px; background: var(--cyan); color: #04202b; font-size: .75rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery.courts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-style: italic; }
.gallery.courts figcaption { text-align: center; font-style: normal; font-weight: 800; color: var(--text); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .gallery.courts { grid-template-columns: 1fr; } }
.controls { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.controls p { margin: .5em 0; }
.key { display: inline-block; min-width: 28px; padding: 0 7px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 7px;
  background: #120d24; color: var(--text); font-weight: 800; font-size: .85rem; text-align: center; line-height: 1.6; }
