:root {
  --bg: #8e8e8e;
  --panel: #b6b6b6;
  --border: #6f6f6f;
  --text: #1e1e1e;
  --muted: #3d3d3d;
  --sphere-shadow: rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #000000;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stage-panel {
  width: min(980px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
}

.stage-copy {
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
}

#statusText {
  margin: 0;
  color: var(--muted);
}

.stage-wrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 540px;
  background: #9c9c9c;
}

.sphere {
  position: absolute;
  width: 98px;
  height: 98px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.42) 16%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 38% 35%, #dff8d8 0%, #9bd88b 30%, #4f9d50 62%, #275d2f 100%);
  box-shadow:
    0 16px 24px var(--sphere-shadow),
    inset -10px -14px 18px rgba(0, 0, 0, 0.24),
    inset 10px 12px 16px rgba(255, 255, 255, 0.3);
  transform: translate3d(0, 0, 0);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.sphere-indent,
.sphere-gankyil,
.sphere-gender {
  position: absolute;
  pointer-events: none;
}

.sphere-indent {
  width: 49px;
  height: 49px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 68% 70%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 34% 30%, #1e4a24 0%, #35703d 38%, #6fb66d 72%, #a8d9a1 100%);
  box-shadow:
    inset 8px 8px 12px rgba(0, 0, 0, 0.32),
    inset -7px -7px 12px rgba(255, 255, 255, 0.22);
}

.sphere-gankyil {
  inset: -6px;
  border-radius: 50%;
  background-image: url("assets/gankyil.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 114% 114%;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.22));
}

.sphere-gender {
  inset: 11px;
  background-image: url("assets/gender-neutral.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.96;
}

.sphere:hover,
.sphere:focus-visible {
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.24),
    inset -10px -14px 18px rgba(0, 0, 0, 0.24),
    inset 10px 12px 16px rgba(255, 255, 255, 0.3);
}

.sphere.is-clicked {
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.18),
    0 18px 30px rgba(0, 0, 0, 0.24),
    inset -10px -14px 18px rgba(0, 0, 0, 0.24),
    inset 10px 12px 16px rgba(255, 255, 255, 0.3);
}

@media (max-width: 720px) {
  .page {
    padding: 12px;
  }

  .stage-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .stage {
    min-height: 420px;
  }
}
