/* site.css - Huanghua Online site: the player pages' layout on top of style.css */

.brand-logo img { display: block; height: 44px; width: auto; }
footer .brand-logo img { height: 56px; margin-bottom: 6px; }

body.site { background: var(--deep); }
.topbar { background: #0b0603; border-bottom: 1px solid #2a1b0d; font-size: .8rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar strong { color: var(--ink); font-weight: normal; }
.topbar .dot { display: inline-block; vertical-align: middle; }

header.top nav a:not(.btn) {
	color: var(--ink); text-decoration: none; padding: 8px 10px; font-size: .92rem; border-bottom: 2px solid transparent;
}
header.top nav a:not(.btn):hover { color: var(--gold); }
header.top nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.play-link { letter-spacing: .15em; font-weight: bold; padding: 9px 22px; }
.menu-toggle { display: none; }

/* hero */
.hero-full {
	position: relative; min-height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.hero-slides { position: absolute; inset: 0; }
/* Oversized and anchored top-left: the client's loading screens carry their
   original logo in the bottom-right corner, which this crops out of view. */
.hero-slides img {
	position: absolute; top: 0; left: 0; width: 135%; height: 135%; object-fit: cover; opacity: 0;
	transition: opacity 1.6s ease; transform: scale(1.04); transform-origin: top left;
}
.hero-slides img.active { opacity: 1; animation: drift 14s ease-out forwards; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-full::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 40%, rgba(20,11,5,.35) 0%, rgba(20,11,5,.82) 70%), linear-gradient(180deg, rgba(20,11,5,.2), rgba(20,11,5,.95));
}
.hero-content { position: relative; z-index: 1; padding: 48px 16px; max-width: 760px; }
.hero-logo { width: min(520px, 86vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.7)); }
.hero-content h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); margin: 10px 0 6px; color: var(--ink); text-shadow: 0 2px 10px #000; }
.hero-content p { font-size: 1.08rem; text-shadow: 0 1px 6px #000; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 4px; }
.chip { padding: 3px 11px; border: 1px solid var(--gold-soft); border-radius: 999px; font-size: .78rem; background: rgba(20,11,5,.7); color: var(--gold); letter-spacing: .06em; }
.chip.live { border-color: #3f7a3b; color: #bfe6bb; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero-actions .btn { padding: 13px 30px; font-size: 1.05rem; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: -38px auto 30px; position: relative; z-index: 2; border-radius: 4px; overflow: hidden; }
.strip > div { background: linear-gradient(180deg, #2c1b0d, #1b1007); padding: 16px; text-align: center; }
.strip .value { font-size: 1.9rem; color: var(--gold); line-height: 1.1; }
.strip .label { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }

/* sections */
.section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: var(--gold); font-size: 1.4rem; letter-spacing: .04em; }
.section-head .eyebrow { display: block; margin-bottom: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card.tight { padding: 16px; margin: 0; }
.card.tight + .card.tight { margin-top: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(90,61,28,.6); }
.list li:last-child { border-bottom: none; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { color: var(--muted); font-size: .8rem; }
.rank-badge { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #3a2410; color: var(--gold); font-size: .8rem; border: 1px solid var(--gold-soft); }
.rank-badge.r1 { background: #6a4a10; color: #ffe39a; }
.feed { max-height: 320px; overflow-y: auto; }
.feed li { font-size: .9rem; white-space: normal; }
.feed time { color: var(--muted); font-size: .75rem; flex: none; width: 54px; }
.feature { padding: 18px; }
.feature .icon { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; color: var(--gold); font-size: 1.05rem; }
.feature p { margin: 0; color: #e0d2ae; font-size: .92rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 20px 18px 18px 64px; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 16px;
	font-size: 1.6rem; color: var(--gold); opacity: .8;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.alive { color: var(--ok); }
.dead { color: var(--bad); }
a.char-link { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--gold-soft); }
a.char-link:hover { color: var(--gold); }
.page-head { padding: 34px 0 6px; }
.page-head h1 { margin: 0; color: var(--gold); letter-spacing: .06em; font-size: 2rem; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters > * { flex: 0 1 200px; }
.rule-row { padding: 12px 0; border-bottom: 1px solid rgba(90,61,28,.6); }
.rule-row:last-child { border-bottom: none; }
.rule-row .flag { font-family: Consolas, monospace; font-size: .78rem; color: var(--muted); }
.rule-row p { margin: 4px 0 0; font-size: .92rem; }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.gear { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.25); }
.gear img { width: 36px; height: 36px; image-rendering: pixelated; }
.gear .slot-name { color: var(--muted); font-size: .72rem; }
.faq details { border-bottom: 1px solid rgba(90,61,28,.6); padding: 12px 0; }
.faq summary { cursor: pointer; color: var(--gold); font-size: 1.02rem; }
.faq details p, .faq details li { color: #e0d2ae; }
.auth-wrap { max-width: 460px; margin: 40px auto; }
.wallet { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
	.two-col, .three-col, .steps { grid-template-columns: 1fr; }
	.strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
	.menu-toggle { display: inline-flex; }
	header.top .wrap { flex-direction: row; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
	header.top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
	header.top nav.open { display: flex; }
	.hero-full { min-height: 460px; }
}
