/* Space in Stream: hub styles. Palette and shapes come from the approved home mockup. */
:root {
  --ink: #2b1473;
  --ink-deep: #150a34;
  --soft: #e0d4ff;
  --muted: #c4b5ea;
  --pink: #ff3d9a; --orange: #ff8a1f; --yellow: #ffd21f; --lime: #6fd21a; --cyan: #19c9e8; --blue: #4d7cff; --purple: #b05cff;
  --head: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink-deep); color: #fff; font-family: var(--body); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
h1, h2 { font-family: var(--head); line-height: 1.15; }

/* ---------- page frame ---------- */
.top { position: relative; overflow: hidden; background: var(--ink); min-height: 100vh; }
.wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 32px 96px; }
.bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 28px 0; }
.bar-nav { display: flex; gap: 20px; font-weight: 800; }
.bar-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.bar-actions form { margin: 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: var(--head); font-weight: 700; font-size: 26px; }
.logo-orb { display: block; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff3a0, var(--pink) 55%, #7a28c9); box-shadow: 0 4px 0 #c21a73; }
.logo-orb--small { width: 36px; height: 36px; box-shadow: 0 3px 0 #c21a73; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 800 16px var(--body); cursor: pointer; color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .28), 0 0 0 2px rgba(255, 255, 255, .35); }
.btn:hover { transform: translateY(-2px); }
.btn--big { min-height: 56px; font-size: 18px; padding: 0 28px; }
.btn--discord { background: #4752c4; box-shadow: 0 5px 0 #2d3687, 0 0 0 2px rgba(255, 255, 255, .35); }
.btn--twitch { background: #772ce8; box-shadow: 0 5px 0 #4a15a3, 0 0 0 2px rgba(255, 255, 255, .35); }
.btn--kick { background: #53fc18; color: #0b0e0f; box-shadow: 0 5px 0 #2f9a0a, 0 0 0 2px rgba(255, 255, 255, .35); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #b9a6f0; }
.btn--ghost { background: rgba(255, 255, 255, .14); box-shadow: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 24px 0 8px; }
.title { margin: 0; font-weight: 700; font-size: clamp(56px, 9vw, 120px); text-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.title .w1 { color: #ff8cc4; } .title .w2 { color: #7ee8fa; } .title .w3 { color: #c8f58a; } .title .w4 { color: #ffe27a; }
.tagline { margin: 18px 0 0; font-size: 22px; font-weight: 700; color: #efe6ff; }
.subtagline { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--soft); }

/* ---------- game map ---------- */
.map { display: flex; flex-wrap: wrap; justify-content: center; padding: 56px 0 0; }
.node { flex: 0 0 25%; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 12px; animation: drift 6s ease-in-out infinite; }
.node:nth-child(even) { margin-top: 44px; }
.node:nth-child(2) { animation-delay: -.9s; } .node:nth-child(3) { animation-delay: -1.8s; } .node:nth-child(4) { animation-delay: -2.7s; }
.node:nth-child(5) { animation-delay: -3.6s; } .node:nth-child(6) { animation-delay: -4.5s; } .node:nth-child(7) { animation-delay: -5.4s; }
.node-title { margin-top: 34px; font-family: var(--head); font-weight: 600; font-size: 23px; line-height: 1.15; }
.node-sub { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--soft); }

.orb { --c0: var(--pink); --c1: #ffa6d5; --c2: #c21a73; position: relative; z-index: 1; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
  background: radial-gradient(circle at 34% 28%, var(--c1) 0%, var(--c0) 52%, var(--c2) 100%);
  box-shadow: 0 10px 0 var(--c2), 0 26px 36px rgba(0, 0, 0, .35), inset -10px -14px 22px rgba(0, 0, 0, .16); }
.node:hover .orb { transform: translateY(-8px) scale(1.04); }
.orb--1 { --c0: #ff3d9a; --c1: #ffa6d5; --c2: #c21a73; }
.orb--2 { --c0: #ff8a1f; --c1: #ffc98a; --c2: #c75f00; }
.orb--3 { --c0: #ffd21f; --c1: #fff3a0; --c2: #c9a000; }
.orb--4 { --c0: #6fd21a; --c1: #c8f58a; --c2: #3f9100; }
.orb--5 { --c0: #19c9e8; --c1: #a2effc; --c2: #0a8ba3; }
.orb--6 { --c0: #4d7cff; --c1: #b3c6ff; --c2: #2548c4; }
.orb--7 { --c0: #b05cff; --c1: #e2c0ff; --c2: #7a28c9; }
.shine { position: absolute; top: 11%; left: 17%; width: 36%; height: 21%; border-radius: 50%; background: rgba(255, 255, 255, .7); transform: rotate(-28deg); }
.orb-icon { position: relative; }
.orb-q { position: relative; font-family: var(--head); font-weight: 700; font-size: 84px; line-height: 1; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .2); }
.orb-link { position: absolute; inset: 0; border-radius: 50%; z-index: 3; }
.play-wrap { position: absolute; left: 0; right: 0; bottom: -20px; display: flex; justify-content: center; }
.play { padding: 8px 26px; border-radius: 999px; background: #ffe14d; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 20px; box-shadow: 0 5px 0 #c9a000; animation: bob 1.3s ease-in-out infinite; }

@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ---------- decorative sky ---------- */
.sky { position: absolute; inset: 0; pointer-events: none; }
.bub { position: absolute; border-radius: 50%; opacity: .4; animation: floaty 8s ease-in-out infinite; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 34%), var(--bc, #ff3d9a); }
.bub:nth-child(1) { left: 3%; top: 4%; width: 120px; height: 120px; --bc: #ff3d9a; }
.bub:nth-child(2) { left: 89%; top: 2%; width: 90px; height: 90px; --bc: #19c9e8; animation-delay: -1.3s; }
.bub:nth-child(3) { left: 80%; top: 22%; width: 170px; height: 170px; --bc: #b05cff; animation-delay: -2.6s; }
.bub:nth-child(4) { left: -3%; top: 30%; width: 200px; height: 200px; --bc: #ffd21f; animation-delay: -3.9s; }
.bub:nth-child(5) { left: 93%; top: 52%; width: 80px; height: 80px; --bc: #6fd21a; animation-delay: -5.2s; }
.bub:nth-child(6) { left: 5%; top: 62%; width: 110px; height: 110px; --bc: #ff8a1f; animation-delay: -6.5s; }
.bub:nth-child(7) { left: 48%; top: 86%; width: 140px; height: 140px; --bc: #4d7cff; animation-delay: -7.8s; }
.bub:nth-child(8) { left: 28%; top: 10%; width: 46px; height: 46px; --bc: #7ee8fa; animation-delay: -1s; }
.bub:nth-child(9) { left: 63%; top: 7%; width: 34px; height: 34px; --bc: #ffa6d5; animation-delay: -2s; }
.bub:nth-child(10) { left: 19%; top: 50%; width: 42px; height: 42px; --bc: #c8f58a; animation-delay: -3s; }
.bub:nth-child(11) { left: 71%; top: 74%; width: 58px; height: 58px; --bc: #ffd21f; animation-delay: -4s; }
.bub:nth-child(12) { left: 92%; top: 86%; width: 100px; height: 100px; --bc: #ff3d9a; animation-delay: -5s; }
.star { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .7; }
.star:nth-child(13) { left: 10%; top: 4%; } .star:nth-child(14) { left: 22%; top: 9%; } .star:nth-child(15) { left: 41%; top: 3%; }
.star:nth-child(16) { left: 57%; top: 6%; } .star:nth-child(17) { left: 76%; top: 5%; } .star:nth-child(18) { left: 95%; top: 12%; }
.star:nth-child(19) { left: 8%; top: 22%; } .star:nth-child(20) { left: 36%; top: 28%; } .star:nth-child(21) { left: 68%; top: 20%; }
.star:nth-child(22) { left: 85%; top: 44%; } .star:nth-child(23) { left: 14%; top: 80%; } .star:nth-child(24) { left: 52%; top: 70%; }
.star:nth-child(25) { left: 80%; top: 92%; } .star:nth-child(26) { left: 34%; top: 96%; }

/* ---------- cards, forms, prose ---------- */
.card { max-width: 820px; margin: 24px auto 0; padding: 32px; border-radius: 32px; background: rgba(21, 10, 52, .72); box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.card--narrow { max-width: 560px; }
.card h1 { margin: 0 0 12px; font-size: 40px; }
.card h2 { margin: 32px 0 12px; font-size: 24px; }
.center { text-align: center; }
.login-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.msg { margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; font-weight: 700; }
.msg--ok { background: #1b5e20; } .msg--error { background: #8c1d2f; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check input { width: 26px; height: 26px; margin-top: 2px; accent-color: var(--pink); }
.check small, .field small { display: block; color: var(--muted); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.field input { min-height: 48px; padding: 0 16px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: 600 17px var(--body); }
.linked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.linked li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .08); }
.linked form { margin: 0; }
.prose { line-height: 1.7; font-size: 18px; }
.prose a { color: #7ee8fa; text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .35); }
.prose table { border-collapse: collapse; } .prose th, .prose td { padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .25); }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 4px solid var(--pink); color: var(--soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); }
.rainbow { display: flex; height: 12px; }
.rainbow i { flex: 1; }
.rainbow i:nth-child(1) { background: #ff3d9a; } .rainbow i:nth-child(2) { background: #ff8a1f; } .rainbow i:nth-child(3) { background: #ffd21f; }
.rainbow i:nth-child(4) { background: #6fd21a; } .rainbow i:nth-child(5) { background: #19c9e8; } .rainbow i:nth-child(6) { background: #4d7cff; } .rainbow i:nth-child(7) { background: #b05cff; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 64px 32px 32px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.foot-logo { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 24px; }
.foot-brand p { margin: 16px 0 0; max-width: 320px; color: #d3c6f2; line-height: 1.55; }
.foot h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.foot h2.dot::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--dot, var(--pink)); }
.dot--pink { --dot: var(--pink); } .dot--orange { --dot: var(--orange); } .dot--yellow { --dot: var(--yellow); } .dot--lime { --dot: var(--lime); }
.dot--cyan { --dot: var(--cyan); } .dot--blue { --dot: var(--blue); } .dot--purple { --dot: var(--purple); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #d3c6f2; }
.foot a:hover { text-decoration: underline; }
.foot-live { color: #fff; font-weight: 800; }
.foot-soon { color: #a999d6; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: var(--muted); }

@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .node { flex-basis: 50%; } .wrap { padding: 0 20px 64px; } .card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .node, .bub, .play { animation: none; } .orb, .btn { transition: none; } .btn:hover, .node:hover .orb { transform: none; } }

/* sitefun live preview iframe */
body.preview { margin: 0; padding: 16px; background: var(--ink); }
