/* Porch Patrol: the yard is one canvas between the top bar (treats, the waves, speed, the trowel) and the cat cards at
   the bottom. The title screen and the sheets are shared/mainmenu.js (menu.css, loaded after this); only their colors
   are set here (--sg-*). */
:root {
  --bg: #2f5a2a; --ink: #fffaf0; --ink-soft: #e4f2d4; --line: rgba(255, 250, 240, 0.22);
  --accent: #ffcf4a; --accent-ink: #2a1c10; --sheet: #fffaf0; --sheet-ink: #2b2a1e; --sheet-soft: #6c6a52;
  --wood: #8a5a36; --wood-hi: #b78254;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
* { touch-action: manipulation; }
html, body { margin: 0; height: 100%; }
body { font-family: "Baloo 2", ui-rounded, system-ui, sans-serif; color: var(--ink); background: var(--bg); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
.app { position: fixed; inset: 0; display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---- the top bar ---- */
.hud {
  flex: none; display: flex; align-items: center; gap: 8px; z-index: 5;
  padding: var(--sg-corner-top) 10px 6px var(--sg-corner-left);
  background: linear-gradient(#2c4a26, #3a6230); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.treats {
  flex: none; display: flex; align-items: center; gap: 5px; height: 48px; padding: 0 14px 0 6px; border-radius: 999px;
  background: linear-gradient(#ffe28a, #f5b33c); color: #3a2208; box-shadow: 0 2px 0 #8a5a16, inset 0 0 0 2px #fff3c4;
  font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; min-width: 104px;
}
.treats b { line-height: 1; padding-top: 3px; }
.treats.pop b { animation: bump 0.22s ease-out; }
.treats.short { animation: shake 0.3s; background: linear-gradient(#ffb0a0, #e5604a); }
.drag-ghost { position: fixed; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; z-index: 30; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.ti { width: 30px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -9 25 18'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe7a0'/%3E%3Cstop offset='.5' stop-color='%23f7b23a'/%3E%3Cstop offset='1' stop-color='%23d4791f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-11 0Q-1-9.5 6.5-1L11.5-6 10.5 0 11.5 6 6.5 1Q-1 9.5-11 0Z' fill='url(%23g)' stroke='%232b2033' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='-6.2' cy='-1.2' r='1.3' fill='%232b2033'/%3E%3C/svg%3E"); }
.wavebox { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wavebar { height: 10px; border-radius: 999px; background: rgba(10, 20, 6, 0.45); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.wavebar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffd34e, #ff8a4a); transition: width 0.4s; }
.wavebox span { font-weight: 800; font-size: 13px; line-height: 1.1; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbtn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; background: rgba(10, 20, 6, 0.4);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 16px; -webkit-tap-highlight-color: transparent;
}
.hbtn.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 #b98a1a; }
.trowel { background-repeat: no-repeat; background-position: center; background-size: 28px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 10l7-7' stroke='%237a4a26' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M15.5 8.5L10 3 3 10c-1.5 1.5-1.5 6 0 9 3 1.5 7.5 1.5 9 0l7-7z' fill='%23c8d0da' stroke='%232b2033' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M5 12l4 4' stroke='%23fff' stroke-width='1.3' opacity='.7'/%3E%3C/svg%3E"); }
.trowel.on { background-color: var(--accent); }
.nip { position: absolute; top: 6px; right: 8px; z-index: 4; background-color: rgba(10, 20, 6, 0.55); background-repeat: no-repeat; background-position: center 40%; background-size: 26px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c-.5-5 .3-10 1-16' stroke='%233f7a2a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='8' cy='15' rx='4' ry='2.2' transform='rotate(-35 8 15)' fill='%236fcf5a' stroke='%232b2033'/%3E%3Cellipse cx='16.5' cy='12.5' rx='4' ry='2.2' transform='rotate(35 16.5 12.5)' fill='%236fcf5a' stroke='%232b2033'/%3E%3Cellipse cx='9.5' cy='8.5' rx='3.4' ry='1.9' transform='rotate(-30 9.5 8.5)' fill='%236fcf5a' stroke='%232b2033'/%3E%3Ccircle cx='13' cy='4' r='2' fill='%23c9a8f0' stroke='%232b2033'/%3E%3C/svg%3E"); }
.nip b { position: absolute; right: 2px; bottom: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: #3f7a2a; color: #fff; font-size: 12px; line-height: 18px; text-align: center; box-shadow: 0 0 0 1.5px #2b2033; }
.nip.empty { opacity: 0.55; }
.nip.pop b { animation: bump 0.22s ease-out; }
.nip.empty b { background: #6a6a6a; }
.nip.on { background-color: #7be08f; }
.nip.ready:not(.on) { animation: nipglow 1.6s ease-in-out infinite; }
@keyframes nipglow { 50% { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 12px 3px rgba(123, 224, 143, 0.75); } }
@media (prefers-reduced-motion: reduce) { .nip.ready:not(.on) { animation: none; box-shadow: inset 0 0 0 2px #7be08f; } }


/* ---- the yard ---- */
.stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
#yard { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.banner {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); margin: 0; pointer-events: none; text-align: center;
  font-weight: 800; font-size: 34px; line-height: 1.05; color: #fff; -webkit-text-stroke: 2px #2b2033; paint-order: stroke fill;
  text-shadow: 0 4px 0 #2b2033; width: max-content; max-width: calc(100vw - 30px); animation: banner 1.8s ease-out forwards;
}
.banner small { display: block; font-size: 18px; -webkit-text-stroke: 1px #2b2033; }
.banner.warn { color: #ffd34e; }
.tip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; padding: 7px 14px 5px; border-radius: 14px;
  background: rgba(20, 14, 10, 0.78); font-weight: 800; font-size: 16px; text-align: center; width: max-content; max-width: calc(100vw - 30px);
  pointer-events: none; animation: breathe 1.6s ease-in-out infinite;
}

/* ---- the cat cards ---- */
.cards {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 5;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(var(--wood-hi), var(--wood)); box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.card {
  position: relative; height: 58px; border: 0; border-radius: 14px; padding: 0 4px 0 0; cursor: pointer; overflow: hidden;
  display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 3px; background: #fff6e2; color: #3a2a18;
  box-shadow: 0 3px 0 #5a3a20, inset 0 0 0 2px #e8d4a8; -webkit-tap-highlight-color: transparent; text-align: left;
}
.card img, .card canvas { width: 38px; height: 38px; display: block; justify-self: center; pointer-events: none; }
.card .nm { font-weight: 800; font-size: 12.5px; letter-spacing: -0.2px; line-height: 1.05; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card .cost { display: flex; align-items: center; gap: 1px; font-weight: 800; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.card .cost i { width: 16px; height: 12px; flex: none; }
.card > span { min-width: 0; }
.card .cool { position: absolute; left: 0; right: 0; top: 0; background: rgba(30, 20, 10, 0.55); pointer-events: none; }
.card.poor .cost { color: #b0302a; }
.card.poor, .card.wait { filter: saturate(0.4); }
.card.sel { box-shadow: 0 3px 0 #5a3a20, inset 0 0 0 3px #ff8a1a, 0 0 0 3px #ffd34e; transform: translateY(-3px); }
@media (max-width: 370px) { .card .nm { font-size: 11px; letter-spacing: -0.3px; } .card .cost { font-size: 14px; } }
.card:active { transform: translateY(1px); }
.card.locked { visibility: hidden; }
.card .info { position: absolute; top: 0; left: 0; width: 44px; height: 44px; box-sizing: border-box; padding: 0 24px 24px 0; display: grid; place-items: center; font: italic 800 10px/1 Georgia, serif; color: #fff6e2; z-index: 1; }
.card .info::before { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8a6a40; z-index: -1; }
.py-about-card { display: grid; justify-items: center; gap: 6px; text-align: center; }
.py-about-card canvas { width: 96px; height: 96px; }
.py-about-card p { margin: 0; }
.card.hint { animation: hint 1s ease-in-out infinite; }

/* ---- the end card and the first-meet card ---- */
.over { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(14, 20, 8, 0.45); }
.over-card {
  width: min(340px, 100%); padding: 18px 20px 16px; border-radius: 24px; text-align: center;
  background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.06);
  animation: drop 0.34s cubic-bezier(0.2, 1.3, 0.5, 1);
}
.over-kicker { margin: 0 0 4px; font-weight: 800; font-size: 26px; color: #3f7a2a; }
.over-kicker.bad { color: #b0302a; }
.over-art { display: flex; justify-content: center; gap: 4px; min-height: 8px; }
.over-art img, .over-art canvas { width: 72px; height: 72px; }
.over-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.over-nums p { margin: 0; }
.over-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--sheet-soft); }
.over-score { font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.over-score.small { font-size: 30px; line-height: 1.3; }
.over-score.new { color: #2f8a55; }
.over-line { margin: 10px 0 0; font-weight: 700; font-size: 16px; min-height: 22px; }
.over-new { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.over-new li { padding: 7px 12px 5px; border-radius: 12px; background: #eef7d8; font-weight: 700; font-size: 15px; }
.over-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn { min-height: 52px; border: 0; border-radius: 999px; padding: 4px 12px 2px; cursor: pointer; background: rgba(42, 34, 20, 0.1); color: var(--sheet-ink); font-weight: 800; font-size: 17px; -webkit-tap-highlight-color: transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 #b98a1a; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn:active { transform: scale(0.97); }
.meet-card h2 { margin: 4px 0 2px; font-size: 24px; }
.meet-text { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; }
.meet-art { display: flex; justify-content: center; }
.meet-art canvas { width: 120px; height: 120px; }

.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 30; transform: translate(-50%, -8px);
  margin: 0; padding: 8px 16px 6px; border-radius: 14px; max-width: calc(100vw - 32px); width: max-content;
  background: #fffaf0; color: var(--sheet-ink); font-weight: 800; font-size: 16px; text-align: center;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- sheets ---- */
.py-how p { margin: 0 0 10px; }
.py-how .row { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.py-how .row img, .py-how .row canvas { width: 48px; height: 48px; flex: none; }
.py-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.py-lv {
  min-height: 64px; border: 0; border-radius: 16px; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 0;
  background: #eef7d8; color: var(--sheet-ink); font-weight: 800; font-size: 22px; line-height: 1; -webkit-tap-highlight-color: transparent;
}
.py-lv small { font-size: 11px; font-weight: 700; color: var(--sheet-soft); }
.py-lv.done { background: #cfe8a8; }
.py-lv.next { box-shadow: inset 0 0 0 3px #3f7a2a; }
.py-lv.night { background: #d4d8f2; }
.py-lv.night.done { background: #aeb6e6; }
.py-lv.locked { opacity: 0.45; cursor: default; }
.py-looks h3 { margin: 4px 0 8px; font-size: 17px; }
.py-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.py-pick {
  min-height: 96px; border: 0; border-radius: 16px; padding: 6px 4px 4px; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 2px;
  background: rgba(42, 34, 20, 0.07); color: var(--sheet-ink); font-weight: 800; font-size: 14px; line-height: 1.15; -webkit-tap-highlight-color: transparent;
}
.py-pick.on { box-shadow: inset 0 0 0 3px #3f7a2a; background: #eef7d8; }
.py-pick.locked { opacity: 0.55; }
.py-pick small { font-weight: 700; font-size: 12px; color: var(--sheet-soft); }
.py-pick .face { width: 56px; height: 56px; display: grid; place-items: center; }
.py-pick .face svg { display: block; width: 100%; height: 100%; }
.py-swatch { width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15); }
.py-note { margin: 0 0 10px; font-weight: 700; color: var(--sheet-soft); }
.py-ach { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.py-ach li { display: flex; gap: 10px; align-items: center; padding: 8px 12px 6px; border-radius: 14px; background: rgba(42, 34, 20, 0.06); font-weight: 700; font-size: 15px; line-height: 1.25; }
.py-ach li b { display: block; font-size: 16px; }
.py-ach li.no { opacity: 0.55; }
.py-ach .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f4c44e; color: #6b4a0c; font-weight: 800; }
.py-ach li.no .dot { background: rgba(42, 34, 20, 0.14); color: transparent; }

/* ---- the title screen's colors (the layout is shared/mainmenu.js) ---- */
#mm {
  --sg-bg: linear-gradient(#7cc4ef 0%, #cfeedd 38%, #7fc25a 39%, #4f8f3a 100%);
  --sg-ink: #20361a; --sg-ink-soft: #3d5a2c;
  --sg-title: #fffaf0; --sg-title-shadow: 0 3px 0 #2b3a1e, 0 0 18px rgba(30, 60, 20, 0.35);
  --sg-accent: var(--accent); --sg-accent-ink: var(--accent-ink);
  --sg-card: #fffaf0; --sg-card-ink: var(--sheet-ink); --sg-line: rgba(30, 50, 20, 0.25);
}
#mm .py-title-art { display: block; width: 300px; max-width: 86vw; height: auto; aspect-ratio: 300 / 190; border-radius: 18px; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.7); }
#mm.sg-scened .py-title-art { box-shadow: none; border-radius: 0; }
.sg-sheet { --sg-sheet-bg: var(--sheet); --sg-sheet-ink: var(--sheet-ink); --sg-accent: #3f7a2a; --sg-accent-ink: #fff; --sg-ink-soft: var(--sheet-soft); }

@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes drop { from { transform: translateY(-40px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
@media (max-height: 700px) { .card { height: 50px; } .card img, .card canvas { width: 36px; height: 36px; } .card { grid-template-columns: 36px 1fr; } }
@media (max-width: 370px) { .card .nm { font-size: 12px; } .card .cost { font-size: 15px; } .treats { min-width: 92px; font-size: 24px; padding-right: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .over-card, .tip, .card.hint, .treats.pop b, .treats.short { animation: none; }
  .banner { animation: none; opacity: 1; }
  .toast { transition: none; }
}

/* ---- round 2: maps in the level list, the loadout, the story ---- */
.py-maps { display: grid; gap: 10px; }
.py-map-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; border-radius: 16px; color: #fff; margin-top: 6px; }
.py-map-head > span { flex: 1; min-width: 0; display: grid; }
.py-map-head b { font-size: 18px; line-height: 1.1; }
.py-map-head small { font-weight: 700; font-size: 13px; line-height: 1.25; opacity: 0.92; }
.py-map-head.locked { opacity: 0.55; }
.map-yard.py-map-head { background: linear-gradient(135deg, #4f8f3a, #7fc25a); }
.map-rain.py-map-head { background: linear-gradient(135deg, #3f5f7a, #5f9d70); }
.map-frost.py-map-head { background: linear-gradient(135deg, #6a8fc0, #a9c4e6); }
.map-ridge.py-map-head { background: linear-gradient(135deg, #7a8f3a, #c9b48a); }
.map-court.py-map-head { background: linear-gradient(135deg, #3b2f5c, #c97a4a); }
.py-story-btn { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #2b2a1e; font-weight: 800; font-size: 15px; }
.py-lv.map-rain { background: #dbe8f0; } .py-lv.map-rain.done { background: #b8d2e0; }
.py-lv.map-frost { background: #eef3fb; } .py-lv.map-frost.done { background: #cddcf0; }
.py-lv.map-ridge { background: #f2ecd8; } .py-lv.map-ridge.done { background: #e2d6a8; }
.py-lv.map-court { background: #efe2f2; } .py-lv.map-court.done { background: #dcc2e2; }
.py-loadout .py-note { margin-bottom: 6px; }
.py-note.small { font-size: 13px; }
.py-coming { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 0 0 8px; }
.py-coming small { font-weight: 800; color: var(--sheet-soft); margin-right: 4px; }
.py-coming canvas { width: 40px; height: 40px; }
.py-slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 0 0 10px; }
.py-slot { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 10px; padding: 2px; background: #eef7d8; box-shadow: inset 0 0 0 2px #3f7a2a; }
.py-slot.empty { background: rgba(42, 34, 20, 0.06); box-shadow: inset 0 0 0 2px rgba(42, 34, 20, 0.15); }
.py-slot canvas { width: 100%; height: 100%; display: block; }
.py-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.py-roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.py-roster .py-pick { min-height: 92px; font-size: 13px; }
.py-roster .py-pick .face { width: 48px; height: 48px; }
.py-roster .py-pick canvas { width: 48px; height: 48px; }
.py-roster .py-pick small { font-size: 11px; }
.story { position: fixed; inset: 0; z-index: 40; overflow: hidden; background: #1a2414; cursor: pointer; -webkit-user-select: none; user-select: none; }
.st-back { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(0.9) brightness(0.8); }
.story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.st-title { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 64px); margin: 0; text-align: center; color: #fffaf0; font-weight: 800; font-size: 30px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); animation: drop 0.6s ease-out both; z-index: 2; }
.st-skip { position: absolute; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 3; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fffaf0; color: #2b2a1e; font-weight: 800; font-size: 16px; }
.st-who { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); width: 46vw; max-width: 220px; aspect-ratio: 1; z-index: 2; transition: transform 0.45s cubic-bezier(.2, 1.4, .4, 1), opacity 0.3s, filter 0.3s; opacity: 0; }
.st-who.l { left: 4vw; transform: translateX(-120%); }
.st-who.r { right: 4vw; transform: translateX(120%); }
.st-who.in { opacity: 1; transform: none; filter: brightness(0.6); }
.st-who.in.talk { filter: none; animation: bob 0.9s ease-in-out infinite; }
.st-who img, .st-who canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.st-bubble { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); z-index: 3; min-height: 98px; padding: 12px 16px 10px; border-radius: 22px; background: #fffaf0; color: #2b2a1e; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
.st-bubble::before { content: ''; position: absolute; top: -14px; left: 40px; border: 14px solid transparent; border-top: 0; border-bottom-color: #fffaf0; }
.st-bubble.r::before { left: auto; right: 40px; }
.st-bubble.pop { animation: bump 0.25s ease-out; }
.st-bubble b { display: block; font-size: 15px; color: #3f7a2a; text-transform: uppercase; letter-spacing: 0.5px; }
.st-bubble p { margin: 2px 0 0; font-weight: 700; font-size: 19px; line-height: 1.3; }
.st-hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); margin: 0; text-align: center; z-index: 3; color: rgba(255, 250, 240, 0.8); font-weight: 700; font-size: 14px; animation: breathe 1.6s ease-in-out infinite; }
.st-march { position: absolute; left: 0; right: 0; top: 11%; height: 90px; z-index: 1; pointer-events: none; }
.st-marcher { position: absolute; width: 64px; height: 64px; left: -70px; animation: march 6.4s linear infinite; }
@keyframes march { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 140px)); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .st-who, .st-who.in.talk, .st-marcher, .st-title, .st-bubble.pop, .st-hint { animation: none; transition: none; } .st-marcher { display: none; } }
/* What a friend does: the picked card's line in play, and the last one tapped in the loadout (Bri, 2026-11-22). */
.tip.about { animation: none; width: auto; max-width: min(92vw, 420px); font-size: 15px; line-height: 1.25; white-space: normal; }
.py-about { position: sticky; top: 0; z-index: 2; background: var(--sg-sheet-bg, #fff8ec); box-shadow: inset 0 0 0 100px rgba(42, 34, 20, 0.08); margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 2.6em; }
