/* ==========================================================================
   Ragnaloja — tela "em breve"
   Página independente (sem o CSS do Cardsmith): arte do hero em tela cheia,
   logo com brilho de gelo, título com textura congelada e faixa de runas.
   ========================================================================== */

:root {
	--ice: #5ec8ff;
	--frost: #eef4fa;
	--rule: rgba(201, 212, 225, .3);
	--night: #060d19;
	/* o PHP define --rg-caps, --rg-display e --rg-body com o par de fontes escolhido */
	--caps: var(--rg-caps, "Cinzel", Georgia, "Times New Roman", serif);
	--serif: var(--rg-display, "Cormorant Garamond", Georgia, "Times New Roman", serif);
	--runic: "Noto Sans Runic", "Segoe UI Historic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
html { font-synthesis: none; }

body.rg-em-breve {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	overflow-x: hidden;
	color: #dce5ef;
	font-family: var(--rg-body, "Inter", system-ui, sans-serif);
	background-color: var(--night);
	background-image:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(6, 13, 25, .45) 0%, rgba(6, 13, 25, .82) 62%, rgba(6, 13, 25, .97) 100%),
		linear-gradient(180deg, rgba(6, 13, 25, .5) 0%, rgba(6, 13, 25, .15) 38%, rgba(6, 13, 25, .92) 100%),
		var(--rg-bg, linear-gradient(#0b1627, #0b1627));
	background-size: cover;
	background-position: center, center, center 42%;
	background-repeat: no-repeat;
}

/* neve bem discreta caindo sobre a arte */
body.rg-em-breve::before {
	content: "";
	position: fixed;
	inset: -240px 0 0 0;
	z-index: 0;
	pointer-events: none;
	opacity: .5;
	background-image:
		radial-gradient(1.6px 1.6px at 24px 36px, rgba(255, 255, 255, .9), transparent 70%),
		radial-gradient(1.2px 1.2px at 140px 90px, rgba(255, 255, 255, .7), transparent 70%),
		radial-gradient(2px 2px at 200px 170px, rgba(220, 238, 255, .8), transparent 70%),
		radial-gradient(1px 1px at 80px 210px, rgba(255, 255, 255, .6), transparent 70%);
	background-size: 240px 240px;
	animation: rg-neve 26s linear infinite;
}
@keyframes rg-neve { to { transform: translateY(240px); } }
@media (prefers-reduced-motion: reduce) {
	body.rg-em-breve::before { animation: none; }
}

/* ---------------------------------------------------------------- topo */

.rg-eb-topbar {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 9px 56px;
	background: rgba(6, 13, 25, .72);
	border-bottom: 1px solid var(--rule);
	font-family: var(--caps);
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #a9b8c9;
}
.rg-eb-topbar span:nth-child(2) { text-align: center; }
.rg-eb-topbar span:last-child { text-align: right; }
.rg-eb-topbar::before,
.rg-eb-topbar::after,
.rg-eb-runes::before,
.rg-eb-runes::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	translate: 0 -50%;
	background: url("../img/orn-diamond@2x.webp") center / contain no-repeat;
	opacity: .8;
}
.rg-eb-topbar::before,
.rg-eb-runes::before { left: 18px; }
.rg-eb-topbar::after,
.rg-eb-runes::after { right: 18px; }

/* -------------------------------------------------------------- centro */

.rg-eb {
	position: relative;
	z-index: 1;
	flex: 1;
	display: grid;
	place-items: center;
	padding: 56px 24px 72px;
}
.rg-eb-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(780px, 100%);
	text-align: center;
}
.rg-eb-logo {
	width: min(440px, 78vw);
	height: auto;
	margin-bottom: 30px;
	filter: drop-shadow(0 0 28px rgba(94, 200, 255, .32)) drop-shadow(0 14px 30px rgba(0, 0, 0, .6));
}
.rg-eb-brand {
	margin: 0 0 24px;
	font-family: var(--caps);
	font-size: 54px;
	letter-spacing: .08em;
	color: var(--frost);
}
.rg-eb-kicker {
	margin: 0 0 16px;
	font-family: var(--caps);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #dde6f0;
}
/* título congelado: textura de gelo recortada nas letras */
.rg-eb-title {
	margin: 0;
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(46px, 6.4vw, 96px);
	line-height: .94;
	color: var(--frost);
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 48%, rgba(46, 78, 110, .38) 100%),
		url("../img/frost-texture.webp");
	background-size: 100% 100%, 360px 360px;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)) drop-shadow(0 8px 24px rgba(0, 0, 0, .6));
}
.rg-eb-title span { display: block; }
.rg-eb-divider {
	width: min(640px, 92%);
	height: auto;
	margin: 28px 0 24px;
}
/* texto corrido na fonte de leitura: a fonte de título fica só no título */
.rg-eb-text {
	max-width: 600px;
	margin: 0;
	font-family: var(--rg-body, "Inter", system-ui, sans-serif);
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.6;
	color: #dce5ef;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.rg-eb-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin-top: 32px;
}
.rg-eb-social a {
	padding-bottom: 4px;
	font-family: var(--caps);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--frost);
	text-decoration: none;
	border-bottom: 1px solid var(--ice);
}
.rg-eb-social a:hover { color: var(--ice); }

/* ---------------------------------------------------------- faixa de runas */

.rg-eb-runes {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
	min-height: 50px;
	padding: 0 56px;
	background: rgba(5, 10, 19, .9);
	border-top: 1px solid var(--rule);
}
.rg-eb-glyphs {
	font-family: var(--runic);
	font-size: 19px;
	letter-spacing: .95em;
	color: rgba(201, 212, 225, .55);
}
.rg-eb-glyphs:first-child { text-align: right; }
.rg-eb-tagline {
	font-family: var(--caps);
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-align: center;
	color: #dfe7f1;
}
.rg-eb-login {
	position: absolute;
	top: 50%;
	right: 52px;
	translate: 0 -50%;
	font-family: var(--caps);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7f91a8;
	text-decoration: none;
}
.rg-eb-login:hover { color: var(--ice); }

/* ------------------------------------------------------------- celular */

@media (max-width: 900px) {
	.rg-eb-login { display: none; }
}

@media (max-width: 760px) {
	body.rg-em-breve {
		background-image:
			linear-gradient(180deg, rgba(6, 13, 25, .55) 0%, rgba(6, 13, 25, .35) 40%, rgba(6, 13, 25, .95) 100%),
			var(--rg-bg-m, var(--rg-bg, linear-gradient(#0b1627, #0b1627)));
		background-size: cover;
		background-position: center, center top;
	}
	.rg-eb-topbar { grid-template-columns: 1fr; padding: 9px 44px; text-align: center; }
	.rg-eb-topbar span:first-child,
	.rg-eb-topbar span:last-child { display: none; }
	.rg-eb { padding: 40px 20px 56px; }
	.rg-eb-kicker { letter-spacing: .18em; }
	.rg-eb-runes { grid-template-columns: 1fr; padding: 0 44px; }
	.rg-eb-glyphs { display: none; }
	.rg-eb-tagline { letter-spacing: .16em; font-size: 12px; }
}
