:root {
  --text: #f6e8d8;
  --muted: rgba(246, 232, 216, 0.8);
  --accent: #ffcfa8;
  --ink: #16100e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #231a16;
  color: var(--text);
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
}

.banner {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 3;
  background: rgba(22, 16, 14, 0.45);
  transition: opacity 400ms ease;
}

.banner-inner {
  max-width: 620px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.95;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.banner p {
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.banner .small {
  font-size: 0.9rem;
  opacity: 0.85;
}

button {
  display: block;
  margin: 26px auto 0;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #f6e8d8, #ffcfa8);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(255, 207, 168, 0.22);
}

button + button {
  margin-top: 12px;
}

button.quiet {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: opacity 800ms ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

#xrButton.hidden,
#fbButton.hidden,
#gButton.hidden {
  display: none;
}

.webcam {
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 180px;
  border-radius: 10px;
  transform: scaleX(-1); /* a mirror, the way you expect to see yourself */
  opacity: 0.85;
  z-index: 2;
}

/* until the game has loaded: no buttons to press in vain */
.banner.loading button,
.banner:not(.loading) #status {
  display: none;
}

/* live counts from the shared map, under the buttons */
.banner .live {
  margin-top: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.banner .live:empty {
  display: none;
}

/* the opening screen's wreath of flowers, behind the words (src/garden/garland.js) */
#garland { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.banner-inner { position: relative; }
.eyebrow { color: #b8442e; }

.banner a { color: inherit; }

.banner .small, .banner .live { text-shadow: 0 1px 6px rgba(20, 10, 6, 0.9), 0 0 2px rgba(20, 10, 6, 0.9); } /* legible over the wreath */

/* the lobby: the world right now, between the title and the game */
.lobby { position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: 14px; padding: 22px 28px; box-sizing: border-box; color: var(--text); background: radial-gradient(120% 90% at 30% 20%, rgba(60, 34, 26, 0.82), rgba(16, 10, 9, 0.93)); backdrop-filter: blur(6px); overflow: auto; }
.lobby.hidden { display: none; }
.lobby header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lobby .eyebrow { margin: 0; color: var(--accent); font: 600 13px Inter, system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.lobby h2 { margin: 2px 0 0; font: 600 clamp(28px, 4vw, 48px) Georgia, serif; }
.lobby .counts { display: flex; gap: 26px; }
.lobby .counts div { text-align: center; }
.lobby .counts b { display: block; font: 700 clamp(26px, 3.4vw, 44px) Inter, system-ui, sans-serif; color: var(--accent); }
.lobby .counts span { font: 500 12px Inter, system-ui, sans-serif; letter-spacing: 0.14em; color: var(--muted); }
.lobby-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 22px; min-height: 0; }
.lobby-map { position: relative; min-height: 300px; border: 1px solid rgba(246, 232, 216, 0.22); border-radius: 18px; background: rgba(0, 0, 0, 0.22); overflow: hidden; }
.lobby-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lobby .call { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; text-align: center; font: italic 400 clamp(15px, 1.6vw, 20px) Georgia, serif; color: var(--text); text-shadow: 0 1px 6px #000; }
.lobby aside { overflow: auto; padding-right: 6px; }
.lobby h3 { margin: 16px 0 6px; font: 700 12px Inter, system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lobby ul { list-style: none; margin: 0; padding: 0; font: 400 16px Georgia, serif; }
.lobby li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.lobby li.none { color: var(--muted); font-style: italic; }
.lobby .online li { justify-content: flex-start; align-items: center; font-weight: 600; }
.lobby .online i { width: 9px; height: 9px; border-radius: 50%; background: #78dcff; box-shadow: 0 0 0 0 rgba(120, 220, 255, 0.7); animation: lobby-pulse 1.6s infinite; }
.lobby .online li.you i { background: #ff965a; }
.lobby .away { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.lobby .away li { padding: 0; }
.lobby .board b { font: 700 15px Inter, system-ui, sans-serif; }
.lobby .news li { font-size: 14px; }
.lobby .news em { color: var(--muted); font: 400 12px Inter, system-ui, sans-serif; white-space: nowrap; }
.lobby .me { padding: 10px 14px; border-radius: 12px; background: rgba(246, 232, 216, 0.1); }
.lobby .me b { display: block; font: 600 22px Georgia, serif; }
.lobby .me span { font: 500 13px Inter, system-ui, sans-serif; color: var(--muted); }
.lobby footer { display: flex; gap: 12px; align-items: center; }
.lobby footer button { margin: 0; }
.lobby #diveButton { font-size: 20px; padding: 14px 44px; }
.lobby #lobbyXr.hidden { display: none; }
@keyframes lobby-pulse { 70% { box-shadow: 0 0 0 9px rgba(120, 220, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(120, 220, 255, 0); } }
@media (max-width: 760px) { .lobby-main { grid-template-columns: 1fr; } .lobby .counts { gap: 14px; } }

/* choosing where your Hand goes, on a screen */
.places { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; width: min(880px, calc(100vw - 32px)); padding: 14px 18px; box-sizing: border-box; border-radius: 16px; background: rgba(22, 16, 14, 0.82); color: var(--text); text-align: center; }
.places.hidden { display: none; }
.places p { margin: 0 0 10px; font: 600 17px Georgia, serif; }
.places #placeList { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.places button { margin: 0; }
.places #placeList button { flex: 1 1 220px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.places #placeList button.on { outline: 3px solid var(--accent); }
.places button:disabled { opacity: 0.45; }

/* "Explain this game to me" */
.guide { position: fixed; inset: 0; z-index: 8; overflow: auto; padding: 28px 18px; box-sizing: border-box; background: rgba(16, 10, 9, 0.94); color: var(--text); }
.guide.hidden { display: none; }
.guide-inner { max-width: 760px; margin: 0 auto; }
.guide #guideClose { position: sticky; top: 0; float: right; margin: 0; }
.guide .eyebrow { margin: 0; color: var(--accent); font: 600 13px Inter, system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.guide h2 { margin: 4px 0 18px; font: 600 clamp(30px, 5vw, 46px) Georgia, serif; }
.guide h3 { margin: 26px 0 6px; font: 600 24px Georgia, serif; color: var(--accent); }
.guide h3 span { display: inline-block; width: 1.7em; font: 700 15px Inter, system-ui, sans-serif; color: var(--muted); }
.guide p { margin: 0 0 10px; font: 400 18px/1.55 Georgia, serif; }
.guide table { width: 100%; border-collapse: collapse; font: 400 16px Inter, system-ui, sans-serif; }
.guide th { text-align: left; width: 34%; padding: 7px 10px 7px 0; color: var(--accent); vertical-align: top; }
.guide td { padding: 7px 0; border-bottom: 1px solid rgba(246, 232, 216, 0.14); }

/* faces: the pictures of signed-in players */
.lobby img.face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 7px; border: 1px solid rgba(246, 232, 216, 0.5); }
.lobby .me img.face { width: 46px; height: 46px; float: left; margin-right: 12px; }

/* the menus' text a tenth larger (the title, the lobby, the guide, the place chooser) */
.banner-inner, .lobby header, .lobby aside, .lobby footer, .guide-inner, .places { zoom: 1.1; }

/* icons: ink lines, in the colour of the text beside them */
svg.icon { vertical-align: -0.2em; margin-right: 0.4em; flex: none; filter: drop-shadow(0 0 3px rgba(255, 79, 224, 0.75)) drop-shadow(0 0 7px rgba(63, 243, 255, 0.45)); }
.features { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 14px 0 6px; padding: 0; color: var(--accent); font: 600 14px Inter, system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.features svg.icon { width: 1.6em; height: 1.6em; }
.lobby .counts svg.icon { width: 20px; height: 20px; margin: 0 0 2px; color: var(--muted); display: block; margin-inline: auto; }

/* a player's whorl as a small sign beside their name */
.lobby img.whorl { width: 26px; height: 26px; vertical-align: middle; margin-right: 6px; }
.lobby .me img.whorl { width: 46px; height: 46px; float: left; margin-right: 8px; }

/* the opening screen's frame: the neon garden round the edges, the middle cut out so the living world shows through */
.title-art { position: absolute; inset: -2%; background: url(assets/title/frame.jpg) center / cover no-repeat; pointer-events: none;
  -webkit-mask: url(assets/title/mask.png) center / 100% 100% no-repeat; mask: url(assets/title/mask.png) center / 100% 100% no-repeat; /* the sides (below the picture's own lettering) and the bottom: the middle and the top are cut out */
  animation: title-glow 7s ease-in-out infinite alternate; }
@keyframes title-glow { from { filter: brightness(0.9) saturate(1); transform: scale(1); } to { filter: brightness(1.2) saturate(1.25); transform: scale(1.025); } }
.banner .banner-inner { position: relative; }
.banner h1 { background: linear-gradient(180deg, #ffffff 0%, #e9d6ff 42%, #ff4fe0 58%, #b21fd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 2px #3ff3ff) drop-shadow(0 0 14px rgba(255, 79, 224, 0.75)); }
.banner .eyebrow { color: #ff7de9; text-shadow: 0 0 10px rgba(255, 79, 224, 0.9); }
@media (prefers-reduced-motion: reduce) { .title-art { animation: none; } }

/* the opening screen keeps its middle free: the title up top, the menu low, your whorl flying in between */
.banner { align-items: start; overflow: auto; }
.banner-inner { display: flex; flex-direction: column; align-items: center; min-height: calc(100vh / 1.1 - 40px); }
.banner-inner .features { margin-top: 12px; }
.banner-inner .gap { flex: 1; min-height: 34vh; } /* where your whorl flies */
.banner-inner .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-bottom: 8px; }
.banner-inner .menu button { margin: 0; }
/* the title on one line, as wide as the screen allows */
.banner-inner { max-width: min(1100px, 94vw); }
.banner h1 { white-space: nowrap; font-size: clamp(1.9rem, 7.2vw, 5.4rem); }

/* the opening screen in order: title, what you do, [your whorl], the world's numbers, one row of ways in, the small print */
.banner-inner .live { margin: 0 0 10px; }
.banner-inner .menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); width: min(1000px, 76vw); gap: 10px; }
.banner-inner .menu button { width: 100%; padding-inline: 10px; font-size: 0.82rem; white-space: nowrap; }
.banner-inner .menu #previewButton, .banner-inner .menu #xrButton { background: linear-gradient(90deg, #3ff3ff, #ff4fe0); color: #16100e; border-color: transparent; font-weight: 800; }
.banner-inner .menu #previewButton svg.icon, .banner-inner .menu #xrButton svg.icon { stroke: #16100e; filter: none; }
.banner .small { max-width: 860px; font-size: 0.72rem; opacity: 0.8; margin-top: 6px; }

/* always on screen while you fly: how many players are in your sky */
.live-pill { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 6px 14px 6px 28px; border-radius: 999px; background: rgba(11, 0, 26, 0.6); color: #fff; font: 700 14px Inter, system-ui, sans-serif; letter-spacing: 0.04em; pointer-events: none; }
.live-pill::before { content: ''; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #5cff9a; box-shadow: 0 0 8px #5cff9a; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: 0.35; } }
.lobby .lobby-name { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(246, 232, 216, 0.3); background: rgba(11, 0, 26, 0.35); color: #fff; font: 600 15px Inter, system-ui, sans-serif; }
.lobby .lobby-name::placeholder { color: rgba(246, 232, 216, 0.55); }

/* playing needs a sign-in: until then only the Google button */
.sign-note { display: none; margin: 0 0 6px; font: 600 15px Inter, system-ui, sans-serif; color: #fff; }
body.must-sign .sign-note { display: block; }
body.must-sign #xrButton, body.must-sign #previewButton, body.must-sign #webcamButton { display: none !important; }
body.must-sign #gButton { background: #fff; color: #16100e; font-weight: 800; }
/* a phone: buttons under the thumbs (src/touch.js) */
body.touch canvas { touch-action: none; }
body.touch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
.touch { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.touch .tb { position: absolute; pointer-events: auto; min-width: 58px; height: 58px; padding: 0 12px; border-radius: 29px; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(11, 0, 26, 0.55); color: #fff; font: 800 13px Inter, system-ui, sans-serif; letter-spacing: 0.05em; touch-action: none; }
.touch .tb:active { background: rgba(255, 43, 214, 0.7); }
.touch .sow { right: max(16px, env(safe-area-inset-right)); bottom: 22px; width: 92px; height: 92px; border-radius: 50%; font-size: 17px; background: rgba(255, 43, 214, 0.55); }
.touch .hyper { right: calc(max(16px, env(safe-area-inset-right)) + 104px); bottom: 22px; }
.touch .pour { right: max(16px, env(safe-area-inset-right)); bottom: 126px; }
.touch .scatter { right: calc(max(16px, env(safe-area-inset-right)) + 76px); bottom: 100px; }
.touch .prev { left: max(16px, env(safe-area-inset-left)); bottom: 22px; }
.touch .next { left: calc(max(16px, env(safe-area-inset-left)) + 68px); bottom: 22px; }
.touch .map { left: max(16px, env(safe-area-inset-left)); bottom: 92px; }
.touch .centre { left: calc(max(16px, env(safe-area-inset-left)) + 68px); bottom: 92px; font-size: 22px; }
/* a phone on its side: the menu must be on the first screen */
@media (max-height: 520px) {
  .banner-inner .gap { min-height: 6vh; }
  .banner-inner .features { display: none; }
  .banner h1 { font-size: clamp(1.6rem, 5.5vw, 3rem); margin: 0; }
  .banner-inner .menu { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); width: 92vw; }
  .banner .small { display: none; }
  .lobby { overflow: auto; padding: 12px 14px; }
  .lobby-main { min-height: 300px; }
}
.banner-inner .menu .sign-note { grid-column: 1 / -1; text-align: center; text-shadow: 0 1px 6px rgba(20, 10, 6, 0.9); }
body.must-sign .banner-inner .menu #gButton { order: -1; grid-column: 1 / -1; justify-self: center; width: auto; padding-inline: 34px; }
body.must-sign .banner-inner .menu .sign-note { order: -2; }

/* a gnome on board: its wish, always in sight */
.mission { position: fixed; top: 50px; left: 12px; z-index: 5; width: min(350px, 60vw); padding: 10px 18px 14px; border-radius: 16px; background: rgba(120, 10, 100, 0.72); border: 2px solid #ff7de9; color: #fff; text-align: center; pointer-events: none; box-shadow: 0 0 24px rgba(255, 79, 224, 0.45); }
.mission span { display: block; font: 800 12px Inter, system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #ffd0f6; }
.mission b { display: block; font: 700 18px Georgia, serif; margin: 2px 0; }
.mission i { font: italic 400 14px Georgia, serif; opacity: 0.85; }
.mission em { position: absolute; right: 14px; top: 8px; font: 800 14px Inter, system-ui, sans-serif; font-style: normal; }
.mission u { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); text-decoration: none; overflow: hidden; }
.mission s { display: block; height: 100%; background: #fff; text-decoration: none; }
@media (max-height: 520px) { .mission { top: 44px; padding: 6px 14px 8px; } .mission b { font-size: 16px; } .mission i { display: none; } }

/* the inventory: a rail down the right side, every icon the same size */
.inventory { position: fixed; top: 0; right: 0; bottom: 0; z-index: 4; width: 124px; padding: 8px 6px 12px; box-sizing: border-box; overflow-y: auto; background: linear-gradient(90deg, rgba(11, 0, 26, 0), rgba(11, 0, 26, 0.55) 22%); scrollbar-width: none; }
.inventory::-webkit-scrollbar { display: none; }
.inventory h4 { margin: 10px 0 4px; font: 800 10px Inter, system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd0f6; text-align: center; text-shadow: 0 1px 4px #000; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.inv { display: block; padding: 3px 0 2px; margin: 0; border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: rgba(246, 232, 216, 0.14); color: #fff; text-align: center; cursor: default; min-width: 0; }
.inv canvas { position: static; inset: auto; display: block; width: 40px; height: 40px; margin: 0 auto; }
.inv b { display: block; font: 800 11px Inter, system-ui, sans-serif; line-height: 1.1; }
.inv i { display: block; min-height: 10px; font: 500 9px Inter, system-ui, sans-serif; font-style: normal; opacity: 0.75; line-height: 1.1; }
.inv.carried, .inv.chosen { cursor: pointer; background: rgba(246, 232, 216, 0.24); }
.inv.chosen { border-color: #ffd34d; box-shadow: 0 0 10px rgba(255, 211, 77, 0.7); }
.inv.found canvas, .inv.sown canvas { opacity: 0.6; }
.inv.found b, .inv.sown b, .inv.met b { font-weight: 600; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
body.touch .inventory { display: none; }
@media (max-width: 900px), (max-height: 520px) { .inventory { display: none; } }

.touch .pause { left: max(16px, env(safe-area-inset-left)); bottom: 162px; font-size: 16px; }
.touch .bag { left: calc(max(16px, env(safe-area-inset-left)) + 68px); bottom: 162px; }

/* ---- polish ---- */
.banner-inner .menu { width: min(880px, 64vw); } /* inside the wreath, nothing clipped by a flower */
.banner .small { max-width: 620px; padding: 6px 16px; border-radius: 12px; background: rgba(11, 0, 26, 0.55); backdrop-filter: blur(4px); line-height: 1.45; }
.banner .live { padding: 4px 14px; border-radius: 999px; background: rgba(11, 0, 26, 0.4); }
.lobby .call { left: 0; right: 0; bottom: 0; padding: 26px 18px 12px; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, rgba(16, 10, 9, 0), rgba(16, 10, 9, 0.85) 55%); }
.inventory { width: 128px; background: linear-gradient(90deg, rgba(11, 0, 26, 0), rgba(11, 0, 26, 0.28)); }
.inv { backdrop-filter: blur(3px); background: rgba(20, 8, 34, 0.5); border-color: rgba(255, 255, 255, 0.22); transition: transform 120ms ease, border-color 120ms ease; }
.inv.carried, .inv.chosen { background: rgba(20, 8, 34, 0.62); }
.inv.carried:hover { transform: scale(1.06); border-color: #fff; }
.live-pill { backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.18); }
.mission { backdrop-filter: blur(4px); }
button { transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease; }
button:hover:not(.inv):not(.tb) { transform: translateY(-1px); filter: brightness(1.08); }
button:focus-visible, input:focus-visible { outline: 2px solid #3ff3ff; outline-offset: 2px; }
.lobby .lobby-name:focus { border-color: #ff7de9; outline: none; box-shadow: 0 0 0 3px rgba(255, 79, 224, 0.25); }
.banner-inner .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, 64vw); } /* two tidy rows: no label ever touches its neighbour */
@media (max-height: 520px) { .banner-inner .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 92vw; } .banner-inner .menu button { font-size: 0.66rem; } }
.lobby .news li:nth-child(n+6) { display: none; } /* five lines of news: the list never runs off the screen */
.lobby aside { overflow: hidden; }

/* the opening's centrepiece: a round window of the title film, over the world; it goes with the title when you start */
.banner-inner .gap { display: grid; place-items: center; }
.title-video { position: static; border: 0; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 18px rgba(255, 79, 224, 0.75)) drop-shadow(0 0 44px rgba(63, 243, 255, 0.55)); --unused: 0 0 0 6px rgba(255, 79, 224, 0.35), 0 0 60px rgba(63, 243, 255, 0.55), 0 18px 60px rgba(0, 0, 0, 0.5); animation: titleFloat 6s ease-in-out infinite; }
@keyframes titleFloat { 50% { transform: translateY(-8px) scale(1.015); } }
@media (max-height: 520px) { .title-video { display: none; } }

/* SOW MODE: the bubble-gum cue. You are low over sand with seeds: go on, sow */
.sow-cue { position: fixed; left: 50%; bottom: 34%; transform: translateX(-50%); z-index: 5; padding: 9px 26px 11px; border-radius: 999px; text-align: center; pointer-events: none; color: #fff; background: linear-gradient(135deg, #ff9ad5, #ff4fe0 55%, #c86bff); border: 2px solid #ffffff; box-shadow: 0 0 0 4px rgba(255, 154, 213, 0.35), 0 0 26px rgba(255, 79, 224, 0.8), 0 6px 18px rgba(0, 0, 0, 0.35); animation: sowBob 1.1s ease-in-out infinite; }
.sow-cue b { display: block; font: 900 17px Inter, system-ui, sans-serif; letter-spacing: 0.14em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.sow-cue span { display: block; font: 700 12px Inter, system-ui, sans-serif; letter-spacing: 0.06em; opacity: 0.95; }
.sow-cue i { position: absolute; font-style: normal; color: #fff; text-shadow: 0 0 8px #fff, 0 0 16px #ff9ad5; animation: sowTwinkle 1.3s ease-in-out infinite; pointer-events: none; }
.sow-cue i:nth-child(1) { left: -18px; top: -10px; font-size: 20px; }
.sow-cue i:nth-child(2) { right: -14px; top: -14px; font-size: 14px; animation-delay: 0.3s; }
.sow-cue i:nth-child(3) { right: -24px; bottom: -8px; font-size: 22px; animation-delay: 0.65s; }
.sow-cue i:nth-child(4) { left: -10px; bottom: -14px; font-size: 13px; animation-delay: 0.95s; }
@keyframes sowBob { 50% { transform: translateX(-50%) translateY(-5px) scale(1.03); } }
@keyframes sowTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.25) rotate(28deg); } }
.sow-cue.go { background: linear-gradient(135deg, #7dffb0, #3ff3ff 55%, #ff9ad5); animation: sowBob 0.55s ease-in-out infinite; }
@media (max-height: 520px) { .sow-cue { bottom: 40%; padding: 5px 16px 7px; } .sow-cue b { font-size: 13px; } }

/* seeds you pick up fly to their cell (src/pickup.js); a quiet tally counts up beside the rail */
canvas.pickup-seed { position: fixed; inset: auto; left: 0; top: 0; width: 22px; height: 22px; z-index: 6; pointer-events: none; filter: drop-shadow(0 0 4px rgba(255, 220, 160, 0.8)); }
#pickupTally { position: fixed; right: 132px; z-index: 6; pointer-events: none; font: 700 12px Inter, system-ui, sans-serif; color: #fff4dc; text-shadow: 0 1px 4px #000; opacity: 0; white-space: nowrap; }
#pickupTally.on { animation: tally 1.9s ease-out forwards; }
@keyframes tally { 0% { opacity: 0; transform: translateX(8px); } 12% { opacity: 0.92; transform: none; } 70% { opacity: 0.92; } 100% { opacity: 0; transform: translateY(-6px); } }
