/* Lenis scroll (for a smooth scroll) */

html.lenis {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* Global */

* {
	box-sizing: border-box;
}

@font-face {
	font-family: "Kitto";
	src: url(Fonts/Kitto-PersonalUse.otf);
}

@font-face {
	font-family: "DansHandWriting";
	src: url(Fonts/DansHandWriting.ttf);
}

body {
	font-family: "DansHandWriting", cursive;
	text-transform: none;
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 1px;
	overflow-x: hidden;
	background: linear-gradient(135deg, #ffd74a 0%, #f4d03f 100%);
	width: 100%;
	max-width: 100vw;
}

body.no-scroll {
	overflow: hidden;
}

nav {
	position: fixed;
	width: 100%;
	padding: 1rem 2rem;
	display: flex;
	align-items: center;
	border-bottom: 5px solid black;
	background-color: #ffd74a;
	height: 90px;
	z-index: 1000;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: black;
}

h1 {
	font-size: 8rem;
	font-weight: 700;
	color: #664e36;
	text-shadow: 3px 3px 0px rgba(102, 78, 54, 0.3);
	letter-spacing: 2px;
	text-transform: uppercase;
}

h2 {
	font-size: 4rem;
	font-weight: 600;
	color: #664e36;
	text-shadow: 2px 2px 0px rgba(102, 78, 54, 0.2);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Splash screen */

#splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	min-height: 100svh;
	background: linear-gradient(135deg, #ffd74a 0%, #f4d03f 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

#splash-screen img {
	position: absolute;
	width: 30%;
	/* Ajuste selon ton GIF */
	height: auto;
	margin-bottom: 2rem;
}

#splash-screen button {
	padding: 10px 20px;
	font-size: 18px;
	cursor: pointer;
	position: absolute;
	bottom: 15%;
}

/* Header */

.ca {
	display: flex;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
	position: relative;
	background-color: #664e36;
	padding: 0.8rem 1.5rem;
	border: 3px solid #222;
	border-radius: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ca:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ca-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ca-heading p {
	color: #ffd74a;
	font-weight: bold;
}

.ca-heading img {
	width: 1rem;
	height: 1rem;
}

.copy-icon {
	font-size: 1.2rem;
	color: #f4d03f;
	transition: all 0.3s ease;
}

.ca:hover .copy-icon {
	color: #ffae00;
	transform: scale(1.1);
}

.tooltip {
	visibility: hidden;
	background-color: #664e36;
	color: #ffd74a;
	text-align: center;
	padding: 8px 12px;
	border-radius: 8px;
	position: absolute;
	bottom: -45px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s;
	box-shadow: 0 4px 15px rgba(102, 78, 54, 0.3);
}

.copy-container:hover .tooltip {
	visibility: visible;
}

.show-tooltip {
	visibility: visible;
	opacity: 1;
}

.logo {
	font-size: 2.5rem;
	flex: 1;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: bold;
}

.socials-list {
	list-style: none;
	display: flex;
	gap: 1rem;
	flex: 1;
	justify-content: end;
	align-items: center;
}

.socials-list img {
	width: 48px;
}

.socials-list a:hover {
	color: orange;
}

.menu-toggle {
	cursor: pointer;
	padding: 12px 0;
	margin-left: 2rem;
	display: none;
}

.menu-toggle span {
	position: relative;
	display: block;
	width: 20px;
	height: 3px;
	background: #222;
	transition: all 0.2s ease-in-out;
}

.menu-toggle span:before,
.menu-toggle span:after {
	position: absolute;
	background: #222;
	content: "";
	width: 20px;
	height: 3px;
	transition: all 0.2s ease-in-out;
}

.menu-toggle span:before {
	top: -8px;
}

.menu-toggle span:after {
	top: 8px;
}

.menu-toggle.active span {
	background: transparent;
}

.menu-toggle.active span:before {
	transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:after {
	transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero */

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 6rem;
	padding-top: 9rem;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.hero_heading {
	max-width: 650px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4.5rem;
}

.hero_heading p {
	font-size: 2.5rem;
	font-weight: bold;
	color: #222;
	letter-spacing: 1px;
	text-align: center;
}

.hero_heading_title {
	position: relative;
	width: fit-content;
}

.hero_poki {
	width: 300px;
}

.hero_anvil {
	width: 200px;
	position: absolute;
	top: 80px;
	left: 5%;
}

.hero-btn {
	background-color: #664e36;
	color: #ffd74a;
	font-size: 2.5rem;
	padding: 1rem 2rem;
	will-change: scale;
	transition: all 0.3s ease;
	font-family: inherit;
	font-weight: bold;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
	border: 3px solid #664e36;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(102, 78, 54, 0.3);
	letter-spacing: 1px;
}

.hero-btn:hover {
	color: #fff;
	background-color: #8b6b4a;
	cursor: pointer;
	transform: scale(1.05);
	box-shadow: 0 12px 35px rgba(102, 78, 54, 0.4);
}

.fun-quote {
	/* position: absolute; */
	bottom: -40px;
	right: 0;
	transform: rotate(-10deg) translate(50%, 50%);
	color: #222;
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 0.5px;
}

/* Marquee */

.marquee {
	flex-flow: column;
	justify-content: center;
	align-items: center;
	display: flex;
	padding: 3rem 0;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.marquee-advanced {
	width: 100%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.marquee-advanced__scroll {
	will-change: transform;
	width: 100%;
	display: flex;
	position: relative;
}

.marquee-advanced__collection {
	will-change: transform;
	display: flex;
	position: relative;
}

.marquee-advanced__item {
	justify-content: flex-start;
	align-items: center;
	display: flex;
}

.marquee-advanced__item-width {
	margin: 1rem;
}

.marquee-advanced__item-width img {
	width: 200px;
}

/* Game */

.game {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 4rem 1rem;
}

.game_header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.game_canva {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.game_main-img {
	width: 500px;
	height: 500px;
	background-image: url(Hamster_IP/Game/Hamster_game_Base.png);
	background-size: cover;
}

.game_weapons {
	display: flex;
	gap: 1rem;
}

.game_weapon {
	cursor: pointer;
}

.game_weapon img {
	width: 150px;
}

.game_weapon:hover img {
	will-change: scale;
	transition: transform 0.1s;
	transform: scale(1.1);
}

#custom-cursor {
	position: fixed;
	left: var(--pos-x);
	top: var(--pos-y);
	transform: translate(-50%, -50%);
	pointer-events: none;
	display: none;
	width: 64px;
	height: 64px;
	z-index: 1000;
}

@keyframes squeeze {
	0% {
		transform: scale(1, 1);
	}

	50% {
		transform: scale(1.1, 0.8);
	}

	/* Effet écrasé */
	100% {
		transform: scale(1, 1);
	}
}

.squeeze {
	animation: squeeze 0.1s ease-in-out;
}

/* Exchanges */

.exchanges {
	display: flex;
	gap: 1rem;
	padding: 4rem;
	position: relative;
}

.exchanges_content {
	display: flex;
	flex-direction: column;
	gap: 5rem;
	width: 60%;
}

.exchanges_heading {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 3;
}

.exchanges_list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.exchanges_list li {
	padding-bottom: 1rem;
}

.phantom {
	width: 234px;
	position: absolute;
	left: 45%;
	top: 32px;
}

.exchanges_terminal {
	position: relative;
	padding-left: 200px;
}

.exchanges_terminal-img {
	position: absolute;
	bottom: 0;
	left: 213px;
	transform: translateX(-100%);
	width: 200px;
}

#integrated-terminal {
	border: 10px solid black;
	padding: 1rem;
	border-radius: 1rem;
	background-color: black;
	/* width: 400px; */
	/* height: 568px; */
}

/* PFP Generator */

.pfp_generator {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 6rem;
	align-items: center;
}

.pfp_generator_heading {
	display: flex;
	text-align: center;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.pfp_generator_btn {
	background-color: white;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	font-family: inherit;
	cursor: pointer;
	width: 100%;
}

.pfp_generator_canva {
	width: 400px;
	height: 400px;
	border: 5px solid black;
	border-radius: 1rem;
	position: relative;
	background: white;
	overflow: hidden;
}

.pfp_generator_canva img {
	position: absolute;
	width: 100%;
	height: 100%;
}

.pfp_generator_controls {
	min-width: 30%;
	max-width: 40%;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	align-items: stretch;
}

.pfp_generator_row {
	display: flex;
	width: 100%;
	gap: 1rem;
}

.pfp_generator_controls_item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pfp_generator_controls_item button {
	background-color: white;
	cursor: pointer;
	border: none;
	padding: 0.5rem 0.5rem;
}

/* Ensure PFP layer names stay on one line */
[id$="-name"] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.pfp_generator_controls_item button:nth-child(3) {
	transform: rotate(180deg);
}

.pfp_generator_content {
	width: 100%;
	display: flex;
	gap: 1rem;
	align-content: space-between;
	justify-content: center;
	align-items: center;
}

/* Falling anvil */

.falling-anvil {
	position: absolute;
	left: 10%;
	/* Position sur la gauche */
	bottom: 0;
	width: 100px;
	height: 100svh;
}

.falling-anvil img {
	width: 150px;
}

#anvil {
	position: absolute;
	top: -125.33px;
	/* Cache l'enclume en haut de l'écran */
	left: 0;
	height: auto;
	transition: transform 0.5s ease-in, opacity 0.01s ease-in;
	opacity: 0;
}

#squished-hamster {
	position: absolute;
	bottom: 0px;
	left: 0;
	height: auto;
	transition: opacity 0.5s ease-in;
}

/* Footer */

footer {
	padding: 4rem 2rem 2rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2rem;
	position: relative;
	margin-bottom: 30px;
	border-top: 5px solid #1c1c1c;
	background: linear-gradient(135deg, #ffd74a 0%, #f4d03f 100%);
	box-shadow: 0 -4px 20px rgba(102, 78, 54, 0.2);
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: 1200px;
	width: 100%;
}

.footer-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.footer-section h3 {
	font-size: 2.5rem;
	margin: 0;
	color: #664e36;
	text-shadow: 2px 2px 0px rgba(102, 78, 54, 0.3);
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.footer-section p {
	max-width: 1160px;
	margin: 0;
	line-height: 1.6;
	color: #1c1c1c;
	font-weight: bold;
	letter-spacing: 1.5px;
}

.footer-socials {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 3px solid #664e36;
	border-radius: 50%;
	background: #ffd74a;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.social-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s ease;
}

.social-link:hover::before {
	left: 100%;
}

.social-link:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 10px 20px rgba(102, 78, 54, 0.3);
	border-color: #8b6b4a;
	background: #f4d03f;
}

.social-link img {
	width: 32px;
	height: 32px;
	transition: transform 0.3s ease;
}

.social-link:hover img {
	transform: scale(1.2);
}

.footer-copyright {
	font-size: 1.3rem;
	color: #664e36;
	margin-top: 1rem;
	font-weight: bold;
	letter-spacing: 1.5px;
}

.footer-decoration {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 400px;
	margin-top: 2rem;
}

.footer-line {
	flex: 1;
	height: 3px;
	background: linear-gradient(90deg, transparent, #664e36, transparent);
	border-radius: 2px;
	animation: footerLineGlow 3s ease-in-out infinite;
}

.footer-dots {
	display: flex;
	gap: 0.5rem;
}

.footer-dots span {
	width: 8px;
	height: 8px;
	background: #664e36;
	border-radius: 50%;
	animation: footerDotPulse 2s ease-in-out infinite;
}

.footer-dots span:nth-child(2) {
	animation-delay: 0.3s;
}

.footer-dots span:nth-child(3) {
	animation-delay: 0.6s;
}

@keyframes footerLineGlow {

	0%,
	100% {
		opacity: 0.3;
	}

	50% {
		opacity: 1;
	}
}

@keyframes footerDotPulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 0.7;
	}

	50% {
		transform: scale(1.3);
		opacity: 1;
	}
}

/* Responsive tablet */

@media (max-width: 992px) {
	.hero_anvil {
		width: 150px;
		left: 0%;
	}

	.ca-data {
		display: none;
	}

	.marquee-advanced__item-width img {
		width: 150px;
	}

	.game_weapon img {
		width: 100px;
	}

	.exchanges {
		flex-direction: column;
		padding: 3rem;
	}

	.exchanges_content {
		width: 100%;
	}

	.phantom {
		right: 0;
		left: auto;
	}

	footer {
		padding: 4rem 2rem 2rem 2rem;
	}

	.footer-socials {
		gap: 1rem;
	}

	.social-link {
		width: 50px;
		height: 50px;
	}

	.social-link img {
		width: 28px;
		height: 28px;
	}
}

/* Responsive mobile */

@media (max-width: 767px) {
	body {
		font-size: 1rem;
		overflow-x: hidden;
		width: 100%;
	}

	nav {
		padding: 0.5rem 1rem;
		height: 70px;
	}

	.logo {
		font-size: 1.8rem;
	}

	.ca {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}

	.ca-heading p {
		font-size: 0.8rem;
		white-space: nowrap;
	}

	.pfp_generator_controls {
		width: 100%;
		max-width: 100%;
		margin-top: 1rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
		font-size: 1rem;
	}

	.pfp_generator_content {
		display: block;
	}

	h1 {
		font-size: 4rem;
		line-height: 1.1;
		word-wrap: break-word;
	}

	h2 {
		font-size: 2.5rem;
		text-align: center;
		line-height: 1.2;
	}

	.hero {
		padding: 6rem 1rem 4rem 1rem;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
	}

	.hero_heading {
		margin-bottom: 2rem;
	}

	.hero_heading_title {
		margin-bottom: 1rem;
	}

	.hero_heading p {
		font-size: 1.2rem;
		line-height: 1.4;
		margin: 0.5rem 0;
	}

	.hero_poki {
		width: 200px;
		height: auto;
		margin: 1rem 0;
	}

	.hero-btn {
		font-size: 1rem;
		padding: 0.8rem 1.5rem;
		margin: 1rem 0;
		white-space: nowrap;
	}

	.fun-quote {
		font-size: 1rem;
		line-height: 1.3;
		margin: 0.5rem 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.menu-toggle {
		display: block;
	}

	.socials-list {
		display: none;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: #ffd74a;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		margin-top: 70px;
	}

	.socials-list.active {
		display: flex;
	}

	.hero_anvil {
		width: 80px;
		display: none;
	}

	.ca-data {
		display: none;
	}

	.marquee {
		padding: 2rem 0;
		overflow: hidden;
	}

	.marquee-advanced__item-width {
		margin: 0 0.5rem;
	}

	.marquee-advanced__item-width img {
		width: 80px;
		height: 80px;
		object-fit: cover;
	}

	.game_main-img {
		width: 100%;
		aspect-ratio: 1 / 1;
		height: auto;
	}

	.game_weapons {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.game_weapon img {
		width: 60px;
	}

	.exchanges_terminal {
		padding-left: 0;
	}

	.exchanges_terminal-img {
		display: none;
	}

	.phantom {
		display: none;
	}

	.pfp_generator {
		padding: 3rem 1rem;
	}

	.pfp_generator_content {
		width: 100%;
	}

	.pfp_generator_canva {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.pfp_generator_row {
		flex-wrap: wrap;
	}

	footer {
		margin-bottom: 0;
		padding: 2rem 1rem 1rem 1rem;
		overflow: hidden;
	}

	.footer-content {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}

	.footer-section {
		width: 100%;
	}

	.footer-section h3 {
		font-size: 1.8rem;
		margin-bottom: 1rem;
	}

	.footer-section p {
		font-size: 0.9rem;
		line-height: 1.4;
	}

	.footer-socials {
		gap: 1rem;
		justify-content: center;
	}

	.social-link {
		width: 40px;
		height: 40px;
	}

	.social-link img {
		width: 20px;
		height: 20px;
	}

	.footer-copyright {
		font-size: 0.8rem;
		line-height: 1.3;
	}

	.footer-decoration {
		max-width: 250px;
		margin: 1rem auto;
	}

	#splash-screen {
		min-height: 100vh;
		padding: 1rem;
	}

	#splash-screen img {
		width: 40%;
		max-width: 200px;
	}

	#splash-screen button {
		font-size: 1rem;
		padding: 0.8rem 1.5rem;
		bottom: 20%;
	}
}