@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

:root {
    color-scheme: dark;
	--bg-dark: #050508;
	--bg-panel: #0a0b12;
	--neon-cyan: #00f2ff;
	--neon-pink: #ff0055;
	--neon-red: #ff0033;
	--neon-green: #39ff14;
	--text-main: #e2e8f0;
	--border: rgba(0, 242, 255, 0.2);
}


/* --- BASE & UTILS --- */
* {
	box-sizing: border-box;
	cursor: crosshair;
	border-radius: 0 !important;
}

body {
	margin: 0;
	font-family: "Courier New", monospace;

	color: var(--text-main);
  background-image: url("/BG/num.gif");
  background-repeat: repeat;
  background-position: top left;
	overflow-x: hidden;
}

a,
a:visited {
	color: var(--neon-cyan) !important;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	color: var(--neon-green) !important;
	text-shadow: 0 0 8px var(--neon-green);
}

.wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
	position: relative;
	z-index: 2;
}

/* --- HEADER --- */
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 5px;
	height: 40px;
}

.status-right {
	display: flex;
	align-items: center;
	font-size: 11px;
	background: rgba(0, 242, 255, 0.05);
	padding: 4px 12px;
	border-right: 3px solid var(--neon-cyan);
	min-width: 280px;
	justify-content: flex-end;
}

.loading-wrapper {
	display: flex;
	align-items: center;
	overflow: hidden;
	width: 100%;
	justify-content: flex-start;
}

.loading-text {
	font-size: 20px;
	font-family: 'Pixelify Sans';
	color: var(--neon-red);
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	animation: typing 4s steps(30, end) infinite;
}

.blink {
	color: var(--neon-red);
	flex-shrink: 0;
	animation: cursor-blink 0.8s infinite steps(1);
}

.tech-label {
	font-size: 20px;
	margin-right: 8px;
	font-family: 'Pixelify Sans';
}

/* --- BOX HEADERS --- */
.head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.head-title {
	flex-shrink: 0;
}

.head-link {
	margin-left: auto;
	font-size: 12px;
	opacity: 0.85;
}

/* --- BOXES --- */
.title-card {
	border-left: 5px solid var(--neon-cyan);
	background: var(--bg-panel);
	border: 1px solid var(--border);
	padding: 20px;
	margin-bottom: 20px;
}

.glitch-text {
	color: var(--neon-cyan);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
	font-size: 24px;
}

.glitch-text:hover {
	animation: jitter 0.1s infinite;
	text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-green);
}

.grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 20px;
}

@media (max-width: 850px) {
	.grid {
		grid-template-columns: 1fr;
	}
}

.box {
	background: var(--bg-panel);
	border: 1px solid var(--border);
	padding: 20px;
	margin-bottom: 20px;
}

.pixline {
	height: 1px;
	background: var(--neon-cyan);
	opacity: 0.3;
	margin: 15px 0;
}

/* --- GALLERY --- */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.thumb {
	position: relative;
	aspect-ratio: 1/1;
	overflow: hidden;
	background: #000;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.thumb::before {
	content: '';
	position: absolute;
	width: 220%;
	height: 220%;
	background: conic-gradient(transparent 200deg, #fff 310deg, var(--neon-cyan) 360deg);
	animation: rotate-border 0.8s linear infinite;
	display: none;
	z-index: -1;
	filter: blur(2px);
}

.thumb::after {
	content: '';
	position: absolute;
	inset: 3px;
	background: var(--bg-panel);
	z-index: -1;
	display: none;
}

.thumb:hover::before,
.thumb:hover::after {
	display: block;
}

.thumb img {
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	object-fit: cover;
	opacity: 1;
	transition: 0.3s;
	z-index: 2;
}

.thumb:hover img {
	opacity: 1;
	transform: scale(1.02);
}

/* --- MINIMAL CONSOLE TEXT STICKERS --- */
.bg-stickers {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.sticker {
	position: absolute;
	background: transparent;
	/* Removed background */
	padding: 0;
	font-family: "Courier New", monospace;
	font-size: 18px;
	font-weight: bold;
	z-index: 1;
	pointer-events: none;
	transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
}

/* row container */
.stamp-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 15px 0;
}
.stamp{
  background: rgba(0, 242, 255, 0.05);
  border: 1px solid transparent;
  padding: 5px 6px;
  font-family: 'Pixelify Sans';
  font-size: 15px;
  font-weight: bold;

  color: var(--neon-blue); /* normal color */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;       /* smooth color change */
}

.stamp.is-pop{
  transform: translateY(-2px) scale(1.1);
  background: rgba(0, 242, 255, 0.12);
  border-color: var(--neon-cyan);

  color: var(--neon-green); /* 🔥 text turns green */

  box-shadow:
    0 4px 10px rgba(0, 242, 255, 0.25),
    0 0 6px rgba(0, 242, 255, 0.3);
}



/* responsive */
@media (max-width: 850px) {
	.stamp-row {
		grid-template-columns: 1fr;
	}
}


.sticker::before {
	content: "> ";
	opacity: 1;

}

.sticker.cyan {
	color: var(--neon-cyan);
	font-family: 'Pixelify Sans';
	text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}
.sticker.sixseven {
	color: var(--neon-cyan);
	font-family: 'Pixelify Sans';
	text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
	pointer-events: auto;
}


.sticker.green {
	color: var(--neon-green);
	font-family: 'Pixelify Sans';
	text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);

}

/* Positioning & Animation Staggering */
.s1 {
	top: 20%;
	left: 5%;
	transform: rotate(-10deg);
}


.s2 {
	top: 35%;
	right: 5%;
	transform: rotate(8deg);
}


.s3 {
	bottom: 13%;
	left: 3%;
	transform: rotate(-10deg);
}


.s4 {
	top: 3%;
	left: 2%;
	transform: rotate(5deg);
}

/* --- YOUTUBE EMBED FIX --- */
.embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border);
	background: #000;
	overflow: hidden;
}

.embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Image Stickers */
.sticker-img {
  position: absolute;
  filter: brightness(0.8);
  pointer-events: auto;
  cursor: crosshair;
  transition: filter 0.35s ease;
}

/* the glitch clone that replaces the img for the animation */
.glitch-kill {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--w);
	height: var(--h);
	background-image: var(--src);
	background-size: cover;
	background-position: center;
	image-rendering: pixelated;
	pointer-events: none;

	animation: glitchOut 0.55s steps(1, end) forwards;
}

.glitch-kill::before,
.glitch-kill::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--src);
	background-size: cover;
	background-position: center;
	mix-blend-mode: screen;
	opacity: 0.9;
}

.glitch-kill::before {
	transform: translate(-3px, 0);
	filter: drop-shadow(-2px 0 #ff0055);
}

.glitch-kill::after {
	transform: translate(3px, 0);
	filter: drop-shadow(2px 0 #00f2ff);
}

@keyframes glitchOut {
	0%   { transform: translate(0,0) scale(1); opacity: 1; filter: contrast(1.2); }
	10%  { transform: translate(-6px, 2px) skewX(12deg); }
	20%  { transform: translate(7px, -3px) skewY(-10deg); }
	30%  { transform: translate(-10px, 3px); filter: contrast(2) saturate(1.6); }
	40%  { transform: translate(12px, -6px) scale(1.02); }
	55%  { transform: translate(-4px, 10px) scale(0.7); opacity: 0.8; }
	70%  { transform: translate(0, -14px) scale(0.35) skewX(-18deg); opacity: 0.55; }
	85%  { transform: translate(0, 0) scale(0.12); opacity: 0.25; }
	100% { transform: translate(0, 0) scale(0); opacity: 0; filter: none; }
}

/* optional: make the RGB layers “slice” a bit */
.glitch-kill::before { clip-path: inset(8% 0 55% 0); }
.glitch-kill::after  { clip-path: inset(50% 0 10% 0); }

.sticker-img:hover {
	filter: brightness(1);
}



.i1 {
	top: 5%;
	left: 10%;
	width: 250px;
	transform: rotate(-7deg);
}

.i2 {
	top: 5%;
	right: 5%;
	width: 200px;
	transform: rotate(11deg);
}

.i3 {
	bottom: 10%;
	left: 10%;
	width: 200px;
	transform: rotate(-4deg);
}

.i4 {
	bottom: 0%;
	right: 0%;
	width: 350px;
	transform: rotate(0deg);
}
.i5 {
	bottom: 2%;
	right: 43%;
	width: 25px;
	transform: rotate(-8deg);
}
.i6 {
	top: 10%;
	left: 7%;
	width: 25px;
	transform: rotate(6deg);
}
.i7 {
	top: 8%;
	right: 16%;
	width: 25px;
	transform: rotate(3deg);
}
.i8 {
	top: 55%;
	right: 72%;
	width: 400px;
	transform: rotate(0deg);
}

/* --- ANIMATIONS --- */
@keyframes auto-type {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

@keyframes typing {
	from {
		width: 0
	}

	to {
		width: 100%
	}
}

@keyframes rotate-border {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes cursor-blink {
	50% {
		opacity: 0;
	}
}

@keyframes jitter {
	0% {
		transform: translate(1px, 1px);
	}

	50% {
		transform: translate(-1px, -1px);
	}

	100% {
		transform: translate(0);
	}
}

.footer {
	text-align: center;
	font-size: 10px;
	margin-top: 40px;
}

/* size */
::-webkit-scrollbar {
  width: 6px;
}

/* transparent track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* thumb */
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, 0.85);
  border-radius: 0;

  /* subtle glow */
  box-shadow:
    0 0 4px rgba(0, 242, 255, 0.4),
    0 0 8px rgba(0, 242, 255, 0.15);
}

/* hover (slightly stronger, still subtle) */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, 1);
  box-shadow:
    0 0 6px rgba(0, 242, 255, 0.6),
    0 0 12px rgba(0, 242, 255, 0.25);
}

/* =========================
   Floating Music Player
   ========================= */

.music-player{
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 320px;
  z-index: 9998;
  pointer-events: auto;

  background: rgba(10, 11, 18, 0.88);
  border: 1px solid rgba(0, 242, 255, 0.25);
  border-left: 4px solid var(--neon-cyan);
  box-shadow:
    0 0 18px rgba(0, 242, 255, 0.12),
    0 0 6px rgba(255, 0, 85, 0.06);
  padding: 10px 10px 9px;
  backdrop-filter: blur(4px);
}

.mp-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mp-title{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.mp-label{
  font-family: 'Pixelify Sans';
  font-size: 12px;
  color: var(--neon-cyan);
  opacity: 0.9;
}

.mp-track{
  font-family: 'Pixelify Sans';
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.mp-row{
  display:flex;
  align-items:center;
  gap: 8px;
}

.mp-row2{
  margin-top: 8px;
}

.mp-time{
  font-family: 'Pixelify Sans';
  font-size: 12px;
  color: var(--neon-green);
  width: 42px;
  text-align:center;
}

.mp-small{
  font-family: 'Pixelify Sans';
  font-size: 12px;
  color: var(--neon-cyan);
  width: 36px;
  text-align:left;
}

.mp-btn{
  width: 34px;
  height: 28px;
  font-family: 'Pixelify Sans';
  font-weight: 700;
  border: 1px solid rgba(0, 242, 255, 0.35);
  background: rgba(0, 242, 255, 0.08);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.12);
  transition: transform 0.12s steps(2,end), box-shadow 0.2s ease, color 0.2s ease;
}

.mp-btn:hover{
  transform: translateY(-1px) scale(1.03);
  color: var(--neon-green);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.16);
}

.mp-btn:active{
  transform: translateY(0) scale(0.98);
}

.mp-btn2{
  width: 40px;
}

/* sliders */
.mp-seek, .mp-vol{
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.18);
  outline: none;
}

.mp-seek{ flex: 1; }
.mp-vol{ width: 110px; }

.mp-seek::-webkit-slider-thumb,
.mp-vol::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 14px;
  background: rgba(0, 242, 255, 0.95);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.25);
  border: 0;
}

.mp-seek::-moz-range-thumb,
.mp-vol::-moz-range-thumb{
  width: 10px;
  height: 14px;
  background: rgba(0, 242, 255, 0.95);
  border: 0;
}
/* ===== Smaller music player overrides ===== */
.music-player{
  width: 250px;
  padding: 8px 8px 7px;
  left: 12px;
  bottom: 12px;
  border-left-width: 3px;
}

.mp-top{ margin-bottom: 6px; gap: 8px; }

.mp-label{ font-size: 10px; }
.mp-track{ font-size: 12px; max-width: 175px; }

.mp-btn{
  width: 28px;
  height: 24px;
  font-size: 12px;
}

.mp-row{ gap: 6px; }
.mp-row2{ margin-top: 6px; }

.mp-time{ font-size: 10px; width: 36px; }
.mp-small{ font-size: 10px; width: 30px; }

.mp-seek, .mp-vol{ height: 6px; }
.mp-vol{ width: 90px; }

.mp-seek::-webkit-slider-thumb,
.mp-vol::-webkit-slider-thumb{
  width: 9px;
  height: 12px;
}

.mp-seek::-moz-range-thumb,
.mp-vol::-moz-range-thumb{
  width: 9px;
  height: 12px;
}

/* =====================================================
   BACKGROUND D20 — FINAL, CLEAN, NON-REDUNDANT
   ===================================================== */

.bg-d20{
  position: fixed;
  top:240px;
  left: 85px;
  width: 150px;
  height: 150px;

  z-index: 1;
  opacity: 1;
  cursor: crosshair;
  pointer-events: auto;
  user-select: none;

  transition: opacity 180ms ease, transform 180ms ease;
}

.bg-d20:hover{
  opacity: 1;
  transform: scale(1.05);
}

/* ---------- SVG ---------- */

.d20-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0,242,255,0.15));
}

/* die shell */
.d20-shell{
  fill: rgba(10,11,18,0.82);
  stroke: rgba(0,242,255,0.45);
  stroke-width: 2;
}

/* wireframe */
.d20-wire{
  fill: none;
  stroke: rgba(0,242,255,0.22);
  stroke-width: 1.5;
}

/* ---------- CENTER TEXT ---------- */

.bg-d20 .d20-core{
  position: absolute;
  inset: 0;
  font-family: 'Pixelify Sans';
}

.bg-d20 .d20-label,
.bg-d20 .d20-result{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

/* ROLL text */
.bg-d20 .d20-label{
  font-size:30px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0,242,255,0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* hide ROLL after first click */
.bg-d20.has-rolled .d20-label{
  opacity: 0;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

/* result number */
.bg-d20 .d20-result{
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);

  opacity: 0;
  transform: translate(-50%, -50%) translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;

  text-shadow:
    0 0 10px rgba(0,242,255,0.22),
    0 0 18px rgba(226,232,240,0.18);
}

.bg-d20.show-result .d20-result{
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* bigger for nat */
.bg-d20.nat20 .d20-result,
.bg-d20.nat1  .d20-result{
  font-size: 46px;
}

/* ---------- ROTATION (BEFORE RESULT) ---------- */

.bg-d20.rolling .d20-svg{
  animation: d20-rotate 650ms cubic-bezier(.2,.8,.3,1) both;
}

@keyframes d20-rotate{
  0%   { transform: rotate(0deg)   scale(1.02); }
  25%  { transform: rotate(140deg) scale(1.06); }
  50%  { transform: rotate(310deg) scale(1.10); }
  75%  { transform: rotate(460deg) scale(1.08); }
  100% { transform: rotate(520deg) scale(1.10); }
}

/* ---------- FLICKER (ON REVEAL ONLY) ---------- */

.bg-d20.reveal{
  animation: d20-flicker 420ms steps(1,end) both;
}

@keyframes d20-flicker{
  0%   { filter: drop-shadow(0 0 3px rgba(0,242,255,0.12)); opacity: 0.92; }
  20%  { filter: drop-shadow(0 0 22px rgba(0,242,255,0.38)); opacity: 1; }
  40%  { filter: drop-shadow(0 0 10px rgba(255,0,85,0.18)); opacity: 0.86; }
  65%  { filter: drop-shadow(0 0 26px rgba(0,242,255,0.42)); opacity: 1; }
  100% { filter: drop-shadow(0 0 14px rgba(0,242,255,0.28)); opacity: 0.95; }
}

/* ---------- PARTICLES ---------- */

.bg-d20 .d20-burst{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-d20 .spark{
  position: absolute;
  width: 16px;
  height: 2px;
  opacity: 0;
  transform-origin: left center;

  background: linear-gradient(
    90deg,
    rgba(0,242,255,0.95),
    rgba(0,242,255,0)
  );

  box-shadow: 0 0 8px rgba(0,242,255,0.35);
}

@keyframes spark-fly{
  0%{
    opacity: 0;
    transform: translate(0,0) rotate(var(--rot)) scaleX(0.4);
  }
  10%{ opacity: 1; }
  100%{
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scaleX(1.1);
  }
}

/* ---------- NAT STATES ---------- */

.bg-d20.nat20{
  opacity: 0.98;
}
.bg-d20.nat20 .d20-shell{ stroke: rgba(57,255,20,0.55); }
.bg-d20.nat20 .spark{
  background: linear-gradient(90deg, rgba(57,255,20,0.95), rgba(57,255,20,0));
  box-shadow: 0 0 12px rgba(57,255,20,0.45);
}

.bg-d20.nat1{
  opacity: 0.98;
}
.bg-d20.nat1 .d20-shell{ stroke: rgba(255,0,51,0.55); }
.bg-d20.nat1 .spark{
  background: linear-gradient(90deg, rgba(255,0,51,0.95), rgba(255,0,51,0));
  box-shadow: 0 0 12px rgba(255,0,51,0.45);
}


.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px; /* Specific width so it looks like an icon */
  margin: 15px auto; /* Centering it inside the box */
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.icon-container:hover {
  background: rgba(255, 255, 255, 0.15); /* Glass effect */
  outline: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.minecraft-logo {
  width: 50px; 
  height: 50px;
  image-rendering: pixelated; /* Keeps it crunchy/retro */
}

.icon-text {
  color: white;
  font-size: 11px; /* Smaller font looks more like Windows desktop */
  margin-top: 5px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Container for the icon */
.minecraft-icon-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 110px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
  user-select: none;
  margin: 10px;
}

/* The "Window Selection" effect on hover */
.minecraft-icon-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle light gray tint */
  border: 1px solid rgba(255, 255, 255, 0.3); /* The window border */
  backdrop-filter: blur(2px); /* Slight glass effect */
}

/* Keeping the block sharp */
.minecraft-logo-img {
  width: 64px;
  height: auto;
  image-rendering: pixelated; 
  margin-bottom: 8px;
}

/* The label styling */
.minecraft-label {
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace; /* Matches the "exe" look */
  font-size: 13px;
  text-align: center;
  word-wrap: break-word;
}