/* Pet Tutorial — dungeon-page block + gift modal */

.inv-dng-tutorial {
	background: linear-gradient(135deg, #1a2340 0%, #111827 100%);
	border: 1px solid #374151;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}
.inv-dng-tutorial__title {
	margin: 0 0 12px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: #f59e0b;
}
.inv-dng-tutorial-steps {
	display: grid;
	gap: 8px;
}

.inv-tut-progress {
	margin-bottom: 4px;
	padding: 10px 12px;
	background: #080d1a;
	border: 1px solid #1f2937;
	border-radius: 8px;
}
.inv-tut-progress__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #9ca3af;
	margin-bottom: 6px;
}
.inv-tut-progress__count {
	color: #f59e0b;
	letter-spacing: normal;
	font-size: 14px;
}
.inv-tut-progress__track {
	width: 100%;
	height: 6px;
	background: #1f2937;
	border-radius: 4px;
	overflow: hidden;
}
.inv-tut-progress__fill {
	height: 100%;
	background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
	transition: width 0.4s ease;
	border-radius: 4px;
}

.inv-tut-card {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #080d1a;
	border: 1px solid #1f2937;
	border-radius: 8px;
	transition: border-color .15s;
}
.inv-tut-card:hover:not(.inv-tut-card--locked):not(.inv-tut-card--done) {
	border-color: #f59e0b;
}
.inv-tut-card--done {
	opacity: 0.6;
	border-color: #10b981;
}
.inv-tut-card--locked {
	opacity: 0.45;
}

.inv-tut-card__num {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #f59e0b;
	color: #080d1a;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inv-tut-card--done .inv-tut-card__num {
	background: #10b981;
}
.inv-tut-card--locked .inv-tut-card__num {
	background: #374151;
	color: #6b7280;
}

.inv-tut-card__name {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #e5e7eb;
}
.inv-tut-card__hint {
	font-size: 13px;
	color: #9ca3af;
	margin-top: 2px;
	line-height: 1.4;
}

.inv-tut-start-btn {
	background: #f59e0b;
	color: #080d1a;
	border: none;
	border-radius: 6px;
	padding: 8px 18px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .15s;
}
.inv-tut-start-btn:hover {
	background: #fbbf24;
}

.inv-tut-done {
	color: #10b981;
	font-weight: 700;
	font-size: 13px;
}
.inv-tut-locked {
	color: #6b7280;
	font-size: 20px;
}

/* ── Stage grid lockout overlay ─────────────────────────────────── */

.inv-dng-locked {
	position: relative;
	pointer-events: none;
	filter: grayscale(0.8) blur(1px);
	opacity: 0.55;
}
.inv-dng-lock-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	background: rgba(8, 13, 26, 0.45);
	border-radius: 12px;
	z-index: 5;
}
.inv-dng-lock-card {
	background: #111827;
	border: 1px solid #f59e0b;
	border-radius: 10px;
	padding: 20px 28px;
	text-align: center;
	max-width: 320px;
	filter: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.inv-dng-lock-icon {
	font-size: 40px;
	margin-bottom: 8px;
}
.inv-dng-lock-title {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #f59e0b;
	margin-bottom: 6px;
}
.inv-dng-lock-sub {
	font-size: 13px;
	color: #9ca3af;
	line-height: 1.4;
}

/* ── In-combat hint banner ──────────────────────────────────────── */

.inv-tut-hint {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 540px;
	width: calc(100% - 32px);
	background: linear-gradient(135deg, #1a2340 0%, #111827 100%);
	border: 1px solid #f59e0b;
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
	z-index: 9999;
	animation: invTutSlideDown 0.35s ease-out;
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.inv-tut-hint--fade {
	opacity: 0;
	transform: translateX(-50%) translateY(-20px);
}
@keyframes invTutSlideDown {
	from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.inv-tut-hint__num {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #f59e0b;
	color: #080d1a;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inv-tut-hint__text {
	flex: 1;
	font-size: 14px;
	color: #e5e7eb;
	line-height: 1.4;
}
.inv-tut-hint__close {
	flex-shrink: 0;
	background: none;
	border: none;
	color: #9ca3af;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 8px;
	transition: color .15s;
}
.inv-tut-hint__close:hover {
	color: #f59e0b;
}

/* ── Guided tour tooltip (T1 step-by-step) ──────────────────────── */

.inv-tut-guide {
	position: absolute;
	z-index: 10500;
	max-width: 260px;
	background: linear-gradient(135deg, #1a2340 0%, #111827 100%);
	border: 2px solid #f59e0b;
	border-radius: 10px;
	padding: 12px 14px;
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
	animation: invTutGuideIn 0.3s ease-out;
	pointer-events: none; /* player interacts with the anchor, not the bubble */
}
@keyframes invTutGuideIn {
	from { opacity: 0; transform: scale(0.85) translateY(-6px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.inv-tut-guide__title {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 12px;
	color: #f59e0b;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.inv-tut-guide__text {
	font-size: 13px;
	color: #e5e7eb;
	line-height: 1.45;
}
.inv-tut-guide__arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
}
.inv-tut-guide--above .inv-tut-guide__arrow {
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	border-top: 10px solid #f59e0b;
}
.inv-tut-guide--below .inv-tut-guide__arrow {
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	border-bottom: 10px solid #f59e0b;
}

/* Pulse the target element so the player's eye is drawn there */
.inv-tut-anchor-pulse {
	animation: invTutPulse 1.2s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
	border-radius: 8px;
	position: relative;
	z-index: 10100;
}
@keyframes invTutPulse {
	0%, 100% { box-shadow: 0 0 0 0   rgba(245, 158, 11, 0.7); }
	50%      { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);   }
}

/* ── T5 Graduation modal ────────────────────────────────────────── */

.inv-tut-grad-overlay {
	position: fixed;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, rgba(8, 13, 26, 0.95) 70%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	animation: invTutGradFadeIn 0.5s ease-out;
}
@keyframes invTutGradFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.inv-tut-grad-card {
	position: relative;
	background: linear-gradient(135deg, #1a2340 0%, #111827 100%);
	border: 2px solid #f59e0b;
	border-radius: 14px;
	padding: 36px 32px 28px;
	max-width: 520px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.2) inset;
	animation: invTutGradSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes invTutGradSlideIn {
	from { opacity: 0; transform: scale(0.7) translateY(20px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.inv-tut-grad-sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: 14px;
}
.inv-tut-grad-sparkle {
	position: absolute;
	font-size: 22px;
	animation: invTutSparkleFloat 3s ease-in-out infinite;
}
.inv-tut-grad-sparkle:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.inv-tut-grad-sparkle:nth-child(2) { top: 18%; right: 10%; animation-delay: 0.4s; }
.inv-tut-grad-sparkle:nth-child(3) { top: 55%; left: 4%; animation-delay: 0.8s; }
.inv-tut-grad-sparkle:nth-child(4) { top: 62%; right: 6%; animation-delay: 1.2s; }
.inv-tut-grad-sparkle:nth-child(5) { bottom: 18%; left: 12%; animation-delay: 1.6s; }
.inv-tut-grad-sparkle:nth-child(6) { bottom: 22%; right: 14%; animation-delay: 2.0s; }
@keyframes invTutSparkleFloat {
	0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
	50%      { transform: translateY(-14px) scale(1.3) rotate(20deg); opacity: 1; }
}

.inv-tut-grad-trophy {
	font-size: 72px;
	line-height: 1;
	margin: 0 0 12px;
	animation: invTutTrophyBounce 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
	filter: drop-shadow(0 8px 24px rgba(245, 158, 11, 0.6));
}
@keyframes invTutTrophyBounce {
	0%   { transform: scale(0) rotate(-180deg); }
	60%  { transform: scale(1.2) rotate(10deg); }
	100% { transform: scale(1) rotate(0deg); }
}
.inv-tut-grad-title {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 42px;
	color: #f59e0b;
	text-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
	margin: 0 0 8px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.inv-tut-grad-sub {
	color: #e5e7eb;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 20px;
}
.inv-tut-grad-list {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	text-align: left;
	background: #080d1a;
	border: 1px solid #1f2937;
	border-radius: 8px;
	padding: 14px 16px;
}
.inv-tut-grad-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #d1d5db;
	line-height: 1.5;
	padding: 6px 0;
}
.inv-tut-grad-check {
	color: #10b981;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
	width: 20px;
	text-align: center;
}
.inv-tut-grad-cta-hint {
	color: #9ca3af;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 22px;
	font-style: italic;
}
.inv-tut-grad-actions {
	display: flex;
	justify-content: center;
}
.inv-tut-grad-enter {
	background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
	color: #080d1a;
	border: none;
	border-radius: 8px;
	padding: 14px 32px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.inv-tut-grad-enter:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
}
.inv-tut-grad-soon {
	margin-top: 18px;
	padding: 10px 14px;
	background: rgba(59, 130, 246, 0.08);
	border: 1px dashed rgba(59, 130, 246, 0.5);
	border-radius: 8px;
	text-align: left;
	font-size: 12px;
	color: #93c5fd;
	line-height: 1.5;
}
.inv-tut-grad-soon__label {
	display: block;
	font-weight: 700;
	font-family: 'Rajdhani', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #60a5fa;
	margin-bottom: 2px;
}
.inv-tut-grad-soon__text {
	display: block;
	color: #9ca3af;
}

/* ── Gift modal ─────────────────────────────────────────────────── */

.inv-tut-gift-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 13, 26, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}
.inv-tut-gift-card {
	background: #111827;
	border: 1px solid #374151;
	border-radius: 12px;
	max-width: 480px;
	width: 100%;
	padding: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.inv-tut-gift-card h2 {
	margin: 0 0 4px;
	font-family: 'Rajdhani', sans-serif;
	color: #f59e0b;
	font-size: 26px;
}
.inv-tut-gift-sub {
	margin: 0 0 18px;
	color: #9ca3af;
	font-size: 14px;
}

.inv-tut-gift-species {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}
.inv-tut-species {
	background: #080d1a;
	border: 2px solid #1f2937;
	border-radius: 8px;
	padding: 14px;
	color: #e5e7eb;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: border-color .15s, transform .1s;
	text-align: center;
	line-height: 1.3;
}
.inv-tut-species small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #9ca3af;
	font-weight: 400;
}
.inv-tut-species:hover {
	border-color: #f59e0b;
	transform: translateY(-2px);
}
.inv-tut-species--selected {
	border-color: #f59e0b;
	background: #1a1408;
}

.inv-tut-gift-label {
	display: block;
	font-size: 13px;
	color: #9ca3af;
	margin-bottom: 6px;
}
#inv-tut-gift-name {
	width: 100%;
	padding: 10px 12px;
	background: #080d1a;
	border: 1px solid #374151;
	border-radius: 6px;
	color: #e5e7eb;
	font-size: 15px;
	box-sizing: border-box;
}
#inv-tut-gift-name:focus {
	outline: none;
	border-color: #f59e0b;
}

.inv-tut-gift-actions {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
}
.inv-tut-gift-confirm {
	background: #f59e0b;
	color: #080d1a;
	border: none;
	border-radius: 6px;
	padding: 10px 24px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.inv-tut-gift-confirm:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.inv-tut-gift-confirm:not(:disabled):hover {
	background: #fbbf24;
}

/* Bag teaching modal — reuses .inv-tut-gift-overlay + .inv-tut-gift-card */
.inv-tut-bag-hint-card h2 {
	font-size: 20px;
	margin: 0 0 10px;
	color: #fbbf24;
}
.inv-tut-bag-hint-list {
	margin: 12px 0 6px;
	padding-left: 22px;
	color: #e5e7eb;
	font-size: 14px;
	line-height: 1.6;
}
.inv-tut-bag-hint-list li { margin-bottom: 4px; }
.inv-tut-bag-hint-list strong { color: #fbbf24; }
