@charset "UTF-8";

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.gs-page {
	min-height: 100vh;
	font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	color: #f5f5f7;
	background-color: #06060a;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
}

.gs-main {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 100px 24px 48px;
	text-align: center;
}

.gs-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.28em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 18px;
}

.gs-title-gradient {
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	background: linear-gradient(90deg, #ff9ed2 0%, #e879f9 45%, #c084fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}

.gs-subtitle {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 40px;
}

/* FEAT. 멘테스 크레딧 */
.gs-feat-mentis {
	display: inline-block;
	margin: 0 0 28px;
	padding: 12px 28px;
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	border-radius: 999px;
	border: 2px solid rgba(255, 158, 210, 0.85);
	background: linear-gradient(135deg, rgba(255, 80, 180, 0.35) 0%, rgba(140, 60, 220, 0.4) 100%);
	box-shadow:
		0 0 28px rgba(255, 94, 191, 0.55),
		0 0 60px rgba(192, 132, 252, 0.25),
		inset 0 0 20px rgba(255, 255, 255, 0.06);
	text-shadow: 0 0 18px rgba(255, 158, 210, 0.9);
}

.gs-feat-mentis span {
	background: linear-gradient(90deg, #ffb3e6 0%, #f0abfc 50%, #d8b4fe 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0.18em;
}

.gs-feat-mentis--compact {
	margin-bottom: 16px;
	padding: 8px 20px;
	font-size: 0.95rem;
	letter-spacing: 0.18em;
}

/* top user bar */
.gs-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 28px;
	background: linear-gradient(180deg, rgba(6, 6, 10, 0.95) 0%, rgba(6, 6, 10, 0) 100%);
}

.gs-userbox {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 120, 200, 0.35);
	background: rgba(20, 10, 28, 0.75);
	box-shadow: 0 0 18px rgba(255, 80, 180, 0.15);
}

.gs-userbox-text {
	text-align: right;
	line-height: 1.35;
}

.gs-user-nick {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.gs-user-id {
	display: block;
	font-size: 0.8rem;
	color: #ff9ed2;
}

.gs-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ff5ebf;
	background: #1a1020;
}

.gs-btn-logout {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.gs-btn-logout:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.gs-btn-dogam {
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
	border: 1px solid rgba(255, 120, 200, 0.55);
	padding: 8px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 94, 191, 0.35) 0%, rgba(196, 77, 255, 0.3) 100%);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gs-btn-dogam:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 94, 191, 0.35);
	border-color: rgba(255, 160, 220, 0.85);
}

.gs-coin-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 210, 120, 0.55);
	background: linear-gradient(135deg, rgba(75, 45, 10, 0.65) 0%, rgba(35, 20, 8, 0.85) 100%);
	color: #ffd67f;
	box-shadow: 0 0 18px rgba(255, 200, 80, 0.18);
}

.gs-coin-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

#gsCoinBalance {
	font-size: 0.96rem;
	font-weight: 900;
	line-height: 1;
}

.gs-btn-admin {
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
	border: 1px solid rgba(120, 200, 255, 0.45);
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(80, 140, 220, 0.25);
	text-decoration: none;
	display: inline-block;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gs-btn-admin:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(80, 160, 255, 0.35);
	border-color: rgba(160, 210, 255, 0.75);
	color: #fff;
}

.gs-banner-error {
	text-align: center;
	padding: 12px 20px;
	margin: 88px auto 0;
	max-width: 720px;
	width: calc(100% - 48px);
	font-size: 0.9rem;
	font-weight: 600;
	color: #ffb4b4;
	background: rgba(255, 60, 60, 0.12);
	border: 1px solid rgba(255, 100, 100, 0.35);
	border-radius: 12px;
}

.gs-coin-desc {
	font-size: 0.88rem;
	color: rgba(255, 232, 170, 0.88);
	margin-bottom: 12px;
}

.gs-coin-notice {
	min-height: 20px;
	font-size: 0.86rem;
	margin-bottom: 20px;
	color: rgba(170, 245, 190, 0.9);
}

.gs-coin-notice.is-error {
	color: #ffb4b4;
}

/* pack select card */
.gs-pack-wrap {
	position: relative;
	width: min(100%, 380px);
	padding: 28px 24px 32px;
	border-radius: 22px;
	border: 2px solid #ff5ebf;
	background: rgba(12, 8, 18, 0.85);
	overflow: hidden;
	animation: gs-pack-border-pulse 2.8s ease-in-out infinite;
	cursor: pointer;
	outline: none;
}

.gs-pack-wrap:focus-visible {
	box-shadow:
		0 0 0 3px rgba(6, 6, 10, 1),
		0 0 0 5px rgba(255, 94, 191, 0.85);
}

.gs-pack-shine {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 40%,
		rgba(255, 160, 220, 0.12) 48%,
		rgba(255, 220, 255, 0.28) 50%,
		rgba(255, 160, 220, 0.12) 52%,
		transparent 60%,
		transparent 100%
	);
	background-size: 220% 100%;
	animation: gs-pack-shine-move 3.2s ease-in-out infinite;
	z-index: 1;
}

.gs-pack-image-frame {
	position: relative;
	z-index: 2;
	max-width: 280px;
	margin: 0 auto 24px;
	padding: 0;
	border: none;
	background: transparent;
	overflow: visible;
	transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.4s ease;
}

.gs-pack-image-frame img {
	position: relative;
	z-index: 2;
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
	transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.gs-pack-wrap:hover .gs-pack-image-frame {
	transform: translateY(-10px) scale(1.05) rotate(-1deg);
	box-shadow:
		0 18px 36px rgba(255, 94, 191, 0.35),
		0 0 24px rgba(255, 94, 191, 0.25);
}

.gs-pack-wrap:hover .gs-pack-image-frame img {
	filter: drop-shadow(0 20px 36px rgba(255, 94, 191, 0.45));
	transform: scale(1.02);
}

.gs-pack-wrap.gs-is-opening,
.gs-pack-wrap.gs-is-opening:hover .gs-pack-image-frame,
.gs-pack-wrap.gs-is-opening:hover .gs-pack-image-frame img {
	transform: none;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.gs-pack-wrap.gs-shake {
	animation: gs-pack-border-pulse 2.8s ease-in-out infinite, gs-shake 0.55s ease-in-out;
}

@keyframes gs-shake {
	0%, 100% {
		transform: translateX(0);
	}
	12% {
		transform: translateX(-14px);
	}
	24% {
		transform: translateX(14px);
	}
	36% {
		transform: translateX(-12px);
	}
	48% {
		transform: translateX(12px);
	}
	60% {
		transform: translateX(-8px);
	}
	72% {
		transform: translateX(8px);
	}
	84% {
		transform: translateX(-4px);
	}
}

/* view switch */
.gs-view {
	display: none;
	width: 100%;
	flex-direction: column;
	align-items: center;
}

.gs-view.gs-view-active {
	display: flex;
}

.gs-view-fade-in {
	animation: gs-view-fade-in 0.45s ease-out;
}

@keyframes gs-view-fade-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* card open */
.gs-card-edition {
	font-size: clamp(1.25rem, 3.5vw, 1.6rem);
	font-weight: 800;
	letter-spacing: 0.14em;
	color: #fff;
	margin-bottom: 28px;
}

.gs-card-reveal {
	position: relative;
	width: min(100%, 340px);
	margin-bottom: 32px;
	cursor: pointer;
	outline: none;
}

.gs-card-reveal:focus-visible .gs-card-pack {
	filter: drop-shadow(0 0 18px rgba(255, 94, 191, 0.65));
}

.gs-card-glow {
	position: absolute;
	left: 50%;
	top: 52%;
	width: 88%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(255, 94, 191, 0.6) 0%,
		rgba(196, 77, 255, 0.28) 42%,
		transparent 72%
	);
	filter: blur(30px);
	z-index: 0;
	animation: gs-card-glow-pulse 2.6s ease-in-out infinite;
	pointer-events: none;
}

.gs-card-pack {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 18px 42px rgba(255, 94, 191, 0.35));
	transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
	animation: gs-card-float 4.5s ease-in-out infinite;
}

.gs-card-pack.gs-tearing {
	animation: gs-card-float 4.5s ease-in-out infinite, gs-card-tear-shake 0.55s ease-in-out, gs-card-tear-grow 0.65s ease-in forwards;
}

.gs-card-reveal:hover .gs-card-pack:not(.gs-tearing) {
	filter: drop-shadow(0 24px 48px rgba(255, 94, 191, 0.5));
}

@keyframes gs-card-tear-shake {
	0%, 100% {
		transform: translateY(0) translateX(0);
	}
	15% {
		transform: translateY(-4px) translateX(-12px);
	}
	30% {
		transform: translateY(-2px) translateX(12px);
	}
	45% {
		transform: translateY(-4px) translateX(-10px);
	}
	60% {
		transform: translateY(-2px) translateX(10px);
	}
	75% {
		transform: translateY(-3px) translateX(-6px);
	}
}

@keyframes gs-card-tear-grow {
	to {
		transform: scale(1.08);
		opacity: 0.55;
	}
}

@keyframes gs-card-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.gs-touch-hint {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.92);
	animation: gs-touch-pulse 1.8s ease-in-out infinite;
}

@keyframes gs-card-glow-pulse {
	0%, 100% {
		opacity: 0.75;
		transform: translate(-50%, -50%) scale(0.96);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.06);
	}
}

@keyframes gs-touch-pulse {
	0%, 100% {
		opacity: 0.6;
	}
	50% {
		opacity: 1;
	}
}

@keyframes gs-pack-border-pulse {
	0%, 100% {
		box-shadow:
			0 0 22px rgba(255, 94, 191, 0.4),
			0 0 50px rgba(196, 77, 255, 0.1),
			inset 0 0 30px rgba(255, 94, 191, 0.05);
	}
	50% {
		box-shadow:
			0 0 38px rgba(255, 94, 191, 0.75),
			0 0 70px rgba(196, 77, 255, 0.28),
			inset 0 0 45px rgba(255, 94, 191, 0.14);
	}
}

@keyframes gs-pack-shine-move {
	0%, 100% {
		background-position: 120% 0;
		opacity: 0.35;
	}
	50% {
		background-position: -20% 0;
		opacity: 1;
	}
}

.gs-pack-name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.gs-pack-desc {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.78);
}

/* login / link page */
.gs-link-panel {
	width: min(100%, 420px);
	padding: 48px 36px 40px;
	border-radius: 24px;
	border: 1px solid rgba(255, 120, 200, 0.4);
	background: rgba(14, 8, 22, 0.92);
	box-shadow:
		0 0 40px rgba(255, 94, 191, 0.2),
		0 24px 48px rgba(0, 0, 0, 0.45);
}

.gs-link-panel .gs-title-gradient {
	font-size: 2rem;
	margin-bottom: 16px;
}

.gs-link-desc {
	font-size: 0.92rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 32px;
}

.gs-soop-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	margin-bottom: 24px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #ffb8e0;
	border: 1px solid rgba(255, 120, 200, 0.5);
	background: rgba(255, 80, 180, 0.1);
}

.gs-btn-soop {
	display: inline-block;
	width: 100%;
	padding: 16px 24px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	background: linear-gradient(135deg, #ff5ebf 0%, #c44dff 50%, #9b5de5 100%);
	box-shadow: 0 8px 28px rgba(255, 94, 191, 0.45);
	transition: transform 0.15s, box-shadow 0.15s;
}

.gs-btn-soop:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(255, 94, 191, 0.55);
}

.gs-error {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.88rem;
	color: #ffb4b4;
	background: rgba(255, 60, 60, 0.12);
	border: 1px solid rgba(255, 100, 100, 0.35);
}

.gs-logo-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff5ebf;
	box-shadow: 0 0 10px #ff5ebf;
}

/* pack opening loading */
.gs-pack-loading {
	position: relative;
	justify-content: center;
	min-height: 55vh;
}

.gs-pack-loading::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: radial-gradient(
		circle at center,
		rgba(255, 70, 170, 0.9) 0%,
		rgba(255, 50, 150, 0.45) 22%,
		rgba(8, 6, 14, 0.96) 62%
	);
}

.gs-loading-text {
	font-size: clamp(1.8rem, 5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	text-shadow:
		0 0 24px rgba(255, 150, 220, 0.9),
		0 0 48px rgba(255, 94, 191, 0.55);
	animation: gs-loading-pulse 1.4s ease-in-out infinite;
}

@keyframes gs-loading-pulse {
	0%, 100% {
		opacity: 0.75;
		transform: scale(0.98);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}

/* card flip 1/5 */
.gs-card-flip {
	padding-top: 88px;
}

.gs-flip-progress {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 22px;
}

.gs-flip-stage {
	position: relative;
	width: min(100%, 300px);
	margin: 0 auto 24px;
	cursor: pointer;
	outline: none;
	perspective: 900px;
}

.gs-flip-stage:focus-visible {
	filter: drop-shadow(0 0 14px rgba(255, 94, 191, 0.7));
}

.gs-flip-stack {
	position: relative;
	width: 100%;
}

.gs-flip-front,
.gs-flip-back {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
}

.gs-flip-front {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	width: 100%;
	opacity: 0;
	transform: scale(0.94) translateY(12px);
	/* 다음 카드로 넘길 때 is-revealed 제거 시 지연 없이 바로 숨김 (뒷면 깜빡임 방지) */
	transition:
		opacity 0.2s ease,
		transform 0.25s ease,
		filter 0.2s ease;
	pointer-events: none;
}

.gs-flip-back {
	position: relative;
	z-index: 2;
	transform-origin: center bottom;
	transition:
		transform 0.7s cubic-bezier(0.33, 1, 0.48, 1),
		opacity 0.55s ease 0.12s,
		visibility 0s linear 0.7s;
	animation: gs-card-float 4.5s ease-in-out infinite;
}

.gs-flip-stage.is-peeling .gs-flip-back {
	animation: none;
	transform: translateY(-6px) scale(1.02);
}

.gs-flip-stage.is-revealed .gs-flip-back {
	animation: none;
	transform: translateY(-135%) rotate(-10deg) scale(1.06);
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition:
		transform 0.7s cubic-bezier(0.33, 1, 0.48, 1),
		opacity 0.55s ease 0.12s,
		visibility 0s linear 0.7s;
}

.gs-flip-stage.is-revealed .gs-flip-front {
	opacity: 1;
	transform: scale(1) translateY(0);
	animation: gs-card-float 4.5s ease-in-out infinite;
	pointer-events: none;
	/* 뜯은 뒤 앞면이 나타날 때만 살짝 늦게 페이드인 */
	transition:
		opacity 0.45s ease 0.28s,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
		filter 0.4s ease 0.25s;
}

/* 다음 장으로 바꿀 때: 전환 끄고 앞면 즉시 숨김 → src 교체 후 뒷면만 보이게 */
.gs-flip-stage.gs-flip-swapping .gs-flip-front,
.gs-flip-stage.gs-flip-swapping .gs-flip-back {
	transition: none !important;
}

.gs-flip-stage.gs-flip-swapping .gs-flip-front {
	opacity: 0 !important;
	animation: none !important;
	transform: scale(0.94) translateY(12px);
}

.gs-flip-stage.gs-flip-swapping .gs-flip-back {
	opacity: 1;
	visibility: visible;
	transform: none;
	animation: gs-card-float 4.5s ease-in-out infinite;
}

.gs-flip-hint {
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 28px;
	animation: gs-touch-pulse 1.8s ease-in-out infinite;
}

.gs-flip-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	width: min(100%, 420px);
}

.gs-btn-pack {
	min-width: 148px;
	padding: 14px 22px;
	border: none;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #ff5ebf 0%, #c44dff 55%, #9b5de5 100%);
	box-shadow: 0 8px 24px rgba(255, 94, 191, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gs-btn-pack:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(255, 94, 191, 0.5);
}

.gs-btn-pack-outline {
	background: rgba(20, 10, 28, 0.85);
	border: 1px solid rgba(255, 120, 200, 0.45);
	box-shadow: none;
}

/* grade glow */
.gs-flip-stage.gs-grade-C.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-C {
	filter: drop-shadow(0 0 18px rgba(180, 180, 190, 0.45));
}

.gs-flip-stage.gs-grade-U.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-U {
	filter: drop-shadow(0 0 20px rgba(160, 170, 200, 0.5));
}

.gs-flip-stage.gs-grade-R.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-R {
	filter: drop-shadow(0 0 22px rgba(80, 170, 255, 0.65));
}

.gs-flip-stage.gs-grade-RR.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-RR {
	filter: drop-shadow(0 0 22px rgba(170, 120, 255, 0.65));
}

.gs-flip-stage.gs-grade-AR.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-AR {
	filter: drop-shadow(0 0 22px rgba(90, 220, 150, 0.6));
}

.gs-flip-stage.gs-grade-SAR.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-SAR {
	filter: drop-shadow(0 0 24px rgba(255, 120, 200, 0.7));
}

.gs-flip-stage.gs-grade-EX.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-EX {
	filter: drop-shadow(0 0 24px rgba(255, 150, 80, 0.65));
}

.gs-flip-stage.gs-grade-SR.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-SR {
	filter: drop-shadow(0 0 26px rgba(255, 220, 90, 0.75));
}

.gs-flip-stage.gs-grade-MUR.is-revealed .gs-flip-front,
.gs-result-item.gs-grade-MUR {
	filter: drop-shadow(0 0 28px rgba(255, 80, 180, 0.85));
}

/* pack result — 큰 카드 가로 배치 */
.gs-pack-result {
	width: 100%;
	max-width: none;
	padding-top: 72px;
	padding-left: max(12px, env(safe-area-inset-left, 0px));
	padding-right: max(12px, env(safe-area-inset-right, 0px));
}

.gs-result-title {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	margin-bottom: 20px;
	background: linear-gradient(90deg, #ff9ed2 0%, #c084fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.gs-result-grid {
	--gs-result-gap: clamp(10px, 1.4vw, 22px);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end;
	gap: var(--gs-result-gap);
	width: 100%;
	max-width: min(1680px, 100%);
	padding: 12px 4px 28px;
	margin: 0 auto 24px;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.gs-result-item {
	flex: 0 0 auto;
	width: clamp(168px, calc((100% - 4 * var(--gs-result-gap)) / 5), 300px);
	min-width: 160px;
	max-width: 300px;
	scroll-snap-align: center;
}

.gs-result-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 7;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 16px 44px rgba(0, 0, 0, 0.58),
		0 0 1px rgba(255, 255, 255, 0.15);
}

.gs-result-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
	transform: scale(1);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.gs-result-shine {
	position: absolute;
	inset: -40%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		rgba(255, 255, 255, 0.18) 55deg,
		rgba(255, 94, 191, 0.18) 120deg,
		rgba(196, 77, 255, 0.18) 180deg,
		transparent 260deg
	);
	opacity: 0.55;
	filter: blur(22px);
	animation: gs-frame-glow-spin 6.5s linear infinite;
	pointer-events: none;
}

.gs-result-item:hover .gs-result-img {
	transform: scale(1.02);
	filter: drop-shadow(0 0 18px rgba(255, 94, 191, 0.45));
}

/* 등급별 화려함: 프레임 외곽 글로우를 강화 */
.gs-result-item.gs-grade-R .gs-result-frame,
.gs-result-item.gs-grade-RR .gs-result-frame,
.gs-result-item.gs-grade-AR .gs-result-frame,
.gs-result-item.gs-grade-SAR .gs-result-frame,
.gs-result-item.gs-grade-EX .gs-result-frame,
.gs-result-item.gs-grade-SR .gs-result-frame,
.gs-result-item.gs-grade-MUR .gs-result-frame {
	box-shadow:
		0 18px 54px rgba(0, 0, 0, 0.62),
		0 0 40px rgba(255, 94, 191, 0.18),
		0 0 70px rgba(196, 77, 255, 0.12);
	border-color: rgba(255, 160, 220, 0.22);
}

.gs-result-item.gs-grade-SR .gs-result-frame,
.gs-result-item.gs-grade-MUR .gs-result-frame {
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.64),
		0 0 52px rgba(255, 220, 90, 0.18),
		0 0 92px rgba(255, 94, 191, 0.16);
	border-color: rgba(255, 220, 120, 0.22);
}

/* ——— 카드 도감 오버레이 ——— */
body.gs-dogam-open {
	overflow: hidden;
}

.gs-dogam-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
		max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
	background: rgba(4, 3, 8, 0.88);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gs-dogam-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.gs-dogam-panel {
	width: min(1200px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	border: 1px solid rgba(255, 120, 200, 0.35);
	background: linear-gradient(165deg, rgba(18, 12, 28, 0.97) 0%, rgba(8, 6, 14, 0.99) 100%);
	box-shadow:
		0 0 60px rgba(255, 94, 191, 0.15),
		0 24px 48px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.gs-dogam-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.gs-dogam-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.02em;
	margin: 0;
}

.gs-dogam-close {
	font-size: 0.88rem;
	font-weight: 700;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	background: linear-gradient(135deg, #ff5ebf 0%, #c44dff 70%);
	box-shadow: 0 6px 18px rgba(255, 94, 191, 0.4);
}

.gs-dogam-close:hover {
	filter: brightness(1.06);
}

.gs-dogam-progress-wrap {
	padding: 12px 20px 16px;
	flex-shrink: 0;
}

.gs-dogam-progress-meta {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 10px;
}

.gs-dogam-progress-bar {
	height: 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	overflow: hidden;
	border: 1px solid rgba(255, 120, 200, 0.25);
}

.gs-dogam-progress-fill {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: linear-gradient(90deg, #c44dff 0%, #ff5ebf 50%, #ff9ed2 100%);
	transition: width 0.4s ease;
}

.gs-dogam-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 20px 16px;
	flex-shrink: 0;
}

.gs-dogam-filter {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gs-dogam-filter:hover {
	border-color: rgba(255, 160, 220, 0.5);
	color: #fff;
}

.gs-dogam-filter.is-active {
	color: #fff;
	border-color: rgba(196, 77, 255, 0.85);
	background: linear-gradient(135deg, rgba(196, 77, 255, 0.55) 0%, rgba(255, 94, 191, 0.4) 100%);
}

.gs-dogam-grid {
	flex: 1;
	overflow-y: auto;
	padding: 8px 16px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 16px 12px;
	align-content: start;
}

.gs-dogam-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.gs-dogam-art {
	position: relative;
	width: 100%;
	max-width: 130px;
	margin: 0 auto;
	aspect-ratio: 5 / 7;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gs-dogam-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	font-size: 0.65rem;
	font-weight: 800;
	color: #111;
	background: rgba(255, 255, 255, 0.92);
	padding: 2px 6px;
	border-radius: 6px;
	line-height: 1.2;
}

.gs-dogam-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gs-dogam-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.22);
	letter-spacing: 0.08em;
	background: linear-gradient(145deg, rgba(30, 24, 38, 1) 0%, rgba(12, 10, 18, 1) 100%);
}

.gs-dogam-caption {
	width: 100%;
	max-width: 130px;
	margin-top: 8px;
}

.gs-dogam-name {
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	padding: 4px 6px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	line-height: 1.25;
	word-break: keep-all;
}

.gs-dogam-sub {
	font-size: 0.68rem;
	color: rgba(255, 200, 230, 0.85);
	margin-top: 4px;
}

/* 도감 셀 등급 글로우 (오픈 결과와 동일 톤) */
.gs-dogam-cell.gs-grade-C .gs-dogam-art {
	filter: drop-shadow(0 0 10px rgba(180, 200, 160, 0.35));
}

.gs-dogam-cell.gs-grade-U .gs-dogam-art {
	filter: drop-shadow(0 0 10px rgba(160, 170, 200, 0.4));
}

.gs-dogam-cell.gs-grade-R .gs-dogam-art {
	filter: drop-shadow(0 0 12px rgba(80, 170, 255, 0.45));
}

.gs-dogam-cell.gs-grade-RR .gs-dogam-art {
	filter: drop-shadow(0 0 12px rgba(170, 120, 255, 0.5));
}

.gs-dogam-cell.gs-grade-AR .gs-dogam-art {
	filter: drop-shadow(0 0 12px rgba(90, 220, 150, 0.45));
}

.gs-dogam-cell.gs-grade-SAR .gs-dogam-art {
	filter: drop-shadow(0 0 14px rgba(255, 120, 200, 0.55));
}

.gs-dogam-cell.gs-grade-EX .gs-dogam-art {
	filter: drop-shadow(0 0 12px rgba(255, 150, 80, 0.5));
}

.gs-dogam-cell.gs-grade-SR .gs-dogam-art {
	filter: drop-shadow(0 0 14px rgba(255, 220, 90, 0.55));
}

.gs-dogam-cell.gs-grade-MUR .gs-dogam-art {
	filter: drop-shadow(0 0 16px rgba(255, 80, 180, 0.6));
}

/* 관리자 전용 페이지 */
.gs-admin-page .gs-admin-main {
	padding-top: 88px;
}

.gs-admin-panel {
	width: min(100%, 520px);
	margin-top: 8px;
	padding: 28px 24px;
	text-align: left;
	border-radius: 18px;
	border: 1px solid rgba(120, 200, 255, 0.25);
	background: rgba(12, 16, 28, 0.85);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.gs-admin-panel-desc {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.6;
	margin-bottom: 16px;
}

.gs-admin-list {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.68);
	line-height: 1.75;
	padding-left: 1.2rem;
	margin: 0;
}

.gs-admin-list code {
	font-size: 0.8rem;
	color: #9ec5ff;
	background: rgba(0, 0, 0, 0.35);
	padding: 2px 6px;
	border-radius: 6px;
}

/* 개발자도구 안내 페이지 */
.gs-devtools-warn-page {
	min-height: 100vh;
}

.gs-devtools-warn {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	text-align: center;
}

.gs-devtools-warn-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.28em;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 20px;
}

.gs-devtools-warn-title {
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.35;
	margin-bottom: 16px;
	text-shadow:
		0 0 40px rgba(255, 94, 191, 0.45),
		0 0 80px rgba(196, 77, 255, 0.25);
}

.gs-devtools-warn-desc {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.68);
	max-width: 380px;
	line-height: 1.6;
	margin-bottom: 40px;
}

.gs-devtools-warn-refresh {
	margin: 0 0 20px;
	font-size: 0.95rem;
	color: #ff9ed2;
	text-align: center;
	line-height: 1.5;
}

.gs-devtools-warn-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.gs-devtools-warn-actions.is-hidden {
	display: none !important;
}
