:root {
--black: #080808;
--panel: #10100f;
--gold: #d4af37;
--gold-light: #f5e5aa;
--white: #f5f1e8;
--muted: #8b877d;
--border: rgba(212, 175, 55, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
}

body {
min-height: 100vh;
overflow-x: hidden;
background: var(--black);
color: var(--white);
font-family: Arial, Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
}

button,
input,
a {
font: inherit;
-webkit-tap-highlight-color: transparent;
}

a {
color: inherit;
text-decoration: none;
}

button {
cursor: pointer;
}

#starfield {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
z-index: -2;
pointer-events: none;
}

.topbar {
position: relative;
z-index: 5;
width: min(1200px, 90%);
height: 76px;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
display: inline-flex;
align-items: center;
gap: 9px;
font-size: 13px;
font-weight: 700;
letter-spacing: 3px;
white-space: nowrap;
}

.brand-symbol {
color: var(--gold);
font-size: 24px;
}

.header-label,
.header-link {
font-size: 8px;
letter-spacing: 2px;
}

.header-label {
color: var(--muted);
}

.header-link {
color: var(--gold-light);
white-space: nowrap;
}

.hero {
min-height: 780px;
padding: 85px 20px 45px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}

.eyebrow {
display: flex;
align-items: center;
gap: 12px;
color: var(--gold);
font-size: 9px;
letter-spacing: 2.5px;
}

.eyebrow span {
width: 25px;
height: 1px;
background: var(--gold);
}

h1 {
margin-top: 28px;
font-size: clamp(48px, 9vw, 102px);
line-height: 0.92;
letter-spacing: 0.045em;
font-weight: 800;
}

h1 span,
.section-heading h2 span,
.closing-section h2 span {
color: var(--gold-light);
}

.hero-description {
margin-top: 23px;
color: #aaa59a;
font-size: 13px;
line-height: 1.9;
}

.search-form {
position: relative;
z-index: 2;
width: min(470px, 100%);
margin-top: 31px;
text-align: left;
}

.search-form > label {
display: block;
margin-bottom: 10px;
color: var(--gold);
font-size: 9px;
letter-spacing: 2px;
}

.search-box {
min-height: 54px;
display: flex;
align-items: center;
gap: 10px;
padding: 5px 5px 5px 15px;
border: 1px solid rgba(212, 175, 55, 0.42);
background: rgba(15, 15, 14, 0.96);
transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
border-color: var(--gold);
box-shadow: 0 0 25px rgba(212, 175, 55, 0.08);
}

.search-icon {
color: var(--gold);
font-size: 24px;
}

.search-box input {
width: 100%;
min-width: 0;
outline: none;
border: 0;
background: transparent;
color: var(--white);
font-size: 13px;
}

.search-box input::placeholder {
color: #77746d;
}

.search-box button {
align-self: stretch;
flex-shrink: 0;
border: 0;
background: var(--gold);
color: #080808;
padding: 0 17px;
font-size: 9px;
font-weight: 800;
letter-spacing: 1px;
transition: background 0.2s;
}

.search-box button:hover {
background: var(--gold-light);
}

.search-hint {
margin-top: 10px;
color: #77746d;
font-size: 10px;
}

.cosmos {
width: min(430px, 90vw);
height: 260px;
position: relative;
display: grid;
place-items: center;
margin-top: 10px;
}

.cosmos-ring {
position: absolute;
border: 1px solid rgba(212, 175, 55, 0.3);
border-radius: 50%;
}

.ring-a {
width: 170px;
height: 170px;
box-shadow: 0 0 55px rgba(212, 175, 55, 0.05);
}

.ring-b {
width: 245px;
height: 100px;
transform: rotate(-35deg);
border-color: rgba(245, 229, 170, 0.55);
}

.ring-c {
width: 270px;
height: 115px;
transform: rotate(43deg);
border-color: rgba(212, 175, 55, 0.18);
}

.cosmos-core {
width: 66px;
height: 66px;
border-radius: 50%;
background: radial-gradient(circle at 30% 25%, #fff8d7, #d4af37 45%, #49360c 78%);
box-shadow: 0 0 35px rgba(212, 175, 55, 0.5),
0 0 85px rgba(212, 175, 55, 0.2);
animation: corePulse 4s ease-in-out infinite;
}

.cosmos-label {
position: absolute;
bottom: 4px;
color: #8d7b4b;
font-size: 8px;
letter-spacing: 3px;
}

.scroll-cue {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 10px;
color: #777166;
font-size: 8px;
letter-spacing: 2px;
}

.scroll-line {
width: 1px;
height: 30px;
background: linear-gradient(var(--gold), transparent);
}

.universe-section {
padding: 90px 5% 70px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.section-heading {
text-align: center;
margin-bottom: 40px;
}

.section-kicker {
color: var(--gold);
font-size: 9px;
letter-spacing: 2.5px;
}

.section-heading h2,
.closing-section h2 {
margin-top: 16px;
font-size: clamp(31px, 5vw, 51px);
line-height: 1.12;
letter-spacing: -1.5px;
}

.section-heading > p {
margin-top: 15px;
color: var(--muted);
font-size: 12px;
line-height: 1.8;
}

.feed-toolbar {
width: min(1100px, 100%);
min-height: 43px;
margin: 0 auto 18px;
padding: 0 2px 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid var(--border);
color: #a79a73;
font-size: 8px;
letter-spacing: 1.7px;
}

.feed-toolbar > div:first-child {
display: flex;
align-items: center;
gap: 9px;
}

.live-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #c9a72f;
box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.profile-grid {
width: min(1100px, 100%);
margin: auto;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}

.profile-card {
position: relative;
min-width: 0;
min-height: 238px;
overflow: hidden;
border: 1px solid var(--border);
background:
radial-gradient(ellipse at 50% 0%, rgba(var(--accent), 0.09), transparent 65%),
linear-gradient(150deg, #121211, #090909);
animation: cardEnter 0.35s ease both;
transition: border-color 0.25s, transform 0.25s;
}

.profile-card:hover {
border-color: rgba(212, 175, 55, 0.65);
transform: translateY(-3px);
}

.profile-card::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
opacity: 0.6;
}

.profile-top {
padding: 15px 15px 0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
color: #8b8062;
font-size: 8px;
letter-spacing: 1px;
}

.profile-status {
display: inline-flex;
align-items: center;
gap: 5px;
}

.profile-status::before {
content: "";
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--accent-color);
}

.profile-art {
position: relative;
height: 105px;
display: grid;
place-items: center;
overflow: hidden;
}

.profile-orbit {
position: absolute;
width: 84px;
height: 84px;
border: 1px solid var(--accent-color);
border-radius: 50%;
opacity: 0.6;
}

.profile-orbit.orbit-tilted {
width: 112px;
height: 45px;
transform: rotate(-35deg);
border-color: rgba(var(--accent), 0.85);
}

.profile-orbit.orbit-inner {
width: 62px;
height: 62px;
border-style: dashed;
opacity: 0.3;
}

.profile-avatar {
position: relative;
z-index: 1;
width: 47px;
height: 47px;
display: grid;
place-items: center;
border-radius: 50%;
color: var(--accent-color);
font-size: 24px;
background: radial-gradient(circle, rgba(var(--accent), 0.22), #080808 72%);
border: 1px solid rgba(var(--accent), 0.45);
box-shadow: 0 0 28px rgba(var(--accent), 0.15);
}

.profile-details {
padding: 0 15px 16px;
}

.profile-name {
overflow: hidden;
color: var(--white);
font-size: 15px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}

.profile-subtitle {
margin-top: 6px;
overflow: hidden;
color: #8d8980;
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}

.profile-bottom {
margin-top: 13px;
padding-top: 10px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
color: #8c8266;
font-size: 8px;
letter-spacing: 1px;
}

.profile-bottom span:last-child {
color: var(--accent-color);
}

.loading-indicator {
min-height: 72px;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
color: #8d7b4b;
font-size: 8px;
letter-spacing: 2px;
}

.loader {
width: 14px;
height: 14px;
border: 1px solid rgba(212, 175, 55, 0.2);
border-top-color: var(--gold);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

.loading-indicator.hidden {
display: none;
}

#scrollSentinel {
height: 2px;
width: 100%;
}

.manual-controls {
display: flex;
justify-content: center;
margin-top: 15px;
}

.load-more,
.back-top {
min-height: 44px;
padding: 0 20px;
border: 1px solid rgba(212, 175, 55, 0.45);
background: rgba(212, 175, 55, 0.04);
color: var(--gold-light);
font-size: 9px;
font-weight: 700;
letter-spacing: 1.5px;
transition: background 0.2s, color 0.2s;
}

.load-more span {
margin-left: 10px;
}

.load-more:hover,
.back-top:hover {
background: var(--gold);
color: #080808;
}

.load-more:disabled {
opacity: 0.5;
cursor: wait;
}

.infinite-note {
margin-top: 35px;
color: #6d6246;
text-align: center;
font-size: 8px;
letter-spacing: 2px;
}

.closing-section {
padding: 95px 20px 105px;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.closing-symbol {
margin-bottom: 20px;
color: var(--gold);
font-size: 28px;
}

.back-top {
margin-top: 30px;
}

.footer {
min-height: 85px;
padding: 20px 5%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
color: #777166;
font-size: 8px;
letter-spacing: 1.5px;
}

.footer-brand {
color: var(--white);
font-size: 11px;
}

.noscript {
padding: 20px;
color: var(--gold-light);
text-align: center;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

@keyframes corePulse {
0%, 100% { transform: scale(0.96); }
50% { transform: scale(1.05); }
}

@keyframes cardEnter {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
.profile-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}

.header-label {
display: none;
}

.hero {
min-height: 740px;
padding-top: 70px;
}

.universe-section {
padding: 75px 5% 60px;
}
}

@media (max-width: 460px) {
.topbar {
height: 66px;
}

.brand {
font-size: 11px;
letter-spacing: 2px;
}

.header-link {
font-size: 7px;
letter-spacing: 1px;
}

.hero {
min-height: 700px;
padding: 70px 16px 35px;
}

h1 {
font-size: clamp(44px, 12vw, 61px);
}

.eyebrow {
gap: 7px;
font-size: 7px;
letter-spacing: 1.5px;
}

.eyebrow span {
width: 15px;
}

.hero-description {
font-size: 12px;
}

.search-box {
gap: 7px;
padding-left: 10px;
}

.search-box input {
font-size: 11px;
}

.search-box button {
padding: 0 11px;
font-size: 8px;
}

.cosmos {
height: 230px;
}

.ring-b {
width: 215px;
}

.ring-c {
width: 230px;
}

.profile-card {
min-height: 224px;
}

.profile-top {
padding: 12px 10px 0;
font-size: 7px;
}

.profile-details {
padding: 0 10px 13px;
}

.profile-name {
font-size: 13px;
}

.profile-subtitle {
font-size: 9px;
}

.profile-bottom {
font-size: 7px;
}

.feed-toolbar {
font-size: 7px;
letter-spacing: 1px;
}

.footer {
flex-wrap: wrap;
font-size: 7px;
}
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
