:root {
  --turbo-ink: #231826;
  --turbo-muted: #5d5062;
  --turbo-gold: #ffc83d;
  --turbo-cyan: #37e6ff;
  --turbo-pink: #ff58bd;
  --turbo-card: #ffffff;
  --turbo-shadow: 0 18px 44px rgba(35, 24, 38, 0.18);
}

* {
  box-sizing: border-box;
}

body.hamster-turbo-page,
body.hamster-turbo-embed {
  margin: 0;
  color: var(--turbo-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(55, 230, 255, 0.35), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(255, 88, 189, 0.28), transparent 28%),
    linear-gradient(140deg, rgba(226, 216, 255, 0.6), rgba(255, 224, 243, 0.5)),
    #f7fbff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.hamster-turbo-embed {
  background: transparent;
}

a {
  color: inherit;
}

.turbo-page-main,
.turbo-site-header,
.turbo-site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.turbo-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 10px;
  flex-wrap: wrap;
}

.turbo-brand,
.turbo-nav a,
.turbo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.turbo-brand {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--turbo-ink);
  box-shadow: 0 4px 0 rgba(35, 24, 38, 0.24);
}

.turbo-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.turbo-nav a {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(35, 24, 38, 0.1);
  font-size: 0.92rem;
}

.turbo-page-hero {
  display: grid;
  gap: 16px;
  padding: 16px 0 10px;
}

.turbo-kicker {
  margin: 0 0 8px;
  color: #0f7f9e;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turbo-page-hero h1,
.turbo-content-section h2 {
  margin: 0;
  line-height: 1.05;
}

.turbo-page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 9vw, 4.2rem);
}

.turbo-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--turbo-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.turbo-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.turbo-button {
  padding: 11px 20px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.turbo-button.primary {
  color: #3a2410;
  background: linear-gradient(180deg, #ffd76a, var(--turbo-gold));
  box-shadow: 0 5px 0 #d9a41e;
}

.turbo-button.secondary {
  color: var(--turbo-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(35, 24, 38, 0.16);
}

.turbo-button.dark {
  color: #ffffff;
  background: var(--turbo-ink);
  box-shadow: 0 5px 0 rgba(35, 24, 38, 0.35);
}

.turbo-button.is-disabled {
  opacity: 0.55;
  pointer-events: auto;
  cursor: progress;
}

.turbo-game-shell {
  padding: 10px 0 18px;
}

.turbo-game {
  position: relative;
  border-radius: 26px;
  background: var(--turbo-card);
  box-shadow: var(--turbo-shadow);
  overflow: hidden;
}

.turbo-topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #f2fbff, #fdf0fa);
  border-bottom: 1px solid rgba(35, 24, 38, 0.08);
}

.turbo-stat {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.turbo-stat span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--turbo-muted);
}

.turbo-stat strong {
  font-size: 1.25rem;
}

.turbo-stage {
  position: relative;
  height: min(72vh, 620px);
  min-height: 420px;
  touch-action: none;
  overflow: hidden;
  background: #241056;
}

.turbo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.turbo-bubble-line {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(28, 15, 62, 0.72);
  border: 1px solid rgba(122, 242, 255, 0.5);
  color: #eafcff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), 0 0 16px rgba(122, 242, 255, 0.32);
  backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
}

.turbo-player {
  position: absolute;
  z-index: 3;
  width: clamp(120px, 26vw, 178px);
  height: clamp(120px, 26vw, 178px);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.05) 44%),
    radial-gradient(circle at 72% 80%, rgba(122, 242, 255, 0.4), rgba(122, 242, 255, 0) 62%),
    radial-gradient(circle at 50% 55%, rgba(255, 140, 220, 0.16), rgba(255, 140, 220, 0) 70%),
    rgba(190, 235, 255, 0.18);
  border: 2px solid rgba(220, 248, 255, 0.85);
  box-shadow:
    0 0 26px rgba(55, 230, 255, 0.55),
    0 0 46px rgba(255, 110, 205, 0.3),
    inset 0 -8px 18px rgba(55, 100, 255, 0.28),
    inset 0 6px 14px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.turbo-player img {
  width: 78%;
  height: auto;
  display: block;
}

.turbo-player.is-hit {
  animation: turbo-hit-flash 0.16s linear 4;
}

.turbo-player.is-turbo {
  box-shadow:
    0 0 34px rgba(122, 242, 255, 0.95),
    0 0 12px rgba(255, 214, 102, 0.8),
    inset 0 -8px 18px rgba(55, 100, 255, 0.25);
}

@keyframes turbo-hit-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.turbo-avatar-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(20, 10, 44, 0.6);
  border: 1px solid rgba(122, 242, 255, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 14px rgba(122, 242, 255, 0.25);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.is-playing .turbo-avatar-chip {
  display: flex;
}

.turbo-avatar-face {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #3a1a68;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(122, 242, 255, 0.5);
}

.turbo-energy {
  width: 74px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.turbo-energy-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7af2ff, #a8ffcf);
  transition: width 0.25s ease;
}

.turbo-screen {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(21, 12, 51, 0.55);
  backdrop-filter: blur(3px);
  overflow: auto;
}

.turbo-screen.is-visible {
  display: flex;
}

.turbo-panel {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: var(--turbo-card);
  box-shadow: var(--turbo-shadow);
  text-align: center;
}

.turbo-panel h1,
.turbo-panel h2 {
  margin: 4px 0 8px;
  line-height: 1.1;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
}

.turbo-panel h3 {
  margin: 4px 0 8px;
  line-height: 1.25;
}

.turbo-subtitle {
  margin: 0 0 8px;
  font-weight: 800;
  color: #0f7f9e;
}

.turbo-start-visual {
  position: relative;
  width: 205px;
  margin: 6px auto 10px;
}

.turbo-start-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.turbo-preview-token {
  position: absolute;
  font-size: 1.5rem;
}

.turbo-preview-token.good {
  top: -4px;
  right: -26px;
}

.turbo-preview-token.bad {
  bottom: 2px;
  left: -28px;
}

.turbo-rules {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.turbo-rules li {
  padding: 8px 10px;
  border-radius: 12px;
  background: #eef8fb;
}

.turbo-circuit-selector {
  margin: 10px 0 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(122, 242, 255, 0.2), rgba(255, 88, 189, 0.16));
  border: 1px solid rgba(35, 24, 38, 0.1);
}

.turbo-circuit-selector h3 {
  margin: 0 0 7px;
  color: #0f7f9e;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turbo-circuit-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.turbo-circuit-option {
  min-height: 60px;
  padding: 8px;
  border: 2px solid rgba(35, 24, 38, 0.12);
  border-radius: 13px;
  color: var(--turbo-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 0 rgba(35, 24, 38, 0.1);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.turbo-circuit-option strong,
.turbo-circuit-option span {
  display: block;
}

.turbo-circuit-option strong {
  font-size: 0.82rem;
  line-height: 1.08;
}

.turbo-circuit-option span {
  margin-top: 4px;
  color: var(--turbo-muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.12;
}

.turbo-circuit-option:hover,
.turbo-circuit-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(55, 230, 255, 0.76);
  outline: none;
}

.turbo-circuit-option.is-selected {
  border-color: var(--turbo-cyan);
  background: linear-gradient(180deg, #ffffff, #eafcff);
  box-shadow: 0 5px 0 rgba(15, 127, 158, 0.28), 0 0 18px rgba(55, 230, 255, 0.36);
}

.turbo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.turbo-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.turbo-result-card {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: #eef8fb;
}

.turbo-result-card span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--turbo-muted);
}

.turbo-result-card strong {
  font-size: 1.5rem;
}

.turbo-quote {
  margin: 10px 0;
  font-style: italic;
  color: var(--turbo-muted);
}

.turbo-reward-panel {
  display: none;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(140deg, #fff7e0, #e8fbff);
  border: 2px solid rgba(255, 200, 61, 0.65);
}

.turbo-reward-panel.is-visible {
  display: block;
}

.turbo-reward-panel.turbo-reward-locked {
  background: #f4f2f7;
  border-color: rgba(35, 24, 38, 0.14);
}

.turbo-reward-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0f7f9e;
}

.turbo-reward-status {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--turbo-muted);
}

.turbo-content-section {
  padding: 18px 0;
}

.turbo-content-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.turbo-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 1.02rem;
}

.turbo-link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.turbo-site-footer {
  padding: 18px 0 26px;
  color: var(--turbo-muted);
}

@media (max-width: 560px) {
  .turbo-stage {
    height: min(66vh, 540px);
  }

  .turbo-topbar {
    padding: 10px 10px;
  }

  .turbo-stat strong {
    font-size: 1.05rem;
  }
}

/* Visual boost: bigger playable hamster and richer neon track. */
.turbo-stage {
  background:
    radial-gradient(circle at 50% 18%, rgba(122, 242, 255, 0.26), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(255, 107, 213, 0.22), transparent 30%),
    linear-gradient(180deg, #100726, #211070 46%, #080817);
}

.turbo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(105deg, transparent 0 30px, rgba(122, 242, 255, 0.12) 31px 34px, transparent 35px 72px),
    radial-gradient(circle at 50% 80%, rgba(255, 214, 102, 0.18), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.74;
}

.turbo-player {
  z-index: 5;
  width: clamp(142px, 28vw, 218px);
  height: clamp(142px, 28vw, 218px);
  box-shadow:
    0 0 34px rgba(55, 230, 255, 0.72),
    0 0 58px rgba(255, 110, 205, 0.42),
    inset 0 -10px 22px rgba(55, 100, 255, 0.28),
    inset 0 8px 16px rgba(255, 255, 255, 0.42);
}

.turbo-player img {
  width: 86%;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.28)) saturate(1.1);
  transform: scale(1.18);
  transform-origin: center bottom;
}

.turbo-player.is-turbo {
  box-shadow:
    0 0 44px rgba(122, 242, 255, 1),
    0 0 70px rgba(255, 214, 102, 0.62),
    inset 0 -8px 18px rgba(55, 100, 255, 0.25);
}

.turbo-player.is-jumping {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 42px rgba(168, 255, 53, 0.86),
    0 0 62px rgba(122, 242, 255, 0.56),
    inset 0 -10px 22px rgba(55, 100, 255, 0.25);
}

[data-turbo-start-screen] {
  align-items: center;
}

[data-turbo-start-screen] .turbo-panel {
  width: min(640px, 100%);
  padding: 16px;
}

[data-turbo-start-screen] .turbo-kicker {
  margin-bottom: 4px;
}

[data-turbo-start-screen] .turbo-panel p {
  margin-top: 6px;
  margin-bottom: 6px;
}

[data-turbo-start-screen] .turbo-panel h1,
[data-turbo-start-screen] .turbo-panel h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.45rem, 4.4vw, 2rem);
}

.turbo-start-visual {
  width: min(150px, 34vw);
  margin: 2px auto 6px;
}

.turbo-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0;
  font-size: 0.88rem;
}

.turbo-rules li {
  padding: 7px 8px;
}

.turbo-rules li:last-child {
  grid-column: 1 / -1;
}

.turbo-actions {
  margin-top: 10px;
}

.turbo-preview-token {
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #171023;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.turbo-preview-token.good {
  top: 4px;
  right: -28px;
  background: linear-gradient(180deg, #fff6ba, #ffd95f);
}

.turbo-preview-token.ramp {
  left: -38px;
  bottom: 18px;
  background: linear-gradient(180deg, #eaff9a, #8dff14);
  transform: rotate(-10deg);
}

.turbo-preview-token.bad {
  bottom: -2px;
  right: -22px;
  left: auto;
  background: linear-gradient(180deg, #ffd9e8, #ff5b89);
  color: #ffffff;
}

@media (max-width: 560px) {
  .turbo-player {
    width: clamp(116px, 32vw, 158px);
    height: clamp(116px, 32vw, 158px);
  }

  .turbo-stage {
    min-height: 390px;
  }

  .turbo-screen {
    padding: 10px;
  }

  [data-turbo-start-screen] .turbo-panel {
    padding: 13px;
  }

  .turbo-start-visual {
    width: min(128px, 32vw);
  }

  .turbo-rules {
    gap: 6px;
    font-size: 0.82rem;
  }

  .turbo-rules li {
    padding: 6px;
  }

  .turbo-circuit-selector {
    margin: 7px 0;
    padding: 8px;
  }

  .turbo-circuit-options {
    gap: 5px;
  }

  .turbo-circuit-option {
    min-height: 46px;
    padding: 7px 5px;
    text-align: center;
  }

  .turbo-circuit-option strong {
    font-size: 0.72rem;
  }

  .turbo-circuit-option span {
    display: none;
  }
}
