:root {
	--bg: #08110f;
	--bg-2: #0d1f1c;
	--panel: #102522;
	--panel-2: #15302b;
	--panel-3: #1a3a34;
	--line: #24483f;
	--line-soft: #1a352f;
	--text: #dee9e5;
	--text-dim: #9cb2ab;
	--text-faint: #6f867f;
	--gold: #e3bd6a;
	--gold-2: #c9a44c;
	--gold-soft: rgba(227, 189, 106, 0.14);
	--green: #3cba8b;
	--green-soft: rgba(60, 186, 139, 0.16);
	--red: #c85b52;
	--red-soft: rgba(200, 91, 82, 0.16);
	--discord: #5865f2;
	--radius: 10px;
	--radius-sm: 7px;
	--shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	--shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
	--font-title: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(1200px 600px at 50% -220px, rgba(60, 186, 139, 0.16), transparent 70%),
		radial-gradient(900px 480px at 100% 0%, rgba(227, 189, 106, 0.08), transparent 65%),
		linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #060d0c 100%);
	background-attachment: fixed;
	background-repeat: no-repeat;
}

img {
	max-width: 100%;
	border: 0;
}

a {
	color: var(--gold);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus {
	color: #f3d79b;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--gold-2);
	outline-offset: 2px;
}

::selection {
	background: var(--gold-2);
	color: #08110f;
}

/* ===== Estrutura geral ===== */

.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 18px 24px;
}

.layout {
	display: grid;
	grid-template-columns: 262px minmax(0, 1fr) 262px;
	gap: 18px;
	align-items: start;
	flex: 1 1 auto;
	padding-top: 18px;
}

.col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.col-left,
.col-right {
	position: sticky;
	top: 18px;
}

.col-center {
	min-width: 0;
}

/* ===== Cabeçalho ===== */

.site-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px 0 20px;
	border-bottom: 1px solid var(--line-soft);
	position: relative;
}

.site-header::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	transform: translateX(-50%);
	width: 220px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
	opacity: 0.75;
}

.logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--text);
}

.logo:hover {
	color: var(--text);
}

.logo-img {
	display: block;
	height: 56px;
	width: auto;
	max-height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.logo-text {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-title);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #f2f6f4;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 26px rgba(227, 189, 106, 0.28);
}

.logo-gem {
	display: inline-block;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	background: linear-gradient(145deg, #f6e2ab 0%, var(--gold) 45%, var(--gold-2) 100%);
	transform: rotate(45deg);
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 18px rgba(227, 189, 106, 0.55);
}

/* ===== Caixas ===== */

.box {
	background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.box-title {
	margin: 0;
	padding: 11px 14px;
	font-family: var(--font-title);
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(180deg, rgba(227, 189, 106, 0.09), rgba(0, 0, 0, 0.18));
	border-bottom: 1px solid var(--line);
}

.box-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.box-body > * {
	margin: 0;
}

/* ===== Conta ===== */

.account-box {
	text-align: center;
}

.hello {
	font-size: 0.9rem;
	color: var(--text-dim);
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

.hello strong {
	color: var(--gold);
	font-weight: 600;
}

/* ===== Botões ===== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.btn:hover {
	color: #fff;
	border-color: var(--gold-2);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.btn:active {
	transform: translateY(0);
}

.btn-primary {
	background: linear-gradient(180deg, #edd08b 0%, var(--gold) 45%, var(--gold-2) 100%);
	border-color: #8d6f2e;
	color: #1a1405;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
	box-shadow: 0 2px 0 #6f5723, var(--shadow-sm);
}

.btn-primary:hover {
	background: linear-gradient(180deg, #f7e2ab 0%, #eccb83 45%, #d3ad55 100%);
	border-color: #a3833a;
	color: #120d02;
}

.btn-muted {
	background: linear-gradient(180deg, var(--panel-3), var(--panel));
	border-color: var(--line);
	color: var(--text-dim);
}

.btn-muted:hover {
	color: var(--text);
	border-color: var(--line);
	background: linear-gradient(180deg, #204741, var(--panel-2));
}

.btn-small {
	padding: 7px 11px;
	font-size: 0.79rem;
	align-self: flex-start;
}

.btn-discord {
	background: linear-gradient(180deg, #6d78f5, var(--discord));
	border-color: #3f4ac4;
	color: #fff;
	box-shadow: 0 2px 0 #353fa7, var(--shadow-sm);
}

.btn-discord:hover {
	background: linear-gradient(180deg, #7c86ff, #4c59e8);
	border-color: #4b56d6;
	color: #fff;
}

.btn-download {
	width: 100%;
	padding: 13px 14px;
	font-family: var(--font-title);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(180deg, #1d4a3f, #123029);
	border-color: #2d5c4f;
	color: #d6f2e7;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-sm);
}

.btn-download svg {
	width: 19px;
	height: 19px;
}

.btn-download:hover {
	color: #fff;
	border-color: var(--green);
	background: linear-gradient(180deg, #27604f, #163a31);
}

/* AmbiOT: atalho da loja (coluna esquerda, logo abaixo da conta) */
.btn-loja {
	width: 100%;
	justify-content: flex-start;
	gap: 12px;
	padding: 11px 14px;
	text-align: left;
	background: linear-gradient(180deg, #3a2f12, #241c08);
	border-color: #8d6f2e;
	color: var(--gold);
	box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.12), 0 0 0 1px rgba(227, 189, 106, 0.08), var(--shadow-sm);
}

.btn-loja img {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.btn-loja-texto {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--font-title);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.btn-loja-texto small {
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #cdb88a;
}

.btn-loja:hover {
	color: #ffe7a8;
	border-color: var(--gold);
	background: linear-gradient(180deg, #4a3b16, #2c220a);
	box-shadow: 0 0 14px rgba(227, 189, 106, 0.25), var(--shadow-sm);
}

/* saldo de AmbiCoins na caixa da conta */
.saldo-coins {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 auto 6px;
	padding: 4px 12px;
	border: 1px solid rgba(227, 189, 106, 0.35);
	border-radius: 999px;
	background: var(--gold-soft);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
}

.saldo-coins strong {
	color: var(--gold);
	font-variant-numeric: tabular-nums;
}

.saldo-coins:hover {
	border-color: var(--gold);
	color: #fff;
}

/* ===== Menu lateral ===== */

.menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.menu-cat {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.menu-title {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 34px 10px 14px;
	font-family: var(--font-title);
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(180deg, rgba(227, 189, 106, 0.07), rgba(0, 0, 0, 0.16));
	cursor: pointer;
	user-select: none;
	list-style: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.menu-title::-webkit-details-marker {
	display: none;
}

.menu-title::marker {
	content: "";
}

.menu-title::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -5px;
	border-right: 2px solid var(--gold-2);
	border-bottom: 2px solid var(--gold-2);
	transform: rotate(45deg);
	transition: transform 0.18s ease, margin-top 0.18s ease;
	opacity: 0.8;
}

.menu-cat[open] > .menu-title::after {
	transform: rotate(-135deg);
	margin-top: -1px;
}

.menu-title:hover {
	color: #f3d79b;
	background: linear-gradient(180deg, rgba(227, 189, 106, 0.13), rgba(0, 0, 0, 0.16));
}

.menu-links {
	margin: 0;
	padding: 6px 0;
	list-style: none;
	border-top: 1px solid var(--line-soft);
	background: rgba(0, 0, 0, 0.16);
}

.menu-links li {
	margin: 0;
	padding: 0;
}

.menu-links a {
	display: block;
	padding: 7px 14px 7px 18px;
	border-left: 2px solid transparent;
	font-size: 0.86rem;
	color: var(--text-dim);
	transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease, padding-left 0.14s ease;
}

.menu-links a:hover {
	color: var(--text);
	background: rgba(60, 186, 139, 0.1);
	border-left-color: var(--gold);
	padding-left: 22px;
}

/* ===== Barra superior ===== */

.topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 10px;
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	font-size: 0.82rem;
}

.topbar > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	color: var(--text-dim);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.topbar > a:hover {
	color: var(--text);
	background: rgba(60, 186, 139, 0.12);
	border-color: var(--line);
}

.topbar svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	opacity: 0.9;
}

.topbar > a:first-child:hover {
	color: #fff;
	background: rgba(88, 101, 242, 0.22);
	border-color: rgba(88, 101, 242, 0.55);
}

.topbar-online {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.22);
	font-weight: 600;
	white-space: nowrap;
}

.topbar-online strong {
	font-weight: 700;
}

.topbar-online.is-on {
	color: var(--green);
	border-color: rgba(60, 186, 139, 0.45);
	background: var(--green-soft);
}

.topbar-online.is-on strong {
	color: #8bf0c8;
}

.topbar-online.is-off {
	color: var(--red);
	border-color: rgba(200, 91, 82, 0.45);
	background: var(--red-soft);
}

/* ===== Conteúdo central ===== */

.box-content {
	overflow: visible;
}

.box-content > .box-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 1rem;
	padding: 13px 16px;
}

.crumb {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--text-faint);
}

.crumb a {
	color: var(--text-faint);
}

.crumb a:hover {
	color: var(--gold);
}

.content {
	padding: 16px;
}

.Content,
#ContentHelper {
	min-width: 0;
}

#ContentHelper {
	display: block;
	color: var(--text);
	font-size: 0.92rem;
	overflow-wrap: break-word;
}

#ContentHelper > *:first-child {
	margin-top: 0;
}

#ContentHelper > *:last-child {
	margin-bottom: 0;
}

#ContentHelper p,
.Content p {
	margin: 0 0 12px;
}

#ContentHelper h1,
#ContentHelper h2,
#ContentHelper h3,
#ContentHelper h4,
.Content h1,
.Content h2,
.Content h3,
.Content h4 {
	margin: 22px 0 10px;
	font-family: var(--font-title);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--gold);
	line-height: 1.25;
}

#ContentHelper h1,
.Content h1 {
	font-size: 1.35rem;
}

#ContentHelper h2,
.Content h2 {
	font-size: 1.15rem;
}

#ContentHelper h3,
.Content h3 {
	font-size: 1.02rem;
}

#ContentHelper h4,
.Content h4 {
	font-size: 0.94rem;
	color: #f0d79f;
}

#ContentHelper ul,
#ContentHelper ol,
.Content ul,
.Content ol {
	margin: 0 0 12px;
	padding-left: 22px;
}

#ContentHelper li,
.Content li {
	margin: 4px 0;
}

#ContentHelper hr,
.Content hr {
	margin: 20px 0;
	border: 0;
	border-top: 1px solid var(--line-soft);
}

#ContentHelper blockquote,
.Content blockquote {
	margin: 14px 0;
	padding: 10px 14px;
	border-left: 3px solid var(--gold-2);
	background: rgba(0, 0, 0, 0.22);
	color: var(--text-dim);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

#ContentHelper code,
.Content code {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--line-soft);
	font-family: ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
	font-size: 0.86em;
	color: #cfe6dc;
}

#ContentHelper pre,
.Content pre {
	margin: 0 0 12px;
	padding: 12px;
	overflow: auto;
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.38);
	border: 1px solid var(--line-soft);
}

#ContentHelper pre code,
.Content pre code {
	padding: 0;
	border: 0;
	background: none;
}

#ContentHelper table,
.Content table,
.table,
.TableContent {
	width: 100%;
	margin: 0 0 14px;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.87rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

#ContentHelper th,
.Content th,
.table th,
.TableContent th {
	padding: 9px 11px;
	text-align: left;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

#ContentHelper td,
.Content td,
.table td,
.TableContent td {
	padding: 8px 11px;
	color: var(--text);
	border-bottom: 1px solid var(--line-soft);
	vertical-align: middle;
}

#ContentHelper tbody tr:nth-child(even) td,
.Content tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) td,
.TableContent tbody tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.022);
}

#ContentHelper tbody tr:hover td,
.Content tbody tr:hover td,
.table tbody tr:hover td,
.TableContent tbody tr:hover td {
	background: rgba(60, 186, 139, 0.08);
}

#ContentHelper tbody tr:last-child td,
.Content tbody tr:last-child td {
	border-bottom: 0;
}

#ContentHelper input[type="text"],
#ContentHelper input[type="email"],
#ContentHelper input[type="password"],
#ContentHelper input[type="number"],
#ContentHelper input[type="search"],
#ContentHelper select,
#ContentHelper textarea,
.Content input[type="text"],
.Content input[type="email"],
.Content input[type="password"],
.Content input[type="number"],
.Content input[type="search"],
.Content select,
.Content textarea {
	width: 100%;
	max-width: 420px;
	padding: 9px 11px;
	color: var(--text);
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.88rem;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#ContentHelper input:focus,
#ContentHelper select:focus,
#ContentHelper textarea:focus,
.Content input:focus,
.Content select:focus,
.Content textarea:focus {
	outline: none;
	border-color: var(--gold-2);
	background: rgba(0, 0, 0, 0.42);
	box-shadow: 0 0 0 3px var(--gold-soft);
}

#ContentHelper input[type="submit"],
#ContentHelper input[type="button"],
#ContentHelper input[type="reset"],
#ContentHelper button,
.Content input[type="submit"],
.Content input[type="button"],
.Content input[type="reset"],
.Content button {
	width: auto;
	padding: 9px 16px;
	color: #1a1405;
	background: linear-gradient(180deg, #edd08b 0%, var(--gold) 45%, var(--gold-2) 100%);
	border: 1px solid #8d6f2e;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-shadow: 0 2px 0 #6f5723;
	transition: filter 0.15s ease, transform 0.12s ease;
}

#ContentHelper input[type="submit"]:hover,
#ContentHelper input[type="button"]:hover,
#ContentHelper button:hover,
.Content input[type="submit"]:hover,
.Content input[type="button"]:hover,
.Content button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

#ContentHelper label,
.Content label {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-dim);
}

#ContentHelper input[type="checkbox"],
#ContentHelper input[type="radio"],
.Content input[type="checkbox"],
.Content input[type="radio"] {
	width: auto;
	margin-right: 6px;
	accent-color: var(--gold-2);
}

#ContentHelper .error,
.Content .error,
#ContentHelper .warning,
.Content .warning {
	padding: 10px 13px;
	margin: 0 0 12px;
	border-radius: var(--radius-sm);
	font-size: 0.86rem;
}

#ContentHelper .error,
.Content .error {
	color: #ffc9c3;
	background: var(--red-soft);
	border: 1px solid rgba(200, 91, 82, 0.55);
}

#ContentHelper .warning,
.Content .warning {
	color: #ffe6b0;
	background: var(--gold-soft);
	border: 1px solid rgba(227, 189, 106, 0.45);
}

#ContentHelper .success,
.Content .success,
#ContentHelper .ok,
.Content .ok {
	padding: 10px 13px;
	margin: 0 0 12px;
	border-radius: var(--radius-sm);
	color: #b6f2da;
	background: var(--green-soft);
	border: 1px solid rgba(60, 186, 139, 0.5);
}

#ContentHelper img,
.Content img {
	height: auto;
	image-rendering: auto;
}

#ContentHelper br,
.Content br {
	line-height: 1.55;
}

/* ===== Servidor / estatísticas ===== */

.status-line {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.status-line .dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.status-line.is-on {
	color: var(--green);
}

.status-line.is-on .dot {
	animation: ambiot-pulse 1.9s ease-in-out infinite;
}

.status-line.is-off {
	color: var(--red);
}

.status-line.is-off .dot {
	opacity: 0.85;
}

@keyframes ambiot-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(60, 186, 139, 0.55);
		opacity: 1;
	}
	50% {
		box-shadow: 0 0 0 6px rgba(60, 186, 139, 0);
		opacity: 0.72;
	}
}

@media (prefers-reduced-motion: reduce) {
	.status-line.is-on .dot {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}

	.btn,
	.btn:hover,
	.menu-title,
	.menu-title::after,
	.menu-links a {
		transition: none;
		transform: none;
	}
}

.stats {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 10px;
	margin: 0;
	padding: 2px 0 0;
	font-size: 0.84rem;
}

.stats dt {
	margin: 0;
	color: var(--text-dim);
	font-weight: 500;
}

.stats dd {
	margin: 0;
	text-align: right;
	color: var(--text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.stats dt,
.stats dd {
	padding: 5px 0;
	border-bottom: 1px dashed var(--line-soft);
}

.stats dt:last-of-type,
.stats dd:last-of-type {
	border-bottom: 0;
}

.muted {
	margin: 0;
	color: var(--text-faint);
	font-size: 0.83rem;
	line-height: 1.5;
}

/* ===== Rodapé ===== */

.site-footer {
	margin-top: 26px;
	padding: 18px 10px 8px;
	border-top: 1px solid var(--line-soft);
	text-align: center;
	color: var(--text-faint);
	font-size: 0.8rem;
}

.site-footer p {
	margin: 0 0 6px;
}

.site-footer a {
	color: var(--text-dim);
}

.site-footer a:hover {
	color: var(--gold);
}

.disclaimer {
	margin: 6px 0 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: #566a63;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.template-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 0;
	font-size: 0.78rem;
}

.template-switch select,
.template-switch input[type="text"],
.template-switch input[type="submit"],
.template-switch button {
	padding: 5px 9px;
	color: var(--text);
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid var(--line);
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 0.78rem;
	cursor: pointer;
}

.template-switch input[type="submit"],
.template-switch button {
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	color: var(--text-dim);
}

.template-switch input[type="submit"]:hover,
.template-switch button:hover {
	color: var(--gold);
	border-color: var(--gold-2);
}

/* ===== Notícias ===== */

.news {
	position: relative;
	display: block;
	padding: 0 0 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(0, 0, 0, 0.18));
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.news + .news {
	margin-top: 18px;
}

.news-head {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	grid-template-areas:
		"icon meta"
		"title title";
	align-items: center;
	gap: 4px 11px;
	padding: 13px 16px 11px;
	border-bottom: 1px solid var(--line-soft);
	background: linear-gradient(180deg, rgba(227, 189, 106, 0.06), rgba(0, 0, 0, 0.14));
}

.news-icon {
	grid-area: icon;
	width: 32px;
	height: 32px;
	display: block;
	object-fit: contain;
	image-rendering: pixelated;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.news-meta {
	grid-area: meta;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 12px;
	min-width: 0;
}

.news-date {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-faint);
	font-variant-numeric: tabular-nums;
}

.news-author {
	font-size: 0.75rem;
	color: var(--text-faint);
}

.news-author strong {
	color: var(--gold-2);
	font-weight: 600;
}

.news-title {
	grid-area: title;
	margin: 6px 0 0;
	font-family: var(--font-title);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: #f0d79f;
	overflow-wrap: break-word;
}

.news-body {
	padding: 14px 16px;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--text);
	overflow-wrap: break-word;
}

.news-body > *:first-child {
	margin-top: 0;
}

.news-body > *:last-child {
	margin-bottom: 0;
}

.news-body p {
	margin: 0 0 11px;
}

.news-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
	image-rendering: pixelated;
	vertical-align: middle;
}

.news-body a {
	text-decoration: underline;
	text-decoration-color: rgba(227, 189, 106, 0.45);
	text-underline-offset: 2px;
}

.news-body a:hover {
	text-decoration-color: var(--gold);
}

.news-body ul,
.news-body ol {
	margin: 0 0 11px;
	padding-left: 22px;
}

.news-body li {
	margin: 4px 0;
}

.news-body hr {
	margin: 16px 0;
	border: 0;
	border-top: 1px solid var(--line-soft);
}

.news-foot {
	padding: 10px 16px 12px;
	border-top: 1px solid var(--line-soft);
	background: rgba(0, 0, 0, 0.16);
	font-size: 0.82rem;
	font-weight: 600;
}

.news-foot a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gold);
}

.news-foot a:hover {
	color: #f7e2ab;
}

/* ===== Responsivo ===== */

@media (max-width: 1120px) {
	.layout {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.col-right {
		grid-column: 1 / -1;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.col-right > .box {
		flex: 1 1 240px;
		min-width: 220px;
	}
}

@media (max-width: 900px) {
	.page {
		padding: 0 14px 20px;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.col-center {
		order: -1;
	}

	.col-left,
	.col-right {
		position: static;
	}

	.col-left {
		order: 0;
	}

	.col-right {
		order: 1;
		flex-direction: column;
	}

	.col-right > .box {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-header {
		padding: 18px 0 16px;
	}

	.logo-img {
		height: 46px;
	}

	.logo-text {
		font-size: 1.55rem;
	}

	.topbar {
		font-size: 0.8rem;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 14px;
		background-attachment: scroll;
	}

	.page {
		padding: 0 10px 16px;
	}

	.box-title {
		font-size: 0.88rem;
		padding: 10px 12px;
	}

	.box-body,
	.content {
		padding: 12px;
	}

	.logo-text {
		font-size: 1.25rem;
		letter-spacing: 0.06em;
		gap: 8px;
	}

	.logo-gem {
		width: 17px;
		height: 17px;
	}

	.topbar {
		justify-content: space-between;
	}

	.topbar > a {
		padding: 6px 9px;
	}

	.topbar > a svg,
	.topbar-online svg {
		width: 15px;
		height: 15px;
	}

	.topbar-online {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.news-head {
		padding: 11px 12px 10px;
	}

	.news-title {
		font-size: 1rem;
	}

	.news-body,
	.news-foot {
		padding: 12px;
	}

	#ContentHelper table,
	.Content table,
	.table,
	.TableContent {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	#ContentHelper input[type="text"],
	#ContentHelper input[type="email"],
	#ContentHelper input[type="password"],
	#ContentHelper input[type="number"],
	#ContentHelper select,
	#ContentHelper textarea,
	.Content input[type="text"],
	.Content input[type="email"],
	.Content input[type="password"],
	.Content input[type="number"],
	.Content select,
	.Content textarea {
		max-width: 100%;
	}
}

/* ===== AmbiOT (Claude): legibilidade das páginas padrão do MyAAC =====
   As tabelas do MyAAC trazem bgcolor/style com cores fixas (bege); aqui tudo vira painel escuro legível. */
.content table, .content tr, .content td, .content th,
.content .TableContainer, .content .TableContent, .content .InnerTableContainer,
.content .Table1, .content .Table2, .content .Table3, .content .Table4, .content .Table5 {
	background: transparent !important;
	background-image: none !important;
	color: var(--text) !important;
	border-color: rgba(227, 189, 106, 0.18) !important;
}
.content tr:nth-child(even) > td { background: rgba(255, 255, 255, 0.03) !important; }
.content td, .content th { padding: 8px 10px; vertical-align: middle; }
.content .LabelV, .content .LabelV span, .content td > span, .content label, .content b { color: var(--text) !important; }
.content .CaptionContainer, .content .Text, .content .CaptionInnerContainer, .content th {
	background: linear-gradient(180deg, #1f4a3a, #12291f) !important;
	color: var(--gold, #e3bd6a) !important;
	font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .04em;
}
.content input[type=text], .content input[type=password], .content input[type=email],
.content input[type=number], .content input:not([type]), .content select, .content textarea {
	background: #f7f1e3 !important; color: #1d1a14 !important;
	border: 1px solid #b08a52 !important; border-radius: 4px; padding: 8px 10px;
	max-width: 100%; box-sizing: border-box; font: inherit;
}
.content input:focus, .content select:focus, .content textarea:focus {
	outline: 2px solid var(--gold, #e3bd6a); outline-offset: 1px;
}
.content .FormFieldError, .content .red, .content .ErrorMessage { color: #ff8a73 !important; }
.content a { color: var(--gold, #e3bd6a); }
.content a:hover { text-decoration: underline; }
.content input:not([type]) { min-width: 260px; padding: 8px 10px; }
.news-icon { width: 48px; height: 48px; object-fit: contain; }

/* ===== AmbiOT (Claude): imagens geradas no app do Gemini ===== */
body {
	background-color: #07110f;
	background-image:
		linear-gradient(180deg, rgba(7, 17, 15, .35) 0%, rgba(7, 17, 15, .55) 45%, rgba(7, 17, 15, .92) 100%),
		url("images/bg.jpg");
	background-position: center top, center top;
	background-size: cover, cover;
	background-attachment: fixed, fixed;
	background-repeat: no-repeat;
}
.logo-img { height: auto; max-height: 150px; max-width: min(560px, 90vw); }
@media (max-width: 1000px) {
	.logo-img { max-height: 100px; }
	body { background-attachment: scroll, scroll; }
}

/* ===== Ranking (highscores.html.twig) ===== */
/* Esconde o aviso em inglês que o MyAAC imprime antes do template (o texto em português está no .hs-sub) */
.content small:has(+ br + br + .hs),
.content small:has(+ br + br + .hs) + br,
.content small:has(+ br + br + .hs) + br + br { display: none; }

.hs { display: flex; flex-direction: column; gap: 14px; }
.hs-head { text-align: center; padding: 4px 0 2px; }
.hs-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: 1.35rem;
	letter-spacing: 0.05em;
	color: var(--gold);
}
.hs-sub { margin: 4px 0 0; color: var(--text-dim); font-size: 0.86rem; }

.hs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.hs-tabs-voc { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hs-tab {
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--panel);
	color: var(--text-dim) !important;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hs-tab:hover { color: var(--text) !important; border-color: var(--gold-2); }
.hs-tab.is-on {
	background: var(--gold-soft);
	border-color: var(--gold);
	color: var(--gold) !important;
}
.hs-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hs-table-wrap {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.hs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hs-table th {
	padding: 9px 12px;
	text-align: left;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.hs-table td {
	padding: 8px 12px;
	vertical-align: middle;
	border-bottom: 1px solid var(--line-soft);
	background: transparent;
}
.hs-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.hs-table tbody tr:hover td { background: rgba(227, 189, 106, 0.06); }
.hs-table tbody tr:last-child td { border-bottom: 0; }
.hs-c-rank { width: 52px; text-align: center !important; }
.hs-c-outfit { width: 64px; text-align: center; }
.hs-c-outfit img { display: block; margin: -10px auto -6px; }
.hs-c-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-value { font-weight: 700; color: var(--text); }
.hs-c-exp { color: var(--text-dim); }

.hs-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.84rem;
	color: var(--text-dim);
}
.hs-top-1 .hs-rank { background: linear-gradient(180deg, #f3d27e, #c9a44c); color: #2a1e05 !important; }
.hs-top-2 .hs-rank { background: linear-gradient(180deg, #e3e8ea, #a9b3b7); color: #1d2426 !important; }
.hs-top-3 .hs-rank { background: linear-gradient(180deg, #e2a774, #a8693a); color: #2a1407 !important; }
.hs-top-1 td { background: rgba(227, 189, 106, 0.07) !important; }

.hs-name { font-weight: 700; color: var(--gold) !important; text-decoration: none !important; }
.hs-name:hover { text-decoration: underline !important; }
.hs-voc { display: block; font-size: 0.78rem; color: var(--text-faint); }
.hs-online {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 3px var(--green-soft);
	vertical-align: middle;
}

.hs-empty {
	padding: 26px 16px;
	text-align: center;
	color: var(--text-dim);
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
}
.hs-pages { display: flex; justify-content: space-between; gap: 8px; }
.hs-pages .btn:only-child { margin-left: auto; }

@media (max-width: 620px) {
	.hs-c-exp, .hs-c-outfit { display: none; }
	.hs-table td, .hs-table th { padding: 8px; }
	.hs-tab { padding: 4px 10px; font-size: 0.78rem; }
}

/* ===== Login (account.login.html.twig) ===== */
.lg { display: flex; justify-content: center; padding: 8px 0 16px; }
.lg-card {
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px 20px;
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.lg-head { text-align: center; }
.lg-title {
	margin: 0;
	font-family: var(--font-title);
	font-size: 1.3rem;
	letter-spacing: 0.05em;
	color: var(--gold);
}
.lg-sub { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-dim); }
.lg-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.lg-label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.lg-label.is-error { color: var(--red); }
.content .lg-input,
.lg-input {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--text);
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.content .lg-input:focus,
.lg-input:focus {
	outline: none;
	border-color: var(--gold-2);
	box-shadow: 0 0 0 3px var(--gold-soft);
}
.lg-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 0.85rem;
}
.lg-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); cursor: pointer; }
.lg-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold-2); }
.lg-link { color: var(--gold) !important; text-decoration: none !important; font-weight: 600; }
.lg-link:hover { text-decoration: underline !important; }
.lg-submit { width: 100%; padding: 11px 14px; font-size: 0.95rem; cursor: pointer; }
.lg-foot {
	margin: 2px 0 0;
	padding-top: 14px;
	text-align: center;
	font-size: 0.86rem;
	color: var(--text-dim);
	border-top: 1px solid var(--line-soft);
}

/* Mensagens de erro: marcador dentro da caixa */
.ErrorMessage li { list-style-position: inside; }

/* ===== Minha conta (account.management.html.twig) ===== */
.mc { display: flex; flex-direction: column; gap: 16px; }
.mc-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.mc-title { margin: 0; font-family: var(--font-title); font-size: 1.35rem; letter-spacing: 0.05em; color: var(--gold); }
.mc-sub { margin: 2px 0 0; color: var(--text-dim); font-size: 0.9rem; }
.mc-sub b { color: var(--text); }
.mc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-pill {
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-dim);
	background: var(--panel);
	border: 1px solid var(--line);
}
.mc-pill.is-good { color: var(--green); background: var(--green-soft); border-color: rgba(60, 186, 139, 0.4); }
.mc-pill.is-bad { color: var(--red); background: var(--red-soft); border-color: rgba(200, 91, 82, 0.4); }

.mc-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.mc-nav-link {
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--panel);
	color: var(--text-dim) !important;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.mc-nav-link:hover { color: var(--text) !important; border-color: var(--gold-2); }
.mc-nav-link.is-on { color: var(--gold) !important; border-color: var(--gold); background: var(--gold-soft); }
.mc-nav-link.is-out:hover { color: var(--red) !important; border-color: var(--red); }

.mc-alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	font-size: 0.87rem;
	color: var(--text);
	background: var(--gold-soft);
	border: 1px solid rgba(227, 189, 106, 0.35);
	border-radius: var(--radius-sm);
}
.mc-alert form { margin: 0; flex-shrink: 0; }

.mc-sec {
	padding: 16px;
	background: rgba(0, 0, 0, 0.14);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mc-sec form { margin: 0; }
.mc-h {
	margin: 0;
	font-family: var(--font-title);
	font-size: 1rem;
	letter-spacing: 0.06em;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 8px;
}
.mc-count {
	font-family: var(--font-body);
	font-size: 0.74rem;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--panel-3);
	color: var(--text-dim);
}
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mc-grid {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
}
.mc-grid > div {
	padding: 10px 12px;
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	min-width: 0;
}
.mc-grid dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.mc-grid dd { margin: 3px 0 0; color: var(--text); font-size: 0.92rem; overflow-wrap: anywhere; }
.mc-note { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--text-dim); }
.mc-ok { color: var(--green); font-weight: 700; }
.mc-warn { color: var(--gold); font-weight: 700; }

.mc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mc-table th {
	padding: 9px 12px;
	text-align: left;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gold);
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.mc-table td {
	padding: 9px 12px;
	color: var(--text);
	background: transparent;
	border-bottom: 1px solid var(--line-soft);
	white-space: nowrap;
	vertical-align: middle;
}
.mc-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.mc-table tbody tr:hover td { background: rgba(227, 189, 106, 0.06); }
.mc-table tbody tr:last-child td { border-bottom: 0; }
.mc-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.mc-name, .mc-link { font-weight: 700; color: var(--gold) !important; text-decoration: none !important; }
.mc-name:hover, .mc-link:hover { text-decoration: underline !important; }
.mc-tag {
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-dim);
	background: var(--panel-3);
}
.mc-tag.is-bad { color: var(--red); background: var(--red-soft); }
.mc-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--text-faint); vertical-align: middle; }
.mc-dot.is-on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mc-empty {
	padding: 18px 14px;
	text-align: center;
	color: var(--text-dim);
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	font-size: 0.88rem;
}

@media (max-width: 620px) {
	.mc-hide-sm { display: none; }
	.mc-alert { flex-direction: column; align-items: flex-start; }
}

/* Âncoras antigas do MyAAC dentro das seções não ocupam espaço */
.mc-sec > a[name] { position: absolute; }
.mc-sec { position: relative; }
#ContentHelper .mc-h, #ContentHelper .mc-title, #ContentHelper .hs-title, #ContentHelper .lg-title, .content .mc-h, .content .mc-title, .content .hs-title, .content .lg-title { margin: 0; }

/* ===== Kit AmbiOT para páginas (classes ab-*) =====
   Usado pelos templates *.html.twig do AmbiOT. Ver memoria/componentes/site.md ("Kit ab-*"). */
.ab { display: flex; flex-direction: column; gap: 16px; }
.ab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ab-head.is-center { flex-direction: column; align-items: center; text-align: center; }
#ContentHelper .ab-title, .content .ab-title {
	margin: 0; font-family: var(--font-title); font-size: 1.35rem; letter-spacing: 0.05em; color: var(--gold);
}
.ab-sub { margin: 3px 0 0; color: var(--text-dim); font-size: 0.9rem; }
.ab-text { margin: 0; color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.ab-muted { color: var(--text-dim); }
.ab-faint { color: var(--text-faint); font-size: 0.8rem; }

.ab-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-tabs.is-center { justify-content: center; }
.ab-tab {
	padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
	color: var(--text-dim) !important; font-size: 0.82rem; font-weight: 600; text-decoration: none !important;
	cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ab-tab:hover { color: var(--text) !important; border-color: var(--gold-2); }
.ab-tab.is-on { color: var(--gold) !important; border-color: var(--gold); background: var(--gold-soft); }

.ab-card {
	position: relative; padding: 16px; background: rgba(0, 0, 0, 0.14); border: 1px solid var(--line);
	border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.ab-card > a[name] { position: absolute; }
.ab-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#ContentHelper .ab-h, .content .ab-h {
	margin: 0; font-family: var(--font-title); font-size: 1rem; letter-spacing: 0.06em; color: var(--gold);
	display: flex; align-items: center; gap: 8px;
}
.ab-count {
	font-family: var(--font-body); font-size: 0.74rem; padding: 1px 8px; border-radius: 999px;
	background: var(--panel-3); color: var(--text-dim);
}
.ab-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.ab-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
#ContentHelper .ab-table, .ab-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 0.88rem; }
#ContentHelper .ab-table th, .ab-table th {
	padding: 9px 12px; text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
	text-transform: uppercase; color: var(--gold); background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	border: 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
#ContentHelper .ab-table td, .ab-table td {
	padding: 9px 12px; color: var(--text); background: transparent; border: 0;
	border-bottom: 1px solid var(--line-soft); vertical-align: middle;
}
.ab-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.ab-table tbody tr:hover td { background: rgba(227, 189, 106, 0.06); }
.ab-table tbody tr:last-child td { border-bottom: 0; }
.ab-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ab-center { text-align: center !important; }
.ab-nowrap { white-space: nowrap; }
.ab-img { width: 64px; text-align: center; }
.ab-img img { display: block; margin: -8px auto -6px; max-width: none; }

.ab-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ab-grid > div { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); min-width: 0; }
.ab-grid dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.ab-grid dd { margin: 3px 0 0; color: var(--text); font-size: 0.92rem; overflow-wrap: anywhere; }

.ab-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.ab-form.is-wide { max-width: none; }
.ab-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ab-label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.ab-hint { font-size: 0.78rem; color: var(--text-faint); }
.content .ab-input, .ab-input, .content .ab-select, .ab-select, .content .ab-textarea, .ab-textarea {
	width: 100%; padding: 10px 12px; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg-2);
	border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.content .ab-textarea, .ab-textarea { min-height: 110px; resize: vertical; }
.content .ab-input:focus, .ab-input:focus, .content .ab-select:focus, .ab-select:focus, .content .ab-textarea:focus, .ab-textarea:focus {
	outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft);
}
.ab-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-choice {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); background: var(--panel); color: var(--text); font-size: 0.88rem; cursor: pointer;
}
.ab-choice input { margin: 0; accent-color: var(--gold-2); }
.ab-choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

.ab-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ab-actions form { margin: 0; }
.ab-empty {
	padding: 22px 14px; text-align: center; color: var(--text-dim); border: 1px dashed var(--line);
	border-radius: var(--radius-sm); font-size: 0.9rem;
}
.ab-alert {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px;
	font-size: 0.87rem; color: var(--text); background: var(--gold-soft); border: 1px solid rgba(227, 189, 106, 0.35);
	border-radius: var(--radius-sm);
}
.ab-alert.is-ok { background: var(--green-soft); border-color: rgba(60, 186, 139, 0.4); }
.ab-alert.is-bad { background: var(--red-soft); border-color: rgba(200, 91, 82, 0.4); }
.ab-alert form { margin: 0; flex-shrink: 0; }

.ab-pill {
	display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
	color: var(--text-dim); background: var(--panel-3); border: 1px solid var(--line); white-space: nowrap;
}
.ab-pill.is-good { color: var(--green); background: var(--green-soft); border-color: rgba(60, 186, 139, 0.4); }
.ab-pill.is-bad { color: var(--red); background: var(--red-soft); border-color: rgba(200, 91, 82, 0.4); }
.ab-pill.is-gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(227, 189, 106, 0.4); }
.ab-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--text-faint); vertical-align: middle; }
.ab-dot.is-on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ab-link, .ab-name { font-weight: 700; color: var(--gold) !important; text-decoration: none !important; }
.ab-link:hover, .ab-name:hover { text-decoration: underline !important; }
.ab-ok { color: var(--green); font-weight: 700; }
.ab-bad { color: var(--red); font-weight: 700; }
.ab-warn { color: var(--gold); font-weight: 700; }
.ab-list { margin: 0; padding-left: 18px; color: var(--text); font-size: 0.9rem; line-height: 1.7; }
.ab-details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.ab-details > summary { padding: 11px 14px; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
.ab-details > summary::-webkit-details-marker { display: none; }
.ab-details > summary::after { content: "+"; float: right; color: var(--gold); }
.ab-details[open] > summary::after { content: "\2212"; }
.ab-details > div { padding: 0 14px 14px; color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 620px) {
	.ab-hide-sm { display: none; }
	.ab-alert { flex-direction: column; align-items: flex-start; }
}

/* ===== Enquete (coluna direita) e aviso de cookies ===== */
.poll-q { margin: 0; font-weight: 700; color: var(--text); }
.poll-opts { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; }
.footer-links { margin: 6px 0; font-size: 0.82rem; }
.footer-links a { color: var(--gold) !important; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.cookie-bar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
	max-width: 720px; margin: 0 auto; padding: 12px 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
	border: 1px solid var(--gold-2); border-radius: var(--radius); box-shadow: var(--shadow);
	color: var(--text); font-size: 0.88rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--gold) !important; }
.cookie-bar .btn { flex-shrink: 0; }
@media (max-width: 620px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; } }
.poll-opts li { list-style: none; margin-left: -18px; }
.poll-v { float: right; font-weight: 700; color: var(--gold); }
.poll-link { font-size: 0.82rem; color: var(--gold) !important; }
.poll-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.poll-form .poll-opts, .box-poll .poll-opts { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.box-poll .poll-opts li { list-style: none; margin: 0; }
.poll-opt {
	display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; font-size: 0.84rem; line-height: 1.35;
	color: var(--text); background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
label.poll-opt { cursor: pointer; }
label.poll-opt:hover { border-color: var(--gold-2); }
.poll-opt input { margin: 2px 0 0; accent-color: var(--gold-2); flex-shrink: 0; }
.poll-opt > span { flex: 1; }
.poll-opt:has(input:checked), .poll-opt.is-mine { border-color: var(--gold); background: var(--gold-soft); }
.box-poll .poll-v { float: none; margin-left: auto; padding-left: 6px; font-weight: 700; color: var(--gold); }
.poll-msg { margin: 0; padding: 7px 9px; font-size: 0.82rem; color: var(--green); background: var(--green-soft); border-radius: var(--radius-sm); }
.poll-note { font-size: 0.78rem; }
.poll-note a { color: var(--gold) !important; }

/* ===== Seletor de idioma (topo, à direita) ===== */
.lang-switch {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(8, 17, 15, 0.72);
}
.lang-switch button {
	font: 600 0.72rem/1 var(--font-body);
	letter-spacing: 0.04em;
	color: var(--text-dim);
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 6px 9px;
	cursor: pointer;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.lang-switch button[aria-pressed="true"] {
	color: #1a1206;
	background: var(--gold);
}
@media (max-width: 640px) {
	.site-header { flex-direction: column; gap: 10px; }
	.lang-switch { position: static; transform: none; }
}

/* Botões em forma de link dentro do conteúdo (ex.: /ambicoins): a cor de link não pode vencer a do botão */
.ab a.btn-primary, .ab a.btn-primary:hover { color: #1a1405; }


/* ===== AmbiOT: ajustes para celular (revisão de 2026-11-14: Gemini + Claude) ===== */
.menu-celular { display: none; }
@media (max-width: 900px) {
	/* botão "Menu" no topo: no celular o menu fica depois do conteúdo */
	.menu-celular { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold) !important; }
	#menu-lateral { scroll-margin-top: 12px; }
}
@media (max-width: 620px) {
	/* fundo mais leve e sem "fixed" (no celular trava a rolagem e o iOS ignora) */
	body {
		background-image:
			linear-gradient(180deg, rgba(7, 17, 15, .35) 0%, rgba(7, 17, 15, .55) 45%, rgba(7, 17, 15, .92) 100%),
			url("images/bg-celular.jpg");
		background-attachment: scroll, scroll;
		background-size: 100% 100%, 100% auto;   /* imagem em pé (9:16) na largura do celular; abaixo dela, a cor de fundo */
	}
	/* campos com 16px: o iPhone não dá zoom ao tocar */
	input[type="text"], input[type="email"], input[type="password"], input[type="number"],
	select, textarea, .lg-input, .ab-input { font-size: 16px !important; }
	/* áreas de toque de pelo menos ~44px */
	.menu-links a { padding-top: 11px; padding-bottom: 11px; }
	.lang-switch button { padding: 9px 13px; }
	.btn-small, .hs-tab, .ab-tab { min-height: 42px; display: inline-flex; align-items: center; }
	.topbar a, .topbar-online { min-height: 40px; display: inline-flex; align-items: center; }
	/* aviso de cookies compacto, em linha, sem cobrir meia tela */
	.cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; gap: 10px; font-size: 0.8rem;
		flex-direction: row; align-items: center; text-align: left; max-height: 40vh; overflow-y: auto; }
	.cookie-bar .btn { min-height: 40px; }
}


/* ===== AmbiOT: página Comprar AmbiCoins (2026-11-14) ===== */
.amb-saldo { display: flex; align-items: center; gap: 16px; padding: 4px 0 8px; }
.amb-saldo-moeda { width: 64px; height: 64px; flex-shrink: 0; image-rendering: auto; }
.amb-saldo-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.amb-saldo-rot { color: var(--text); font-weight: 600; margin-left: 4px; }
.amb-saldo-texto .ab-text { margin: 6px 0 0; }
.amb-selo { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.amb-selo img { width: 32px; height: 32px; flex-shrink: 0; }

.amb-pacotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amb-pacote {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 14px 10px 12px; cursor: pointer; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); border: 1px solid var(--line);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.amb-pacote:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.amb-pacote:has(.amb-radio:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.amb-pacote:has(.amb-radio:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.amb-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amb-pacote-img { width: 96px; height: 96px; object-fit: contain; margin: 2px auto 4px; }
.amb-pacote-nome { font-family: var(--font-title, inherit); color: var(--gold); font-weight: 700; letter-spacing: .03em; }
.amb-pacote-coins { font-size: 1.35rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.amb-pacote-coins small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted, #9fb4ad); }
.amb-pacote-preco { margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.amb-bonus { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 800;
	color: #0b1714; background: var(--gold); }
.amb-nota { margin: 4px 0 0; }
.amb-acoes .btn { min-width: 180px; }

.amb-resumo { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.amb-resumo-img { width: 128px; height: 128px; object-fit: contain; margin: 0 auto; }
.amb-resumo-lista { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; }
.amb-resumo-lista dt { color: var(--muted, #9fb4ad); }
.amb-resumo-lista dd { margin: 0; font-weight: 700; }
.amb-resumo-valor { color: var(--gold); font-size: 1.15rem; }

@media (max-width: 900px) {
	.amb-pacotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.amb-saldo { gap: 12px; }
	.amb-saldo-moeda { width: 52px; height: 52px; }
	.amb-saldo-num { font-size: 1.8rem; }
	.amb-pacotes { gap: 8px; }
	.amb-pacote { padding: 12px 6px 10px; }
	.amb-pacote-img { width: 72px; height: 72px; }
	.amb-pacote-coins { font-size: 1.15rem; }
	.amb-acoes .btn { width: 100%; min-height: 44px; }
	.amb-resumo { grid-template-columns: 1fr; text-align: left; }
	.amb-resumo-img { width: 96px; height: 96px; }
}

/* AmbiOT: correções (14/11) — cada informação do card numa linha; botão Menu só no celular */
.amb-pacote { display: flex !important; flex-direction: column !important; }
.amb-pacote-nome, .amb-pacote-coins, .amb-pacote-preco { display: block; }
.amb-pacote-preco { display: inline-block; }
.topbar .menu-celular { display: none; }
@media (max-width: 900px) { .topbar .menu-celular { display: inline-flex; } }
@media (max-width: 620px) {
	.ab-pill { white-space: normal; }              /* o selo "Loja em modo de teste..." quebra a linha em vez de vazar */
	.amb-acoes .btn { width: 100% !important; max-width: none !important; }
}

/* AmbiOT: QR Code do Pix na página do pedido (antes herdava .ab-img, que é de ícone de tabela: 64 px) */
.amb-qr-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 14px 0 18px;
}

.amb-qr {
	display: block;
	width: 260px;
	max-width: 100%;
	height: auto;
	padding: 12px;
	background: #fff;
	border-radius: 12px;
	border: 2px solid var(--gold-2);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
	image-rendering: pixelated;
}

.amb-qr-dica {
	margin: 0;
	max-width: 420px;
	text-align: center;
	font-size: 0.86rem;
	color: var(--text-dim);
}

/* Passe VIP: selo no perfil do personagem (17/11) */
.ab-vip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	padding: 1px 8px 2px;
	border-radius: 999px;
	background: #2FAE86;
	color: #ffffff;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .2px;
	vertical-align: middle;
	white-space: nowrap;
}
.ab-vip[hidden] { display: none; } /* necessario: display:inline-flex anula o atributo hidden */
.ab-vip-ico { display: block; }

/* ===== Mercado de Personagens (AmbiOT, 23/11/2026) ===== */
.mp-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; }
.content .mp-filtros input, .content .mp-filtros select, .mp-filtros .ab-input, .mp-filtros .ab-select { min-width: 0; width: 100%; box-sizing: border-box; height: 42px; }
.mp-filtros .ab-actions { flex-wrap: nowrap; }
.mp-filtros .ab-actions .btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.mp-faixa { display: flex; gap: 6px; }
.mp-faixa .ab-input { min-width: 0; }
.mp .mp-lista, .mp .mp-equip { padding-left: 0; margin-left: 0; list-style: none; }
.mp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mp-card {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; text-align: center;
	background: linear-gradient(180deg, var(--panel), rgba(0, 0, 0, 0.18)); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.15s;
}
.mp-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.mp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.mp-nivel { font-size: 0.8rem; color: var(--text-dim); font-weight: 700; }
/* O serviço de outfit devolve 64x64 com o personagem (32x32) no canto inferior direito: ampliamos 2x e deslocamos para o centro da caixa. */
.mp-outfit { position: relative; width: 128px; height: 128px; margin: 4px 0 2px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.mp-outfit img { position: absolute; left: -32px; top: -32px; width: 128px; height: 128px; max-width: none; image-rendering: pixelated; }
#ContentHelper .mp-nome, .content .mp-nome { margin: 2px 0 0; font-family: var(--font-title); font-size: 1rem; color: var(--gold); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.mp-preco { margin: 0; color: var(--text); }
.mp-preco strong { font-size: 1.25rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.mp-card-acoes { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; padding-top: 8px; }
.content .mp-card-acoes .btn, .content .mp-card-acoes button, .mp-card-acoes .btn { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.mp-paginas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mp-ficha { display: flex; flex-direction: column; gap: 14px; }
.mp-ficha-topo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mp-ficha-outfit { position: relative; width: 112px; height: 112px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); flex-shrink: 0; }
.mp-ficha-outfit img { position: absolute; left: -40px; top: -40px; width: 128px; height: 128px; max-width: none; image-rendering: pixelated; }
#ContentHelper .mp-ficha-nome, .content .mp-ficha-nome { margin: 0; font-family: var(--font-title); font-size: 1.3rem; color: var(--gold); letter-spacing: 0.05em; }
.mp-ficha p { margin: 2px 0; }
.mp-selos { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-blocos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mp-bloco { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); min-width: 0; }
.mp-bloco h4 { margin: 0 0 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.mp-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.mp-lista li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 3px; }
.mp-lista strong { color: var(--text); font-variant-numeric: tabular-nums; }
.mp-equip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 14px; font-size: 0.9rem; }
.mp-colecao { margin-top: 8px; font-size: 0.88rem; line-height: 1.7; }
.mp-obs { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.mp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.7); }
.mp-modal[hidden] { display: none; }
.mp-modal-caixa {
	position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto; padding: 20px;
	background: var(--panel-2); border: 1px solid var(--gold-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mp-modal-fechar { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: var(--text-dim); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.mp-modal-fechar:hover { color: var(--gold); }
@media (max-width: 600px) { .mp-grade { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .mp-modal-caixa { padding: 14px; } }
.mp .ab-choice { display: flex; width: 100%; box-sizing: border-box; align-items: flex-start; line-height: 1.4; }
.mp .ab-choice input { margin-top: 3px; flex-shrink: 0; }
.mp .ab-details > div p { margin: 0 0 8px; line-height: 1.5; }

/* ---- Tabela de XP (calculadora, marcos, faixas) ---- */
.xp-calc { display: grid; grid-template-columns: 140px 140px 1fr; gap: 14px; align-items: end; }
.xp-calc .ab-input { width: 100%; box-sizing: border-box; min-width: 0; }
.xp-resultado { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,0.18); min-height: 44px; justify-content: center; }
.xp-resultado-rotulo { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.xp-resultado b { font-size: 1.15rem; color: var(--gold); overflow-wrap: anywhere; }
.xp-faixas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.xp-faixa { cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font: inherit; font-size: 0.85rem; font-weight: 600; }
.xp-faixa:hover { color: var(--gold); border-color: var(--gold); }
.xp-faixa.is-ativa { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.xp-painel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html.xp-js .xp-painel { display: none; }
html.xp-js .xp-painel.is-ativo { display: grid; }
.xp-tabela th, .xp-tabela td { padding: 5px 10px; font-size: 0.82rem; white-space: nowrap; }
.xp-marcos td:last-child { white-space: normal; }
@media (max-width: 760px) { .xp-painel { grid-template-columns: minmax(0, 1fr); } .xp-calc { grid-template-columns: 1fr 1fr; } .xp-resultado { grid-column: 1 / -1; } }

/* ---- Fórum ---- */
.fo-trilha { margin: 0 0 6px; font-size: 0.8rem; color: var(--text-faint); }
.fo-paginas { margin: 0 0 10px; }
.fo-quadros { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fo-quadro { display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px 160px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,0.14); }
.fo-quadro:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.fo-quadro-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fo-quadro-nome { font-family: var(--font-title); font-size: 1.05rem; color: var(--gold); text-decoration: none; }
.fo-quadro-nome:hover { text-decoration: underline; }
.fo-quadro-info .ab-muted { font-size: 0.85rem; }
.fo-quadro-num { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.fo-quadro-num b { font-size: 1.1rem; color: var(--text); }
.fo-quadro-num span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.fo-quadro-ultima { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; }
.fo-post { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
.fo-autor { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; border-right: 1px solid var(--line-soft); padding-right: 12px; min-width: 0; overflow-wrap: anywhere; }
.fo-outfit { width: 64px; height: 64px; object-fit: none; object-position: center; }
.fo-texto { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fo-conteudo { line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.fo-conteudo img { max-width: 100%; height: auto; }
.fo-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 8px; font-size: 0.8rem; }
.fo-acoes { display: inline-flex; gap: 12px; align-items: center; }
.fo-fim { margin: 4px 0 18px; }
.fo-citacao { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.fo-admin { font-size: 0.75rem; }
@media (max-width: 760px) {
	.fo-quadro { grid-template-columns: 1fr 1fr; }
	.fo-quadro-info, .fo-quadro-ultima { grid-column: 1 / -1; }
	.fo-post { grid-template-columns: minmax(0, 1fr); }
	.fo-autor { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 0 0 10px; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* ---- Ficha do personagem: item sem figura ---- */
.eq-sem-figura { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 0.7rem; font-weight: 700; color: var(--gold); background: rgba(227,189,106,0.1); cursor: help; }

/* ---- Ranking da lateral (top 5 com abas e barras proporcionais) ---- */
.rk-abas { display: flex; gap: 14px; margin: 0 0 10px; border-bottom: 1px solid var(--line); }
.rk-aba { cursor: pointer; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 4px 0 6px; font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--text-faint); }
.rk-aba:hover { color: var(--text); }
.rk-aba.is-ativa { color: var(--gold); border-bottom-color: var(--gold); }
.rk-lista { list-style: none; margin: 0 0 10px; padding: 0; display: none; gap: 5px; }
.rk-lista.is-ativa { display: grid; }
.rk-linha { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,0.16); }
.rk-linha::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--rk-pct, 10%); background: linear-gradient(90deg, rgba(60,186,139,0.28), rgba(60,186,139,0.05)); }
.rk-linha.is-topo::before { background: linear-gradient(90deg, rgba(227,189,106,0.38), rgba(227,189,106,0.06)); }
.rk-linha > * { position: relative; }
.rk-pos { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 0.7rem; font-weight: 700; color: var(--text-dim); border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); }
.rk-linha.is-topo .rk-pos { color: #1a1408; background: var(--gold); border-color: var(--gold); }
.rk-nome { display: flex; flex-direction: column; min-width: 0; font-size: 0.85rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.2; overflow-wrap: anywhere; }
.rk-nome:hover { color: var(--gold); }
.rk-nome small, .rk-valor small { font-size: 0.68rem; font-weight: 400; color: var(--text-faint); }
.rk-valor { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 0.9rem; color: var(--gold); line-height: 1.2; }
.rk-vazio { font-size: 0.8rem; color: var(--text-faint); padding: 6px 2px; }
