/* Squid Surge – extra styles on top of theme.json */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Underwater backdrop: light rays + slow bubbles */
.squid-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(105deg, transparent 0 18%, #ffffff0d 18% 24%, transparent 24% 46%, #ffffff0a 46% 50%, transparent 50% 72%, #ffffff08 72% 79%, transparent 79%),
		linear-gradient(180deg, #145a8c 0%, #0a2c5c 55%, #041530 100%);
}
.squid-hero::before,
.squid-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle, #ffffff40 0 3px, transparent 4px),
		radial-gradient(circle, #ffffff30 0 5px, transparent 6px),
		radial-gradient(circle, #ffffff26 0 2px, transparent 3px);
	background-size: 220px 260px, 340px 420px, 160px 190px;
	background-position: 30px 40px, 120px 200px, 80px 10px;
	animation: squid-bubbles 18s linear infinite;
	opacity: .7;
}
.squid-hero::after {
	background-size: 280px 300px, 190px 350px, 400px 240px;
	animation-duration: 27s;
	opacity: .45;
}
@keyframes squid-bubbles { to { background-position: 30px -220px, 120px -220px, 80px -180px; } }
@media (prefers-reduced-motion: reduce) {
	.squid-hero::before, .squid-hero::after { animation: none; }
	html { scroll-behavior: auto; }
}
.squid-hero > * { position: relative; z-index: 1; }

.squid-title {
	letter-spacing: .02em;
	text-shadow: 0 4px 0 #041530, 0 0 28px #f26b8066;
}

/* The squid gently bobbing */
.squid-bob img { animation: squid-bob 3.2s ease-in-out infinite; }
@keyframes squid-bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .squid-bob img { animation: none; } }

/* Phone frames for screenshots */
.squid-phone img {
	border-radius: 28px;
	border: 8px solid #041530;
	box-shadow: 0 0 0 2px #ffffff22, 0 24px 60px #00000080;
	background: #041530;
	max-width: 280px;
	margin-inline: auto;
	display: block;
}
.squid-phone.is-tilt-left img { transform: rotate(-4deg); }
.squid-phone.is-tilt-right img { transform: rotate(4deg); }
@media (max-width: 781px) {
	.squid-phone.is-tilt-left img, .squid-phone.is-tilt-right img { transform: none; }
}

/* Cards */
.squid-card {
	background: #0a2c5c;
	border: 2px solid #ffffff14;
	border-radius: 24px;
	height: 100%;
}
.squid-card .squid-emoji { font-size: 2.6rem; line-height: 1; margin: 0; }

/* Live leaderboard */
.squid-scores {
	background: #0a2c5c;
	border: 3px solid #ffffff1f;
	border-radius: 28px;
	padding: 18px;
	max-width: 520px;
	margin-inline: auto;
	box-shadow: 0 20px 50px #00000060;
}
.squid-scores__list { list-style: none; margin: 0; padding: 0; }
.squid-scores__row {
	display: grid;
	grid-template-columns: 2.4em 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 14px;
	font-weight: 700;
}
.squid-scores__row:nth-child(odd) { background: #ffffff0a; }
.squid-scores__rank {
	display: inline-grid; place-items: center;
	width: 2em; height: 2em; border-radius: 50%;
	background: #145a8c; color: #fff; font-size: .9em;
}
.is-top-1 .squid-scores__rank { background: #ffd959; color: #041530; }
.is-top-2 .squid-scores__rank { background: #dfe8f2; color: #041530; }
.is-top-3 .squid-scores__rank { background: #e0a070; color: #041530; }
.squid-scores__name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squid-scores__score { color: #ffd959; font-variant-numeric: tabular-nums; font-size: 1.15em; }
.squid-scores__status { text-align: center; padding: 18px; color: #cceeff; }
.squid-scores__updated { text-align: center; font-size: .85rem; opacity: .7; margin: 12px 0 0; }

/* Sticky translucent header */
.squid-header {
	position: sticky; top: 0; z-index: 50;
	background: #041530d9;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #ffffff14;
}
body.admin-bar .squid-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .squid-header { top: 46px; } }
.squid-header .wp-block-navigation a { color: #cceeff; font-weight: 700; }
.squid-header .wp-block-navigation a:hover { color: #ffd959; }
.squid-header .wp-block-site-logo img { border-radius: 12px; }

/* Sandy footer edge like the game's seabed */
.squid-footer { border-top: 10px solid #c9a86a; background: #8a6f45; color: #fff3dc; }
.squid-footer a { color: #fff; }
.squid-footer img { border-radius: 16px; }
