:root {
  --bg: #e8e3d8;
  --panel: rgba(252, 250, 246, 0.92);
  --panel-soft: #f3efe6;
  --ink: #1f1c18;
  --muted: #69635d;
  --line: rgba(50, 44, 38, 0.14);
  --shadow: 0 22px 55px rgba(50, 39, 28, 0.12);
  --accent: #c96a3d;
  --accent-soft: rgba(201, 106, 61, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 24%),
    linear-gradient(180deg, #f2ede4 0%, #e4dccf 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Aptos", "Trebuchet MS", sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

button {
  font: inherit;
}

.app {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.hero-copy,
.hero-note,
.game-card,
.development-note {
  border-radius: 26px;
  border: 1px solid rgba(50, 44, 38, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px 30px 28px;
}

.hero-note {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 239, 230, 0.98));
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.45rem, 5vw, 4rem);
  margin-top: 10px;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.08rem;
  color: rgba(46, 40, 34, 0.86);
}

.intro,
.hero-note p:last-child,
.card-description,
.surface-text,
.prototype-feedback,
.development-note p {
  color: var(--muted);
  line-height: 1.7;
}

.intro {
  max-width: 760px;
  margin-top: 14px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  padding: 22px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.game-card.is-open {
  border-color: rgba(201, 106, 61, 0.22);
  box-shadow: 0 26px 58px rgba(50, 39, 28, 0.14);
}

.card-head {
  display: grid;
  gap: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(50, 44, 38, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card h2 {
  font-size: 1.95rem;
}

.button,
.button-secondary {
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(201, 106, 61, 0.26);
  box-shadow: 0 10px 24px rgba(201, 106, 61, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button:hover {
  background: #cf7348;
  border-color: rgba(201, 106, 61, 0.36);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(50, 44, 38, 0.2);
}

.card-toggle {
  width: fit-content;
}

.card-link {
  text-decoration: none;
}

.preview-panel {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(59, 52, 45, 0.08);
  display: grid;
  gap: 16px;
}

.preview-stage,
.surface-stage {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  border: 1px solid rgba(62, 54, 47, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.value-preview .preview-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(227, 219, 208, 0.9)),
    repeating-linear-gradient(135deg, rgba(50, 44, 38, 0.03) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
}

.value-wash {
  position: absolute;
  inset: 18% 10%;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(233, 227, 218, 0.96), rgba(153, 145, 136, 0.8)),
    radial-gradient(circle at 70% 46%, rgba(61, 55, 50, 0.18), transparent 28%);
  filter: blur(1px);
}

.stacker-preview-grid {
  position: absolute;
  inset: 14%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-content: end;
}

.stacker-preview-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(62, 54, 47, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 20px rgba(50, 39, 28, 0.08);
}

.tone-04 { background: hsl(0 0% 82%); }
.tone-06 { background: hsl(0 0% 74%); }
.tone-08 { background: hsl(0 0% 66%); }
.tone-09 { background: hsl(0 0% 62%); }
.tone-10 { background: hsl(0 0% 58%); }
.tone-11 { background: hsl(0 0% 54%); }
.tone-12 { background: hsl(0 0% 50%); }
.tone-13 { background: hsl(0 0% 46%); }
.tone-14 { background: hsl(0 0% 42%); }
.tone-15 { background: hsl(0 0% 38%); }
.tone-16 { background: hsl(0 0% 34%); }
.tone-17 { background: hsl(0 0% 30%); }
.tone-18 { background: hsl(0 0% 26%); }
.tone-19 { background: hsl(0 0% 22%); }

.value-target,
.value-stage-target {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    0 0 0 1px rgba(50, 44, 38, 0.16),
    0 18px 28px rgba(50, 39, 28, 0.12);
  background: rgba(255, 255, 255, 0.18);
}

.value-target {
  top: 28%;
  left: 60%;
}

.value-stage-target {
  top: 34%;
  left: 58%;
}

.value-target::before,
.value-stage-target::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px dashed rgba(50, 44, 38, 0.22);
}

.value-scale,
.mock-scale {
  display: grid;
  gap: 8px;
}

.value-scale {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mock-scale {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-scale span,
.mock-scale span {
  padding: 9px 8px;
  text-align: center;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid rgba(50, 44, 38, 0.08);
}

.value-scale span:nth-child(1),
.mock-scale span:nth-child(1) { background: #faf9f7; }
.value-scale span:nth-child(2),
.mock-scale span:nth-child(2) { background: #ebe8e3; }
.value-scale span:nth-child(3),
.mock-scale span:nth-child(3) { background: #d9d4cd; }
.value-scale span:nth-child(4),
.mock-scale span:nth-child(4) { background: #bfb8af; }
.value-scale span:nth-child(5),
.mock-scale span:nth-child(5) { background: #8f877d; color: #fff; }
.value-scale span:nth-child(6),
.mock-scale span:nth-child(6),
.mock-scale span:nth-child(7),
.mock-scale span:nth-child(8),
.mock-scale span:nth-child(9),
.mock-scale span:nth-child(10) { background: #403a35; color: #fff; }

.focal-preview .preview-stage {
  background:
    linear-gradient(135deg, rgba(247, 244, 239, 0.92), rgba(223, 214, 201, 0.92)),
    radial-gradient(circle at 68% 38%, rgba(59, 52, 45, 0.15), transparent 24%);
}

.focal-composition {
  position: absolute;
  inset: 12%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 66% 42%, rgba(53, 46, 41, 0.2), transparent 16%),
    radial-gradient(circle at 28% 70%, rgba(53, 46, 41, 0.1), transparent 18%),
    linear-gradient(150deg, rgba(90, 81, 73, 0.16), rgba(255, 255, 255, 0.18));
  filter: blur(1px);
}

.focal-ring,
.focal-halo {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 1px solid rgba(50, 44, 38, 0.18);
  background: radial-gradient(circle, rgba(201, 106, 61, 0.18), rgba(201, 106, 61, 0));
}

.focal-ring {
  top: 24%;
  left: 59%;
}

.focal-marker,
.focal-crosshair {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(50, 44, 38, 0.22);
  background: rgba(201, 106, 61, 0.26);
}

.focal-marker {
  top: calc(24% + 42px);
  left: calc(59% + 42px);
}

.focal-stage {
  width: 100%;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(62, 54, 47, 0.12);
  background:
    linear-gradient(135deg, rgba(247, 244, 239, 0.94), rgba(223, 214, 201, 0.94)),
    radial-gradient(circle at 68% 38%, rgba(59, 52, 45, 0.15), transparent 24%);
  color: inherit;
  text-align: left;
}

.focal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(33.333% - 0.5px), rgba(50, 44, 38, 0.12) calc(33.333% - 0.5px), rgba(50, 44, 38, 0.12) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent 100%),
    linear-gradient(to right, transparent 0, transparent calc(66.666% - 0.5px), rgba(50, 44, 38, 0.12) calc(66.666% - 0.5px), rgba(50, 44, 38, 0.12) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px), transparent 100%),
    linear-gradient(to bottom, transparent 0, transparent calc(33.333% - 0.5px), rgba(50, 44, 38, 0.12) calc(33.333% - 0.5px), rgba(50, 44, 38, 0.12) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent 100%),
    linear-gradient(to bottom, transparent 0, transparent calc(66.666% - 0.5px), rgba(50, 44, 38, 0.12) calc(66.666% - 0.5px), rgba(50, 44, 38, 0.12) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px), transparent 100%);
  opacity: 0.7;
}

.focal-halo,
.focal-crosshair {
  top: 54%;
  left: 48%;
  transform: translate(-50%, -50%);
}

.focal-crosshair {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.focal-crosshair::before,
.focal-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(50, 44, 38, 0.28);
}

.focal-crosshair::before {
  top: 50%;
  left: -16px;
  width: 54px;
  height: 1px;
  transform: translateY(-50%);
}

.focal-crosshair::after {
  left: 50%;
  top: -16px;
  width: 1px;
  height: 54px;
  transform: translateX(-50%);
}

.focal-stage .surface-title,
.focal-stage .surface-text {
  position: relative;
  z-index: 1;
  max-width: 290px;
}

.focal-stage .surface-title {
  margin-top: 134px;
}

.color-preview {
  align-content: start;
}

.color-swatch,
.target-swatch {
  width: 100%;
  min-height: 170px;
  border-radius: 18px;
  border: 1px solid rgba(62, 54, 47, 0.12);
  background: linear-gradient(135deg, #85735f, #9d836c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.pigment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pigment-row-large {
  gap: 12px;
}

.pigment-chip {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(50, 44, 38, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(50, 39, 28, 0.08);
}

button.pigment-chip {
  cursor: pointer;
}

.pigment-chip.warm { background: linear-gradient(135deg, #c66d48, #d98b55); }
.pigment-chip.earth { background: linear-gradient(135deg, #8f6b4f, #b48a67); }
.pigment-chip.cool { background: linear-gradient(135deg, #627786, #8aa0af); }
.pigment-chip.neutral { background: linear-gradient(135deg, #6f6862, #96908a); }

.prototype-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 239, 230, 0.98));
  border: 1px solid rgba(59, 52, 45, 0.08);
}

.value-card-note {
  align-content: start;
}

.prototype-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 16px;
}

.prototype-surface,
.prototype-aside {
  display: grid;
  gap: 10px;
}

.prototype-aside {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(50, 44, 38, 0.08);
  background: rgba(255, 255, 255, 0.52);
  align-content: start;
}

.surface-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.surface-stage {
  padding: 18px;
}

.surface-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  color: var(--ink);
}

.surface-copy,
.value-stage-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(252, 250, 246, 0.8);
  border: 1px solid rgba(50, 44, 38, 0.08);
  display: grid;
  gap: 8px;
}

.value-stage {
  background:
    linear-gradient(120deg, rgba(247, 244, 239, 0.96), rgba(183, 174, 163, 0.76)),
    radial-gradient(circle at 70% 42%, rgba(57, 50, 45, 0.18), transparent 22%);
}

.color-stage {
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(233, 227, 218, 0.94));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.value-sniper {
  display: grid;
  gap: 12px;
}

.value-sniper-topbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sniper-stat {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(50, 44, 38, 0.08);
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  gap: 4px;
}

.sniper-stat strong {
  font-size: 1.24rem;
  font-family: Georgia, "Times New Roman", serif;
}

.sniper-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.timer-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(50, 44, 38, 0.08);
  background: rgba(81, 72, 61, 0.08);
}

.timer-meter-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  background: linear-gradient(90deg, #c96a3d, #d79a67);
  box-shadow: 0 8px 18px rgba(201, 106, 61, 0.22);
  transition: transform 100ms linear;
}

.upload-shell {
  padding: 0;
}

.upload-dropzone {
  min-height: 110px;
  border-radius: 18px;
  border: 1px dashed rgba(50, 44, 38, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 239, 230, 0.94));
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  cursor: pointer;
}

.upload-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.upload-dropzone strong {
  font-size: 1.05rem;
  font-family: Georgia, "Times New Roman", serif;
}

.upload-dropzone span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.value-stage {
  min-height: 380px;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(247, 244, 239, 0.96), rgba(183, 174, 163, 0.84)),
    radial-gradient(circle at 70% 42%, rgba(57, 50, 45, 0.18), transparent 22%);
}

.value-stage.is-idle {
  min-height: 240px;
}

.value-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scope-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  animation: scopeBreath 4.2s ease-in-out infinite;
}

.scope-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 24%, rgba(18, 16, 13, 0.16) 41%, rgba(12, 10, 8, 0.46) 100%);
}

.scope-overlay::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(26, 22, 18, 0.16);
}

.scope-crosshair,
.scope-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.scope-crosshair {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(26, 22, 18, 0.12);
}

.scope-crosshair-horizontal {
  width: 52%;
  height: 1px;
}

.scope-crosshair-vertical {
  width: 1px;
  height: 62%;
}

.scope-ring-outer {
  width: min(74%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.scope-ring-inner {
  width: min(34%, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.value-stage-target {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 32%, rgba(201, 106, 61, 0.16) 33% 48%, rgba(255, 255, 255, 0.1) 49% 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  animation: targetFade 220ms ease;
}

.value-stage-target:hover,
.value-stage-target:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(50, 44, 38, 0.18),
    0 18px 28px rgba(50, 39, 28, 0.16),
    0 0 0 8px rgba(201, 106, 61, 0.08);
}

.value-stage-target.is-locked {
  animation: targetPulse 700ms ease-in-out infinite;
}

.feedback-badge {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(25, 21, 17, 0.22);
}

.feedback-badge.is-perfect {
  background: linear-gradient(135deg, #6f8d5e, #97b57d);
}

.feedback-badge.is-close {
  background: linear-gradient(135deg, #c07a4d, #d7a06f);
}

.feedback-badge.is-miss {
  background: linear-gradient(135deg, #6d5c54, #8f7e75);
}

.feedback-badge.is-visible {
  animation: feedbackPop 700ms ease;
}

.value-stage-copy {
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(252, 250, 246, 0.76);
  backdrop-filter: blur(10px);
}

.sniper-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sniper-scale-button {
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(50, 44, 38, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.sniper-scale-button:hover:not(:disabled),
.sniper-scale-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(201, 106, 61, 0.24);
}

.sniper-scale-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.sniper-scale-button:nth-child(1) { background: #fbfaf8; }
.sniper-scale-button:nth-child(2) { background: #f6f3ef; }
.sniper-scale-button:nth-child(3) { background: #efebe4; }
.sniper-scale-button:nth-child(4) { background: #e8e2d8; }
.sniper-scale-button:nth-child(5) { background: #dfd7cb; }
.sniper-scale-button:nth-child(6) { background: #d4ccbf; }
.sniper-scale-button:nth-child(7) { background: #cac0b2; }
.sniper-scale-button:nth-child(8) { background: #beb3a4; }
.sniper-scale-button:nth-child(9) { background: #b0a495; }
.sniper-scale-button:nth-child(10) { background: #a29484; }
.sniper-scale-button:nth-child(11) { background: #938576; color: #fff; }
.sniper-scale-button:nth-child(12) { background: #857768; color: #fff; }
.sniper-scale-button:nth-child(13) { background: #776a5d; color: #fff; }
.sniper-scale-button:nth-child(14) { background: #695d51; color: #fff; }
.sniper-scale-button:nth-child(15) { background: #5d5247; color: #fff; }
.sniper-scale-button:nth-child(16) { background: #50473d; color: #fff; }
.sniper-scale-button:nth-child(17) { background: #443c33; color: #fff; }
.sniper-scale-button:nth-child(18) { background: #383129; color: #fff; }
.sniper-scale-button:nth-child(19) { background: #2e2721; color: #fff; }
.sniper-scale-button:nth-child(20) { background: #201b16; color: #fff; }

.sniper-readout,
.sniper-audio {
  display: grid;
  gap: 8px;
}

.value-stage[data-phase="perfect"] {
  box-shadow: inset 0 0 0 1px rgba(111, 141, 94, 0.28);
}

.value-stage[data-phase="close"] {
  box-shadow: inset 0 0 0 1px rgba(201, 106, 61, 0.3);
}

.value-stage[data-phase="miss"] {
  box-shadow: inset 0 0 0 1px rgba(80, 64, 56, 0.3);
}

@keyframes targetFade {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes targetPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes feedbackPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.82);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.98);
  }
}

@keyframes scopeBreath {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.prototype-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.prototype-feedback {
  font-size: 0.92rem;
}

.development-note {
  margin-top: 22px;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 239, 230, 0.98));
}

@media (max-width: 1080px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .prototype-body,
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 24px, 1360px);
    padding-top: 24px;
  }

  .hero-copy,
  .hero-note,
  .game-card {
    padding: 20px;
  }

  .prototype-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-toggle,
  .prototype-action {
    width: 100%;
  }

  .value-scale,
  .sniper-scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .value-sniper-topbar {
    flex-direction: column;
  }

  .value-stage {
    min-height: 320px;
  }
}
