/* HoloUnlock front. Everything lives under .hu-wrap so theme styles stay put. */

.hu-wrap {
	--hu-border: #c5d2e0;
	--hu-btn: #e84a9a;
	--hu-btn-text: #ffffff;
	--hu-accent: #e84a9a;
	--hu-radius: 18px;
	font-family: inherit;
	color: inherit;
	line-height: 1.5;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.hu-wrap *,
.hu-wrap *::before,
.hu-wrap *::after {
	box-sizing: border-box;
}

.hu-embed-body {
	margin: 0;
	padding: 16px;
	background: #f3f6fb;
	color: #10283f;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hu-embed-body .hu-wrap {
	max-width: 440px;
	margin: 0 auto;
}

.hu-wrap.hu-grid-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	float: none;
	clear: both;
	box-sizing: border-box;
	container-type: inline-size;
}

.hu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 22px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

.entry-content .hu-wrap,
.post-content .hu-wrap,
.wp-block-shortcode .hu-wrap,
.dslc-text-module-content .hu-wrap,
.dslc-module-front .hu-wrap {
	width: 100%;
	max-width: 100%;
	float: none;
}

.hu-single {
	max-width: 440px;
	margin: 0 auto;
}

.hu-card {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--hu-border);
	border-radius: var(--hu-radius);
	padding: 12px;
	background: transparent;
	color: inherit;
	min-width: 0;
}

.hu-frame {
	border-radius: calc(var(--hu-radius) - 6px);
	padding: 2px;
	background: linear-gradient(120deg, #6aa7ff, #3ecbff, #b8f3cf, #ffe08a, #ff9ad4, #9aa6ff, #6aa7ff);
	background-size: 280% 280%;
	animation: hu-shift 8s ease-in-out infinite;
}

.hu-frame.is-diamond {
	background: linear-gradient(130deg, #071526, #1d4e89, #8fd4ff, #e7f6ff, #1d4e89, #071526);
	background-size: 240% 240%;
}

.hu-frame.is-mix {
	background: linear-gradient(120deg, #12345a, #3ecbff, #7aa2ff, #f3d2ff, #8fd4ff, #12345a);
	background-size: 260% 260%;
}

.hu-holo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: calc(var(--hu-radius) - 8px);
	background: #0c1726;
	isolation: isolate;
}

.hu-wrap .hu-card img.hu-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.hu-ghost,
.hu-foil,
.hu-motif,
.hu-shine {
	position: absolute;
	pointer-events: none;
}

.hu-ghost {
	inset: 0;
	background: radial-gradient(88% 72% at 50% 42%, rgba(7, 16, 28, 0.66), rgba(5, 10, 18, 0.88));
}

.hu-foil {
	inset: 0;
	background: linear-gradient(
		115deg,
		rgba(255, 0, 128, 0) 0%,
		rgba(255, 80, 160, 0.38) 18%,
		rgba(255, 196, 70, 0.28) 34%,
		rgba(70, 255, 214, 0.32) 50%,
		rgba(70, 120, 255, 0.42) 66%,
		rgba(196, 90, 255, 0.34) 82%,
		rgba(255, 255, 255, 0) 100%
	);
	background-size: 220% 220%;
	mix-blend-mode: screen;
	animation: hu-foil 7.5s ease-in-out infinite;
}

.hu-holo[data-look="diamond"] .hu-foil {
	background: linear-gradient(
		125deg,
		rgba(8, 24, 48, 0.1) 0%,
		rgba(50, 150, 255, 0.5) 30%,
		rgba(220, 246, 255, 0.42) 50%,
		rgba(12, 78, 170, 0.48) 72%,
		rgba(180, 230, 255, 0.2) 100%
	);
	background-size: 200% 200%;
}

.hu-motif {
	inset: -20%;
	opacity: 0.62;
	background-repeat: repeat;
	background-size: 120px 120px;
	mix-blend-mode: screen;
	animation: hu-drift 18s linear infinite;
}

.hu-motif[data-pattern="diamonds"] {
	opacity: 0.48;
	background-size: 140px 168px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='168' viewBox='0 0 140 168'%3E%3Cg fill='none' stroke='%237ecbff' stroke-width='1.4'%3E%3Cpath d='M70 10 L118 84 L70 158 L22 84 Z'/%3E%3Cpath d='M70 36 L100 84 L70 132 L40 84 Z' stroke='%23d7f1ff'/%3E%3Cpath d='M70 54 L86 84 L70 114 L54 84 Z' fill='%234aa3ff' fill-opacity='0.35' stroke='%23eaf7ff'/%3E%3C/g%3E%3C/svg%3E");
}

.hu-motif[data-pattern="hearts"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 28C60 28 48 16 34 16 18 16 10 30 10 44 10 66 30 82 60 104 90 82 110 66 110 44 110 30 102 16 86 16 72 16 60 28 60 28Z' fill='none' stroke='%23ff9ad4' stroke-width='2.4'/%3E%3Cpath d='M60 46C60 46 52 38 44 38 34 38 30 46 30 54 30 66 42 76 60 90 78 76 90 66 90 54 90 46 86 38 76 38 68 38 60 46 60 46Z' fill='%237ecbff' fill-opacity='0.28' stroke='%23eaf7ff' stroke-width='1.2'/%3E%3C/svg%3E");
}

.hu-motif[data-pattern="skulls"] {
	opacity: 0.72;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%239ad7ff' stroke-width='2'%3E%3Cpath d='M60 18C40 18 26 34 26 52 26 66 34 76 44 80L44 96 76 96 76 80C86 76 94 66 94 52 94 34 80 18 60 18Z'/%3E%3Ccircle cx='46' cy='50' r='7' fill='%237ecbff' fill-opacity='0.45'/%3E%3Ccircle cx='74' cy='50' r='7' fill='%237ecbff' fill-opacity='0.45'/%3E%3Cpath d='M52 66h16' stroke='%23eaf7ff'/%3E%3Cpath d='M48 86v10M60 84v12M72 86v10' stroke='%23d7f1ff'/%3E%3C/g%3E%3C/svg%3E");
}

.hu-motif[data-pattern="dollars"] {
	opacity: 0.7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 18v84M78 38C78 38 74 28 58 28 42 28 36 38 36 48 36 60 46 64 60 68 76 72 84 78 84 90 84 102 72 110 56 110 40 110 32 100 32 100' fill='none' stroke='%238dffc6' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hu-shine {
	inset: -15% -45%;
	background: linear-gradient(
		100deg,
		transparent 38%,
		rgba(255, 255, 255, 0.08) 46%,
		rgba(214, 244, 255, 0.82) 50%,
		rgba(255, 255, 255, 0.08) 54%,
		transparent 64%
	);
	mix-blend-mode: screen;
	animation: hu-shine 3.8s ease-in-out infinite;
}

.hu-grid .hu-card:nth-child(2n) .hu-shine { animation-delay: -1.3s; }
.hu-grid .hu-card:nth-child(3n) .hu-shine { animation-delay: -2.2s; }
.hu-grid .hu-card:nth-child(4n) .hu-foil { animation-delay: -2.4s; }
.hu-grid .hu-card:nth-child(5n) .hu-frame { animation-delay: -3s; }

.hu-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 4px 2px;
	min-width: 0;
}

.hu-badge {
	align-self: flex-start;
	margin: 0;
	padding: 2px 8px;
	border: 2px solid var(--hu-border);
	border-radius: 999px;
	font-size: 0.72em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.hu-wrap .hu-title {
	margin: 0;
	font-family: inherit;
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: inherit;
	overflow-wrap: anywhere;
}

.hu-blurb,
.hu-hint,
.hu-count,
.hu-legal,
.hu-ready-note,
.hu-empty {
	margin: 0;
	color: inherit;
	overflow-wrap: anywhere;
}

.hu-blurb {
	font-size: 0.95em;
	opacity: 0.84;
}

.hu-hint,
.hu-count,
.hu-ready-note {
	font-size: 0.88em;
	opacity: 0.78;
}

.hu-legal {
	font-size: 0.72em;
	line-height: 1.45;
	opacity: 0.68;
	margin-top: 4px;
}

.hu-codes,
.hu-own-codes {
	display: grid;
	gap: 8px;
	margin: 0;
}

.hu-own-codes div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--hu-border);
}

.hu-own-codes dt {
	opacity: 0.7;
}

.hu-own-codes dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
	text-align: right;
}

.hu-piece-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: calc(var(--hu-radius) - 6px);
	margin-bottom: 12px;
}

.hu-collect-card {
	text-decoration: none;
	color: inherit;
}

.hu-codes-title {
	margin: 4px 0 0;
	font-size: 1em;
}

.hu-patterns {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.hu-patterns legend,
.hu-pattern span {
	font-size: 0.84em;
	font-weight: 600;
}

.hu-pattern-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.hu-pattern {
	position: relative;
}

.hu-pattern input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hu-pattern span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 2px solid var(--hu-border);
	background: rgba(127, 127, 127, 0.08);
}

.hu-pattern input:checked + span {
	background: var(--hu-btn);
	color: var(--hu-btn-text);
	border-color: var(--hu-btn);
}

.hu-pattern input:focus-visible + span {
	outline: 2px solid var(--hu-accent);
	outline-offset: 2px;
}

.hu-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.84em;
	font-weight: 600;
}

.hu-wrap input[type="text"],
.hu-wrap input[type="email"],
.hu-wrap input[type="password"],
.hu-wrap input[type="file"],
.hu-wrap textarea,
.hu-wrap code {
	font: inherit;
	color: inherit;
	background: rgba(127, 127, 127, 0.08);
	border: 2px solid var(--hu-border);
	border-radius: 10px;
	padding: 10px 12px;
	width: 100%;
	min-height: 44px;
	box-shadow: none;
}

.hu-wrap textarea {
	min-height: 88px;
	resize: vertical;
	font-weight: 400;
}

.hu-wrap input::placeholder {
	color: inherit;
	opacity: 0.55;
}

.hu-wrap code {
	display: block;
	min-height: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

.hu-wrap textarea.hu-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78em;
	font-weight: 400;
	min-height: 96px;
}

.hu-wrap button.hu-btn,
.hu-wrap a.hu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--hu-btn);
	color: var(--hu-btn-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	width: auto;
}

.hu-wrap button.hu-btn.hu-btn-ghost {
	background: transparent;
	color: var(--hu-btn);
	border-color: var(--hu-btn);
}

.hu-wrap button.hu-btn:hover,
.hu-wrap a.hu-btn:hover {
	filter: brightness(1.08);
}

.hu-wrap button.hu-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.hu-unlock,
.hu-delete,
.hu-lock,
.hu-tools {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hu-msg {
	margin: 0;
	font-size: 0.88em;
}

.hu-msg.is-err { color: #9b2335; }
.hu-notice.is-err { color: #9b2335; }
.hu-notice.is-ok { color: inherit; }

.hu-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 2px solid var(--hu-border);
	border-radius: 12px;
	background: rgba(127, 127, 127, 0.08);
}

.hu-fold {
	border-top: 2px solid var(--hu-border);
	padding-top: 8px;
}

.hu-wrap .hu-fold summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.hu-fold code,
.hu-fold textarea,
.hu-fold .hu-btn {
	margin-top: 8px;
}

.hu-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 22px;
}

.hu-wrap a.hu-page,
.hu-wrap span.hu-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	border: 2px solid var(--hu-border);
	color: inherit;
	text-decoration: none;
	background: transparent;
}

.hu-wrap span.hu-page.is-current {
	background: var(--hu-btn);
	color: var(--hu-btn-text);
	border-color: transparent;
}

.hu-wrap span.hu-page.is-gap {
	border: 0;
	min-width: 24px;
}

.hu-back {
	margin: 0 0 14px;
}

.hu-wrap .hu-back a {
	color: inherit;
	font-weight: 600;
}

.hu-auth {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.hu-panel {
	border: 2px solid var(--hu-border);
	border-radius: var(--hu-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.hu-wrap .hu-panel h2,
.hu-wrap .hu-subhead,
.hu-studio-head h2 {
	margin: 0;
	font-family: inherit;
	font-size: 1.35em;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: inherit;
}

.hu-subhead {
	margin-top: 28px;
}

.hu-studio-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 16px;
}

.hu-publish {
	margin-bottom: 8px;
}

@media (min-width: 720px) {
	.hu-publish .hu-codes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hu-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

.hu-wrap a:focus-visible,
.hu-wrap button:focus-visible,
.hu-wrap input:focus-visible,
.hu-wrap textarea:focus-visible,
.hu-wrap summary:focus-visible {
	outline: 2px solid var(--hu-accent);
	outline-offset: 2px;
}

@keyframes hu-shift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes hu-foil {
	0% { background-position: 0% 0%; }
	50% { background-position: 100% 80%; }
	100% { background-position: 0% 0%; }
}

@keyframes hu-shine {
	0% { transform: translateX(-70%); }
	55% { transform: translateX(70%); }
	100% { transform: translateX(70%); }
}

@keyframes hu-drift {
	from { background-position: 0 0; }
	to { background-position: 140px 168px; }
}

@media (prefers-reduced-motion: reduce) {
	.hu-frame,
	.hu-foil,
	.hu-shine,
	.hu-diamonds,
	.hu-motif {
		animation: none;
	}
}

@container (min-width: 980px) {
	.hu-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container (min-width: 680px) and (max-width: 979px) {
	.hu-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 679px) {
	.hu-grid {
		grid-template-columns: 1fr;
	}

	.hu-wrap button.hu-btn,
	.hu-wrap a.hu-btn {
		width: 100%;
	}
}
