/* ForYouGaming teaser — single screen */
:root {
  --yellow: #fce367;
  --yellow-rgb: 252, 227, 103;
  --ink: #07070b;
  --panel: #202028;
  --cream: #f4f1e8;
  --cream-dim: #a8a496;
  --cream-mute: #6e6b63;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  min-height: 100%;
}

html { background: var(--ink); }

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  min-height: 100svh;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- atmosphere ---- */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-a {
  width: min(70vw, 760px);
  height: min(70vw, 760px);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--yellow-rgb), 0.22) 0%, rgba(var(--yellow-rgb), 0) 70%);
  opacity: 0.7;
  animation: orb-drift 22s ease-in-out infinite;
}

.orb-b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  left: 18%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(var(--yellow-rgb), 0.1) 0%, rgba(var(--yellow-rgb), 0) 70%);
  animation: orb-drift-b 26s ease-in-out infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-48%, -46%) scale(1.07); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, -8%); }
}

#particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ---- stage / logo ---- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem 8.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(86vw, 420px);
}

.mark {
  position: relative;
  width: min(62vw, 340px);
  aspect-ratio: 1170 / 1236;
}

.bloom {
  position: absolute;
  inset: -28%;
  background: radial-gradient(circle, rgba(var(--yellow-rgb), 0.55) 0%, rgba(var(--yellow-rgb), 0.16) 38%, transparent 68%);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.wordmark {
  width: min(78vw, 380px);
  margin-top: 1.55rem;
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* intro — starts when body.is-go */
body.is-go .bubble-top {
  animation: drop-bounce 1.15s cubic-bezier(0.22, 0.9, 0.32, 1) 0.12s both;
}
body.is-go .bubble-bot {
  animation: drop-bounce 1.15s cubic-bezier(0.22, 0.9, 0.32, 1) 0.52s both;
}
body.is-go .bloom {
  animation:
    bloom-in 1.6s var(--ease) 0.9s both,
    bloom-breathe 5.5s ease-in-out 2.5s infinite;
}
body.is-go .wordmark {
  animation: word-reveal 0.95s var(--ease) 1.7s both;
}
body.is-go .dock {
  animation: dock-in 0.9s var(--ease) 2.15s both;
}

@keyframes drop-bounce {
  0% {
    opacity: 0;
    transform: translate3d(0, -54vh, 0);
    filter: blur(10px) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  }
  10% { opacity: 1; filter: blur(0) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }
  60% {
    opacity: 1;
    transform: translate3d(0, 18px, 0) scale(1.04, 0.96);
  }
  74% { transform: translate3d(0, -10px, 0) scale(0.985, 1.02); }
  86% { transform: translate3d(0, 4px, 0) scale(1.012, 0.994); }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 22px rgba(var(--yellow-rgb), 0.28));
  }
}

@keyframes bloom-in {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 0.9; transform: scale(1); }
}

@keyframes bloom-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes word-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes dock-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---- dock ---- */
.dock {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.72rem;
  padding: 1.15rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
}

.credit {
  font-size: 0.82rem;
  color: var(--cream-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.credit span {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(var(--yellow-rgb), 0.55);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.credit:hover,
.credit:focus-visible {
  color: var(--cream);
}
.credit:hover span,
.credit:focus-visible span {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}

.ad-btn {
  appearance: none;
  border: 1px solid rgba(var(--yellow-rgb), 0.4);
  background: transparent;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.ad-btn:hover,
.ad-btn:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(var(--yellow-rgb), 0.7);
  outline: none;
}

.legal {
  margin: 0;
  font-size: 0.68rem;
  color: var(--cream-mute);
  letter-spacing: 0.04em;
}

/* ---- modal ---- */
.ad-modal {
  position: relative;
  width: min(calc(100vw - 2rem), 460px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.1rem 1.85rem 1.9rem;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(var(--yellow-rgb), 0.1), transparent 60%),
    linear-gradient(180deg, #16161e, #0d0d12);
  color: var(--cream);
  box-shadow:
    0 30px 80px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(var(--yellow-rgb), 0.08),
    0 0 80px -30px rgba(var(--yellow-rgb), 0.4);
}

.ad-modal::backdrop {
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ad-modal:focus { outline: none; }

.ad-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.ad-close:hover,
.ad-close:focus-visible {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.ad-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
}

.ad-modal h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.6vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.ad-copy {
  margin: 0 0 1.5rem;
  color: var(--cream-dim);
  font-size: 1.02rem;
  line-height: 1.55;
}

.ad-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.85rem 1.05rem;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
  word-break: break-all;
}
.ad-mail:hover,
.ad-mail:focus-visible {
  background: #ffe98a;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(var(--yellow-rgb), 0.75);
  outline: none;
}
.ad-mail svg { flex-shrink: 0; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .orb, .bloom, .bubble, .wordmark, .dock {
    animation: none !important;
  }
  .bubble, .wordmark, .dock, .bloom {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .bloom {
    opacity: 0.85 !important;
  }
  #particle-field { display: none; }
}

@media (max-width: 480px) {
  .mark { width: min(68vw, 260px); }
  .wordmark { width: min(84vw, 300px); margin-top: 1.25rem; }
  .credit { font-size: 0.78rem; text-align: center; padding: 0 0.5rem; }
  .ad-modal { padding: 1.85rem 1.35rem 1.6rem; }
  .ad-mail { width: 100%; justify-content: center; font-size: 0.82rem; }
}

@media (max-height: 700px) {
  .mark { width: min(48vw, 260px); }
  .wordmark { margin-top: 1.1rem; }
  .stage { padding-bottom: 7.5rem; }
}
