/* link.ganbitera.io. Ported from the approved comp c2 (2026-11-27). Every block
   names the Ganbitera app source it is copied from (ganbitera-v0/apps/web/src). */
@font-face { font-family: "Outfit Variable"; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2-variations"); }
/* @fontsource/ibm-plex-mono latin 400: the app's --font-mono, used here for the one status line */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Syne Variable"; font-weight: 400 800; font-display: swap; src: url(/fonts/syne-latin-wght-normal.woff2) format("woff2-variations"); }

/* styles.css :root tokens */
:root {
  color-scheme: dark;
  --background: #14121f; --surface-2: #1c1a29; --surface-3: #242233; --card: var(--surface-2);
  --text-primary: #ededf0; --text-secondary: #9b9eb0; --text-tertiary: #878ba4;
  --violet: #8b5cf6; --violet-text: #a783f8;
  --border: rgba(255,255,255,.08); --border-hover: rgba(255,255,255,.16); --row-hover: rgba(255,255,255,.03);
  --radius: .5rem; --radius-md: calc(var(--radius) * .8); --radius-xl: calc(var(--radius) * 1.5);
  --focus-ring: var(--violet);
  --ease-emphasized: cubic-bezier(.23,1,.32,1); --duration-fast: 150ms;
  --font-sans: "Outfit Variable", system-ui, sans-serif; --font-display: "Syne Variable", "Outfit Variable", sans-serif; --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
h1, h2, p, ul, ol { margin: 0; }
/* styles.css body + __root.tsx shell (min-h-screen flex flex-col) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--background); color: var(--text-primary); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* styles.css body::after: the ambient top glow */
body::after { content: ""; position: fixed; top: -240px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse, rgba(139,92,246,.035) 0%, transparent 70%); }
/* styles.css ::selection */
::selection { background: rgba(139,92,246,.25); color: white; }
a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg.s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ui/page-frame.tsx: page-wrap, narrow max-w-4xl; pt-28 at md (centered), pb-16 */
/* Phone first: the links are the content, so the hero stays compact enough that all five main rows
   fit a 640px-tall screen (X's in-app browser shows about that much). */
main { flex: 1; width: min(calc(100% - 2rem), 56rem); margin: 0 auto; padding: 1rem 0 3rem; }

/* styles.css .surface-card: --card, hairline border, radius-xl */
.card { position: relative; overflow: hidden; display: grid; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); }

/* ── identity ── */
.id { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.25rem 1.5rem 1.25rem; text-align: center; }
.mark { position: relative; width: 6.5rem; aspect-ratio: 1; display: grid; place-items: center; }
/* MintCelebration.tsx + styles.css .mint-glow: the violet light behind the dealt cards */
.mark .glow { position: absolute; inset: -15%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--violet) 45%, transparent), transparent); opacity: .55; }
/* Rings: hairlines in the app's two border tokens (styles.css --border / --border-hover) */
.mark .ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.mark .r1 { inset: 0; }
.mark .r2 { inset: 13%; border-color: var(--border-hover); }
.mark .r3 { inset: 26%; }
/* HomeHero.tsx HeroFallback: the mark at h-16/md:h-20 */
.mark img { position: relative; width: 2.75rem; height: 2.75rem; }
/* The app's mono (styles.css --font-mono) as a small status line: says "testnet" before anyone taps */
/* inline-flex so the live dot sits on the text's centre line */
.status { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; font-family: var(--font-mono); font-size: .6875rem; line-height: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-text); }
/* styles.css --font-display (Syne): display headings only, one per page */
h1 { margin-top: .25rem; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 2.25rem; letter-spacing: -.02em; }
/* HomeHero.tsx HeroFallback tagline: text-sm md:text-lg text-secondary leading-relaxed */
.tag { margin-top: .5rem; max-width: 22rem; color: var(--text-secondary); font-size: .875rem; line-height: 1.625; text-wrap: pretty; }

/* ── links ── ui/card.tsx CardHeader divider (border-b border-[var(--border)]) */
.list { border-top: 1px solid var(--border); padding: .5rem .5rem 1rem; }
.links, .start { width: 100%; max-width: 26rem; margin: 0 auto; }
/* Secondary group, set apart by space (not a second divider); label like the app's section eyebrows */
.start { margin-top: 1.25rem; }
.start h2 { padding: 0 1rem .25rem; font-size: .75rem; line-height: 1rem; font-weight: 500; color: var(--text-tertiary); }
/* Step number in the tile slot, mono like the app's numbers */
.tile.num { font-family: var(--font-mono); font-size: .875rem; color: var(--text-secondary); }
.links { list-style: none; padding: 0; }
/* ui/entity-row.tsx EntityRow comfortable: gap-3 px-4 py-3, hover --row-hover, title text-sm truncate -> --violet-text, inset focus ring;
   styles.css .press keeps transform 160ms ease-emphasized on the base rule so the release eases back */
.row { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius); transition: background-color var(--duration-fast) cubic-bezier(.4,0,.2,1), transform 160ms var(--ease-emphasized); }
.row a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: .875rem; line-height: 1.25rem; transition: color var(--duration-fast) cubic-bezier(.4,0,.2,1); }
.row a::after { content: ""; position: absolute; inset: 0; }
.row a:focus-visible { outline: none; }
.row:has(a:focus-visible) { box-shadow: inset 0 0 0 2px var(--focus-ring); }
@media (forced-colors: active) { .row:has(a:focus-visible) { outline: 2px solid Highlight; outline-offset: -2px; } }
.body { flex: 1; min-width: 0; }
.body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; line-height: 1rem; color: var(--text-tertiary); }
/* NotificationPanel.tsx lead tile: size-10 rounded-md border surface-2 text-tertiary, icon size-4 */
.tile { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text-tertiary); transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease; }
.tile svg { width: 1rem; height: 1rem; }
/* Header.tsx logo size h-6 w-6 */
.tile img { width: 1.5rem; height: 1.5rem; }
/* ui/entity-row.tsx selected row wash bg-[var(--violet)]/10 — the one emphasised tile, kept on hover */
.row.lead .tile { background: rgba(139,92,246,.1); }
/* HomeHero.tsx Explore arrow: group-hover:translate-x-0.5, here on the diagonal */
.go { flex: none; width: 1rem; height: 1rem; color: var(--text-tertiary); transition: transform 160ms var(--ease-emphasized), color var(--duration-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--row-hover); }
  .row:hover a { color: var(--violet-text); }
  .row:hover .tile { border-color: var(--border-hover); color: var(--text-primary); }
  .row.lead:hover .tile { background: rgba(139,92,246,.1); }
  .row:hover .go { transform: translate(2px, -2px); color: var(--text-primary); }
}
/* styles.css .press:active: the press lands faster than the release (rows are wide, so .99, not .96) */
.row:active { transform: scale(.99); transition-duration: 150ms, 100ms; }

/* __root.tsx footer bottom bar: text-xs text-tertiary */
footer { width: min(calc(100% - 2rem), 56rem); margin: 0 auto; padding: 0 0 2rem; text-align: center; font-size: .75rem; line-height: 1rem; color: var(--text-tertiary); }

/* ── motion ──
   First load is the one expressive moment (better-motion: "stagger infrequent entrances by 100ms"):
   three semantic chunks (identity, links, start steps) enter 100ms apart with opacity + 4px blur + 12px rise
   over 300ms ease-out; rows inside a chunk cascade 30ms so the list reads top-down. Hovers stay instant-ish
   (150ms colour/background) because they are high frequency. The only loops are linear and slow. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
/* styles.css mint-glow: blooms past rest and settles */
@keyframes bloom { 0% { opacity: 0; transform: scale(.6); } 45% { opacity: 1; } 100% { opacity: .55; transform: none; } }
/* the mint-glow light keeps a slow opacity-only breath after it settles */
@keyframes glow-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .75; } }
/* styles.css hero-crossfade: scale 1.03 -> 1 */
@keyframes settle { from { opacity: 0; transform: scale(1.03); } }
@keyframes fade-in { from { opacity: 0; } }
/* Brand orbit (ring/orbit glyph): one point travels each of two rings, opposite ways, continuous = linear */
@keyframes orbit { to { transform: rotate(1turn); } }
/* Status dot: a slow opacity pulse, the text carries the meaning */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.mark .glow { animation: bloom 900ms var(--ease-emphasized) both, glow-breathe 6s ease-in-out 900ms infinite; }
.mark .ring { animation: settle 600ms var(--ease-emphasized) backwards; }
.mark .r1 { animation-delay: 160ms; } .mark .r2 { animation-delay: 80ms; } .mark .r3 { animation-delay: 0ms; }
.mark img { animation: settle 600ms var(--ease-emphasized) backwards; }
.mark .orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.mark .orbit::before { content: ""; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--violet-text); }
.mark .o1 { inset: 0; animation: fade-in 600ms ease-out 700ms backwards, orbit 48s linear infinite; }
.mark .o3 { inset: 26%; animation: fade-in 600ms ease-out 800ms backwards, orbit 32s linear infinite reverse; }
.mark .o3::before { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--text-tertiary); }

.status, h1, .tag, .row, .start h2 { animation: rise 300ms ease-out backwards; }
/* chunk 1: identity */
.status { animation-delay: 100ms; } h1 { animation-delay: 130ms; } .tag { animation-delay: 160ms; }
/* chunk 2: links (+100ms) */
.links .row:nth-child(1) { animation-delay: 200ms; } .links .row:nth-child(2) { animation-delay: 230ms; } .links .row:nth-child(3) { animation-delay: 260ms; } .links .row:nth-child(4) { animation-delay: 290ms; } .links .row:nth-child(5) { animation-delay: 320ms; }
/* chunk 3: start steps (+100ms) */
.start h2 { animation-delay: 420ms; }
.steps .row:nth-child(1) { animation-delay: 450ms; } .steps .row:nth-child(2) { animation-delay: 480ms; } .steps .row:nth-child(3) { animation-delay: 510ms; }
.status::before { animation: pulse 2.4s ease-in-out 1s infinite; }

@media (min-width: 52rem) {
  main { padding-top: 5rem; }
  .card { grid-template-columns: 1fr 1.1fr; }
  .id { justify-content: center; padding: 3.5rem 2.5rem; border-right: 1px solid var(--border); }
  .mark { width: 14rem; }
  .mark img { width: 5rem; height: 5rem; }
  .status { margin-top: 1.5rem; }
  h1 { margin-top: .5rem; font-size: 3rem; line-height: 1; }
  .tag { font-size: 1rem; }
  .list { border-top: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem; }
}
/* static under reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
