.dragon-home {
	display: grid;
	gap: 22px;
}

.hero-video-container {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.header {
	overflow: hidden;
	width: 100vw;
	height: clamp(780px, 56.25vw, 950px);
	margin-left: calc(50% - 50vw);
	background: #000;
}

.header-video-container {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: 0;
}

.hero-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-video-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.header-bottom-block {
	left: 50%;
	width: 1200px;
	max-width: 100%;
	transform: translateX(-50%);
	z-index: 2;
}

.dragon-panel {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(201, 63, 30, 0.16), transparent 28%),
		radial-gradient(circle at top left, rgba(218, 161, 66, 0.12), transparent 24%),
		linear-gradient(180deg, rgba(14, 18, 28, 0.98) 0%, rgba(6, 9, 16, 0.98) 100%);
	border: 1px solid rgba(186, 96, 43, 0.42);
	box-shadow: inset 0 0 0 1px rgba(255, 169, 82, 0.06), 0 0 28px rgba(0, 0, 0, 0.36);
	border-radius: 8px;
	padding: 24px;
}

.dragon-panel::before,
.dragon-panel::after {
	content: "";
	position: absolute;
	inset: -30%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .28s ease;
}

.dragon-panel::before {
	background:
		radial-gradient(circle, rgba(255, 179, 77, 0.8) 0 2px, transparent 3px) 8% 18%/120px 120px,
		radial-gradient(circle, rgba(255, 92, 34, 0.72) 0 2px, transparent 3px) 72% 20%/140px 140px,
		radial-gradient(circle, rgba(255, 205, 130, 0.75) 0 1.5px, transparent 2.5px) 28% 78%/110px 110px;
	animation: dragonSparkDrift 8s linear infinite;
}

.dragon-panel::after {
	background: radial-gradient(circle at center, rgba(255, 120, 38, 0.18), transparent 42%);
	animation: dragonFirePulse 2.8s ease-in-out infinite;
}

.dragon-panel:hover::before,
.dragon-panel:hover::after {
	opacity: 1;
}

.dragon-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: stretch;
}

.dragon-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.08;
	color: #fff4df;
	font-weight: 800;
	text-transform: uppercase;
	text-shadow: 0 0 16px rgba(255, 130, 53, 0.18);
}

.dragon-subtitle {
	margin: 0 0 14px;
	color: #ffcb87;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.dragon-copy {
	margin: 0 0 12px;
	color: #d6dde8;
	font-size: 13px;
	line-height: 1.9;
}

.dragon-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.dragon-chip {
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(135, 35, 18, 0.28);
	border: 1px solid rgba(255, 130, 58, 0.28);
	color: #ffd6a1;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.dragon-sidebox {
	background: linear-gradient(180deg, rgba(29, 16, 14, 0.94) 0%, rgba(14, 10, 12, 0.96) 100%);
	border: 1px solid rgba(180, 93, 43, 0.35);
	border-radius: 8px;
	padding: 18px;
}

.dragon-sidebox h3,
.dragon-section-title {
	margin: 0 0 12px;
	color: #ffd9a8;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
}

.dragon-stat-table {
	width: 100%;
	border-collapse: collapse;
}

.dragon-stat-table td {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 160, 88, 0.08);
	font-size: 12px;
	color: #dddce4;
}

.dragon-stat-table td:last-child {
	text-align: right;
	color: #8dd6ff;
	font-weight: 700;
}

.dragon-info-grid,
.dragon-phase-grid,
.dragon-community-grid {
	display: grid;
	gap: 18px;
}

.dragon-info-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dragon-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(13, 18, 28, 0.94) 0%, rgba(7, 10, 18, 0.96) 100%);
	border: 1px solid rgba(67, 102, 141, 0.34);
	border-radius: 8px;
	padding: 18px;
	box-shadow: inset 0 0 0 1px rgba(141, 198, 255, 0.04);
}

.dragon-card h3 {
	margin: 0 0 10px;
	color: #91d8ff;
	font-size: 18px;
	font-weight: 800;
}

.dragon-card p,
.dragon-card li {
	color: #d4dbe6;
	font-size: 13px;
	line-height: 1.8;
}

.dragon-card ul {
	margin: 0;
	padding-left: 18px;
}

.dragon-reset-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: end;
	margin-bottom: 18px;
}

.dragon-reset-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: #ffbd72;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .8px;
	text-transform: uppercase;
}

.dragon-reset-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 143, 57, 0.95), transparent);
	box-shadow: 0 0 10px rgba(255, 113, 42, 0.42);
}

.dragon-reset-title {
	margin: 0 0 10px;
	color: #fff1d6;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	text-shadow: 0 0 18px rgba(255, 130, 53, 0.22);
}

.dragon-reset-text {
	max-width: 650px;
	margin: 0;
	color: #d8dfeb;
	font-size: 13px;
	line-height: 1.8;
}

.dragon-reset-summary {
	min-width: 170px;
	padding: 13px 15px;
	background: linear-gradient(180deg, rgba(34, 18, 13, 0.92), rgba(8, 10, 16, 0.95));
	border: 1px solid rgba(255, 137, 60, 0.34);
	border-radius: 8px;
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(255, 183, 99, 0.05), 0 0 18px rgba(0, 0, 0, 0.22);
}

.dragon-reset-summary strong {
	display: block;
	color: #ffd79f;
	font-size: 24px;
	line-height: 1;
}

.dragon-reset-summary span {
	display: block;
	margin-top: 5px;
	color: #93d7ff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.dragon-quest-frame {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(255, 149, 45, 0.12), transparent 24%),
		radial-gradient(circle at bottom right, rgba(35, 127, 158, 0.1), transparent 28%),
		linear-gradient(90deg, rgba(80, 24, 12, 0.34), rgba(3, 10, 14, 0.84) 38%, rgba(8, 22, 32, 0.8)),
		linear-gradient(180deg, rgba(20, 11, 8, 0.98), rgba(4, 7, 11, 0.98));
	border: 1px solid rgba(211, 132, 55, 0.52);
	border-radius: 8px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 210, 130, 0.06),
		inset 0 0 28px rgba(255, 119, 34, 0.06),
		0 0 22px rgba(0, 0, 0, 0.32);
}

.dragon-quest-frame::before,
.dragon-quest-frame::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 6;
	width: 34px;
	pointer-events: none;
}

.dragon-quest-frame::before {
	left: 0;
	background: linear-gradient(90deg, rgba(255, 125, 39, 0.18), transparent);
	box-shadow: inset 12px 0 22px rgba(255, 120, 34, 0.08);
}

.dragon-quest-frame::after {
	right: 0;
	background: linear-gradient(270deg, rgba(255, 125, 39, 0.2), transparent);
	box-shadow: inset -12px 0 22px rgba(255, 120, 34, 0.1);
}

.dragon-quest-top-scroll {
	position: relative;
	z-index: 7;
	overflow-x: auto;
	overflow-y: hidden;
	height: 16px;
	background: linear-gradient(180deg, rgba(24, 12, 7, 0.96), rgba(7, 9, 13, 0.96));
	border-bottom: 1px solid rgba(212, 136, 59, 0.3);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 174, 75, 0.86) rgba(5, 8, 12, 0.8);
	scroll-behavior: smooth;
}

.dragon-quest-top-scroll div {
	height: 1px;
}

.dragon-quest-scroll {
	position: relative;
	z-index: 1;
	max-height: 640px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 156, 64, 0.72) rgba(5, 8, 12, 0.8);
	scroll-behavior: smooth;
}

.dragon-quest-top-scroll::-webkit-scrollbar,
.dragon-quest-scroll::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

.dragon-quest-top-scroll::-webkit-scrollbar-track,
.dragon-quest-scroll::-webkit-scrollbar-track {
	background: rgba(5, 8, 12, 0.86);
	border-radius: 999px;
}

.dragon-quest-top-scroll::-webkit-scrollbar-thumb,
.dragon-quest-scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, #7f3218, #e19643, #ffd17c);
	border-radius: 999px;
	border: 1px solid rgba(255, 210, 126, 0.22);
	box-shadow: 0 0 10px rgba(255, 132, 42, 0.3);
}

.dragon-quest-table {
	width: 100%;
	min-width: 920px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

.dragon-quest-table th,
.dragon-quest-table td {
	border: 0;
	border-right: 1px solid rgba(212, 136, 59, 0.34);
	border-bottom: 1px solid rgba(212, 136, 59, 0.26);
	padding: 8px 11px;
	color: #e7e0d1;
	font-size: 12px;
	line-height: 1.25;
	vertical-align: middle;
}

.dragon-quest-table th:last-child,
.dragon-quest-table td:last-child {
	border-right: 0;
}

.dragon-quest-table thead th {
	position: sticky;
	top: 0;
	z-index: 4;
	background:
		linear-gradient(90deg, rgba(83, 34, 13, 0.24), transparent 44%),
		linear-gradient(180deg, rgba(45, 24, 12, 0.98), rgba(12, 12, 14, 0.98));
	color: #f4cf78;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .35px;
	text-transform: uppercase;
	text-shadow: 0 0 10px rgba(255, 180, 62, 0.24);
	box-shadow: inset 0 -1px 0 rgba(255, 190, 92, 0.34), 0 3px 12px rgba(0, 0, 0, 0.28);
}

.dragon-quest-table tbody tr {
	background:
		linear-gradient(90deg, rgba(49, 15, 8, 0.72), rgba(8, 17, 14, 0.88) 45%, rgba(7, 18, 28, 0.82));
	transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}

.dragon-quest-table tbody tr:nth-child(even) {
	background:
		linear-gradient(90deg, rgba(36, 13, 8, 0.78), rgba(7, 15, 15, 0.9) 45%, rgba(5, 15, 24, 0.84));
}

.dragon-quest-table tbody tr:hover {
	background:
		linear-gradient(90deg, rgba(85, 33, 12, 0.92), rgba(25, 31, 17, 0.96) 46%, rgba(12, 33, 46, 0.92));
	box-shadow:
		inset 0 0 0 1px rgba(255, 179, 77, 0.18),
		inset 0 0 18px rgba(255, 123, 34, 0.12),
		0 0 18px rgba(255, 107, 31, 0.08);
}

.dragon-quest-table tbody tr:hover .dragon-quest-level {
	background: linear-gradient(180deg, rgba(72, 30, 12, 0.99), rgba(15, 14, 14, 0.99));
	color: #fff0a6 !important;
}

.dragon-quest-level {
	width: 58px;
	position: sticky;
	left: 0;
	z-index: 3;
	background: linear-gradient(180deg, rgba(45, 20, 10, 0.98), rgba(10, 11, 14, 0.98));
	text-align: center;
	color: #ffe37f !important;
	font-size: 15px !important;
	font-weight: 900;
	text-shadow: 0 0 10px rgba(255, 212, 70, 0.28);
	box-shadow: 6px 0 14px rgba(0, 0, 0, 0.28), inset -1px 0 0 rgba(255, 180, 72, 0.28);
}

.dragon-quest-table thead .dragon-quest-level {
	z-index: 8;
	background: linear-gradient(180deg, rgba(65, 28, 12, 1), rgba(14, 12, 13, 1));
}

.dragon-quest-objective {
	width: 30%;
	color: #f3ead8 !important;
	font-weight: 700;
}

.dragon-quest-map {
	width: 16%;
	color: #e8d4aa !important;
	white-space: nowrap;
}

.dragon-quest-reward-main {
	width: 27%;
}

.dragon-quest-reward-extra {
	width: 22%;
}

.dragon-reward {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	max-width: 100%;
	color: #e9e1d1;
	font-weight: 700;
}

.dragon-reward-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: rgba(6, 9, 13, 0.86);
	border: 1px solid rgba(255, 202, 115, 0.3);
	color: #ffd271;
	font-size: 9px;
	font-weight: 900;
	box-shadow: inset 0 0 8px rgba(255, 176, 68, 0.1);
}

.dragon-reward-zen { color: #ffd36d; }
.dragon-reward-jewel { color: #8ee8ff; }
.dragon-reward-stats { color: #fff177; }
.dragon-reward-gp { color: #ffad55; }
.dragon-reward-item { color: #d9e7d0; }
.dragon-reward-empty { color: #907f68; }

.dragon-reward-stats,
.dragon-reward-jewel {
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dragon-quest-table tbody tr:hover .dragon-reward-stats,
.dragon-quest-table tbody tr:hover .dragon-reward-jewel,
.dragon-quest-table tbody tr:hover .dragon-reward-zen {
	animation: dragonRewardPulse 1.6s ease-in-out infinite;
}

.dragon-reward-jewel .dragon-reward-icon {
	border-color: rgba(111, 220, 255, 0.42);
	color: #8feaff;
	box-shadow: inset 0 0 8px rgba(72, 186, 255, 0.16);
}

.dragon-reward-stats .dragon-reward-icon {
	border-color: rgba(255, 231, 90, 0.45);
	color: #fff177;
}

.dragon-reward-gp .dragon-reward-icon,
.dragon-reward-zen .dragon-reward-icon {
	border-color: rgba(255, 177, 71, 0.48);
	color: #ffca68;
}

.dragon-phase-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dragon-phase-card {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(215, 86, 40, 0.14), transparent 32%),
		linear-gradient(180deg, rgba(18, 15, 20, 0.97) 0%, rgba(8, 10, 16, 0.98) 100%);
	border: 1px solid rgba(182, 98, 46, 0.34);
	border-radius: 8px;
	padding: 18px 18px 16px;
	box-shadow: inset 0 0 0 1px rgba(255, 157, 78, 0.05);
	transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.dragon-phase-card::before {
	content: "";
	position: absolute;
	inset: -30%;
	opacity: 0;
	pointer-events: none;
	background:
		radial-gradient(circle, rgba(255, 182, 79, 0.85) 0 2px, transparent 3px) 12% 18%/130px 130px,
		radial-gradient(circle, rgba(255, 91, 36, 0.75) 0 2px, transparent 3px) 74% 16%/120px 120px,
		radial-gradient(circle, rgba(255, 214, 138, 0.78) 0 1.5px, transparent 2.5px) 24% 76%/150px 150px;
	transition: opacity .25s ease;
	animation: dragonSparkDrift 7s linear infinite;
}

.dragon-phase-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 139, 64, 0.68);
	box-shadow: 0 0 24px rgba(186, 73, 29, 0.22), inset 0 0 0 1px rgba(255, 173, 82, 0.08);
}

.dragon-phase-card:hover::before {
	opacity: 1;
}

.dragon-phase-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.dragon-phase-name {
	color: #fff3dc;
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
}

.dragon-reset-badge {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(40, 77, 111, 0.42);
	border: 1px solid rgba(121, 196, 255, 0.24);
	color: #98ddff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.dragon-duration {
	display: inline-block;
	margin-bottom: 12px;
	color: #ffca85;
	font-size: 12px;
	font-weight: 700;
}

.dragon-phase-card ul {
	margin: 0;
	padding-left: 18px;
}

.dragon-phase-card li {
	margin-bottom: 7px;
	color: #d9dee7;
	font-size: 13px;
	line-height: 1.7;
}

.dragon-final-line {
	margin: 0;
	color: #fff0d8;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.6;
	text-transform: uppercase;
	text-align: center;
	text-shadow: 0 0 14px rgba(255, 128, 52, 0.18);
}

.dragon-final-panel {
	padding: 34px 24px;
	text-align: center;
}

.dragon-final-subtext {
	margin: 14px auto 0;
	max-width: 720px;
	color: #d5dbe4;
	font-size: 14px;
	line-height: 1.9;
}

@keyframes dragonSparkDrift {
	0% { transform: translate3d(-10px, 0, 0) rotate(0deg); }
	50% { transform: translate3d(12px, -8px, 0) rotate(180deg); }
	100% { transform: translate3d(-10px, 0, 0) rotate(360deg); }
}

@keyframes dragonFirePulse {
	0%, 100% { transform: scale(1); opacity: .16; }
	50% { transform: scale(1.08); opacity: .28; }
}

@keyframes dragonRewardPulse {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.18); }
}

@media screen and (max-width: 960px) {
	.dragon-hero,
	.dragon-info-grid,
	.dragon-reset-intro,
	.dragon-phase-grid {
		grid-template-columns: 1fr;
	}

	.dragon-reset-summary {
		text-align: left;
	}
}

@media screen and (max-width: 560px) {
	.dragon-panel {
		padding: 18px 14px;
	}

	.dragon-reset-title {
		font-size: 22px;
	}

	.dragon-quest-frame {
		border-radius: 8px;
	}

	.dragon-quest-scroll {
		max-height: 520px;
	}

	.dragon-quest-table {
		min-width: 760px;
	}

	.dragon-quest-table td {
		padding: 8px 9px;
		font-size: 11px;
	}

	.dragon-quest-level {
		width: 50px;
		font-size: 13px !important;
	}

	.dragon-quest-objective {
		width: 29%;
		font-size: 11px !important;
	}

	.dragon-quest-map {
		width: 15%;
	}

	.dragon-quest-reward-main {
		width: 28%;
	}

	.dragon-quest-reward-extra {
		width: 23%;
	}

	.dragon-reward {
		gap: 5px;
	}

	.dragon-reward-icon {
		width: 17px;
		height: 17px;
		font-size: 8px;
	}
}
