/* Artemis Online - hero, animacoes e componentes "premium" do template artemis. */

/* ---------- transicao suave entre paginas (View Transitions entre documentos; navegadores sem suporte so ignoram) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@keyframes at-pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.at-wrap { animation: at-pagein .45s ease both; }

/* ---------- HERO ---------- */
.at-hero { position: relative; height: clamp(520px, 82vh, 900px); overflow: hidden; isolation: isolate;
	background: #070b1a url('images/hero/poster.jpg') center / cover no-repeat; border-bottom: 2px solid var(--at-gold); }
.at-hero-scene { position: absolute; inset: 0; }
.at-hl { position: absolute; inset: -5% -4%; background-size: cover; background-position: center 38%; background-repeat: no-repeat; will-change: transform; }
.at-hl-mist { inset: auto -10% 6% -10%; height: 34%;
	background: radial-gradient(40% 60% at 25% 60%, rgba(140,160,220,.22), transparent 70%),
	            radial-gradient(35% 55% at 70% 55%, rgba(140,160,220,.18), transparent 70%);
	animation: at-mist 26s ease-in-out infinite alternate; filter: blur(6px); }
@keyframes at-mist { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.at-fireflies { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.at-hero-shade { position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 70% at 50% 45%, transparent 40%, rgba(5,8,20,.55) 100%), linear-gradient(180deg, rgba(5,8,20,.25), transparent 30%, transparent 65%, rgba(9,14,26,.95)); }
.at-hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; gap: 10px; }
.at-hero-logo { width: clamp(110px, 12vw, 180px); height: auto; animation: at-logo 4.5s ease-in-out infinite; }
@keyframes at-logo {
	0%, 100% { filter: drop-shadow(0 0 10px rgba(255,205,110,.35)) drop-shadow(0 0 2px rgba(255,230,160,.6)); transform: translateY(0); }
	50% { filter: drop-shadow(0 0 28px rgba(255,205,110,.75)) drop-shadow(0 0 6px rgba(255,236,170,.9)); transform: translateY(-4px); }
}
.at-hero-title { margin: 0; font: 800 clamp(34px, 5.2vw, 76px)/1 Cinzel, Georgia, serif; letter-spacing: .06em; text-transform: uppercase;
	color: #fbe3a0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.9)) drop-shadow(0 0 18px rgba(224,182,90,.35));
	background: linear-gradient(100deg, #f8dc92 20%, #fff6d8 45%, #f8dc92 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	background-size: 250% 100%; animation: at-shine 7s linear infinite; }
@keyframes at-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.at-hero-tag { margin: 0; font: 500 clamp(15px, 1.4vw, 21px) Inter, sans-serif; color: #e3e8f6; text-shadow: 0 2px 6px #000; }
.at-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.at-btn-xl { padding: 14px 30px; font-size: 15px; border-radius: 8px; }
.at-btn-gold.at-btn-xl { box-shadow: 0 6px 24px rgba(224,182,90,.45), inset 0 1px rgba(255,255,255,.6); animation: at-pulse 3.2s ease-in-out infinite; }
@keyframes at-pulse { 50% { box-shadow: 0 6px 34px rgba(255,205,110,.75), inset 0 1px rgba(255,255,255,.6); } }
.at-hero-stats { display: flex; gap: clamp(14px, 3vw, 40px); margin-top: 16px; padding: 10px 22px; border-radius: 12px;
	background: rgba(8,12,26,.55); border: 1px solid rgba(224,182,90,.45); backdrop-filter: blur(6px); }
.at-hero-stats div { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.at-hero-stats b { font: 800 clamp(22px, 2.4vw, 32px) Cinzel, Georgia, serif; color: #fbe3a0; font-variant-numeric: tabular-nums; }
.at-hero-stats span { font-size: 11px; color: #b9c3d6; text-transform: uppercase; letter-spacing: .12em; }
.at-hero-down { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(251,227,160,.7); border-radius: 14px; }
.at-hero-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fbe3a0; animation: at-wheel 1.8s ease-in-out infinite; }
@keyframes at-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Por que jogar + contagens ---------- */
.at-why { padding: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 40px) 6px; }
.at-why-in { max-width: var(--at-w); margin: 0 auto; }
.at-sec-title { margin: 0 0 18px; text-align: center; font: 800 clamp(22px, 2.4vw, 34px) Cinzel, Georgia, serif; letter-spacing: .05em; text-transform: uppercase; color: #fbe3a0; text-shadow: 0 2px 4px #000; }
.at-sec-title::after { content: ""; display: block; width: 120px; height: 2px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--at-gold), transparent); }
.at-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1800px) { .at-why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) { .at-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .at-why-grid { grid-template-columns: minmax(0, 1fr); } }
.at-feat { position: relative; overflow: hidden; display: block; padding: 18px 18px 16px; border-radius: 12px; text-decoration: none !important;
	background: linear-gradient(180deg, rgba(30,44,74,.92), rgba(14,21,38,.92)); border: 1px solid rgba(224,182,90,.45); color: #dfe5f3 !important;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.at-feat::before, .at-cd::before, .atut-card::before, .at-podium-i::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,214,120,.22), transparent 60%); }
.at-feat:hover, .at-feat:focus-visible { transform: translateY(-4px); border-color: var(--at-gold); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(224,182,90,.4); }
.at-feat:hover::before, .at-cd:hover::before, .atut-card:hover::before, .at-podium-i:hover::before { opacity: 1; }
.at-feat-ico { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 10px;
	background: radial-gradient(circle at 50% 35%, rgba(255,214,120,.35), rgba(224,182,90,.08)); border: 1px solid rgba(224,182,90,.5); }
.at-feat-ico img { image-rendering: pixelated; }
.at-feat h3 { margin: 0 0 6px; font: 700 16px Cinzel, Georgia, serif; color: #fbe3a0; letter-spacing: .03em; }
.at-feat p { margin: 0; font-size: 13px; line-height: 1.55; color: #c9d2e3; }
.at-cd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.at-cd { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 12px; background: var(--at-parch); border: 1px solid rgba(224,182,90,.7); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.at-cd-t { font: 700 13px Cinzel, Georgia, serif; text-transform: uppercase; letter-spacing: .06em; color: #3a2a10; }
.at-cd-clock { margin: 4px 0; font: 800 clamp(22px, 2.2vw, 30px) Cinzel, Georgia, serif; color: var(--at-navy); font-variant-numeric: tabular-nums; }
.at-cd-clock.soon { color: #b23a26; animation: at-blink 1s steps(2) infinite; }
@keyframes at-blink { 50% { opacity: .55; } }
.at-cd-s { font-size: 12px; color: var(--at-muted); }
.at-cd-ev[data-kind="boss"] { border-color: #b23a26; }

/* ---------- revelar ao rolar (so com JS; sem JS tudo aparece) ---------- */
.at-ready .at-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.at-ready .at-reveal.in { opacity: 1; transform: none; }

/* ---------- sprites animados do client ---------- */
.at-spr { --fw: 64px; --fh: 64px; --frames: 8; --row: 0; --scale: 2;
	width: calc(var(--fw) * var(--scale)); height: calc(var(--fh) * var(--scale));
	background-repeat: no-repeat; image-rendering: pixelated;
	background-size: calc(var(--fw) * var(--scale) * var(--frames)) auto;
	background-position-y: calc(var(--fh) * var(--scale) * var(--row) * -1);
	animation: at-walk calc(var(--frames) * 110ms) steps(var(--frames)) infinite; }
@keyframes at-walk { from { background-position-x: 0; } to { background-position-x: calc(var(--fw) * var(--scale) * var(--frames) * -1); } }
.at-w-boost-i .at-spr { --scale: 1; margin: 0 auto; }
.at-spr-btns { display: flex; gap: 6px; justify-content: center; margin: 6px 0 2px; }
.at-spr-btns button { width: 34px; height: 30px; border-radius: 6px; cursor: pointer; border: 1px solid var(--at-gold); background: rgba(0,0,0,.35); color: #fbe3a0; font: 700 15px Inter, sans-serif; }
.at-spr-btns button:hover { background: rgba(224,182,90,.25); }

/* ---------- podio do ranking ---------- */
.at-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; margin: 4px 0 18px; }
.at-podium-i { position: relative; overflow: hidden; text-align: center; padding: 12px 8px 0; border-radius: 12px 12px 6px 6px; text-decoration: none !important;
	background: linear-gradient(180deg, var(--at-navy-2), var(--at-navy)); border: 1px solid rgba(224,182,90,.6); color: #e6dcc4 !important; }
.at-podium-i .at-spr { margin: 0 auto; }
.at-podium-i b { display: block; font: 700 15px Cinzel, Georgia, serif; color: #fbe3a0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-podium-i small { display: block; color: #c9d2e3; font-size: 12px; }
.at-podium-base { margin: 8px -8px 0; padding: 8px 0; font: 800 24px Cinzel, Georgia, serif; color: #2b1d05; background: linear-gradient(180deg, #f6d987, #b8862a); }
.at-podium-i.p1 { padding-top: 18px; box-shadow: 0 0 30px rgba(255,205,110,.35); }
.at-podium-i.p1 .at-podium-base { padding: 16px 0; }
.at-podium-i.p2 .at-podium-base { background: linear-gradient(180deg, #e9eef6, #9aa7bd); }
.at-podium-i.p3 .at-podium-base { background: linear-gradient(180deg, #f0c39a, #a8673a); }
.at-podium-i .at-crown { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 20px; color: #ffd76a; text-shadow: 0 0 10px rgba(255,214,106,.8); }

/* ---------- mapa ---------- */
.at-map-wrap { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(224,182,90,.7); background: #000; }
#at-map { height: clamp(420px, 70vh, 820px); background: #000; }
.at-map-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.at-map-bar button { min-width: 38px; height: 34px; border-radius: 6px; cursor: pointer; border: 1px solid #8a6a1f; background: var(--at-field); font: 700 13px Inter, sans-serif; }
.at-map-bar button.on { background: var(--at-navy); color: #fbe3a0; }
.at-map-bar select { height: 34px; }
.leaflet-container { background: #000 !important; font-family: Inter, sans-serif; }
.leaflet-tile { image-rendering: pixelated; }

/* ---------- galeria ---------- */
.at-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.at-gal figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--at-line); background: var(--at-night-0); }
.at-gal img, .at-gal video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.at-gal figure:hover img { transform: scale(1.04); }
.at-gal figcaption { padding: 7px 10px; font-size: 12px; color: #dfe5f3; background: var(--at-navy); }
.at-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.88); padding: 20px; }
.at-lightbox.on { display: flex; }
.at-lightbox img { max-width: 96vw; max-height: 90vh; border: 2px solid var(--at-gold); border-radius: 8px; image-rendering: auto; }

/* ---------- acessibilidade / desempenho ---------- */
@media (max-width: 760px) {
	.at-hl-mist { animation: none; }
	.at-hero { height: clamp(460px, 78vh, 640px); }
	.at-hero-stats div { min-width: 70px; }
	.at-podium { grid-template-columns: 1fr; }
	.at-podium-i.p1 { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.at-spr { animation: none; }
	.at-hl { transform: none !important; }
}
.at-main .Content .BoxContent .at-map-bar button { background: var(--at-field); color: var(--at-ink); border: 1px solid #8a6a1f; padding: 0 8px; }
.at-main .Content .BoxContent .at-map-bar button.on { background: var(--at-navy); color: #fbe3a0; }

/* =====================================================================
   REFORMA VISUAL 18/11/2026 - home: abaixo do topo tudo em pergaminho
   com cabecalho azul; prova social; podio, galeria e "comece por aqui".
   Reverter: artemis-fx.css.bak_visual_20261118.
   ===================================================================== */
.at-hero { border-bottom-color: var(--at-gold); }
.at-hero-shade { background: radial-gradient(60% 70% at 50% 45%, transparent 40%, rgba(11,20,48,.5) 100%), linear-gradient(180deg, rgba(11,20,48,.25), transparent 30%, transparent 70%, rgba(11,20,48,.75)); }
.at-hero-stats { background: rgba(11,20,48,.6); border-color: rgba(224,182,90,.55); }
.at-hero-stats b.on { color: var(--at-online); text-shadow: 0 0 12px rgba(71,209,106,.55); }
.at-hero-stats b.txt { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.35; }
.at-sec-title { text-shadow: 0 2px 4px #000, 0 0 22px rgba(11,20,48,.9); }
.at-sec-title::after { width: 280px; max-width: 80%; height: 24px; margin-top: 8px; background: var(--at-divider) center / contain no-repeat; }

/* cartoes "Por que jogar": pergaminho + faixa azul */
.at-feat { padding: 0 0 14px; background: var(--at-paper); border: 1px solid rgba(224,182,90,.8); color: var(--at-ink) !important; box-shadow: 0 6px 22px rgba(5,10,30,.45); }
.at-feat-h { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-bottom: 10px;
	background: linear-gradient(180deg, var(--at-navy-2), var(--at-navy)); border-bottom: 2px solid var(--at-gold); }
.at-feat-h .at-feat-ico { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 10px; background: radial-gradient(circle at 50% 35%, rgba(245,213,138,.45), rgba(11,20,48,.35)); }
.at-feat-h h3 { margin: 0; font: 700 15px/1.25 Cinzel, Georgia, serif; color: var(--at-gold-2); text-shadow: 1px 1px 2px #000; }
.at-feat p { padding: 0 14px; color: var(--at-ink); }
.at-feat:hover, .at-feat:focus-visible { border-color: var(--at-moon); box-shadow: var(--at-moon-glow), 0 10px 30px rgba(0,0,0,.45); }
.at-feat::before, .at-cd::before { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(207,224,255,.28), transparent 60%); }

/* contagens: mesmo cartao */
.at-cd { padding: 0 16px 12px; background: var(--at-paper); border-color: rgba(224,182,90,.8); }
.at-cd-t { margin: 0 -16px 8px; padding: 8px 16px; background: linear-gradient(180deg, var(--at-navy-2), var(--at-navy)); border-bottom: 2px solid var(--at-gold); color: var(--at-gold-2); text-shadow: 1px 1px 2px #000; }
.at-cd-clock { color: var(--at-navy); }
.at-cd-ev[data-kind="boss"] { border-color: #b23a26; }

/* podio, galeria e passos (coluna principal da home) */
.at-podium-i:hover { box-shadow: var(--at-moon-glow); }
.at-podium-i .at-spr-static { display: block; margin: 0 auto; }
.at-home-lead { margin: 0 0 12px; color: var(--at-muted); }
.at-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.at-strip a { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--at-line); background: var(--at-night-0); text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.at-strip img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.at-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font: 600 11.5px/1.3 Inter, sans-serif; color: #f3f6ff; background: linear-gradient(180deg, transparent, rgba(11,20,48,.92)); }
.at-strip a:hover { box-shadow: var(--at-moon-glow); transform: translateY(-2px); }
.at-strip a:hover img { transform: scale(1.05); }
.at-gal figure:hover { box-shadow: var(--at-moon-glow); }
.at-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.at-step { position: relative; padding: 14px 14px 12px 54px; border-radius: 8px; background: rgba(255,255,255,.28); border: 1px solid var(--at-line); }
.at-step::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font: 800 15px Cinzel, Georgia, serif; color: var(--at-gold-2); background: linear-gradient(180deg, var(--at-navy-2), var(--at-navy)); border: 1px solid var(--at-gold); }
.at-step b { display: block; font: 700 14px Cinzel, Georgia, serif; color: #3a2a10; margin-bottom: 4px; }
.at-step p { margin: 0 0 8px; font-size: 12.5px; }
@media (max-width: 900px) { .at-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .at-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* alinhado com a grade de baixo (mesma largura util do .at-wrap) */
.at-why-in { max-width: calc(var(--at-w) - 2 * clamp(16px, 2vw, 40px)); }
@media (min-width: 1800px) { .at-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .at-podium-i .at-spr { --scale: 1.6 !important; } }
