/* wmgames.online (portal/site.go): the public landing of WM GAMES. No photos: light, glow and one drawn landscape. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-latin-900-normal.woff2") format("woff2"); }

:root {
  --bg: #05080c;
  --panel: rgba(12, 18, 28, 0.74);
  --ink: #f3f6f9;
  --muted: #9aabbd;
  --dim: #65768a;
  --line: rgba(255, 255, 255, 0.10);
  --gold: #ffb02e;
  --gold-hi: #ffd36b;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 400 17px/1.6 "Lato", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 50% -120px, rgba(255, 176, 46, 0.20), transparent 70%),
    radial-gradient(760px 640px at 0% 40%, rgba(35, 70, 200, 0.18), transparent 70%),
    radial-gradient(820px 700px at 100% 62%, rgba(106, 43, 176, 0.16), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(255, 176, 46, 0.08), transparent 70%),
    var(--bg);
}
body::before { /* a fine starfield, drawn by the browser */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 64%, rgba(255, 211, 107, 0.45), transparent 60%),
    radial-gradient(1px 1px at 86% 46%, rgba(255, 255, 255, 0.40), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 82%, rgba(160, 190, 255, 0.40), transparent 60%),
    radial-gradient(1px 1px at 58% 34%, rgba(255, 255, 255, 0.35), transparent 60%);
  background-size: 420px 420px, 540px 540px, 610px 610px, 470px 470px, 690px 690px, 380px 380px;
}
body > * { position: relative; z-index: 1; }
a { color: var(--gold-hi); }
img { display: block; max-width: 100%; }

/* ---------- bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 900; font-size: 15px; letter-spacing: 0.24em; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); transition: background 0.2s ease, border-color 0.2s ease;
}
.pill:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); }

/* ---------- hero ---------- */
/* the drawn ridges sit under the buttons, never behind them: the highest crest is 19% of the drawing's width above
   its foot (2400x560, top crest at y 100), so the room under the buttons follows the drawing's width */
.hero {
  --rw: max(1600px, 100vw);
  position: relative; text-align: center; padding: clamp(36px, 7vw, 84px) var(--gutter) calc(var(--rw) * 0.2 + 24px);
  background: url("img/site/ridges.svg") center bottom / var(--rw) auto no-repeat;
}
.hero-mark { position: relative; width: clamp(132px, 18vw, 200px); margin: 0 auto 22px; }
.hero-mark::before {
  content: ""; position: absolute; inset: -42%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 46, 0.34), rgba(255, 176, 46, 0.08) 45%, transparent 70%);
}
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.hero h1 {
  margin: 0; font-weight: 900; font-size: clamp(48px, 10vw, 112px); line-height: 0.98; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 0%, #fff3d6 42%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: 0 0 0 transparent;
}
.lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 19px); color: var(--muted); text-wrap: balance; }
h1, h2, .sub { text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 900 15px/1 "Lato", system-ui, sans-serif; letter-spacing: 0.04em; color: #1b1203;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 10px 30px rgba(255, 176, 46, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 176, 46, 0.42); }
.cta:focus-visible, .pill:focus-visible, .post:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.cta.ghost { color: var(--ink); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none; }
.cta.ghost:hover { background: rgba(255, 255, 255, 0.15); }
.ig { flex: none; }

/* ---------- sections ---------- */
.posts, .wishlist { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; }
.head { text-align: center; margin-bottom: 28px; }
.head h2 { margin: 0; font-weight: 900; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; }
.sub { margin: 10px auto 0; max-width: 520px; color: var(--muted); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.post {
  display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 4; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease, border-color 0.25s ease;
}
.post img { width: 100%; height: 100%; object-fit: cover; }
.post:hover { transform: translateY(-4px); border-color: rgba(255, 176, 46, 0.45); }
.more { text-align: center; margin: 26px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

.wishlist { margin-top: clamp(80px, 12vw, 140px); margin-bottom: clamp(70px, 10vw, 120px); }
.wish, .soon, .msg .card {
  width: min(100%, 560px); margin: 0 auto; padding: clamp(22px, 4vw, 34px); border-radius: 24px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.soon { text-align: center; color: var(--muted); }
.wish { display: grid; gap: 16px; }
.wish-field { display: grid; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wish-field input {
  width: 100%; min-width: 0; height: 54px; padding: 0 16px; border-radius: 14px; font: 400 17px "Lato", system-ui, sans-serif;
  color: var(--ink); background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.18);
}
.wish-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.wish-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.wish-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.wish-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 700; color: #ffd0c4; background: rgba(255, 75, 58, 0.14); border: 1px solid rgba(255, 75, 58, 0.4); }
.wish .cta { width: 100%; }
.wish-note { margin: 0; text-align: center; font-size: 14px; color: var(--dim); }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- short pages ---------- */
.msg { padding: clamp(40px, 9vw, 110px) var(--gutter) clamp(60px, 10vw, 120px); }
.msg .card { text-align: center; }
.msg h1 { margin: 0; font-weight: 900; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; }
.msg .lead { margin-top: 14px; }
.msg form { margin-top: 24px; }
.msg .wish { margin-top: 22px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-align: left; }
.msg .actions { margin-top: 24px; }
.prose .card { text-align: left; }
.prose h2 { margin: 26px 0 6px; font-size: 18px; font-weight: 900; color: var(--gold-hi); }
.prose p { margin: 0 0 6px; color: var(--muted); }
.prose .lead { margin: 14px 0 0; }

/* ---------- foot ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 28px var(--gutter) 36px;
  font-size: 14px; color: var(--dim); border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .hero { --rw: 1100px; }
  .grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid li { flex: 0 0 74%; scroll-snap-align: start; }
  .actions .cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .post, .pill { transition: none; }
}
