* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  background: #fdf6e9;
  color: #22384a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- skip navigation (visually hidden until focused) ---------- */
.se-skipnav {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 400;
  background: linear-gradient(180deg, #79c94e, #1e8a49);
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 138, 73, 0.35);
  transition: top 0.2s ease;
}
.se-skipnav:focus, .se-skipnav:focus-visible { top: 10px; }

/* ---------- header (ported from the coloring app / theme v104b) ---------- */
.se-siteheader { background: #fdf6e9; display: flex; flex-direction: column; width: 100%; }
.se-topbar {
  order: 1; display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto; box-sizing: border-box; padding: 4px 3%;
}
.se-topbar > * { min-width: 0; }
.se-brand { display: inline-flex; align-items: center; text-decoration: none; }
.se-brand img { height: 44px; max-height: 44px; width: auto; display: block; margin: 0 10px 0 0; }
.se-topactions { display: flex; align-items: center; gap: 4px; }
.se-iconbtn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: transparent; border: 0; padding: 2px 6px; margin: 0;
  font: inherit; color: #0d2b26; text-decoration: none; cursor: pointer;
}
.se-iconbtn i { font-size: 32px; color: #0d2b26; line-height: 1; }
.se-iconlabel {
  font-family: "Nunito", sans-serif; font-weight: 800; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: #22384a; line-height: 1;
}
/* purple Back pill (same as the coloring app's #backBtn) */
a.se-backbtn {
  background: linear-gradient(180deg, #8a63d2, #5b2a86);
  box-shadow: 0 3px 0 #3d1c5c;
  color: #fff;
  min-height: 44px; min-width: 0;
  padding: 8px 14px; font-size: 16px; margin-right: 4px;
  white-space: nowrap; flex: 0 0 auto;
}
a.se-backbtn:hover { background: linear-gradient(180deg, #8a63d2, #5b2a86); filter: brightness(1.07); }
a.se-backbtn:active { transform: translateY(2px); box-shadow: none; }
@media only screen and (max-width: 480px) {
  .se-topbar { gap: 6px; }
  .se-brand { min-width: 0; flex: 0 1 auto; }
  .se-brand img { height: 38px; max-height: 38px; max-width: 36vw; object-fit: contain; object-position: left center; }
  .se-topactions { min-width: 0; flex: 0 0 auto; gap: 2px; }
  /* Games stays in the header, fully visible — never shrunk or overlapped */
  .se-iconbtn { padding: 2px 4px; flex: 0 0 auto; }
  .se-iconbtn i { font-size: 28px; }
  .se-iconlabel { font-size: 11px; }
  .se-topactions .btn-action { font-size: 14px; padding: 6px 10px; white-space: nowrap; }
  a.se-backbtn { padding: 6px 10px; font-size: 14px; min-height: 40px; margin-right: 2px; }
}

/* ---------- MORE menu overlay (ported from theme #nav-mobile) ---------- */
.side-nav {
  list-style: none; margin: 0; padding: 0 0 30px;
  position: fixed; top: 0; right: 0; left: 0; bottom: 0;
  width: 100%; height: 100%; overflow-y: auto;
  background: #e0e0f8; border: 0; z-index: 300;
}
.side-nav[hidden] { display: none; }
.side-nav li { display: block; width: 100%; }
.side-nav li > a {
  display: block; font-size: 34px; font-weight: 700; font-family: "Baloo 2", cursive;
  color: #2b3168; padding: 15px 20px; line-height: 1.35;
  text-decoration: none; background: transparent; text-align: center;
}
/* account items in the menu are buttons wired to the auth modal — styled
   exactly like the menu links */
.side-nav li > button.se-acctbtn {
  display: block; width: 100%; font-size: 34px; font-weight: 700; font-family: "Baloo 2", cursive;
  color: #2b3168; padding: 15px 20px; line-height: 1.35;
  text-decoration: none; background: transparent; text-align: center;
  border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.side-nav li > button.se-acctbtn[hidden] { display: none; }
.side-nav .account-email {
  display: block; text-align: center; padding: 10px 20px 0;
  font-family: "Baloo 2", cursive; font-size: 20px; font-weight: 700; color: #2b3168;
  overflow-wrap: anywhere;
}
.side-nav .account-email[hidden] { display: none; }
.side-nav .closemenu {
  background: #41528a; color: #fff; font-family: "Nunito", sans-serif;
  font-size: 22px; font-weight: 800; padding: 16px 18px; margin: 0 0 6px;
  cursor: pointer; text-transform: uppercase; text-align: right;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.side-nav .closemenu i { font-size: 34px; line-height: 1; color: #fff; }
.side-nav li.se-menulogo { text-align: center; padding: 14px 0 0; }
.side-nav li.se-menulogo a { display: inline-block; padding: 0; }
.side-nav li.se-menulogo img { height: 104px; width: auto; }
.side-nav .se-soc-row { display: block; text-align: center; padding: 0 15px; }
.side-nav .se-soc {
  background: transparent; border: 2px solid #2b3168; border-radius: 50%;
  color: #2b3168; width: 46px; height: 46px; box-shadow: none; margin: 4px 3px;
}
.side-nav .se-soc i { font-size: 22px; color: #2b3168; }
.se-menusearch { display: flex; gap: 12px; width: 100%; box-sizing: border-box; margin: 0; padding: 18px 28px 26px; }
.se-menusearch input[type="text"] {
  flex: 1 1 auto; min-width: 0; height: 64px; font-size: 22px; padding: 16px 20px;
  border: 2px solid #41528a; border-radius: 10px; background: #ffffff; color: #0d2b26;
  box-sizing: border-box; outline: none; font-family: "Nunito", sans-serif;
}
.se-menusearch input[type="text"]::placeholder { color: #3d3d3d; opacity: 1; }
.se-menusearch input[type="submit"] {
  flex: 0 0 auto; height: 64px; font-size: 20px; font-weight: 800; padding: 16px 30px;
  border: 0; border-radius: 10px; background: #41528a; color: #ffffff;
  cursor: pointer; box-sizing: border-box; font-family: "Nunito", sans-serif;
}

/* ---------- game layout ---------- */
.game {
  width: 100%;
  max-width: 640px;
  padding: 8px 16px 24px;
  text-align: center;
  flex: 1;
}
.game-title {
  font-size: 40px;
  font-weight: 800;
  margin: 6px 0 4px;
  line-height: 1.1;
}
.hint {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #41528a;
}
.progress {
  font-size: 21px;
  font-weight: 700;
  margin: 6px 0 12px;
}

/* ---------- operation toggles + sound (controls cluster above the card) ---------- */
.ops-cluster {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.operations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.op-btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  background: #ffffff;
  color: #1e8a49;
  border: 3px solid #1e8a49;
  -webkit-tap-highlight-color: transparent;
}
.op-btn.on {
  background: linear-gradient(180deg, #79c94e, #1e8a49);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(30, 138, 73, 0.35);
}
.op-btn:active { transform: scale(0.97); }

/* ---------- flash card ---------- */
.card-scene {
  width: 100%;
  max-width: 420px;
  height: 300px;
  margin: 0 auto;
  perspective: 1200px;
  touch-action: pan-y; /* vertical page scroll ok; horizontal swipes captured by JS */
}
.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.15, 0.3, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.card.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(34, 56, 74, 0.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 20px;
}
.card-front { background: #e9f5ec; border: 4px solid #79c94e; }
.card-back {
  background: #ffedb8;
  border: 4px solid #f2b234;
  transform: rotateY(180deg);
}
.problem, .answer {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 1px;
}
.answer { color: #166534; }
.tap-hint {
  font-size: 18px;
  font-weight: 700;
  color: #41528a;
  opacity: 0.85;
}

/* ---------- buttons ---------- */
.controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #79c94e, #1e8a49);
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 138, 73, 0.35);
  min-width: 140px;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: linear-gradient(180deg, #6cb843, #166534); }
.btn:active { transform: scale(0.97); }
.btn-shuffle { min-width: 240px; }
.btn-sound {
  font-size: 16px;
  padding: 9px 18px;
  min-width: 0;
  flex-shrink: 0;
}

/* ---------- auth modal ---------- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 56, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 18px;
}
.auth-overlay[hidden] { display: none; }
.auth-card {
  position: relative;
  background: #fffdf7;
  border-radius: 24px;
  padding: 26px 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(34, 56, 74, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}
.auth-card h3 {
  margin: 8px 0 2px;
  font-size: 26px;
  font-weight: 800;
  color: #1e8a49;
}
.guardian-note {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #41528a;
}
.auth-sub { margin: 0 0 8px; font-size: 16px; color: #444; }
.auth-label {
  display: block;
  text-align: left;
  font-weight: 800;
  color: #22384a;
  font-size: 16px;
  margin: 15px 0 5px;
}
.auth-label[hidden] { display: none; }
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  padding-right: 42px;
  margin: 0;
  border: 2px solid #79c94e;
  border-radius: 12px;
  font: inherit;
  background: #ffffff;
  color: #22384a;
}
.field-x { position: relative; display: block; }
.field-x[hidden] { display: none; }
.x-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #e9f5ec;
  color: #1e8a49;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.x-clear.on { display: block; }
.auth-err { color: #c22626; font-weight: 700; margin: 10px 0 0; font-size: 16px; }
.auth-submit { width: 100%; min-width: 0; margin-top: 14px; }
.auth-alt {
  font-family: inherit;
  width: 100%;
  margin-top: 9px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  background: #ffffff;
  color: #1e8a49;
  border: 3px solid #1e8a49;
  -webkit-tap-highlight-color: transparent;
}
.auth-alt:active { transform: scale(0.97); }
.modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #e9f5ec;
  color: #22384a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

/* ---------- footer (ported from the coloring app / theme v104b) ---------- */
.se-footer {
  /* The theme footer itself is transparent; on the site it sits over the body
     pattern below, so the footer carries that same pattern backdrop here. */
  background: #F0F1F3 url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcCOj9I2VekPd8ZeqVV1v72OvLtYcLtcBrMZmqRSZ7k3dlleHsBda-VFOwqb9jyHh5b1NQuAcfjrai1Ur57zbjMlpc9tKZ76J_Hw5j8v-7IsYOo2YcBSJ2z7UG86_OcRmVpOGA9juEjR0/s1600/pattern-stretchy.png');
  margin-top: 10px; padding: 6px 14px 26px;
  width: 100%;
}
.se-footer .se-container { max-width: 1100px; margin: 0 auto; }
/* Footer logo SOLID: full opacity on a clean white chip so it reads crisp
   over the footer's pattern backdrop. */
.se-footlogo { text-align: center; margin: 10px 0 2px; }
.se-footlogo img { height: 92px; width: auto; opacity: 1; filter: none; background: #fff; border-radius: 16px; padding: 6px 12px; box-shadow: 0 2px 8px rgba(20,60,30,.18); }
.se-footer .center { text-align: center; }
.se-footer .light { font-weight: 400; }
.se-soc-center { text-align: center; margin: 6px 0 20px; }
.se-soc-row { display: inline-block; }
.se-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px; margin: 0 3px;
  background: linear-gradient(160deg, #79c94e, #1e8a49);
  color: #fff !important; text-decoration: none !important; vertical-align: middle;
  box-shadow: 0 3px 8px rgba(20,60,30,.35);
}
.se-soc i { color: #fff !important; font-size: 26px; line-height: 1; }
.se-soc:hover { background: #4c8a50; }
.se-soc:focus { outline: 3px solid #b3001b; outline-offset: 2px; }
.se-footer .se-soc-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; }
.se-footer .se-soc { flex: 0 1 56px; margin: 0; }
.se-footer .se-soc:hover { background: inherit; filter: brightness(1.13); }
.se-footer .se-soc[href*="facebook.com"] { background: linear-gradient(160deg, #4e8ef7, #1663c7); }
.se-footer .se-soc[href*="instagram.com"] { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); }
.se-footer .se-soc[href*="x.com"] { background: linear-gradient(160deg, #4a5568, #111827); }
.se-footer .se-soc[href*="tiktok.com"] { background: linear-gradient(160deg, #2dd4ee, #111827 48%, #fe2c55 135%); }
.se-footer .se-soc[href*="pinterest.com"] { background: linear-gradient(160deg, #f0524f, #bd081c); }
.se-footer .se-soc[href*="youtube.com"] { background: linear-gradient(160deg, #ff5a4e, #e62117); }
.se-footer .se-soc[href*="soundcloud.com"] { background: linear-gradient(160deg, #ffb03a, #ff5500); }
@media (max-width: 560px) {
  .se-footer .se-soc { width: 42px; height: 42px; border-radius: 13px; }
  .se-footer .se-soc i { font-size: 20px; }
}
.se-reswrap { max-width: 760px; margin: 26px auto 4px; text-align: left; }
.se-resbtn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; border-bottom: 2px solid #3b7741; color: #14532d;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 24px;
  padding: 8px 2px; cursor: pointer;
}
.se-resplus { font-size: 28px; line-height: 1; transition: transform .25s; }
.se-resbtn[aria-expanded='true'] .se-resplus { transform: rotate(45deg); }
.se-reslist { display: none; list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 34px; }
.se-reslist.se-open { display: block; }
.se-reslist li { margin: 0 0 9px; break-inside: avoid; }
.se-reslist a { color: #14532d !important; font-weight: 700; font-size: 17px; text-decoration: underline; }
@media (min-width: 821px) {
  .se-resbtn { pointer-events: none; cursor: default; }
  .se-resplus { display: none; }
  .se-reslist { display: block; columns: 3; }
}
.se-footlinks, .se-footlinks a { color: #41503f !important; }
.se-footlinks a { font-weight: 700; text-decoration: underline; }
.se-acocredit { text-align: center; margin: 8px 0 2px; font-size: 16px; color: #41503f; }
.se-acocredit a { font-weight: 700; text-decoration: underline; }
.se-copyline { text-align: center; margin: 2px 0 5px; font-size: 16px; color: #41503f; }
.aco-logo { vertical-align: -4px; margin-right: 4px; }
/* Footer text: dark and easy to read */
.se-footer, .se-footer .se-footlinks, .se-footer .se-copyline, .se-footer .se-acocredit { color: #41503f; }
.se-footer a { color: #14532d !important; }
.se-footer .se-soc { color: #fff !important; }

/* ---------- back to top ---------- */
.se-totop {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #79c94e, #1e8a49);
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 138, 73, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.se-totop:hover { background: linear-gradient(180deg, #6cb843, #166534); }
.se-totop:active { transform: scale(0.97); }

/* ---------- small phones ---------- */
@media (max-width: 480px) {
  .game-title { font-size: 34px; }
  .card-scene { height: 270px; }
  .problem, .answer { font-size: 54px; }
  .btn { font-size: 20px; padding: 13px 26px; min-width: 126px; }
  .auth-submit { font-size: 22px; padding: 14px 34px; }
}

/* ---------- counting game (Nov 9, 2026) ---------- */
.count-card { background: #fff7e6; border: 4px solid #f5a623; border-radius: 22px; max-width: 420px; margin: 14px auto; padding: 34px 12px 20px; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.count-num { font-family: "Baloo 2", cursive; font-size: 110px; font-weight: 800; line-height: 1; color: #5b2a86; }
.count-card .tap-hint { margin-top: 12px; }

/* Games hub + number games (Desarae, Nov 10, 2026) — card and game
   styles carried over from the coloring app so the Games site matches. */
.designs-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; }
.designs-title { margin: 0; color: #22384a; font-family: "Baloo 2", cursive; }
.pz-intro { font-size: 17px; margin: 6px 2px 10px; }
.pz-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.game-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 2px 18px; }
.game-card { border: 3px solid #d8cdea; background: #fff; border-radius: 18px; padding: 10px; cursor: pointer; font-family: "Baloo 2", cursive; color: #5b2a86; min-width: 0; box-shadow: 0 4px 12px rgba(91,42,134,.18); text-decoration: none; display: block; text-align: center; }
.game-card:active { transform: scale(.98); }
.game-name { display: block; font-weight: 800; font-size: 21px; }
.game-line { display: block; font-weight: 600; font-size: 14.5px; color: #7a5aa0; margin-top: 2px; line-height: 1.25; }
.game-emoji { display: block; font-size: 62px; line-height: 1.25; text-align: center; padding: 8px 0 2px; }
.ttt-seg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px auto; }
.ttt-seg button { border: 2px solid #5b2a86; background: #fff; color: #4c2a9e; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; min-height: 44px; }
.ttt-seg button.ttt-on { background: #5b2a86; color: #fff; }
.fc-progress { text-align: center; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 18px; color: #7a5aa0; margin: 4px 0 10px; }
.btn-back { background: #5b2a86; color: #fff; }
.ng-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 430px; margin: 14px auto 18px; padding: 0 2px; }
.ng-choice { min-height: 64px; font-family: "Baloo 2", cursive; font-size: 25px; font-weight: 800; color: #5b2a86; background: #fff; border: 3px solid #5b2a86; border-radius: 16px; cursor: pointer; }
.ng-choice:active { transform: scale(.97); }
.ng-choice.good { background: #d9f7c4; border-color: #2f9e44; color: #1e6b2c; }
.ng-choice.try { background: #ffe3e3; border-color: #d64545; }
.ng-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px auto 4px; max-width: 430px; padding: 0 2px; }
.ng-step { min-width: 52px; padding: 10px 8px; text-align: center; font-family: "Baloo 2", cursive; font-size: 24px; font-weight: 800; color: #5b2a86; background: #efe8fa; border: 3px solid #d8cdea; border-radius: 14px; }
.ng-step.ng-blank { background: #fff3b0; border-color: #e3a008; color: #8a6400; }
.ng-step.ng-found { background: #d9f7c4; border-color: #2f9e44; }
.ng-animal { font-size: 64px; text-align: center; line-height: 1.2; }
.ng-coins { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 16px auto 6px; max-width: 430px; padding: 0 2px; }
.ng-coin { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid rgba(0,0,0,.28); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 3px 8px rgba(0,0,0,.18); }
.ng-coin .coin-val { font-family: "Baloo 2", cursive; font-weight: 800; line-height: 1; }
.ng-coin .coin-name { font-size: 10px; font-weight: 700; line-height: 1.1; }
.coin-penny { width: 56px; height: 56px; background: #e09a52; color: #6b3410; }
.coin-penny .coin-val { font-size: 17px; }
.coin-nickel { width: 66px; height: 66px; background: #d9dee6; color: #45526b; }
.coin-nickel .coin-val { font-size: 19px; }
.coin-dime { width: 52px; height: 52px; background: #eef1f6; color: #45526b; }
.coin-dime .coin-val { font-size: 15px; }
.coin-quarter { width: 78px; height: 78px; background: #d9dee6; color: #45526b; }
.coin-quarter .coin-val { font-size: 22px; }
.ng-clockwrap { text-align: center; margin: 8px auto; }
.ng-clockwrap svg { width: min(78vw, 300px); height: auto; }
main.game section { max-width: 560px; margin: 0 auto; }

/* ================= Stretchy's Garden (standalone app) ================= */
.gd-startart { text-align: center; margin: 6px auto 2px; max-width: 520px; }
.gd-startscene { position: relative; }
.gd-startimg { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 6px 18px rgba(34,56,74,.18); }
.gd-startgirl { position: absolute; right: 3.5%; bottom: 0; height: 76%; width: auto; }
.gd-startflower { position: absolute; left: 4%; bottom: 1%; height: 44%; width: auto; }
/* Double-taps must never zoom the game (Desarae, Nov 10, 2026). */
html, body, button, a, .gd-scene, .gd-bar, .gd-item, .gd-plot, .gd-fslot, .gd-bunny { touch-action: manipulation; }
.gd-acct { max-width: 520px; margin: 14px auto 4px; background: #fff; border: 3px solid #cfe3b8; border-radius: 16px; padding: 12px 14px; font-family: "Nunito", sans-serif; box-sizing: border-box; }
.gd-acct p { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: #22384a; }
.gd-acct .gd-acctrow { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-acct input { flex: 1 1 150px; min-width: 0; font: inherit; font-size: 14.5px; padding: 9px 12px; border: 2.4px solid #b9cf9f; border-radius: 999px; box-sizing: border-box; }
.gd-acct button { font-family: "Baloo 2", cursive; font-weight: 700; font-size: 15px; border: none; border-radius: 999px; padding: 9px 16px; cursor: pointer; color: #fff; background: linear-gradient(180deg, #37b24d, #1e8a49); box-shadow: 0 3px 0 #14532d; touch-action: manipulation; }
.gd-acct button.gd-acctalt { background: linear-gradient(180deg, #ffb03a, #f07f13); box-shadow: 0 3px 0 #b85e08; }
.gd-acct .gd-acctmsg { margin: 8px 0 0; font-size: 13.5px; color: #8a5a2b; min-height: 1em; }
.gd-startbtns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0 6px; }
.gd-startbtn { font-size: 26px; padding: 16px 42px; }
.gd-soundbtn { background: linear-gradient(180deg, #ffb03a, #f07f13); box-shadow: 0 4px 0 #b85e08; }
.gd-soundbtn:active { transform: translateY(2px); box-shadow: none; }
.gd-howto { line-height: 1.65; }

/* full-screen play overlay */
#gardenPlay { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; background: #aee3ff; }
#gardenPlay[hidden] { display: none; }
.gd-scene { position: relative; flex: 1 1 auto; overflow: hidden; min-height: 0;
  background: #8fd45e url('assets/backdrop.jpg') 24% 42% / cover no-repeat; }
.gd-sky { position: absolute; inset: 0 0 auto 0; height: 34%; pointer-events: none; }
.gd-cloud { position: absolute; width: 104px; height: auto; opacity: .96; }
.gd-cloud1 { left: 26%; top: 8%; animation: gdDrift 26s linear infinite alternate; }
.gd-cloud2 { left: 58%; top: 20%; width: 76px; animation: gdDrift 32s linear infinite alternate-reverse; }
@keyframes gdDrift { from { transform: translateX(-14px); } to { transform: translateX(20px); } }
.gd-rainsvg { position: absolute; left: 40%; top: 2%; width: 130px; height: auto; z-index: 5; filter: grayscale(.7) brightness(.66) contrast(1.06); }
.gd-sun { position: absolute; right: 2.5%; top: 4%; width: 92px; height: 92px; animation: gdSunSpin 40s linear infinite; }
.gd-sun img { width: 100%; height: 100%; display: block; }
@keyframes gdSunSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.gd-exit { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #ffffff;
  background: #e2603f; color: #fff; font-size: 21px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 8px rgba(34,56,74,.3); font-family: inherit; line-height: 1; }
.gd-exit:active { transform: scale(.94); }
.gd-hud { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 10px; z-index: 30;
  display: flex; flex-direction: column; gap: 5px; max-width: 62vw; }
.gd-level { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 21px; color: #14532d;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 14px; box-shadow: 0 2px 6px rgba(34,56,74,.18); align-self: flex-start; }
.gd-goal { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 14.5px; color: #22384a;
  background: rgba(255,255,255,.85); border-radius: 12px; padding: 4px 10px; box-shadow: 0 2px 6px rgba(34,56,74,.14); }
.gd-hudbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-hudbtn { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 13.5px; cursor: pointer;
  border: none; border-radius: 999px; padding: 7px 12px; color: #fff;
  background: linear-gradient(180deg, #ffb03a, #f07f13); box-shadow: 0 3px 0 #b85e08; }
.gd-hudbtn:active { transform: translateY(2px); box-shadow: none; }
#gdNewBtn { background: linear-gradient(180deg, #8a63d2, #5b2a86); box-shadow: 0 3px 0 #3d1c5c; }
.gd-praise { position: absolute; left: 50%; transform: translateX(-50%); bottom: 40.5%; z-index: 25;
  margin: 0; width: max-content; max-width: 92vw; text-align: center;
  font-family: "Baloo 2", cursive; font-weight: 700; font-size: clamp(16px, 4.6vw, 21px); color: #14532d;
  background: rgba(255,255,255,.94); border-radius: 999px; padding: 7px 18px;
  box-shadow: 0 3px 10px rgba(34,56,74,.2); }
.gd-praise.gd-pop { animation: gdPop .45s ease; }
@keyframes gdPop { 0% { transform: translateX(-50%) scale(.8); } 60% { transform: translateX(-50%) scale(1.07); } 100% { transform: translateX(-50%) scale(1); } }

.gd-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 6px 10px; box-sizing: border-box; }
.gd-girl { flex: 0 0 auto; width: clamp(74px, 19vw, 128px); align-self: flex-end; margin-bottom: 2px; }
.gd-girl img { width: 100%; height: auto; display: block; }
.gd-girl.gd-cheer { animation: gdCheer .7s ease; }
.gd-girl.gd-building { position: relative; z-index: 30; }
.gd-girl.gd-hammering img { animation: gdBuild .17s ease-in-out 3 alternate; }
@keyframes gdBuild { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-6px) rotate(-2.6deg); } }
@keyframes gdCheer { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-13px); } 55% { transform: translateY(0); } 75% { transform: translateY(-8px); } }
.gd-bedwrap { position: relative; flex: 1 1 auto; max-width: 640px; }
.gd-bed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: linear-gradient(180deg, #a06a35, #8a5a2b); border: 4px solid #6f4520; border-radius: 16px; padding: 10px;
  box-shadow: 0 8px 18px rgba(34,56,74,.25); position: relative; z-index: 2; }
.gd-plot { position: relative; border: none; cursor: pointer; border-radius: 12px; padding: 0;
  aspect-ratio: 1 / 1.04; min-height: 62px; overflow: visible;
  background: radial-gradient(ellipse at 50% 62%, #7a4e24 0%, #66401d 58%, #54351a 100%);
  box-shadow: inset 0 3px 7px rgba(0,0,0,.45); -webkit-tap-highlight-color: transparent; font-family: inherit; }
.gd-plot .gd-plant { position: absolute; left: 50%; bottom: 8%; width: 88%; transform: translateX(-50%); pointer-events: none; }
.gd-plot .gd-plant img { width: 100%; height: auto; display: block; }
.gd-plot.gd-grow .gd-plant { animation: gdGrow .6s ease; }
@keyframes gdGrow { 0% { transform: translateX(-50%) scale(.55); } 60% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
.gd-plot.gd-ready { box-shadow: inset 0 3px 7px rgba(0,0,0,.45), 0 0 0 3px #ffd23e, 0 0 14px 3px rgba(255,210,62,.75); }
.gd-plot .gd-drops { position: absolute; inset: 0; pointer-events: none; }
.gd-plot .gd-drops i { position: absolute; top: -8px; width: 7px; height: 11px; border-radius: 50%;
  background: #4db2ff; opacity: 0; animation: gdDrop .55s ease-in forwards; }
@keyframes gdDrop { 0% { opacity: 0; transform: translateY(-6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(38px); } }
.gd-plot .gd-spark { position: absolute; inset: 0; pointer-events: none; }
.gd-plot .gd-spark i { position: absolute; font-style: normal; font-size: 15px; opacity: 0; animation: gdSpark .8s ease-out forwards; }
@keyframes gdSpark { 0% { opacity: 0; transform: translateY(6px) scale(.5); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px) scale(1.15); } }
/* Fence rows (visibility fix, Nov 10, 2026): slots are a full quarter of the
   row each and 58px tall; the picket board TILES across each slot over a
   full-width rails layer, so a built row reads as one continuous picket
   fence — pickets + both rails — instead of four skinny posts. */
.gd-fence { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px; position: relative; height: 58px; }
.gd-fence-back { margin-bottom: -4px; z-index: 1; }
.gd-fence-front { margin-top: -4px; z-index: 5; }
.gd-fslot { width: 25%; height: 58px; background: transparent; border: none; padding: 0; cursor: default; position: relative; }
.gd-fslot .gd-frail { position: absolute; inset: 0; display: block; background: url('assets/fence-rails.png') center / 100% 100% no-repeat; }
.gd-fslot .gd-fpicket { position: absolute; inset: 0; display: block; background: url('assets/fence.png') left top / auto 100% repeat-x; }
.gd-fslot .gd-gatepanel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: 6% 50%; transition: transform .45s ease; }
.gd-fslot.gd-gate { cursor: pointer; }
.gd-fslot.gd-gate::after { content: ''; position: absolute; inset: -10px 0; }
.gd-fslot.gd-gateopen .gd-gatepanel { transform: perspective(110px) rotateY(-57deg); }
.gd-fslot.gd-emptyf { cursor: pointer; }
.gd-fslot.gd-emptyf .gd-frail, .gd-fslot.gd-emptyf .gd-fpicket, .gd-fslot.gd-emptyf .gd-gatepanel { opacity: .38; filter: saturate(.4) brightness(1.15); }
.gd-fslot.gd-hint { animation: gdHint 1s ease infinite alternate; }
@keyframes gdHint { from { filter: brightness(1); } to { filter: brightness(1.45); } }

.gd-rainlayer { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden;
  background: rgba(70,110,150,.14); }
.gd-rainlayer i { position: absolute; top: -16px; width: 3.4px; height: 15px; border-radius: 3px;
  background: rgba(90,160,255,.85); animation: gdRainFall .62s linear infinite; }
@keyframes gdRainFall { to { transform: translateY(108vh); } }
.gd-bunnylayer { position: absolute; inset: 0; z-index: 22; pointer-events: none; }
.gd-bunny { position: absolute; width: 58px; height: 58px; border: none; background: transparent; padding: 0;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.gd-bunny img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 3px rgba(34,56,74,.25)); }
.gd-bunny.gd-hop { animation: gdHop .42s ease-in-out infinite alternate; }
.gd-bunny.gd-wait img { animation: gdWiggle 1.5s ease-in-out infinite; }
@keyframes gdWiggle { 0%,100% { transform: rotate(-2.4deg) translateY(0); } 50% { transform: rotate(2.4deg) translateY(-2px); } }
@keyframes gdHop { from { transform: translateY(0); } to { transform: translateY(-13px); } }
.gd-bunny.gd-bump { animation: gdBump .45s ease; }
@keyframes gdBump { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-7px) rotate(-7deg); } 60% { transform: translateX(5px) rotate(5deg); } }
/* cartoon BONK (Desarae, Nov 10, 2026): squash-and-bounce + a starburst pop,
   on tap-shoo and on fence bonk. Placed after the hop/wiggle rules so the
   squash wins while the class is on. */
.gd-bunny.gd-bonk img { animation: gdBonk .5s ease; }
@keyframes gdBonk { 0% { transform: scale(1,1); } 30% { transform: scale(1.2,.6); } 55% { transform: scale(.9,1.16); } 75% { transform: scale(1.06,.93); } 100% { transform: scale(1,1); } }
.gd-bonkstar { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font-size: 27px; line-height: 1;
  pointer-events: none; animation: gdBonkStar .55s ease-out forwards; }
@keyframes gdBonkStar { 0% { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-20deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-17px) scale(1.3) rotate(16deg); } }
.gd-banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%,-50%); z-index: 45;
  width: max-content; max-width: 92vw; text-align: center; cursor: pointer;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: clamp(19px, 5.4vw, 27px); color: #14532d;
  background: linear-gradient(180deg, #fff8dc, #ffedb0); border: 3.4px solid #f5a623; border-radius: 20px;
  padding: 16px 22px; box-shadow: 0 10px 26px rgba(34,56,74,.35); animation: gdPop2 .5s ease;
  transition: opacity .55s ease; }
.gd-banner.gd-fading { opacity: 0; }
@keyframes gdPop2 { 0% { transform: translate(-50%,-50%) scale(.7); opacity: 0; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.gd-banner small { display: block; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 14px; color: #8a5a2b; margin-top: 5px; }

.gd-bar { flex: 0 0 auto; display: flex; gap: 10px; align-items: stretch; overflow-x: auto; overflow-y: hidden;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fdf6e9;
  border-top: 3.4px solid #e5cf9f; box-shadow: 0 -4px 14px rgba(34,56,74,.16);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gd-item { flex: 0 0 auto; width: 86px; border: 3px solid #d8cdea; background: #fff; border-radius: 16px;
  padding: 7px 4px 6px; cursor: pointer; font-family: "Baloo 2", cursive; color: #5b2a86;
  display: flex; flex-direction: column; align-items: center; gap: 2px; -webkit-tap-highlight-color: transparent; }
.gd-item img { width: 44px; height: 44px; display: block; }
.gd-item .gd-iname { font-size: 13.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.gd-item.gd-sel { border-color: #1e8a49; background: #eafbe9; box-shadow: 0 0 0 3px #79c94e, 0 4px 10px rgba(30,138,73,.3); transform: translateY(-3px); }
.gd-item.gd-tool { border-color: #9fd8f0; color: #14507a; }
.gd-item.gd-tool.gd-sel { border-color: #1c7ed6; box-shadow: 0 0 0 3px #74c0fc, 0 4px 10px rgba(28,126,214,.3); }
.gd-item.gd-locked { opacity: .55; cursor: not-allowed; }
.gd-item .gd-lock { font-size: 12px; font-family: "Nunito", sans-serif; font-weight: 800; color: #8a5a2b; }

@media (orientation: landscape) and (max-height: 540px) {
  .gd-ground { height: 74%; }
  .gd-bed { gap: 6px; padding: 7px; max-width: 700px; margin: 0 auto; }
  .gd-plot { min-height: 46px; }
  .gd-girl { width: 76px; }
  .gd-sun { width: 58px; height: 58px; }
  .gd-praise { bottom: auto; top: 24%; font-size: 15px; padding: 5px 14px; }
  .gd-item { width: 74px; }
  .gd-item img { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .gd-bed { gap: 6px; padding: 7px; }
  .gd-plot { min-height: 56px; }
  .gd-level { font-size: 18px; }
}

/* ================= Garden World (added Nov 10, 2026) ================= */
#worldStart { }
#worldPlay { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; background: #bfe3c8; }
#worldPlay[hidden] { display: none; }
.gw-scene { position: relative; flex: 1 1 auto; overflow: hidden; min-height: 0;
  background: #a8d8a0 url('assets/backdrop.jpg') no-repeat; background-size: cover; background-position: 50% 40%;
  touch-action: manipulation; }
.gw-praise { position: absolute; left: 50%; transform: translateX(-50%); top: calc(102px + env(safe-area-inset-top)); z-index: 60;
  margin: 0; max-width: 92%; text-align: center; background: rgba(255,255,255,.92); color: #22384a;
  font-family: "Nunito", sans-serif; font-weight: 800; font-size: 14.5px; line-height: 1.25;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 3px 10px rgba(34,56,74,.18); pointer-events: none; }
.gw-praise.gd-pop { animation: gdPop .45s ease; }
.gw-items { position: absolute; inset: 0; z-index: 10; }
.gw-item { position: absolute; transform: translate(-50%, -100%); pointer-events: none; will-change: left, top; }
.gw-item img { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 3px rgba(34,56,74,.18)); }
.gw-item.gw-pop { animation: gwPlant .45s ease; }
@keyframes gwPlant { 0% { transform: translate(-50%,-100%) scale(.4); } 60% { transform: translate(-50%,-100%) scale(1.08); } 100% { transform: translate(-50%,-100%) scale(1); } }
.gw-scene.gw-removing .gw-item { pointer-events: auto; cursor: pointer; }
.gw-scene.gw-removing .gw-item img { animation: gwWiggle .5s ease-in-out infinite alternate; }
@keyframes gwWiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.gw-girl { position: absolute; z-index: 200; transform: translate(-50%, -100%); pointer-events: none; will-change: left, top; }
.gw-girl canvas { width: 100%; height: auto; display: block; }
.gw-girl .gw-shadow { position: absolute; left: 50%; bottom: -1.5%; width: 62%; height: 4.5%;
  transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(30,45,25,.38) 0%, rgba(30,45,25,0) 70%); }
.gw-flip { display: block; position: relative; }
.gw-girl.gw-flipon .gw-flip { transform: scaleX(-1); }
.gw-girl.gw-kneel .gw-flip { animation: gwKneel .55s ease; }
.gw-girl.gw-hop .gw-flip { animation: gwHop .45s ease; }
@keyframes gwHop { 0% { transform: translateY(0); } 40% { transform: translateY(-9%); } 100% { transform: translateY(0); } }
.gw-girl.gw-wave .gw-flip { animation: gwWave .6s ease; }
@keyframes gwWave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }
.gw-friend { pointer-events: auto; cursor: pointer; }
@keyframes gwKneel { 0% { transform: translateY(0) scale(1,1); } 45% { transform: translateY(7%) scale(.96,.9); } 100% { transform: translateY(0) scale(1,1); } }
.gw-poof { position: absolute; z-index: 400; transform: translate(-50%, -80%); font-size: 34px; pointer-events: none;
  animation: gwPoof .6s ease forwards; }
@keyframes gwPoof { 0% { opacity: 1; transform: translate(-50%,-80%) scale(.6); } 100% { opacity: 0; transform: translate(-50%,-150%) scale(1.5); } }
.gw-bar { flex: 0 0 auto; display: flex; gap: 10px; align-items: stretch; overflow-x: auto; overflow-y: hidden;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff7ea; border-top: 3px solid #e8d9b8;
  touch-action: manipulation; scrollbar-width: none; }
.gw-bar::-webkit-scrollbar { display: none; }
.gw-tray { flex: 0 0 auto; }
.gw-tray.gw-sel { border-color: #e2703a !important; box-shadow: 0 0 0 3px rgba(226,112,58,.35), 0 4px 12px rgba(91,42,134,.18); }
.gw-tray.gw-remove.gw-sel { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,.35), 0 4px 12px rgba(91,42,134,.18); }
.gw-tray .gw-remoico { font-size: 40px; line-height: 44px; text-align: center; }
#gwNewBtn.gw-confirm { background: #c0392b !important; color: #fff !important; }
html, body, button, a, .gw-scene, .gw-bar, .gw-tray { touch-action: manipulation; }
.gw-tray img { object-fit: contain; }

/* ---------- collection counter (Desarae, Nov 10, 2026) ----------
   "🧺 My Garden" chip in the HUD + a bottom-sheet panel counting how many
   of each plant/decoration are in the world right now. */
.gw-basket-btn { background: linear-gradient(180deg, #79c94e, #1e8a49); box-shadow: 0 3px 0 #14532d; }
.gw-panel { position: absolute; inset: 0; z-index: 320; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(34,56,74,.45); touch-action: manipulation; }
.gw-panel[hidden] { display: none; }
.gw-panel-card { width: 100%; max-width: 560px; max-height: 84%; display: flex; flex-direction: column;
  background: #fffdf6; border-top: 4.5px solid #79c94e; border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 34px rgba(34,56,74,.35); padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-sizing: border-box; animation: gwSheet .3s ease; }
@keyframes gwSheet { from { transform: translateY(26px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.gw-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gw-panel-title { margin: 0; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 27px; color: #14532d; }
.gw-panel-x { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #ffffff;
  background: #e2603f; color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 3px 8px rgba(34,56,74,.3); line-height: 1; -webkit-tap-highlight-color: transparent; }
.gw-panel-x:active { transform: scale(.94); }
.gw-panel-sum { margin: 2px 0 4px; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 15.5px; color: #41528a; }
.gw-panel-body { overflow-y: auto; min-height: 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.gw-coll-h { margin: 12px 0 8px; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 20px; color: #1e8a49; }
.gw-coll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gw-coll-row { display: flex; align-items: center; gap: 8px; background: #ffffff; border: 2.5px solid #eadfc2;
  border-radius: 16px; padding: 6px 9px 6px 6px; box-shadow: 0 2px 6px rgba(34,56,74,.08); min-width: 0; }
.gw-coll-row img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; display: block; }
.gw-coll-name { flex: 1 1 auto; min-width: 0; font-family: "Baloo 2", cursive; font-weight: 700; font-size: 15.5px;
  line-height: 1.1; color: #22384a; }
.gw-coll-count { flex: 0 0 auto; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 17px; color: #ffffff;
  background: linear-gradient(180deg, #79c94e, #1e8a49); border-radius: 999px; padding: 2px 10px; min-width: 34px;
  text-align: center; box-sizing: border-box; }
.gw-coll-row.gw-coll-zero { opacity: .48; }
.gw-coll-row.gw-coll-zero .gw-coll-count { background: #b9bfae; }
@media (max-width: 380px) {
  .gw-coll-name { font-size: 14px; }
  .gw-coll-row img { width: 36px; height: 36px; }
  .gw-panel-title { font-size: 24px; }
}

/* ---------- Garden World additions (Nov 10, 2026): walking legs are drawn
   in-canvas; cottage interior, closet, day cycle, friend visits ---------- */

/* cottage door tap target (outdoor) */
.gw-doorhot { position: absolute; z-index: 320; border: none; background: transparent; cursor: pointer; padding: 0; }
.gw-doorring { position: absolute; inset: 6% 8%; border: 3px solid rgba(255, 214, 90, .95); border-radius: 46% 46% 12px 12px;
  box-shadow: 0 0 14px 3px rgba(255, 190, 60, .55), inset 0 0 12px rgba(255, 200, 80, .35);
  animation: gwDoorPulse 1.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes gwDoorPulse { from { opacity: .45; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.gw-doorico { position: absolute; right: -8px; top: -14px; font-size: 24px; filter: drop-shadow(0 2px 3px rgba(34,56,74,.4));
  animation: gwDoorPulse 1.6s ease-in-out infinite alternate; pointer-events: none; }

/* day-cycle tints (outdoor) */
.gw-tint { position: absolute; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 2.2s ease; }
.gw-tint-golden { background: linear-gradient(180deg, rgba(255,176,66,.14) 0%, rgba(255,138,42,.10) 55%, rgba(255,120,40,.06) 100%); }
.gw-tint-sunset { background: linear-gradient(180deg, rgba(255,110,64,.26) 0%, rgba(214,90,110,.16) 52%, rgba(94,58,130,.20) 100%); }
.gw-tint-evening { background: linear-gradient(180deg, rgba(24,32,78,.34) 0%, rgba(18,24,60,.30) 55%, rgba(12,16,44,.38) 100%); }
.gw-glowdot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,196,86,.85) 0%, rgba(255,160,60,.38) 45%, rgba(255,150,50,0) 72%); }
.gw-star { position: absolute; color: #fff8d8; pointer-events: none; animation: gwTwinkle 2.4s ease-in-out infinite alternate;
  text-shadow: 0 0 6px rgba(255,244,190,.9); line-height: 1; }
@keyframes gwTwinkle { from { opacity: .25; } to { opacity: .95; } }
.gw-firefly { position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,170,.95) 0%, rgba(190,255,120,.45) 55%, rgba(190,255,120,0) 75%);
  animation: gwFly 7s ease-in-out infinite alternate; }
@keyframes gwFly { from { transform: translate(0, 0); opacity: .35; } 50% { opacity: 1; } to { transform: translate(26px, -18px); opacity: .5; } }
.gw-phase { cursor: default; }

/* interior scene */
.gw-house { background: #efe0c2; }
.gw-house[hidden] { display: none; }
.gw-inwrap { position: absolute; background: url('assets/interior.jpg') no-repeat; background-size: 100% 100%;
  border-radius: 6px; box-shadow: 0 8px 30px rgba(84, 56, 20, .35); overflow: hidden; }
.gw-fireglow { position: absolute; left: 16.3%; top: 65%; width: 15%; height: 26%; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(255,170,60,.55) 0%, rgba(255,120,30,.28) 48%, rgba(255,110,20,0) 72%);
  animation: gwFlicker 1.15s ease-in-out infinite alternate; }
.gw-fireglow.gw-firelow { opacity: .45; }
@keyframes gwFlicker { from { transform: translate(-50%, -50%) scale(1); filter: brightness(1); } to { transform: translate(-50%, -50%) scale(1.09); filter: brightness(1.22); } }
.gw-roomlabel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 65;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 19px; color: #7a4a16;
  background: rgba(255, 250, 235, .94); padding: 5px 18px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(84,56,20,.25); pointer-events: none; }
.gw-hothint { position: absolute; z-index: 320; border: none; cursor: pointer; border-radius: 14px;
  background: rgba(255, 244, 200, .28); box-shadow: inset 0 0 0 3px rgba(255, 214, 90, .0);
  animation: gwHintPulse 1.8s ease-in-out infinite alternate; display: flex; align-items: flex-start; justify-content: flex-end; }
.gw-hothint span { font-size: 21px; margin: 3px 4px 0 0; filter: drop-shadow(0 2px 3px rgba(34,56,74,.45)); }
@keyframes gwHintPulse { from { box-shadow: inset 0 0 0 3px rgba(255,214,90,.15); } to { box-shadow: inset 0 0 0 3px rgba(255,214,90,.75); } }
.gw-closethot { left: 82.4%; top: 9.5%; width: 12.8%; height: 56%; }
.gw-outdoor { left: 24.6%; top: 15.5%; width: 8.2%; height: 53%; }
.gw-initem-flat { transform: translate(-50%, -50%); }

/* closet panel */
.gw-closet-wrap { display: flex; gap: 12px; min-height: 0; flex: 1 1 auto; }
.gw-closet-preview { flex: 0 0 104px; display: flex; align-items: flex-start; justify-content: center;
  background: linear-gradient(180deg, #fdf3df, #f7e3bd); border: 2.5px solid #eadfc2; border-radius: 14px; padding: 8px 4px; }
.gw-closet-preview canvas { width: 92px; height: auto; display: block; }
.gw-closet-body { flex: 1 1 auto; }
.gw-closet-cat { margin: 10px 0 6px; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 17.5px; color: #1e8a49; }
.gw-closet-row { display: flex; flex-wrap: wrap; gap: 7px; }
.gw-piece { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 66px; padding: 5px 2px 4px;
  background: #fff; border: 2.5px solid #eadfc2; border-radius: 12px; cursor: pointer; font-family: "Nunito", sans-serif; }
.gw-piece img { width: 40px; height: 40px; object-fit: contain; display: block; }
.gw-piece .gw-piece-ico { font-size: 30px; line-height: 40px; }
.gw-piece span { font-size: 10.5px; font-weight: 800; color: #41528a; text-align: center; line-height: 1.15; }
.gw-piece.gw-sel { border-color: #e2703a; box-shadow: 0 0 0 3px rgba(226,112,58,.35); }
.gw-closet-off { opacity: .45; }
.gw-heart { position: absolute; z-index: 410; transform: translate(-50%, -100%); font-size: 26px; pointer-events: none;
  animation: gwHeart 1s ease forwards; }
@keyframes gwHeart { 0% { opacity: 0; transform: translate(-50%,-90%) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-190%) scale(1.25); } }

/* ================= Bean's World wave 2 (Nov 10, 2026) ================= */
/* world name on the start screen */
.gw-worldname-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; }
.gw-worldname { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 21px; color: #14532d;
  background: #fff; border: 3px solid #cfe3b8; border-radius: 999px; padding: 4px 16px; box-shadow: 0 2px 8px rgba(34,56,74,.12); }
.gw-nameedit { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 14.5px; cursor: pointer;
  border: none; border-radius: 999px; padding: 8px 14px; color: #fff;
  background: linear-gradient(180deg, #ffb03a, #f07f13); box-shadow: 0 3px 0 #b85e08; }
.gw-nameedit:active { transform: translateY(2px); box-shadow: none; }
.gw-namerow { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.gw-namerow input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; padding: 12px 16px;
  border: 2.6px solid #b9cf9f; border-radius: 999px; box-sizing: border-box; color: #22384a; }
.gw-namerow .btn { min-width: 0; padding: 12px 24px; font-size: 19px; }

/* settings panel */
.gw-setrows { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 4px; }
.gw-setbtn { min-width: 0; width: 100%; font-size: 20px; }
.gw-setbtn-new { background: linear-gradient(180deg, #8a63d2, #5b2a86); box-shadow: 0 4px 0 #3d1c5c; }
#gwNewBtn.gw-confirm { background: linear-gradient(180deg, #e2603f, #c0392b) !important; box-shadow: 0 4px 0 #7e241a; color: #fff !important; }

/* basket & boots left by the door inside */
.gw-doorprops { position: absolute; left: 21.5%; top: 74%; z-index: 8; text-align: center; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(84,56,20,.35)); }
.gw-doorprops .gw-doorbasket { font-size: 30px; }
.gw-doorprops .gw-doorboots { font-size: 19px; margin-left: 2px; }
.gw-doorprops .gw-doorcap { display: block; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 10.5px; color: #7a4a16;
  background: rgba(255,250,235,.9); border-radius: 999px; padding: 1px 8px; margin-top: 1px; }
.gw-doorprops[hidden] { display: none; }

/* fridge + make hotspots in the kitchen */
.gw-fridgehot { left: 35.2%; top: 30%; width: 7.5%; height: 34%; }
.gw-makehot { left: 46%; top: 55%; width: 9%; height: 22%; }

/* recipes list */
.gw-recipe { display: flex; align-items: center; gap: 10px; background: #fff; border: 2.5px solid #eadfc2; border-radius: 16px;
  padding: 8px 10px; margin: 0 0 9px; box-shadow: 0 2px 6px rgba(34,56,74,.08); }
.gw-recipe img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.gw-recipe .gw-recipe-txt { flex: 1 1 auto; min-width: 0; text-align: left; }
.gw-recipe .gw-recipe-name { display: block; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 17.5px; color: #22384a; line-height: 1.15; }
.gw-recipe .gw-recipe-needs { display: block; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 13.5px; color: #7a5aa0; }
.gw-recipe .gw-make-btn { flex: 0 0 auto; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 16px; cursor: pointer;
  border: none; border-radius: 999px; padding: 10px 16px; color: #fff;
  background: linear-gradient(180deg, #79c94e, #1e8a49); box-shadow: 0 3px 0 #14532d; }
.gw-recipe .gw-make-btn:disabled { background: #b9bfae; box-shadow: 0 3px 0 #8a9081; cursor: default; }
.gw-recipe .gw-make-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }

/* season tint + chips */
.gw-tint-season { transition: opacity 2.2s ease; }
.gw-tint-season.gw-season-spring { background: linear-gradient(180deg, rgba(255,183,213,.10), rgba(160,230,160,.05)); opacity: 1; }
.gw-tint-season.gw-season-summer { background: linear-gradient(180deg, rgba(255,214,90,.10), rgba(255,190,60,.04)); opacity: 1; }
.gw-tint-season.gw-season-fall { background: linear-gradient(180deg, rgba(230,126,34,.16), rgba(192,84,32,.12)); opacity: 1; }
.gw-tint-season.gw-season-winter { background: linear-gradient(180deg, rgba(190,220,255,.20), rgba(230,242,255,.14)); opacity: 1; }

/* drifting clouds + rain */
.gw-cloudlayer { position: absolute; inset: 0; z-index: 290; pointer-events: none; overflow: hidden; }
.gw-cloud { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,0) 72%);
  animation: gwCloudCross linear forwards; }
@keyframes gwCloudCross { from { transform: translateX(-30vw); } to { transform: translateX(115vw); } }
.gw-cloudshade { position: absolute; inset: 0; background: rgba(70,90,120,.13); opacity: 0; transition: opacity 3s ease; }
.gw-rainlayer { position: absolute; inset: 0; z-index: 295; pointer-events: none; overflow: hidden; background: rgba(70,110,150,.10); }
.gw-rainlayer[hidden] { display: none; }
.gw-rainlayer i { position: absolute; top: -16px; width: 3px; height: 15px; border-radius: 3px;
  background: rgba(110,170,255,.85); animation: gwRainFall .6s linear infinite; }
@keyframes gwRainFall { to { transform: translateY(105vh); } }

/* plant growth: items scale up from a sprout; thirst + ready cues */
.gw-item .gw-growwrap { display: block; transform-origin: 50% 100%; will-change: transform; }
.gw-thirst { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 15px; pointer-events: none;
  animation: gwThirstBob 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 1px 2px rgba(34,56,74,.4)); }
@keyframes gwThirstBob { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-4px); } }
.gw-ready { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 16px; pointer-events: none;
  animation: gwThirstBob .8s ease-in-out infinite alternate; filter: drop-shadow(0 1px 3px rgba(255,190,40,.9)); }
.gw-item.gw-wobble img { animation: gwWobbleShake .34s ease; }
@keyframes gwWobbleShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 60% { transform: rotate(5deg); } }
.gw-item.gw-bigshake img { animation: gwWobbleShake .5s ease; }
.gw-scene.gw-panning { cursor: grabbing; }

/* the item she is carrying to plant, held out in front of her */
.gw-carry { position: absolute; z-index: 5; width: 34%; left: 33%; bottom: 6%; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(34,56,74,.35)); animation: gwCarryBob .5s ease-in-out infinite alternate; }
@keyframes gwCarryBob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4%) rotate(3deg); } }

/* giggle bubble after a soda */
.gw-bubble { position: absolute; z-index: 420; transform: translate(-50%, -130%); pointer-events: none;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 19px; color: #7a4a16; white-space: nowrap;
  background: rgba(255,250,235,.97); border-radius: 999px; padding: 5px 14px; box-shadow: 0 3px 10px rgba(34,56,74,.3);
  animation: gwHeart 1.6s ease forwards; }
.gw-drink { position: absolute; z-index: 6; font-size: 30px; left: 56%; bottom: 38%; pointer-events: none;
  animation: gwCarryBob .4s ease-in-out 3 alternate; }

/* ============ points, the little shop, and the wardrobe (Nov 10, 2026) ============ */
/* ⭐ cost badge on points plants in the tray */
.gd-item { position: relative; }
.gw-cost { position: absolute; top: -7px; right: -3px; z-index: 3; background: #f59e0b; color: #fff;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 12.5px; line-height: 1;
  border-radius: 999px; padding: 4px 7px; box-shadow: 0 2px 6px rgba(122,74,22,.45); pointer-events: none; }
.gd-item.gw-armbuy { outline: 3px solid #f59e0b; outline-offset: 1px; background: #fff3d6; }

/* the little shop down the road */
.gw-shop { position: absolute; z-index: 15; border: none; background: transparent; cursor: pointer; padding: 0;
  transform: translateY(-100%); }
.gw-shop img { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 5px rgba(34,56,74,.3)); }
.gw-shop-sign { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 14px; color: #14532d;
  background: rgba(255,250,235,.95); border-radius: 999px; padding: 3px 12px; box-shadow: 0 2px 7px rgba(34,56,74,.3); }
.gw-shoprow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 2px dashed #eadfc6; }
.gw-shoprow img { width: 54px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.gw-shop-txt { flex: 1 1 auto; text-align: left; }
.gw-shop-name { display: block; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 17px; color: #14532d; }
.gw-shop-sub { display: block; font-size: 13.5px; color: #5b6b5e; font-weight: 700; }
.gw-shop-buy { flex: 0 0 auto; }
.gw-carry-emoji { font-size: 34px; display: flex; align-items: center; justify-content: center; }

/* the wardrobe: real furniture in the bedroom — tap it and the doors swing open */
.gw-ward { position: absolute; z-index: 30; left: 72.5%; top: 15%; width: 24%; height: 60%;
  perspective: 700px; cursor: pointer; transition: left .55s ease, top .55s ease, width .55s ease, height .55s ease; }
.gw-ward.open { left: 3%; top: 3.5%; width: 94%; height: 93%; z-index: 60; cursor: default; }
.gw-ward-inside { position: absolute; inset: 0; border: 5px solid #5d3a1e; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #7c4f27 0 12%, #a4713d 12% 88%, #6f4525 88% 100%);
  box-shadow: inset 0 0 0 3px rgba(255,235,200,.25), 0 4px 14px rgba(34,20,5,.35);
  display: flex; flex-direction: column; }
.gw-ward-rail { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px;
  padding: 14px 6px 4px; overflow-y: auto; position: relative; }
.gw-ward-rail::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 5px;
  border-radius: 3px; background: linear-gradient(180deg, #d9d9e0, #9a9aa5); }
.gw-ward-shoes { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px;
  border-top: 4px solid rgba(93,58,30,.65); background: rgba(0,0,0,.12); min-height: 20px; }
.gw-ward-door { position: absolute; top: 0; height: 100%; width: 50.5%; z-index: 3;
  background: linear-gradient(100deg, #b07f42, #8a5a2b 70%, #7c4f27); border: 4px solid #5d3a1e;
  transition: transform .65s ease; box-shadow: inset 0 0 0 4px rgba(255,235,200,.18); }
.gw-ward-door-l { left: 0; border-radius: 12px 4px 4px 12px; transform-origin: left center; }
.gw-ward-door-r { right: 0; border-radius: 4px 12px 12px 4px; transform-origin: right center; }
.gw-ward.open .gw-ward-door-l { transform: rotateY(-104deg); }
.gw-ward.open .gw-ward-door-r { transform: rotateY(104deg); }
.gw-ward-knob { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #c9932b); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gw-ward-door-l .gw-ward-knob { right: 7px; }
.gw-ward-door-r .gw-ward-knob { left: 7px; }
.gw-ward-tag { position: absolute; z-index: 4; left: 50%; top: -13px; transform: translateX(-50%);
  font-size: 19px; background: rgba(255,250,235,.96); border-radius: 999px; padding: 2px 9px;
  box-shadow: 0 2px 7px rgba(34,56,74,.3); pointer-events: none; }
.gw-ward.open .gw-ward-tag { display: none; }
.gw-ward-cat { flex: 0 0 100%; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 13.5px;
  color: #ffe9c4; margin: 5px 2px 1px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gw-hang { flex: 0 0 auto; width: 62px; border: 2.5px solid transparent; border-radius: 12px; cursor: pointer;
  background: rgba(255,250,235,.14); padding: 3px 2px 2px; text-align: center; font-family: "Nunito", sans-serif; }
.gw-hang img { width: 100%; height: 62px; object-fit: contain; display: block; pointer-events: none; }
.gw-hang .gw-hang-emoji { display: flex; height: 62px; align-items: center; justify-content: center; font-size: 30px; }
.gw-hang span { display: block; font-size: 10.5px; font-weight: 800; color: #fff7e6; line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.gw-hang.gw-sel { border-color: #ffd23e; background: rgba(255,210,62,.28); }
.gw-ward-shoes .gw-hang { width: 56px; }
.gw-ward-shoes .gw-hang img, .gw-ward-shoes .gw-hang .gw-hang-emoji { height: 40px; }
