/* =========================
   RIBBONLY DIGITAL CIRCUS OS
   ========================= */

* {
  box-sizing: border-box;
}

:root {
  --dark: #050007;
  --purple: #180020;
  --purple2: #2b0034;
  --red: #e21b3c;
  --red-dark: #8f001e;
  --yellow: #ffd84d;
  --cream: #fff6d9;
  --blue: #37a8ff;
  --green: #7dff9e;
}

/* WHOLE PAGE */

body {
  margin: 0;

  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(255, 216, 77, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 216, 77, 0.06) 1px, transparent 1px),
    url("img/background.png");

  background-size:
    40px 40px,
    40px 40px,
    auto;

  color: var(--cream);
  font-family: Verdana, sans-serif;
  font-size: 13px;

  overflow-x: hidden;

  cursor: url("img/cursor.png"), auto;
}

a {
  cursor: url("img/cursor.png"), pointer;
}

/* SCREEN SCANLINES */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );

  mix-blend-mode: overlay;
}

/* =========================
   C&A VOID OPENING SCREEN
   ========================= */

.ca-opening {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(231, 249, 255, 0.98) 24%,
      rgba(190, 224, 255, 0.85) 48%,
      rgba(244, 251, 255, 1) 100%
    );

  overflow: hidden;

  animation: caOpeningFade 1.2s ease 7s forwards;
}

.ca-opening.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.void-bg {
  position: absolute;
  inset: -20%;

  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at 28% 62%, rgba(255, 190, 255, 0.35), transparent 22%),
    radial-gradient(circle at 70% 38%, rgba(111, 195, 255, 0.42), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 210, 255, 0.24), transparent 20%);

  filter: blur(18px);
  opacity: 0.95;

  animation: voidDrift 8s ease-in-out infinite;
}

.void-center-glow {
  position: absolute;

  width: 460px;
  height: 460px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 1),
      rgba(186, 230, 255, 0.65) 34%,
      rgba(255, 190, 255, 0.3) 58%,
      transparent 74%
    );

  filter: blur(10px);
  opacity: 0.98;

  animation: voidPulse 3s ease-in-out infinite;
}

/* LIGHT BEAMS */

.light-beam {
  position: absolute;

  width: 330px;
  height: 8px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.98),
    rgba(174, 220, 255, 0.88),
    transparent
  );

  filter: blur(2px);
  opacity: 0.8;

  border-radius: 999px;
}

.beam-one {
  top: 12%;
  left: -20%;
  --beam-rotate: 22deg;
  transform: rotate(22deg);
  animation: beamMoveRight 4.5s linear infinite;
}

.beam-two {
  top: 78%;
  left: -25%;
  --beam-rotate: -28deg;
  transform: rotate(-28deg);
  animation: beamMoveRight 5.8s linear infinite;
}

.beam-three {
  top: 20%;
  right: -20%;
  --beam-rotate: -20deg;
  transform: rotate(-20deg);
  animation: beamMoveLeft 5s linear infinite;
}

.beam-four {
  top: 58%;
  right: -22%;
  --beam-rotate: 18deg;
  transform: rotate(18deg);
  animation: beamMoveLeft 6.2s linear infinite;
}

.beam-five {
  top: 43%;
  left: -30%;
  --beam-rotate: 5deg;
  transform: rotate(5deg);
  animation: beamMoveRight 7s linear infinite;
}

/* C&A LOGO */

.ca-logo-holder {
  position: relative;
  z-index: 3;

  width: 280px;
  height: 280px;

  display: flex;
  align-items: center;
  justify-content: center;

  animation:
    logoEnterVoid 2s cubic-bezier(.22, 1.3, .36, 1) forwards,
    logoFloatVoid 3.4s ease-in-out 2s infinite;
}

.ca-logo-img {
  max-width: 245px;
  max-height: 245px;

  display: block;

  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 1))
    drop-shadow(0 0 28px rgba(105, 190, 255, 0.95))
    drop-shadow(0 0 48px rgba(255, 190, 255, 0.55));

  animation: logoGlowVoid 2.6s ease-in-out infinite;
}

.ca-opening-text {
  position: relative;
  z-index: 3;

  margin: 22px 0 4px 0;

  color: #1b587e;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;

  text-shadow:
    0 0 8px white,
    0 0 14px rgba(90, 180, 255, 0.9);
}

.ca-opening-subtext {
  position: relative;
  z-index: 3;

  color: #5b8faf;
  font-family: "Courier New", monospace;
  font-size: 12px;

  text-shadow: 0 0 8px white;
}

/* VOID ANIMATIONS */

@keyframes logoEnterVoid {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
    filter: blur(12px);
  }

  50% {
    opacity: 1;
    transform: scale(1.08) translateY(-8px);
    filter: blur(0);
  }

  72% {
    transform: scale(0.97) translateY(4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes logoFloatVoid {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes logoGlowVoid {
  0% {
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 22px rgba(105, 190, 255, 0.75));
  }

  50% {
    filter:
      drop-shadow(0 0 20px rgba(255, 255, 255, 1))
      drop-shadow(0 0 42px rgba(105, 190, 255, 1))
      drop-shadow(0 0 60px rgba(255, 190, 255, 0.65));
  }

  100% {
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 22px rgba(105, 190, 255, 0.75));
  }
}

@keyframes voidPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.68;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.92);
    opacity: 0.68;
  }
}

@keyframes voidDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-25px, 18px) scale(1.08);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes beamMoveRight {
  0% {
    transform: translateX(0) rotate(var(--beam-rotate));
    opacity: 0;
  }

  15% {
    opacity: 0.85;
  }

  85% {
    opacity: 0.85;
  }

  100% {
    transform: translateX(150vw) rotate(var(--beam-rotate));
    opacity: 0;
  }
}

@keyframes beamMoveLeft {
  0% {
    transform: translateX(0) rotate(var(--beam-rotate));
    opacity: 0;
  }

  15% {
    opacity: 0.75;
  }

  85% {
    opacity: 0.75;
  }

  100% {
    transform: translateX(-150vw) rotate(var(--beam-rotate));
    opacity: 0;
  }
}

@keyframes caOpeningFade {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* =========================
   CLICK TO BOOT SCREEN
   ========================= */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle, rgba(226, 27, 60, 0.28), transparent 45%),
    #020003;

  color: var(--green);
}

.boot-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-terminal {
  width: 660px;
  max-width: 90%;

  background: #030004;
  border: 2px solid var(--yellow);

  box-shadow:
    0 0 25px var(--red),
    inset 0 0 20px black;
}

.boot-topbar {
  display: flex;
  justify-content: space-between;

  padding: 6px 10px;

  background: linear-gradient(to right, var(--red), var(--red-dark), var(--purple));
  border-bottom: 2px solid var(--yellow);

  color: var(--cream);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.boot-body {
  min-height: 330px;
  padding: 18px;

  background:
    linear-gradient(rgba(125, 255, 158, 0.05) 1px, transparent 1px),
    #010203;

  background-size: 100% 22px;

  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 14px;

  text-shadow: 0 0 6px var(--green);
  overflow: hidden;
}

.boot-intro {
  text-align: center;
  padding-top: 70px;
}

.boot-intro.hidden {
  display: none;
}

.boot-welcome {
  color: var(--yellow);
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 8px;

  text-shadow:
    2px 2px var(--red),
    -2px -2px var(--blue);
}

.boot-subtext {
  color: var(--green);
  margin-bottom: 20px;
}

.boot-button {
  padding: 10px 18px;

  background: black;
  border: 1px solid var(--yellow);

  color: var(--yellow);
  font-family: "Courier New", monospace;
  font-size: 15px;

  text-shadow: 0 0 6px var(--yellow);

  box-shadow:
    0 0 10px var(--red),
    inset 0 0 8px black;

  cursor: pointer;
}

.boot-button:hover {
  background: var(--red);
  color: white;
  transform: scale(1.05);
}

.sound-note {
  color: var(--blue);
  font-size: 11px;
  margin-top: 14px;
}

.boot-log {
  white-space: pre-wrap;
}

.boot-line {
  margin: 0 0 7px 0;
}

.boot-success {
  color: var(--blue);
  text-shadow: 0 0 6px var(--blue);
}

.boot-warning {
  color: var(--yellow);
  text-shadow: 0 0 6px var(--yellow);
}

.boot-error {
  color: var(--red);
  text-shadow: 0 0 6px var(--red);
}

.boot-cursor {
  display: inline-block;
  color: var(--green);
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* =========================
   DESKTOP
   ========================= */

.desktop {
  width: 980px;
  margin: 25px auto;
}

/* TOP BAR */

.system-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 10px;
  margin-bottom: 10px;

  background: black;
  border: 2px solid var(--yellow);

  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 1px;

  box-shadow: 0 0 12px var(--red);
}

/* MAIN WINDOW */

.window {
  background: rgba(15, 0, 22, 0.9);
  border: 2px solid var(--yellow);

  box-shadow:
    0 0 30px var(--red),
    inset 0 0 30px black;
}

.window-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 8px;

  background: linear-gradient(to right, var(--red), var(--red-dark), var(--purple));
  border-bottom: 2px solid var(--yellow);

  color: var(--cream);
  font-weight: bold;
  font-size: 12px;
}

.window-buttons span {
  display: inline-block;

  width: 12px;
  height: 12px;
  margin-left: 4px;

  background: var(--yellow);
  border: 1px solid black;
}

/* BANNER */

.banner {
  position: relative;

  margin: 12px;
  min-height: 175px;

  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(226, 27, 60, 0.8), rgba(55, 168, 255, 0.45)),
    var(--purple);

  border: 2px solid var(--yellow);
}

.banner-img {
  display: block;

  width: 100%;
  height: 175px;

  object-fit: cover;
  opacity: 0.62;
}

.banner-text {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px;
  text-align: center;
}

.banner h1 {
  margin: 0;

  color: var(--cream);
  font-size: 44px;
  letter-spacing: 2px;

  text-shadow:
    3px 3px var(--red),
    -3px -3px var(--blue),
    0 0 10px black;

  transform: rotate(-2deg);
}

.banner p {
  display: inline-block;

  padding: 5px 12px;

  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--yellow);

  color: var(--yellow);
}

/* LAYOUT */

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;

  padding: 0 12px 12px 12px;
}

.main {
  position: relative;
  overflow: visible;
}

/* BOXES */

.circus-box {
  padding: 4px;
  margin-bottom: 12px;

  background: #09000c;
  border: 2px solid var(--yellow);

  box-shadow:
    0 0 10px var(--red),
    inset 0 0 18px black;
}

.box-title {
  padding: 5px 8px;
  margin-bottom: 4px;

  background: linear-gradient(to bottom, #ff3154, #92001f);
  border: 1px solid var(--yellow);

  color: var(--cream);
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px black;
}

.box-inner {
  min-height: 40px;
  padding: 10px;

  background:
    linear-gradient(rgba(255, 216, 77, 0.04) 1px, transparent 1px),
    rgba(35, 0, 42, 0.96);

  background-size: 100% 22px;
  border: 1px solid #650014;
}

.center {
  text-align: center;
}

.profile-img {
  display: block;
  width: 100%;

  border: 1px solid var(--yellow);
}

.tiny-text {
  color: var(--blue);
  font-size: 11px;
}

/* NAVIGATION */

.nav-button {
  display: block;

  padding: 8px;
  margin-bottom: 7px;

  background: #050006;
  border: 1px solid var(--yellow);

  color: var(--cream);
  text-align: center;
  text-decoration: none;

  box-shadow: inset 0 0 8px black;
}

.nav-button:hover {
  background: var(--red);
  color: white;

  transform: translateX(5px);
}

/* CONTENT GRIDS */

.top-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* WELCOME BOX */

.welcome-box {
  min-height: 260px;
}

.welcome-box .box-inner {
  padding-right: 165px;
}

h2 {
  margin-top: 0;

  color: var(--yellow);

  text-shadow:
    1px 1px black,
    0 0 8px var(--red);
}

p {
  line-height: 1.5;
}

/* TERMINAL */

.terminal-box {
  padding: 10px;
  margin-top: 14px;

  background: black;
  border: 1px solid var(--blue);

  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 12px;

  box-shadow: inset 0 0 12px #003a4d;
}

.terminal-box p {
  margin: 4px 0;
}

/* FLOATING IMAGE */

.mascot {
  width: 190px;

  position: absolute;
  right: -70px;
  top: 205px;

  z-index: 10;
  pointer-events: none;

  filter: drop-shadow(0 0 8px var(--yellow));
}

/* PLACEHOLDER BOXES */

.placeholder {
  padding: 12px;
  margin-top: 8px;

  border: 1px dashed var(--yellow);
  background: rgba(0, 0, 0, 0.5);

  color: var(--blue);
  text-align: center;
  font-size: 11px;
}

/* SMALL SCREEN FIX */

@media (max-width: 1000px) {
  .desktop {
    width: 95%;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .top-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .mascot {
    position: static;
    display: block;

    margin: 10px auto;
  }

  .welcome-box .box-inner {
    padding-right: 10px;
  }
}