/* Styles for five games: Screen or Sky?, The Just-Mine Box, Open the Robot, Dream Team, Spot the Well.
   Every rule is scoped under its game's root class. Uses tokens from site.css. */

/* ---------- shared bits for these five ---------- */
:is(.g-screen-sky, .g-just-mine, .g-open-robot, .g-dream-team, .g-spot-well) { container-type: inline-size; }
:is(.g-screen-sky, .g-just-mine, .g-open-robot, .g-dream-team, .g-spot-well) [hidden] { display: none !important; }
:is(.g-screen-sky, .g-just-mine) kbd {
  font-family: var(--font-title); font-size: 0.75rem; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.75); color: var(--ink-soft);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
:is(.g-screen-sky, .g-just-mine, .g-open-robot, .g-dream-team) .result-card { text-align: center; display: grid; gap: 10px; justify-items: center; }
:is(.g-screen-sky, .g-just-mine, .g-open-robot, .g-dream-team) .result-card p { margin: 0; }
:is(.g-screen-sky, .g-just-mine, .g-open-robot, .g-dream-team) .result-card h3 { margin: 0; font-size: 1.7rem; }

/* =====================================================================
   1. SCREEN OR SKY?
   ===================================================================== */
.g-screen-sky { gap: 14px; }
.g-screen-sky .ss-meter { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.g-screen-sky .ss-dots { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 16px; }
.g-screen-sky .ss-dot {
  position: relative; width: 20px; height: 20px; border-radius: 50%; background: #efe4d0;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08); display: grid; place-items: center;
  font-family: var(--font-title); font-size: 0.7rem; font-weight: 700; color: var(--navy);
  transition: background 0.3s, transform 0.35s var(--ease-pop), box-shadow 0.3s;
}
.g-screen-sky .ss-dot.now { background: var(--sticky); transform: scale(1.2); box-shadow: 0 0 0 3px rgba(244, 198, 82, 0.45); }
.g-screen-sky .ss-dot.good { background: var(--gold-hi); }
.g-screen-sky .ss-dot.new { animation: pop-in 0.4s var(--ease-pop); }
.g-screen-sky .ss-dot.good::after { content: '★'; }
.g-screen-sky .ss-dot.oops { background: #ecc0b6; }
.g-screen-sky .ss-dot.oops::after { content: '·'; color: var(--red); font-size: 1rem; }
.g-screen-sky .ss-dot.goal::before {
  content: '🏁'; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 0.8rem;
}
.g-screen-sky .ss-score-text { font-family: var(--font-title); color: var(--navy); font-size: 1rem; }
.g-screen-sky .ss-score-text b { color: var(--gold); font-size: 1.2rem; }

.g-screen-sky .ss-table {
  position: relative; min-height: 360px; display: grid; place-items: center; padding: 24px 12px;
  border-radius: 26px; overflow: hidden; touch-action: pan-y;
  background: linear-gradient(90deg, #d6ecf8 0%, #f6efe2 32%, #f6efe2 68%, #e1edc4 100%);
  box-shadow: inset 0 0 0 3px rgba(29, 40, 73, 0.08), var(--shadow);
}
.g-screen-sky .ss-zone {
  position: absolute; top: 0; bottom: 0; width: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; font-family: var(--font-title); font-weight: 600; font-size: 1rem; color: var(--navy);
  opacity: 0.6; transition: opacity 0.25s, background 0.25s;
}
.g-screen-sky .ss-zone-left { left: 0; }
.g-screen-sky .ss-zone-right { right: 0; }
.g-screen-sky .ss-zone-icon { font-size: 2.4rem; line-height: 1; transition: transform 0.3s var(--ease-pop); }
.g-screen-sky .ss-zone.hot { opacity: 1; }
.g-screen-sky .ss-zone-left.hot { background: rgba(130, 240, 242, 0.32); }
.g-screen-sky .ss-zone-right.hot { background: rgba(139, 164, 70, 0.25); }
.g-screen-sky .ss-zone.hot .ss-zone-icon { transform: scale(1.3) rotate(-6deg); }
.g-screen-sky .ss-zone.flash-good { animation: ss-flash-good 0.8s ease; }
.g-screen-sky .ss-zone.flash-oops { animation: ss-flash-oops 0.8s ease; }

.g-screen-sky .ss-pile { position: relative; z-index: 2; width: clamp(210px, 46cqi, 300px); aspect-ratio: 5 / 6; }
.g-screen-sky .ss-ghost,
.g-screen-sky .ss-card { position: absolute; inset: 0; border-radius: 24px; }
.g-screen-sky .ss-ghost { background: var(--paper); border: 3px solid #efe2c9; box-shadow: 0 6px 14px rgba(29, 40, 73, 0.12); }
.g-screen-sky .ss-ghost[data-n='1'] { transform: rotate(4deg) translate(7px, 6px); }
.g-screen-sky .ss-ghost[data-n='2'] { transform: rotate(-5deg) translate(-8px, 10px); }
.g-screen-sky .ss-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 26px 18px 30px; background: var(--paper); border: 3px solid #f1e3c6;
  box-shadow: 0 16px 32px rgba(29, 40, 73, 0.22); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  transition: transform 0.35s var(--ease-pop); animation: ss-deal 0.45s var(--ease-pop);
}
.g-screen-sky .ss-card::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(251, 224, 138, 0.85); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.g-screen-sky .ss-card.dragging { transition: none; cursor: grabbing; }
.g-screen-sky .ss-card.flying { animation: none; transition: transform 0.55s cubic-bezier(0.3, 0.6, 0.4, 1), opacity 0.45s ease 0.1s; pointer-events: none; }
.g-screen-sky .ss-card-num { position: absolute; top: 14px; left: 18px; font-family: var(--font-title); font-size: 0.78rem; color: var(--ink-soft); }
.g-screen-sky .ss-emoji { font-size: clamp(3.4rem, 10cqi, 5rem); line-height: 1; margin-bottom: 14px; animation: bob 3s ease-in-out infinite; }
.g-screen-sky .ss-text { font-family: var(--font-hand); font-size: clamp(1.35rem, 3.4cqi, 1.75rem); line-height: 1.2; color: var(--navy); }
.g-screen-sky .ss-card-hint { position: absolute; bottom: 10px; left: 0; right: 0; font-family: var(--font-title); font-size: 0.78rem; color: #b3a487; letter-spacing: 0.04em; }

.g-screen-sky .ss-feedback { text-align: center; min-height: 2.8em; padding: 0 8px; }
.g-screen-sky .ss-choice .choice { padding: 16px 10px; font-size: 1.15rem; }
.g-screen-sky .ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.g-screen-sky .ss-btn-icon { font-size: 1.6rem; line-height: 1; }

.g-screen-sky .ss-end-emoji { font-size: 3.6rem; line-height: 1; animation: hop 0.9s var(--ease-pop) 2; }
.g-screen-sky .ss-end-score { font-family: var(--font-title); font-size: 1.25rem; color: var(--navy); }
.g-screen-sky .ss-recap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; text-align: left; }
.g-screen-sky .ss-recap-col { border-radius: 16px; padding: 12px 14px; font-size: 0.98rem; }
.g-screen-sky .ss-recap-col b { font-family: var(--font-title); font-weight: 600; color: var(--navy); }
.g-screen-sky .ss-recap-ai { background: #d6ecf8; }
.g-screen-sky .ss-recap-sky { background: #e1edc4; }
.g-screen-sky .ss-mantra {
  background: var(--sticky); font-family: var(--font-hand); font-size: 1.3rem; color: var(--navy);
  padding: 10px 16px; transform: rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@container (max-width: 480px) {
  .g-screen-sky .ss-zone { width: 18%; }
  .g-screen-sky .ss-zone-label { display: none; }
  .g-screen-sky .ss-pile { width: 62cqi; }
  .g-screen-sky .ss-table { min-height: 320px; }
  .g-screen-sky kbd { display: none; }
  .g-screen-sky .ss-recap { grid-template-columns: 1fr; }
  .g-screen-sky .ss-choice .choice { font-size: 1rem; }
}

@keyframes ss-deal { from { opacity: 0; transform: translateY(-34px) rotate(-8deg) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes ss-flash-good { 0%, 100% { background: transparent; } 30% { background: rgba(244, 198, 82, 0.45); } }
@keyframes ss-flash-oops { 0%, 100% { background: transparent; } 30% { background: rgba(188, 56, 36, 0.18); } }

/* =====================================================================
   2. THE JUST-MINE BOX
   ===================================================================== */
.g-just-mine { gap: 14px; }
.g-just-mine .jm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-title); color: var(--navy); }
.g-just-mine .jm-stars b { color: var(--gold); font-size: 1.2rem; }

.g-just-mine .jm-scene {
  display: grid; grid-template-columns: 1fr minmax(200px, 1.3fr) 1fr; grid-template-areas: 'robot card box';
  align-items: end; gap: 12px; min-height: 320px; padding: 20px 14px 18px; border-radius: 26px; touch-action: pan-y;
  background:
    radial-gradient(ellipse 70% 30% at 50% 108%, #f5ddb3 0 60%, transparent 61%),
    linear-gradient(180deg, #fffaf2, #f7ecd9);
  box-shadow: inset 0 0 0 3px rgba(29, 40, 73, 0.08), var(--shadow);
}
.g-just-mine .jm-robot-side { grid-area: robot; }
.g-just-mine .jm-box-side { grid-area: box; }
.g-just-mine .jm-slot { grid-area: card; align-self: center; display: grid; place-items: center; min-height: 220px; }
.g-just-mine .jm-side { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.25s var(--ease-pop); }
.g-just-mine .jm-side.hot { transform: scale(1.07); }
.g-just-mine .jm-label {
  font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; text-align: center; color: var(--navy);
  background: var(--paper); border-radius: 999px; padding: 5px 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}
.g-just-mine .jm-side.hint .jm-label { animation: jm-glow 0.6s ease-in-out infinite alternate; }

.g-just-mine .jm-robot-wrap { position: relative; width: clamp(90px, 19cqi, 150px); }
.g-just-mine .jm-robot { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18)); animation: bob 3.2s ease-in-out infinite; }
.g-just-mine .jm-robot-side.catch .jm-robot { animation: hop 0.7s var(--ease-pop), bob 3.2s ease-in-out 0.7s infinite; }
.g-just-mine .jm-robot-spark { position: absolute; top: -8px; right: -10px; font-size: 1.7rem; opacity: 0; pointer-events: none; }
.g-just-mine .jm-robot-spark::before { content: '💡'; }
.g-just-mine .jm-robot-side.catch .jm-robot-spark { animation: jm-spark 1s ease-out; }

/* the wooden treasure box */
.g-just-mine .jm-box { position: relative; width: clamp(110px, 21cqi, 170px); aspect-ratio: 1 / 0.84; margin-top: 34px; }
.g-just-mine .jm-glow {
  position: absolute; left: 8%; right: 8%; top: -22%; height: 60%; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(ellipse at 50% 100%, rgba(244, 198, 82, 0.95), rgba(244, 198, 82, 0) 70%);
}
.g-just-mine .jm-inside {
  position: absolute; left: 4%; right: 4%; top: 24%; height: 16%;
  background: linear-gradient(#2e1c0e, #6b4220); border-radius: 10px 10px 0 0;
}
.g-just-mine .jm-body {
  position: absolute; left: 0; right: 0; bottom: 0; height: 68%; border: 3px solid #5b3418; border-radius: 10px 10px 18px 18px;
  background:
    linear-gradient(180deg, transparent 0 31%, rgba(91, 52, 24, 0.4) 31% 34%, transparent 34% 64%, rgba(91, 52, 24, 0.4) 64% 67%, transparent 67%),
    linear-gradient(180deg, #cf9152, #a5652f);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12), inset 0 4px 0 rgba(255, 255, 255, 0.15), 0 12px 18px rgba(60, 30, 10, 0.25);
}
.g-just-mine .jm-corner {
  position: absolute; bottom: -3px; width: 18%; height: 32%; border: 3px solid #5b3418;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
}
.g-just-mine .jm-corner-l { left: -3px; border-radius: 0 0 0 16px; }
.g-just-mine .jm-corner-r { right: -3px; border-radius: 0 0 16px 0; }
.g-just-mine .jm-clasp {
  position: absolute; top: -4px; left: 50%; width: 22%; height: 34%; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(var(--gold-hi), var(--gold)); border: 3px solid #5b3418; border-radius: 0 0 10px 10px;
}
.g-just-mine .jm-clasp::after {
  content: ''; position: absolute; left: 50%; top: 32%; width: 7px; height: 12px; transform: translateX(-50%);
  background: #5b3418; border-radius: 4px 4px 2px 2px;
}
.g-just-mine .jm-sticker {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap;
  background: var(--sticky); color: var(--navy); font-family: var(--font-hand); font-size: 0.95rem; line-height: 1.3;
  padding: 0 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.g-just-mine .jm-lid {
  position: absolute; left: -5%; right: -5%; top: 8%; height: 30%; z-index: 3;
  border: 3px solid #5b3418; border-radius: 46% 46% 8px 8px / 80% 80% 8px 8px;
  background: linear-gradient(180deg, #dda062, #b0703a);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.2), 0 3px 0 rgba(60, 30, 10, 0.2);
  transform-origin: 6% 100%; transition: transform 0.45s var(--ease-pop);
}
.g-just-mine .jm-lid-band {
  position: absolute; left: 50%; top: -3px; bottom: -3px; width: 18%; transform: translateX(-50%);
  background: linear-gradient(var(--gold-hi), var(--gold)); border-left: 3px solid #5b3418; border-right: 3px solid #5b3418;
}
.g-just-mine .jm-box.open .jm-lid { transform: rotate(-40deg) translate(-4px, -8px); }
.g-just-mine .jm-box.open .jm-glow { opacity: 1; }
.g-just-mine .jm-box-spark { position: absolute; left: 50%; top: -10%; transform: translateX(-50%); opacity: 0; pointer-events: none; color: var(--gold-hi); font-size: 1.2rem; white-space: nowrap; text-shadow: 0 0 8px rgba(244, 198, 82, 0.9); }
.g-just-mine .jm-box-spark::before { content: '✦ ★ ✦'; }
.g-just-mine .jm-box-side.catch .jm-box { animation: jm-wiggle 0.55s ease; }
.g-just-mine .jm-box-side.catch .jm-box-spark { animation: jm-spark 1s ease-out; }

/* the card (a sticky note) */
.g-just-mine .jm-card {
  position: relative; width: min(100%, 250px); min-height: 170px; padding: 24px 16px 18px; rotate: -1.5deg;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--sticky); color: var(--navy); border-radius: 4px; box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  transition: transform 0.3s var(--ease-pop); animation: jm-drop 0.7s var(--ease-pop);
}
.g-just-mine .jm-card::before {
  content: ''; position: absolute; top: -11px; left: 50%; width: 76px; height: 24px; transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, 0.6); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.g-just-mine .jm-card.dragging { transition: none; cursor: grabbing; }
.g-just-mine .jm-card.shake { animation: shake 0.45s ease; }
.g-just-mine .jm-card.flying { animation: none; pointer-events: none; transition: transform 0.56s cubic-bezier(0.45, -0.25, 0.6, 1), opacity 0.56s ease; }
.g-just-mine .jm-card-emoji { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.g-just-mine .jm-card-text { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.2; }

.g-just-mine .jm-feedback { text-align: center; min-height: 2.8em; padding: 0 8px; }
.g-just-mine .jm-choice .choice { padding: 16px 10px; font-size: 1.1rem; }
.g-just-mine .jm-choice .choice-right { background: #f1d9b5; }
.g-just-mine .jm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.g-just-mine .jm-end-emoji { font-size: 3.6rem; line-height: 1; animation: hop 0.9s var(--ease-pop) 2; }
.g-just-mine .jm-end-score { font-family: var(--font-title); font-size: 1.2rem; color: var(--navy); }
.g-just-mine .jm-recap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; text-align: left; }
.g-just-mine .jm-recap-col { border-radius: 16px; padding: 12px 14px; font-size: 0.98rem; }
.g-just-mine .jm-recap-col b { font-family: var(--font-title); font-weight: 600; color: var(--navy); }
.g-just-mine .jm-recap-share { background: #d6ecf8; }
.g-just-mine .jm-recap-keep { background: #f1d9b5; }
.g-just-mine .jm-mantra {
  background: var(--sticky); font-family: var(--font-hand); font-size: 1.35rem; color: var(--navy);
  padding: 10px 16px; transform: rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.g-just-mine .jm-tip { font-size: 0.95rem; color: var(--ink-soft); }

@container (max-width: 560px) {
  .g-just-mine .jm-scene { grid-template-columns: 1fr 1fr; grid-template-areas: 'card card' 'robot box'; }
  .g-just-mine .jm-slot { min-height: 200px; }
  .g-just-mine .jm-recap { grid-template-columns: 1fr; }
  .g-just-mine kbd { display: none; }
  .g-just-mine .jm-choice .choice { font-size: 0.98rem; }
}

@keyframes jm-drop {
  0% { opacity: 0; transform: translateY(-90px) rotate(-10deg); }
  55% { opacity: 1; transform: translateY(8px) rotate(3deg); }
  78% { transform: translateY(-4px) rotate(-1deg); }
  100% { transform: none; }
}
@keyframes jm-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) scale(1.04); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes jm-spark { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1.3); } }
@keyframes jm-glow { from { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); } to { box-shadow: 0 0 0 5px rgba(244, 198, 82, 0.7), 0 0 18px rgba(244, 198, 82, 0.8); } }

/* =====================================================================
   3. OPEN THE ROBOT
   ===================================================================== */
.g-open-robot { gap: 14px; }
.g-open-robot .or-stage {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.15fr); gap: 24px; align-items: center;
  padding: 22px 18px; border-radius: 26px;
  background:
    radial-gradient(circle at 28% 45%, rgba(255, 250, 242, 0.95) 0 28%, transparent 62%),
    linear-gradient(160deg, #f7ecd9, #eedfc2);
  box-shadow: inset 0 0 0 3px rgba(29, 40, 73, 0.08), var(--shadow);
}
.g-open-robot .or-robot-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-open-robot .or-robot-cap { margin: 0; font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-soft); text-align: center; }
.g-open-robot .or-robot-wrap { position: relative; width: min(100%, 290px); aspect-ratio: 455 / 560; animation: or-float 3.4s ease-in-out infinite; }
.g-open-robot .or-robot-wrap.wobble { animation: or-wobble 0.7s ease, or-float 3.4s ease-in-out 0.7s infinite; }
.g-open-robot .or-robot {
  width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.18));
}

/* hatches */
.g-open-robot .or-hatch {
  position: absolute; z-index: 2; width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%); perspective: 260px; border-radius: 16px;
}
.g-open-robot .or-hatch-1 { left: 16%; top: 36%; }
.g-open-robot .or-hatch-2 { left: 86%; top: 36%; }
.g-open-robot .or-hatch-3 { left: 36%; top: 87%; }
.g-open-robot .or-hatch-in {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 14px; border: 3px solid #4d5875; background: radial-gradient(circle, #2c3260, #10142e);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.65);
}
.g-open-robot .or-hatch-door {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; border: 3px solid #4d5875;
  font-family: var(--font-title); font-size: 1.5rem; color: var(--navy);
  background:
    radial-gradient(circle at 8px 8px, #6f7a98 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) 8px, #6f7a98 2.5px, transparent 3px),
    radial-gradient(circle at 8px calc(100% - 8px), #6f7a98 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #6f7a98 2.5px, transparent 3px),
    linear-gradient(145deg, #dfe5f0, #9aa6bf);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  transform-origin: left center; transition: transform 0.55s var(--ease-pop);
}
.g-open-robot .or-hatch:hover .or-hatch-door { transform: rotateY(-24deg); }
.g-open-robot .or-hatch.opened .or-hatch-door { transform: rotateY(-72deg); }
.g-open-robot .or-hatch.active .or-hatch-in { box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.65), 0 0 0 4px var(--gold-hi), 0 0 16px rgba(244, 198, 82, 0.8); }
.g-open-robot .or-hatch-x {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); transform: scale(0); transition: transform 0.35s var(--ease-pop);
}
.g-open-robot .or-hatch.busted .or-hatch-x { transform: scale(1); }

/* the chest star — hidden until all three guesses are busted */
.g-open-robot .or-star {
  position: absolute; z-index: 3; left: 55.9%; top: 66.8%; width: max(42px, 14%); aspect-ratio: 1;
  transform: translate(-50%, -50%); padding: 0; border: 0; background: none; border-radius: 50%;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.g-open-robot .or-star-shape {
  display: block; width: 100%; height: 100%;
  background: radial-gradient(circle at 42% 38%, #fff8d6, var(--gold-hi) 45%, var(--gold));
  clip-path: polygon(50% 2%, 61.5% 36%, 97% 36%, 68.5% 57.5%, 79.5% 92%, 50% 71%, 20.5% 92%, 31.5% 57.5%, 3% 36%, 38.5% 36%);
}
.g-open-robot .or-star.ready { opacity: 1; pointer-events: auto; cursor: pointer; animation: or-star-glow 1.3s ease-in-out infinite; }
.g-open-robot .or-star.used { opacity: 1; filter: drop-shadow(0 0 10px rgba(244, 198, 82, 0.9)); }
.g-open-robot .or-star-tag {
  position: absolute; z-index: 3; left: 55.9%; top: 76%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  background: var(--navy); color: var(--gold-hi); font-family: var(--font-title); font-weight: 600; font-size: 0.85rem;
  padding: 3px 10px; border-radius: 999px; opacity: 0; transition: opacity 0.3s;
}
.g-open-robot .or-star-tag.show { opacity: 1; animation: or-tag 1.2s ease-in-out infinite; }

/* the big hatch panel */
.g-open-robot .or-panel { display: grid; place-items: center; min-height: 340px; }
.g-open-robot .or-frame {
  position: relative; width: min(100%, 380px); border-radius: 26px; padding: 10px; background: #2b3156; perspective: 1600px;
  box-shadow: 0 0 0 6px #9aa6bf, 0 0 0 9px #4d5875, var(--shadow);
}
.g-open-robot .or-inside {
  position: relative; min-height: 320px; border-radius: 18px; background: var(--paper); padding: 20px 16px;
  display: grid; place-items: center; overflow: hidden;
}
.g-open-robot .or-door {
  position: absolute; inset: 0; z-index: 2; border-radius: 26px; border: 4px solid #4d5875;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(77, 88, 117, 0.18) 46px 48px),
    linear-gradient(145deg, #e3e8f2, #9aa6bf);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 0 rgba(0, 0, 0, 0.08);
  transform-origin: left center; transition: transform 0.75s cubic-bezier(0.45, 1.45, 0.55, 1);
}
.g-open-robot .or-frame.open .or-door { transform: rotateY(-84deg); pointer-events: none; }
.g-open-robot .or-rivet { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3f5fa, #6f7a98); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.g-open-robot .or-rivet.r1 { top: 14px; left: 14px; }
.g-open-robot .or-rivet.r2 { top: 14px; right: 14px; }
.g-open-robot .or-rivet.r3 { bottom: 14px; left: 14px; }
.g-open-robot .or-rivet.r4 { bottom: 14px; right: 14px; }
.g-open-robot .or-door-big {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 700; font-size: 3.2rem; color: var(--navy);
  background: var(--sticky); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); animation: or-float 2.6s ease-in-out infinite;
}
.g-open-robot .or-door-text { font-family: var(--font-hand); font-size: 1.5rem; color: var(--navy); }
.g-open-robot .or-door-handle {
  position: absolute; right: 18px; top: 50%; width: 14px; height: 64px; transform: translateY(-50%); border-radius: 8px;
  background: linear-gradient(90deg, #6f7a98, #c9d2e3); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.g-open-robot .or-guess { position: relative; width: 100%; display: grid; justify-items: center; gap: 8px; text-align: center; }
.g-open-robot .or-guess-num { font-family: var(--font-title); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.g-open-robot .or-guess-emoji { font-size: 4.2rem; line-height: 1; animation: or-float 2.6s ease-in-out infinite; }
.g-open-robot .or-guess-q { margin: 0; font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.g-open-robot .or-answers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; transition: opacity 0.3s; }
.g-open-robot .or-answers.done { opacity: 0.45; }
.g-open-robot .or-explain { margin: 0; min-height: 1.5em; font-size: 1rem; line-height: 1.4; }
.g-open-robot .or-explain.good { color: var(--grass); font-weight: 700; }
.g-open-robot .or-explain.oops { color: var(--ink); }
.g-open-robot .or-stamp {
  position: absolute; left: 50%; top: 30%; max-width: 94%; padding: 4px 14px; pointer-events: none;
  font-family: var(--font-title); font-weight: 700; font-size: clamp(1.3rem, 5cqi, 2.1rem); line-height: 1.05;
  letter-spacing: 0.04em; text-align: center; color: var(--red); border: 5px solid var(--red); border-radius: 12px;
  background: rgba(255, 250, 242, 0.55); opacity: 0; transform: translate(-50%, -50%) rotate(-14deg);
}
.g-open-robot .or-guess.busted .or-stamp { animation: or-stamp 0.5s var(--ease-pop) forwards; }
.g-open-robot .or-guess.already .or-stamp { animation: none; opacity: 0.92; }

/* the phone */
.g-open-robot .or-phone-wrap { display: grid; justify-items: center; gap: 10px; width: 100%; animation: or-phone-in 0.6s var(--ease-pop); }
.g-open-robot .or-phone {
  position: relative; width: min(100%, 290px); padding: 14px 12px 12px; border-radius: 40px; background: var(--navy);
  box-shadow: 0 0 0 3px #3a4570, var(--shadow);
}
.g-open-robot .or-phone-notch { width: 34%; height: 18px; margin: -14px auto 6px; border-radius: 0 0 14px 14px; background: #0f1530; }
.g-open-robot .or-phone-screen {
  display: grid; gap: 8px; grid-template-rows: auto 1fr auto auto auto; min-height: 380px; padding: 10px;
  border-radius: 28px; background: linear-gradient(#f4f8ff, #e7edf9);
}
.g-open-robot .or-chat-head {
  display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #d6deef;
  font-family: var(--font-title); font-size: 0.85rem; color: var(--ink-soft);
}
.g-open-robot .or-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sticky); }
.g-open-robot .or-chat { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; min-height: 70px; }
.g-open-robot .or-sent {
  max-width: 92%; padding: 8px 12px; border-radius: 18px 18px 4px 18px; background: #4a8df0; color: #fff;
  font-size: 0.95rem; line-height: 1.35; animation: or-send 0.55s var(--ease-pop);
}
.g-open-robot .or-compose { display: flex; align-items: center; gap: 6px; }
.g-open-robot .or-msgbox {
  flex: 1; min-height: 2.8em; padding: 8px 12px; border-radius: 18px; border: 2px solid #cfd8ea; background: #fff;
  font-size: 1rem; line-height: 1.35; color: var(--ink);
}
.g-open-robot .or-msgbox.empty::before { content: 'Message'; color: #9aa3bd; }
.g-open-robot .or-blank { color: #9aa3bd; letter-spacing: 0.1em; }
.g-open-robot .or-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: #4a8df0; animation: or-blink 1s steps(1) infinite; }
.g-open-robot .or-send { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #4a8df0; color: #fff; font-size: 0.85rem; }
.g-open-robot .or-suggest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; min-height: 48px; padding: 4px; border-radius: 10px; background: #d9e0ee; }
.g-open-robot .or-chip {
  border: 0; border-radius: 8px; padding: 10px 4px; cursor: pointer; background: #fff; color: var(--navy);
  font-family: var(--font-read); font-weight: 700; font-size: 1rem; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, background 0.2s; animation: pop-in 0.4s var(--ease-pop) both;
}
.g-open-robot .or-chip:hover { background: var(--sticky); transform: translateY(-2px); }
.g-open-robot .or-chip.picked { background: var(--gold-hi); }
.g-open-robot .or-chip:disabled { cursor: default; color: var(--navy); }
.g-open-robot .or-chip:disabled:not(.picked) { opacity: 0.45; }
.g-open-robot .or-keys { display: grid; gap: 4px; padding-top: 2px; }
.g-open-robot .or-key-row { display: flex; justify-content: center; gap: 3px; }
.g-open-robot .or-key {
  flex: 0 1 24px; height: 26px; display: grid; place-items: center; border-radius: 5px; background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); font-size: 0.72rem; color: var(--ink-soft);
}
.g-open-robot .or-phone-home { width: 36%; height: 5px; margin: 10px auto 0; border-radius: 3px; background: #6b7699; }
.g-open-robot .or-phone-note { margin: 0; text-align: center; font-family: var(--font-hand); font-size: 1.25rem; color: var(--navy); }

.g-open-robot .or-end h3 { margin: 0; }
.g-open-robot .or-mantra {
  background: var(--sticky); font-family: var(--font-hand); font-size: 1.3rem; color: var(--navy);
  padding: 10px 16px; transform: rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@container (max-width: 600px) {
  .g-open-robot .or-stage { grid-template-columns: 1fr; gap: 18px; }
  .g-open-robot .or-robot-wrap { width: min(78%, 260px); }
  .g-open-robot .or-panel { min-height: 0; }
  .g-open-robot .or-inside { min-height: 280px; }
}

@keyframes or-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes or-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 45% { transform: rotate(5deg); } 70% { transform: rotate(-3deg); } }
@keyframes or-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-32deg) scale(2.4); }
  60% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(0.92); }
  100% { opacity: 0.92; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
@keyframes or-star-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 4px rgba(244, 198, 82, 0.8)); }
  50% { transform: translate(-50%, -50%) scale(1.28) rotate(10deg); filter: drop-shadow(0 0 14px rgba(244, 198, 82, 1)) drop-shadow(0 0 28px rgba(255, 240, 180, 0.85)); }
}
@keyframes or-tag { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@keyframes or-blink { 50% { opacity: 0; } }
@keyframes or-phone-in { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes or-send { from { opacity: 0; transform: translate(0, 46px) scale(0.6); } to { opacity: 1; transform: none; } }

/* =====================================================================
   4. DREAM TEAM
   ===================================================================== */
.g-dream-team { gap: 14px; }
.g-dream-team .dt-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.g-dream-team .dt-step {
  font-family: var(--font-title); font-weight: 600; font-size: 0.92rem; padding: 6px 14px; border-radius: 999px;
  background: #efe4d0; color: var(--ink-soft); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-pop);
}
.g-dream-team .dt-step.on { background: var(--navy); color: var(--cream); transform: scale(1.05); }
.g-dream-team .dt-step.done { background: #d9eab5; color: var(--grass); }
.g-dream-team .dt-step-arrow { color: var(--gold); }
.g-dream-team .dt-part {
  display: grid; gap: 12px; padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, #fffaf2, #f7ecd9); box-shadow: inset 0 0 0 3px rgba(29, 40, 73, 0.08), var(--shadow);
}
.g-dream-team .dt-part.dt-enter { animation: rise-in 0.5s var(--ease-pop); }
.g-dream-team .dt-title { margin: 0; text-align: center; font-size: 1.5rem; }
.g-dream-team .dt-intro { margin: 0; text-align: center; font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.3; color: var(--ink-soft); }
.g-dream-team .dt-feedback { text-align: center; min-height: 2.8em; }
.g-dream-team .dt-next { justify-self: center; }

.g-dream-team .dt-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(40px, 11cqi, 96px); }
.g-dream-team .dt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.g-dream-team .dt-line { fill: none; stroke-width: 4; stroke-linecap: round; }
.g-dream-team .dt-line-glow { fill: none; stroke-width: 13; stroke-linecap: round; opacity: 0.22; }
.g-dream-team .dt-dot { stroke: #fff; stroke-width: 2.5; }
.g-dream-team .dt-preview { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 9; opacity: 0.85; }
.g-dream-team .dt-col { position: relative; z-index: 2; display: grid; gap: 8px; align-content: start; }
.g-dream-team .dt-col-title { margin: 0 0 2px; text-align: center; font-family: var(--font-title); font-size: 1rem; color: var(--navy); }
.g-dream-team .dt-card {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
  border: 3px solid transparent; border-radius: 16px; background: #fff; color: var(--ink); font: inherit;
  box-shadow: 0 4px 0 rgba(29, 40, 73, 0.12); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform 0.2s var(--ease-pop), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.g-dream-team .dt-card:hover { transform: translateY(-2px); }
.g-dream-team .dt-job { background: var(--sticky); font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.15; }
.g-dream-team .dt-emoji { flex: none; width: 1.6em; text-align: center; font-size: 1.7rem; line-height: 1; }
.g-dream-team .dt-card-text { flex: 1; }
.g-dream-team .dt-card-body { display: grid; gap: 2px; }
.g-dream-team .dt-model-name { font-family: var(--font-title); font-weight: 600; font-size: 1rem; line-height: 1.15; color: var(--navy); }
.g-dream-team .dt-power { font-size: 0.88rem; line-height: 1.3; color: var(--ink-soft); }
.g-dream-team .dt-tag { margin-left: auto; font-size: 1.3rem; line-height: 1; }
.g-dream-team .dt-card.selected { border-color: var(--navy); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 0 rgba(29, 40, 73, 0.18); }
.g-dream-team .dt-board.want-model .dt-model:not(.matched, .wiggle, .drop-target),
.g-dream-team .dt-board.want-job .dt-job:not(.matched, .selected, .wiggle) { animation: dt-invite 1.5s ease-in-out infinite; }
.g-dream-team .dt-card.drop-target { border-color: var(--gold); transform: scale(1.04); animation: none; }
.g-dream-team .dt-card.matched {
  border-color: var(--pc); cursor: default; animation: none;
  background: #fff; background: color-mix(in srgb, var(--pc) 16%, #fff);
  box-shadow: 0 4px 0 rgba(29, 40, 73, 0.1);
}
.g-dream-team .dt-card.matched:hover { transform: none; }
.g-dream-team .dt-card.matched.pop { animation: dt-match 0.55s var(--ease-pop); }
.g-dream-team .dt-card.wiggle { animation: dt-wiggle 0.5s ease; }
.g-dream-team .dt-spark {
  position: absolute; z-index: 3; pointer-events: none; font-size: 1.1rem; line-height: 1;
  transform: translate(-50%, -50%); animation: dt-spark 0.8s ease-out forwards;
}

.g-dream-team .dt-track { position: relative; padding: 14px 4px 70px; }
.g-dream-team .dt-slots { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.g-dream-team .dt-slots::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px;
  background: repeating-linear-gradient(90deg, #d9c9a8 0 12px, transparent 12px 20px);
}
.g-dream-team .dt-slot {
  position: relative; width: 100%; max-width: 104px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center;
  border-radius: 50%; border: 3px dashed #cdb98f; background: rgba(255, 255, 255, 0.7);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.g-dream-team .dt-slot-num {
  position: absolute; top: -10px; left: 50%; z-index: 2; width: 22px; height: 22px; transform: translateX(-50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--cream);
  font-family: var(--font-title); font-size: 0.75rem;
}
.g-dream-team .dt-slot.filled { border-style: solid; border-color: var(--navy); background: #fff; }
.g-dream-team .dt-slot.lit { border-color: var(--gold-hi); background: #fff8dc; box-shadow: 0 0 0 4px rgba(244, 198, 82, 0.45), 0 0 22px rgba(244, 198, 82, 0.85); }
.g-dream-team .dt-slot.answered::after {
  content: '✨ Answer!'; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: var(--gold-hi); color: var(--navy);
  font-family: var(--font-title); font-weight: 600; font-size: 0.8rem; animation: pop-in 0.5s var(--ease-pop);
}
.g-dream-team .dt-return { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--font-hand); font-size: 1.05rem; color: #b3a487; }
.g-dream-team .dt-baton {
  position: absolute; left: 0; top: 0; z-index: 5; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff8d6, var(--gold-hi) 50%, var(--gold));
  box-shadow: 0 0 0 4px rgba(244, 198, 82, 0.35), 0 0 26px 8px rgba(244, 198, 82, 0.85);
}
.g-dream-team .dt-baton.answer::after { content: '✨'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.9rem; }
.g-dream-team .dt-bench { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 70px; }
.g-dream-team .dt-token {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 86px; padding: 8px 12px;
  border: 3px solid var(--navy); border-radius: 18px; background: #fff; color: var(--navy); cursor: pointer;
  font-family: var(--font-title); font-weight: 600; box-shadow: 0 5px 0 rgba(29, 40, 73, 0.18);
  transition: transform 0.2s var(--ease-pop); animation: pop-in 0.4s var(--ease-pop) both;
}
.g-dream-team .dt-token:hover { transform: translateY(-3px) rotate(-2deg); }
.g-dream-team .dt-token.wiggle { animation: dt-wiggle 0.5s ease; }
.g-dream-team .dt-token-emoji { font-size: 1.7rem; line-height: 1.1; }
.g-dream-team .dt-token-name { font-size: 0.88rem; line-height: 1.1; }
.g-dream-team .dt-slot .dt-token { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: default; animation: none; }
.g-dream-team .dt-slot .dt-token[disabled] { opacity: 1; color: var(--navy); }
.g-dream-team .dt-slot .dt-token:hover { transform: none; }

.g-dream-team .dt-end-emoji { font-size: 3.6rem; line-height: 1; animation: hop 0.9s var(--ease-pop) 2; }
.g-dream-team .dt-end h3 { margin: 0; }
.g-dream-team .dt-big { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--gold); }
.g-dream-team .dt-mantra {
  background: var(--sticky); font-family: var(--font-hand); font-size: 1.3rem; color: var(--navy);
  padding: 10px 16px; transform: rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@container (min-width: 561px) {
  /* side-by-side columns: dragging a job across is easy, so let touch drags reach us */
  .g-dream-team .dt-job { touch-action: none; }
}
@container (max-width: 560px) {
  .g-dream-team .dt-board { grid-template-columns: 1fr; padding-right: 30px; }
  .g-dream-team .dt-part { padding: 14px 12px; }
  .g-dream-team .dt-slot .dt-token-name { font-size: 0.66rem; }
  .g-dream-team .dt-slot .dt-token-emoji { font-size: 1.25rem; }
  .g-dream-team .dt-token { min-width: 76px; padding: 6px 10px; }
}

@keyframes dt-invite { 0%, 100% { box-shadow: 0 4px 0 rgba(29, 40, 73, 0.12); } 50% { box-shadow: 0 4px 0 rgba(29, 40, 73, 0.12), 0 0 0 4px rgba(244, 198, 82, 0.5); } }
@keyframes dt-wiggle { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-2deg); } 40% { transform: translateX(7px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
@keyframes dt-match { 0% { transform: scale(1); } 40% { transform: scale(1.07) rotate(-1deg); } 100% { transform: scale(1); } }
@keyframes dt-spark {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(90deg); }
}

/* =====================================================================
   5. SPOT THE WELL
   ===================================================================== */
.g-spot-well { gap: 10px; }
.g-spot-well .sw-hud {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; border-radius: 18px;
  background: var(--cosmic); color: var(--cream); box-shadow: var(--shadow);
}
.g-spot-well .sw-score { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.g-spot-well .sw-score b { display: inline-block; color: var(--gold-hi); font-size: 1.3rem; }
.g-spot-well .sw-score.bump b { animation: pop-in 0.4s var(--ease-pop); }
.g-spot-well .sw-score.goal { color: var(--gold-hi); }
.g-spot-well .sw-score.goal::after { content: ' 🏆'; }
.g-spot-well .sw-timewrap { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; font-family: var(--font-title); }
.g-spot-well .sw-time { flex: 1; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.g-spot-well .sw-time-fill {
  width: 100%; height: 100%; border-radius: 999px; transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 12px rgba(244, 198, 82, 0.7);
}
.g-spot-well .sw-timewrap.low .sw-time-fill { background: linear-gradient(90deg, #e2563f, #ff8a6a); animation: sw-blink 0.8s ease-in-out infinite; }
.g-spot-well .sw-time-num { min-width: 2ch; text-align: right; }
.g-spot-well .sw-slow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--cream); font-family: var(--font-title); font-weight: 500; font-size: 0.88rem;
}
.g-spot-well .sw-slow-knob { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); transition: background 0.2s; }
.g-spot-well .sw-slow-knob::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform 0.25s var(--ease-pop);
}
.g-spot-well .sw-slow.on .sw-slow-knob { background: var(--leaf); }
.g-spot-well .sw-slow.on .sw-slow-knob::after { transform: translateX(14px); }

.g-spot-well .sw-stage { background: var(--cosmic-deep); }
.g-spot-well .sw-canvas { cursor: pointer; }
.g-spot-well .sw-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px; overflow-y: auto;
  background: rgba(18, 24, 56, 0.42);
}
.g-spot-well .sw-card {
  margin: auto; width: 100%; max-width: 470px; display: grid; gap: 10px; padding: 18px 20px; text-align: center;
  border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: pop-in 0.45s var(--ease-pop);
}
.g-spot-well .sw-card h3 { margin: 0; font-size: 1.6rem; }
.g-spot-well .sw-card p { margin: 0; }
.g-spot-well .sw-examples { display: grid; gap: 8px; }
.g-spot-well .sw-ex { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.g-spot-well .sw-pill {
  padding: 2px 12px; border-radius: 999px; border: 2px solid rgba(29, 40, 73, 0.15); background: #fffaf2;
  font-family: var(--font-hand); font-size: 1.15rem; color: var(--navy); box-shadow: 0 0 12px rgba(130, 240, 242, 0.7);
}
.g-spot-well .sw-ex-do { font-size: 0.95rem; }
.g-spot-well .sw-small { font-size: 0.9rem; color: var(--ink-soft); }
.g-spot-well .sw-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.g-spot-well .sw-card .sw-slow { background: #efe4d0; color: var(--navy); }
.g-spot-well .sw-card .sw-slow-knob { background: #cbbb9c; }
.g-spot-well .sw-card .sw-slow.on .sw-slow-knob { background: var(--leaf); }
.g-spot-well .sw-end-score { font-family: var(--font-title); font-size: 1.2rem; color: var(--navy); }
.g-spot-well .sw-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.g-spot-well .sw-list { padding: 8px 12px; border-radius: 14px; font-size: 0.9rem; line-height: 1.35; }
.g-spot-well .sw-list b { font-family: var(--font-title); font-weight: 600; color: var(--navy); }
.g-spot-well .sw-list ul { margin: 4px 0 0; padding-left: 1.1em; }
.g-spot-well .sw-list-stuck { background: #e6e0f7; }
.g-spot-well .sw-list-fresh { background: #fdf0c8; }
.g-spot-well .sw-mantra { font-family: var(--font-hand); font-size: 1.3rem; color: var(--navy); }

@container (max-width: 480px) {
  .g-spot-well .sw-lists { grid-template-columns: 1fr; }
  .g-spot-well .sw-key { display: none; }
  .g-spot-well .sw-card { padding: 14px; }
  .g-spot-well .sw-card h3 { font-size: 1.35rem; }
}

@keyframes sw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
