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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: #121923;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: #edf5e6;
  font-family: 'JetBrains Mono', 'Cascadia Mono', 'Consolas', monospace;
  overflow-x: hidden;
}

.scene {
  position: relative;
  width: 100%;
  height: 1700px;
  overflow: hidden;
  background: linear-gradient(180deg, #131a24 0%, #2a3a46 48%, #5e7479 84%, #1a2918 100%);
}

.jungle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tree-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crown-card {
  position: absolute;
  left: 50%;
  top: 21%;
  transform: translate(-50%, -50%);
  width: min(90vw, 570px);
  padding: 24px 26px 22px;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(20, 34, 21, 0.48) 0%, rgba(26, 20, 14, 0.54) 100%);
  backdrop-filter: blur(2.5px);
  border: 3px solid rgba(117, 83, 53, 0.88);
  box-shadow:
    0 0 0 3px rgba(40, 26, 16, 0.82),
    0 0 0 6px rgba(15, 31, 14, 0.58),
    0 20px 44px rgba(0, 0, 0, 0.52),
    inset 0 3px 0 rgba(162, 122, 82, 0.28),
    inset 0 -3px 0 rgba(12, 16, 11, 0.55);
}

.card-vine {
  position: absolute;
  top: -6px;
  width: 6px;
  height: 6px;
  background-color: #4b8e35;
  pointer-events: none;
}

.card-vine--tl {
  left: -6px;
  box-shadow:
    6px 0 0 #356c24,
    0 6px 0 #356c24,
    0 12px 0 #28541b,
    12px 0 0 #5ca042;
}

.card-vine--tr {
  right: -6px;
  box-shadow:
    -6px 0 0 #356c24,
    0 6px 0 #356c24,
    0 12px 0 #28541b,
    -12px 0 0 #5ca042;
}

.crown-title {
  margin: 0 0 16px;
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
  font-size: clamp(14px, 2vw, 19px);
  line-height: 1.55;
  color: #e6f6d5;
  text-shadow: 3px 3px 0 #182915;
  letter-spacing: 0.02em;
}

.crown-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.crown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.55;
  color: #dfead8;
  text-shadow: 1px 1px 0 rgba(10, 14, 10, 0.85);
}

.pixel-bullet {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background-color: #69a749;
  box-shadow:
    2px 2px 0 #21421a,
    inset 2px 2px 0 #95cf6f;
}

.crown-contact {
  padding-top: 14px;
  border-top: 2px solid rgba(130, 97, 63, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b7cca8;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #75b756;
  background-color: #2f6c36;
  color: #f2f9ec;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 2px #172b18,
    inset 0 2px 0 rgba(154, 219, 118, 0.35),
    inset 0 -3px 0 rgba(19, 43, 21, 0.72);
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tg-btn {
  padding: 9px 14px;
}

.copy-btn {
  width: 38px;
  height: 38px;
  padding: 0;
}

.tg-btn:hover,
.copy-btn:hover {
  background-color: #3b8342;
  border-color: #8fd16c;
}

.tg-btn:active,
.copy-btn:active {
  transform: translateY(2px);
}

.tg-btn:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid #d9f5be;
  outline-offset: 3px;
}

.copy-btn.is-copied {
  background-color: #4a9644;
  border-color: #bce89a;
}

.pixel-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.branch-slot {
  --s: 1;
  --w: 188px;
  --h: 66px;
  position: absolute;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition: transform 0.16s ease;
}

.branch-plank {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(20, 34, 21, 0.46) 0%, rgba(26, 20, 14, 0.52) 100%);
  backdrop-filter: blur(2.5px);
  border: 3px solid rgba(117, 83, 53, 0.86);
  box-shadow:
    0 0 0 3px rgba(40, 26, 16, 0.8),
    0 0 0 5px rgba(15, 31, 14, 0.56),
    0 14px 28px rgba(0, 0, 0, 0.48),
    inset 0 2px 0 rgba(162, 122, 82, 0.28),
    inset 0 -2px 0 rgba(12, 16, 11, 0.52);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.branch-plank::before,
.branch-plank::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 5px;
  height: 5px;
  background-color: #4b8e35;
  pointer-events: none;
}

.branch-plank::before {
  left: -5px;
  box-shadow:
    5px 0 0 #356c24,
    0 5px 0 #356c24,
    0 10px 0 #28541b,
    10px 0 0 #5ca042;
}

.branch-plank::after {
  right: -5px;
  box-shadow:
    -5px 0 0 #356c24,
    0 5px 0 #356c24,
    0 10px 0 #28541b,
    -10px 0 0 #5ca042;
}

.branch-slot::before,
.branch-slot::after {
  content: "";
  position: absolute;
  top: calc(-5px * var(--s));
  width: calc(8px * var(--s));
  height: calc(7px * var(--s));
  z-index: 2;
  background-color: #6b4c2e;
  border: calc(1.5px * var(--s)) solid #1e130b;
  box-shadow:
    inset 0 calc(2px * var(--s)) 0 rgba(196, 158, 112, 0.45),
    0 calc(1px * var(--s)) 0 rgba(0, 0, 0, 0.45);
}

.branch-slot::before {
  left: calc(20px * var(--s));
}

.branch-slot::after {
  right: calc(20px * var(--s));
}

.branch-slot[data-branch="0"] {
  --w: 192px;
  --h: 64px;
}

.branch-slot[data-branch="1"] {
  --w: 176px;
  --h: 70px;
}

.branch-slot[data-branch="2"] {
  --w: 198px;
  --h: 62px;
}

.branch-slot[data-branch="3"] {
  --w: 180px;
  --h: 68px;
}

.branch-slot[data-branch="4"] {
  --w: 188px;
  --h: 64px;
}

.branch-slot:hover .branch-plank {
  filter: brightness(1.06);
}

.branch-slot:hover .branch-plank {
  border-color: rgba(154, 113, 74, 0.95);
  box-shadow:
    0 0 0 3px rgba(40, 26, 16, 0.85),
    0 0 0 5px rgba(84, 146, 62, 0.42),
    0 16px 32px rgba(0, 0, 0, 0.54),
    inset 0 2px 0 rgba(176, 134, 94, 0.36),
    inset 0 -2px 0 rgba(12, 16, 11, 0.56);
}

@media (max-width: 640px) {
  .scene {
    height: 1700px;
  }

  .crown-card {
    padding: 18px 16px 16px;
  }

  .crown-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .crown-item {
    font-size: 12.5px;
    gap: 9px;
  }

  .crown-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .branch-slot {
    --s: 0.66;
  }
}
@media (min-width: 1800px) {
  .crown-card {
    width: 640px;
    padding: 28px 30px 26px;
  }

  .crown-title {
    font-size: 22px;
  }

  .crown-item {
    font-size: 16px;
  }

  .contact-label {
    font-size: 14px;
  }

  .tg-btn {
    font-size: 15px;
  }

  .branch-slot {
    --s: 1.15;
  }
}

@media (min-width: 2400px) {
  .crown-card {
    width: 760px;
    padding: 34px 36px 30px;
  }

  .crown-title {
    font-size: 26px;
  }

  .crown-item {
    font-size: 19px;
  }

  .contact-label {
    font-size: 16px;
  }

  .tg-btn {
    font-size: 17px;
  }

  .branch-slot {
    --s: 1.35;
  }
}

@media (max-width: 380px) {
  .crown-card {
    width: 94vw;
    padding: 14px 12px 12px;
  }

  .crown-title {
    font-size: 11.5px;
  }

  .crown-item {
    font-size: 12px;
  }

  .branch-slot {
    --s: 0.58;
  }
}

@media (pointer: coarse) {
  .tg-btn {
    padding: 12px 14px;
  }

  .copy-btn {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 900px) {
  html,
  body {
    overflow-x: auto;
    background-color: #17261a;
  }

  body {
    min-width: 1440px;
  }

  .scene {
    min-width: 1440px;
  }

  .crown-card {
    width: 350px;
  }
}
