@font-face {
  font-family: "Rammetto One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("fonts/rammetto-one-latin-400-normal.woff2") format("woff2"),
    url("fonts/rammetto-one-latin-400-normal.woff") format("woff");
}

:root {
  --ink: #1c1c1c;
  --quiet: #6e665c;
  --gold: #e7b439;
  --gold-deep: #a56b10;
  --brass: #c9a24e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

main {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vh, 14px);
  padding: 16px 18px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  width: clamp(52px, 8vw, 72px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Rammetto One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 4.8vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.prop {
  --ember: #ffbe6e;
  --ember-glow: #ffd08c;
  --ember-rim: #ffe1c0;
  --wood: #5c3a28;
  --wood-mid: #7a4e34;
  --wood-shine: #8d5d42;
  --wood-deep: #4a2e20;
  position: relative;
  container-type: inline-size;
  width: min(74vw, 46dvh, 440px);
  margin-top: clamp(4px, 0.8vh, 10px);
  padding-bottom: 80px;
}

.ripples {
  position: absolute;
  left: 50%;
  top: calc(36cqw);
  z-index: 1;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(255 176 72 / 0.55);
  box-shadow: 0 0 12px rgb(255 190 90 / 0.2);
  opacity: 0;
  transform: scale(0.92);
  animation: ripple-out 1.15s ease-out forwards;
}

.oracle {
  --warmth: 0;
  position: relative;
  z-index: 2;
  width: 72%;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  outline: none;
  animation: levitate 4.2s ease-in-out infinite;
}

.oracle.is-hot {
  cursor: grab;
}

.oracle.is-rubbing {
  cursor: grabbing;
}

.oracle:focus-visible {
  box-shadow: 0 0 0 2px #f7931a;
}

/* Flat ember sphere: solid amber, cream rim, lighter core, specular arc. */
.glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ember);
  box-shadow:
    inset 0 0 0 5px var(--ember-rim),
    inset 0 -18% 0 0 rgb(255 208 140 / 0.35),
    0 0 0 1px rgb(255 200 150 / 0.35);
}

.glass-core {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 62%;
  border-radius: 50%;
  background: var(--ember-glow);
  pointer-events: none;
}

.glass-spec {
  position: absolute;
  z-index: 3;
  top: 18%;
  left: 27%;
  width: 7.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

.glass-spec-lg {
  top: 30%;
  left: 18%;
  width: 13%;
  opacity: 0.85;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgb(255 150 40 / 0.55), rgb(255 150 40 / 0) 68%);
  opacity: var(--warmth);
  pointer-events: none;
}

.sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.blot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 40%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.55), rgb(255 200 120 / 0) 72%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  mix-blend-mode: soft-light;
}

.price {
  margin: 0;
  font-family: "Fragment Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(24px, 4vw, 40px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: left;
  color: #3a3028;
}

.verdict {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 28%;
  bottom: 36%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: "Rammetto One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 3.6vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  color: #2a1c12;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) translateY(8px);
}

.verdict.is-in {
  animation: condense 0.7s ease forwards;
}

/* Two-tier wooden stand: cup under the ball, wider base below.
   Top is ball diameter (72cqw) minus a fixed px nest into the sphere. */
.stand {
  position: absolute;
  left: 50%;
  top: calc(72cqw - 16px);
  z-index: 3;
  width: 52%;
  transform: translateX(-50%);
  pointer-events: none;
}

.stand-cup,
.stand-base {
  position: relative;
  margin: 0 auto;
  background: var(--wood-mid);
  box-shadow: inset -6px 0 0 var(--wood-shine);
}

.stand-cup {
  width: 78%;
  height: clamp(28px, 7.2vw, 38px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--wood-deep) 0 18%, transparent 18%),
    var(--wood-mid);
  box-shadow:
    inset -6px 0 0 var(--wood-shine),
    inset 0 8px 0 -4px var(--wood-deep);
}

.stand-cup::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -4px;
  height: 14px;
  border-radius: 50%;
  background: var(--wood-deep);
  opacity: 0.85;
}

.stand-base {
  width: 100%;
  height: clamp(34px, 8.5vw, 46px);
  margin-top: -4px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--wood) 0 22%, var(--wood-mid) 22% 78%, var(--wood-deep) 78%),
    var(--wood-mid);
}

.stand-cup-shine,
.stand-base-shine {
  position: absolute;
  top: 18%;
  right: 7%;
  bottom: 18%;
  width: 7%;
  border-radius: 999px;
  background: var(--wood-shine);
  opacity: 0.9;
}

.cast-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 0;
  width: 58%;
  height: 14px;
  border-radius: 50%;
  background: #ede0d0;
  transform: translateX(-50%);
  transform-origin: center;
  pointer-events: none;
  animation: levitate-shadow 4.2s ease-in-out infinite;
}

.lede {
  margin: 0;
  max-width: 28ch;
  font-family: "Fragment Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  color: var(--quiet);
}

@keyframes levitate {
  0%,
  100% {
    transform: translateY(4px);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes levitate-shadow {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) scaleX(0.92);
    opacity: 0.72;
  }
}

@keyframes condense {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes ripple-out {
  0% {
    opacity: 0.7;
    transform: scale(0.92);
  }

  70% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oracle,
  .cast-shadow,
  .verdict.is-in,
  .sparks,
  .ripple {
    animation: none;
  }

  .sparks,
  .ripples {
    display: none;
  }

  .verdict {
    transform: none;
    filter: none;
    transition: opacity 0.2s ease;
  }

  .verdict.is-in {
    opacity: 1;
  }

  .blot {
    transition: none;
  }
}
