:root {
  color-scheme: light;
  --sky-top: #d7caa9;
  --sky-low: #e7d4a9;
  --ink: #24211d;
  --muted: #675f55;
  --line: rgba(40, 34, 27, 0.15);
  --surface: rgba(255, 250, 239, 0.68);
  --stone-a: #c8c0aa;
  --stone-b: #d1c9b9;
  --stone-c: #aaa38f;
  --stone-d: #777668;
  --stone-e: #c3b28e;
  --button: #31584d;
  --button-hover: #244239;
  --cream: #fff8ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 16%, rgba(250, 229, 176, 0.22), transparent 34%),
    linear-gradient(180deg, #29291d, #171913 58%, #201d15);
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 38px);
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  position: absolute;
  inset: 76px 0 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.app-shell::before {
  background:
    linear-gradient(90deg, rgba(20, 22, 14, 0.26), transparent 16%, transparent 84%, rgba(20, 22, 14, 0.22)),
    radial-gradient(ellipse at 50% 7%, rgba(255, 246, 220, 0.18), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 232, 174, 0.12), transparent 52%);
}

.app-shell::after {
  inset: auto 0 0;
  height: 24svh;
  background: linear-gradient(180deg, transparent, rgba(37, 29, 18, 0.12));
}

.top-bar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  margin: 0 calc(clamp(16px, 4vw, 38px) * -1);
  padding: 10px clamp(16px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(14, 17, 11, 0.86), rgba(45, 43, 29, 0.68), rgba(14, 17, 11, 0.82));
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 248, 234, 0.12);
  box-shadow: 0 12px 34px rgba(15, 24, 25, 0.12);
  backdrop-filter: blur(18px) saturate(1.08);
}

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

.brand-lockup div {
  display: grid;
  gap: 1px;
}

.top-bar .brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 234, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 246, 215, 0.2), transparent 38%),
    rgba(255, 248, 234, 0.06);
  color: rgba(255, 248, 234, 0.86);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    0 8px 18px rgba(9, 10, 7, 0.18);
}

.top-bar strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.32rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-bar span {
  color: rgba(255, 248, 234, 0.66);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-bar nav {
  display: flex;
  gap: 8px;
}

.top-bar button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 248, 234, 0.62);
  border-radius: 50%;
  background: rgba(255, 248, 234, 0.07);
  color: var(--cream);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    0 8px 18px rgba(10, 10, 6, 0.12);
  transition: transform 160ms ease, background 160ms ease;
}

.top-bar button:hover {
  background: rgba(255, 248, 234, 0.12);
  transform: translateY(-1px);
}

.scenic-background,
.scenic-background > * {
  position: absolute;
  pointer-events: none;
}

.scenic-background {
  inset: 70px 0 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.02), rgba(255, 245, 214, 0.02)),
    url("./quote-stack-beach-scene.png") center center / cover no-repeat;
}

.scene-mountain .scenic-background {
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.02), rgba(255, 245, 214, 0.02)),
    url("./quote-stack-original-scene.png") center calc(100% - 100px) / cover no-repeat;
}

.scene-moon .scenic-background {
  background:
    radial-gradient(circle at 66% 20%, rgba(231, 226, 199, 0.62), transparent 7%),
    radial-gradient(ellipse at 48% 60%, rgba(127, 156, 150, 0.34), transparent 32%),
    linear-gradient(180deg, #283644, #586b67 48%, #b9a783 100%);
}

.scenic-background::before,
.scenic-background::after {
  position: absolute;
  inset: 0;
  content: "";
}

.scenic-background::before {
  background:
    radial-gradient(circle at 62% 29%, rgba(255, 241, 194, 0.1), transparent 22%);
}

.scenic-background::after {
  background:
    linear-gradient(90deg, rgba(9, 11, 7, 0.22), transparent 23%, transparent 79%, rgba(9, 11, 7, 0.18));
}

.sun-glow {
  display: none;
}

.cloud,
.ridge,
.lake,
.shore {
  display: none;
}

/*
  The scenic elements above remain in the markup for future generated scenes.
  The supplied reference image carries the V0.1 visual direction.
*/

.sun-glow {
  right: 10%;
  top: 7%;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 191, 0.66), rgba(255, 238, 190, 0.18) 42%, transparent 68%);
  filter: blur(4px);
}

.cloud {
  width: 210px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.52);
  box-shadow:
    42px -14px 0 rgba(255, 251, 240, 0.36),
    88px 3px 0 rgba(255, 251, 240, 0.28);
}

.cloud-one {
  left: 8%;
  top: 10%;
}

.cloud-two {
  right: 19%;
  top: 23%;
  transform: scale(0.72);
  opacity: 0.68;
}

.ridge {
  right: -8%;
  left: -8%;
  clip-path: polygon(0 62%, 11% 48%, 21% 55%, 33% 30%, 48% 51%, 61% 24%, 75% 50%, 87% 36%, 100% 58%, 100% 100%, 0 100%);
}

.ridge-back {
  bottom: 34%;
  height: 34%;
  background: linear-gradient(180deg, rgba(89, 119, 115, 0.3), rgba(89, 119, 115, 0.08));
}

.ridge-mid {
  bottom: 25%;
  height: 31%;
  background: linear-gradient(180deg, rgba(67, 99, 88, 0.48), rgba(103, 124, 95, 0.24));
  filter: drop-shadow(0 -14px 20px rgba(255, 248, 234, 0.12));
}

.lake {
  right: -4%;
  bottom: 9%;
  left: -4%;
  height: 38%;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background:
    linear-gradient(180deg, rgba(180, 207, 205, 0.78), rgba(112, 151, 145, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 28px 70px rgba(255, 248, 234, 0.26);
}

.shore {
  bottom: -6%;
  width: 54%;
  height: 26%;
  border-radius: 58% 42% 0 0;
  background: linear-gradient(180deg, #b7a889, #85745a);
  filter: drop-shadow(0 -16px 28px rgba(51, 42, 32, 0.14));
}

.shore-left {
  left: -10%;
}

.shore-right {
  right: -9%;
  transform: scaleX(-1);
}

.intro {
  position: relative;
  z-index: 4;
  width: min(760px, 100%);
  margin: clamp(20px, 3.2vw, 34px) auto clamp(8px, 1.6vw, 14px);
  text-align: center;
}

.version {
  display: none;
  margin: 0 0 8px;
  color: rgba(43, 57, 52, 0.7);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reflection-chip {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  border: 1px solid rgba(45, 50, 31, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 248, 234, 0.34);
  color: rgba(50, 48, 34, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 22px rgba(39, 33, 21, 0.08);
  backdrop-filter: blur(10px);
}

.intro p:last-child {
  width: fit-content;
  max-width: min(92vw, 560px);
  margin: 0 auto;
  border: 1px solid rgba(255, 248, 234, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 248, 234, 0.22);
  color: rgba(52, 45, 36, 0.76);
  font-size: clamp(0.94rem, 1.7vw, 1.12rem);
  font-weight: 650;
  text-shadow: 0 1px 12px rgba(255, 248, 234, 0.34);
  backdrop-filter: blur(10px);
}

.prototype-panel {
  position: absolute;
  top: 86px;
  right: clamp(16px, 4vw, 38px);
  z-index: 8;
  width: min(470px, calc(100vw - 32px));
  border: 1px solid rgba(255, 248, 234, 0.24);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.78), rgba(248, 231, 199, 0.66)),
    rgba(255, 248, 234, 0.68);
  color: #27231c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 24px 60px rgba(19, 15, 9, 0.24);
  backdrop-filter: blur(18px) saturate(1.06);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading span,
.upgrade-card span,
.rewards-card > span,
.info-grid span {
  color: rgba(61, 67, 44, 0.72);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.panel-heading button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(52, 43, 31, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(39, 35, 28, 0.78);
  font-size: 1.2rem;
  font-weight: 800;
}

.settings-grid,
.info-grid {
  display: grid;
  gap: 12px;
}

.settings-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(67, 58, 42, 0.12);
  border-radius: 16px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 248, 234, 0.12)),
    rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.settings-section-heading span {
  color: rgba(61, 67, 44, 0.66);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-section-heading h3 {
  margin: 0;
  color: #243d36;
  font-size: 1rem;
  font-weight: 950;
}

.customization-group {
  display: grid;
  gap: 8px;
}

.customization-group h3 {
  margin: 0;
  color: rgba(45, 43, 34, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.customization-group > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customization-group button {
  min-height: 64px;
  border: 1px solid rgba(67, 58, 42, 0.16);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(39, 35, 28, 0.78);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.customization-group button.is-active {
  border-color: rgba(43, 88, 77, 0.58);
  background: rgba(239, 250, 236, 0.56);
  color: #233f38;
}

.customization-group button span,
.customization-group button small {
  display: block;
}

.customization-group button span {
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.12;
}

.customization-group button small {
  margin-top: 6px;
  color: rgba(63, 57, 45, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
}

.upgrade-card,
.rewards-card,
.info-grid article {
  border: 1px solid rgba(67, 58, 42, 0.14);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.upgrade-card strong {
  display: block;
  margin-top: 5px;
  color: #243d36;
  font-size: 1rem;
}

.upgrade-card p,
.rewards-card small,
.info-grid p {
  margin: 7px 0 0;
  color: rgba(42, 37, 29, 0.72);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.42;
}

.rewards-card strong {
  display: block;
  margin-top: 5px;
  color: #243d36;
  font-size: 1rem;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.reward-grid div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  border: 1px solid rgba(73, 58, 39, 0.1);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 248, 234, 0.42);
  opacity: 0.72;
}

.reward-grid div.is-unlocked {
  border-color: rgba(51, 91, 78, 0.28);
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 220, 138, 0.36), transparent 30%),
    rgba(239, 250, 232, 0.56);
  opacity: 1;
}

.reward-grid b {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(37, 57, 50, 0.12);
  color: rgba(44, 57, 48, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-grid div.is-unlocked b {
  background: rgba(45, 91, 78, 0.9);
  color: var(--cream);
}

.reward-grid span {
  color: #26392f;
  font-weight: 900;
}

.upgrade-card button {
  margin-top: 12px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(180deg, #31584d, #243f38);
  color: var(--cream);
  font-weight: 900;
}

.stones-basalt .rock-image {
  filter: grayscale(0.82) brightness(0.72) contrast(1.18) saturate(0.62);
}

.stones-jade .rock-image {
  filter: hue-rotate(64deg) saturate(0.82) brightness(0.92);
}

.stones-river .rock-image {
  filter: grayscale(0.48) hue-rotate(172deg) saturate(0.72) brightness(0.9) contrast(1.08);
}

.stones-sandstone .rock-image {
  filter: sepia(0.32) saturate(1.22) hue-rotate(-10deg) brightness(1.05) contrast(1.02);
}

.stones-rose .rock-image {
  filter: sepia(0.22) hue-rotate(316deg) saturate(1.05) brightness(1.06) contrast(0.98);
}

.stones-moss .rock-image {
  filter: sepia(0.28) hue-rotate(58deg) saturate(0.82) brightness(0.86) contrast(1.1);
}

.stones-moonstone .rock-image {
  filter: grayscale(0.34) hue-rotate(198deg) saturate(0.48) brightness(1.18) contrast(0.92);
}

.stones-obsidian .rock-image {
  filter: grayscale(1) brightness(0.42) contrast(1.42) saturate(0.55);
}

.stones-obsidian .rock-label,
.stones-basalt .rock-label,
.stones-moss .rock-label {
  color: rgba(252, 246, 229, 0.94);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.62),
    0 -1px 1px rgba(255, 255, 255, 0.08);
}

.stones-moonstone .rock-label,
.stones-rose .rock-label {
  color: rgba(32, 31, 28, 0.9);
}

.music-tide .brand-mark {
  border-color: rgba(176, 221, 214, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    0 0 18px rgba(115, 198, 189, 0.14);
}

.music-bowls .brand-mark {
  border-color: rgba(245, 216, 147, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    0 0 20px rgba(245, 216, 147, 0.2);
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 244, 208, 0.26), transparent 34%),
    rgba(13, 14, 10, 0.42);
  backdrop-filter: blur(16px) saturate(1.04);
}

.onboarding-card {
  width: min(470px, 100%);
  border: 1px solid rgba(255, 248, 234, 0.32);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 249, 234, 0.88), rgba(245, 226, 193, 0.78)),
    rgba(255, 248, 234, 0.78);
  color: #252018;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 28px 80px rgba(10, 8, 5, 0.34);
}

.onboarding-visual {
  position: relative;
  height: 190px;
  margin-bottom: 18px;
  border: 1px solid rgba(74, 64, 44, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 24%, rgba(255, 241, 188, 0.62), transparent 16%),
    linear-gradient(180deg, rgba(144, 189, 190, 0.36), rgba(244, 221, 178, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 28px rgba(42, 31, 18, 0.16);
}

.onboarding-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.onboarding-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 244, 212, 0.08), transparent 34%),
    radial-gradient(ellipse at 50% 82%, rgba(42, 30, 18, 0.16), transparent 62%);
  content: "";
  pointer-events: none;
}

.onboarding-copy span {
  color: rgba(54, 68, 48, 0.72);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.onboarding-copy h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 7vw, 2.65rem);
  font-weight: 500;
  line-height: 0.98;
}

.onboarding-copy p {
  margin: 12px 0 0;
  color: rgba(45, 38, 28, 0.76);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.48;
}

.onboarding-progress {
  display: flex;
  gap: 7px;
  margin: 18px 0;
}

.onboarding-progress span {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(75, 65, 47, 0.16);
}

.onboarding-progress .is-active {
  background: #31584d;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.onboarding-actions button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(180deg, #31584d, #243f38);
  color: var(--cream);
  font-weight: 950;
}

.onboarding-actions .ghost {
  border: 1px solid rgba(68, 58, 40, 0.16);
  background: rgba(255, 255, 255, 0.26);
  color: rgba(43, 36, 26, 0.74);
}

.game-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: minmax(540px, 1fr) auto auto auto;
  gap: 10px;
  width: min(860px, 100%);
  min-height: 0;
  margin: 0 auto;
  transition: filter 500ms ease;
}

.game-card.is-complete {
  filter: brightness(1.05) saturate(1.06);
}

.scene {
  position: relative;
  height: min(59svh, 650px);
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  touch-action: none;
}

.scene-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 246, 208, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 52%, transparent);
  pointer-events: none;
}

.stack-board {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 1;
  width: min(520px, 88%);
  height: clamp(128px, 24%, 170px);
  background: url("./quote-stack/bamboo-board.png") center / 100% 100% no-repeat;
  filter:
    saturate(0.72)
    brightness(0.74)
    contrast(0.96)
    drop-shadow(0 22px 18px rgba(7, 6, 4, 0.5));
  opacity: 1;
  pointer-events: none;
  transition: filter 280ms ease, opacity 280ms ease, transform 280ms ease;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.stack-board.is-ready {
  filter:
    saturate(0.88)
    brightness(0.88)
    contrast(1)
    drop-shadow(0 0 18px rgba(255, 230, 161, 0.38))
    drop-shadow(0 22px 18px rgba(7, 6, 4, 0.46));
}

.stack-board.is-complete {
  filter:
    saturate(0.98)
    brightness(0.95)
    contrast(1.02)
    drop-shadow(0 0 26px rgba(255, 236, 179, 0.38))
    drop-shadow(0 22px 18px rgba(7, 6, 4, 0.42));
}

.stack-board::before,
.stack-board::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.stack-board::before {
  inset: 58% 9% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(7, 6, 4, 0.46), transparent 66%);
  filter: blur(4px);
}

.stack-board::after {
  inset: 12% 12% 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 28%, rgba(255, 245, 204, 0.18), transparent 52%);
  mix-blend-mode: soft-light;
}

.stack-board span {
  display: none;
}

.stack-guides {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.stack-guides span {
  position: absolute;
  display: block;
  border: 2px dashed rgba(255, 255, 255, 0.48);
  border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%;
  background: rgba(255, 249, 226, 0.06);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(51, 42, 31, 0.12);
  opacity: 0.74;
}

.guides-strong .stack-guides span {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 249, 226, 0.1);
  opacity: 0.9;
}

.guides-normal .stack-guides span {
  opacity: 0.48;
}

.guides-light .stack-guides span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 249, 226, 0.03);
  opacity: 0.2;
}

.canvas-host,
.canvas-host canvas,
.rock-layer {
  position: absolute;
  inset: 0;
}

.canvas-host {
  z-index: 2;
}

.rock-layer {
  z-index: 4;
  pointer-events: none;
}

.canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.rock-sprite {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition: filter 160ms ease, opacity 160ms ease;
  filter: drop-shadow(0 18px 12px rgba(18, 13, 8, 0.36)) drop-shadow(0 4px 3px rgba(18, 13, 8, 0.16));
}

.rock-sprite:active {
  cursor: grabbing;
}

.rock-sprite.is-held {
  filter:
    drop-shadow(0 28px 22px rgba(18, 13, 8, 0.38))
    drop-shadow(0 8px 8px rgba(18, 13, 8, 0.2))
    brightness(1.04);
}

.rock-sprite.is-next:not(.is-held):not(.is-stuck) {
  filter:
    drop-shadow(0 0 14px rgba(255, 239, 188, 0.18))
    drop-shadow(0 18px 12px rgba(18, 13, 8, 0.34))
    drop-shadow(0 4px 3px rgba(18, 13, 8, 0.15));
}

.rock-sprite.is-near-target {
  filter:
    drop-shadow(0 0 18px rgba(255, 238, 174, 0.4))
    drop-shadow(0 24px 18px rgba(18, 13, 8, 0.34));
}

.rock-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.rock-label {
  position: absolute;
  inset: 10% 8% 12%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191712;
  font-size: clamp(0.82rem, 1.8vw, 1.08rem);
  font-weight: 900;
  line-height: 1.08;
  pointer-events: none;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.72),
    0 -1px 1px rgba(80, 64, 42, 0.12);
}

.rock-sprite.is-held .rock-label,
.rock-sprite.is-next .rock-label {
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.82),
    0 0 10px rgba(255, 238, 184, 0.18);
}

.controls {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 28px);
  margin-top: 0;
  padding: 0 clamp(4px, 1vw, 10px);
}

.controls button {
  width: min(305px, 42vw);
  min-height: 72px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(180deg, #334f4c, var(--button));
  color: var(--cream);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.16),
    0 16px 26px rgba(14, 19, 15, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.controls button:hover {
  background: linear-gradient(180deg, #2e4745, var(--button-hover));
  transform: translateY(-1px);
}

.controls .secondary {
  width: min(280px, 72vw);
  border: 1px solid rgba(255, 248, 234, 0.42);
  background: rgba(244, 225, 194, 0.9);
  color: rgba(52, 43, 31, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 22px rgba(77, 63, 47, 0.1);
}

.status {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 234, 0.32);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(33, 27, 19, 0.2);
  color: rgba(255, 242, 214, 0.82);
  font-weight: 780;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.1),
    0 8px 18px rgba(20, 15, 9, 0.1);
}

.status.success {
  border-color: rgba(255, 248, 234, 0.52);
  background: rgba(242, 250, 232, 0.72);
  color: #29453f;
}

.quote-reveal {
  margin: 0;
  border: 1px solid rgba(255, 248, 234, 0.42);
  border-radius: 20px;
  padding: 17px 18px 18px;
  background: rgba(255, 248, 234, 0.62);
  color: #213632;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 3vw, 1.62rem);
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 20px 46px rgba(49, 42, 32, 0.16);
  animation: quoteIn 520ms ease both;
  backdrop-filter: blur(12px);
}

.completion-panel {
  display: grid;
  gap: 12px;
}

.completion-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.completion-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #334f4c, var(--button));
  color: var(--cream);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    0 14px 24px rgba(14, 19, 15, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.completion-actions button:hover {
  background: linear-gradient(180deg, #2e4745, var(--button-hover));
  transform: translateY(-1px);
}

.completion-actions .secondary {
  border: 1px solid rgba(255, 248, 234, 0.44);
  background: rgba(255, 248, 234, 0.74);
  color: rgba(47, 43, 32, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 20px rgba(77, 63, 47, 0.12);
}

.completion-actions button span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 248, 234, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-reveal q {
  display: block;
  quotes: "“" "”";
}

.quote-reveal cite,
.quote-reveal small {
  display: block;
  margin-top: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  line-height: 1.35;
}

.quote-reveal cite {
  color: rgba(38, 56, 50, 0.82);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 850;
}

.quote-reveal small {
  color: rgba(54, 62, 45, 0.68);
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 650;
}

.scene-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
  padding: 0;
  background: transparent;
}

.scene-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(24, 21, 15, 0.18);
  color: rgba(255, 242, 214, 0.78);
  font-size: clamp(0.82rem, 1.9vw, 1rem);
  font-weight: 650;
  text-align: center;
  text-shadow: 0 2px 10px rgba(7, 6, 4, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.08),
    0 12px 24px rgba(12, 10, 6, 0.08);
  backdrop-filter: blur(10px);
}

.quote-reveal span {
  display: block;
  margin-bottom: 6px;
  color: rgba(70, 79, 53, 0.76);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes quoteIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .top-bar {
    min-height: 64px;
    margin: 0 -12px;
    padding: 0 12px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-lockup div {
    display: grid;
    gap: 0;
  }

  .top-bar .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .prototype-panel {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100svh - 92px);
    overflow: auto;
    padding: 13px;
  }

  .customization-group > div {
    grid-template-columns: 1fr;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .customization-group button {
    min-height: 52px;
  }

  .top-bar strong {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }

  .top-bar span {
    font-size: 0.62rem;
  }

  .top-bar button {
    width: 34px;
    height: 34px;
  }

  .scenic-background {
    inset: 64px 0 0;
  }

  .app-shell::before {
    inset: 64px 0 0;
  }

  .intro {
    margin: 26px auto 10px;
  }

  .reflection-chip {
    min-height: 26px;
    margin-bottom: 10px;
    padding: 0 11px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3.7rem, 16vw, 5.1rem);
  }

  .game-card {
    grid-template-rows: minmax(500px, 1fr) auto auto auto;
  }

  .scene {
    height: 56svh;
    min-height: 500px;
  }

  .stack-board {
    bottom: 8px;
    width: min(350px, 92%);
    height: 126px;
  }

  .controls {
    display: flex;
  }

  .controls button {
    min-width: 0;
    padding: 0 14px;
    min-height: 56px;
    font-size: 1rem;
  }

  .completion-actions {
    grid-template-columns: 1fr;
  }

  .completion-actions button {
    min-height: 54px;
  }
}
