.pressure-modal,
.pressure-egg {
  --bg: #050607;
  --surface: #0d1117;
  --surface-2: #141a22;
  --line: rgba(255, 255, 255, .14);
  --text: #f6f8fb;
  --muted: #a7b0bd;
  --blue: #0d6efd;
  --blue-2: #1f8bff;
  --red: #e43337;
  --green: #25d366;
  --yellow: #ffc33d;
}

.pressure-modal *,
.pressure-egg,
.pressure-egg * { box-sizing: border-box; }

.pressure-modal {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.pressure-modal button,
.pressure-modal a,
.pressure-egg { font: inherit; }

.demo-page {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(5,6,7,.96), rgba(5,6,7,.68), rgba(5,6,7,.20)), url("workshop-background.png") center / cover;
}

.demo-landing {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 80px clamp(18px, 7vw, 96px);
}

.demo-copy { max-width: 760px; }

.pressure-game .eyebrow {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pressure-game h1,
.pressure-game h2,
.pressure-game p { margin-top: 0; }

.pressure-game h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .92;
  text-transform: uppercase;
}

.demo-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #d7deea;
  font-size: 18px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pressure-game .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.pressure-game .btn.primary { background: var(--blue); }
.pressure-game .btn.ghost { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }

.pressure-egg {
  position: fixed;
  left: 22px;
  bottom: 86px;
  z-index: 65;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 18px rgba(31,139,255,.78));
  animation: eggPulse 3.8s ease-in-out infinite;
}

.pressure-egg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pressure-egg span {
  position: absolute;
  left: 70px;
  top: 50%;
  width: max-content;
  max-width: 190px;
  transform: translateY(-50%) translateX(-8px);
  border: 1px solid rgba(31,139,255,.55);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(5, 8, 13, .92);
  color: #eaf4ff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}

.pressure-egg:hover span,
.pressure-egg:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes eggPulse {
  0%, 74%, 100% { transform: scale(1); }
  80% { transform: scale(1.08) rotate(-3deg); }
  86% { transform: scale(1.02) rotate(3deg); }
}

.pressure-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pressure-modal.open { display: flex; }

.pressure-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.pressure-game {
  position: relative;
  width: min(1080px, 96vw);
  max-height: min(760px, 94vh);
  overflow: hidden;
  border: 1px solid rgba(31,139,255,.42);
  border-radius: 8px;
  background: #050607;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}

.pressure-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(3, 6, 10, .74);
  color: #fff;
  cursor: pointer;
}

.pressure-stage {
  position: relative;
  min-height: 690px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(5,6,7,.50), rgba(5,6,7,.84)), url("workshop-background.png") center / cover;
}

.pressure-hud {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.pressure-hud h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.pressure-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(37,211,102,.38);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(5, 10, 16, .78);
  color: #d9ffe7;
}

.pressure-score strong { font-size: 28px; }
.pressure-score span { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.pressure-play {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 420px;
}

.pressure-gauge {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 14px solid #ccd5df;
  border-radius: 50%;
  background: radial-gradient(circle at center, #10151d 0 52%, #05070a 53% 100%);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.05), 0 18px 60px rgba(0,0,0,.6);
}

.gauge-arc {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, #d52c32 0 92deg, #ffc33d 92deg 138deg, #d52c32 138deg 270deg, transparent 270deg 360deg);
  mask: radial-gradient(circle, transparent 0 58%, #000 59% 70%, transparent 71%);
}

.gauge-target {
  position: absolute;
  z-index: 3;
  inset: 22px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, transparent 0deg, rgba(37,211,102,.96) 0deg 18deg, rgba(255,255,255,1) 18deg 21deg, rgba(37,211,102,.96) 21deg 39deg, transparent 39deg 360deg);
  mask: radial-gradient(circle, transparent 0 55%, #000 56% 75%, transparent 76%);
  filter: drop-shadow(0 0 12px rgba(37,211,102,.85));
}

.gauge-number {
  position: absolute;
  z-index: 2;
  color: #e8eef7;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

.gauge-number.n0 { left: 21%; top: 65%; }
.gauge-number.n20 { left: 20%; top: 33%; }
.gauge-number.n30 { left: 48%; top: 20%; }
.gauge-number.n40 { right: 20%; top: 33%; }
.gauge-number.n50 { right: 21%; top: 65%; }
}

.gauge-needle-svg {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gauge-needle-svg g {
  transform-origin: 50px 50px;
  transition: transform .08s linear;
  filter: drop-shadow(0 0 3px rgba(31,139,255,.9)) drop-shadow(0 3px 3px rgba(0,0,0,.7));
}

.gauge-needle-svg line {
  stroke: #fff;
  stroke-width: 3.8;
  stroke-linecap: round;
}

.gauge-needle-svg polygon {
  fill: #fff;
  stroke: #1f8bff;
  stroke-width: .9;
}

.gauge-center {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #7d8998);
  transform: translate(-50%, -50%);
}

.pressure-gauge strong {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 63%;
  transform: translate(-50%, -50%);
  font-size: 46px;
}

.pressure-gauge span {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 76%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.tire-zone {
  position: relative;
  z-index: 4;
  min-height: 420px;
}

.tire-img {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  display: block;
  width: min(360px, 58vw);
  max-height: 430px;
  object-fit: contain;
  background: transparent !important;
  background-image: none !important;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .15s ease, transform .15s ease;
}

.tire-img.active { opacity: 1; }
.tire-img[data-tire-state="over"].active { transform: translateX(-50%) scale(1.05); }
.tire-img[data-tire-state="boom"].active { transform: translateX(-50%) scale(1.08); }

.air-particles,
.success-burst {
  position: absolute;
  left: 48%;
  bottom: 104px;
  width: 260px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-8deg);
}

.air-particles {
  mix-blend-mode: screen;
  filter: blur(.2px) drop-shadow(0 0 10px rgba(123,208,255,.24));
}

.success-burst {
  left: 50%;
  bottom: 100px;
  width: 420px;
  transform: translateX(-50%) scale(.88);
}

.is-inflating .air-particles {
  opacity: .34;
  animation: airFlow 1.05s ease-in-out infinite, airFade .62s linear infinite;
}

.show-success .success-burst {
  animation: successPop .58s ease-out;
}

.air-hose {
  position: absolute;
  z-index: 5;
  left: 35%;
  bottom: 96px;
  width: min(520px, 48vw);
  transform: rotate(4deg);
  pointer-events: none;
}

.air-hose-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hose-shadow,
.hose-body {
  fill: none;
  stroke-linecap: round;
}

.hose-shadow {
  stroke: rgba(0,0,0,.66);
  stroke-width: 3.8;
  transform: translate(.7px, 1.1px);
}

.hose-body {
  stroke: url("#hoseRubber");
  stroke-width: 2.45;
}

.connected-hose {
  position: absolute;
  left: 52%;
  bottom: 38px;
  z-index: 2;
  width: min(330px, 31vw);
  height: auto;
  pointer-events: none;
  transform: translateX(-50%) rotate(4deg);
  transform-origin: 50% 92%;
  opacity: .92;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.42));
}

.pressure-controls {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: -10px auto 0;
  max-width: 640px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 8, 13, .82);
}

.rounds {
  display: flex;
  gap: 8px;
}

.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,.07);
  color: #cbd6e4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.target-pill strong {
  color: #fff;
  font-size: 14px;
}

.rounds span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #aeb8c6;
  font-size: 13px;
  font-weight: 900;
}

.rounds span.win { border-color: rgba(37,211,102,.75); background: rgba(37,211,102,.22); color: #aaffc9; }
.rounds span.lose { border-color: rgba(228,51,55,.8); background: rgba(228,51,55,.22); color: #ffd1d1; }
.rounds span.current { border-color: rgba(31,139,255,.9); color: #fff; box-shadow: 0 0 18px rgba(31,139,255,.35); }

.pressure-controls p {
  min-height: 24px;
  margin: 0;
  color: #d9e5f3;
  text-align: center;
}

.inflate-btn {
  position: relative;
  width: min(440px, 100%);
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #93eb45, #279313);
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 18px 40px rgba(31, 180, 57, .35);
}

.inflate-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 54px;
  height: 22px;
  border: 1px solid rgba(5,6,7,.75);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(90deg, #eef2f7, #737f8e 52%, #f9fbff);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.14);
  transform: translateX(-50%);
}

.inflate-btn:active { transform: translateY(1px) scale(.99); }

.reward-screen {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(180deg, rgba(3,6,10,.86), rgba(3,6,10,.95)), url("workshop-background.png") center / cover;
}

.reward-screen[hidden] { display: none; }

.reward-screen > img {
  width: min(760px, 90vw);
}

.reward-copy {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.reward-copy p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .9;
  text-transform: uppercase;
}

.reward-copy button {
  min-height: 46px;
  border: 1px dashed rgba(255,255,255,.45);
  border-radius: 6px;
  padding: 0 22px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.reward-copy span { color: #cbd6e4; }

.reward-actions {
  position: absolute;
  bottom: 44px;
  display: flex;
  gap: 10px;
}

@keyframes airFlow {
  0% { transform: translateX(-18px) translateY(7px) scale(.82) rotate(-12deg); }
  50% { transform: translateX(4px) translateY(-2px) scale(.96) rotate(-9deg); }
  100% { transform: translateX(24px) translateY(-9px) scale(.78) rotate(-7deg); }
}

@keyframes airFade {
  0%, 100% { opacity: .14; }
  35% { opacity: .42; }
  70% { opacity: .24; }
}

@keyframes successPop {
  0% { opacity: 0; transform: translateX(-50%) scale(.2); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.12); }
}

.shake { animation: shake .22s linear 2; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 760px) {
  .pressure-game {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .pressure-stage {
    min-height: calc(100vh - 24px);
    padding: 18px;
  }
  .pressure-hud { display: block; padding-right: 46px; }
  .pressure-hud h2 { font-size: 32px; }
  .pressure-score { width: max-content; margin-top: 10px; }
  .pressure-play { grid-template-columns: 1fr; gap: 0; min-height: 440px; }
  .pressure-gauge { width: min(230px, 64vw); }
  .pressure-gauge strong { font-size: 38px; }
  .pressure-gauge span { top: 73%; }
  .gauge-number { font-size: 14px; }
  .tire-zone { min-height: 240px; }
  .tire-img { width: min(215px, 60vw); max-height: 250px; }
  .air-hose { left: 10%; bottom: 118px; width: 76vw; opacity: .9; }
  .connected-hose {
    left: 51%;
    bottom: 43px;
    width: 194px;
    transform: translateX(-50%) rotate(4deg);
  }
  .hose-shadow { stroke-width: 3.7; }
  .hose-body { stroke-width: 2.5; }
  .air-particles { left: 42%; bottom: 86px; width: 170px; }
  .success-burst { bottom: 48px; width: 290px; }
  .pressure-controls {
    gap: 10px;
    margin-top: 0;
    padding: 12px;
  }
  .pressure-controls p {
    font-size: 14px;
    line-height: 1.25;
  }
  .inflate-btn { min-height: 58px; font-size: 30px; }
  .pressure-egg { left: 16px; bottom: 78px; width: 54px; height: 54px; }
  .pressure-egg span { display: none; }
  .reward-actions { bottom: 24px; flex-direction: column; }
}
