/* domehome.css */
/* Battledome home page (index_new.inc) */
/* CDN path: IMAGE_HOST/bd2/h5/dome/domehome.css */

/* TODO: move Bangers off Google Fonts — download and host on image CDN, replace with @font-face */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

.battledome-container {
	width: 100%;
	font-family: "MuseoSansRounded500", "Arial", sans-serif;
	text-align: center;
	box-sizing: border-box;
}

/* ── Nav ── */
.bd-nav {
	position: relative;
	width: 100%;
	height: auto;
	background: transparent top center / 100% 39px repeat-y;
	background-image: url(https://images.neopets.com/dome/pages/nav_bg.png);
	margin: auto auto 10px auto;
	max-width: 910px;
	display: flex;
	justify-content: center;
}
.bd-nav__menu {
	display: flex;
	position: static;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 842px;
}
.bd-nav__menu a {
	display: block;
	line-height: 0;
	padding: 0;
	border: 0;
}
.bd-nav__icon--battle      { width: 126px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_battle.png); }
.bd-nav__icon--stats       { width: 120px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_stats.png); }
.bd-nav__icon--challenges  { width: 120px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_challenges.png); }
.bd-nav__icon--abilities   { width: 120px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_abilities.png); }
.bd-nav__icon--records     { width: 120px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_records.png); }
.bd-nav__icon--featured    { width: 120px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_featured.png); }
.bd-nav__icon--battlepedia { width: 116px; background-image: url(https://images.neopets.com/dome/pages/buttons/nav_battlepedia.png); }
.bd-nav__icon {
	height: 39px;
	cursor: pointer;
}
.bd-nav__icon:hover { background-position: 0 -39px; }
@media (max-width: 880px) { .bd-nav__menu { max-width: 726px; } }
@media (max-width: 770px) { .bd-nav__menu { max-width: 606px; } }
@media (max-width: 620px) { .bd-nav__menu { max-width: 486px; } }
@media (max-width: 500px) { .bd-nav__menu { max-width: 366px; } }

/* ── Speech bubble / tip host ── */
.bd-speechBubble {
	border-image: url(https://images.neopets.com/bd2/h5/dome/images/150x150-speech-bubble.png) calc(150 / 3) calc(150 / 3) fill / 50px / 10px;
	padding: 2em;
	box-sizing: border-box;
	border-style: none;
}
.bd-tipHost-img {
	width: 200px;
}

/* ── Train section ── */
.bd-train {
	position: relative;
	width: 90%;
	max-width: 980px;
	margin: 10px auto;
	padding: 30px 0 40px;
	box-sizing: border-box;
}
.bd-train::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding-top: calc(220 / 980 * 100%);
	background: url(https://images.neopets.com/dome/pages/header_bg.png) center / 100% 100% no-repeat;
	z-index: 0;
	pointer-events: none;
}
.bd-train__expansion {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	bottom: 0;
	background: url(https://images.neopets.com/dome/pages/expansion_bg.png) center / 100% 100% no-repeat;
	pointer-events: none;
	z-index: 0;
}
.bd-train__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 20px;
	row-gap: 55px;
	padding: 0 20px 30px;
}
.bd-train__card {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.bd-train__card-img {
	position: relative;
	display: inline-block;
}
.bd-train__card-img .bd-train__img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}
.bd-section-btn,
.bd-section-btn * {
	cursor: pointer !important;
	font-family: 'Bangers', 'CCSmash', sans-serif !important;
	color: #fff !important;
	text-align: center !important;
	text-shadow: 0 2px 0 #000 !important;
	-webkit-text-stroke-width: 0.6px;
	-webkit-text-stroke-color: #000;
	font-size: 16pt !important;
	font-weight: 400 !important;
	line-height: normal !important;
	text-transform: uppercase !important;
}
.bd-section-btn {
	position: absolute;
	display: block;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 50%);
	width: 80%;
	text-align: center;
	box-sizing: border-box;
}
.bd-train__tip {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 10px 20px 20px;
}
.bd-train__tip .bd-train__tip-bubble {
	flex: 1;
	min-width: 200px;
}
.bd-train__tip .bd-train__tip-host {
	flex-shrink: 0;
	width: 200px;
}
@media (max-width: 518px) { .bd-train__tip { display: none; } }
@media (max-width: 600px) {
	.bd-train__grid { grid-template-columns: repeat(2, 1fr); }
	.bd-section-btn, .bd-section-btn * { font-size: 14pt !important; }
}
@media (max-width: 480px) {
	.bd-section-btn, .bd-section-btn * { font-size: 12pt !important; }
}
@media (max-width: 380px) {
	.bd-train__grid { grid-template-columns: 1fr; }
	.bd-section-btn, .bd-section-btn * { font-size: 11pt !important; }
}

/* ── Section title (shared: train + info) ── */
.bd-section-title {
	width: 90%;
	max-width: 980px;
	margin: 0 auto 10px;
	text-align: left;
}
.bd-section-title__wrap {
	position: relative;
	display: inline-block;
}
.bd-section-title__icon {
	display: block;
	width: 88px;
	height: 74px;
}
.bd-section-title__text {
	position: absolute;
	left: 0;
	bottom: 0;
	white-space: nowrap;
	font-family: 'Bangers', 'CCSmash', sans-serif;
	font-size: 40px;
	font-weight: 400;
	background: linear-gradient(to bottom, #fffd40, #ff9500);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0px 2px 1px #000);
	-webkit-text-stroke-width: 0.8px;
	-webkit-text-stroke-color: #0f0f0f;
}
@media (max-width: 768px) {
	.bd-section-title__icon { width: 66px; height: 55px; }
	.bd-section-title__text { font-size: 30px; }
}
@media (max-width: 480px) {
	.bd-section-title__icon { width: 44px; height: 37px; }
	.bd-section-title__text { font-size: 20px; }
}

/* ── Useful Information section ── */
.bd-info {
	position: relative;
	width: 90%;
	max-width: 980px;
	margin: 10px auto;
	padding: 30px 0 40px;
	box-sizing: border-box;
}
.bd-info::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding-top: calc(220 / 980 * 100%);
	background: transparent center / 100% 100% no-repeat;
	background-image: url(https://images.neopets.com/dome/pages/header_bg.png);
	z-index: 0;
	pointer-events: none;
}
.bd-info__grid {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 20px;
	row-gap: 30px;
	padding: 0 20px 30px;
}
.bd-info__item {
	flex: 1;
	display: flex;
	justify-content: center;
}
@media (max-width: 470px) {
	.bd-info__item { flex: 0 0 100%; padding: 10px 0; }
}
.bd-info__card {
	position: relative;
	width: 180px;
	height: 120px;
	background-size: 100% 100%;
	background-repeat: no-repeat;
}
.bd-info__card--battlepedia {
	background-image: url(https://images.neopets.com/dome/pages/battlepedia_bg.png);
}
.bd-info__card--tutorial {
	background-image: url(https://images.neopets.com/dome/pages/tutorial_bg.png);
}

/* ── Featured Challenge section ── */
.bd-featured {
	display: flex;
	gap: 12px;
	width: 90%;
	max-width: 980px;
	margin: 0 auto 40px;
	padding: 1.5em 2em 2em;
	box-sizing: border-box;
	border-image: url(https://images.neopets.com/plots/tvw/home/images/summary-backing.png) calc(150 / 3) calc(150 / 3) fill / 50px / 9px;
	color: #fff;
}
.bd-featured__card {
	flex: 1;
	display: flex;
	min-height: 200px;
	border-radius: 11px;
	border: 2px solid #FF52FD;
	box-shadow: 0 0 4px #FF52FD;
	overflow: hidden;
	box-sizing: border-box;
}
.bd-featured__card--fight    { background-color: #5745b3; }
.bd-featured__card--hospital { background-color: #aca1d9; }
.bd-featured__img {
	flex-shrink: 0;
	width: 200px;
	object-fit: cover;
	object-position: center;
	display: block;
}
.bd-featured__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
}
.bd-featured__title {
	position: relative;
	margin: 0 0 12px;
	color: #fff;
	font-family: "Cafeteria", 'Arial Bold', sans-serif;
	font-size: 20pt;
	letter-spacing: 1px;
	text-shadow: 1px 1px 0 #371A9A, -1px -1px 0 #371A9A, 1px -1px 0 #371A9A, -1px 1px 0 #371A9A;
}
.bd-featured__btn {
	display: block;
	text-decoration: none;
	margin-top: auto;
}
.bd-featured.tvw .plot-button {
	color: #000;
	text-shadow: none;
	background: linear-gradient(#FF46FF, #c100e5);
	border-radius: 15px;
	box-shadow: inset 0 0 0 1px #FF46FF, inset 0 -3px 2px 3px #9001ab, inset 0 2px 0 1px #ffbcfd, 0 0 0 2px rgba(0,0,0,1);
}
.bd-featured.tvw .plot-button:hover,
.bd-featured.tvw .plot-button:focus {
	background: linear-gradient(#ff71ff, #c921e8);
	box-shadow: inset 0 0 0 1px #ff71ff, inset 0 -3px 2px 3px #b101d2, inset 0 2px 0 1px #ffd9fd, 0 0 0 2px rgba(0,0,0,1);
}
@media (max-width: 851px) {
	.bd-featured__card { flex-direction: column; min-height: 0; }
	.bd-featured__img { width: auto; height: 140px; max-width: 100%; object-fit: cover; margin: 0 auto; display: block; }
}
@media (max-width: 580px) {
	.bd-featured { flex-direction: column; }
	.bd-featured__img { width: auto; max-height: clamp(60px, 20vw, 120px); margin: 0 auto; }
}

/* ── Home banner ── */
.bd-banner {
	position: relative;
	width: 90%;
	max-width: 810px;
	aspect-ratio: 810 / 250;
	margin: 0 auto 80px;
	background-image: url(https://images.neopets.com/dome/pages/battledome_header_bg.jpg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
}
.bd-banner__cta {
	position: absolute;
	left: calc(268 / 810 * 100%);
	bottom: calc(-46 / 250 * 100%);
	width: calc(274 / 810 * 100%);
	height: 0;
	padding-top: calc(76 / 810 * 100%);
	background-image: url(https://images.neopets.com/dome/pages/buttons/battle.png);
	background-size: 100% 300%;
	background-position: 0 0;
	background-repeat: no-repeat;
	cursor: pointer;
}
.bd-banner__cta:hover { background-position: 0 50%; }
