/* Artemis Online - Tutoriais. Tudo escopado em .atut para nao vazar no template. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;600;700&display=swap');

.atut {
	--gold: #c9a34a;
	--gold-d: #8a6a1f;
	--navy: #1d2b44;
	--navy-2: #2c4268;
	--parch: #f3e7cc;
	--parch-2: #e9d8b0;
	--ink: #2b2418;
	--muted: #6b5c43;
	font-family: Inter, Verdana, Arial, sans-serif;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ink);
	text-align: left;
}
.atut *, .atut *::before, .atut *::after { box-sizing: border-box; }
.atut a { color: #8b1c1c; }
.atut h1, .atut h2, .atut h3, .atut h4 { font-family: Cinzel, Georgia, serif; margin: 0; }

/* ---------- hero ---------- */
.atut-hero {
	display: flex; align-items: center; gap: 16px;
	padding: 20px 22px; margin: 4px 0 14px;
	border-radius: 8px; border: 2px solid var(--gold);
	background:
		radial-gradient(circle at 85% 30%, rgba(201,163,74,.35), transparent 55%),
		linear-gradient(135deg, #142038 0%, #24385c 60%, #3a2f1c 100%);
	color: #f5ead2; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.atut-hero h1 { font-size: 24px; letter-spacing: .04em; text-transform: uppercase; text-shadow: 1px 2px 3px #000; color: #fbe8b8; }
.atut-hero p { margin: 6px 0 0; font-size: 13px; color: #e6dcc4; max-width: 480px; }
.atut-hero-txt { flex: 1; }
.atut-kicker { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.atut-hero-ico { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255,210,120,.55)); }
.atut-hero-ico.atut-emoji { font-size: 54px; display: inline-block; width: auto; height: auto; }

/* ---------- busca + chips ---------- */
.atut-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.atut-toolbar input {
	flex: 1 1 220px; padding: 8px 10px; border-radius: 6px; font: inherit;
	border: 1px solid #b59d6a; background: #fffaf0;
}
.atut-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.atut-chip {
	font: 600 11px Inter, Verdana, sans-serif; cursor: pointer;
	padding: 6px 11px; border-radius: 999px; border: 1px solid #b59d6a;
	background: #fff6e2; color: var(--ink);
}
.atut-chip.on, .atut-chip:hover { background: var(--navy); color: #fbe8b8; border-color: var(--navy); }

/* ---------- titulo de secao estilo "faixa" ---------- */
.atut-h2 {
	display: block; position: relative; margin: 18px 0 8px;
	padding: 7px 12px; border-radius: 5px 5px 0 0;
	background: linear-gradient(180deg, var(--navy-2), var(--navy));
	border-bottom: 2px solid var(--gold);
	font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
	color: #f3e2b5; text-shadow: 1px 1px 2px #000;
}
.atut-sec-desc { margin: -2px 0 10px; color: var(--muted); }

/* ---------- grid de cards ---------- */
.atut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.atut-card {
	--ac: var(--gold);
	position: relative; display: flex; flex-direction: column;
	padding: 12px; border-radius: 8px; text-decoration: none !important;
	background: linear-gradient(180deg, var(--parch), var(--parch-2));
	border: 1px solid #c2a978; border-top: 4px solid var(--ac);
	box-shadow: 0 2px 5px rgba(0,0,0,.18); color: var(--ink) !important;
	transition: transform .12s ease, box-shadow .12s ease;
}
.atut-card:hover { transform: translateY(-3px); box-shadow: 0 7px 16px rgba(0,0,0,.28); }
.atut-card h3 { font-size: 14px; color: #3a2a10; margin: 6px 0 4px; }
.atut-card p { margin: 0 0 10px; font-weight: 400; color: #4b3f2b; font-size: 11.5px; flex: 1; }
.atut-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.atut-ico { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.atut-ico.atut-emoji { font-size: 28px; line-height: 36px; width: auto; }
.atut-selo { font: 700 9px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; background: var(--ac); color: #fff; padding: 3px 6px; border-radius: 4px; }
.atut-card-go { font-size: 11px; color: #8b1c1c; font-weight: 700; }
.atut-vazio, .atut-alert { padding: 12px; background: #fff3d6; border: 1px dashed #b59d6a; border-radius: 6px; margin: 10px 0; }

/* ---------- pagina ---------- */
.atut-crumb { font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.atut-head {
	--ac: var(--gold);
	display: flex; gap: 14px; align-items: center;
	padding: 16px 18px; border-radius: 8px;
	background: linear-gradient(135deg, #142038, #26395d);
	border: 2px solid var(--ac); color: #efe3c6; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.atut-head h1 { font-size: 22px; color: #fbe8b8; text-shadow: 1px 2px 3px #000; letter-spacing: .03em; }
.atut-head p { margin: 4px 0 0; font-size: 13px; }
.atut-head-ico { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(255,210,120,.5)); flex: none; }
.atut-head-ico.atut-emoji { font-size: 48px; line-height: 64px; text-align: center; }
.atut-open { margin-top: 8px; font-size: 12px; background: rgba(0,0,0,.25); padding: 6px 9px; border-radius: 5px; display: inline-block; }
.atut-open span { color: var(--gold); font-weight: 700; }
.atut-open kbd, .atut-keys kbd { color: #2b2418; }

.atut-tldr { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid var(--gold); background: #fff6df; border-radius: 0 6px 6px 0; }
.atut-box { margin-top: 4px; }
.atut-txt { background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; padding: 10px 12px; border-radius: 0 0 6px 6px; }
.atut-txt p { margin: 0 0 8px; } .atut-txt p:last-child { margin: 0; }
.atut-txt ul { margin: 4px 0 4px 18px; padding: 0; }

.atut-steps { list-style: none; counter-reset: s; margin: 0; padding: 10px 12px; background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; border-radius: 0 0 6px 6px; }
.atut-steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #e0cfa6; }
.atut-steps li:last-child { border-bottom: none; }
.atut-steps li::before {
	content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font: 700 12px Cinzel, Georgia, serif; color: #fbe8b8;
	background: radial-gradient(circle at 35% 30%, #3a5684, var(--navy)); border: 2px solid var(--gold);
}

.atut-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding: 10px; background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; border-radius: 0 0 6px 6px; }
.atut-txt + .atut-mini-grid { border-top: 1px dashed #dcc79b; border-radius: 0 0 6px 6px; }
.atut-mini { background: #fffaf0; border: 1px solid #dcc79b; border-left: 3px solid var(--gold); border-radius: 6px; padding: 8px 10px; }
.atut-mini img { float: right; width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; margin-left: 6px; }
.atut-mini h4 { font-size: 12.5px; color: #3a2a10; margin-bottom: 3px; }
.atut-mini ul { margin: 3px 0 0 16px; padding: 0; }

.atut-tab { width: 100%; border-collapse: collapse; background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; }
.atut-tab th { background: #e2cf9f; text-align: left; padding: 5px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.atut-tab td { padding: 5px 8px; border-top: 1px solid #e8d9b4; vertical-align: top; }
.atut-tab tr:nth-child(even) td { background: #f6ecd3; }

.atut-keys { list-style: none; margin: 0; padding: 8px 12px; background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; border-radius: 0 0 6px 6px; }
.atut-keys li { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
.atut-keys li > span:last-child { color: #4b3f2b; }
.atut-keys li > kbd:first-child, .atut-keys li > code { flex: none; }
.atut kbd {
	display: inline-block; min-width: 22px; text-align: center;
	font: 700 11px Consolas, monospace; padding: 2px 6px; border-radius: 4px;
	background: linear-gradient(#fff, #e9e1cd); border: 1px solid #a8916a; border-bottom-width: 3px;
}
.atut-plus { margin: 0 2px; color: var(--muted); }
.atut code { font: 700 11.5px Consolas, monospace; background: #2a2418; color: #f3d98a; padding: 2px 7px; border-radius: 4px; }

.atut-gold {
	margin: 14px 0; padding: 12px 14px 12px 52px; position: relative;
	border-radius: 8px; border: 2px solid #d6ad45;
	background: linear-gradient(135deg, #fff4cf, #f6dd94); box-shadow: 0 2px 8px rgba(160,120,20,.25);
}
.atut-gold::before { content: "\2605"; position: absolute; left: 14px; top: 10px; font-size: 26px; color: #b8860b; text-shadow: 0 1px 0 #fff; }
.atut-gold-t { font: 700 13px Cinzel, Georgia, serif; text-transform: uppercase; letter-spacing: .06em; color: #7a5506; margin-bottom: 2px; }

.atut-faq { background: #fbf4e3; border: 1px solid #dcc79b; border-top: none; padding: 0 12px; }
.atut-faq:last-child { border-radius: 0 0 6px 6px; }
.atut-faq summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: #3a2a10; list-style: none; }
.atut-faq summary::before { content: "+"; display: inline-block; width: 16px; color: #8b1c1c; font-weight: 700; }
.atut-faq[open] summary::before { content: "\2212"; }
.atut-faq > div { padding: 0 0 10px 16px; }

.atut-warn { margin: 14px 0; padding: 10px 12px; border: 1px dashed #b24b2b; background: #fdebe3; border-radius: 6px; font-size: 11.5px; }
.atut-warn ul { margin: 4px 0 0 18px; padding: 0; }

.atut-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 18px 0 4px; }
.atut-nav-a { display: block; padding: 8px 12px; border-radius: 6px; border: 1px solid #c2a978; background: var(--parch); text-decoration: none !important; }
.atut-nav-a small { display: block; color: var(--muted); font-weight: 400; }
.atut-nav-r { text-align: right; }
.atut-nav-all { align-self: center; padding: 8px 14px; border-radius: 6px; background: var(--navy); color: #fbe8b8 !important; text-decoration: none !important; font-family: Cinzel, Georgia, serif; }

@media (max-width: 600px) {
	.atut-hero, .atut-head { flex-direction: column; text-align: center; }
	.atut-nav { grid-template-columns: 1fr; }
	.atut-nav-r { text-align: left; }
}

/* ---------- pagina Imbuements (imbuements_page.php) ---------- */
.atut .aimb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.atut .aimb-pad { padding-top: 8px; }
.atut .aimb-h3 { font-size: 13px; color: #3a2a10; margin: 14px 0 2px; padding-left: 8px; border-left: 3px solid var(--gold); }
.atut .aimb-sub { margin: 0 0 6px 11px; color: var(--muted); font-size: 11.5px; }
.atut .aimb-no { color: #8a7a5a; font-style: italic; }
.atut .aimb-t { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 4px; text-align: center; color: #fff; font-size: 11px; }
.atut .aimb-t1 { background: #5b7a99; } .atut .aimb-t2 { background: #7c5aa6; } .atut .aimb-t3 { background: #b8861b; }
.atut .aimb-mx th, .atut .aimb-mx td { text-align: center; white-space: nowrap; }
.atut .aimb-mx th:first-child, .atut .aimb-mx td:first-child { text-align: left; }
.atut .aimb-mx th small { font-weight: 400; text-transform: none; }
.atut .aimb-mx td small { display: block; color: var(--muted); font-size: 10px; }
.atut .aimb-x { color: #b9a77c; }
.atut .aimb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; padding: 6px 0; }
.atut .aimb-card { background: #fbf4e3; border: 1px solid #dcc79b; border-top: 3px solid var(--navy-2); border-radius: 6px; padding: 8px 10px; }
.atut .aimb-card-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-family: Cinzel, Georgia, serif; }
.atut .aimb-card-h span { font: 11px Inter, sans-serif; color: var(--muted); text-align: right; }
.atut .aimb-mat { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px dashed #dcc79b; }
.atut .aimb-mat img, .atut .aimb-noimg { flex: 0 0 34px; width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; background: #efe2c0; border: 1px solid #d3bd8a; border-radius: 4px; }
.atut .aimb-mat-b { min-width: 0; }
.atut .aimb-pill { display: inline-block; font-size: 10px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: #f3e2b5; white-space: nowrap; }
.atut .aimb-drop { font-size: 11.5px; color: #4a3d26; margin-top: 1px; }
.atut .aimb-drop small { color: var(--muted); }
.atut .aimb-gen { text-align: right; font-size: 10.5px; color: var(--muted); margin: 8px 2px; }
@media (max-width: 600px) { .atut .aimb-cards { grid-template-columns: 1fr; } }

/* ---------- painel "onde dropa" (imbuements) ---------- */
.atut .aimb-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.atut .aimb-open-img { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 4px; }
.atut .aimb-open-img img, .atut .aimb-open-img .aimb-noimg { display: block; }
.atut .aimb-open-nm b { border-bottom: 1px dotted var(--gold-d); }
.atut .aimb-ico { font-style: normal; color: var(--gold-d); margin-left: 4px; font-size: 12px; }
.atut .aimb-open:hover b, .atut .aimb-open:focus-visible b { color: #8b1c1c; }
.atut .aimb-open:hover img, .atut .aimb-open:focus-visible img { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.atut .aimb-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.atut .aimb-more { color: #8b1c1c; font-weight: 700; font-size: 11px; text-decoration: underline; }
.atut.aimb-ov { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 16, 30, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.atut.aimb-ov[hidden] { display: none; }
.atut .aimb-dlg { position: relative; background: var(--parch); color: var(--ink); border: 2px solid var(--gold); border-top: 5px solid var(--navy); border-radius: 8px;
	width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto; padding: 16px 16px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); outline: 0; }
.atut .aimb-x { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; font-size: 24px; line-height: 1; border: 1px solid var(--gold-d); border-radius: 6px;
	background: var(--navy); color: #f3e2b5; cursor: pointer; }
.atut .aimb-x:hover, .atut .aimb-x:focus-visible { background: var(--navy-2); outline: 2px solid var(--gold); }
.atut .aimb-dh { display: flex; gap: 12px; align-items: center; padding-right: 40px; margin-bottom: 10px; }
.atut .aimb-dh img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; background: #efe2c0; border: 1px solid #d3bd8a; border-radius: 6px; flex: 0 0 48px; }
.atut .aimb-dh h3 { font-size: 18px; color: var(--navy); }
.atut .aimb-du { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.atut .aimb-use { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--navy); color: #f3e2b5; }
.atut .aimb-use b { color: #fff; }
.atut .aimb-dt td, .atut .aimb-dt th { white-space: nowrap; }
.atut .aimb-mn { display: flex; align-items: center; gap: 8px; }
.atut .aimb-mn img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; flex: 0 0 48px; }
.atut .aimb-dt small { color: var(--muted); }
.atut .aimb-dn { font-size: 11px; color: var(--muted); margin-top: 8px; }
@media (max-width: 600px) { .atut .aimb-dlg { max-height: 92vh; padding: 12px 10px; } .atut .aimb-dh h3 { font-size: 15px; } }
/* o template pinta todo <button> de dourado: neutraliza so os botoes do painel */
.atut button.aimb-open { all: unset; box-sizing: border-box; cursor: pointer; color: inherit; font: inherit; }
.atut button.aimb-open-img { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 4px; display: block; }
.atut button.aimb-open-nm { display: inline; }
.atut button.aimb-more { color: #8b1c1c; font-weight: 700; font-size: 11px; text-decoration: underline; }
.atut button.aimb-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.atut button.aimb-x { all: unset; box-sizing: border-box; position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; font: 24px/32px Inter, sans-serif; text-align: center;
	border: 1px solid var(--gold-d); border-radius: 6px; background: var(--navy); color: #f3e2b5; cursor: pointer; }
.atut button.aimb-x:hover, .atut button.aimb-x:focus-visible { background: var(--navy-2); outline: 2px solid var(--gold); }
.atut .aimb-dt td { vertical-align: middle; }
.at-main .Content .BoxContent .atut button.aimb-open { all: unset; box-sizing: border-box; cursor: pointer; color: inherit; font: inherit; }
.at-main .Content .BoxContent .atut button.aimb-open-img { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 4px; display: block; }
.at-main .Content .BoxContent .atut button.aimb-open-nm { display: inline; }
.at-main .Content .BoxContent .atut button.aimb-more { color: #8b1c1c; font-weight: 700; font-size: 11px; text-decoration: underline; }
.at-main .Content .BoxContent .atut button.aimb-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
