:root {
	--void: #0A0612;
	--night: #120B1F;
	--panel: #1A1430;
	--panel-2: #241A40;
	--border: #4A3A7A;
	--gengar: #5A4A9C;
	--gengar-mid: #6A5A9B;
	--poison: #9473B4;
	--mist: #D8D0EC;
	--ink: #F2ECFF;
	--muted: #A294C0;
	--white: #FFFFFF;
	--poke: #FFCB05;
	--poke-deep: #E0B000;
	--black: #0A0612;
	--account: #C45BA8;
	--status: #2FA86A;

	--primary: var(--panel);
	--secondary: var(--night);
	--third: #ddd;
	--font-color: var(--ink);
	--anchor: var(--poke);
	--anchor-hover: #FFE566;
	--bg-danger: #3c0e0e;
	--color-danger: #e08a8a;
	--border-danger: #350505;
	--bg-warning: #3a2a0a;
	--color-warning: #e0c48a;
	--border-warning: #322001;
	--bg-info: #1a1433;
	--color-info: #c6c0d9;
	--border-info: #5a4a9c;
	--bg-success: #0a2e18;
	--color-success: #8ae0a8;
	--border-success: #00380c;
	--bg-default: var(--void);
	--color-default: var(--mist);
	--border-default: var(--border);
	--violet: var(--poison);
	--violet-deep: var(--gengar);
	--gold-soft: var(--poke);
	--font-display: "IBM Plex Sans", Arial, sans-serif;
	--font-body: "IBM Plex Sans", Arial, sans-serif;
	--radius: 8px;
	--radius-sm: 5px;
	--max: 980px;
	--ease: ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: #0A0612;
	line-height: 1.5;
	min-height: 100vh;
}
.poke-wallpaper {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(90,74,156,0.45), transparent 60%),
		linear-gradient(180deg, #140C24 0%, #0A0612 45%, #120B1F 100%);
}
.poke-wallpaper::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(10,6,18,0.42);
}
.poke-flyfield {
	position: absolute;
	inset: -8%;
	z-index: 1;
}
.fly-poke {
	position: absolute;
	width: 56px;
	height: 56px;
	image-rendering: pixelated;
	opacity: 0.72;
	filter: drop-shadow(0 8px 14px rgba(0,0,0,0.4));
	will-change: transform;
}
.fly-poke-1  { left: 4%;  top: 12%; width: 70px; height: 70px; animation: flyDrift 22s ease-in-out infinite; }
.fly-poke-2  { left: 18%; top: 28%; width: 48px; height: 48px; animation: flyB 9s ease-in-out infinite; animation-delay: -2s; }
.fly-poke-3  { left: 32%; top: 8%;  width: 64px; height: 64px; animation: flyDrift 26s ease-in-out infinite; animation-delay: -5s; }
.fly-poke-4  { left: 48%; top: 22%; width: 52px; height: 52px; animation: flyA 11s ease-in-out infinite; animation-delay: -7s; }
.fly-poke-5  { left: 62%; top: 10%; width: 72px; height: 72px; animation: flyB 13s ease-in-out infinite; animation-delay: -1s; }
.fly-poke-6  { left: 78%; top: 26%; width: 46px; height: 46px; animation: flyC 11s linear infinite; animation-delay: -9s; }
.fly-poke-7  { left: 88%; top: 14%; width: 58px; height: 58px; animation: flyA 12s ease-in-out infinite; animation-delay: -3s; }
.fly-poke-8  { left: 8%;  top: 48%; width: 50px; height: 50px; animation: flyB 10s ease-in-out infinite; animation-delay: -4s; }
.fly-poke-9  { left: 24%; top: 58%; width: 66px; height: 66px; animation: flyC 13s linear infinite; animation-delay: -8s; }
.fly-poke-10 { left: 40%; top: 46%; width: 44px; height: 44px; animation: flyA 10s ease-in-out infinite; animation-delay: -6s; }
.fly-poke-11 { left: 56%; top: 62%; width: 60px; height: 60px; animation: flyB 12s ease-in-out infinite; animation-delay: -2.5s; }
.fly-poke-12 { left: 72%; top: 52%; width: 54px; height: 54px; animation: flyDrift 28s ease-in-out infinite; animation-delay: -11s; }
.fly-poke-13 { left: 86%; top: 68%; width: 48px; height: 48px; animation: flyA 11s ease-in-out infinite; animation-delay: -1.5s; }
.fly-poke-14 { left: 12%; top: 78%; width: 62px; height: 62px; animation: flyB 12s ease-in-out infinite; animation-delay: -10s; }
.fly-poke-15 { left: 30%; top: 86%; width: 50px; height: 50px; animation: flyC 10s linear infinite; animation-delay: -4.5s; }
.fly-poke-16 { left: 50%; top: 74%; width: 68px; height: 68px; animation: flyDrift 24s ease-in-out infinite; animation-delay: -12s; }
.fly-poke-17 { left: 66%; top: 84%; width: 46px; height: 46px; animation: flyB 9s ease-in-out infinite; animation-delay: -0.8s; }
.fly-poke-18 { left: 82%; top: 90%; width: 58px; height: 58px; animation: flyC 12s linear infinite; animation-delay: -6.5s; }
.fly-poke-19 { left: 2%;  top: 34%; width: 42px; height: 42px; animation: flyA 12s ease-in-out infinite; animation-delay: -13s; }
.fly-poke-20 { left: 94%; top: 42%; width: 52px; height: 52px; animation: flyB 13s ease-in-out infinite; animation-delay: -3.2s; }
.fly-poke-21 { left: 44%; top: 4%;  width: 40px; height: 40px; animation: flyC 9s linear infinite; animation-delay: -7.5s; }
.fly-poke-22 { left: 70%; top: 36%; width: 56px; height: 56px; animation: flyA 14s ease-in-out infinite; animation-delay: -14s; }
.fly-poke-23 { left: 16%; top: 66%; width: 48px; height: 48px; animation: flyB 11s ease-in-out infinite; animation-delay: -5.5s; }

@keyframes flyA {
	0%   { transform: translate(0, 0) rotate(-6deg) scale(1); }
	20%  { transform: translate(60px, -50px) rotate(4deg) scale(1.08); }
	40%  { transform: translate(-30px, -110px) rotate(-8deg) scale(0.95); }
	60%  { transform: translate(90px, -70px) rotate(6deg) scale(1.1); }
	80%  { transform: translate(-50px, -30px) rotate(-3deg) scale(1); }
	100% { transform: translate(0, 0) rotate(-6deg) scale(1); }
}
@keyframes flyB {
	0%   { transform: translate(0, 0) scale(1) rotate(3deg); }
	25%  { transform: translate(-80px, -40px) scale(1.12) rotate(-10deg); }
	50%  { transform: translate(40px, -120px) scale(0.9) rotate(8deg); }
	75%  { transform: translate(-20px, -55px) scale(1.05) rotate(-4deg); }
	100% { transform: translate(0, 0) scale(1) rotate(3deg); }
}
@keyframes flyC {
	0%   { transform: translate(-40px, 20px) rotate(0deg); }
	15%  { transform: translate(70px, -30px) rotate(10deg); }
	35%  { transform: translate(140px, -90px) rotate(-6deg); }
	55%  { transform: translate(40px, -150px) rotate(12deg); }
	75%  { transform: translate(-60px, -60px) rotate(-10deg); }
	100% { transform: translate(-40px, 20px) rotate(0deg); }
}
@keyframes flyDrift {
	0%   { transform: translateX(-10vw) translateY(0) rotate(-5deg); }
	50%  { transform: translateX(12vw) translateY(-80px) rotate(5deg); }
	100% { transform: translateX(-10vw) translateY(0) rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
	.fly-poke { animation: none !important; }
}

ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: var(--anchor); transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
a:hover { color: var(--anchor-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--poke); outline-offset: 2px; }
button:hover, input[type="submit"]:hover { cursor: pointer; }

.mainbody {
	width: var(--max);
	max-width: calc(100% - 1.25rem);
	margin: 0 auto 2rem;
	padding-top: 0.85rem;
	position: relative;
	z-index: 1;
}

/* classic OTP header */
.otp-header {
	border: 2px solid var(--gengar);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	background:
		linear-gradient(105deg, rgba(10,6,18,0.72) 0%, rgba(10,6,18,0.28) 45%, rgba(10,6,18,0.7) 100%),
		url("../img/noctis-header-banner.jpg") center 45% / cover no-repeat,
		linear-gradient(180deg, #2A1F4A, #120B1F);
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255,203,5,0.12);
	min-height: 140px;
}
.otp-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem 0.75rem;
	min-height: 110px;
}
.otp-logo {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: inherit !important;
}
.otp-logo-ball {
	width: 64px;
	height: 64px;
	filter: drop-shadow(0 0 12px rgba(255,203,5,0.45));
}
.otp-logo-text strong {
	display: block;
	font-size: 1.55rem;
	font-weight: 900;
	color: var(--poke);
	letter-spacing: 0.02em;
	text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.otp-logo-text span {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--mist);
}
.otp-header-art {
	display: flex;
	align-items: flex-end;
	gap: 0.25rem;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
}
.otp-header-art img {
	width: 68px;
	height: 68px;
	image-rendering: pixelated;
}
.otp-pokeday-mini {
	background: rgba(10,6,18,0.72);
	border: 2px solid var(--poke);
	border-radius: 10px;
	padding: 0.35rem 0.55rem 0.45rem;
	text-align: center;
	min-width: 118px;
	box-shadow: 0 0 14px rgba(255,203,5,0.2);
}
.otp-pokeday-mini span {
	display: block;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--poke);
	margin-bottom: 0.15rem;
}
.otp-pokeday-mini img {
	width: 56px;
	height: 56px;
	image-rendering: pixelated;
}
.otp-page-label {
	padding: 0.35rem 1rem 0.55rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--mist);
}

/* navbar */
.navbar {
	background: linear-gradient(180deg, #2A1F4A, #17102C);
	border: 2px solid var(--gengar);
	border-top: 2px solid var(--poke);
	min-height: 42px;
	display: flex;
	align-items: center;
	padding: 0 0.65rem;
}
.menuNavbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	font-size: 0.92rem;
	font-weight: 700;
}
.menuNavbar > a { color: #fff !important; }
.menu-item {
	display: inline-block;
	padding: 0.65rem 0.55rem;
	border-bottom: 2px solid transparent;
}
.menuNavbar > a:hover .menu-item {
	color: var(--poke);
	border-bottom-color: var(--poke);
}
.menu-sep { color: rgba(255,203,5,0.35); font-size: 0.7rem; margin: 0 0.1rem; }

/* feed */
.feedContainer {
	margin: 0;
	padding: 12px;
	background: rgba(18, 11, 31, 0.94);
	border: 2px solid var(--gengar);
	border-top: none;
	position: relative;
}
.feedContainer::before {
	content: "";
	position: absolute;
	left: -70px;
	bottom: 40px;
	width: 120px;
	height: 120px;
	background: url("../img/pokemon/sprites/dragonite.png") center / contain no-repeat;
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}
.preventCollapse { overflow: hidden; }
.pull-left { float: left; }
.pull-right { float: right; }
.leftPane { width: 67%; padding-right: 12px; position: relative; z-index: 1; }
.rightPane { width: 32%; position: relative; z-index: 1; }
.topPane { margin-bottom: 0.75rem; }
.well { width: auto; }
.centralizeContent { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* home classic top */
.otp-home-top {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.otp-feature {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border: 2px solid var(--gengar);
	border-radius: 10px;
	background: linear-gradient(120deg, rgba(90,74,156,0.4), rgba(26,20,48,0.95));
	min-height: 150px;
}
.otp-feature-poke {
	width: 130px;
	height: 130px;
	object-fit: contain;
	filter: drop-shadow(0 0 16px rgba(148,115,180,0.45));
}
.otp-feature-copy strong {
	display: block;
	font-size: 1.2rem;
	font-weight: 900;
	color: var(--poke);
	margin-bottom: 0.25rem;
}
.otp-feature-copy p {
	margin: 0 0 0.65rem;
	color: var(--mist);
	font-size: 0.92rem;
}
.otp-actions {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.otp-action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 0.9rem;
	border: 1px solid transparent;
	color: #fff !important;
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.otp-action-discord { background: linear-gradient(180deg, #7B68B8, #5A4A9C); border-color: #9473B4; }
.otp-action-account { background: linear-gradient(180deg, #1a1a1a, #000); border-color: #444; }
.otp-action-download { background: linear-gradient(180deg, #FFE566, #FFCB05); color: #1a1200 !important; border-color: #c9a000; }
.otp-action-rank { background: linear-gradient(180deg, #6A5A9B, #3D2F6B); border-color: #9473B4; }
.otp-action:hover { transform: translateY(-1px); filter: brightness(1.08); }

.section { margin: 0 0 1.35rem; }
.section-title {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--poke);
	margin: 0 0 0.3rem;
}
.section-lead { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.65rem; }
.step {
	padding: 0.85rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--panel);
}
.step-num { color: var(--poke); font-weight: 800; font-size: 0.75rem; margin-bottom: 0.3rem; }
.step h3 { margin: 0 0 0.3rem; color: #fff; font-size: 1rem; }
.step p { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.86rem; }

.status-row {
	display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
	padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
}
.status-pill {
	font-weight: 800; font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase;
	padding: 0.28rem 0.55rem; border-radius: 4px; border: 1px solid transparent;
}
.status-pill.is-online { color: #b6f0c8; background: rgba(46,140,80,.22); border-color: rgba(138,224,168,.4); box-shadow: 0 0 10px rgba(80,220,120,.3); }
.status-pill.is-offline { color: #f0b0b0; background: rgba(140,46,46,.2); border-color: rgba(224,138,138,.35); }
.status-meta { color: var(--muted); font-size: 0.9rem; }
.status-meta strong { color: var(--poke); }

/* widgets classic colored headers */
.widget, .postHolder > .well, .loginContainer {
	background: var(--panel);
	border: 2px solid var(--border);
	border-radius: 10px;
	margin-bottom: 0.7rem;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.header {
	color: #fff;
	font-size: 0.88rem;
	font-weight: 800;
	padding: 0.55rem 0.75rem;
	background: linear-gradient(180deg, #3A2D62, #241A40);
	border-bottom: 1px solid var(--border);
}
.widget-community .header {
	background: linear-gradient(180deg, #4A3A78, #2A2050);
	border-left: 4px solid var(--gengar);
}
.widget-account .header, .loginContainer .header {
	background: linear-gradient(180deg, #D889C0, #A14E88);
	border-left: 4px solid #ffd0ef;
	color: #1a0814;
}
.widget-status .header {
	background: linear-gradient(180deg, #3CBF78, #248A54);
	border-left: 4px solid #b6f0c8;
	color: #062214;
}
.widget-pokeday .header {
	background: linear-gradient(180deg, #FFE566, #FFCB05);
	border-left: 4px solid #fff3b0;
	color: #1a1200;
}
.body { padding: 0.65rem 0.75rem 0.8rem; }
.community-links li { margin: 0.15rem 0; }
.community-links a {
	display: block;
	padding: 0.28rem 0.2rem;
	color: var(--mist);
	font-size: 0.88rem;
	font-weight: 600;
	border-radius: 4px;
}
.community-links a:hover { color: var(--poke); background: rgba(90,74,156,0.25); }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 0.45rem 0.35rem; }
tr:nth-child(2n+1) { background: rgba(90,74,156,0.08); }
.smedia { font-size: 2em; }

input, select, textarea {
	background: #100A1C; color: var(--ink); height: 38px;
	border: 1px solid var(--border); border-radius: 5px;
	font-size: 0.95em; font-family: var(--font-body); padding: 0 0.8rem;
	width: 100%; max-width: 420px;
}
input:focus, select:focus, textarea:focus { border-color: var(--poke); box-shadow: 0 0 0 2px rgba(255,203,5,0.15); }
input[type="submit"], button.submitButton, .loginForm button {
	background: linear-gradient(180deg, #FFE566, #FFCB05);
	color: #1a1200; border: 1px solid #a88700; font-weight: 800; cursor: pointer; max-width: 420px;
}
.loginForm { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.loginForm .well { width: 100%; padding: 0; background: transparent; border: none; margin: 0; }
.loginForm label { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; font-weight: 700; text-transform: uppercase; }
.loginForm input { width: 100%; max-width: none; height: 36px; }
.loginForm button, .loginForm input[type="submit"], .loginForm input.submitButton {
	width: 100%; max-width: none; margin-top: 0.35rem; height: 38px; border-radius: 5px;
	border: 1px solid #a88700; background: linear-gradient(180deg,#FFE566,#FFCB05); color: #1a1200; font-weight: 800; cursor: pointer;
}
form > ul > li { margin-bottom: 0.8rem; }
.page-auth h1, .leftPane > h1, .auth-panel h1 { font-size: 1.35rem; color: var(--poke); font-weight: 900; margin: 0 0 0.4rem; }
.auth-panel { max-width: 480px; padding: 1rem; background: var(--panel); border: 2px solid var(--border); border-radius: 10px; }

.postHolder { margin-bottom: 0.75rem; }
.postHolder .header a { color: var(--poke); }
.postHolder .body p { margin: 0.3rem 0; color: var(--ink); }
#changelogTable { margin-bottom: 1rem; }

.dl-block { margin-bottom: 1.2rem; padding: 1rem; border: 2px solid var(--border); border-radius: 10px; background: var(--panel); }
.dl-block h1 { color: var(--poke); font-size: 1.35rem; font-weight: 900; margin: 0 0 0.25rem; }
.dl-block h2 { color: var(--mist); font-size: 1rem; font-weight: 700; margin: 0 0 0.65rem; }
.req-list { margin: 0 0 0.9rem; }
.req-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(90,74,156,0.25); font-size: 0.9rem; }
.req-list li span:first-child { color: var(--muted); }
.dl-help { margin-top: 0.65rem; font-size: 0.84rem; color: var(--muted); }
.dl-block-soon { position: relative; overflow: hidden; opacity: 0.92; }
.dl-soon-banner {
	position: absolute;
	top: 1.1rem;
	right: -2.2rem;
	transform: rotate(32deg);
	background: var(--poke);
	color: #1a1200;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.35rem 2.4rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.35);
	pointer-events: none;
	z-index: 2;
}
.btn-disabled,
.btn.btn-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(0.35);
}

.alert-box { max-width: 500px; font-size: 14px; border-radius: 6px; border: 1px solid var(--third); margin: 0 auto 15px; text-align: center; padding: 8px; }
.alert-default { background: var(--bg-default); color: var(--color-default); border-color: var(--border-default); }
.alert-info { background: var(--bg-info); color: var(--color-info); border-color: var(--border-info); }
.alert-success { background: var(--bg-success); color: var(--color-success); border-color: var(--border-success); }
.alert-warning { background: var(--bg-warning); color: var(--color-warning); border-color: var(--border-warning); }
.alert-danger { background: var(--bg-danger); color: var(--color-danger); border-color: var(--border-danger); }
.alert-collapse { display: inline-block; }
.alert-size1 { font-size: 12px; } .alert-size2 { font-size: 15px; } .alert-size3 { font-size: 18px; } .alert-size4 { font-size: 20px; }
#countDownTimer { line-height: 2.3; padding: 0 10px; color: var(--poke); }
.searchForm { width: 200px; }
.searchForm input { width: 100%; height: 25px; border: 1px solid var(--border); color: var(--font-color); font-size: 1em; padding: 5px; border-radius: 5px; }

.modIcon > i:nth-child(2), .modIcon:hover > i:nth-child(1) { display: none; }
div .displayPoints { position: relative; padding: 5px 15px; }
div .displayPoints a { border: 1px solid var(--gengar); width: calc(50% - 10px); margin-bottom: 16px; text-align: center; }
ul.linkbuttons { margin-top: 8px; padding: 0 4px; }
ul.linkbuttons li { display: inline-block; border: 1px solid var(--border); width: calc(50% - 10px); margin-bottom: 10px; text-align: center; float: left; border-radius: 5px; background: var(--panel); }
ul.linkbuttons li:nth-child(odd) { margin-right: 16px; }
ul.linkbuttons li a { padding: 8px 0; display: inline-block; width: 100%; text-align: center; color: var(--mist); font-size: 0.86rem; font-weight: 600; }
ul.linkbuttons:after { content: ''; display: block; clear: both; }
.widget .body { padding: 0.65rem 0.75rem 0.8rem; }
.widget center { margin: auto; }
.widget h3 { margin-bottom: 0; }
.search_widget form { margin: auto; }
.search_widget input { width: 100%; float: left; }
.search_widget label { padding: 9px; float: left; }
.search_widget form:after { display: block; content: ''; clear: both; }
div.relative { position: relative; }
.search_widget #name_suggestion { position: absolute; width: 280px; left: -290px; display: none; }
.search_widget #name_suggestion.show { display: block; }
.search_widget .sname { text-align: right; }
.search_widget .sname a { display: inline-block; background-color: black; padding: 10px 20px; border-bottom: 1px solid var(--panel); }
.page_characterprofile #characterProfileTable thead th:first-of-type { position: relative; width: 28%; }
.page_characterprofile #characterProfileTable thead th:last-of-type { text-align: left; padding-left: 16px; }
.page_characterprofile .outfit { position: absolute; top: 0; left: 0; }
.page_characterprofile .flag { position: absolute; top: 16px; right: 16px; }
.postHolder iframe { display: block; margin: auto; }
.youtube .aspectratio { position: relative; padding-bottom: 56.25%; height: 0; }
.youtube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.topDownloadButton { text-align: center; display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--poke); color: var(--poke); border-radius: 5px; }
.topDownloadButton:hover { background: var(--poke); color: #1a1200; }

.btn, .btn-primary, .btn-ghost, .btn-nav {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.55rem 1rem; font-weight: 800; border-radius: 6px; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(180deg,#FFE566,#FFCB05); color: #1a1200 !important; border-color: #a88700; }
.btn-ghost { background: rgba(90,74,156,0.3); color: var(--poke) !important; border-color: var(--gengar); }
.btn-nav { background: var(--poke); color: #1a1200 !important; }

.rank-tabs { display: flex; gap: 0.35rem; margin: 0 0 0.9rem; flex-wrap: wrap; }
.rank-tab { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 5px; color: var(--ink) !important; font-weight: 700; font-size: 0.86rem; background: var(--panel); }
.rank-tab:hover { border-color: var(--poke); color: var(--poke) !important; }
.rank-tab.is-active { background: var(--poke); border-color: #a88700; color: #1a1200 !important; }
.rank-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.rank-pager select { max-width: 160px; height: 34px; }
.rank-table-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { text-align: left; padding: 0.65rem 0.8rem; font-size: 0.8rem; font-weight: 800; color: var(--poke); background: #241A40; border-bottom: 1px solid var(--border); }
.rank-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(90,74,156,0.2); }
.rank-table tbody tr:hover { background: rgba(90,74,156,0.14); }
.rank-pos { font-weight: 700; color: var(--muted); width: 3rem; }
.rank-top1 .rank-pos { color: var(--poke); }
.rank-exp { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.rank-preview-col { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 0.75rem; }
.rank-preview-heading { margin: 0 0 0.45rem; font-size: 0.95rem; color: var(--poke); font-weight: 800; }
.rank-preview-heading a { color: inherit; }
.rank-preview-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(90,74,156,0.2); font-size: 0.88rem; }
.rank-preview-list li:last-child { border-bottom: none; }
.rank-preview-list .pos { font-weight: 700; color: var(--poke); width: 1.2rem; }
.rank-preview-list .val { margin-left: auto; color: var(--poke); font-weight: 700; }
.rank-preview-list .empty { color: var(--muted); }

.poke-day-body { text-align: center; }
.poke-day-art { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0.15rem auto 0.45rem; filter: drop-shadow(0 0 12px rgba(148,115,180,0.4)); }
.poke-day-meta { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.35rem; }
.poke-day-meta strong { font-size: 1rem; color: var(--poke); }
.poke-day-meta span { font-size: 0.75rem; font-weight: 700; color: var(--mist); text-transform: uppercase; letter-spacing: 0.05em; }
.poke-day-hint { margin: 0; font-size: 0.78rem; color: var(--muted); }

.site-footer {
	margin-top: 0; padding: 1rem 1.1rem 0.9rem;
	background: #0D0818; border: 2px solid var(--gengar); border-top: none;
	border-radius: 0 0 10px 10px; color: var(--mist);
}
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(90,74,156,0.3); }
.footer-logo { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.footer-logo img { width: 30px; height: 30px; }
.footer-logo span { font-size: 1rem; font-weight: 900; color: var(--poke); }
.footer-brand p { margin: 0; color: var(--muted); font-size: 0.84rem; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.footer-links a { color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.footer-links a:hover { color: var(--poke); }
.footer-legal { margin: 0; font-size: 0.7rem; color: var(--muted); line-height: 1.45; }
.footer-legal strong { color: var(--mist); }
footer { background: transparent; border-radius: 0; }

.hero, .page-band, .atmosphere, .site-banner, .banner-poke { display: none !important; }
.main { width: auto; margin: 0; }
.updates-panel .updates-empty {
	border: 2px solid var(--gengar);
	background: linear-gradient(180deg, rgba(90,74,156,0.22), rgba(26,20,48,0.95));
}
.updates-panel .updates-empty .body p {
	margin: 0;
	color: var(--mist);
}
.updates-more { margin-top: 0.85rem; }
.updates-more .btn { display: inline-block; }
.news-pager { margin: 0.75rem 0 0; }
.news-pager select {
	background: var(--panel, #1a1430);
	color: var(--ink);
	border: 1px solid var(--gengar);
	padding: 0.35rem 0.55rem;
}
.community-discord {
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
}
.community-discord-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
	object-fit: contain;
}