*,
*::before,
*::after,
*:focus {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
	touch-action: none;
	box-sizing: border-box;
	outline: none !important;
	-webkit-appearance: none;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1;
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Remove default margin */
p {
	margin: 0;
}

/* Inherit fonts for inputs and buttons */
button {
	font: inherit;
}
:root {
	--bg: #23122e;
	--color: #ff8fc7;
	--shadow: #ffa8d6;
	--text: #ffe3f3;
	--vw: 1vw;
	--vh: 1vh;
}

.emoji-glyph {
	font-family: "Comic Sans MS", Times, serif;
}

body,
body * {
	text-shadow: 0 0 3px #000;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	font-family: "Comic Sans MS", Times, serif;
}

html,
body {
	width: 100vw;
	min-width: 100vw;
	max-width: 100vw;
	height: 100vh;
	min-height: 100vh;
	max-height: 100vh;
	width: calc(var(--vw, 1vw) * 100);
	min-width: calc(var(--vw, 1vw) * 100);
	max-width: calc(var(--vw, 1vw) * 100);
	height: calc(var(--vh, 1vh) * 100);
	min-height: calc(var(--vh, 1vh) * 100);
	max-height: calc(var(--vh, 1vh) * 100);
	margin: 0;
	padding: 0;
	overscroll-behavior-y: none;
}

body {
	align-items: flex-end;
	color: var(--text);
	font-size: 24px;
	background: var(--bg);
	position: fixed;
	inset: 0;
}

body::before {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 40% at 20% 15%, color-mix(in oklch, var(--color) 35%, transparent), transparent 70%),
		radial-gradient(ellipse 55% 35% at 80% 25%, color-mix(in oklch, var(--shadow) 30%, transparent), transparent 70%),
		radial-gradient(ellipse 50% 40% at 50% 85%, color-mix(in oklch, var(--color) 25%, transparent), transparent 70%);
	filter: blur(40px);
	animation: aurora-drift 18s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes aurora-drift {
	0% {
		transform: translate(-3%, -2%) scale(1);
	}
	50% {
		transform: translate(3%, 2%) scale(1.08);
	}
	100% {
		transform: translate(-2%, 3%) scale(1.03);
	}
}

small {
	width: 100%;
	display: block;
	line-height: 1;
	font-size: 0.75rem;
	text-align: right;
}

h1,
h2 {
	margin: 0;
	font-size: 32px;
	width: 100%;
	color: var(--text);
}

h2 {
	font-size: 24px;
}

a {
	text-decoration: underline;
	color: var(--color);
	font-weight: bold;
	cursor: pointer;
}

hr {
	width: 100%;
	border-color: var(--shadow);
	margin: 16px 0;
}

p {
	margin-bottom: 8px;
	width: 100%;
	line-height: 1.2;
}

b {
	color: var(--text);
	margin-bottom: 8px;
}

ul {
	padding: 0;
	margin: 0;
	list-style: none;
	text-align: center;
}

div {
	display: flex;
	justify-content: center;
	align-items: center;
}

svg {
	filter: drop-shadow(0 0 5px #000);
}
.modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 16px;
	box-sizing: border-box;
	z-index: 100;
	opacity: 0;
}

.modal.active {
	opacity: 1;
	z-index: 100;
}

.modal-overlay {
	position: absolute;
	width: 10000%;
	height: 10000%;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 101;
}

.modal-container {
	position: absolute;
	padding: 16px;
	z-index: 102;
	background-color: var(--bg);
	border: 2px solid var(--color);
	box-shadow: 0 0 15px var(--shadow);
	border-radius: 8px;
	text-align: center;
	flex-direction: column;
	align-items: stretch;
	width: min(300px, 100%);
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	transform: translateY(50px);
	transition: transform 500ms;
}

.active .modal-container {
	transform: translateY(0);
}

.modal-container header {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin-bottom: 16px;
}

.modal-container main {
	width: 100%;
	box-sizing: border-box;
	font-size: 18px;
	flex-direction: column;
}

.modal-container footer {
	margin-top: 16px;
}

.modal button:first-of-type {
	margin-left: 0;
}

.modal button:last-of-type {
	margin-right: 0;
}
.button-wrap {
	position: relative;
	display: inline-flex;
	margin: 0 0.5rem;
	cursor: pointer;
	transition: transform 160ms ease;
}

.button-wrap:hover {
	transform: translateY(-1px);
}

.button-wrap:active {
	transform: translateY(1px);
}

.button-confetti {
	position: absolute;
	inset: -60px;
	pointer-events: none;
	overflow: visible;
	z-index: 1;
}

button {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border: 1px solid oklch(from var(--color) calc(l - 0.15) c h);
	margin: 0;
	padding: 10px 20px;
	font: inherit;
	font-weight: bold;
	font-size: 16px;
	border-radius: 999px;
	color: var(--text);
	text-shadow: none;
	cursor: pointer;
	background: var(--color);
	box-shadow: 0 2px 0 oklch(from var(--color) calc(l - 0.2) c h);
	transition:
		box-shadow 140ms ease,
		filter 140ms ease;
}

button.sm {
	height: 32px;
	padding: 0 12px;
	font-size: 12px;
}

button.md {
	height: 40px;
	padding: 0 20px;
	font-size: 14px;
}

button.lg {
	height: 48px;
	padding: 0 24px;
	font-size: 16px;
}

button.icon {
	height: 32px;
	width: 32px;
	padding: 0;
}

.button-ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.05);
}

.button-wrap:hover button {
	filter: brightness(1.08);
}

.button-wrap:active button {
	box-shadow: none;
	filter: brightness(0.96);
}

button.disabled {
	pointer-events: none;
	opacity: 0.25;
}

.button-wrap.danger button {
	background: #f04a4a;
	color: #fff;
	border-color: oklch(from #f04a4a calc(l - 0.15) c h);
	box-shadow: 0 2px 0 oklch(from #f04a4a calc(l - 0.2) c h);
}

.button-wrap.success button {
	background: #4ad991;
	color: #0f3822;
	border-color: oklch(from #4ad991 calc(l - 0.15) c h);
	box-shadow: 0 2px 0 oklch(from #4ad991 calc(l - 0.2) c h);
}

.button-wrap.normal button {
	background: oklch(from var(--text) calc(l - 0.6) c h);
	color: var(--text);
	border-color: oklch(from var(--text) calc(l - 0.7) c h);
	box-shadow: 0 2px 0 oklch(from var(--text) calc(l - 0.75) c h);
}

/* secondary/outline/ghost are flat: no shadow, no press-slide */
.button-wrap.secondary:active button,
.button-wrap.outline:active button,
.button-wrap.ghost:active button {
	transform: none;
}

.button-wrap.secondary button {
	background: oklch(from var(--bg) calc(l + 0.15) c h);
	color: var(--text);
	box-shadow: none;
}

.button-wrap.outline button {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--color);
	box-shadow: none;
}

.button-wrap.ghost button {
	background: transparent;
	color: var(--text);
	box-shadow: none;
	opacity: 0.7;
}

.button-wrap.ghost:hover button {
	opacity: 1;
}
.fireflies {
	position: fixed;
	z-index: 0;
	filter: blur(1px);
	pointer-events: none;
}
.edge-button {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 8px;
	border: 2px solid var(--text);
	border-radius: 8px;
	opacity: 0.4;
	z-index: 5;
	cursor: pointer;
}

.edge-button:hover {
	opacity: 0.6;
}

.edge-button svg {
	fill: var(--text);
	width: 100%;
	height: 100%;
}

.edge-button.active {
	opacity: 1;
}

.edge-button.link {
	opacity: 0.8;
}

.edge-button.link:hover {
	opacity: 1;
}
.game {
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding-bottom: 24px;
	background-color: var(--bg);
	border-left: 2px solid var(--color);
	border-right: 2px solid var(--color);
	box-shadow:
		0 0 25px var(--shadow),
		inset 0 0 40px rgba(0, 0, 0, 0.35);
}

/* the container itself is a fixed 360px wide; once the viewport can't fit that
   plus the side border/glow, drop them so the game isn't clipped or crowded */
@media (max-width: 364px) {
	.game {
		border-left: none;
		border-right: none;
		box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
	}
}

.game * {
	transition: all 0.2s ease-in-out;
}

/* idle life for mascot/character sprites: apply .wiggle-and-float to any element */
.wiggle-and-float {
	animation: wiggle-and-float 1s infinite;
}

@keyframes wiggle-and-float {
	0% {
		transform: rotate(0deg) translateY(0px);
	}
	25% {
		transform: rotate(7deg) translateY(-2px);
	}
	50% {
		transform: rotate(0deg) translateY(0px);
	}
	75% {
		transform: rotate(-7deg) translateY(-2px);
	}
	100% {
		transform: rotate(0deg) translateY(0px);
	}
}
.home-screen {
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.home-actions {
	flex: 1;
	min-height: 0;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
	padding: 0 12px;
	margin: 0 0 20px;
}

.home-depth {
	gap: 8px;
	margin-bottom: 4px;
}

.home-info-btn {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--text);
	font-size: 10px;
	font-weight: bold;
	opacity: 0.6;
	cursor: pointer;
}

.home-info-btn:hover {
	opacity: 1;
}

.home-drop-rates {
	display: grid;
	grid-template-columns: auto auto;
	column-gap: 16px;
	row-gap: 8px;
	width: 100%;
	justify-content: center;
}

.home-drop-rate-row {
	display: contents;
	font-weight: bold;
	text-transform: capitalize;
}

.home-drop-rate-label {
	text-align: left;
}

.home-drop-rate-value {
	text-align: right;
}

.home-dust {
	gap: 4px;
	margin-bottom: 8px;
	font-size: 12px;
	opacity: 0.85;
}

.home-dust-icon {
	font-size: 14px;
}

.home-dust-value {
	font-weight: bold;
}


.home-depth-cloud {
	width: 36px;
	height: 36px;
	filter: drop-shadow(0 0 3px #fff);
}

.home-depth-value {
	font-size: 24px;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.home-stats-panel {
	padding: 10px 14px;
	margin-bottom: 12px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

.home-stats-row {
	gap: 10px;
}

.home-stat {
	flex-direction: column;
	gap: 1px;
}

.home-stat-label {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.6;
}

.home-stat-value {
	font-size: 13px;
	font-weight: bold;
}

.home-inventory-panel {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	padding: 10px;
	margin-top: 10px;
	margin-bottom: 16px;
	border-radius: 12px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

.home-sparkle-badge {
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 999px;
	background-color: var(--bg);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.4);
	font-size: 9px;
	font-weight: bold;
	white-space: nowrap;
}

.home-sparkle-icon {
	font-size: 10px;
}

.home-slot {
	position: relative;
	width: 40px;
	height: 40px;
	font-size: 22px;
	border: 2px solid var(--shadow);
	border-radius: 8px;
	background-color: rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
	cursor: pointer;
	transition:
		opacity 300ms ease,
		transform 300ms ease;
}

.home-slot.empty {
	opacity: 0.4;
	border-style: dashed;
	cursor: default;
}

.home-slot.dimmed {
	opacity: 0.1;
}

.home-slot.highlighted {
	opacity: 1;
	z-index: 1;
	box-shadow: 0 0 12px 2px var(--shadow);
}

.home-slot-level {
	position: absolute;
	top: 2px;
	left: 2px;
	font-size: 9px;
	font-weight: bold;
	line-height: 1;
}

.home-button-slot {
	position: relative;
	min-height: 44px;
}

.home-loot-choice {
	gap: 8px;
}

.home-item-view-actions {
	position: relative;
}

.home-upgrade-cost {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	font-size: 10px;
	opacity: 0.7;
	white-space: nowrap;
}

/* always takes all free space above the cloud, so battle, loot, and the idle
   empty state are the same size and content only ever crossfades in place */
.home-feature-panel {
	width: calc(100% + 24px);
	margin: 0 -12px 12px;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
	padding: 14px;
	overflow: hidden;
	border-radius: 0;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

.home-feature-panel-inner {
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.home-loot-compare {
	align-items: flex-start;
	gap: 10px;
}

.home-loot-side {
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.home-loot-side-label {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.6;
}

.home-loot-vs {
	align-self: center;
	font-size: 14px;
	font-weight: bold;
	opacity: 0.6;
	padding-top: 30px;
}

.loot-card {
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.loot-label {
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.55;
}

.loot-emoji {
	width: 64px;
	height: 64px;
	font-size: 34px;
	justify-content: center;
	align-items: center;
	border: 3px solid var(--shadow);
	border-radius: 16px;
	background-color: rgba(255, 255, 255, 0.05);
	margin: 4px 0;
}

.loot-emoji.empty {
	color: var(--shadow);
	opacity: 0.5;
	border-style: dashed;
}

.loot-rarity {
	font-size: 14px;
	font-weight: bold;
	text-transform: capitalize;
}

.loot-ability {
	max-width: 220px;
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: 8px;
	background-color: rgba(255, 184, 77, 0.12);
	border: 1px solid rgba(255, 184, 77, 0.35);
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
}

.loot-ability .ability-name {
	color: #ffb84d;
	font-weight: bold;
}

.loot-found {
	font-size: 10px;
	opacity: 0.6;
	margin-bottom: 4px;
}

.loot-stats {
	flex-direction: column;
	align-items: flex-start;
	font-size: 13px;
	gap: 2px;
}

.loot-stat {
	display: block;
}

.loot-score-row {
	flex-direction: column;
	align-items: center;
	margin-top: 6px;
}

.loot-score {
	font-size: 22px;
	font-weight: bold;
	line-height: 1.1;
}

.loot-score-label {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.6;
}

.loot-stat.primary-stat {
	font-weight: bold;
}

.loot-stat.stat-preview {
	color: #6faa8a;
}

.loot-stat.stat-up {
	color: #8fffc9;
}

.loot-stat.stat-down {
	color: #ff8f8f;
}

.loot-score.stat-up {
	color: #8fffc9;
}

.loot-score.stat-down {
	color: #ff8f8f;
}
.progress-bar-wrap {
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.inventory-panel {
	padding: 10px;
	border-radius: 12px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.inventory {
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 168px;
}

.inventory-slot {
	position: relative;
	z-index: 998;
	width: 36px;
	height: 36px;
	background-color: rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
	border-radius: 6px;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	line-height: 1;
}

.inventory-slot.beam-target {
	z-index: 1001;
}

.inventory-slot-item {
	line-height: 1;
	border-radius: 4px;
	border: 2px solid transparent;
}

.inventory-slot-overlay {
	position: absolute;
	inset: 0;
	border-radius: 5px;
	opacity: 0;
	pointer-events: none;
}

.progress-bar {
	position: relative;
	width: 260px;
	height: 20px;
	background-color: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
	padding: 2px;
	border-radius: 4px;
	justify-content: flex-start;
	box-sizing: border-box;
}

.progress-track {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 2px;
	overflow: hidden;
	justify-content: flex-start;
}

.progress {
	height: 14px;
	border-radius: 2px;
	background-color: rgba(255, 255, 255, 0.75);
}

.progress-fx {
	position: absolute;
	inset: -30px;
	pointer-events: none;
	overflow: visible;
}

.progress-cloud {
	position: absolute;
	top: 50%;
	right: -10px;
	width: 66px;
	height: 66px;
	z-index: 1002;
	--cloud-progress-scale: 1;
	transform: translate(50%, -50%) scale(var(--cloud-progress-scale)) rotate(8deg);
	transition: transform 0.25s ease-out;
	filter: drop-shadow(0 0 4px #fff);
}

.progress-rainbow-beam {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	z-index: 999;
	pointer-events: none;
	overflow: visible;
	filter: blur(0.5px) drop-shadow(0 0 6px var(--shadow));
}
/* offsets .home-feature-panel's own 14px padding so hp-panel/combat-log can each
   run their background/border edge-to-edge and own their padding individually */
.combat-view {
	position: relative;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	box-sizing: border-box;
	width: calc(100% + 28px);
	height: calc(100% + 28px);
	margin: -14px;
	min-height: 0;
	overflow: hidden;
}

.hp-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 14px 12px;
	background: rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid var(--shadow);
	z-index: 1;
}

.hp-row {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin-bottom: 14px;
}

.hp-label {
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	font-size: 13px;
	margin-bottom: 6px;
}

.hp-track {
	width: 100%;
	height: 12px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--shadow);
	border-radius: 6px;
	overflow: hidden;
	justify-content: flex-start;
	box-sizing: border-box;
}

.hp-fill {
	height: 100%;
	width: 100%;
	background-color: var(--color);
	transition: width 200ms;
}

.combat-log {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	font-size: 11px;
	line-height: 1.5;
	text-align: left;
	padding: 8px 14px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.combat-log::-webkit-scrollbar {
	display: none;
}

.combat-round {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
	transition: none;
}

.combat-round:last-child {
	border-bottom: none;
}

.combat-round-body {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	transition: none;
}

.combat-round-label {
	display: block;
	text-align: left;
	font-size: 9px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.5;
	margin-bottom: 2px;
	transition: none;
}

.combat-line {
	display: block;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: none;
}

.combat-line.crit {
	color: #ffd54f;
}

.combat-line.ability {
	color: #ffb84d;
}

.combat-line.win {
	color: #8fffc9;
	font-weight: bold;
	margin-top: 4px;
}

.combat-line.loss {
	color: #ff8f8f;
	font-weight: bold;
	margin-top: 4px;
}

.combat-line.dust {
	color: var(--shadow);
	opacity: 0.85;
}
.leaderboard-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.leaderboard-panel {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
	text-align: left;
}

.leaderboard-empty {
	padding: 12px 4px;
	font-size: 14px;
	opacity: 0.7;
	text-align: center;
}

.leaderboard-list {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
}

.leaderboard-row {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	gap: 10px;
	padding: 6px 4px;
	font-size: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-row:last-child {
	border-bottom: none;
}

.leaderboard-row.local-player {
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	border-bottom-color: transparent;
}

.leaderboard-row.local-player .leaderboard-name {
	color: var(--color);
	font-weight: bold;
}

.leaderboard-rank {
	width: 20px;
	flex-shrink: 0;
	justify-content: flex-start;
	text-align: left;
	font-weight: bold;
	opacity: 0.6;
}

.leaderboard-row.top-three .leaderboard-rank {
	opacity: 1;
}

.leaderboard-row.rank-1 .leaderboard-rank {
	color: #ffd700;
}

.leaderboard-row.rank-2 .leaderboard-rank {
	color: #d8d8d8;
}

.leaderboard-row.rank-3 .leaderboard-rank {
	color: #cd7f32;
}

.leaderboard-name {
	flex: 1;
	min-width: 0;
	justify-content: flex-start;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.leaderboard-depth {
	display: flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
	font-weight: bold;
}

.leaderboard-depth-icon {
	font-size: 12px;
}

.leaderboard-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.leaderboard-pagination.hidden {
	display: none;
}

.leaderboard-page-button {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 2px solid var(--color);
	background-color: rgba(0, 0, 0, 0.2);
	color: inherit;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
}

.leaderboard-page-button:disabled {
	opacity: 0.35;
	cursor: default;
}

.leaderboard-page-label {
	font-size: 13px;
	opacity: 0.8;
	min-width: 40px;
	text-align: center;
}

.leaderboard-stats {
	display: flex;
	gap: 10px;
}

.leaderboard-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 4px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.2);
}

.leaderboard-stat-label {
	font-size: 11px;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.leaderboard-stat-value {
	font-size: 16px;
	font-weight: bold;
}

.leaderboard-submit-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.leaderboard-submit-row .button-wrap {
	width: 100%;
}

.leaderboard-submit-row button {
	width: 100%;
}

.leaderboard-name-input {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 2px solid var(--color);
	background-color: rgba(0, 0, 0, 0.2);
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.leaderboard-name-input::placeholder {
	color: inherit;
	opacity: 0.5;
}
