/* Everrealm studio site. Night palette from the real Hushstone blocks and icon:
   navy (#111B45), sea-glass aqua, moonlit blue. No yellow or gold, by owner rule. */
:root {
  --night: #080d22;
  --night-2: #0e1636;
  --navy: #111b45;
  --surface: rgba(160, 190, 240, 0.05);
  --surface-2: rgba(160, 190, 240, 0.09);
  --line: rgba(170, 195, 240, 0.14);
  --text: #eaf0fa;
  --muted: #a7b3cc;
  --aqua: #86dccf;
  --moon: #a9c3f2;
  --radius: 18px;
  --wrap: 1120px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: #b5ece3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moon); margin: 0 0 12px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.02em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, var(--moon) 60%, transparent 70%); box-shadow: 0 0 14px rgba(169, 195, 242, 0.7); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-header--over { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -4; background: var(--navy) center 45% / cover no-repeat; background-image: image-set(url("img/hero-1000.jpg") 1x, url("img/hero.jpg") 2x); }
@media (min-width: 900px) { .hero__art { background-image: url("img/hero.jpg"); } }
.hero__veil { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(8, 13, 34, 0.86) 0%, rgba(8, 13, 34, 0.55) 45%, rgba(8, 13, 34, 0.15) 100%),
              linear-gradient(180deg, rgba(8, 13, 34, 0.55) 0%, rgba(8, 13, 34, 0) 30%, rgba(8, 13, 34, 0) 60%, var(--night) 100%); }
.hero__stars, .hero__stars::after { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 22% 42%, #dfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 35% 12%, #fff, transparent),
    radial-gradient(1px 1px at 48% 30%, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 63% 9%, #fff, transparent),
    radial-gradient(1px 1px at 71% 26%, #dfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 84% 15%, #fff, transparent),
    radial-gradient(1px 1px at 92% 36%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 6% 33%, #fff, transparent),
    radial-gradient(1px 1px at 56% 20%, #fff, transparent);
  animation: twinkle 7s ease-in-out infinite; }
.hero__stars::after { content: ""; transform: translate(3.5%, 6%); animation-duration: 11s; animation-delay: -4s; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
.hero__glow { position: absolute; z-index: -3; width: 46vmax; height: 46vmax; left: -12vmax; bottom: -20vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 220, 207, 0.13), transparent 65%); animation: drift 26s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(8vmax, -5vmax); } }
.hero > .wrap, .game-hero > .wrap { width: 100%; }
.hero__content { padding-top: 140px; padding-bottom: 96px; max-width: 640px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.hero .tagline { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: #dbe5f7; margin: 14px 0 18px; line-height: 1.35; }
.hero p.intro { color: var(--muted); max-width: 480px; margin: 0 0 30px; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: #071a1c; background: linear-gradient(180deg, #a6e8dd, var(--aqua)); box-shadow: 0 6px 24px rgba(134, 220, 207, 0.25); transition: transform 0.2s, box-shadow 0.2s; }
.button:hover { color: #071a1c; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(134, 220, 207, 0.35); }
.button--ghost { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.button--ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(169, 195, 242, 0.4); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 560px; }

/* ---------- Game cards (one component; add a game = add one <article class="game">) ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.game:hover { border-color: rgba(169, 195, 242, 0.32); }
.game__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.game__media > img.game__scene { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.game:hover .game__media > img.game__scene { transform: scale(1.03); }
.game__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game__title { display: flex; align-items: center; gap: 14px; }
.game__title h3 { font-size: 1.6rem; }
.game__icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.game__line { margin: 0; color: #d3dcee; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--moon); background: rgba(169, 195, 242, 0.1); border: 1px solid rgba(169, 195, 242, 0.22); padding: 4px 12px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.game__actions { margin-top: auto; padding-top: 8px; }

.game--featured { grid-column: 1 / -1; flex-direction: row; }
.game--featured .game__media { flex: 1.35; aspect-ratio: auto; min-height: 380px; }
.game--featured .game__body { flex: 1; padding: 40px; justify-content: center; gap: 14px; }
.game--featured .game__title h3 { font-size: 2.2rem; }
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(134, 220, 207, 0.22); }

.game--soon .game__media::after { content: "\263E"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-size: 2.6rem; color: var(--moon); opacity: 0.8; text-shadow: 0 0 24px rgba(169, 195, 242, 0.6); }
.game--soon h3 { font-size: 1.35rem; }

/* ---------- Values / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.pillar__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-family: var(--serif); margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(134, 220, 207, 0.25), rgba(169, 195, 242, 0.12)); box-shadow: inset 0 0 0 1px rgba(134, 220, 207, 0.3); color: var(--aqua); }
.pillar h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pillar p { margin: 0; color: #cdd6e8; }
.pillar ul { margin: 12px 0 0; padding: 0; list-style: none; }
.pillar li { position: relative; padding-left: 20px; color: #cdd6e8; margin: 6px 0; }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--aqua); opacity: 0.85; }

/* ---------- Game page ---------- */
.game-hero { position: relative; overflow: hidden; isolation: isolate; }
.game-hero .hero__art { background-position: center 30%; }
.game-hero .hero__veil { background: linear-gradient(90deg, rgba(8, 13, 34, 0.8) 0%, rgba(8, 13, 34, 0.45) 60%, rgba(8, 13, 34, 0.2) 100%), linear-gradient(180deg, rgba(8, 13, 34, 0.4) 0%, rgba(8, 13, 34, 0) 40%, var(--night) 100%); }
.game-hero__content { padding: 190px 0 130px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.game-hero__icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(134, 220, 207, 0.2); }
.game-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.game-hero .tagline { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: #dbe5f7; margin: 10px 0 16px; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shots img { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.watch { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 48px; align-items: center; }
.watch video { width: 100%; border-radius: 22px; border: 1px solid var(--line); background: var(--navy); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.watch h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.watch p { color: var(--muted); margin: 0 0 14px; }

.cta { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0 auto 22px; max-width: 480px; }

/* ---------- Text pages (support, privacy) ---------- */
.page { padding: 40px 0 80px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 10px; }
.page h2 { font-size: 1.4rem; margin: 40px 0 8px; }
.page .lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.page ul { padding-left: 1.2em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 20px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 32px; padding-bottom: 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .brand { font-size: 1.05rem; margin-right: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .game--featured { flex-direction: column; }
  .game--featured .game__media { min-height: 0; aspect-ratio: 16 / 11; flex: none; }
  .game--featured .game__body { padding: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch { grid-template-columns: 1fr; gap: 28px; }
  .watch video { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px 18px; padding-top: 16px; padding-bottom: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.9rem; }
  .games { grid-template-columns: 1fr; }
  .hero { min-height: min(88svh, 740px); }
  .hero__veil { background: linear-gradient(180deg, rgba(8, 13, 34, 0.6) 0%, rgba(8, 13, 34, 0.3) 35%, rgba(8, 13, 34, 0.75) 75%, var(--night) 100%); }
  .hero__content { padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .game-hero__content { grid-template-columns: 1fr; gap: 20px; padding: 120px 0 56px; }
  .game-hero__icon { width: 96px; height: 96px; border-radius: 22px; }
  .shots { gap: 12px; }
  .site-footer .brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stars, .hero__stars::after, .hero__glow { animation: none; }
  .game__media > img.game__scene, .button, .game { transition: none; }
}

/* ---------- Feedback form (Netlify Forms) ---------- */
.form { display: grid; gap: 20px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(8, 13, 34, 0.6);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(134, 220, 207, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form-note { color: var(--muted); font-size: 0.88rem; margin: 0; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.invite { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.invite h3 { font-size: 1.5rem; margin-bottom: 4px; }
.invite p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .invite { padding: 24px; } }

/* ---------- Link-in-bio page (/links) ---------- */
.links-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; position: relative; isolation: isolate; overflow: hidden; }
.links-page .hero__art { filter: blur(3px) brightness(0.75); transform: scale(1.05); }
.links-page .hero__veil { background: linear-gradient(180deg, rgba(8, 13, 34, 0.55), rgba(8, 13, 34, 0.85)); }
.links { width: 100%; max-width: 420px; text-align: center; }
.links__icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 50px rgba(134, 220, 207, 0.22); }
.links h1 { font-size: 2.2rem; }
.links .tagline { color: #d3dcee; font-family: var(--serif); font-size: 1.1rem; margin: 8px 0 28px; }
.links__list { display: grid; gap: 14px; }
.link-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 20px; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 1.02rem;
  color: var(--text); background: rgba(14, 22, 54, 0.75); border: 1px solid rgba(169, 195, 242, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.2s, transform 0.2s; }
.link-btn:hover { color: var(--text); border-color: var(--aqua); transform: translateY(-1px); }
.link-btn--primary { color: #071a1c; background: linear-gradient(180deg, #a6e8dd, var(--aqua)); border-color: transparent; }
.link-btn--primary:hover { color: #071a1c; }
.links__foot { margin-top: 30px; color: var(--muted); font-size: 0.85rem; }
.links__foot a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .link-btn { transition: none; } }
.cta .button { margin: 6px 6px 0; }
