@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Bold.woff2') format('woff2');
	font-weight: bold;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Black.woff2') format('woff2');
	font-weight: 900;
}

@font-face {
	font-family: 'SF Pro Rounded';
	src: url('../font/SFProRounded-Bold.woff2') format('woff2');
	font-weight: bold;
}

:root {
	--primary-color: #31af38;
	--primary-hover: #228f28;
	--text-color: #111111;
	--text-secondary: #555555;
	--bg-color: #ffffff;
	--button-bg: #ffffff;
	--button-border: #c5e9c7;
	--button-hover-bg: #ffffff;
	--button-hover-border: #d1d1d6;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

html {
	background: var(--bg-color);
	min-height: 100vh;
	overflow-x: hidden;
}

body {
	font-family: 'SF Pro Display', sans-serif;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 10px;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../assets/back.png');
	background-repeat: repeat;
	background-size: 300px auto;
	opacity: 0.15;
	z-index: -1;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

body.quiz-active::before {
	opacity: 0;
}

.creator-profile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px 20px;
	z-index: 10;
}

.profile-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.profile-info img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #eaeaea;
	background-color: #f0f0f0;
}

.creator-nickname {
	font-weight: 700;
	font-size: 16px;
	color: var(--text-color);
	font-family: 'SF Pro Rounded', sans-serif;
}

.twitter-follow-btn {
	background: #1DA1F2;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	padding: 8px 18px;
	border-radius: 9999px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	/* box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4); */
}

@media (hover: hover) {
	.twitter-follow-btn:hover {
		background-color: #1a91da;
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(29, 161, 242, 0.6);
	}
}

.home-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.hero-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	min-height: calc(100vh - 100px);
	width: 100%;
	max-width: 600px;
}

.main-title {
	font-size: 38px;
	font-weight: 900;
	color: var(--text-color);
	margin-bottom: 24px;
	letter-spacing: -0.8px;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
}

.main-image {
	width: 100%;
	max-width: 280px;
	height: auto;
	border-radius: 24px;
	margin-bottom: 24px;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	border: 1px solid #eeeeee;
}

.main-description {
	font-size: 19px;
	font-weight: 300;
	color: var(--text-secondary);
	margin-bottom: 36px;
	line-height: 1.5;
	font-family: 'SF Pro Display', sans-serif;
}

.start-btn {
	background-color: var(--primary-color);
	color: #fff;
	font-weight: bold;
	font-size: 22px;
	padding: 13px 40px;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	letter-spacing: -0.5px;
}

@media (hover: hover) {
	.start-btn:hover {
		background-color: var(--primary-hover);
		transform: translateY(-1px);
	}
}

/* ========================================= */
/* QUIZ UI STYLES                            */
/* ========================================= */

.hidden {
	display: none !important;
}

#quiz-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 600px;
	padding: 10px 20px;
	margin: 0 auto;
}

.progress-container {
	width: 100%;
	height: 6px;
	/* background: var(--button-border); */
	background-color: #f5f5f5;
	border-radius: 999px;
	margin-bottom: 25px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: var(--primary-color);
	border-radius: 999px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-container {
	width: 100%;
	background: transparent;
	text-align: center;
	padding: 0;
}

.quiz-step {
	margin-bottom: 0px;
	padding: 20px 0px;
	background: transparent;
	border: none;
	box-shadow: none;
	transition: opacity 0.5s ease;
}

.quiz-step h2,
.quiz-step h3 {
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	color: var(--text-color);
	margin-bottom: 24px;
	font-size: 20px;
	font-weight: bold;
	letter-spacing: -0.4px;
	line-height: 1.35;
}

.options-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.choice-btn {
	background: var(--button-bg);
	color: var(--text-color);
	border: 1px solid var(--button-border);
	padding: 16px 20px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: 'SF Pro Display', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.choice-btn:not(.selected-btn):not(.disabled-btn):hover {
		border-color: var(--button-hover-border);
		background: var(--button-hover-bg);
		transform: translateY(-1px);
	}
}

.choice-btn.selected-btn {
	background: var(--primary-color);
	color: #ffffff;
	border-color: var(--primary-color);
}

.choice-btn.disabled-btn {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.start-btn.disabled-btn {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
	background: var(--button-border);
	color: #999999;
	box-shadow: none;
}

.fade-in {
	animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-out {
	animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-15px);
	}
}

/* Loading Styles */
.loading-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
}

.spinner {
	width: 55px;
	height: 55px;
	border: 5px solid var(--button-border);
	border-top: 5px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 24px;
	box-shadow: 0 4px 15px rgba(49, 175, 56, 0.15);
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loading-text {
	font-size: 21px;
	font-weight: 700;
	color: var(--text-color);
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	text-align: center;
	min-height: 35px;
	transition: opacity 0.3s ease;
}

/* Results UI Redesign */
#capture-area {
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
	position: relative;
	color: var(--text-color);
	width: 100%;
}

.result-card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.result-badge {
	font-family: 'SF Pro Rounded', sans-serif;
	font-size: 14px;
	font-weight: 800;
	background: var(--primary-color);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.result-shirt-name {
	font-size: 34px;
	font-weight: 900;
	color: var(--text-color);
	text-align: center;
	margin-bottom: 20px;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	line-height: 1.1;
	letter-spacing: -0.8px;
}

.result-image {
	width: 220px;
	height: 220px;
	object-fit: contain;
	margin-bottom: 25px;
	background: transparent;
	border: none;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.result-description {
	font-size: 17px;
	line-height: 1.5;
	text-align: center;
	color: var(--text-secondary);
	font-family: 'SF Pro Display', sans-serif;
	max-width: 450px;
	margin-bottom: 10px;
}

.result-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}

.twitter-share-btn,
.download-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 24px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	text-decoration: none;
}

.twitter-share-btn svg,
.download-btn svg {
	width: 22px;
	height: 22px;
}

.twitter-share-btn {
	background-color: #1DA1F2;
	color: #fff;
}

@media (hover: hover) {
	.twitter-share-btn:hover {
		background-color: #1a91da;
		transform: translateY(-1px);
	}
}

.download-btn {
	background-color: #f1f3f4;
	color: #202124;
	border: 2px solid #dadce0;
}

@media (hover: hover) {
	.download-btn:hover {
		background-color: #e8eaed;
		transform: translateY(-1px);
	}
}

.restart-btn {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	margin-top: 10px;
	border-radius: 9999px;
	padding: 15px 24px;
	font-size: 18px;
}

@media (hover: hover) {
	.restart-btn:hover {
		background-color: var(--primary-hover);
		transform: translateY(-1px);
	}
}

/* Creator Popup Styles */
.creator-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: calc(100% - 40px);
	max-width: 320px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text-color);
}

.creator-popup .close-popup {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 26px;
	color: #888;
	cursor: pointer;
	line-height: 1;
}

.creator-popup img {
	width: 65px;
	height: 65px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 12px;
	border: 2px solid #ececec;
}

.creator-popup h3 {
	font-family: 'SF Pro Rounded', sans-serif;
	font-size: 18px;
	color: var(--text-color);
	margin-bottom: 6px;
	font-weight: bold;
}

.creator-popup p {
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
	line-height: 1.45;
}

.creator-popup .twitter-follow-btn {
	box-shadow: none;
	width: 100%;
}

@media (max-width: 600px) {
	.creator-popup {
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
	}

	.creator-popup.fade-in {
		animation: popInMobile 0.4s ease-out forwards;
	}
}

@keyframes popInMobile {
	from {
		opacity: 0;
		transform: translate(-50%, 20px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* Slider Styles */
.slider-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 10px 0;
}

.styled-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: var(--button-bg);
	border: 1px solid var(--button-border);
	outline: none;
}

.styled-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--primary-color);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
	background-color: var(--primary-hover);
	transform: scale(1.1);
}

.slider-value {
	font-size: 28px;
	font-weight: bold;
	color: var(--primary-color);
	font-family: 'SF Pro Rounded', sans-serif;
}

/* Section Transitions */
.quiz-section-block {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.quiz-section-block > .quiz-step:first-child {
	margin-top: 0px !important;
	padding-top: 0px !important;
}