/* Wisdom Bubbles — AMETHYST NIGHT
   The art direction re-points the kit's tokens: violet held in a near-black
   room. The coins keep their own brand colours inside the glass. The page
   layout is /core/layout.css and the chrome the shared kit's (/core/kit.css);
   this file holds the arena, the Provably Fair panel and the first-run art. */
:root {
  --am-void: #0a0714;
  --am-page: #0c0916;
  --am-plot: #110d1d;
  --am-plot-edge: #1d1733;
  --am-surface: #15111f;
  --am-raised: #241d3a;
  --am-core: #7c5cfa;
  --am-bright: #9b8bff;
  --am-mint: #d9d0ff;

  --background: var(--am-page);
  --foreground: #f5f3fb;
  --heading: #f5f3fb;
  --card: var(--am-surface);
  --card-foreground: #f5f3fb;
  --popover: var(--am-surface);
  --popover-foreground: #f5f3fb;
  --primary: var(--am-core);
  --primary-foreground: #f7f4ff;
  --primary-hover: #b9b1cf;
  --secondary: var(--am-raised);
  --secondary-foreground: #f5f3fb;
  --secondary-hover: #34294f;
  --muted: var(--am-raised);
  --muted-foreground: #99929f;
  --accent: #34294f;
  --accent-foreground: #f5f3fb;
  --border: rgba(217, 208, 255, 0.1);
  --input: rgba(217, 208, 255, 0.1);
  --ring: var(--am-bright);
  --icon: #7a7387;
}

/* ---- the arena: the board is the card, the canvas fills it ---- */
.arena-card {
  background: var(--card);
  border-radius: 20px;
  margin-bottom: 14px;
}
.arena {
  position: absolute;
  inset: 0;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- provably fair ---- */
.fair-how {
  margin: 0 0 12px;
  font: 400 14px/1.625 var(--font-sans);
  color: #d7dae3;
}
.fair-wait {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font: 400 13px/1.625 var(--font-sans);
  color: var(--icon);
}
.fair-round {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 700 13px var(--font-mono);
  color: var(--heading);
}
.hash {
  margin-bottom: 10px;
}
.hash-label {
  margin-bottom: 4px;
  font: 700 10px var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--icon);
}
.hash-value {
  user-select: all;
  word-break: break-all;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: rgba(255, 255, 255, 0.05);
  font: 400 11px/1.5 var(--font-mono);
  color: var(--heading);
}
.fair-btn {
  margin-top: 4px;
  width: 100%;
  border: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary);
  font: 700 15px var(--font-sans);
  color: var(--primary-foreground);
  cursor: pointer;
}
.fair-btn:disabled {
  opacity: 0.6;
}
.fair-err,
.fair-verdict {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid;
  font: 400 13px var(--font-mono);
}
.fair-err,
.fair-verdict.bad {
  border-color: color-mix(in srgb, var(--destructive) 35%, transparent);
  background: color-mix(in srgb, var(--destructive) 12%, transparent);
  color: var(--destructive);
}
.fair-verdict {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.fair-verdict.ok {
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}
.fair-verdict svg,
.fair-verdict .icon {
  display: inline-block;
  vertical-align: -0.1em;
}
.fair-note {
  margin-top: 8px;
  font: 400 12px/1.625 var(--font-sans);
  color: var(--icon);
}

/* ---- first-run art: miniature bubbles ---- */
.ftue-art {
  display: flex;
  height: 96px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ftue-art__row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.ftue-orb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 63% 70%, rgba(168, 85, 247, 0.2), transparent 38%),
    radial-gradient(circle at 50% 48%, rgba(27, 28, 34, 0.8), rgba(19, 19, 22, 0.96) 72%);
  box-shadow: inset 3px 4px 6px rgba(255, 255, 255, 0.12);
}
.ftue-orb.is-lit {
  box-shadow: 0 0 0 2px rgba(139, 124, 250, 0.9), 0 0 12px rgba(139, 124, 250, 0.45);
  outline: 2px solid rgb(139, 124, 250);
  outline-offset: 2px;
}
.ftue-orb.is-dead {
  opacity: 0.35;
}
.ftue-orb span {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 4px;
  font: 800 6px var(--font-sans);
  letter-spacing: 0.05em;
  color: #fff;
}
