/* Global page styling */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Kalam", cursive;
	background: #e9f3ed; /* light sage, unisex */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden; /* prevent scroll from background animation */
}

/* Center container */
.container {
	text-align: center;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	padding: 40px 20px;
}

/* ============================
   ANIME SQUAD BACKGROUND
   ============================ */

.bg-characters {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* Base silhouette */
.squad {
	position: absolute;
	width: 90px;
	height: 150px;
	color: #1f2933;
	opacity: 0.5;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* Positions for each squad member */
.squad--leader {
	top: 10%;
	left: 5%;
	animation: squadFloat 3s ease-in-out infinite;
}

.squad--swordsman {
	left: 10%;
	bottom: 10%;
	animation: squadFloat 3.4s ease-in-out infinite;
}

.squad--mage {
	right: 10%;
	bottom: 12%;
	animation: squadFloat 3.1s ease-in-out infinite;
}

.squad--brawler {
	right: 5%;
	bottom: 6%;
	animation: squadFloat 3.3s ease-in-out infinite;
}

.squad--pirate {
	top: 14%;
	right: 22%;
	animation: squadFloat 3.2s ease-in-out infinite;
}

.squad--martial {
	top: 16%;
	left: 24%;
	animation: squadFloat 2.8s ease-in-out infinite;
}

.squad--sidekick {
	bottom: 8%;
	left: 50%;
	transform: translateX(-50%);
	animation: squadFloat 3.6s ease-in-out infinite;
}

/* Common head */
.squad__head {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: currentColor;
	margin: 0 auto;
	position: relative;
}

/* Spiky hair head (leader, martial) */
.squad__head--spikes {
	width: 32px;
	height: 32px;
	background: currentColor;
	margin: 0 auto;
	position: relative;
	border-radius: 50%;
}

.squad__head--spikes::before {
	content: "";
	position: absolute;
	top: -12px;
	left: -4px;
	width: 40px;
	height: 20px;
	background: currentColor;
	clip-path: polygon(
		0% 100%,
		10% 0%,
		22% 100%,
		35% 0%,
		50% 100%,
		65% 0%,
		80% 100%,
		95% 0%,
		100% 100%
	);
}

/* Common body */
.squad__body {
	width: 22px;
	height: 50px;
	background: currentColor;
	margin: 6px auto 0;
	border-radius: 16px;
}

/* Smaller chibi body for sidekick */
.squad__body--small {
	width: 16px;
	height: 32px;
}

/* Aura ring for leader / martial */
.squad__aura {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid rgba(31, 41, 51, 0.4);
	animation: auraPulse 2s ease-in-out infinite;
}

/* Extra spiky aura for martial artist */
.squad__aura--spiky {
	border-style: dashed;
	animation-duration: 1.6s;
}

/* Sword (stretchy swing) */
.squad__sword {
	position: absolute;
	width: 60px;
	height: 4px;
	background: currentColor;
	border-radius: 999px;
	top: 52px;
	left: 50%;
	transform-origin: left center;
	transform: translateX(-20%) rotate(-30deg);
	animation: swordSwing 1.5s ease-in-out infinite;
}

/* Headband (for swordsman & brawler) */
.squad__band {
	position: absolute;
	top: 10px;
	left: 4px;
	right: 4px;
	height: 6px;
	background: #ff8cb4;
	border-radius: 999px;
}

.squad__band--brawler {
	top: 12px;
}

/* Headband tail */
.squad__band::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 2px;
	width: 18px;
	height: 4px;
	background: #ff8cb4;
	border-radius: 999px;
	transform-origin: left center;
	animation: bandTail 1.2s ease-in-out infinite;
}

/* Mage cloak */
.squad__cloak {
	width: 46px;
	height: 70px;
	background: currentColor;
	margin: 10px auto 0;
	border-radius: 36px 36px 8px 8px;
	position: relative;
}

/* Mage glowing orb */
.squad__orb {
	position: absolute;
	top: 34px;
	right: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(31, 41, 51, 0.7);
	animation: orbPulse 1.8s ease-in-out infinite;
}

/* Brawler fists */
.squad__fist {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: currentColor;
	top: 52px;
}

.squad__fist--left {
	left: 6px;
	animation: punch 1.4s ease-in-out infinite;
}

.squad__fist--right {
	right: 6px;
	animation: punch 1.4s ease-in-out infinite;
	animation-delay: 0.2s;
}

/* Pirate hat */
.squad__hat {
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 42px;
	height: 16px;
	background: currentColor;
	border-radius: 10px 10px 4px 4px;
}

.squad__hat::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: -4px;
	width: 50px;
	height: 6px;
	background: currentColor;
	border-radius: 999px;
}

/* Martial artist belt */
.squad__belt {
	position: absolute;
	top: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 6px;
	background: #ff8cb4;
	border-radius: 999px;
}

/* Speech bubbles */
.squad__bubble {
	position: absolute;
	top: -38px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.8);
	color: #4b5563;
	font-size: 0.62rem;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.squad__bubble::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 8px;
	height: 6px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 0 0 999px 999px;
}

/* bubble animation class */
.bubble-show {
	animation: bubbleTalk 1.2s ease-out forwards;
}

/* Float animation for the squad */
@keyframes squadFloat {
	0% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-8px) scale(1.03);
	}
	100% {
		transform: translateY(0) scale(1);
	}
}

/* Aura pulse around leader / martial */
@keyframes auraPulse {
	0% {
		transform: translateX(-50%) scale(1);
		opacity: 0.3;
	}
	50% {
		transform: translateX(-50%) scale(1.12);
		opacity: 0.8;
	}
	100% {
		transform: translateX(-50%) scale(1);
		opacity: 0.3;
	}
}

/* Sword swing (stretchy) */
@keyframes swordSwing {
	0% {
		transform: translateX(-20%) scaleX(1) rotate(-30deg);
	}
	50% {
		transform: translateX(-20%) scaleX(1.2) rotate(-8deg);
	}
	100% {
		transform: translateX(-20%) scaleX(1) rotate(-30deg);
	}
}

/* Headband tail flap */
@keyframes bandTail {
	0% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(14deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

/* Orb glow */
@keyframes orbPulse {
	0% {
		transform: scale(1);
		opacity: 0.4;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.9;
	}
	100% {
		transform: scale(1);
		opacity: 0.4;
	}
}

/* Punch animation */
@keyframes punch {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
	100% {
		transform: translateY(0);
	}
}

/* Speech bubble pop-in */
@keyframes bubbleTalk {
	0% {
		transform: translate(-50%, 6px) scale(0.9);
		opacity: 0;
	}
	40% {
		transform: translate(-50%, 0) scale(1);
		opacity: 1;
	}
	100% {
		transform: translate(-50%, -2px) scale(1);
		opacity: 0.9;
	}
}

/* ============================
   POLAROID + BUTTON
   ============================ */

.polaroid {
	width: 340px;
	background: #fdf7f0;
	border-radius: 18px;
	padding: 20px 20px 26px;
	border: 3px solid #e1d2c2;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18),
		0 2px 0 rgba(255, 255, 255, 0.7) inset;
	position: relative;
	z-index: 2;
	margin: 0 auto 28px;
	transition: transform 0.25s ease;
}

/* Photo area inside polaroid */
.photo-area {
	background: #ffffff;
	height: 240px;
	border-radius: 10px;
	border: 2px solid #e7d3c4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	overflow: hidden;
	transition: background 0.4s ease;
}

/* Compliment text */
.develop-text {
	font-size: 1.4rem;
	color: #333333;
	text-align: center;
	opacity: 1;
	transition: opacity 0.6s ease;
	max-width: 100%;
	word-wrap: break-word;
}

/* Caption */
.caption-area {
	margin-top: 14px;
	font-size: 1.1rem;
	color: #b0566a;
	letter-spacing: 0.03em;
}

/* Reveal button */
.reveal-btn {
	border: none;
	background: #ff8cb4;
	color: #fff;
	font-size: 1.15rem;
	padding: 12px 40px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	position: relative;
	z-index: 2;
}

.reveal-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
	background: #ff7aa7;
}

/* Shake animation */
@keyframes shake {
	0% {
		transform: rotate(0deg);
	}
	20% {
		transform: rotate(2deg);
	}
	40% {
		transform: rotate(-2deg);
	}
	60% {
		transform: rotate(1.3deg);
	}
	80% {
		transform: rotate(-1.3deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

.shake {
	animation: shake 0.5s ease;
}

/* Reveal text animation */
@keyframes revealText {
	0% {
		opacity: 0;
		letter-spacing: 0.15em;
		transform: scale(1.02);
	}
	60% {
		opacity: 1;
		letter-spacing: 0.03em;
	}
	100% {
		opacity: 1;
		letter-spacing: 0.02em;
		transform: scale(1);
	}
}

.reveal-effect {
	animation: revealText 1s ease;
}

/* Mobile responsiveness */
@media (max-width: 420px) {
	.polaroid {
		width: 300px;
	}
	.photo-area {
		height: 210px;
	}
	.develop-text {
		font-size: 1.25rem;
	}
}
