:root {
  --gold: #f6cc78;
  --gold-deep: #c89235;
  --ice: #eaf7ff;
  --ink: #07120f;
  --panel: rgba(8, 14, 13, 0.74);
  --line: rgba(255, 255, 255, 0.2);
  --glow: rgba(246, 204, 120, 0.4);
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-size: 18vmin;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #050807;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

body {
  top: 0 !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate {
  display: none !important;
}

iframe.goog-te-banner-frame {
  visibility: hidden !important;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

*::-webkit-scrollbar-button {
  background: rgba(255, 255, 255, 0.08);
}

button {
  font: inherit;
}

.mine-stage {
  position: relative;
  width: 100vw;
  min-height: calc(100vw * 5793 / 2896);
  overflow: hidden;
  isolation: isolate;
}

.backdrop,
.image-frame,
.shade,
.spotlight,
.gem-rail {
  position: absolute;
  inset: 0;
}

.backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.16) brightness(0.52);
  transform: scale(1.08);
  z-index: 0;
}

.image-frame {
  z-index: 1;
  display: grid;
  place-items: start center;
  margin: 0;
  padding: 0;
}

.mine-image {
  width: 100vw;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 2896 / 5793;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.02);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
  user-select: none;
  -webkit-user-drag: none;
}

.shade {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  position: fixed;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), transparent 0, transparent calc(var(--spot-size) * 0.64), rgba(3, 6, 6, 0.25) calc(var(--spot-size) * 0.92), rgba(3, 6, 6, 0.82) calc(var(--spot-size) * 1.55)),
    rgba(3, 6, 6, 0.2);
  transition: opacity 360ms ease;
}

.spotlight {
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  position: fixed;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.5) 0, rgba(246, 204, 120, 0.18) calc(var(--spot-size) * 0.46), transparent calc(var(--spot-size) * 0.96));
  mix-blend-mode: screen;
}

.mine-stage.is-focused .shade,
.mine-stage.is-focused .spotlight {
  opacity: 1;
}

.mine-stage.is-focused .site-theme {
  opacity: 0 !important;
  transform: translateY(-18px);
  pointer-events: none;
}

.home-orders-link {
  position: fixed;
  top: clamp(18px, 4vw, 48px);
  right: clamp(18px, 4vw, 56px);
  z-index: 12;
  padding: 12px 16px;
  color: #120e04;
  background: linear-gradient(135deg, #fff5ca, #e5ac45);
  border: 1px solid rgba(246, 204, 120, 0.54);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-policy-links {
  position: fixed;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(520px, calc(100vw - 36px));
}

.home-policy-links a {
  padding: 10px 12px;
  color: rgba(255, 252, 239, 0.84);
  background: rgba(5, 8, 7, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-theme {
  position: fixed;
  top: clamp(18px, 4vw, 48px);
  left: clamp(18px, 4vw, 56px);
  z-index: 8;
  max-width: min(620px, 56vw);
  padding: clamp(16px, 2vw, 24px);
  opacity: 0;
  transform: translateY(-14px);
  color: #fff9e9;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.72);
}

.site-theme p,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-theme h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 5vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.site-theme span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1.3vw, 16px);
}

.gem-rail {
  z-index: 7;
  pointer-events: none;
}

.gem-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.gem-hotspot::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  opacity: 0;
  box-shadow: 0 0 34px var(--glow);
  transition: opacity 240ms ease, transform 240ms ease;
}

.gem-hotspot span {
  display: none;
}

.gem-hotspot:hover::before,
.gem-hotspot:focus-visible::before,
.gem-hotspot.active::before {
  opacity: 1;
}

.gem-hotspot:hover::before,
.gem-hotspot.active::before {
  transform: scale(1.02);
}

.gem-panel {
  position: fixed;
  right: clamp(16px, 4vw, 56px);
  top: 50%;
  z-index: 9;
  width: min(500px, calc(100vw - 32px));
  max-height: min(78dvh, 760px);
  overflow: auto;
  padding: clamp(12px, 2vw, 22px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  transform: translate(22px, -48%);
  pointer-events: none;
  color: rgba(255, 252, 239, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.gem-panel.is-visible {
  pointer-events: auto;
}

.gem-panel h2 {
  margin: 0;
  color: #fff7da;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}

.panel-subtitle {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.shop-intro {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.gem-facts {
  display: grid;
  gap: 10px;
}

.fact {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.fact strong {
  color: var(--gold);
  font-size: 14px;
}

.fact span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.65;
}

.buy-line {
  display: block;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 900;
}

.buy-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #120e04;
  background: linear-gradient(135deg, #fff5ca, #e5ac45);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(232, 174, 74, 0.22);
}

.purchase-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 13px 16px;
  color: #130e05;
  background: #fff4c9;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  pointer-events: none;
}

@media (max-width: 980px) {
  .site-theme {
    max-width: min(560px, calc(100vw - 24px));
  }

  .gem-panel {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 43dvh;
    transform: translateY(16px);
    padding: 10px 8px;
  }

  .gem-panel h2 {
    font-size: 34px;
  }

  .fact {
    padding: 8px 0;
  }

  .fact span {
    font-size: 13px;
  }

  .buy-line {
    font-size: 28px;
  }

}

@media (max-width: 560px) {
  .mine-image {
    width: 100vw;
  }

  .site-theme {
    top: 8px;
    left: 8px;
    padding: 12px;
  }

  .home-orders-link {
    top: 8px;
    right: 8px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .home-policy-links {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: flex-start;
  }

  .home-policy-links a {
    padding: 8px 9px;
    font-size: 10px;
  }

  .site-theme h1 {
    font-size: clamp(28px, 10vw, 44px);
  }

  .site-theme span {
    font-size: 12px;
  }

  .panel-subtitle,
  .fact span {
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
