/* GO_Visual-002 — STYLE.studio_signal_on_ink */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Outfit-Bold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/AtkinsonHyperlegible-Regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/AtkinsonHyperlegible-Bold-latin.woff2") format("woff2");
}

:root {
  --surface-ink: #0b1020;
  --surface-ink-raised: #161c32;
  --surface-paper: #f1f3f7;
  --text-on-ink: #f1f3f7;
  --text-muted-on-ink: #8b93a8;
  --accent-signal: #c8f04d;
  --accent-spark: #4d7cff;
  --accent-spark-deep: #1f4ed8;
  --ease-enter: cubic-bezier(0.55, 0, 1, 0.35);
  --ease-spring: cubic-bezier(0.22, 1.35, 0.36, 1);
  --ease-letters: cubic-bezier(0.16, 1, 0.3, 1);
  --wordmark-size: clamp(4rem, 17.8vw, 5rem);
  --column-max: 22rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --coin-size: 4rem;
}

@media (min-width: 768px) {
  :root {
    --wordmark-size: clamp(5rem, 10vw, 7.5rem);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--surface-ink);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-on-ink);
  background: var(--surface-ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-paper);
  color: var(--surface-ink);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.skip-link:focus-visible {
  outline: 2px solid var(--accent-spark-deep);
  outline-offset: 2px;
}

.chrome {
  position: fixed;
  top: calc(16px + var(--safe-top));
  right: calc(16px + var(--safe-right));
  z-index: 20;
  display: flex;
  gap: 8px;
}

.chrome-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-muted-on-ink);
  background: transparent;
  cursor: pointer;
}

.chrome-btn[hidden] {
  display: none;
}

.chrome-btn:disabled,
.chrome-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.chrome-btn:not(:disabled):hover {
  color: var(--text-on-ink);
}

.chrome-btn:focus-visible {
  outline: 2px solid var(--accent-spark);
  outline-offset: 2px;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--column-max);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: calc(44dvh - var(--wordmark-size) * 0.58);
  flex: 1 0 auto;
}

@media (orientation: landscape) and (max-height: 500px) {
  .stage {
    padding-top: calc(40dvh - var(--wordmark-size) * 0.55);
  }
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.token-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  margin-left: -2rem;
  margin-top: -2rem;
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
  z-index: 3;
}

.token-disc {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.token {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.token-shadow {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 3rem;
  height: 0.5rem;
  margin-left: -1.5rem;
  border-radius: 50%;
  background: #000;
  opacity: 0.15;
  transform: scaleX(0.4);
  filter: blur(4px);
  pointer-events: none;
}

.wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  padding-bottom: 0.608em;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--wordmark-size);
  line-height: 1;
  color: var(--text-on-ink);
  opacity: 0;
}

.wm-game {
  margin-right: 0.04em;
}

.wm-game,
.wm-n {
  opacity: 0;
  transform: translateX(0);
}

.wm-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2288em;
  height: 1.2288em;
  margin-left: 0;
  margin-right: 0.02em;
  transform: translateY(0.304em);
  color: var(--accent-signal);
}

.wm-o .split-o {
  width: 1.2288em;
  height: 1.2288em;
  display: block;
}

.wm-o .split-o-ring {
  transform-origin: center;
}

.tagline,
.coming-soon {
  text-align: center;
  margin: 0;
  width: 100%;
  opacity: 0;
}

.tagline {
  margin-top: calc(var(--wordmark-size) * 0.169);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  color: var(--text-on-ink);
}

.coming-soon {
  margin-top: clamp(0.75rem, 3vw, 1rem);
  font-size: 1rem;
  color: var(--text-muted-on-ink);
}

.site-footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 1.5rem 24px calc(24px + var(--safe-bottom));
  opacity: 0;
}

.site-footer a {
  font-size: 0.875rem;
  color: var(--text-muted-on-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent-spark);
  outline-offset: 2px;
}

.site-footer a[aria-disabled="true"] {
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}

/* Hold state (after intro or reduced motion) */
body.hold .wordmark {
  opacity: 1;
}

body.hold .wm-game,
body.hold .wm-n {
  opacity: 1;
  transform: translateX(0);
}

body.hold .token-wrap {
  opacity: 0;
  visibility: hidden;
}

body.hold .tagline,
body.hold .coming-soon {
  opacity: 1;
}

body.hold .site-footer {
  opacity: 1;
}

body.intro-active .wordmark {
  opacity: 1;
}

body.intro-active .token-wrap {
  opacity: 1;
  visibility: visible;
}

/* Reduced motion: immediate hold */
@media (prefers-reduced-motion: reduce) {
  body.reduced-motion-ready.hold .wordmark,
  body.reduced-motion-ready.hold .wm-game,
  body.reduced-motion-ready.hold .wm-n,
  body.reduced-motion-ready.hold .tagline,
  body.reduced-motion-ready.hold .coming-soon,
  body.reduced-motion-ready.hold .token-wrap {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  body.reduced-motion-ready.hold .token-wrap {
    display: none;
  }

  body.reduced-motion-ready.hold .site-footer {
    opacity: 1;
  }
}