/* GlobalCoin, coming soon gate. Soft blue paper, black ink. */
@font-face { font-family: "Gloock"; src: url("/assets/fonts/gloock.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #d6ebff;
  --ink: #181819;
  --line: rgba(24, 24, 25, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: none;                 /* swipes drive the sideways move instead of page bounce */
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Full-screen dithered globe */
.globe { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; animation: fade 1.4s ease both; }

/* The sideways track: two screens next to each other */
.track { position: fixed; top: 0; left: 0; z-index: 1; display: flex; width: 200vw; height: 100%; will-change: transform; }
.panel { position: relative; flex: none; width: 100vw; height: 100%; }

/* Panel 1: just the title and the coming soon line, centred on the screen */
.panel-land { display: grid; place-items: center; }
.gate-inner { position: relative; text-align: center; animation: rise 1.1s var(--ease) both; }
.title { margin: 0; font: 400 min(9.5rem, calc((100vw - 64px) / 5.6))/.9 "Gloock", "Iowan Old Style", Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
.soon { position: absolute; top: 100%; left: 50%; translate: -50% 0; margin: clamp(18px, 3vh, 32px) 0 0; white-space: nowrap; font-weight: 500; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: .26em; text-transform: uppercase; }
.soon-text { display: inline-block; min-height: 1.4em; }
.soon-text::before { content: "[ "; }
.soon-text::after { content: " ]"; }
.soon .dc { display: inline-block; }
.soon .dc.dim { opacity: .4; }

/* Panel 2: links on the left, the stripe pattern on the right */
.panel-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); background: var(--paper); }
.links { align-self: center; padding: calc(var(--safe-t) + 48px) clamp(28px, 6vw, 110px) calc(var(--safe-b) + 48px); max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 clamp(28px, 6vh, 64px); padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 11px/1 "Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.links-title { margin: 0; font: 400 clamp(2.6rem, 5.4vw, 5.4rem)/.95 "Gloock", Georgia, serif; letter-spacing: -.01em; }
.links-sub { margin: 14px 0 clamp(26px, 5vh, 52px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: clamp(16px, 2.6vh, 26px) 0; border-bottom: 1px solid var(--line); }
.row-name { font: 400 clamp(1.7rem, 2.8vw, 2.7rem)/1 "Gloock", Georgia, serif; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .3s ease, color .3s ease, translate .3s var(--ease); }
.pill.is-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); opacity: .7; }
.links-art { position: relative; height: 100%; overflow: hidden; }
.links-art svg { display: block; }
@media (hover: hover) and (pointer: fine) {
  a.pill:hover { background: #0866ff; translate: 0 -2px; }
  .back:hover { background: var(--ink); color: var(--paper); }
}
a.pill:focus-visible, .back:focus-visible { outline: 2px solid #0866ff; outline-offset: 3px; }

/* the links page fades its content up once it has arrived */
.panel-links .links > * { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .8s var(--ease); }
.is-links .panel-links .links > * { opacity: 1; translate: 0 0; }
.is-links .panel-links .links > *:nth-child(2) { transition-delay: .06s; }
.is-links .panel-links .links > *:nth-child(3) { transition-delay: .12s; }
.is-links .panel-links .links > *:nth-child(4) { transition-delay: .18s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Phones: the pattern sits on top, the links below, everything fits the smallest visible screen */
@media (max-width: 760px) {
  .title { font-size: calc((100vw - 40px) / 5.6); }
  .soon { font-size: clamp(16px, 5.2vw, 23px); font-weight: 600; letter-spacing: .12em; }
  .panel-links { grid-template-columns: 1fr; grid-template-rows: 28svh minmax(0, 1fr); }
  .links-art { grid-row: 1; }
  .links { grid-row: 2; align-self: start; padding: 22px 20px calc(var(--safe-b) + 20px); }
  .back { position: absolute; top: calc(var(--safe-t) + 14px); left: 14px; margin: 0; background: var(--paper); z-index: 2; }
  .links-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .links-sub { margin: 10px 0 20px; font-size: 11px; }
  .row { gap: 12px; padding: 14px 0; }
  .row-name { font-size: clamp(1.4rem, 6.6vw, 1.9rem); }
  .row-actions { gap: 6px; }
  .pill { min-height: 34px; padding: 0 12px; font-size: 10px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-inner, .globe { animation: none; }
  .panel-links .links > * { transition: none; }
}

/* Contract address row: Robinhood Chain icon (explorer link), address (tap to copy), Buy */
.ca { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 6px 0 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.ca-chain { display: block; width: 32px; height: 32px; border-radius: 999px; overflow: hidden; flex: none; transition: transform .3s var(--ease); }
.ca-chain img { display: block; width: 100%; height: 100%; }
.ca-addr { padding: 6px 8px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 400 12px/1 "Plex Mono", ui-monospace, monospace; letter-spacing: .02em; cursor: copy; transition: background-color .25s ease; }
.ca-addr.is-copied { background: var(--ink); color: var(--paper); }
.ca-short { display: none; }
.pill-buy { background: #0866ff; padding: 0 22px; }
@media (hover: hover) and (pointer: fine) {
  .ca-chain:hover { transform: scale(1.08); }
  .ca-addr:hover { background: rgba(24, 24, 25, .07); }
  a.pill-buy:hover { background: var(--ink); }
}
.ca-chain:focus-visible, .ca-addr:focus-visible { outline: 2px solid #0866ff; outline-offset: 2px; }
@media (max-width: 1300px) { .ca-full { display: none; } .ca-short { display: inline; } }
@media (max-width: 760px) { .ca { min-height: 34px; } .ca-chain { width: 26px; height: 26px; } .ca-addr { font-size: 11px; } .pill-buy { padding: 0 16px; } }
