@font-face {
  font-family: LogoFont;
  src: url('../assets/fonts/font.otf');
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #05050a;
  color: #ddd;
  height: 100%;
  font-family: 'Fira Code', monospace, system-ui, sans-serif;
}

html {
  scrollbar-behavior: smooth;
  height: 100%;
}

@media (orientation: landscape) {
	body {
		overflow-y: auto;
	}
}

span {
   font-family: inherit;
}

a { text-decoration: none; }

h2 {
	margin-top: 50px;
	font-weight: 300;
	letter-spacing: 0.09em;
	opacity: 1.0;
	text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

p {
	font-weight: 300;
	letter-spacing: 0.09em;
	opacity: 0.75;
	text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

.bg-video {
  position: fixed;
  pointer-events: none;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) blur(1px);
  z-index: -1;
}

#particles {
  position: fixed;
  pointer-events: none;
  inset: 0;
  z-index: -1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: .12;
  pointer-events: none;
}

.center {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}


@media (orientation: landscape) {
	.center {
		justify-content: flex-start;
		padding-top: clamp(120px, 6vh, 64px);
	}
}

/* LOGO */
.logo {

  font-family: LogoFont;
  font-size: 4rem;
  letter-spacing: .15em;
  color: #fff;
  animation: breathe 12s ease-in-out infinite;
  position: relative;
}

.logo span {
  color: #ff0000;
  text-shadow: 0 0 30px #ff0000;
}

@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.03); }
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1.0; }
}

/* GLITCH */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: .5;
}

.glitch::before {
  color: #fff;
  animation: glitch 7s infinite;
}

.glitch::after {
  color: #fff;
  animation: glitch 9s infinite reverse;
}

@keyframes glitch {
  0%,95% { transform: translate(0); }
  96% { transform: translate(-2px,1px); }
  97% { transform: translate(2px,-1px); }
  98% { transform: translate(-1px,-2px); }
  100% { transform: translate(0); }
}


.socials a {
  margin: 0 12px;
  font-size: 30px;
  color: #bbb;
  opacity: 0;
  transform: translateY(12px);
  animation: socialFadeIn 0.6s ease forwards;
  position: relative;
  transition: color 0.25s ease;
}

.socials a:nth-child(1) { animation-delay: 0.2s; }
.socials a:nth-child(2) { animation-delay: 0.35s; }
.socials a:nth-child(3) { animation-delay: 0.5s; }
.socials a:nth-child(4) { animation-delay: 0.65s; }
.socials a:nth-child(5) { animation-delay: 0.8s; }
.socials a:nth-child(6) { animation-delay: 0.95s; }

@keyframes socialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.socials a::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.15) 40%,
    transparent 70%
  );
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.socials a:hover {
  opacity: 1;
  color: #fff;
}

.socials a:hover::before {
  opacity: 1;
}

.socials a[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  font-size: 11px;
  background: rgba(0,0,0,.75);
  color: #fff;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}


.about {
  margin-top: 28px;
  text-align: center;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #cfcfcf;
  position: relative;
}


.about span {
  display: block;
  opacity: 0;
  min-height: 1.2em;
  transform: translateY(6px);
  filter: blur(2px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}


.about span.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  opacity: 0.6;
  animation: breatheA 2.5s ease-in-out infinite;
}

.arrow.hidden {
  pointer-events: none;
  opacity: 0;
}
@keyframes breatheA {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; }
}

/* BUTTONS */
.sections {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

main #buttons.sections button {
	font-family: 'Fira Code', monospace, system-ui, sans-serif;
}

.sections button {
  font-size: 14px;
  margin: 10px auto;
  background: none;
  border: 1px solid #555;
  color: #aaa;
  padding: 10px 24px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
  pointer-events: none;
}

.sections button.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
  box-shadow: 0 0 12px rgba(255,255,255,0.25), 0 0 28px rgba(255,255,255,0.12);
}

.sections button:hover {
  color: white;
  box-shadow: 0 0 15px white;
}

.hidden { display: none; }

/* video controls */
.video-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.video-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
}

/* FILES */
.files {
  
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  width: 100%;
  max-width: none;
}

.files {
  -webkit-overflow-scrolling: touch;
}

.file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
  .files {
    max-height: 200px;
  }
}

.file img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  filter: brightness(0.8);
}

.file-info {
  flex: 1;
}

.file-info h4 {
  margin: 0;
  font-size: 14px;
}

.file-info p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.6;
}

.file-meta {
  text-align: right;
  font-size: 12px;
}

.download {
  display: block;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
  transition: 0.3s;
}

.download:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

/* FULLSCREEN */
.fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  background: #05050a;
  overflow-y: auto;
  padding: 40px;
}

.fullscreen.active {
  display: block;
}

.back {

  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 8px 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: 0.3s;
}

.back:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.donate {
  margin: 24px auto;
  padding: 20px 24px;
  max-width: 520px;

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);

  display: flex;
  flex-direction: column;
  gap: 14px;

  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.actionBtn.mysticPage {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.mysticPage:hover {
  background: rgba(255,255,255,0.03);

  border-color: rgba(255,40,40,0.9);
  box-shadow:
    0 0 14px rgba(255,40,40,0.7),
    0 0 32px rgba(255,40,40,0.5);

  transform: translateY(-2px);
}

.actionBtn.mysticPage:active {
  transform: translateY(0);
  box-shadow:
    0 0 10px rgba(255,40,40,0.7),
    inset 0 0 14px rgba(255,40,40,0.25);
}

.actionBtn.mystic {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.mystic:hover {
  background: rgba(255,255,255,0.03);

  border-color: rgba(255,40,40,0.9);
  box-shadow:
    0 0 14px rgba(255,40,40,0.7),
    0 0 32px rgba(255,40,40,0.5);

  transform: translateY(-2px);
}

.actionBtn.mystic:active {
  transform: translateY(0);
  box-shadow:
    0 0 10px rgba(255,40,40,0.7),
    inset 0 0 14px rgba(255,40,40,0.25);
}

.actionBtn.gray {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.gray:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(200,200,200,0.55);

  box-shadow:
    0 0 10px rgba(200,200,200,0.35),
    0 0 26px rgba(200,200,200,0.18),
    inset 0 0 10px rgba(255,255,255,0.08);

  transform: translateY(-2px);
}

.actionBtn.gray:active {
  transform: translateY(0);

  box-shadow:
    0 0 8px rgba(220,220,220,0.4),
    inset 0 0 12px rgba(255,255,255,0.12);
}

.actionBtn.blue {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.blue:hover {
  background: rgba(200,220,255,0.05);
  border-color: rgba(180,210,255,0.55);

  box-shadow:
    0 0 10px rgba(180,210,255,0.35),
    0 0 28px rgba(180,210,255,0.18),
    inset 0 0 10px rgba(220,235,255,0.12);

  transform: translateY(-2px);
}

.actionBtn.blue:active {
  transform: translateY(0);

  box-shadow:
    0 0 8px rgba(190,220,255,0.4),
    inset 0 0 12px rgba(220,235,255,0.18);
}

.actionBtn.orange {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.orange:hover {
  background: rgba(255,200,150,0.05);
  border-color: rgba(255,185,120,0.55);

  box-shadow:
    0 0 10px rgba(255,190,130,0.35),
    0 0 28px rgba(255,170,110,0.18),
    inset 0 0 10px rgba(255,215,180,0.12);

  transform: translateY(-2px);
}

.actionBtn.orange:active {
  transform: translateY(0);

  box-shadow:
    0 0 8px rgba(255,180,120,0.45),
    inset 0 0 14px rgba(255,210,170,0.25);

  border-color: rgba(255,175,115,0.7);
}

.actionBtn.aqua {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-family: inherit;
  padding: 16px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  text-align: right;
  cursor: pointer;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.actionBtn.aqua:hover {
  background: rgba(150,230,220,0.05);
  border-color: rgba(140,220,210,0.55);

  box-shadow:
    0 0 10px rgba(140,220,210,0.35),
    0 0 28px rgba(120,200,190,0.18),
    inset 0 0 10px rgba(180,240,230,0.12);

  transform: translateY(-2px);
}

.actionBtn.aqua:active {
  transform: translateY(0);

  box-shadow:
    0 0 8px rgba(130,215,205,0.45),
    inset 0 0 14px rgba(190,245,235,0.25);

  border-color: rgba(125,210,200,0.7);
}

.actionIcon {
  width: 100px;
  height: 60px;
  flex-shrink: 0;

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

.actionIcon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.actionContent {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.actionTitle {
  font-weight: 100;
  font-size: 1.5em;
  letter-spacing: 0.09em;
  opacity: 1.0;
  text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

.actionDesc {
  font-weight: 100;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.4;
}

.actionList {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 600px) {
  .actionBtn {
    padding: 14px;
    gap: 10px;
  }

  .actionIcon {
    width: 100px;
    height: 100px;
  }

  .actionTitle {
    font-size: 0.85rem;
  }

  .actionDesc {
    font-size: 0.65rem;
  }
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  margin: auto;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.map-point {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.map-point::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  filter: blur(12px);
  opacity: 0;
  transition: opacity .25s ease;
}

.map-point:hover::before {
  opacity: 1;
}

.map-point::after {
  content: attr(data-title);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.map-point:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .map-point {
    width: 20px;
    height: 20px;
  }
}

/* CODE SECTION */

.code {
  margin: 24px auto;
  padding: 20px 24px;
  max-width: 520px;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);

  display: flex;
  flex-direction: column;
  gap: 14px;

  font-size: 0.85rem;
}

.codeHint {
  opacity: 0.8;
  line-height: 1.6;
}

.codeSection {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.codeHint {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
}

.codeInput {
  width: 100%;
  resize: vertical;

  background: #05050a;
  color: #ddd;

  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px;

  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;

  outline: none;
}

.codeActions {
  display: flex;
  gap: 12px;
}

.howToUse {
  background: #05050a;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px;

  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.85;
}

.codeActions button {
  display: block;
  flex-direction: row;
  gap: 12px;             
  align-items: center;
}

.runHintBtn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 8px 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: 0.3s;
}

.runHintBtn:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.runHint {
  background: #000;
  padding: 10px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.donate-item {
  display: grid;
  grid-template-columns: 24px 90px 1fr;
  align-items: center;
  gap: 18px;
}

.donate-icon {
  opacity: 0.8;
  font-size: 1rem;
}

.donate-name {
  color: #fff;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .donate-item {
    grid-template-columns: 20px auto 1fr;
    gap: 6px;                             
  }

  .donate-name {
    margin-right: 4px;
  }

  .donate-address {
    margin-left: 0;
  }
}

.donate-address {
  opacity: 0.7;
  word-break: break-all;
  cursor: pointer;
}

.hud {
  position: fixed;
  bottom: 32px;
  left: 32px;
  font-size: 13px;
}

.hud-hidden {
  display: none;
}
