/* Banana Grabber: same palette, borders and pressed-shadow buttons as the app (Theme.swift). */

@font-face {
  font-family: "Minecraft";
  src: url("fonts/Minecraft.ttf") format("truetype");
  font-display: swap;
}

:root {
  --yellow: #ffe135;
  --ripe: #fac71a;
  --cream: #fff8dc;
  --peel: #5c4033;
  --green: #8cb333;
  --red: #e62626;
  --blue: #2673f2;
  --sky: #b5d8f2;
  --dirt: #8b5e3c;
  --ink: var(--peel);
  --pixel: "Minecraft", ui-monospace, "SF Mono", Menlo, monospace;
  --sys: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --menubar: 30px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--menubar) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}

img { image-rendering: pixelated; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.125em; }
.sys { font-family: var(--sys); letter-spacing: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons (BananaButtonStyle) ---------- */

.btn {
  --shadow: 3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px;
  background: var(--cream);
  border: 2px solid var(--peel);
  box-shadow: var(--shadow) var(--shadow) 0 var(--peel);
  font-family: var(--pixel); font-size: 14px; line-height: 1.2;
  text-decoration: none; text-transform: uppercase;
  cursor: pointer; user-select: none;
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.btn:hover { background: #fffbe9; }
.btn:active, .btn[aria-pressed="true"] { transform: translate(var(--shadow), var(--shadow)); box-shadow: 0 0 0 var(--peel); }
.btn--gold { background: var(--ripe); }
.btn--gold:hover { background: var(--yellow); }
.btn--big { --shadow: 6px; border-width: 4px; padding: 16px 24px; font-size: 20px; gap: 14px; }
.btn--big .icon { width: 28px; height: 28px; }
.btn-stack { display: grid; text-align: left; gap: 4px; }
.btn-sub { font-size: 11px; text-transform: none; opacity: 0.75; letter-spacing: 0.04em; }

.kbd {
  display: inline-block; min-width: 1.9em; padding: 2px 7px;
  font-family: var(--sys); font-size: 0.9em; font-weight: 600; line-height: 1.4; text-align: center;
  background: var(--cream); border: 2px solid var(--peel); box-shadow: 0 3px 0 var(--peel);
}

/* Annotation marks borrowed from the editor's tools. */
.mark-hl { background: linear-gradient(transparent 45%, rgb(255 225 53 / 0.85) 45%, rgb(255 225 53 / 0.85) 92%, transparent 92%); padding: 0 4px; }
.mark-box { outline: 4px solid var(--red); outline-offset: 4px; }
.mark-red { color: var(--red); }

/* ---------- Menu bar ---------- */

.menubar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--menubar);
  display: flex; align-items: center; gap: 4px; padding: 0 12px;
  background: rgb(255 248 220 / 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--peel);
  font-size: 13px; line-height: 1;
}
.menubar a, .menubar .mb-item { padding: 6px 8px; text-decoration: none; white-space: nowrap; }
.menubar a:hover { background: var(--yellow); }
.mb-app { display: flex; align-items: center; gap: 8px; }
.mb-app .icon { width: 16px; height: 16px; }
.mb-spacer { flex: 1; }
.mb-clock { font-family: var(--sys); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.mb-banana {
  display: grid; place-items: center; width: 34px; height: 24px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.mb-banana .icon { width: 18px; height: 18px; }
.mb-banana:hover, .mb-banana[aria-expanded="true"] { background: var(--yellow); }

.menu {
  position: fixed; top: calc(var(--menubar) + 2px); right: 72px; z-index: 60;
  min-width: 270px; padding: 6px;
  background: var(--cream); border: 2px solid var(--peel); box-shadow: 4px 4px 0 var(--peel);
  font-size: 13px;
}
.menu[hidden] { display: none; }
.menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: none; border: 0; text-align: left; cursor: pointer;
}
.menu button:hover, .menu button:focus-visible { background: var(--yellow); outline: none; }
.menu .icon { width: 15px; height: 15px; }
.menu .label { flex: 1; }
.menu .keys { font-family: var(--sys); font-size: 13px; opacity: 0.6; letter-spacing: 0.08em; }
.menu hr { border: 0; border-top: 2px dotted rgb(92 64 51 / 0.35); margin: 4px 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--menubar) + 56px) 0 0;
  background: linear-gradient(var(--sky) 0 25%, #c3e0f5 25% 50%, #d0e7f7 50% 75%, #ddeef9 75%);
  border-bottom: 4px solid var(--peel);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 24px; }
.hero-copy { padding-bottom: 104px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
  background: var(--cream); border: 2px solid var(--peel); box-shadow: 3px 3px 0 var(--peel);
  font-size: 12px; text-transform: uppercase;
}
.chip .dot { width: 8px; height: 8px; background: var(--red); }
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(48px, 9vw, 116px); line-height: 0.95; font-weight: normal; letter-spacing: 0;
  color: var(--yellow);
  text-shadow:
    -4px 0 var(--peel), 4px 0 var(--peel), 0 -4px var(--peel), 0 4px var(--peel),
    -4px -4px var(--peel), 4px -4px var(--peel), -4px 4px var(--peel), 4px 4px var(--peel),
    10px 10px 0 var(--peel);
}
.hero h1 span { display: block; }
.hero .lede { font-size: clamp(16px, 1.8vw, 20px); max-width: 34ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.fine { font-size: 12px; margin: 22px 0 0; max-width: 52ch; opacity: 0.8; }

.gob-stage { position: relative; align-self: end; height: 500px; }
.gob {
  position: absolute; right: 8%; bottom: 52px; height: 440px;
  cursor: pointer; background: none; border: 0; padding: 0;
  transform-origin: 50% 100%;
  animation: patrol 16s linear infinite;
}
.gob:hover, .gob:focus-visible { animation-play-state: paused; }
.gob:hover .gob-img, .gob:focus-visible .gob-img { animation-play-state: paused; }
.gob-img { height: 100%; width: auto; display: block; image-rendering: auto; filter: drop-shadow(6px 6px 0 rgb(92 64 51 / 0.25)); animation: bob 0.5s steps(2) infinite; }
.gob-img.spin { animation: spin 0.7s steps(8) 1; }
.bubble {
  position: absolute; right: 78%; top: -6px; z-index: 3; width: max-content; max-width: 230px;
  padding: 12px 14px; background: var(--cream); border: 3px solid var(--peel); box-shadow: 5px 5px 0 var(--peel);
  font-size: 15px; line-height: 1.4; text-transform: uppercase; text-align: left;
  animation: talk 16s steps(1) infinite;
}
.gob:hover .bubble, .gob:focus-visible .bubble { animation-play-state: paused; }
.bubble::after {
  content: ""; position: absolute; right: -18px; bottom: 14px; width: 15px; height: 12px;
  background: var(--cream); border: 3px solid var(--peel); border-left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ground {
  position: absolute; inset: auto 0 0; height: 56px; z-index: 1;
  background:
    linear-gradient(var(--green) 0 14px, #6f9028 14px 18px, transparent 18px),
    repeating-linear-gradient(90deg, var(--dirt) 0 24px, #7a5233 24px 32px, var(--dirt) 32px 56px, #946644 56px 64px);
}
.ground::before {
  content: ""; position: absolute; inset: -8px 0 auto; height: 8px;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 24px, var(--green) 24px 32px, transparent 32px 40px);
}

.cloud { position: absolute; z-index: 0; width: 120px; height: 24px; background: #fff; animation: drift linear infinite; }
.cloud::before { content: ""; position: absolute; left: 24px; top: -16px; width: 56px; height: 16px; background: #fff; }
.cloud::after { content: ""; position: absolute; left: 40px; top: -28px; width: 24px; height: 12px; background: #fff; }
.cloud.c1 { top: 110px; animation-duration: 70s; animation-delay: -20s; }
.cloud.c2 { top: 210px; transform: scale(0.7); animation-duration: 95s; animation-delay: -60s; }
.cloud.c3 { top: 64px; transform: scale(1.3); animation-duration: 120s; animation-delay: -90s; }

/* 16s loop: ride in leaning forward, brake with a wobble, talk, lean and ride off, wait offstage. */
@keyframes patrol {
  0% { transform: translateX(-110vw) rotate(5deg); }
  14% { transform: translateX(0) rotate(5deg); }
  16% { transform: translateX(0) rotate(-4deg); }
  18% { transform: translateX(0) rotate(1deg); }
  19%, 66% { transform: translateX(0) rotate(0); }
  68% { transform: translateX(0) rotate(6deg); }
  84%, 100% { transform: translateX(110vw) rotate(6deg); }
}
@keyframes talk { 0% { opacity: 0; } 19% { opacity: 1; } 66% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes drift { from { left: -160px; } to { left: 110%; } }

/* ---------- Quote ticker ---------- */

.ticker { overflow: hidden; background: var(--peel); color: var(--yellow); border-bottom: 4px solid var(--peel); }
.ticker-track { display: flex; width: max-content; animation: scroll 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; white-space: nowrap; font-size: 15px; }
.ticker-track .icon { color: var(--yellow); width: 18px; height: 18px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--yellow { background: var(--yellow); border-block: 4px solid var(--peel); }
.kicker { display: inline-block; font-size: 13px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section h2 {
  margin: 0 0 16px; font-weight: normal; letter-spacing: 0;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.05; text-transform: uppercase;
}
.section-lede { max-width: 60ch; margin: 0 0 44px; font-size: 17px; }

/* ---------- Editor mock ---------- */

.window {
  border: 4px solid var(--peel); box-shadow: 10px 10px 0 var(--peel);
  background: var(--cream); position: relative; outline: none;
}
.titlebar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: var(--cream); border-bottom: 2px solid var(--peel); font-size: 13px;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border: 2px solid var(--peel); }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.titlebar .title { flex: 1; text-align: center; margin-right: 52px; }

.toolbar {
  display: flex; gap: 6px; padding: 10px; overflow-x: auto;
  background: var(--yellow); border-bottom: 2px solid var(--peel);
  scrollbar-width: thin;
}
.toolbar .spacer { flex: 1 0 16px; }
.tool {
  --shadow: 2px;
  display: grid; justify-items: center; gap: 4px; min-width: 50px; padding: 6px 6px 5px;
  font-size: 8px; text-transform: none; flex: none; margin: 0 2px 2px 0;
}
.tool .icon { width: 16px; height: 16px; }

.editor-body { display: grid; grid-template-columns: 1fr 260px; min-height: 0; }
.stage { position: relative; padding: 20px; display: grid; place-items: center; background: var(--cream); }
.canvas-wrap { position: relative; width: 100%; max-width: 820px; }
.canvas-wrap canvas {
  display: block; width: 100%; height: auto; touch-action: none;
  border: 2px solid var(--peel); box-shadow: 6px 6px 0 rgb(92 64 51 / 0.35);
  cursor: crosshair; image-rendering: auto;
}
.canvas-wrap[data-tool="move"] canvas { cursor: grab; }
.text-entry {
  position: absolute; z-index: 2; min-width: 120px; padding: 2px 4px;
  font-family: var(--pixel); background: rgb(255 248 220 / 0.9); border: 2px dashed var(--peel); outline: none;
}

.sidebar { border-left: 2px solid var(--peel); display: flex; flex-direction: column; min-height: 0; max-height: 640px; }
.panel { padding: 12px; }
.panel + .panel { border-top: 2px solid var(--peel); }
.panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: normal; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.layers li button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; cursor: pointer;
  background: var(--cream); border: 2px solid rgb(92 64 51 / 0.35); text-align: left; font-size: 11px;
}
.layers li button[aria-pressed="true"] { border: 3px solid var(--peel); background: var(--yellow); }
.layers .icon { width: 12px; height: 12px; }
.layers-empty { font-size: 9px; opacity: 0.7; line-height: 1.6; }
.layer-actions { display: flex; gap: 6px; margin-top: 10px; }
.layer-actions .btn { padding: 5px 7px; }
.layer-actions .btn .icon { width: 12px; height: 12px; }
.prop-label { font-size: 9px; margin: 0 0 6px; opacity: 0.8; text-transform: uppercase; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.swatch { width: 24px; height: 24px; border: 2px solid rgb(92 64 51 / 0.45); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border: 3px solid var(--peel); box-shadow: 2px 2px 0 var(--peel); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .btn { padding: 5px 7px; }
.stepper output { min-width: 44px; text-align: center; font-size: 12px; }
.panel-hint { font-size: 9px; opacity: 0.7; line-height: 1.6; margin: 12px 0 0; }

.quote-card {
  margin: 12px; padding: 14px; cursor: pointer;
  background: var(--cream); border: 3px solid var(--peel); box-shadow: 4px 4px 0 var(--peel);
  font-size: 14px; line-height: 1.5;
}
.quote-card img { display: block; height: 110px; margin: 0 auto 10px; image-rendering: auto; }
.quote-card .setup { font-size: 11px; opacity: 0.7; margin: 0 0 8px; }
.quote-card .q { margin: 0 0 8px; }
.quote-card .by { text-align: right; margin: 0; }

.history { display: flex; gap: 10px; padding: 10px 12px; overflow-x: auto; background: var(--yellow); border-top: 2px solid var(--peel); }
.history button { flex: none; width: 96px; height: 60px; padding: 0; cursor: pointer; background: var(--cream); border: 2px solid rgb(92 64 51 / 0.35); }
.history button[aria-pressed="true"] { border: 3px solid var(--peel); }
.history img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }

.editor-toast, .toast {
  position: absolute; left: 50%; bottom: 84px; z-index: 5; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; white-space: nowrap;
  background: var(--yellow); border: 3px solid var(--peel); box-shadow: 4px 4px 0 var(--peel);
  font-size: 15px; pointer-events: none;
  animation: toast-in 0.2s steps(2);
}
.toast { position: fixed; bottom: 28px; z-index: 90; white-space: normal; width: max-content; max-width: calc(100% - 32px); }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }

.unlock-pop {
  position: absolute; z-index: 6; width: 290px; padding: 14px;
  background: var(--cream); border: 3px solid var(--peel); box-shadow: 5px 5px 0 var(--peel);
}
.unlock-pop h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: normal; }
.unlock-pop p { margin: 0 0 10px; font-size: 11px; line-height: 1.5; }
.unlock-pop input { width: 100%; padding: 8px; font-family: var(--sys); font-size: 14px; border: 2px solid var(--peel); background: #fff; margin-bottom: 10px; }
.unlock-pop .err { color: var(--red); font-size: 12px; min-height: 1.5em; }
.unlock-pop .row { display: flex; justify-content: flex-end; gap: 10px; }
.unlock-pop .btn { font-size: 11px; padding: 7px 10px; }

.editor-note { margin: 22px 0 0; font-size: 12px; opacity: 0.75; }

/* ---------- Clipboard ---------- */

.clip-grid { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: start; }
.clip-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.clip-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; font-size: 14px; line-height: 1.7; }
.clip-points .feature-icon { width: 40px; height: 40px; margin: 0; }
.clip-points .feature-icon .icon { width: 20px; height: 20px; }
.clip-points b { display: block; font-weight: normal; font-size: 15px; text-transform: uppercase; }
.picker { background: var(--cream); border: 4px solid var(--peel); box-shadow: 10px 10px 0 var(--peel); }
.picker-head { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--yellow); border-bottom: 2px solid var(--peel); font-size: 13px; }
.picker-head .icon { width: 18px; height: 18px; }
.picker-head input {
  flex: 1; min-width: 0; padding: 7px 9px; border: 2px solid rgb(92 64 51 / 0.35); background: #fff;
  font-family: var(--sys); font-size: 14px; color: var(--peel); outline: none;
}
.picker-head input:focus { border-color: var(--peel); }
.picker-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; min-height: 330px; align-content: start; }
.picker-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; cursor: pointer;
  background: none; border: 2px solid transparent; text-align: left;
  font-family: var(--sys); font-size: 13px; letter-spacing: 0;
}
.picker-list button[aria-selected="true"] { background: var(--yellow); border-color: var(--peel); }
.picker-list .text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-list .thumb { height: 52px; width: auto; border: 1px solid rgb(92 64 51 / 0.35); image-rendering: auto; }
.picker-list .pin { width: 12px; height: 12px; }
.picker-list .num { font-size: 11px; font-weight: 600; opacity: 0.55; }
.picker-empty { padding: 40px 10px; text-align: center; font-size: 12px; }
.picker-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px; background: var(--yellow); border-top: 2px solid var(--peel); font-size: 11px; }
.picker-foot span { opacity: 0.75; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 22px; background: var(--cream); border: 3px solid var(--peel); box-shadow: 6px 6px 0 var(--peel); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; background: var(--yellow); border: 2px solid var(--peel); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: normal; text-transform: uppercase; line-height: 1.3; }
.feature p { margin: 0; font-size: 13px; line-height: 1.75; }

/* ---------- Shortcuts ---------- */

.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; }
.shortcuts div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px dotted rgb(92 64 51 / 0.35); }
.shortcuts dt { font-size: 14px; }
.shortcuts dd { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Install ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 52px 22px 22px; background: var(--cream); border: 3px solid var(--peel); box-shadow: 6px 6px 0 var(--peel); font-size: 13px; line-height: 1.75; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 18px; display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--red); color: var(--cream); border: 3px solid var(--peel); font-size: 24px;
}
.steps h3 { margin: 0 0 8px; font-size: 16px; font-weight: normal; text-transform: uppercase; }
.steps p { margin: 0; }
.callout { display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: var(--cream); border: 3px dashed var(--peel); font-size: 13px; line-height: 1.75; }
.callout img { height: 84px; flex: none; image-rendering: auto; }
.callout p { margin: 0; }

/* ---------- Final CTA + footer ---------- */

.finale { text-align: center; }
.finale h2 { margin-bottom: 10px; }
.finale .strike { text-decoration: line-through; text-decoration-thickness: 6px; text-decoration-color: var(--red); }
.finale p { font-size: 18px; margin: 0 auto 36px; }

.footer { background: var(--peel); color: var(--cream); padding: 44px 0; font-size: 12px; line-height: 1.8; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 52px; height: 52px; image-rendering: auto; }
.footer a { color: var(--yellow); }
.footer .legal { opacity: 0.7; max-width: 60ch; margin: 18px 0 0; }

/* ---------- Grab overlay (the page's own ⌘⇧6) ---------- */

.grab-layer { position: fixed; inset: 0; z-index: 80; cursor: crosshair; background: rgb(92 64 51 / 0.18); touch-action: none; }
.grab-hint {
  position: fixed; top: calc(var(--menubar) + 18px); left: 50%; transform: translateX(-50%); z-index: 81;
  padding: 8px 14px; background: var(--cream); border: 3px solid var(--peel); box-shadow: 4px 4px 0 var(--peel); font-size: 13px; pointer-events: none;
}
.grab-sel {
  position: fixed; z-index: 82; pointer-events: none;
  border: 2px dashed var(--peel); background: rgb(255 225 53 / 0.18);
  box-shadow: 0 0 0 2px var(--yellow);
}
.grab-size { position: absolute; right: 0; bottom: -28px; padding: 2px 6px; background: var(--peel); color: var(--yellow); font-size: 11px; white-space: nowrap; }
.flash { position: fixed; inset: 0; z-index: 85; background: #fff; pointer-events: none; animation: flash 0.35s ease-out forwards; }
@keyframes flash { from { opacity: 0.9; } to { opacity: 0; } }

.gob-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 88; width: min(330px, calc(100% - 40px));
  animation: slide-up 0.3s steps(3);
}
.gob-pop .quote-card { margin: 0; }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }

.rain { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.rain .icon { position: absolute; top: -40px; color: var(--yellow); filter: drop-shadow(2px 2px 0 var(--peel)); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 80px)) rotate(var(--r, 180deg)); } }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .gob-stage { height: 360px; }
  .gob { height: 300px; right: 14%; }
  .bubble { font-size: 13px; max-width: 170px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .clip-grid { grid-template-columns: 1fr; }
  .editor-body { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; border-top: 2px solid var(--peel); max-height: none; }
  .sidebar-panels { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-panels .panel + .panel { border-top: 0; border-left: 2px solid var(--peel); }
}
@media (max-width: 640px) {
  .menubar .mb-nav, .mb-clock { display: none; }
  .menu { right: 8px; left: 8px; min-width: 0; }
  .section { padding: 64px 0; }
  .features, .steps, .shortcuts { grid-template-columns: 1fr; }
  .stage { padding: 10px; }
  .sidebar-panels { grid-template-columns: 1fr; }
  .sidebar-panels .panel + .panel { border-left: 0; border-top: 2px solid var(--peel); }
  .btn--big { font-size: 16px; padding: 14px 18px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .picker { box-shadow: 6px 6px 0 var(--peel); }
  .picker-foot { flex-direction: column; }
  .window { box-shadow: 6px 6px 0 var(--peel); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .gob, .gob-img, .bubble { animation: none !important; }
}
