@font-face {
	font-family: "Inconsolata";
	src: url("../fonts/inconsolata-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Inconsolata";
	src: url("../fonts/inconsolata-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	cursor: url("../others/cursor.png"), default;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}

body {
	min-height: 100vh;
	min-height: 100lvh;
	overflow: hidden;
	background: #000;
	color: #e4e3e3;
	font-family: "Inconsolata", Consolas, "SFMono-Regular", Menlo, monospace;
}

a { color: inherit; text-decoration: none; }

/* Bleed the video under the phone's status bar and browser toolbars
   (no black bars at the top/bottom on iOS/Android). */
.background {
	position: fixed; z-index: -1; overflow: hidden;
	left: 0; right: 0;
	top: calc(-1 * env(safe-area-inset-top, 0px));
	bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
	min-height: calc(100vh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
	min-height: calc(100lvh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
	background: #000 center / cover no-repeat;
}
#background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
#shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
#pattern { position: absolute; inset: 0; background: url("../others/dot.png") repeat; }

.container {
	position: fixed; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	text-align: center; white-space: nowrap; max-width: 92vw;
}
.brand-header { font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tagline { margin-top: .4rem; font-size: clamp(.95rem, 3.5vw, 1.1rem); }
.typed-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.bottom {
	position: fixed; left: 0; right: 0;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	display: flex; flex-direction: column; align-items: center; gap: 18px;
	padding: 0 12px;
}

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social {
	--brand: #fff;
	position: relative;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 14px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	color: #f2f2f2;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
/* OGUsers logo: the PNG is used as a mask so it takes the same color/hover
   treatment as the SVG icons, with a brushed-metal sheen on top. */
.social-logo {
	display: block;
	background: linear-gradient(115deg, #ffffff 0%, #c9c9cf 38%, #f6f6f8 52%, #a9a9b0 70%, #e6e6ea 100%);
	background-size: 220% 100%;
	background-position: 0% 50%;
	-webkit-mask: var(--logo) center / contain no-repeat;
	mask: var(--logo) center / contain no-repeat;
	filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
	transition: background-position .6s ease, filter .2s ease;
}
.social-logo--og { --logo: url("../icons/ogusers.png"); width: 26px; height: 15px; }
.social-logo--icon { width: 20px; height: 20px; }
/* same sheen on button text */
.social .wide-label, .tile-info b {
	background: linear-gradient(115deg, #ffffff 0%, #c9c9cf 38%, #f6f6f8 52%, #a9a9b0 70%, #e6e6ea 100%);
	background-size: 220% 100%; background-position: 0% 50%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	transition: background-position .6s ease;
}
.social:hover .wide-label, .social:focus-visible .wide-label, .social.copied .wide-label,
.social:hover .tile-info b, .social:focus-visible .tile-info b, .social.copied .tile-info b {
	background-image: linear-gradient(115deg, #fff 0%, var(--brand) 35%, #fff 52%, var(--brand) 70%, #fff 100%);
	background-position: 100% 50%;
}
.social.copied .social-logo {
	background-image: linear-gradient(115deg, #fff 0%, var(--brand) 35%, #fff 52%, var(--brand) 70%, #fff 100%);
	background-position: 100% 50%;
}
.social-logo--depop { --logo: url("../icons/depop.svg"); width: 21px; height: 21px; }
.social:hover .social-logo, .social:focus-visible .social-logo {
	background-image: linear-gradient(115deg, #fff 0%, var(--brand) 35%, #fff 52%, var(--brand) 70%, #fff 100%);
	background-position: 100% 50%;
	filter: drop-shadow(0 0 6px var(--brand));
}
.social:hover, .social:focus-visible {
	transform: translateY(-3px);
	color: var(--brand);
	border-color: var(--brand);
	background: rgba(0,0,0,.45);
	box-shadow: 0 6px 20px -6px var(--brand);
	outline: none;
}
.social::after {
	content: attr(data-label);
	position: absolute; bottom: calc(100% + 8px); left: 50%;
	transform: translate(-50%, 4px);
	padding: 3px 8px; border-radius: 6px;
	background: rgba(0,0,0,.75); color: #fff; font-size: 12px;
	opacity: 0; pointer-events: none; white-space: nowrap;
	transition: opacity .2s, transform .2s;
}
.social:hover::after, .social:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Discord / Telegram / email: three equal rectangles stacked above the
   square icons and stretched to the same total width. */
.link-stack { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: max-content; max-width: 100%; }
.wide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social.wide {
	width: auto; height: 46px;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 0 10px;
	font: inherit; font-size: 14px; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.social.wide span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social.wide .social-logo { flex: none; }
.social svg.outline { fill: none; }
.social.copied { color: var(--brand); border-color: var(--brand); }
/* name / username / link, only shown in the phone tile layout */
.tile-info { display: none; }

/* Right-click: the lock icon pops up at the cursor */
.lock-pop {
	position: absolute; width: 16px; height: 16px; z-index: 20;
	pointer-events: none; transform: translate(-50%, -50%);
	animation: lock-pop .6s ease-out forwards;
}
@keyframes lock-pop {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
	20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
	70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.toast {
	position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top, 0px));
	transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
	padding: 7px 14px; border-radius: 10px;
	font-size: 14px; color: #fff; white-space: nowrap;
	background: rgba(0,0,0,.75);
	border: 1px solid rgba(255,255,255,.16);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: opacity .25s ease, transform .25s ease;
	z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.volume {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 16px 8px 10px;
	border-radius: 999px;
	background: rgba(0,0,0,.35);
	border: 1px solid rgba(255,255,255,.12);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.volume-btn { width: 28px; height: 28px; border: 0; background: none; color: #f2f2f2; cursor: pointer; display: grid; place-items: center; }
.volume-btn svg { width: 22px; height: 22px; }
.volume .mute-x { display: none; }
.volume.muted .mute-x { display: inline; }
.volume.muted .wave { display: none; }

#volume-slider {
	--fill: 0%;
	-webkit-appearance: none; appearance: none;
	width: 150px; height: 4px; border-radius: 999px;
	background: linear-gradient(to right, #fff var(--fill), rgba(255,255,255,.25) var(--fill));
	outline: none; cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); transition: transform .15s;
}
#volume-slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
#volume-slider::-moz-range-track { background: transparent; }
#volume-slider:hover::-webkit-slider-thumb { transform: scale(1.2); }

/* Phones: compact buttons so the background video stays visible.
   Discord / Telegram / email sit in one row of small labelled pills,
   the other links are icon buttons four to a row. Every button keeps a
   tap target of at least 40px. The title sits just above the middle. */
@media (max-width: 600px) {
	.container { top: 40%; transform: translate(-50%, -50%); }
	.bottom { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
	.link-stack {
		display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
		width: min(100%, 340px);
	}
	.wide-links, .socials { display: contents; }
	.social, .social.wide {
		grid-column: span 3;
		width: auto; height: 42px;
		display: flex; align-items: center; justify-content: center; gap: 6px;
		padding: 0 6px;
		border-radius: 12px;
	}
	.social.wide { grid-column: span 4; font-size: 13px; }
	.social svg, .social-logo { flex: none; }
	.social-logo--icon { width: 19px; height: 19px; }
	.social::after { display: none; }
	.social:active { transform: scale(.95); }
	#volume-slider { width: 120px; }
}
/* very narrow phones: icons only in the top row too */
@media (max-width: 340px) {
	.social.wide .wide-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.lock-pop { animation-duration: .01s; animation-delay: .5s; }
	.typed-cursor { animation: none; }
}
