/* ===================== */
/* JUNKDRAWER PAGE SHELL */
/* ===================== */

.jd-page {
  max-width: 1050px;
}

.jd-header {
  padding: 0;
  margin-bottom: 22px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.jd-hero-window,
.jd-os-card {
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid rgba(255, 45, 117, 0.75);

  box-shadow:
    0 0 18px rgba(255, 45, 117, 0.28),
    0 0 45px rgba(255, 45, 117, 0.12),
    inset 0 0 16px rgba(255, 45, 117, 0.08);

  overflow: hidden;
}

.jd-hero-window {
  padding: 45px 25px;
  text-align: center;
}

.jd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  max-width: 1050px;
  margin: 24px auto;
}


/* ===================== */
/* OS CARD PARTS */
/* ===================== */

.jd-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 45, 117, 0.62),
      rgba(15, 0, 18, 0.98)
    );

  border-bottom: 1px solid rgba(255, 45, 117, 0.8);

  color: #ffb3cb;
  font-family: "Silkscreen", sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;

  box-shadow:
    inset 0 -1px 0 rgba(0, 255, 225, 0.22),
    0 0 12px rgba(255, 45, 117, 0.28);
}

.jd-window-title::before {
  content: "♡ ";
  color: #00ffe1;
  text-shadow: 0 0 6px rgba(0, 255, 225, 0.8);
}

.jd-window-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.jd-window-buttons span {
  width: 18px;
  height: 16px;

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

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 45, 117, 0.45);

  color: #ff7ca5;
  font-size: 9px;
  line-height: 1;
}

.jd-card-body {
  padding: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 45, 117, 0.08),
      rgba(0, 0, 0, 0.18)
    );
}

.jd-card-body h2 {
  margin-top: 0;
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(255, 45, 117, 0.22);

  color: #ffd6e4;
  font-family: "Silkscreen", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;

  text-shadow:
    1px 0 rgba(0, 255, 225, 0.65),
    -1px 0 rgba(255, 45, 117, 0.7),
    0 0 5px rgba(255, 45, 117, 0.9);
}

.jd-card-body p {
  color: #ffd6e4;
  font-size: 10px;
  line-height: 1.8;
}


/* ===================== */
/* OUTPUT BOXES */
/* ===================== */

.jd-output,
.jd-sticker-output {
  min-height: 58px;
  margin-top: 14px;
  padding: 12px;
  box-sizing: border-box;

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

  border: 1px solid rgba(255, 45, 117, 0.45);
  background: rgba(8, 0, 12, 0.65);

  color: #ffffff;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;

  text-shadow:
    0 0 4px #ff2d75,
    0 0 8px rgba(255, 45, 117, 0.5),
    1px 1px 0 #000;

  box-shadow:
    inset 0 0 10px rgba(255, 45, 117, 0.1),
    0 0 8px rgba(255, 45, 117, 0.14);
}

.jd-sticker-output {
  min-height: 92px;
}

.jd-big-sticker {
  font-size: 36px;
  line-height: 1;

  filter:
    drop-shadow(0 0 6px rgba(255, 45, 117, 0.85));
}


/* ===================== */
/* BUTTONS */
/* ===================== */

.jd-button-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.jd-button {
  all: unset;

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

  padding: 8px 12px;
  box-sizing: border-box;

  border: 1px solid rgba(255, 45, 117, 0.75);
  background:
    linear-gradient(
      180deg,
      rgba(255, 45, 117, 0.18),
      rgba(0, 0, 0, 0.42)
    );

  color: #ff9cbd;
  font-family: "Silkscreen", sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;

  cursor: url("cursor-hover.cur") 4 4, pointer;

  box-shadow:
    inset 0 0 8px rgba(255, 45, 117, 0.12),
    0 0 8px rgba(255, 45, 117, 0.2);
}

.jd-button:hover {
  color: #ffffff;

  text-shadow:
    1px 0 rgba(0, 255, 225, 0.55),
    -1px 0 rgba(255, 45, 117, 0.7),
    0 0 6px rgba(255, 45, 117, 0.85);

  box-shadow:
    0 0 12px rgba(255, 45, 117, 0.5),
    inset 0 0 10px rgba(255, 45, 117, 0.18);
}

.jd-button:active {
  transform: translateY(1px);
}


/* ===================== */
/* MOOD RECEIPT PAPER */
/* ===================== */

.jd-receipt-shell {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.jd-receipt-paper {
  width: 82%;
  min-height: 245px;
  box-sizing: border-box;
  position: relative;

  padding: 18px 14px 22px 14px;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.025) 0px,
      rgba(0, 0, 0, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    #f3e7df;

  color: #352929;
  border: 1px solid #d8c1b9;

  box-shadow:
    0 0 12px rgba(255, 45, 117, 0.22),
    0 6px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);

  text-align: left;
}

.jd-receipt-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;

  background:
    linear-gradient(-45deg, transparent 6px, #f3e7df 0),
    linear-gradient(45deg, transparent 6px, #f3e7df 0);

  background-size: 12px 8px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.jd-receipt-line,
.jd-receipt-barcode {
  color: #352929;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  text-shadow: none;
}

.jd-receipt-line {
  margin: 0 0 6px 0;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.4px;
}

.jd-receipt-store {
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 1px;
}

.jd-receipt-center {
  text-align: center;
}

.jd-receipt-small {
  font-size: 8px;
}

.jd-receipt-barcode {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
}


/* ===================== */
/* DOLLMAKER EQUIP SCREEN */
/* ===================== */

.jd-dollmaker-card {
  min-height: 390px;
}

.jd-doll-preview {
  margin-top: 14px;
  padding: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(255, 45, 117, 0.45);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    ),
    rgba(5, 0, 8, 0.68);

  box-shadow:
    inset 0 0 10px rgba(255, 45, 117, 0.12),
    0 0 10px rgba(255, 45, 117, 0.16);
}

.jd-doll-stage {
  position: relative;
  width: 100%;

  display: flex;
  justify-content: center;

  padding: 6px 0 2px 0;
}

.jd-doll-paper {
  width: 170px;
  min-height: 230px;
  padding: 10px 8px;

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

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.025) 0px,
      rgba(0, 0, 0, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    #f7efee;

  border: 1px solid #e7cfd6;

  box-shadow:
    0 0 10px rgba(255, 45, 117, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.jd-doll-paper img {
  width: 150px;
  height: 195px;

  object-fit: contain;
  display: block;
  image-rendering: auto;

  filter:
    drop-shadow(0 0 6px rgba(255, 45, 117, 0.45));
}

.jd-doll-deco {
  position: absolute;

  color: #ff9fcb;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;

  text-shadow:
    0 0 5px rgba(255, 45, 117, 0.8),
    0 0 10px rgba(255, 190, 220, 0.4);
}

.jd-doll-deco-1 { top: 12px; left: 48px; }
.jd-doll-deco-2 { top: 26px; right: 50px; }
.jd-doll-deco-3 { bottom: 22px; left: 42px; }
.jd-doll-deco-4 { bottom: 36px; right: 44px; }

.jd-doll-build {
  width: 100%;
  text-align: center;
}

.jd-doll-build p {
  margin: 0 0 6px 0;

  color: #ffd6e4;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;

  text-shadow:
    1px 0 rgba(0, 255, 225, 0.55),
    -1px 0 rgba(255, 45, 117, 0.65),
    0 0 5px rgba(255, 45, 117, 0.7);
}

.jd-doll-build p:last-child {
  color: #ffb3cb;
  font-size: 8px;
  text-shadow:
    0 0 4px rgba(255, 45, 117, 0.45);
}


/* ===================== */
/* DOLLMAKER WARDROBE PANEL */
/* ===================== */

.jd-closet-panel {
  margin-top: 16px;
  padding: 12px;

  border: 1px solid rgba(255, 45, 117, 0.42);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    ),
    rgba(9, 0, 12, 0.62);

  box-shadow:
    inset 0 0 10px rgba(255, 45, 117, 0.08),
    0 0 10px rgba(255, 45, 117, 0.12);
}

.jd-closet-label {
  width: fit-content;
  margin: 0 auto 12px auto;
  padding: 4px 12px;

  border: 1px solid rgba(255, 45, 117, 0.55);
  background: rgba(5, 0, 8, 0.72);

  color: #ffb7d3;
  font-size: 8px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;

  text-shadow:
    0 0 4px rgba(255, 45, 117, 0.6);
}

.jd-doll-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.jd-dollmaker-card .doll-choice {
  width: 100%;
  margin: 0;
  padding: 9px 8px;
}

.jd-dollmaker-card .doll-choice::before {
  content: "♡";
  margin-right: 6px;

  color: #ff9fcb;
  text-shadow:
    0 0 5px rgba(255, 45, 117, 0.8);
}

.jd-closet-random {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.jd-closet-random #doll-random-button {
  margin: 0;
  min-width: 120px;
}


/* ===================== */
/* PIXEL PET ADOPTION MACHINE */
/* ===================== */

.jd-pet-machine {
  min-height: 315px;
}

.jd-pet-output {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  min-height: 105px;
  text-align: left;
}

.jd-pet-sprite {
  width: 86px;
  height: 86px;

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

  flex: 0 0 auto;

  border: 1px solid rgba(255, 45, 117, 0.55);
  background: rgba(0, 0, 0, 0.45);

  color: #ffffff;
  font-size: 42px;
  line-height: 1;

  text-shadow:
    0 0 6px #ff2d75,
    0 0 12px rgba(255, 45, 117, 0.8);

  box-shadow:
    inset 0 0 8px rgba(255, 45, 117, 0.12),
    0 0 10px rgba(255, 45, 117, 0.25);
}

.jd-pet-sprite img {
  width: 76px;
  max-width: 76px;
  max-height: 76px;
  height: auto;

  display: block;
  object-fit: contain;
  image-rendering: pixelated;

  filter:
    drop-shadow(0 0 5px rgba(255, 45, 117, 0.8));
}

.jd-pet-info {
  flex: 1;
}

.jd-pet-info p {
  margin: 0;
}

.jd-pet-info p:first-child {
  color: #ffffff;
  text-transform: uppercase;

  text-shadow:
    2px 0 #00ffe1,
    -2px 0 #ff2d75,
    0 0 8px #ff2d75;
}

.jd-pet-info p:last-child {
  margin-top: 6px;
  color: #ffb3cb;
  font-size: 9px;
  line-height: 1.6;
}


/* ===================== */
/* JUNKDRAWER FOOTER */
/* ===================== */

.jd-footer {
  text-align: center;
  margin: 26px 0;
}

.jd-footer a {
  color: #ff7ca5;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 9px;

  text-shadow:
    0 0 4px #ff2d75,
    0 0 8px rgba(255, 45, 117, 0.55);
}

.jd-footer a:hover {
  color: #ffffff;
  text-shadow:
    0 0 5px #ff2d75,
    0 0 10px #ff2d75;
}

.jd-footer img {
  display: block;
  width: 120px;
  max-width: 80%;
  height: auto;
  margin: 18px auto 0;
  image-rendering: pixelated;

  filter:
    drop-shadow(0 0 5px rgba(255, 45, 117, 0.75));
}


/* ===================== */
/* JUNKDRAWER MOBILE */
/* ===================== */

@media (max-width: 900px) {
  .jd-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .jd-page {
    max-width: 460px;
  }
}
