/* The two gates playground. A scene drawn in canvas (js/gates-play/play.js,
   using the explainer's kit) above or beside a deck of controls that feel
   like physical parts: keys that press in, a knurled fader, coins and a
   jar, loan blocks, a card that shrinks and a rocker switch. */

.gp-page {
  --gp-navy: #1a365d;
  --gp-night: #10233f;
  --gp-gold: #f4c14f;
  --gp-gold-deep: #c9971f;
  --gp-green: #23794a;
  --gp-blue: #2d6cb5;
  --gp-coral: #c9412c;
  --gp-light: #f3f6fa;
  --gp-line: rgba(26, 54, 93, 0.14);
  background: var(--brand-light-gray);
  color: var(--brand-dark-gray);
  overflow-x: visible;
  overflow-x: clip;
}

.gp-page main :focus-visible {
  outline: 3px solid var(--gp-navy);
  outline-offset: 3px;
}

.gp-page .gp-close :focus-visible {
  outline-color: #f6cf78;
}

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

.gp {
  background: #fff;
  border-bottom: 1px solid var(--gp-line);
  padding: 28px 24px 40px;
}

.gp-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.gp h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--gp-navy);
  text-align: center;
  margin: 0 0 16px;
}

.gp-mark {
  font-style: normal;
  background: linear-gradient(transparent 55%, rgba(244, 193, 79, 0.62) 55%, rgba(244, 193, 79, 0.62) 92%, transparent 92%);
  padding: 0 0.08em;
}

/* Scenes */
.gp-scenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.gp-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--gp-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--gp-navy);
  font: 600 0.92rem/1.2 'Poppins', sans-serif;
  box-shadow: 0 4px 0 var(--gp-navy);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.gp-chip:active,
.gp-chip[aria-pressed="true"] {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gp-navy);
}

.gp-chip[aria-pressed="true"] {
  background: var(--gp-navy);
  color: #fff;
}

.gp-chip.is-done::after {
  content: " ✓";
  color: var(--gp-gold);
}

/* The bench: scene and deck side by side on wide screens */
.gp-bench {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr);
  border: 2px solid var(--gp-navy);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 0 var(--gp-navy), 0 30px 60px rgba(16, 35, 63, 0.14);
  overflow: hidden;
}

.gp-stage {
  position: relative;
  min-height: 600px;
  background: var(--gp-light);
  border-right: 2px solid var(--gp-navy);
  touch-action: pan-y;
}

.gp-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.gp-goal {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--gp-gold);
  color: var(--gp-navy);
  font: 700 0.92rem/1.35 'Poppins', sans-serif;
  box-shadow: 0 3px 0 var(--gp-gold-deep);
}

.gp-goal[hidden] {
  display: none;
}

.gp-say {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: min(78%, 460px);
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--gp-navy);
  border-radius: 14px;
  background: #fff;
  color: var(--gp-navy);
  font: 600 0.98rem/1.4 'Poppins', sans-serif;
  box-shadow: 0 4px 0 rgba(26, 54, 93, 0.18);
}

.gp-say:empty {
  display: none;
}

.gp-say .gp-say-note {
  display: block;
  margin-top: 4px;
  font: 500 0.88rem/1.4 'Inter', sans-serif;
  color: #3d4d63;
}

.gp-stage.has-goal .gp-say {
  top: 64px;
}

.gp-say.is-new {
  animation: gp-pop 0.28s ease;
}

@keyframes gp-pop {
  from { transform: scale(0.96); }
  to { transform: none; }
}

/* The switch that won't turn off */
.gp-lock {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 10px 4px 4px;
  border: 2px solid var(--gp-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--gp-navy);
  font: 700 0.72rem/1.1 'Poppins', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.gp-lock::before {
  content: "";
  width: 34px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gp-blue) 50%, #fff 50%);
  box-shadow: inset 0 0 0 2px var(--gp-navy);
}

.gp-lock.is-wiggling {
  animation: gp-wiggle 0.45s ease;
}

@keyframes gp-wiggle {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px) rotate(-3deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* An invisible handle over the house, so it can be grabbed and pushed */
.gp-grab {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.gp-grab:active {
  cursor: grabbing;
}

.gp-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.gp-tool {
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid var(--gp-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--gp-navy);
  font: 600 0.82rem/1 'Poppins', sans-serif;
  box-shadow: 0 3px 0 var(--gp-navy);
  cursor: pointer;
}

.gp-tool:active,
.gp-tool[aria-pressed="true"] {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--gp-navy);
}

.gp-tool[aria-pressed="true"] {
  background: var(--gp-gold);
}

/* The deck */
.gp-deck {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}

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

.gp-tab {
  position: relative;
  min-height: 72px;
  padding: 10px 8px 8px;
  border: 2px solid var(--gp-navy);
  border-radius: 14px;
  background: #fff;
  color: var(--gp-navy);
  text-align: left;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 2px;
  box-shadow: 0 5px 0 var(--gp-navy);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.gp-tab:active,
.gp-tab[aria-selected="true"] {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--gp-navy);
}

.gp-tab[aria-selected="true"] {
  background: #eef3fa;
}

.gp-tab-gate {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 0.72rem/1 'Poppins', sans-serif;
}

.gp-tab--money .gp-tab-gate {
  background: var(--gp-green);
}

.gp-tab--loan .gp-tab-gate {
  background: var(--gp-blue);
}

.gp-tab-name {
  padding-right: 22px;
  font: 700 0.9rem/1.2 'Poppins', sans-serif;
}

.gp-tab-state {
  font: 500 0.78rem/1.25 'Inter', sans-serif;
  color: #46566c;
}

.gp-panel {
  min-height: 230px;
  padding: 18px;
  border: 2px solid var(--gp-navy);
  border-radius: 16px;
  background: var(--gp-light);
}

.gp-panel[hidden] {
  display: none;
}

.gp-hint {
  margin: 12px 0 0;
  font: 500 0.86rem/1.4 'Inter', sans-serif;
  color: #46566c;
  text-align: center;
}

/* Keys */
.gp-key {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--gp-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--gp-navy);
  font: 700 0.9rem/1.1 'Poppins', sans-serif;
  box-shadow: 0 5px 0 var(--gp-navy);
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.gp-key:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--gp-navy);
}

.gp-key:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: 0 5px 0 var(--gp-navy);
}

.gp-key--gold {
  background: var(--gp-gold);
}

/* Savings: coins and a jar */
.gp-savings {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  min-height: 120px;
}

.gp-pile {
  position: relative;
  width: 86px;
  height: 90px;
}

.gp-coin {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gp-gold) 55%, #e6ad2e 56%, #e6ad2e 62%, var(--gp-gold) 63%);
  border: 3px solid var(--gp-navy);
  box-shadow: 0 5px 0 var(--gp-gold-deep);
  cursor: grab;
  touch-action: none;
}

.gp-coin:nth-child(1) { left: 0; bottom: 0; }
.gp-coin:nth-child(2) { left: 30px; bottom: 6px; }
.gp-coin:nth-child(3) { left: 14px; bottom: 34px; }

.gp-coin.is-flying {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  cursor: grabbing;
  transition: none;
}

.gp-jar {
  position: relative;
  width: 104px;
  height: 118px;
  border: 3px solid var(--gp-navy);
  border-top-width: 0;
  border-radius: 10px 10px 26px 26px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset -10px 0 0 rgba(26, 54, 93, 0.05);
}

.gp-jar::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -10px;
  height: 12px;
  border: 3px solid var(--gp-navy);
  border-radius: 6px;
  background: var(--gp-navy);
}

.gp-jar.is-hot {
  box-shadow: inset 0 0 0 4px rgba(244, 193, 79, 0.8);
}

.gp-jar-coins {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
}

.gp-jar-coins span {
  height: 9px;
  border-radius: 5px;
  background: var(--gp-gold);
  border: 2px solid var(--gp-navy);
}

.gp-jar-coins span.is-new {
  animation: gp-drop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes gp-drop {
  from { transform: translateY(-60px); }
  to { transform: none; }
}

.gp-stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.gp-count {
  min-width: 8ch;
  text-align: center;
  font: 700 0.95rem/1.2 'Poppins', sans-serif;
  color: var(--gp-navy);
}

/* Faders */
.gp-fader-label {
  display: block;
  margin: 0 0 12px;
  font: 700 0.95rem/1.2 'Poppins', sans-serif;
  color: var(--gp-navy);
}

.gp-fader {
  position: relative;
  padding: 6px 4px 0;
}

.gp-fader input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.gp-fader input[type="range"]::-webkit-slider-runnable-track {
  height: 16px;
  border: 2px solid var(--gp-navy);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(26, 54, 93, 0.35) calc(25% - 2px) 25%), #fff;
}

.gp-fader input[type="range"]::-moz-range-track {
  height: 12px;
  border: 2px solid var(--gp-navy);
  border-radius: 8px;
  background: #fff;
}

.gp-fader input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  margin-top: -16px;
  border: 3px solid var(--gp-navy);
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, var(--gp-gold) 0 5px, #e6ad2e 5px 7px);
  box-shadow: 0 4px 0 var(--gp-navy);
}

.gp-fader input[type="range"]::-moz-range-thumb {
  width: 38px;
  height: 38px;
  border: 3px solid var(--gp-navy);
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, var(--gp-gold) 0 5px, #e6ad2e 5px 7px);
  box-shadow: 0 4px 0 var(--gp-navy);
}

.gp-fader input[type="range"]:active::-webkit-slider-thumb {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--gp-navy);
}

.gp-ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 4px;
  font: 600 0.78rem/1.2 'Inter', sans-serif;
  color: #46566c;
}

.gp-ticks span:last-child {
  text-align: right;
}

.gp-ticks--four {
  grid-template-columns: repeat(4, 1fr);
}

.gp-ticks--four span:nth-child(2),
.gp-ticks--four span:nth-child(3) {
  text-align: center;
}

/* The benchmark: a hard stop drawn under the middle notch */
.gp-floor {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--gp-navy) 0 6px, var(--gp-gold) 6px 12px);
  color: transparent;
  font: 700 0.72rem/1.4 'Poppins', sans-serif;
  white-space: nowrap;
}

.gp-floor::after {
  content: "Bank's benchmark";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 4px;
  color: var(--gp-navy);
}

.gp-fader--floor {
  padding-bottom: 42px;
}

/* Below the benchmark the track is dead travel: it moves, but doesn't count. */
.gp-fader--floor::before {
  content: "";
  position: absolute;
  left: 6px;
  width: calc(50% - 6px);
  top: 22px;
  height: 16px;
  border-radius: 8px 0 0 8px;
  background: repeating-linear-gradient(135deg, rgba(26, 54, 93, 0.16) 0 5px, transparent 5px 10px);
  pointer-events: none;
}

.gp-fader--floor .gp-ticks {
  margin-top: 30px;
}

.gp-fader--floor.is-below .gp-floor {
  animation: gp-clunk 0.3s ease;
}

@keyframes gp-clunk {
  0%, 100% { transform: translateX(-50%); }
  30% { transform: translate(-50%, 3px); }
  60% { transform: translate(-50%, -1px); }
}

/* Other loans: blocks you pay off */
.gp-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gp-block {
  min-height: 108px;
  padding: 12px;
  border: 2px solid var(--gp-navy);
  border-radius: 14px;
  background: var(--gp-coral);
  color: #fff;
  display: grid;
  align-content: space-between;
  gap: 8px;
  text-align: left;
  box-shadow: 0 7px 0 var(--gp-navy);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
}

.gp-block:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--gp-navy);
}

.gp-block-name {
  font: 800 1rem/1.15 'Poppins', sans-serif;
}

.gp-block-do {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gp-coral);
  font: 700 0.78rem/1.2 'Poppins', sans-serif;
}

.gp-block.is-paid {
  background: repeating-linear-gradient(135deg, #fff 0 10px, #eef3fa 10px 20px);
  color: var(--gp-navy);
  border-style: dashed;
  box-shadow: 0 2px 0 rgba(26, 54, 93, 0.3);
  transform: translateY(5px);
}

.gp-block.is-paid .gp-block-do {
  background: var(--gp-navy);
  color: #fff;
}

.gp-block.is-paid .gp-block-name {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

/* Card limit: a card that shrinks, then gets cut up */
.gp-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 118px;
  margin-bottom: 12px;
}

.gp-card {
  --limit: 1;
  position: relative;
  width: calc(120px + 110px * var(--limit));
  height: 104px;
  border: 3px solid var(--gp-navy);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gp-blue), #1c4f8f);
  color: #fff;
  box-shadow: 0 6px 0 var(--gp-navy);
  transition: width 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), transform 0.35s ease, opacity 0.35s ease;
}

.gp-card-chip {
  position: absolute;
  left: 14px;
  top: 32px;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: var(--gp-gold);
  border: 2px solid var(--gp-navy);
}

.gp-card-name {
  position: absolute;
  left: 14px;
  top: 10px;
  font: 700 0.78rem/1 'Poppins', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gp-card-balance {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font: 700 0.78rem/1 'Poppins', sans-serif;
}

.gp-card.is-closed {
  background: repeating-linear-gradient(135deg, #fff 0 10px, #eef3fa 10px 20px);
  color: var(--gp-navy);
  border-style: dashed;
  box-shadow: none;
  clip-path: polygon(0 0, 46% 0, 54% 100%, 0 100%, 0 0, 58% 0, 100% 0, 100% 100%, 62% 100%);
  transform: rotate(-4deg);
}

/* Family help: a three-way rocker */
.gp-rocker {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gp-rocker legend {
  grid-column: 1 / -1;
  float: left;
  width: 100%;
}

.gp-rocker label {
  position: relative;
  display: block;
  cursor: pointer;
}

.gp-rocker input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.gp-rocker span {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 10px 6px;
  border: 2px solid var(--gp-navy);
  border-radius: 14px;
  background: #fff;
  color: var(--gp-navy);
  font: 700 0.95rem/1.2 'Poppins', sans-serif;
  text-align: center;
  box-shadow: 0 6px 0 var(--gp-navy);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.gp-rocker input:checked + span {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--gp-navy);
  background: var(--gp-gold);
}

.gp-rocker input:focus-visible + span {
  outline: 3px solid var(--gp-navy);
  outline-offset: 3px;
}

/* Notes below the playground */
.gp-notes {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.gp-notes h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
  color: var(--gp-navy);
  margin: 0 0 14px;
}

.gp-notes p,
.gp-list dd {
  font-size: 1.04rem;
  line-height: 1.7;
}

.gp-list {
  margin: 20px 0;
}

.gp-list dt {
  margin-top: 16px;
  font: 700 1.05rem/1.3 'Poppins', sans-serif;
  color: var(--gp-navy);
}

.gp-list dd {
  margin: 4px 0 0;
}

.gp-notes a {
  color: var(--gp-navy);
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gp-close {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-secondary-blue) 100%);
  color: #fff;
}

.gp-close-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.gp-close h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.gp-close-links {
  display: grid;
  gap: 12px;
}

.gp-close-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.gp-close-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(244, 193, 79, 0.6);
}

.gp-close-links a.gp-primary {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #e7c675 100%);
  border-color: transparent;
  color: var(--brand-navy) !important;
}

.gp-disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #545d6b;
}

/* Without JavaScript the playground can't run, so the page opens on the notes. */
html:not(.gp-js) .gp-scenes,
html:not(.gp-js) .gp-bench {
  display: none;
}

/* Tablets and phones: the scene sits on top and stays in view while you
   work the controls below it. */
@media (max-width: 900px) {
  .gp {
    padding: 20px 0 28px;
  }

  .gp h1 {
    padding: 0 20px;
    text-align: left;
  }

  .gp-scenes {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .gp-bench {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .gp-stage {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 0;
    height: min(46vh, 420px);
    height: min(46svh, 420px);
    border-right: 0;
    border-bottom: 2px solid var(--gp-navy);
  }

  .gp-say {
    max-width: calc(100% - 28px);
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .gp-stage.has-goal .gp-say {
    top: 56px;
  }

  .gp-goal {
    font-size: 0.84rem;
    padding: 6px 10px;
  }

  .gp-lock {
    font-size: 0.7rem;
    padding: 3px 8px 3px 3px;
    min-height: 30px;
  }

  .gp-lock::before {
    width: 28px;
    height: 18px;
  }

  .gp-deck {
    padding: 16px;
  }

  .gp-tab {
    min-height: 64px;
  }

  .gp-panel {
    min-height: 0;
  }

  .gp-close-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 56px 20px 64px;
  }

  .gp-notes {
    padding: 44px 20px 52px;
  }
}

/* Phones on their side are too short to share the screen, so the scene
   scrolls with the page at a height it can draw in. */
@media (max-width: 900px) and (max-height: 560px) {
  .gp-stage {
    position: relative;
    height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-chip,
  .gp-tab,
  .gp-key,
  .gp-block,
  .gp-card,
  .gp-rocker span {
    transition: none;
  }

  .gp-say.is-new,
  .gp-lock.is-wiggling,
  .gp-jar-coins span.is-new,
  .gp-fader--floor.is-below .gp-floor {
    animation: none;
  }
}
