/* Agnes theme - single stylesheet for the public site.
   Sections: 1 tokens, 2 base, 3 buttons, 4 navbar, 5 hero, 6 status bar,
   7 home sections, 8 inner pages (legacy markup), 9 modals/forms, 10 footer, 11 responsive */

/* 1. Tokens */
:root {
	--bg: #060d18;
	--bg-raised: #0b1626;
	--bg-soft: #102237;
	--line: rgba(64, 217, 209, .18);
	--line-strong: rgba(64, 217, 209, .45);
	--text: #e3edf5;
	--text-dim: #9eb3c6;
	--gold: #40d9d1;
	--gold-light: #a4f8f0;
	--ember: #8a2b1d;
	--ok: #4f9a5f;
	--radius: 4px;
	--nav-h: 72px;
	--font-title: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--shadow: 0 18px 40px rgba(0, 0, 0, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-width: 320px; overflow-x: hidden;
	background: var(--bg); color: var(--text);
	font: 400 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; color: var(--text); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2rem 0; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: #05202b; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #05202b; }

/* 3. Buttons (also styles legacy a.default / input.default) */
.btn, a.default, span.default, input.default {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 26px; cursor: pointer;
	font: 600 .82rem/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; text-align: center;
	border: 1px solid var(--gold); border-radius: var(--radius);
	background: transparent; color: var(--gold-light);
	transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover, a.default:hover, span.default:hover, input.default:hover { background: rgba(64, 217, 209, .14); color: #fff; box-shadow: 0 0 22px rgba(64, 217, 209, .18); }
.btn-primary, a.default.dbig, input.default.dbig, .gologin {
	background: linear-gradient(180deg, #93f6eb, #199fae); color: #05202b; border-color: #a4f8f0;
}
.btn-primary:hover, a.default.dbig:hover, input.default.dbig:hover, .gologin:hover { background: linear-gradient(180deg, #c6fff8, #40d9d1); color: #05202b; }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
a.default.dbig, input.default.dbig { width: auto; margin: 0 auto; }

/* 4. Navbar */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
	display: flex; align-items: center;
	background: transparent;
	transition: background-color .3s, box-shadow .3s, height .3s;
}
.is-home .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0)); transition: opacity .3s; }
.site-header.is-solid::before { opacity: 0; }
.nav-links a, .nav-links button { text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
.site-header.is-solid { background: rgba(6, 13, 24, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: 28px; width: min(1280px, 100% - 40px); margin-inline: auto; }
.nav-brand { display: block; flex: none; line-height: 0; }
.nav-brand img { width: 150px; height: auto; }
.nav-panel { display: flex; align-items: center; flex: 1; gap: 24px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
	display: block; padding: 10px 14px; background: none; border: 0; cursor: pointer;
	font: 600 .78rem/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-drop { position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px; margin: 0; list-style: none;
	background: rgba(20, 17, 13, .98); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-drop:hover > .nav-drop, .has-drop:focus-within > .nav-drop, .has-drop.is-open > .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a { padding: 10px 12px; font-size: .74rem; }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 6px 8px; font: 600 .7rem/1 var(--font-body); letter-spacing: .08em; color: var(--text-dim); border-radius: 3px; }
.lang-switch a[aria-current="true"], .lang-switch a:hover { color: var(--gold-light); }
.nav-account { position: relative; }
.nav-account > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: .85rem; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.nav-account > summary::-webkit-details-marker { display: none; }
.nav-account .nav-drop { right: 0; left: auto; opacity: 1; visibility: visible; transform: none; }
.nav-account:not([open]) .nav-drop { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--gold-light); content: ""; transition: transform .25s, opacity .25s; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* 5. Hero */
.hero {
	position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: min(100svh, 920px); padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(ellipse 60% 55% at 50% 38%, rgba(64, 217, 209, .16), transparent 70%),
		radial-gradient(ellipse 90% 60% at 50% 110%, rgba(138, 43, 29, .22), transparent 70%),
		var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; opacity: .55; animation: hero-drift 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 13, 24, .35) 0%, rgba(6, 13, 24, 0) 40%, var(--bg) 100%); }
@keyframes hero-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1.5%); } }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-logo { width: min(760px, 88vw); height: auto; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6)); }
.hero-tag { margin: 0; font: 600 clamp(.85rem, 1.6vw, 1.05rem)/1.4 var(--font-title); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.hero-lead { margin: 0; max-width: 56ch; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }

.countdown { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 14px; }
.countdown-date { margin: 0; font-size: .92rem; color: var(--text-dim); }
.countdown-date strong { color: var(--text); font-weight: 600; }
.countdown-grid { display: flex; gap: clamp(10px, 2.4vw, 22px); }
.cd-cell { display: grid; place-items: center; width: clamp(68px, 19vw, 92px); aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(6, 13, 24, .6); }
.cd-cell b { font: 700 clamp(1.4rem, 5vw, 2.1rem)/1 var(--font-title); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cd-cell > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cd-cell small { display: block; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

/* 6. Status bar */
.statusbar { position: relative; z-index: 2; border-block: 1px solid var(--line); background: var(--bg-raised); }
.statusbar-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.statusbar-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); }
.statusbar-list li:first-child { border-left: 0; }
.statusbar-value { font: 700 1.35rem/1.1 var(--font-title); color: var(--gold-light); }
.statusbar-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); vertical-align: middle; }
.is-off .dot { background: var(--ember); box-shadow: 0 0 10px var(--ember); }

/* 7. Home sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, var(--bg-raised), var(--bg)); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-dim); margin: 0; }
.section-title em { font-style: normal; color: var(--gold); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
	position: relative; padding: 28px 26px; background: linear-gradient(180deg, var(--bg-soft), var(--bg-raised));
	border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-icon { width: 38px; height: 38px; margin-bottom: 18px; color: var(--gold); }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rates > div { padding: 30px 12px; text-align: center; background: var(--bg-raised); }
.rates strong { display: block; font: 700 clamp(2rem, 5vw, 3rem)/1 var(--font-title); color: var(--gold-light); }
.rates span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

.rank-card .rank-list { margin: 0 0 18px; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-pos { width: 2ch; font: 700 .95rem/1 var(--font-title); color: var(--gold); }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-size: .82rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.card-link { font: 600 .74rem/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-soft); }
.news-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 22px 24px 26px; }
.news-body time { font-size: .78rem; color: var(--text-dim); }
.news-body h3 { margin: 0; }
.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--gold-light); }
.news-body p { flex: 1; margin: 0; color: var(--text-dim); font-size: .95rem; }

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; font: 700 .9rem var(--font-title); color: var(--gold-light); }
.steps b { display: block; color: var(--text); }
.steps span { color: var(--text-dim); font-size: .92rem; }

.banner-strip { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.banner-strip .banner { max-width: 100%; margin: 0 auto; }

.cta-final { position: relative; text-align: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(64, 217, 209, .14), transparent 70%), var(--bg); }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .35; }
.cta-final img { width: min(420px, 70vw); margin-bottom: 16px; }
.cta-final .hero-actions { margin-top: 28px; }

/* Scroll reveal (applied by site.js; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 8. Inner pages (legacy markup from pages/*.php) */
.page-shell { position: relative; padding: calc(var(--nav-h) + 48px) 0 80px; min-height: 70vh; background: var(--bg); }
.page-card { width: min(940px, 100% - 40px); margin-inline: auto; padding: clamp(24px, 4vw, 48px); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-card h1 { text-align: center; margin-bottom: 1em; }
.page-card center { display: block; text-align: center; }
.page-card .pddInner { padding: 0; }
.page-card a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.page-card a.default, .page-card a.btn { text-decoration: none; }
.page-card img.animation-image { display: block; margin: 0 auto; }
.page-card iframe { max-width: 100%; }

table.default { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
table.default th { padding: 12px 14px; text-align: left; font: 600 .78rem var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); background: var(--bg-soft); border-bottom: 1px solid var(--line-strong); }
table.default td { padding: 11px 14px; font-size: .92rem; border-top: 1px solid var(--line); color: var(--text); }
table.default tr.two td { background: rgba(255, 255, 255, .02); }
table.default td img { vertical-align: middle; }
.table-scroll, .page-card .pddInner { overflow-x: auto; }

.news { display: flex; gap: 20px; align-items: flex-start; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news a.imgn { flex: none; width: 112px; height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.news a.imgn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news .contentn { flex: 1; min-width: 0; }
.news a.titlen { font: 700 1.1rem var(--font-title); color: var(--text); text-decoration: none; }
.news .textn { margin: 6px 0 10px; color: var(--text-dim); font-size: .93rem; }
.news .finalinfo { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--text-dim); }
.shadownew { display: none; }

.horMenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 24px; }
.horMenu a { padding: 10px 16px; font: 600 .74rem var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); border-bottom: 2px solid var(--line); text-decoration: none; }
.horMenu a:hover, .horMenu a.atual { color: var(--gold-light); border-color: var(--gold); }
.rankings_options { position: relative; display: inline-block; margin: 0 0 16px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--gold-light); cursor: pointer; }
.rulesbox { max-height: 360px; overflow: auto; padding: 20px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.paginate { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 28px 0; }
.paginate a { min-width: 38px; padding: 8px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.paginate a:hover, .paginate a.atual { border-color: var(--gold); color: var(--gold-light); }
.castled, .castled > div { display: block; }
.castled { width: 100%; max-width: 480px; margin: 0 auto 20px; }
.castled .imgc { width: 100%; max-width: 240px; border: 1px solid var(--line); border-radius: var(--radius); }
.galleryBox, .fullGallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; width: 100%; padding: 0; }
.galleryBox > div, .fullGallery > div { display: contents; }
.galleryBox a, .fullGallery a { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.galleryBox a img, .fullGallery a img { width: 100%; height: 100%; object-fit: cover; }

/* 9. Forms, modals, alerts (markup generated by js/global.js) */
.formpadrao { display: block; margin: 0 auto 14px; padding: 0; width: 100%; max-width: 520px; }
.formpadrao > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.formpadrao .desc { flex: 0 0 150px; text-align: right; font-weight: 600; font-size: .9rem; color: var(--text-dim); }
.formpadrao .camp { flex: 1; min-width: 180px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--text);
	background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
label.captcha { position: relative; display: block; }
label.captcha img.captchaImage { border-radius: var(--radius); max-width: 100%; }
#backblack { position: fixed; inset: 0; z-index: 1999; background: rgba(0, 0, 0, .75); }
#modal, #alerta {
	position: fixed; z-index: 2000; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto;
	padding: 28px 24px; text-align: center; color: var(--text);
	background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
#alerta { visibility: visible; }
#modal h1 { font-size: 1.3rem; }
#alerta .ok { margin-top: 20px; }
#alerta .ok > div { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 46px; padding: 0 24px; cursor: pointer; font: 600 .82rem var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: #05202b; background: linear-gradient(180deg, #93f6eb, #199fae); border-radius: var(--radius); }
.error { margin: 0 0 12px; padding: 10px 14px; font-size: .9rem; color: #fff; background: var(--ember); border-radius: var(--radius); }
.loader { width: 54px; height: 54px; margin: 20px auto; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-panel { padding: 22px; }
.login-panel form { display: grid; gap: 12px; }
.login-panel .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.login-panel .gologin { position: static; width: 100%; height: 46px; border-radius: var(--radius); font: 600 .82rem var(--font-title); letter-spacing: .12em; text-transform: uppercase; border: 1px solid #a4f8f0; cursor: pointer; }

/* 10. Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-grid img { width: 150px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: .85rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-light); }
.footer-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--text-dim); }
.footer-note a { color: var(--text-dim); }

/* 11. Responsive */
@media (max-width: 1080px) {
	.nav-links { margin-left: 0; }
	.nav-links a, .nav-links button { padding: 10px 9px; letter-spacing: .1em; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	:root { --nav-h: 64px; }
	.nav-toggle { display: block; margin-left: auto; }
	.nav-tools .btn { display: none; }
	.nav-panel {
		position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 32px; overflow-y: auto;
		background: rgba(6, 13, 24, .98); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
	}
	.nav-open .nav-panel { transform: none; visibility: visible; }
	.nav-panel { align-items: stretch; }
	.nav-open { overflow: hidden; }
	.nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.nav-links a, .nav-links button { width: 100%; padding: 16px 4px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
	.nav-drop { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 14px; background: none; border: 0; box-shadow: none; display: none; }
	.has-drop.is-open > .nav-drop { display: block; }
	.nav-panel .btn { display: flex; margin-top: 18px; }
	.split, .grid-2 { grid-template-columns: 1fr; }
	.nav-tools { flex-direction: column; align-items: stretch; margin-top: 12px; }
}
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.container { width: calc(100% - 32px); }
	.grid-3 { grid-template-columns: 1fr; }
	.hero { min-height: 100svh; padding-bottom: 56px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.statusbar-list { grid-template-columns: repeat(2, 1fr); }
	.statusbar-list li:nth-child(odd) { border-left: 0; }
	.statusbar-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.statusbar-list li:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
	.rates strong { font-size: 1.9rem; }
	.news { flex-direction: column; }
	.news a.imgn { width: 100%; height: 180px; }
	.formpadrao .desc { flex: 1 1 100%; text-align: left; }
	.page-card { width: calc(100% - 24px); }
	table.default { display: block; overflow-x: auto; }
	.footer-grid, .footer-note { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* 12. Additions: login popover, banner slider, home helpers, legacy popups */
.account-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; display: grid; gap: 8px; min-width: 280px; padding: 18px; background: rgba(20, 17, 13, .98); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.account-pop .default { width: 100%; }
.account-pop form { display: grid; gap: 12px; }
.account-pop .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.fieldsBox { display: grid; gap: 10px; }
.fieldsBox .gologin { width: 100%; }
.nav-account > summary strong { color: var(--gold-light); font-weight: 600; }
.nav-account.loginarea .loader, .account-pop .loader { margin: 10px auto; }

.banner { position: relative; width: 100%; margin: 0 auto; }
.banner > a { display: none; }
.banner > a.bvis { display: block; }
.banner img { display: block; width: 100%; height: auto; }
.banner .circles { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.banner .circles div { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .35); border: 1px solid rgba(0, 0, 0, .4); }
.banner .circles div.act { background: var(--gold); }

.lead { font-size: 1.1rem; color: var(--text); max-width: 56ch; }
.rates-note { margin: 14px 0 0; font-size: .85rem; color: var(--text-dim); text-align: center; }
.section-more { margin: 32px 0 0; text-align: center; }
.hero-actions-left { justify-content: flex-start; }
.footer-visitors { margin: 24px 0 0; line-height: 0; }
.live-box iframe { max-width: 100%; }
.faceIndex { max-width: 100%; overflow: hidden; }

#fanback { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .75); }
#fan-exit { width: 100%; height: 100%; }
#fanbox { position: absolute; left: 50%; top: 50%; width: min(420px, 94vw); transform: translate(-50%, -50%); padding: 12px; background: #fff; border-radius: var(--radius); }
#fanbox iframe { width: 100%; height: 255px; border: 0; }
#fanclose { position: absolute; right: -10px; top: -10px; width: 28px; height: 28px; cursor: pointer; border-radius: 50%; background: var(--gold); }
#fanclose::before { content: "\00d7"; display: grid; place-items: center; height: 100%; font: 700 20px/1 var(--font-body); color: #05202b; }

@media (max-width: 900px) {
	.account-pop { position: static; margin-top: 8px; min-width: 0; }
	.nav-account { width: 100%; }
	.nav-account > summary { justify-content: space-between; min-height: 46px; }
}

.hero-logo { margin-bottom: clamp(-60px, -4vw, -16px); }
.news-body .card-link { margin-top: 10px; }

.nowrap { white-space: nowrap; }

.nav-tools .btn, .nav-account > summary { white-space: nowrap; }

/* js/global.js positions #alerta with inline left/top; centre it with CSS instead */
#alerta { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
table.default th:not(:first-child) { text-align: center; }
.rulesbox h1 { font-size: 1.25rem; text-align: left; margin-bottom: .8em; }

.section-tight { padding: clamp(28px, 4vw, 48px) 0; }

/* Hero legibility over busy artwork: soft dark pool behind the centred text */
.hero::after { background: radial-gradient(ellipse 46% 52% at 50% 52%, rgba(6, 13, 24, .62), rgba(6, 13, 24, 0) 78%), linear-gradient(180deg, rgba(6, 13, 24, .35) 0%, rgba(6, 13, 24, 0) 40%, var(--bg) 100%); }
.hero-lead { color: #b8cfdf; }
.hero-tag, .hero-lead, .countdown-date { text-shadow: 0 1px 14px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .8); }

/* Agnes hero: artwork has the knight on the right, so desktop copy sits on the left; centred on tablet/mobile */
.hero-bg { opacity: .92; background-position: right center; }
.hero-logo { width: min(560px, 82vw); margin-bottom: 0; }
@media (min-width: 901px) {
	.hero { justify-content: flex-start; text-align: left; }
	.hero::after { background: radial-gradient(ellipse 42% 60% at 22% 52%, rgba(6, 13, 24, .7), rgba(6, 13, 24, 0) 80%), linear-gradient(90deg, rgba(6, 13, 24, .55) 0%, rgba(6, 13, 24, 0) 55%), linear-gradient(180deg, rgba(6, 13, 24, .35) 0%, rgba(6, 13, 24, 0) 40%, var(--bg) 100%); }
	.hero-inner { align-items: flex-start; }
	.hero-lead { max-width: 44ch; }
	.hero .hero-actions, .hero .countdown { justify-content: flex-start; align-items: flex-start; }
}
@media (max-width: 900px) {
	.hero { align-items: flex-end; }
	.hero-bg { background-position: 62% top; }
	.hero::after { background: linear-gradient(180deg, rgba(6, 13, 24, .25) 0%, rgba(6, 13, 24, 0) 30%, rgba(6, 13, 24, .78) 62%, var(--bg) 100%); }
}

/* Info page: numbered sections with cards */
.page-card-wide { width: min(1080px, 100% - 40px); }
.info-head { margin: 0 0 28px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: radial-gradient(ellipse 40% 90% at 78% 0%, rgba(64, 217, 209, .12), transparent 70%); }
.info-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.info-server { display: flex; align-items: center; gap: 16px; padding: 28px 34px 28px 4px; border-right: 1px solid var(--line); }
.info-emblem { display: grid; place-items: center; width: 52px; height: 52px; flex: none; margin-left: 8px; border: 1px solid var(--gold); color: var(--text); background: var(--bg-soft); transform: rotate(45deg); }
.info-emblem svg { transform: rotate(-45deg); }
.info-server small { display: block; font: 700 .66rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.info-server strong { display: block; font: 700 1.2rem/1.2 var(--font-title); color: var(--gold-light); }
.info-title { padding: 28px 34px; }
.info-title .eyebrow { text-transform: uppercase; margin: 0 0 6px; font: 700 .7rem var(--font-body); letter-spacing: .2em; color: var(--text-dim); }
.page-card .info-title h1 { margin: 0 0 8px; text-align: left; font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.05; }
.info-sub { margin: 0; color: var(--text-dim); }
.info-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding: 28px 8px 28px 0; }
.info-status { display: inline-flex; align-items: center; gap: 8px; font: 700 .72rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.info-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.info-status.is-on { color: #5fd08a; } .info-status.is-off { color: #e0705f; }
.info-chips { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.info-chips li { padding: 4px 10px; border: 1px solid var(--line-strong); font: 700 .66rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.info-toc { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); }
.page-card .info-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px; border-right: 1px solid var(--line); color: var(--text-dim); font: 700 .74rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .2s, background .2s; }
.page-card .info-toc a:hover { color: var(--gold-light); background: rgba(64, 217, 209, .07); }
.info-toc em { font-style: normal; font-size: .66rem; color: var(--text-dim); opacity: .7; }
.info-toc svg { color: var(--gold); }
.info-intro { max-width: 76ch; margin: 0 auto; text-align: center; color: var(--text-dim); }
@media (max-width: 900px) {
	.info-top { grid-template-columns: 1fr; }
	.info-server { padding: 22px 16px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
	.info-title { padding: 20px 16px; }
	.info-meta { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 16px 20px; }
	.page-card .info-toc a { padding: 12px 14px; flex: 1 1 auto; }
}
.info-sec { margin-top: 44px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.info-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.info-num { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; font: 600 .95rem var(--font-title); color: var(--gold-light); background: var(--bg); }
.info-sec-head h2 { margin: 0; font-size: 1.35rem; }
.info-sec-head p { margin: 2px 0 0; color: var(--text-dim); font-size: .9rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.info-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, transform .2s; }
.info-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.info-card h3 { margin: 0 0 6px; font: 600 .82rem var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.info-card p { margin: 0; color: var(--text); font-size: .93rem; }
.info-card-wide { grid-column: 1 / -1; }
.info-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.info-rate { display: flex; flex-direction: column; align-items: center; padding: 22px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 0%, rgba(64, 217, 209, .14), transparent 70%), var(--bg); }
.info-rate strong { font: 700 2rem/1.1 var(--font-title); color: var(--gold-light); }
.info-rate span { margin-top: 6px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } .info-num { width: 40px; height: 40px; } }

.info-card { display: flex; align-items: flex-start; gap: 14px; }
.info-card > div { min-width: 0; flex: 1; }
.info-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg-soft); color: var(--gold); }
.info-card:hover .info-ico { color: var(--gold-light); border-color: var(--gold); }
.info-card h3 { font-size: .86rem; }

/* Registration / beta panel */
.reg-panel { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; isolation: isolate; background: linear-gradient(90deg, rgba(6, 13, 24, .82) 0%, rgba(6, 13, 24, .5) 55%, rgba(6, 13, 24, .25) 100%), url('../imgs/bg-city.webp') center / cover no-repeat, var(--bg-raised); }
.reg-copy .eyebrow { margin: 0 0 8px; }
.reg-copy h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.reg-text { margin: 0 0 24px; max-width: 46ch; color: var(--text-dim); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reg-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reg-facts li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(6, 13, 24, .72); backdrop-filter: blur(4px); }
.reg-fact-name { font: 600 .82rem var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.reg-facts strong { font: 700 1.05rem var(--font-title); color: var(--gold-light); text-align: right; }
.reg-facts .reg-days { border-color: var(--line-strong); background: linear-gradient(90deg, rgba(64, 217, 209, .18), rgba(64, 217, 209, .04)); }
.reg-facts .reg-days strong { font-size: 1.5rem; }
@media (max-width: 800px) { .reg-panel { grid-template-columns: 1fr; } .reg-actions .btn { flex: 1 1 100%; } }

.eyebrow { margin: 0 0 8px; font: 700 .74rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Download page */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dl-card { min-width: 0; }
.dl-card { padding: 22px; border: 1px solid var(--line-strong); border-radius: 8px; background: radial-gradient(ellipse at 50% 0%, rgba(64, 217, 209, .12), transparent 70%), var(--bg); }
.dl-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dl-card-head h2 { margin: 0; font-size: 1.2rem; }
.dl-card-head p { margin: 2px 0 0; color: var(--text-dim); font-size: .88rem; }
.dl-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dl-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); }
.dl-name { font: 600 .9rem var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.dl-name small { margin-left: 6px; font: 400 .78rem var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.dl-list .btn { padding: 9px 20px; font-size: .78rem; }
.dl-soon { font: 700 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.dl-list li.is-off .dl-name { opacity: .6; }
.dl-video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #000; }
.dl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .page-card .dl-list .btn { flex: none; } }
.dl-list, .dl-list li { min-width: 0; }
.dl-list li { flex-wrap: wrap; }
.dl-name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { .dl-card { padding: 16px; } .dl-name { letter-spacing: .04em; } .dl-list .btn { padding: 9px 14px; } }

/* Inner page backdrops */
.page-shell::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 0; height: min(100%, clamp(520px, 62vw, 1000px)); background: var(--bg) center top / cover no-repeat; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.page-shell.bg-castle::before { background-image: url('../imgs/bg-castle.webp'); }
.page-shell.bg-hall::before { background-image: url('../imgs/bg-hall.webp'); }
.page-shell.bg-city::before { background-image: url('../imgs/bg-city.webp'); }
.page-shell > .page-card { position: relative; z-index: 1; }

/* Home section backdrops */
#about, #features, #rankings, #news, #gallery, #start, #donate, #discord, #community { isolation: isolate; overflow: hidden; }
#about::before, #features::before, #rankings::before, #news::before, #gallery::before, #start::before, #donate::before, #discord::before, #community::before { content: ""; position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); }
#about::before, #news::before, #donate::before, #discord::before { background-image: url('../imgs/bg-castle.webp'); }
#features::before, #gallery::before, #community::before { background-image: url('../imgs/bg-hall.webp'); }
#rankings::before, #start::before { background-image: url('../imgs/bg-city.webp'); }

/* Roadmap */
#roadmap { isolation: isolate; overflow: hidden; }
#roadmap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('../imgs/bg-hall.webp') center / cover no-repeat; opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); }
.roadmap { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 0; padding: 38px 0 0; list-style: none; counter-reset: rm; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line) 60%, var(--line)); }
.rm-phase { position: relative; }
.rm-dot { position: absolute; top: -38px; left: 0; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.is-live .rm-dot, .is-next .rm-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 14px rgba(64, 217, 209, .6); }
.is-next .rm-dot { background: var(--bg); animation: rm-pulse 2s ease-in-out infinite; }
@keyframes rm-pulse { 50% { box-shadow: 0 0 22px rgba(64, 217, 209, .9); } }
.rm-card { height: 100%; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(6, 13, 24, .78); backdrop-filter: blur(4px); }
.is-next .rm-card, .is-live .rm-card { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(64, 217, 209, .12), rgba(6, 13, 24, .8) 60%); }
.rm-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 700 .64rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.is-live .rm-tag, .is-next .rm-tag { color: var(--gold-light); border-color: var(--gold); }
.rm-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.rm-date { margin: 0 0 14px; font-size: .85rem; color: var(--gold-light); }
.rm-card ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.rm-date + ul { margin-top: 0; }
.rm-card li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text); }
.rm-card li svg { flex: none; margin-top: 3px; color: var(--text-dim); }
.is-live .rm-card li svg { color: var(--ok); }
.is-locked .rm-card li { color: var(--text-dim); }
@media (max-width: 700px) {
	.roadmap { grid-template-columns: 1fr; padding: 0 0 0 34px; gap: 16px; }
	.roadmap::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--line) 40%); }
	.rm-dot { top: 22px; left: -34px; }
}

/* Custom cursors (Lineage II item icons) */
html, body { cursor: url('../imgs/cursors/cursor-default.png') 7 5, auto; }
a, button, .btn, .lang-switch a, input[type="submit"], select, summary, label, [onclick] { cursor: url('../imgs/cursors/cursor-hover.png') 6 2, pointer; }
a:active, button:active, .btn:active, summary:active { cursor: url('../imgs/cursors/cursor-click.png') 6 1, pointer; }
.btn.btn-primary:hover, a.default.dbig:hover { cursor: url('../imgs/cursors/cursor-magic.png') 12 1, pointer; }
.btn.btn-primary:active, a.default.dbig:active { cursor: url('../imgs/cursors/cursor-click.png') 6 1, pointer; }
input[type="text"], input[type="password"], input[type="email"], textarea { cursor: text; }

/* Discord widget */
.discord-box { display: flex; justify-content: center; }
.discord-box iframe { max-width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #2b2d31; }
.discord-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: min(350px, 100%); height: 220px; border: 1px solid var(--line-strong); border-radius: 8px; background: linear-gradient(180deg, rgba(88, 101, 242, .22), rgba(6, 13, 24, .85)); color: #aab4ff; }
.discord-card strong { font: 700 1.3rem var(--font-title); letter-spacing: .08em; color: var(--text); }


/* Register page (split layout) */
.reg-shell { padding: calc(var(--nav-h) + 24px) 0 64px; min-height: 100vh; }
.reg-shell::before { height: 100%; mask-image: none; -webkit-mask-image: none; opacity: 1; }
.reg-shell::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(11,9,7,0) 0%, rgba(11,9,7,.1) 55%, rgba(11,9,7,.45) 100%); pointer-events: none; }
.reg-stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(24px, 5vw, 80px); align-items: center; width: min(1240px, 100% - 40px); margin-inline: auto; }
.reg-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; }
.reg-char { position: absolute; left: 50%; bottom: 0; height: min(620px, 90%); width: auto; transform: translateX(-35%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); pointer-events: none; }
.reg-hero-text { position: relative; z-index: 2; max-width: 440px; padding-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.reg-hero-text .eyebrow { margin: 0 0 8px; }
.reg-hero-text h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; text-transform: uppercase; }
.reg-hero-text p:last-child { color: var(--text); margin: 0; }
.reg-card { padding: clamp(24px, 3.5vw, 40px); background: rgba(17, 14, 11, .84); border: 1px solid var(--line); border-left: 3px solid var(--gold); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.reg-card h1 { margin: 0 0 18px; text-align: left; font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: .1em; }
.reg-card .pddInner { overflow: visible; }
.reg-card .formpadrao { max-width: none; margin: 0 0 16px; }
.reg-card .formpadrao > div { display: block; }
.reg-card .formpadrao .desc { margin: 0 0 6px; text-align: left; font: 600 .68rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.reg-card .formpadrao .camp { position: relative; min-width: 0; }
.reg-card input[type="text"], .reg-card input[type="password"], .reg-card select { background: rgba(255,255,255,.04); }
.reg-card .rmsg { margin: 0 0 14px; padding: 10px 12px; font-size: .86rem; }
.reg-card input[type="submit"].default { display: block; width: 100%; margin: 22px 0 8px !important; }
.reg-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--text-dim); }
.reg-eye:hover { color: var(--gold-light); }

/* Clan campaign */
.clan-campaign { width: min(1180px, 100%); margin: 0 auto; }
.cc-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: clamp(28px, 6vw, 80px); align-items: center; min-height: 470px; padding: clamp(36px, 6vw, 76px); overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(90deg, rgba(11,9,7,.94), rgba(11,9,7,.67)), url('../imgs/bg-castle.webp') center/cover no-repeat; box-shadow: var(--shadow); }
.cc-copy { position: relative; z-index: 1; }
.cc-copy h1 { max-width: 760px; margin: 6px 0 18px; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; text-transform: uppercase; }
.cc-intro { max-width: 720px; color: var(--text-dim); font-size: 1.04rem; line-height: 1.75; }
.cc-count { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px; border-left: 2px solid var(--gold); background: rgba(0,0,0,.34); }
.cc-count strong { font: 700 2rem var(--font-title); color: var(--gold-light); }
.cc-count span { max-width: 90px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.cc-rewards { position: relative; z-index: 1; padding: 28px; border: 1px solid var(--line-strong); background: rgba(13,10,7,.84); backdrop-filter: blur(8px); }
.cc-rewards > span { font: 700 .72rem var(--font-title); letter-spacing: .18em; color: var(--gold); }
.cc-rewards ul { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.cc-rewards li { padding: 13px 14px 13px 40px; position: relative; border: 1px solid var(--line); background: rgba(201,163,90,.06); font-weight: 700; color: var(--gold-light); }
.cc-rewards li::before { content: "\2726"; position: absolute; left: 15px; color: var(--gold); }
.cc-rewards small { display: block; color: var(--text-dim); line-height: 1.55; }
.cc-register { display: grid; gap: 22px; margin: 26px 0 52px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--bg-raised); }
.cc-register h2, .cc-section-title h2, .cc-clan-card h2 { margin: 0 0 6px; }
.cc-register p { margin: 0; color: var(--text-dim); }
.cc-clan-card, .cc-success { display: flex; align-items: center; gap: 18px; }
.cc-crest, .cc-success > span { display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; border: 1px solid var(--gold); background: rgba(201,163,90,.1); font: 700 1.7rem var(--font-title); color: var(--gold-light); }
.cc-form { display: grid; gap: 12px; }
.cc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.cc-fields label { display: grid; gap: 7px; }
.cc-fields label > span { font: 600 .68rem var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim); }
.cc-fields input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.cc-fields input:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.cc-form label { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); }
.cc-form input[type="checkbox"] { margin-top: 3px; accent-color: var(--gold); }
.cc-form input[type="submit"] { margin: 10px 0 0 !important; justify-self: start; min-width: 230px; }
.cc-section-title { margin-bottom: 22px; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cc-entry { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); background: rgba(20,17,13,.82); }
.cc-entry > b { font: 700 1.5rem var(--font-title); color: rgba(201,163,90,.42); }
.cc-entry h3 { margin: 0 0 4px; color: var(--gold-light); }
.cc-entry p { margin: 0; font-size: .82rem; color: var(--text-dim); }
.cc-entry > span { font-size: .58rem; letter-spacing: .13em; color: var(--ok); }
.cc-empty { padding: 38px; text-align: center; border: 1px dashed var(--line-strong); color: var(--text-dim); }
@media (max-width: 780px) { .cc-hero { grid-template-columns: 1fr; padding: 32px 22px; } .cc-grid, .cc-fields { grid-template-columns: 1fr; } .cc-entry { grid-template-columns: auto 1fr; } .cc-entry > span { grid-column: 2; } }
.reg-card input[name="pass"] { padding-right: 46px; }
.reg-rules { margin: 0 0 14px; }
.reg-rules summary { display: inline-block; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.reg-rules summary::-webkit-details-marker { display: none; }
.reg-rules .rulesbox { margin: 12px 0 0; max-height: 280px; }
.reg-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 14px; font-size: .88rem; }
.reg-links a { color: var(--gold-light); text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
@media (max-width: 900px) {
	.reg-stage { grid-template-columns: minmax(0, 1fr); }
	.reg-hero { min-height: 0; order: 2; display: none; }
	.reg-shell::after { background: rgba(11,9,7,.55); }
}


/* Gifts */
.gift-box { padding: clamp(14px, 2vw, 22px); background: rgba(20,17,13,.82); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.gift-reel { position: relative; overflow: hidden; height: 190px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 14px; }
.gift-reel::before, .gift-reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none; }
.gift-reel::before { left: 0; background: linear-gradient(90deg, #060d18, transparent); }
.gift-reel::after { right: 0; background: linear-gradient(270deg, #060d18, transparent); }
.gift-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 22px; padding: 0 11px; will-change: transform; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.gift-track.no-anim { transition: none; }
.gift-item { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .72rem; color: var(--text-dim); opacity: .55; transform: scale(.9); transition: opacity .5s, transform .5s; }
.gift-item .gift-name { min-height: 2.6em; line-height: 1.3; }
.gift-item.is-center { opacity: 1; transform: scale(1.08); color: var(--text); }
.gift-item.is-center .gift-ico { border-color: var(--gold); box-shadow: 0 0 22px rgba(201,163,90,.45); }
.gift-ico { position: relative; display: grid; place-items: center; width: 84px; height: 84px; color: var(--gold-light); background: linear-gradient(160deg, #22190f, #0e0b08); border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .4s, box-shadow .4s; }
.gift-ico b { position: absolute; top: -7px; right: -7px; padding: 1px 7px; font: 800 .72rem var(--font-body); color: var(--gold-light); background: #060d18; border: 1px solid var(--gold); border-radius: 6px; }
.gift-ico-sm { flex: none; width: 52px; height: 52px; }
.gift-ico-sm svg { width: 26px; height: 26px; }
.gift-reel .marker { display: none; }
.gift-reel > i { position: absolute; top: 0; bottom: 0; left: 50%; width: 140px; margin-left: -70px; z-index: 1; border-left: 1px solid rgba(201,163,90,.55); border-right: 1px solid rgba(201,163,90,.55); background: linear-gradient(180deg, rgba(201,163,90,.12), transparent 40%, rgba(201,163,90,.12)); pointer-events: none; }
.gift-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.gift-prizes li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; }
.gift-prizes strong { display: block; font-size: .92rem; }
.gift-prizes small { color: var(--text-dim); }
.gift-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 16px; padding: 20px clamp(16px, 3vw, 30px); background: rgba(20,17,13,.82); border: 1px solid var(--line); border-radius: 18px; }
.gift-date small { display: block; font: 700 .68rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.gift-date strong { display: block; margin-top: 4px; font: 700 clamp(1.3rem, 3vw, 1.9rem) var(--font-title); }
.gift-date strong span { font: 500 .78rem var(--font-body); color: var(--text-dim); margin-left: 6px; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .gift-prizes { grid-template-columns: minmax(0, 1fr); } .gift-reel { height: 170px; } .gift-bar { flex-direction: column; align-items: stretch; text-align: center; } .gift-actions { justify-content: center; } }

.gift-ico img { width: 48px; height: 48px; object-fit: contain; image-rendering: auto; }
.gift-ico-sm img { width: 34px; height: 34px; }


/* Lucky spin (donations page) */
.lucky-shell { padding: calc(var(--nav-h) + 24px) 0 80px; min-height: 100vh; }
.lucky-shell::before { height: 100%; mask-image: none; -webkit-mask-image: none; opacity: .75; }
.lucky-shell::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 30%, rgba(11,9,7,.2), rgba(11,9,7,.85) 75%); pointer-events: none; }
.lucky { position: relative; z-index: 1; width: min(860px, 100% - 32px); margin-inline: auto; text-align: center; }
.lucky-head { position: relative; padding-top: 6px; }
.lucky-char { display: block; width: clamp(130px, 22vw, 190px); height: auto; margin: 0 auto -18px; position: relative; z-index: 1; filter: drop-shadow(0 12px 28px rgba(0,0,0,.7)); }
.lucky-head .eyebrow { position: relative; z-index: 2; }
.lucky-head h1 { position: relative; z-index: 2; margin: 0 0 8px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1; text-transform: uppercase; background: linear-gradient(180deg, #f6e7bd, #40d9d1 60%, #8a6a30); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 10px rgba(0,0,0,.7)); }
.lucky-sub { position: relative; z-index: 2; margin: 0 0 26px; color: var(--text); }
.lucky-box { padding: 18px; background: rgba(15,12,9,.88); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.lucky-reel { position: relative; overflow: hidden; height: 148px; }
.lucky-reel::before, .lucky-reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none; }
.lucky-reel::before { left: 0; background: linear-gradient(90deg, #0f0c09, transparent); }
.lucky-reel::after { right: 0; background: linear-gradient(270deg, #0f0c09, transparent); }
.lucky-pointer { position: absolute; z-index: 3; top: 0; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--gold-light); }
.lucky-track { position: absolute; left: 0; top: 14px; display: flex; gap: 14px; will-change: transform; }
.lucky-item { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .68rem; font-weight: 600; color: var(--text-dim); text-align: center; }
.lucky-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.lucky-ico { display: grid; place-items: center; width: 78px; height: 78px; color: var(--gold-light); background: linear-gradient(160deg, #22190f, #0e0b08); border: 1px solid var(--line-strong); border-radius: 10px; }
.lucky-ico img { width: 56px; height: 56px; object-fit: contain; }
.lucky-ico svg { width: 34px; height: 34px; }
.lucky-ico-big { width: 96px; height: 96px; margin: 0 auto 12px; box-shadow: 0 0 28px rgba(201,163,90,.4); border-color: var(--gold); }
.lucky-ico-big img { width: 72px; height: 72px; } .lucky-ico-big svg { width: 46px; height: 46px; }
.lucky-item.is-win .lucky-ico { border-color: var(--gold); box-shadow: 0 0 24px rgba(201,163,90,.6); }
.lucky-item.is-win { color: var(--gold-light); }
.lucky-result { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lucky-result[hidden] { display: none; }
.lucky-prize { font: 700 1.3rem var(--font-title); color: var(--gold-light); }
.lucky-congrats { font: 800 .9rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8ee06b; }
.lucky-hint { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.lucky-go { margin-top: 26px; min-width: 260px; font-size: 1rem; }
.lucky-go[hidden], .lucky-reopen[hidden], [hidden].btn { display: none; }
.lucky-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.78); }
.lucky-modal[hidden] { display: none; }
.lucky-dialog { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 26px 26px; text-align: center; background: #0f0c09; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.lucky-dialog h2 { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.lucky-ok { margin: 6px 0; font: 800 .9rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #8ee06b; }
.lucky-dim { margin: 6px 0; font-size: .86rem; color: var(--text-dim); }
.lucky-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; color: var(--text-dim); background: none; border: 1px solid var(--line-strong); border-radius: 50%; }
.lucky-x:hover { color: var(--gold-light); border-color: var(--gold); }
#lucky-form { margin-top: 14px; text-align: left; }
#lucky-form input[type="text"], #lucky-form input[type="tel"], #lucky-form select { margin: 0 0 10px; color: var(--text); background: rgba(255,255,255,.04); }
.lucky-phone { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.lucky-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.lucky-terms { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: .76rem; color: var(--text-dim); cursor: pointer; }
.lucky-terms input { flex: none; margin-top: 2px; }
.lucky-error { margin: 0 0 10px; color: #ff8a7a; font-size: .84rem; } .lucky-error[hidden] { display: none; }
.lucky-submit { width: 100%; }
.lucky-done { margin: 18px 0 4px; font-weight: 600; color: var(--gold-light); } .lucky-done[hidden] { display: none; }
body.lucky-lock { overflow: hidden; }
.lucky-confetti { position: fixed; inset: 0; z-index: 2050; pointer-events: none; overflow: hidden; }
.lucky-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; opacity: .9; animation: lucky-fall linear forwards; }
@keyframes lucky-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .lucky-confetti { display: none; } }
@media (max-width: 520px) { .lucky-phone { grid-template-columns: 104px minmax(0, 1fr); } .lucky-go { width: 100%; min-width: 0; } }

.lucky-home { padding-top: clamp(40px, 6vw, 80px); background: radial-gradient(ellipse at 50% 20%, rgba(201,163,90,.08), transparent 65%); }
.lucky-home .lucky-head h2 { margin: 0 0 8px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1; text-transform: uppercase; background: linear-gradient(180deg, #f6e7bd, #40d9d1 60%, #8a6a30); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 10px rgba(0,0,0,.7)); position: relative; z-index: 2; }

/* Lucky: character on the left (desktop) */
@media (min-width: 1100px) {
	.lucky { width: min(1100px, 100% - 32px); display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 20px; align-items: end; text-align: center; }
	.lucky-char { grid-column: 1; grid-row: 1 / span 5; align-self: end; width: 250px; margin: 0; }
	.lucky-head { display: contents; }
	.lucky-head .eyebrow, .lucky-head h1, .lucky-head h2, .lucky-sub { grid-column: 2; }
	.lucky-box, .lucky-go { grid-column: 2; }
	.lucky-go { justify-self: center; }
}

/* Lucky: 32x32 pixel icons, crisp */
.lucky-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.lucky-ico-big img { width: 64px; height: 64px; }

.gift-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.gift-ico-sm img { width: 32px; height: 32px; }

@media (min-width: 1100px) {
	.lucky { position: relative; }
	.lucky-char { position: absolute; left: 0; bottom: 0; width: 250px; height: calc(100% + 40px); max-height: 640px; margin: 0; object-fit: contain; object-position: left bottom; }
}
@media (min-width: 1100px) { .lucky-char { height: calc(100% + 10px); } }
@media (max-width: 1099px) { .lucky-char { width: auto; height: 300px; max-width: 100%; } }

/* Info page: single row of index tabs, spread across the full width */
@media (min-width: 901px) {
	.page-card .info-toc { flex-wrap: nowrap; }
	.page-card .info-toc a { flex: 1 1 auto; justify-content: center; }
	.page-card .info-toc a:last-child { border-right: 0; }
}

/* Streamers (home) */
.streamers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.streamer { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg-soft), var(--bg-raised)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.streamer:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.streamer-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.streamer-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.streamer-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text); font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: radial-gradient(ellipse 70% 70% at 30% 30%, rgba(37, 244, 238, .18), transparent 70%), radial-gradient(ellipse 70% 70% at 70% 70%, rgba(254, 44, 85, .2), transparent 70%), #0d0c0b; }
.streamer-poster:hover { color: var(--gold-light); }
.streamer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 20px; }
.streamer-body h3 { margin: 0; font-size: 1.1rem; }
.streamer-badge { padding: 3px 8px; border-radius: 2px; font: 700 .66rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.streamer-twitch .streamer-badge { background: #9146ff; }
.streamer-kick .streamer-badge { background: #53fc18; color: #060d18; }
.streamer-tiktok .streamer-badge { background: #fe2c55; }
.streamers-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 560px; margin-inline: auto; padding: 36px 28px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.streamers-empty p { margin: 0; color: var(--text-dim); }

/* Discord popup */
.dpop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.dpop[hidden] { display: none; }
.dpop-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .78); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.dpop-box { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 12px; width: min(860px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 34px 36px 28px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(ellipse 55% 70% at 22% 50%, rgba(88, 101, 242, .28), transparent 70%), radial-gradient(ellipse 60% 60% at 90% 0%, rgba(64, 217, 209, .14), transparent 70%), linear-gradient(180deg, var(--bg-soft), var(--bg-raised)); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(88, 101, 242, .15); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s, transform .3s var(--ease); }
.dpop.is-open .dpop-backdrop, .dpop.is-open .dpop-box { opacity: 1; }
.dpop.is-open .dpop-box { transform: none; }
.dpop-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(6, 13, 24, .6); color: var(--gold-light); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.dpop-x:hover { border-color: var(--gold); background: rgba(64, 217, 209, .12); }
.dpop-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: dpop-float 4s ease-in-out infinite alternate; }
@keyframes dpop-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.dpop-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dpop-badge { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(64, 217, 209, .1); color: var(--gold-light); font: 700 .7rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.dpop-body h2 { margin: 0; font: 700 clamp(1.4rem, 3vw, 2rem)/1.15 var(--font-title); color: var(--text); }
.dpop-text { margin: 0; color: var(--text-dim); font-size: .95rem; }
.dpop-timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(6, 13, 24, .55); }
.dpop-timer span { font: 700 .68rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.dpop-timer b { font: 700 1.9rem/1 var(--font-title); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.dpop-cta { width: 100%; justify-content: center; text-align: center; }
.dpop-note { margin: 0; font-size: .74rem; color: var(--text-dim); opacity: .85; }
@media (max-width: 700px) {
	.dpop-box { grid-template-columns: 1fr; gap: 4px; padding: 22px 20px 20px; }
	.dpop-art { width: 52%; margin: 0 auto -6px; }
	.dpop-body { align-items: center; text-align: center; }
	.dpop-timer b { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .dpop-art img { animation: none; } .dpop-box, .dpop-backdrop { transition: none; } }

/* Streamers: compact, 4 per row on desktop */
.streamers-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 980px; margin-inline: auto; }
.streamer-media { aspect-ratio: 4 / 3; }
.streamer-poster { gap: 8px; font-size: .66rem; }
.streamer-poster svg { width: 32px; height: 32px; }
.streamer-body { gap: 4px; padding: 12px 14px 14px; }
.streamer-body h3 { font-size: .95rem; }
.streamer-body .card-link { font-size: .66rem; }
@media (max-width: 900px) { .streamers-grid { grid-template-columns: repeat(2, 1fr); } }

/* Streamers: "want to be here?" card */
.streamer-join { justify-content: center; align-items: center; gap: 10px; padding: 22px 18px; text-align: center; border-style: dashed; border-color: var(--line-strong); background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(64, 217, 209, .16), transparent 70%), linear-gradient(180deg, var(--bg-soft), var(--bg-raised)); }
.streamer-join-ico { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); box-shadow: 0 0 20px rgba(64, 217, 209, .25); }
.streamer-join h3 { margin: 4px 0 0; font-size: 1.05rem; color: var(--gold-light); }
.streamer-join p { margin: 0 0 6px; font-size: .86rem; line-height: 1.5; color: var(--text-dim); }
.streamer-join .btn { min-height: 40px; padding: 0 18px; font-size: .74rem; }

/* Header account card (logged in): name + donate balance */
.nav-account > summary.hd-acc { gap: 12px; padding: 6px 14px 6px 6px; }
.hd-acc-ava { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--gold, #40d9d1); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(64, 217, 209, .25), rgba(6, 13, 24, .9)); color: var(--gold-light, #f1d69d); }
.hd-acc-name, .hd-acc-bal { display: flex; flex-direction: column; line-height: 1.15; }
.hd-acc-name small, .hd-acc-bal small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim, #a89c88); }
.nav-account > summary.hd-acc .hd-acc-name strong { font-size: .92rem; }
.hd-acc .hd-acc-bal { padding-left: 12px; border-left: 1px solid var(--line, rgba(64, 217, 209, .25)); text-decoration: none; text-align: right; }
.hd-acc-bal b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: .98rem; font-weight: 700; color: var(--gold-light, #f1d69d); }
.hd-acc-bal b svg { color: var(--gold, #40d9d1); }
.hd-acc .hd-acc-bal:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hd-acc-name { flex: 1; min-width: 0; text-align: left; }

/* ---- Inauguration bonus promo (private/promo_config.php + js/promo.js) ------- */
.pr-bar { position: fixed; inset: 0 0 auto 0; z-index: 101; height: 38px; display: flex; align-items: center; border-bottom: 1px solid rgba(64, 217, 209, .35); background: linear-gradient(90deg, #2a1a0c, #4a2f12 50%, #2a1a0c); color: var(--text); font-size: .84rem; }
.pr-bar[hidden] { display: none; }
.pr-bar > .pr-clock { display: none; }
.pr-bar-in { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; white-space: nowrap; }
.pr-bar-tag { padding: 2px 9px; border: 1px solid rgba(164, 248, 240, .5); border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.pr-bar strong { font-weight: 600; color: #fff1cf; overflow: hidden; text-overflow: ellipsis; }
.pr-bar-time { color: var(--text-dim); }
.pr-bar-time b { font-variant-numeric: tabular-nums; color: var(--gold-light); }
.pr-bar a.pr-bar-go { font-weight: 700; color: var(--gold-light); }
.pr-bar a.pr-bar-go:hover { color: #fff; }
.pr-bar-x { margin-left: 4px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pr-bar-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
html.has-pr-bar body { padding-top: 38px; }
html.has-pr-bar .site-header { top: 38px; }
html.pr-final .pr-bar { background: linear-gradient(90deg, #3a120c, #6b1f12 50%, #3a120c); animation: pr-pulse 1.6s ease-in-out infinite; }
@keyframes pr-pulse { 50% { filter: brightness(1.25); } }

.pr-eyebrow { margin: 0 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pr-clock { display: flex; gap: 8px; }
.pr-clock > span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: linear-gradient(180deg, #1f1810, #120e0a); }
.pr-clock b { font: 700 1.55rem/1 var(--font-title); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.pr-clock small { margin-top: 4px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.pr-clock-lg > span { min-width: 70px; padding: 10px 8px 8px; }
.pr-clock-lg b { font-size: 2rem; }
.pr-clock.is-final > span { border-color: rgba(224, 110, 80, .7); }
.pr-clock.is-final b { color: #ffb199; }
.pr-urgent { margin: 12px 0 0; padding: 8px 12px; border: 1px solid rgba(224, 168, 90, .5); border-radius: 8px; background: rgba(224, 168, 90, .1); color: #ffd28a; font-weight: 600; font-size: .9rem; }
.pr-urgent[hidden] { display: none !important; }
.pr-urgent.is-final { border-color: rgba(224, 110, 80, .7); background: rgba(224, 110, 80, .14); color: #ffb199; animation: pr-pulse 1.4s ease-in-out infinite; }

.pr-pop-box { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 10px; width: min(960px, 100%); padding: 34px 40px 34px 20px; }
.pr-pop-art { align-self: end; margin-bottom: -34px; text-align: center; }
.pr-pop-art img { display: inline-block; width: auto; height: auto; max-height: 470px; max-width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.pr-pop-body { text-align: center; }
.pr-pop-body h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: #fff1cf; text-transform: uppercase; letter-spacing: .03em; }
.pr-text { max-width: 520px; margin: 0 auto 18px; color: var(--text); opacity: .88; }
.pr-pop-clock { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.pr-pop-clock > small, .pr-strip-clock > small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.pr-pop-body .pr-urgent { display: block; width: fit-content; margin: 14px auto 0; }
.pr-tiers { margin: 18px auto 0; max-width: 520px; padding-top: 14px; border-top: 1px solid var(--line); }
.pr-tiers > small { display: block; margin-bottom: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.pr-tiers > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pr-tiers span { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(64, 217, 209, .08); font-size: .85rem; color: var(--text); }
.pr-tiers b { color: #fff1cf; }
.pr-tiers i { font-style: normal; font-weight: 700; color: var(--gold-light); }
.pr-pop-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.pr-later { padding: 4px 10px; border: 0; background: transparent; color: var(--text-dim); font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pr-later:hover { color: var(--text); }

.pr-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 22px 26px; border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(64, 217, 209, .2), transparent 70%), linear-gradient(90deg, #22190f, #140f0b); }
.pr-strip h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: #fff1cf; }
.pr-strip p { margin: 0; color: var(--text-dim); }
.pr-strip .pr-urgent { display: inline-block; margin-top: 10px; }
.pr-strip-clock { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }

@media (max-width: 860px) {
	.pr-bar-tag, .pr-bar-go { display: none; }
	.pr-bar-in { gap: 8px; font-size: .78rem; }
	.pr-pop-box { grid-template-columns: 1fr; padding: 40px 18px 26px; }
	.pr-pop-art { display: none; }
	.pr-strip { flex-direction: column; align-items: flex-start; }
	.pr-strip-clock { align-self: stretch; }
}
@media (max-width: 520px) {
	.pr-bar strong { max-width: 52vw; }
	.pr-bar-time { font-size: 0; }
	.pr-bar-time b { font-size: .78rem; }
	.pr-clock { gap: 6px; }
	.pr-clock > span, .pr-clock-lg > span { min-width: 0; flex: 1; }
	.pr-clock-lg b { font-size: 1.5rem; }
}

/* ---- Promo: attention layer ------------------------------------------------- */
@property --pr-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pr-live { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border: 1px solid rgba(255, 120, 90, .55); border-radius: 999px; background: rgba(170, 40, 20, .25); color: #ffcfbf; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pr-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 0 0 rgba(255, 90, 60, .7); animation: pr-dot 1.4s ease-out infinite; }
@keyframes pr-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); } }
.pr-bar .pr-live { padding: 1px 9px 1px 7px; font-size: .64rem; }

.pr-medal { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 14px auto 10px; }
.pr-medal-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--pr-ang), #7a5a24, #f6dc9a, #b88a3e, #fff1cf, #7a5a24); animation: pr-spin 4s linear infinite; filter: drop-shadow(0 0 18px rgba(230, 190, 110, .55)); }
.pr-medal-in { position: absolute; inset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #3a2a15, #120c06 75%); box-shadow: inset 0 0 0 1px rgba(255, 230, 170, .35), inset 0 -10px 24px rgba(0, 0, 0, .6); line-height: 1; }
.pr-medal-in small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pr-medal-in b { margin: 2px 0; font: 700 2.5rem/1 var(--font-title); color: #fff1cf; text-shadow: 0 0 18px rgba(255, 210, 120, .6); }
.pr-medal-in i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .3em; color: var(--gold-light); }
@keyframes pr-spin { to { --pr-ang: 360deg; } }

.pr-pop-box, .pr-strip { position: relative; isolation: isolate; }
.pr-pop-box::after, .pr-strip::after { content: ""; position: absolute; inset: -1px; z-index: -1; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--pr-ang), transparent 0 55%, rgba(246, 220, 154, .9) 70%, transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pr-spin 5s linear infinite; pointer-events: none; }
.pr-pop-box { box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(64, 217, 209, .18); }
.pr-pop-body .pr-live { margin-bottom: 2px; }

.pr-shine { position: relative; overflow: hidden; animation: pr-glow 2.4s ease-in-out infinite; }
.pr-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: pr-sweep 2.8s ease-in-out infinite; }
@keyframes pr-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes pr-glow { 50% { box-shadow: 0 0 0 4px rgba(164, 248, 240, .18), 0 0 26px rgba(230, 190, 110, .45); } }

.pr-tick { animation: pr-tick .45s ease-out; }
@keyframes pr-tick { 0% { transform: translateY(-4px); opacity: .4; } 100% { transform: none; opacity: 1; } }
.pr-clock b { display: inline-block; }

.pr-bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 150, .14) 50%, transparent 70%); background-size: 250% 100%; animation: pr-bar-sweep 4s linear infinite; pointer-events: none; }
@keyframes pr-bar-sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.pr-strip { gap: 22px; }
.pr-strip .pr-medal { flex: none; width: 104px; height: 104px; margin: 0; }
.pr-strip .pr-medal-in b { font-size: 1.9rem; }
.pr-strip-txt { flex: 1; min-width: 0; }
.pr-strip-txt .pr-live { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
	.pr-medal-ring, .pr-pop-box::after, .pr-strip::after, .pr-shine, .pr-shine::after, .pr-bar::before, .pr-live i, .pr-tick, .pr-urgent.is-final, html.pr-final .pr-bar { animation: none !important; }
}
@media (max-width: 860px) {
	.pr-strip { flex-direction: column; align-items: center; text-align: center; }
	.pr-strip-clock { align-self: center; }
	.pr-medal { width: 112px; height: 112px; }
	.pr-medal-in b { font-size: 2.1rem; }
}
