* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #020203;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(170, 116, 38, 0.035), transparent 28%),
    radial-gradient(circle at 57% 43%, rgba(48, 62, 78, 0.024), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.95) 100%),
    #020203;
}

.brand-backdrop {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  width: max-content;
  color: rgba(92, 79, 55, 0.065);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(86px, 18vw, 290px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-align: center;
  filter: blur(18px);
  text-shadow:
    0 0 48px rgba(120, 84, 36, 0.1),
    0 0 128px rgba(18, 24, 32, 0.18);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

#market-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  display: block;
  background: transparent;
}

.entry-button {
  position: fixed;
  left: 50%;
  bottom: clamp(28px, 5vh, 58px);
  z-index: 2;
  transform: translateX(-50%);
  min-width: 210px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 218, 132, 0.52);
  border-radius: 999px;
  background: rgba(18, 15, 10, 0.7);
  color: #ffe2a0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow:
    0 0 22px rgba(255, 190, 72, 0.18),
    inset 0 0 18px rgba(255, 218, 132, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.entry-button:hover {
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(255, 226, 160, 0.86);
  color: #fff1c4;
  box-shadow:
    0 0 30px rgba(255, 196, 78, 0.28),
    inset 0 0 20px rgba(255, 218, 132, 0.12);
}

.entry-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: min(360px, 100%);
  padding: 26px 24px 22px;
  border: 1px solid rgba(255, 226, 160, 0.34);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.92);
  color: #fff1c4;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.modal-panel p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
}

.modal-close {
  height: 38px;
  min-width: 86px;
  border: 1px solid rgba(255, 226, 160, 0.46);
  border-radius: 999px;
  background: rgba(255, 226, 160, 0.08);
  color: #ffe2a0;
  font: inherit;
  cursor: pointer;
}
