/* Lux mirror gradient — premium item shop */

:root {
	--lux-mirror: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.16) 0%,
		rgba(255, 255, 255, 0.05) 22%,
		rgba(30, 26, 48, 0.35) 48%,
		rgba(255, 255, 255, 0.07) 72%,
		rgba(210, 170, 90, 0.08) 100%
	);
	--lux-card: linear-gradient(
		160deg,
		rgba(255, 255, 255, 0.11) 0%,
		rgba(255, 255, 255, 0.03) 40%,
		rgba(18, 16, 32, 0.4) 100%
	);
	--lux-border: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.35) 0%,
		rgba(255, 255, 255, 0.06) 40%,
		rgba(200, 160, 80, 0.2) 70%,
		rgba(255, 255, 255, 0.12) 100%
	);
	--glass-blur: blur(40px) saturate(160%);
	--glass-blur-sm: blur(20px) saturate(150%);
	--is-text: rgba(252, 250, 255, 0.96);
	--is-text-secondary: rgba(220, 215, 235, 0.62);
	--is-text-tertiary: rgba(180, 175, 200, 0.45);
	--is-gold: #f0d060;
	--is-gold-soft: rgba(240, 208, 96, 0.88);
	--is-champagne: #e8dcc8;
	--is-radius-sm: 12px;
	--is-radius-md: 18px;
	--is-radius-lg: 28px;
	--is-radius-pill: 980px;
	--is-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.d-none { display: none !important; }
.p-4 { padding: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-danger { color: #ff453a; }

.itemshop-body {
	margin: 0;
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-feature-settings: "kern" 1;
	-webkit-font-smoothing: antialiased;
	color: var(--is-text);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2rem);
	background: #120e22;
}

.itemshop-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.itemshop-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	z-index: 0;
}

.itemshop-bg-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(145deg, rgba(30, 22, 53, 0.68) 0%, rgba(42, 31, 74, 0.52) 28%, rgba(26, 40, 64, 0.58) 55%, rgba(61, 42, 24, 0.62) 82%, rgba(26, 21, 48, 0.72) 100%);
	background-size: 200% 200%;
	animation: lux-bg-shift 18s ease infinite;
}

@keyframes lux-bg-shift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.itemshop-bg-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	z-index: 2;
}

.itemshop-bg-orb--1 {
	width: 50vw;
	height: 50vw;
	max-width: 540px;
	max-height: 540px;
	top: -15%;
	left: -10%;
	background: radial-gradient(circle, rgba(140, 100, 255, 0.45) 0%, transparent 65%);
	opacity: 0.7;
	animation: is-float-1 20s ease-in-out infinite;
}

.itemshop-bg-orb--2 {
	width: 46vw;
	height: 46vw;
	max-width: 500px;
	max-height: 500px;
	bottom: -18%;
	right: -12%;
	background: radial-gradient(circle, rgba(220, 170, 70, 0.4) 0%, transparent 65%);
	opacity: 0.65;
	animation: is-float-2 24s ease-in-out infinite;
}

.itemshop-bg-orb--3 {
	width: 36vw;
	height: 36vw;
	max-width: 400px;
	max-height: 400px;
	top: 45%;
	left: 38%;
	background: radial-gradient(circle, rgba(80, 180, 220, 0.3) 0%, transparent 65%);
	opacity: 0.55;
	animation: is-float-3 22s ease-in-out infinite;
}

@keyframes is-float-1 {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(4%, 5%); }
}

@keyframes is-float-2 {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(-5%, -3%); }
}

@keyframes is-float-3 {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(3%, -3%); }
}

.itemshop-bgm {
	display: none;
}

.itemshop-audio-btn {
	position: absolute;
	right: 0.65rem;
	bottom: 0.55rem;
	z-index: 12;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: rgba(235, 225, 200, 0.42);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.48;
	box-shadow: none;
	transition:
		opacity 0.3s var(--is-ease),
		color 0.3s var(--is-ease),
		background 0.3s var(--is-ease);
}

.itemshop-audio-btn:hover,
.itemshop-audio-btn:focus-visible {
	outline: none;
	opacity: 0.9;
	color: var(--is-gold);
	background: rgba(20, 16, 36, 0.55);
	box-shadow: 0 0 12px rgba(240, 208, 96, 0.12);
}

.itemshop-audio-btn-icon {
	font-size: 0.72rem;
	line-height: 1;
	font-weight: 500;
}

.itemshop-audio-btn-icon--off {
	display: none;
	opacity: 0.5;
	position: relative;
}

.itemshop-audio-btn-icon--off::after {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	top: 50%;
	height: 1px;
	background: currentColor;
	transform: rotate(-35deg);
}

.itemshop-audio-btn.is-playing .itemshop-audio-btn-icon--on {
	display: inline;
}

.itemshop-audio-btn.is-playing .itemshop-audio-btn-icon--off {
	display: none;
}

.itemshop-audio-btn.is-muted .itemshop-audio-btn-icon--on {
	display: none;
}

.itemshop-audio-btn.is-muted .itemshop-audio-btn-icon--off {
	display: inline;
}

.itemshop-audio-btn:not(.is-playing):not(.is-muted) .itemshop-audio-btn-icon--on {
	display: inline;
}

.itemshop-window {
	position: relative;
	z-index: 1;
	width: min(1040px, 100%);
	height: min(92vh, 780px);
	max-height: min(92vh, 780px);
	background: var(--lux-mirror);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-radius: var(--is-radius-lg);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		inset 0 -1px 0 rgba(0, 0, 0, 0.15),
		0 32px 64px rgba(0, 0, 0, 0.35),
		0 0 80px rgba(160, 120, 255, 0.08),
		0 0 40px rgba(220, 170, 70, 0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.itemshop-window::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--lux-border);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
}

.itemshop-window .itemshop-cat-btn {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	color: inherit;
}

.itemshop-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1.35rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
	backdrop-filter: var(--glass-blur-sm);
	-webkit-backdrop-filter: var(--glass-blur-sm);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	flex-wrap: wrap;
	flex-shrink: 0;
	position: relative;
	z-index: 3;
}

.itemshop-coin {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff8c8, var(--is-gold) 45%, #a07820 100%);
	box-shadow: 0 0 10px rgba(240, 208, 96, 0.55);
	flex-shrink: 0;
}

.itemshop-donate-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.48rem 1.05rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #1a1208;
	text-decoration: none;
	background: linear-gradient(135deg, #f5e090 0%, #d4a840 45%, #b88828 100%);
	border: 1px solid rgba(255, 240, 180, 0.4);
	border-radius: var(--is-radius-pill);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		0 4px 20px rgba(212, 168, 64, 0.35);
	transition: transform 0.2s var(--is-ease), box-shadow 0.25s var(--is-ease);
}

.itemshop-donate-btn:hover {
	transform: scale(1.03);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		0 6px 28px rgba(212, 168, 64, 0.5);
	color: #1a1208;
}

.itemshop-donate-btn:active {
	transform: scale(0.97);
}

.itemshop-header-spacer {
	flex: 1;
	min-width: 0.5rem;
}

.itemshop-search-wrap {
	flex: 1 1 200px;
	max-width: 280px;
	position: relative;
}

.itemshop-search-wrap::before {
	content: "";
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(220,215,235,0.55)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
	z-index: 1;
}

.itemshop-search {
	width: 100%;
	padding: 0.55rem 0.9rem 0.55rem 2.35rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--is-text);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--is-radius-pill);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transition: border-color 0.2s var(--is-ease), box-shadow 0.2s var(--is-ease);
}

.itemshop-search::placeholder {
	color: var(--is-text-tertiary);
}

.itemshop-search:focus {
	outline: none;
	border-color: rgba(240, 208, 96, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 3px rgba(240, 208, 96, 0.12);
}

.itemshop-header-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.itemshop-lang {
	display: flex;
	align-items: center;
	padding: 3px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--is-radius-pill);
	font-size: 0.75rem;
	font-weight: 600;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.itemshop-lang a {
	color: var(--is-text-tertiary);
	text-decoration: none;
	padding: 0.28rem 0.65rem;
	border-radius: var(--is-radius-pill);
	transition: color 0.2s var(--is-ease), background 0.2s var(--is-ease);
}

.itemshop-lang a.active {
	color: var(--is-champagne);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.itemshop-lang a:hover:not(.active) {
	color: var(--is-text-secondary);
}

.itemshop-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--is-text-secondary);
	text-decoration: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	font-size: 1.1rem;
	line-height: 1;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transition: background 0.2s var(--is-ease), transform 0.2s var(--is-ease);
}

.itemshop-close:hover {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
	transform: scale(1.05);
	color: var(--is-text);
}

.itemshop-body-inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	position: relative;
	z-index: 3;
}

.itemshop-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 0 1.35rem;
}

.itemshop-page-title {
	margin: 0;
	padding: 1.3rem 0 0.85rem;
	text-align: center;
	font-size: clamp(1.15rem, 2.2vw, 1.55rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: linear-gradient(
		180deg,
		#ffffff 0%,
		var(--is-champagne) 45%,
		var(--is-gold) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 12px rgba(240, 208, 96, 0.25));
	flex-shrink: 0;
}

.itemshop-categories {
	display: flex;
	gap: 0.45rem;
	padding: 0 0 1rem;
	overflow-x: auto;
	flex-shrink: 0;
	scrollbar-width: none;
}

.itemshop-categories::-webkit-scrollbar {
	display: none;
}

.itemshop-cat-btn {
	flex-shrink: 0;
	padding: 0.44rem 0.95rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--is-text-secondary);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--is-radius-pill);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: color 0.2s var(--is-ease), background 0.2s var(--is-ease), border-color 0.2s var(--is-ease), box-shadow 0.2s var(--is-ease), transform 0.15s var(--is-ease);
	white-space: nowrap;
}

.itemshop-cat-btn:hover {
	color: var(--is-text);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
	border-color: rgba(255, 255, 255, 0.18);
}

.itemshop-cat-btn.active {
	color: var(--is-champagne);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(240, 208, 96, 0.1) 100%);
	border-color: rgba(240, 208, 96, 0.3);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 0 20px rgba(240, 208, 96, 0.1);
}

.itemshop-cat-btn:active {
	transform: scale(0.97);
}

.itemshop-grid-wrap {
	flex: 1;
	overflow-y: auto;
	padding: 0 0 1rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.itemshop-grid-wrap::-webkit-scrollbar {
	width: 4px;
}

.itemshop-grid-wrap::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

.itemshop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 0.8rem;
}

.itemshop-item {
	position: relative;
	background: var(--lux-card);
	backdrop-filter: var(--glass-blur-sm);
	-webkit-backdrop-filter: var(--glass-blur-sm);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--is-radius-md);
	padding: 1rem 0.75rem 0.85rem;
	min-height: 152px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.14),
		0 4px 16px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	cursor: default;
	transition:
		transform 0.35s var(--is-ease),
		box-shadow 0.35s var(--is-ease),
		border-color 0.35s var(--is-ease);
}

.itemshop-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 45%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
	pointer-events: none;
	border-radius: var(--is-radius-md) var(--is-radius-md) 0 0;
	z-index: 1;
}

.itemshop-item-glow {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0;
	background: radial-gradient(circle at 50% 30%, rgba(240, 208, 96, 0.18) 0%, transparent 65%);
	transition: opacity 0.35s var(--is-ease);
	pointer-events: none;
	z-index: 0;
}

.itemshop-item:hover,
.itemshop-item:focus-within {
	transform: translateY(-6px) scale(1.04);
	border-color: rgba(240, 208, 96, 0.45);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 20px 48px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(240, 208, 96, 0.2),
		0 0 36px rgba(240, 208, 96, 0.14);
}

.itemshop-item:hover .itemshop-item-glow,
.itemshop-item:focus-within .itemshop-item-glow {
	opacity: 1;
}

.itemshop-item.hidden {
	display: none;
}

.itemshop-item-body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	transition: opacity 0.28s var(--is-ease), transform 0.28s var(--is-ease);
}

.itemshop-item:hover .itemshop-item-body,
.itemshop-item:focus-within .itemshop-item-body {
	opacity: 0;
	transform: translateY(6px) scale(0.96);
}

.itemshop-item-name {
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(248, 246, 255, 0.92);
	line-height: 1.35;
	min-height: 2.2em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.itemshop-item-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--is-gold-soft);
	background: linear-gradient(135deg, rgba(240, 208, 96, 0.15) 0%, rgba(240, 208, 96, 0.06) 100%);
	border: 1px solid rgba(240, 208, 96, 0.22);
	padding: 0.26rem 0.65rem;
	border-radius: var(--is-radius-pill);
	box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.12);
}

.itemshop-item-row {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s var(--is-ease);
}

.itemshop-item:hover .itemshop-item-row,
.itemshop-item:focus-within .itemshop-item-row {
	transform: translateY(-4px) scale(1.08);
}

.itemshop-item.has-desc:hover .itemshop-item-row,
.itemshop-item.has-desc:focus-within .itemshop-item-row {
	transform: none;
}

.itemshop-item.has-desc:hover .itemshop-item-img,
.itemshop-item.has-desc:focus-within .itemshop-item-img {
	transform: scale(1.06);
}

.itemshop-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.08) 100%);
	border-radius: var(--is-radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transition:
		border-color 0.3s var(--is-ease),
		box-shadow 0.3s var(--is-ease),
		background 0.3s var(--is-ease);
}

.itemshop-item:hover .itemshop-item-icon,
.itemshop-item:focus-within .itemshop-item-icon {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(240, 208, 96, 0.08) 100%);
	border-color: rgba(240, 208, 96, 0.45);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		0 0 28px rgba(240, 208, 96, 0.25),
		0 8px 24px rgba(0, 0, 0, 0.3);
}

.itemshop-item-icon--buy {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.itemshop-item-icon--buy:hover,
.itemshop-item-icon--buy:focus-visible {
	outline: none;
}

.itemshop-item-img {
	width: 40px;
	height: 40px;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
	transition: transform 0.35s var(--is-ease), filter 0.35s var(--is-ease);
}

.itemshop-item:hover .itemshop-item-img,
.itemshop-item:focus-within .itemshop-item-img {
	transform: scale(1.12);
	filter: drop-shadow(0 0 14px rgba(240, 208, 96, 0.45));
}

.itemshop-item-desc-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: calc(1rem + 64px + 0.15rem);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding: 0.35rem 0.55rem 0.55rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.32s var(--is-ease), transform 0.32s var(--is-ease);
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(22, 18, 38, 0.94) 0%,
		rgba(14, 12, 26, 0.98) 100%
	);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 0 0 var(--is-radius-md) var(--is-radius-md);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.itemshop-item:hover .itemshop-item-desc-panel,
.itemshop-item:focus-within .itemshop-item-desc-panel {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.itemshop-item-desc-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
	text-align: center;
}

.itemshop-item-desc-scroll::-webkit-scrollbar {
	width: 3px;
}

.itemshop-item-desc-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

.itemshop-item-desc {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.5;
	color: rgba(235, 230, 245, 0.88);
	text-align: center;
}

.itemshop-item-desc--empty {
	color: var(--is-text-tertiary);
	font-style: italic;
}

.itemshop-item-bonuses {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.28rem;
}

.itemshop-item-bonuses li {
	font-size: 0.66rem;
	line-height: 1.4;
	color: #9ae6b0;
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.itemshop-item-desc-scroll .itemshop-item-desc + .itemshop-item-bonuses {
	margin-top: 0.45rem;
	padding-top: 0.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.itemshop-item-missing {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--is-text-tertiary);
	font-size: 1rem;
	font-weight: 500;
}

.itemshop-footer {
	padding: 1rem 1.35rem 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
	margin: 0 -1.35rem;
	position: relative;
	z-index: 3;
}

.itemshop-preview-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.75rem 1.15rem;
	margin: 0 auto;
	max-width: 36rem;
	background: linear-gradient(
		135deg,
		rgba(240, 208, 96, 0.16) 0%,
		rgba(140, 100, 255, 0.1) 48%,
		rgba(220, 170, 70, 0.12) 100%
	);
	border: 1px solid rgba(240, 208, 96, 0.38);
	border-radius: var(--is-radius-md);
	box-shadow:
		0 0 28px rgba(240, 208, 96, 0.18),
		0 0 48px rgba(140, 100, 255, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.itemshop-preview-note-lead {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--is-gold);
	text-shadow: 0 0 20px rgba(240, 208, 96, 0.55);
}

.itemshop-preview-note {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(252, 248, 235, 0.94);
	font-weight: 500;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.itemshop-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1rem;
	color: var(--is-text-tertiary);
	font-size: 0.875rem;
	font-weight: 500;
}

@media (max-width: 640px) {
	.itemshop-header {
		padding: 0.75rem 1rem;
	}

	.itemshop-search-wrap {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}

	.itemshop-main {
		padding: 0 1rem;
	}

	.itemshop-footer {
		margin: 0 -1rem;
	}

	.itemshop-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.65rem;
	}

	.itemshop-page-title {
		padding-top: 1rem;
		font-size: 1.05rem;
	}
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.itemshop-window {
		background: linear-gradient(145deg, #3a3260 0%, #2a2848 50%, #4a3828 100%);
	}

	.itemshop-header,
	.itemshop-item,
	.itemshop-cat-btn,
	.itemshop-search,
	.itemshop-footer {
		background: rgba(50, 45, 75, 0.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	.itemshop-body,
	.itemshop-bg-orb,
	.itemshop-bg-scrim {
		animation: none;
	}

	.itemshop-item,
	.itemshop-item-body,
	.itemshop-item-row,
	.itemshop-item-img,
	.itemshop-item-icon,
	.itemshop-item-desc-panel,
	.itemshop-item-glow,
	.itemshop-donate-btn,
	.itemshop-cat-btn,
	.itemshop-close,
	.itemshop-item-icon--buy {
		transition: none;
	}

	.itemshop-item:hover,
	.itemshop-item:focus-within {
		transform: none;
	}
}
