.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	justify-self: start;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.brand > img {
	width: 36px;
	height: 36px;
}

.wordmark {
	display: inline-block;
	background-image: linear-gradient(90deg, #fff, var(--glow-color), var(--accent), var(--glow-color), #fff);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: shimmer 6s linear infinite;
}

.nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a .i {
	font-size: 16px;
}

.nav a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}

.menu {
	position: relative;
	justify-self: end;
}

.menu summary {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	cursor: pointer;
	list-style: none;
	font-size: 20px;
	transition: background-color 0.2s var(--ease);
}

.menu summary::-webkit-details-marker {
	display: none;
}

.menu summary:hover {
	background: var(--card-hover);
}

.menu .icon-close {
	display: none;
}

.menu[open] .icon-open {
	display: none;
}

.menu[open] .icon-close {
	display: block;
}

.menu-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 50;
	display: grid;
	gap: 4px;
	width: min(320px, 100vw - var(--gutter) * 2);
	padding: 8px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--ring), 0 24px 48px rgba(0, 0, 0, 0.5);
	transform-origin: top right;
	animation: pop 0.2s var(--ease) both;
}

.menu-panel a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	color: var(--muted);
	font-weight: 500;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.menu-panel a:hover {
	background: var(--card-hover);
	color: var(--text);
}

.menu-panel a .i {
	font-size: 18px;
	color: var(--accent);
}

.menu-panel .ip,
.menu-panel .btn {
	width: 100%;
	margin-top: 4px;
}

.menu-panel .ip {
	justify-content: space-between;
}

@media (min-width: 900px) {
	.menu {
		display: none;
	}
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn .i {
	font-size: 16px;
}

.btn-primary {
	background: var(--accent-strong);
	color: #fff;
}

.btn-primary:hover {
	background: #0a86f0;
}

.btn-ghost {
	background: transparent;
	border-color: var(--line-strong);
}

.btn-ghost:hover {
	background: var(--card-hover);
}

.btn-sm {
	height: 36px;
	padding: 1px 14px 0 14px;
	font-size: 14px;
}

.ip {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 44px;
	padding: 0 14px 1px 16px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.ip:hover {
	border-color: var(--accent);
	background: var(--card-hover);
}

.ip .i {
	font-size: 16px;
	color: var(--muted-2);
}

.ip .icon-check {
	display: none;
	color: #4ade80;
}

.ip[data-copied="true"] {
	border-color: #4ade80;
}

.ip[data-copied="true"] .icon-copy {
	display: none;
}

.ip[data-copied="true"] .icon-check {
	display: block;
}

.ip-sm {
	height: 36px;
	padding: 0 12px 1px 14px;
	font-size: 14px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 20px;
	padding: 0 8px;
	border-radius: 4px;
	background: #2c2c2c;
	color: var(--text);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.tag .i {
	font-size: 12px;
}

.tag-accent {
	background: var(--accent-strong);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	color: var(--muted);
	font-size: 14px;
	white-space: nowrap;
}

.chip .i {
	font-size: 15px;
	color: var(--accent);
}

.icon-tile {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 24px;
}

.icon-tile-sm {
	width: 36px;
	height: 36px;
	font-size: 18px;
}

.mini {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 16px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--ring);
	transition: background-color 0.25s var(--ease);
}

.mini:hover {
	background: var(--card-hover);
}

.mini-body {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.mini-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.mini h2 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.mini p {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.stack > * {
	grid-area: 1 / 1;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	translate: 0 0.75rem;
	transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), visibility 0s linear 0.4s;
}

.stack > [data-active] {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
	transition-delay: 0s;
}

.text-item {
	display: grid;
	align-content: start;
	gap: 14px;
}

.text-item h3 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.text-item p {
	max-width: 46ch;
	color: var(--muted);
}

.text-item ul {
	display: grid;
	gap: 12px;
}

.text-item li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 46ch;
	color: var(--muted);
}

.text-item li .i {
	margin-top: 0.2em;
	font-size: 18px;
	color: var(--accent);
}

.text-item strong {
	color: var(--text);
	font-weight: 600;
}

.link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	margin-top: 6px;
	color: var(--accent);
	font-size: 15px;
	font-weight: 600;
	transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}

.link:hover {
	color: var(--glow-color);
	gap: 10px;
}

.link .i {
	font-size: 16px;
}

.scene-stack {
	position: relative;
	min-height: 300px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 50%, rgba(0, 166, 255, 0.2), transparent 65%),
		var(--tray);
	border-radius: var(--radius-md);
}

.scene-stack::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--grid-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.05;
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
	mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}

.scene-item {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
}

.scene-tile {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border: 1px solid rgba(0, 166, 255, 0.35);
	border-radius: 16px;
	background: var(--accent-soft);
	color: var(--glow-color);
	font-size: 30px;
}

.scene-value {
	max-width: 100%;
	font-size: clamp(3.2rem, 8vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 40px rgba(127, 224, 255, 0.45);
	overflow-wrap: anywhere;
}

.scene-value-sm {
	font-size: clamp(1.9rem, 4.4vw, 3.1rem);
	letter-spacing: -0.03em;
}

.scene-label {
	max-width: 28ch;
	color: var(--muted);
	font-size: 15px;
}

.scene-stack [data-active] .scene-tile,
.scene-stack [data-active] .scene-value {
	animation: pop 0.5s var(--ease) both;
}

.hotbar {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	width: 100%;
	padding: 6px;
	background: var(--tray);
	border-radius: var(--radius-md);
}

.slot {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	padding: 0;
	background: var(--slot);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	color: var(--muted-2);
	font-size: 24px;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), translate 0.25s var(--spring);
}

.slot:hover {
	background: #262626;
	color: var(--text);
	translate: 0 -2px;
}

.slot[aria-selected="true"] {
	background: #2a2a2a;
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--text);
}

.slot::after {
	content: "";
	position: absolute;
	right: 6px;
	bottom: -5px;
	left: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left;
}

.slot[aria-selected="true"]::after {
	opacity: 1;
	transform: scaleX(1);
}

.hotbar[data-playing] .slot[aria-selected="true"]::after {
	animation: slot-progress 7s linear both;
}

.slot::before {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 5;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	background: #f2f4f6;
	color: #101010;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	opacity: 0;
	translate: -50% 4px;
	pointer-events: none;
	transition: opacity 0.2s var(--ease), translate 0.2s var(--ease);
}

.slot:hover::before,
.slot:focus-visible::before {
	opacity: 1;
	translate: -50% 0;
}

@media (min-width: 640px) {
	.hotbar {
		display: flex;
		gap: 8px;
		width: fit-content;
		padding: 8px;
	}

	.slot {
		width: 64px;
		height: 64px;
		flex: none;
	}

	.slot::after {
		bottom: -6px;
	}
}

.step {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--ring);
	transition: background-color 0.25s var(--ease);
}

.step:hover {
	background: var(--card-hover);
}

.step-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.step-num {
	color: var(--muted-2);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 600;
}

.step p {
	color: var(--muted);
}

.step-action {
	display: flex;
	margin-top: auto;
	padding-top: 8px;
}

.step-action > .ip,
.step-action > .btn {
	width: 100%;
}

.step-action > .ip {
	justify-content: space-between;
}

.ip-static {
	cursor: default;
}

.ip-static:hover {
	border-color: var(--line-strong);
	background: var(--bg);
}

.ip-static .i {
	color: #4ade80;
}

.step strong {
	color: var(--text);
	font-weight: 600;
}

.faq {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--ring);
	overflow: hidden;
}

.faq details + details {
	border-top: 1px solid var(--line);
}

.faq summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary:hover {
	background: var(--card-hover);
}

.faq summary span:not(.icon-tile) {
	flex: 1;
	min-width: 0;
}

.faq .chev {
	font-size: 18px;
	color: var(--muted-2);
	transition: rotate 0.3s var(--ease);
}

.faq details[open] .chev {
	rotate: 180deg;
}

.faq details::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content {
	block-size: auto;
}

.faq details p {
	max-width: 68ch;
	padding: 15px 24px 22px 74px;
	color: var(--muted);
	font-size: 15px;
}

@media (max-width: 639px) {
	.faq summary {
		padding: 14px 16px;
	}

	.faq details p {
		padding: 10px 24px 16px 18px;
	}
}

.ip[data-copy] > span {
	font-variant-caps: all-small-caps;
	letter-spacing: 0.04em;
}
