/* Igloo Diner, pastel penguin ice diner. Theme variables so night mode can swap everything at once. */
:root {
  --ink: #324656; --ink2: #4a6a84; --muted: #6c8394; --faint: #97abbb;
  --pink: #9ad0f2; --pink2: #68b4e6; --pinkbg: #e8f4fd; --mint: #9fefd4; --mint2: #4fc69e; --lemon: #ffe7a3;
  --paper: #fcfbff; --card: #ffffff; --line: #dce9f3; --field: #ffffff; --soft: #f3f9fe; --soft2: #f2f8fe;
  --hud1: #daeefd; --hud2: #c0e1f9; --hudshadow: #9bcae8;
  --wall1: #f2f9ff; --wall2: #e1f1fd; --awning: #9ad0f2; --awning2: #fcfbff;
  --floor1: #eef7ff; --floor2: #d9ebfa; --counter1: #fcfbff; --counter2: #dcecfb; --countershade: #b7d3ee; --front1: #daeefd; --front2: #fcfbff;
  --board: #334b58; --wood: #83a9b8; --wood2: #4f758a; --shelf: #c9dff3;
  --page: linear-gradient(180deg, #edf8ff, #eaf4ff);
  --shadow: 0 6px 18px rgba(59, 88, 107, .14); --shadow-lg: 0 16px 44px rgba(59, 88, 107, .24);
}
body.night {
  --ink: #eaf1f6; --ink2: #cad8e3; --muted: #acbac6; --faint: #8786a0;
  --pinkbg: #2f3c47; --paper: #212d38; --card: #293744; --line: #3c4b5c; --field: #243540; --soft: #2d3b4c; --soft2: #29333f;
  --hud1: #2f3d5c; --hud2: #253750; --hudshadow: #152430;
  --wall1: #263a45; --wall2: #2c4452; --awning: #5685ac; --awning2: #2f4755;
  --floor1: #233640; --floor2: #2c3f50; --counter1: #445670; --counter2: #384b60; --countershade: #223240; --front1: #384f68; --front2: #2e4558;
  --board: #1f2825; --wood: #45555f; --wood2: #273847; --shelf: #515070;
  --page: linear-gradient(180deg, #172129, #1c2a35);
  --shadow: 0 6px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 16px 44px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Nunito, system-ui, sans-serif; color: var(--ink); font-size: 17px; overflow: hidden; background: var(--page); transition: background .4s; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; color: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 10px 13px; background: var(--field); width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(153, 203, 245, .22); }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; font-weight: 700; font-size: 15px; color: var(--ink2); margin: 12px 0 0; }
label > input, label > textarea, label > select { margin-top: 6px; }
label small { font-weight: 600; color: var(--faint); }
label.check { display: flex; gap: 10px; font-weight: 600; } label.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--pink2); flex: none; }
a { color: var(--pink2); }
code { background: var(--soft); padding: 1px 7px; border-radius: 7px; font-size: 14px; }
h2 { font-family: 'Baloo 2'; font-weight: 700; font-size: 28px; margin: 0 0 6px; color: var(--ink); }
h3 { font-family: 'Baloo 2'; font-size: 20px; margin: 20px 0 6px; }
.hint { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 4px 0 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.spacer { flex: 1; }
.empty { color: var(--faint); font-size: 15.5px; padding: 12px; text-align: center; }

/* candy buttons */
.candy { position: relative; border: none; border-radius: 18px; padding: 11px 22px; font-family: 'Baloo 2'; font-weight: 600; font-size: 18px; color: #ffffff;
  background: linear-gradient(180deg, #badcf8, var(--pink2)); box-shadow: 0 4px 0 #5496cc, 0 6px 14px rgba(84, 150, 204, .25); text-shadow: 0 1px 0 rgba(0, 0, 0, .12); transition: transform .08s, filter .15s; }
.candy::after { content: ""; position: absolute; left: 12%; right: 12%; top: 3px; height: 35%; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
.candy:hover { filter: brightness(1.05); transform: translateY(-1px); } .candy:active { transform: translateY(3px); box-shadow: 0 1px 0 #5496cc; }
.candy:disabled { filter: grayscale(.8) opacity(.55); cursor: not-allowed; transform: none; }
.candy.mint { background: linear-gradient(180deg, #b9f2df, var(--mint2)); box-shadow: 0 4px 0 #3c9f7e, 0 6px 14px rgba(60, 159, 126, .25); }
.candy.soft { background: var(--card); color: var(--ink2); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); text-shadow: none; }
.candy.soft::after { display: none; }
.candy.big { font-size: 20px; padding: 13px 26px; } .candy.mini { font-size: 15px; padding: 5px 13px; border-radius: 13px; box-shadow: 0 3px 0 #5496cc; }
.candy.mini.mint { box-shadow: 0 3px 0 #3c9f7e; }
.pill { border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 14px; font-size: 15px; font-weight: 700; color: var(--ink2); text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pill:hover { background: var(--soft); }

/* logo */
.logo { font-family: 'Baloo 2'; font-weight: 700; font-size: 32px; line-height: 1; white-space: nowrap; color: #ffffff; letter-spacing: .5px;
  text-shadow: 0 3px 0 #5496cc, 2px 2px 0 #5496cc, -2px 2px 0 #5496cc, 2px -1px 0 #5496cc, -2px -1px 0 #5496cc, 0 6px 12px rgba(84, 150, 204, .3); }
.logo .l2 { color: var(--lemon); }

/* HUD */
.hud { position: relative; z-index: 6; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 16px;
  background: linear-gradient(180deg, var(--hud1), var(--hud2)); box-shadow: 0 4px 0 var(--hudshadow), var(--shadow); }
.goal { width: 250px; background: var(--card); border-radius: 18px; padding: 5px 14px 8px; }
.goal-top { display: flex; justify-content: space-between; font-size: 16px; font-family: 'Baloo 2'; }
.meter { height: 12px; border-radius: 10px; background: var(--pinkbg); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, #badcf8, #6db5f1); transition: width .8s cubic-bezier(.3, 1.4, .5, 1); }
.coins { display: flex; gap: 7px; }
.coin { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 99px; padding: 4px 13px 4px 6px; font-family: 'Baloo 2'; font-weight: 600; font-size: 17px; }
.coin span { font-size: 18px; }
.lvl { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #fff1a8, #46baf5); font-size: 14px !important; color: #324656; }
.scenes { display: flex; gap: 4px; background: rgba(255, 255, 255, .45); padding: 4px; border-radius: 18px; }
body.night .scenes { background: rgba(0, 0, 0, .2); }
.scene-btn { white-space: nowrap; border: none; background: transparent; padding: 8px 16px; border-radius: 14px; font-family: 'Baloo 2'; font-weight: 600; font-size: 17px; color: var(--ink2); }
.scene-btn.on { background: var(--card); color: var(--pink2); box-shadow: 0 3px 0 var(--hudshadow); }
.icons { display: flex; gap: 6px; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--card); font-size: 21px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--hudshadow); color: var(--ink2); font-weight: 800; font-family: 'Baloo 2'; }
.icon-btn:hover { transform: translateY(-1px); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--pink2); color: #ffffff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #ffffff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.scene { position: absolute; top: 76px; left: 0; right: 0; bottom: 0; }

/* ---------- shop: toolbar floats over the wall ---------- */
.toolbar { position: absolute; z-index: 7; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 8px; flex-wrap: nowrap; white-space: nowrap;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
.toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Baloo 2'; font-weight: 600; font-size: 16px; }
.toolbar select { width: auto; max-width: 250px; margin: 0; padding: 6px 10px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.seg { display: flex; background: var(--soft); border-radius: 14px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 6px 13px; border-radius: 11px; font-family: 'Baloo 2'; font-weight: 600; font-size: 16px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--pink2); box-shadow: 0 2px 0 var(--line); }
.waiting { font-family: 'Baloo 2'; color: var(--ink2); font-size: 16px; padding-right: 6px; }

/* the shop fills the whole screen: the 1600×860 stage is scaled to fit and its wall/counter/floor reach far past its edges */
.stage-wrap { position: absolute; inset: 0; overflow: hidden; background: repeating-linear-gradient(90deg, var(--wall1) 0 40px, var(--wall2) 40px 80px); }
.bg-awning { position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 3;
  background: repeating-linear-gradient(90deg, var(--awning) 0 56px, var(--awning2) 56px 112px);
  -webkit-mask: radial-gradient(circle 28px at 28px 30px, #000000 98%, transparent) 0 0/56px 100% repeat-x, linear-gradient(#000000, #000000) 0 0/100% 30px no-repeat;
  mask: radial-gradient(circle 28px at 28px 30px, #000000 98%, transparent) 0 0/56px 100% repeat-x, linear-gradient(#000000, #000000) 0 0/100% 30px no-repeat;
  filter: drop-shadow(0 4px 0 rgba(84, 150, 204, .25)); }
.lights { position: absolute; left: 0; right: 0; top: 56px; height: 26px; z-index: 3; opacity: 0; transition: opacity .6s; pointer-events: none;
  background: radial-gradient(circle 5px at 50% 50%, #fff3a8 0 55%, rgba(255, 243, 168, .35) 60%, transparent 100%) 0 0/56px 26px repeat-x; }
body.night .lights { opacity: 1; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { filter: brightness(1.5); } }
.stage { position: absolute; left: 50%; top: 0; width: 1600px; height: 860px; transform-origin: top center; z-index: 2; }
.stage img { user-select: none; -webkit-user-drag: none; }
.stage > .wide { position: absolute; left: -4000px; right: -4000px; }
.wall { top: -400px; height: 948px; background: repeating-linear-gradient(90deg, var(--wall1) 0 40px, var(--wall2) 40px 80px); z-index: 0; }
.floor { top: 708px; height: 3000px; background: repeating-conic-gradient(var(--floor1) 0 25%, var(--floor2) 0 50%) 0 0/70px 70px; z-index: 0; }
.counter { top: 520px; height: 190px; z-index: 3; pointer-events: none;
  background: linear-gradient(var(--counter1), var(--counter2)) 0 0/100% 28px no-repeat, repeating-linear-gradient(90deg, var(--front1) 0 46px, var(--front2) 46px 92px) 0 28px/100% 162px no-repeat;
  box-shadow: inset 0 33px 0 -28px var(--countershade), 0 6px 0 rgba(0, 0, 0, .06); }
.moon { position: absolute; left: 1100px; top: 60px; font-size: 64px; opacity: 0; transition: opacity .6s; filter: drop-shadow(0 0 16px #fff6b0); z-index: 1; }
body.night .moon { opacity: 1; }
.shelf { position: absolute; display: flex; align-items: flex-end; gap: 12px; padding: 0 16px; height: 96px; border-bottom: 14px solid var(--shelf); border-radius: 4px; }
.shelf img { height: 78px; }
.shelf.s1 { left: 1200px; top: 88px; } .shelf.s2 { left: 1210px; top: 214px; } .shelf.s2 img { height: 66px; }

.board { position: absolute; left: 36px; top: 92px; width: 340px; min-height: 280px; padding: 16px 18px 18px; background: var(--board);
  border: 12px solid var(--wood); border-radius: 12px; box-shadow: 0 8px 0 var(--wood2), var(--shadow); color: #e9f2f6; font-family: Mali, cursive; }
.board-title { font-size: 30px; text-align: center; color: #e8f3fd; margin-bottom: 6px; }
.q { display: flex; gap: 10px; align-items: flex-start; font-size: 24px; line-height: 1.15; margin: 10px 0; cursor: pointer; }
.q:hover { color: #ffffff; } .q.done { color: #a0b7af; text-decoration: line-through; }
.q-box { width: 23px; height: 23px; border: 2.5px solid currentColor; border-radius: 5px; flex: none; margin-top: 2px; display: grid; place-items: center; font-size: 17px; }
.q small { display: block; font-size: 19px; color: #cad7d3; text-decoration: none; }
.lvlbar { margin-top: 12px; font-size: 21px; color: #e8f3fd; }
.lvlbar .meter { background: #455052; height: 10px; } .lvlbar .meter i { background: linear-gradient(90deg, #fff1a8, #46baf5); }

.kitchen { position: absolute; left: 410px; top: 96px; width: 340px; height: 340px; cursor: pointer; }
.kitchen-door { position: absolute; left: 10px; top: 40px; width: 240px; height: 300px; border-radius: 120px 120px 0 0; background: linear-gradient(#ccecfc, #ace0fb); border: 10px solid var(--shelf); box-shadow: inset 0 0 30px rgba(96, 123, 140, .25); }
body.night .kitchen-door { background: linear-gradient(#90d6f9, #64c0ed); box-shadow: inset 0 0 40px rgba(98, 198, 247, .6), 0 0 50px rgba(98, 198, 247, .3); }
.kitchen-door span { position: absolute; top: -38px; left: 50%; transform: translateX(-50%); font-family: 'Baloo 2'; font-weight: 700; color: #ffffff; background: #99cbf5; padding: 2px 14px; border-radius: 10px; font-size: 17px; letter-spacing: 1px; }
.baker { position: absolute; bottom: 0; } .baker.b1 { left: 44px; height: 250px; } .baker.b2 { left: 150px; height: 150px; }
.kitchen.busy .baker { animation: bake 1.2s ease-in-out infinite; } .kitchen.busy .baker.b2 { animation-delay: .3s; }
@keyframes bake { 50% { transform: translateY(-6px) rotate(-2deg); } }
.bubble { position: absolute; background: var(--card); color: var(--ink); border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: 18px; box-shadow: var(--shadow); line-height: 1.3; }
.kbubble { left: 262px; top: -6px; width: 215px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; z-index: 3; }
.kbubble::after { content: ""; position: absolute; left: -9px; top: 30px; border: 9px solid transparent; border-right-color: var(--card); border-left: 0; }

/* the OPEN / CLOSED sign (drawn, no picture) */
.shop-sign { position: absolute; left: 910px; top: 56px; width: 200px; border: none; background: none; padding: 0; transform-origin: 50% 0; animation: swing 3.4s ease-in-out infinite; z-index: 1; text-align: center; }
.shop-sign .rope { display: block; width: 110px; height: 36px; margin: 0 auto -4px; border: 5px solid var(--wood2); border-bottom: none; border-radius: 60px 60px 0 0; }
.shop-sign .plate { display: block; border-radius: 22px; padding: 10px 12px 12px; background: #ffffff; border: 6px solid #74d4b4; box-shadow: 0 6px 0 #45af8c, var(--shadow); }
.shop-sign b { display: block; font-family: 'Baloo 2'; font-weight: 700; font-size: 44px; letter-spacing: 3px; color: #35a882; line-height: 1; }
.shop-sign small { display: block; font-weight: 800; font-size: 15.5px; color: #6d8d82; margin-top: 5px; }
.shop-sign.closed .plate { border-color: #badcf8; box-shadow: 0 6px 0 #92bbdd, var(--shadow); }
.shop-sign.closed b { color: #64a3d5; } .shop-sign.closed small { color: #869fb4; }
body.night .shop-sign .plate { background: #2d3b4c; }
@keyframes swing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

.chef { position: absolute; left: 800px; top: 262px; height: 300px; z-index: 2; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .1)); transition: transform .3s; }
.chef.serve { transform: translateX(40px) rotate(4deg); }
.display { position: absolute; left: 1160px; top: 300px; width: 400px; z-index: 3; }
.display img { width: 100%; }
.display-tag { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--card); border-radius: 99px; padding: 5px 16px; font-family: 'Baloo 2'; font-weight: 600; font-size: 20px; white-space: nowrap; box-shadow: var(--shadow); }
.counter-items { position: absolute; left: 0; right: 0; top: 520px; z-index: 4; }
.till { position: absolute; left: 1010px; top: -128px; height: 140px; }
.counter-cake { position: absolute; left: 640px; top: -122px; height: 132px; }

/* guests */
.guests { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.guest { position: absolute; bottom: 26px; width: 270px; display: flex; flex-direction: column; align-items: center; pointer-events: auto; cursor: pointer; transition: left .7s cubic-bezier(.3, 1.2, .5, 1), opacity .5s, transform .5s; }
.guest img.who { height: 250px; max-width: 290px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .16)); transition: transform .2s; }
.guest:hover img.who { transform: translateY(-6px) scale(1.03); }
.guest.sel img.who { filter: drop-shadow(0 0 12px rgba(124, 189, 242, .95)); }
.guest.enter { animation: walkin .8s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes walkin { from { transform: translateX(360px); opacity: 0; } }
.guest.leave { transform: translate(700px, -30px) rotate(8deg); opacity: 0; pointer-events: none; }
.guest .gcake { position: absolute; bottom: 90px; right: 0; height: 76px; opacity: 0; transition: opacity .3s; }
.guest.leave .gcake { opacity: 1; }
.order { position: relative; background: var(--card); color: var(--ink); border-radius: 18px; padding: 10px 14px 11px; margin-bottom: 11px; width: 262px; text-align: center; box-shadow: var(--shadow); border: 3px solid var(--card); }
.order::after { content: ""; position: absolute; bottom: -12px; left: 50%; margin-left: -11px; border: 11px solid transparent; border-top-color: var(--card); border-bottom: 0; }
.order b { display: block; font-family: 'Baloo 2'; font-weight: 600; font-size: 21px; line-height: 1.15; max-height: 50px; overflow: hidden; }
.order small { display: block; color: var(--muted); font-size: 16px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order .want { position: absolute; top: -24px; right: -14px; width: 54px; height: 54px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); font-size: 26px; }
.order .want img { height: 40px; }
.guest.need .order { border-color: #90d6f9; } .guest.vip .order { border-color: #a7d2f6; }
.guest.vip::before { content: "VIP 💖"; position: absolute; top: -32px; font-family: 'Baloo 2'; font-weight: 700; color: #ffffff; background: var(--pink2); padding: 2px 12px; border-radius: 99px; font-size: 17px; }
.coinpop { position: absolute; z-index: 9; font-family: 'Baloo 2'; font-weight: 700; font-size: 36px; color: #4388b2; text-shadow: 0 2px 0 #ffffff; animation: pop 1.2s ease-out forwards; pointer-events: none; }
@keyframes pop { to { transform: translateY(-110px); opacity: 0; } }
.delivery { position: absolute; left: 6px; top: 596px; z-index: 6; cursor: pointer; }
.delivery img { height: 150px; } .dbubble { left: 112px; top: -38px; width: 240px; }
.empty-shop { position: absolute; left: 360px; right: 360px; top: 720px; z-index: 6; text-align: center; background: var(--card); border-radius: 20px; padding: 14px 20px; box-shadow: var(--shadow); font-family: 'Baloo 2'; font-size: 20px; }

/* ---------- map scene ---------- */
#mapScene { display: grid; grid-template-columns: 350px 1fr; gap: 14px; padding: 14px; }
#mapScene.hidden { display: none !important; }
.map-side { background: var(--paper); border-radius: 24px; padding: 16px; overflow-y: auto; box-shadow: var(--shadow); }
.side-title { font-family: 'Baloo 2'; font-weight: 700; font-size: 24px; display: flex; justify-content: space-between; align-items: center; margin: 4px 2px; }
.side-title.small { font-size: 20px; margin-top: 20px; }
.layer { border-radius: 18px; padding: 10px 12px; margin-top: 8px; background: var(--card); border: 2px solid var(--line); cursor: pointer; }
.layer.on { border-color: #badcf8; background: var(--soft); }
.layer-top { display: flex; align-items: center; gap: 10px; }
.layer img { height: 46px; width: 46px; object-fit: contain; flex: none; }
.layer b { font-family: 'Baloo 2'; font-weight: 600; font-size: 19px; } .layer small { display: block; color: var(--muted); font-size: 14.5px; }
.layer .eye { margin-left: auto; font-size: 19px; opacity: .5; } .layer.on .eye { opacity: 1; }
.bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 8px 0 6px; } .bar i { display: block; height: 100%; }
.layer-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.layer-tools .pill { font-size: 14px; padding: 3px 11px; } .pill.yes { background: #ebfef8; border-color: #a3e2cd; color: #24755a; }
.map-box { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: radial-gradient(ellipse at 50% 40%, #f6f6ff, #e8f4ff 55%, #e3f4ff); }
body.night .map-box { background: radial-gradient(ellipse at 50% 40%, #253d48, #1b2f38 60%, #152930); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.map-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: flex-start; z-index: 3; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search { position: relative; width: 330px; flex: none; }
.search input { border-radius: 99px; border-color: var(--card); box-shadow: var(--shadow); }
.search-res { position: absolute; top: 52px; left: 0; right: 0; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; padding: 5px; }
.sr { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px; cursor: pointer; font-size: 16px; }
.sr:hover { background: var(--soft); } .sr small { margin-left: auto; color: var(--faint); }
.sr i, .cdot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; background: var(--card); padding: 5px; border-radius: 16px; box-shadow: var(--shadow); }
.fbtn { border: none; background: transparent; padding: 6px 12px; border-radius: 11px; font-weight: 700; font-size: 15.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.fbtn.on { background: var(--pinkbg); color: var(--pink2); }
.zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 7px; z-index: 3; }
.zoom button { width: 48px; height: 48px; border-radius: 15px; border: none; background: var(--card); box-shadow: var(--shadow); font-size: 22px; font-weight: 800; color: var(--pink2); }
.ob-card { position: absolute; left: 14px; bottom: 14px; z-index: 4; width: 360px; background: var(--card); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow); }
.ob-card h3 { margin: 0 0 4px; } .ob-stats { display: flex; gap: 14px; font-size: 15.5px; margin: 8px 0 12px; } .ob-stats span { display: flex; align-items: center; gap: 5px; }
.tooltip { position: fixed; z-index: 30; pointer-events: none; background: var(--card); color: var(--ink); border-radius: 14px; padding: 9px 13px; font-size: 15.5px; max-width: 330px; box-shadow: var(--shadow); line-height: 1.4; }
.tooltip small { color: var(--muted); } .tip-stats { display: flex; gap: 12px; margin: 5px 0; font-size: 14.5px; } .tip-stats span { display: flex; align-items: center; gap: 5px; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Baloo 2'; font-size: 24px; color: var(--pink2); z-index: 5; background: var(--paper); }

/* ---------- order ticket ---------- */
.ticket { position: fixed; top: 84px; right: 12px; bottom: 12px; width: 520px; z-index: 12; transform: translateX(580px); transition: transform .3s cubic-bezier(.3, 1.1, .5, 1);
  background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.ticket.open { transform: none; }
#ticketBody { flex: 1; overflow-y: auto; padding: 0 22px; display: flex; flex-direction: column; }
.t-head { display: flex; gap: 14px; align-items: flex-end; margin: 0 -22px; padding: 18px 22px 14px; background: linear-gradient(180deg, var(--pinkbg), var(--soft)); border-bottom: 3px dashed #c7e3fa; position: relative; }
.t-head img { height: 116px; width: 116px; object-fit: contain; flex: none; }
.t-head h2 { font-size: 24px; line-height: 1.2; padding-right: 36px; }
.t-sub { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--card); margin: 6px 5px 0 0; }
.chip.soft { background: #e2f4fd; color: #386885; }
.t-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--card); font-weight: 800; color: var(--pink2); box-shadow: var(--shadow); font-size: 17px; }
.card { background: var(--card); border-radius: 20px; padding: 12px 16px 14px; margin-top: 14px; border: 2px solid var(--line); }
.card-h { display: flex; justify-content: space-between; align-items: center; font-family: 'Baloo 2'; font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.card-h small { font-family: Nunito; font-weight: 600; color: var(--faint); font-size: 14.5px; }
.field { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-top: 8px; font-size: 15.5px; font-weight: 700; color: var(--ink2); }
.field input { padding: 9px 12px; font-size: 16.5px; }
.verify { font-size: 15px; color: var(--muted); margin-top: 8px; }
.links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.letter input { font-weight: 700; margin-top: 8px; font-size: 17px; }
.letter textarea { margin-top: 8px; font-size: 17px; line-height: 29px; background: repeating-linear-gradient(180deg, var(--field) 0 28px, var(--soft) 28px 29px); }
.warn { background: #e2f4fd; border: 2px solid #a8dffa; color: #264c64; border-radius: 14px; padding: 9px 13px; margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
body.night .warn { background: #2b363e; border-color: #405664; color: #ace0fb; }
.plan { font-size: 15px; color: var(--muted); margin-top: 8px; }
.thread { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.msg { border-radius: 16px; padding: 10px 14px; background: var(--soft2); font-size: 16px; }
.msg.in { background: var(--soft); border: 2px solid #c7e3fa; }
.msg-h { font-size: 14px; color: var(--faint); font-weight: 700; } .msg pre, .preview pre { white-space: pre-wrap; font-family: inherit; margin: 4px 0 0; }
.t-foot { margin: 16px 0 14px; } .t-foot textarea { font-size: 16px; }
.t-actions { display: flex; gap: 10px; align-items: center; padding: 14px 22px; background: var(--card); border-top: 3px dashed #c7e3fa; }
.t-actions .skip { margin-left: auto; }

/* ---------- modal sheets ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(33, 46, 57, .35); padding: 18px; }
.sheet { position: relative; width: min(720px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--paper); border-radius: 28px; padding: 26px 28px; box-shadow: var(--shadow-lg); animation: popin .25s cubic-bezier(.3, 1.5, .5, 1); }
.sheet.wide { width: min(980px, 100%); }
@keyframes popin { from { transform: scale(.9); opacity: 0; } }
.x { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--pinkbg); color: var(--pink2); font-weight: 800; z-index: 2; font-size: 17px; }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; padding-right: 50px; }
.sheet-head .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--pinkbg); display: grid; place-items: center; font-size: 32px; flex: none; }
.sheet-head h2 { margin: 0; } .sheet-head .hint { margin: 2px 0 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; background: var(--soft); padding: 5px; border-radius: 16px; width: fit-content; max-width: 100%; }
.tab { border: none; background: transparent; padding: 8px 15px; border-radius: 12px; font-family: 'Baloo 2'; font-weight: 600; font-size: 17px; color: var(--ink2); }
.tab.on { background: var(--card); color: var(--pink2); box-shadow: 0 2px 0 var(--line); } .tab b { opacity: .6; margin-left: 4px; }
.reply-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.reply { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); cursor: pointer; align-items: flex-start; }
.reply:hover { border-color: #badcf8; } .reply.unread { border-color: var(--pink); background: var(--soft); }
.reply img { height: 60px; width: 60px; object-fit: contain; flex: none; }
.reply-top { display: flex; justify-content: space-between; gap: 6px; font-size: 16.5px; } .reply-top small { color: var(--faint); white-space: nowrap; }
.reply-text { color: var(--muted); font-size: 15.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.variant { margin-top: 12px; } .vh { font-weight: 800; font-size: 15.5px; } .vh small { font-weight: 600; color: var(--faint); }
.variant input, .variant textarea { margin-top: 6px; }
.check-res, .preview { margin-top: 12px; background: var(--soft2); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.55; }
.inbox { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 11px 14px; margin-top: 10px; }
.inbox .grow { flex: 1; min-width: 0; } .inbox small { color: var(--muted); font-size: 15px; } .inbox input { width: 74px; padding: 6px 9px; }
.steps { font-size: 15.5px; background: var(--soft2); border-radius: 14px; padding: 10px 14px; margin-top: 10px; line-height: 1.55; } .steps:empty { display: none; } .steps ol { margin: 4px 0 0; padding-left: 20px; }
.health { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-top: 12px; }
.health h3 { margin: 0 0 6px; display: flex; justify-content: space-between; }
.grade { font-size: 14px; padding: 2px 10px; border-radius: 99px; } .gA { background: #defaf1; color: #1a7b5b; } .gB { background: #fef9c3; color: #2f5064; } .gC, .gD { background: #e5f1fb; color: #2a71ab; }
.hc { font-size: 16px; margin: 6px 0; } .fix { font-size: 14.5px; color: var(--muted); margin-left: 24px; }
.trails { margin-top: 14px; font-size: 15.5px; color: var(--muted); background: var(--soft2); border-radius: 14px; padding: 12px 14px; line-height: 1.6; }
details summary { cursor: pointer; font-weight: 700; font-size: 16px; margin-top: 14px; color: var(--ink2); }
.chefs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.chef-pick { border: 3px solid transparent; background: var(--card); border-radius: 18px; padding: 8px; width: 116px; text-align: center; font-size: 15px; font-weight: 700; }
.chef-pick img { height: 88px; } .chef-pick.on { border-color: var(--pink); background: var(--soft); }
.help-cast { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; } .help-cast img { height: 104px; }
.help ol { padding-left: 22px; line-height: 1.6; font-size: 17.5px; } .help li { margin-bottom: 8px; }

/* ---------- level road ---------- */
#levelsScene { display: grid; grid-template-columns: 1fr 430px; gap: 14px; padding: 14px; }
#levelsScene.hidden { display: none !important; }
.road-wrap { position: relative; overflow-y: auto; border-radius: 26px; box-shadow: var(--shadow);
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .8) 0 3px, transparent 4px) 0 0/46px 46px, linear-gradient(180deg, #d9fff2 0%, #ebf4fd 45%, #dbf2fd 100%); }
body.night .road-wrap { background: radial-gradient(circle at 15% 20%, rgba(255, 246, 176, .85) 0 1.5px, transparent 2.5px) 0 0/46px 46px, linear-gradient(180deg, #122d33 0%, #1f3846 50%, #273a50 100%); }
.road { position: relative; margin: 0 auto; width: 780px; }
.road svg.path { position: absolute; left: 0; top: 0; pointer-events: none; }
.deco { position: absolute; height: 68px; opacity: .9; pointer-events: none; }
.node { position: absolute; width: 380px; display: flex; align-items: center; gap: 14px; }
.node.right { flex-direction: row-reverse; text-align: right; }
.stop { width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; border: 5px solid #ffffff; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d6eafb 55%, #a5d1f6); box-shadow: 0 6px 0 #84b5dc, 0 10px 20px rgba(84, 150, 204, .25); }
.stop img { width: 80px; height: 80px; object-fit: contain; }
.stop .num { position: absolute; top: -8px; left: -8px; width: 38px; height: 38px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; font-family: 'Baloo 2'; font-weight: 700; color: var(--pink2); box-shadow: 0 2px 0 #b0d2ee; font-size: 18px; }
.node.done .stop { background: radial-gradient(circle at 35% 30%, #ffffff, #cbf5e7 55%, #74d4b4); box-shadow: 0 6px 0 #45af8c, 0 10px 20px rgba(69, 175, 140, .25); }
.node.done .stop::after { content: "✓"; position: absolute; bottom: -6px; right: -6px; width: 36px; height: 36px; border-radius: 50%; background: #2abd8c; color: #ffffff; display: grid; place-items: center; font-weight: 800; border: 3px solid #ffffff; font-size: 18px; }
.node.locked .stop { background: radial-gradient(circle at 35% 30%, #ffffff, #e4e5ea 55%, #c9c1cc); box-shadow: 0 6px 0 #b3a9b6; }
.node.locked .stop img { opacity: .5; filter: grayscale(1); }
.node.locked .stop::after { content: "🔒"; position: absolute; bottom: -6px; right: -6px; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; font-size: 17px; }
.node.current .stop { animation: glow 1.8s ease-in-out infinite; width: 122px; height: 122px; }
@keyframes glow { 50% { box-shadow: 0 6px 0 #84b5dc, 0 0 0 12px rgba(153, 203, 245, .25); } }
.node .chef-here { position: absolute; height: 136px; top: -70px; }
.node:not(.right) .chef-here { left: -108px; } .node.right .chef-here { right: -108px; }
.info { background: var(--card); border-radius: 20px; padding: 11px 16px; box-shadow: var(--shadow); min-width: 0; flex: 1; }
.info b { font-family: 'Baloo 2'; font-weight: 600; font-size: 20px; display: block; }
.info small { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }
.info .bar { margin: 7px 0 3px; }
.info .tools { display: flex; gap: 5px; margin-top: 6px; } .node.right .info .tools { justify-content: flex-end; }
.info .tools button { border: none; background: var(--soft); border-radius: 9px; padding: 3px 10px; font-size: 14.5px; color: var(--ink2); }
.bakers-here { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 800; color: #24755a; background: #ebfef8; padding: 2px 11px; border-radius: 99px; margin-top: 5px; }
.plan-card { background: var(--paper); border-radius: 24px; padding: 18px 20px; overflow-y: auto; box-shadow: var(--shadow); }
.calm { background: linear-gradient(135deg, #ebfef8, #f6fafe); border-radius: 18px; padding: 14px 16px; margin: 12px 0; font-size: 16.5px; line-height: 1.55; color: #324656; }
body.night .calm { background: linear-gradient(135deg, #243e35, #2d3b4c); color: var(--ink); }
.pstat { margin-top: 14px; } .pstat .top { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.pstat .meter { height: 11px; margin-top: 5px; } .pstat .meter i { background: linear-gradient(90deg, #93dfc6, #55c19d); }
.plan-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.plan-row { display: flex; align-items: center; gap: 8px; font-size: 16px; background: var(--card); border-radius: 14px; padding: 8px 12px; }
.plan-row .st { margin-left: auto; font-weight: 700; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.plan-row.now { border: 2px solid #a3e2cd; } .plan-row.now .st { color: #35a882; }
.unlock-pop { text-align: center; } .unlock-pop .cast { display: flex; justify-content: center; gap: 6px; margin: 10px 0; } .unlock-pop .cast img { height: 124px; }
.big-level { font-family: 'Baloo 2'; font-size: 46px; color: var(--pink2); margin: 4px 0; }

/* login, toast, confetti */
.login { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; }
.login-card { width: min(430px, 92vw); background: var(--card); border-radius: 30px; padding: 30px 32px; text-align: center; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.login-chef { height: 170px; margin: -100px auto 0; }
.login-card .logo { font-size: 46px; } .login-card p { margin: 0 0 6px; color: var(--muted); font-size: 18px; }
.err { color: #64a3d5; font-weight: 700; min-height: 20px; font-size: 15.5px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: var(--card); color: var(--ink); border-radius: 99px; padding: 12px 24px; font-family: 'Baloo 2'; font-weight: 600; font-size: 19px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; animation: popin .25s; max-width: 92vw; }
.toast.bad { background: #eaf4fd; color: #315573; }
.toast-undo { border: none; background: var(--pinkbg); color: var(--pink2); font-weight: 700; padding: 4px 14px; border-radius: 99px; }
.confetti { position: fixed; top: -12px; width: 11px; height: 15px; z-index: 60; border-radius: 3px; animation: fall 2.3s linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

@media (max-width: 1300px) { .coins .coin:nth-child(n+3) { display: none; } .goal { width: 190px; } .logo { font-size: 27px; } .scene-btn { padding: 8px 11px; font-size: 16px; } }
@media (max-width: 900px) {
  body { overflow: auto; } .hud { flex-wrap: wrap; height: auto; padding: 8px; } .goal { order: 9; width: 100%; } .scene { top: 180px; }
  #mapScene, #levelsScene { grid-template-columns: 1fr; } .map-side { max-height: 260px; } .ticket { left: 6px; right: 6px; width: auto; top: 80px; }
  .toolbar { top: 6px; }
}

/* v5: smaller sign text, hover explanations, guided tour, stat tiles, dictionary */
.shop-sign b { font-size: 28px; letter-spacing: 2px; } .shop-sign small { font-size: 13.5px; }
.shop-sign { width: 180px; }
#display, #till, .chef, .delivery, .board-title { cursor: pointer; }
.gtip { position: fixed; z-index: 70; max-width: 360px; pointer-events: auto !important; padding-right: 40px !important; background: var(--card); color: var(--ink); border-radius: 16px; padding: 11px 14px; box-shadow: var(--shadow-lg); font-size: 15.5px; line-height: 1.45; pointer-events: none; border: 2px solid var(--pinkbg); }
.gtip .gt { display: block; font-family: 'Baloo 2'; font-weight: 600; font-size: 17px; color: var(--pink2); margin-bottom: 3px; }
.tour { position: fixed; inset: 0; z-index: 80; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(22, 31, 38, .62); transition: all .35s cubic-bezier(.3, 1.1, .5, 1); pointer-events: none; outline: 3px solid #badcf8; }
.tour-card { position: fixed; width: 390px; background: var(--card); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-lg); transition: left .35s, top .35s; }
.tour-card h3 { margin: 4px 0 6px; } .tour-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.tour-step { font-size: 13px; font-weight: 800; color: var(--pink2); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px; text-align: center; }
.stat span { font-size: 26px; display: block; } .stat b { font-family: 'Baloo 2'; font-size: 28px; display: block; } .stat small { color: var(--muted); font-size: 14px; }
.dict { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15.5px; }
.dict td { background: var(--card); padding: 9px 12px; vertical-align: top; line-height: 1.45; }
.dict td:first-child { border-radius: 12px 0 0 12px; font-family: 'Baloo 2'; font-weight: 600; white-space: nowrap; width: 1%; }
.dict td:last-child { border-radius: 0 12px 12px 0; color: var(--ink2); }
.muted { color: var(--muted); font-weight: 600; }

.ip-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--pinkbg); color: var(--pink2); font-weight: 800; font-size: 13px; }
.gtip .row { margin-top: 10px; }
[data-pop] { cursor: pointer; }

/* ================= PHONE LAYOUT ================= */
.m-shop, .m-groups, .m-done { display: none; }
@media (max-width: 760px) {
  body { overflow: auto; font-size: 17px; }
  .hud { position: sticky; top: 0; flex-wrap: wrap; height: auto; gap: 8px; padding: 10px 12px 12px; border-radius: 0 0 22px 22px; }
  .hud .logo { font-size: 24px; } .hud { flex-wrap: wrap; }
  .goal { order: 9; width: 100%; padding: 6px 14px 9px; }
  .coins { order: 8; width: 100%; justify-content: space-between; } .coins .coin { display: flex !important; flex: 1; justify-content: center; }
  .icons { margin-left: auto; gap: 5px; flex-wrap: nowrap; } .icon-btn { width: 42px; height: 42px; font-size: 19px; flex: none; } #fsBtn { display: none; }
  .hud > .spacer { display: none; }
  /* scene tabs become a thumb-friendly bottom bar */
  .scenes { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); justify-content: space-around; }
  body.night .scenes { background: var(--card); }
  .scene-btn { flex: 1; font-size: 16px; padding: 10px 6px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .scene-btn.on { background: var(--pinkbg); box-shadow: none; }
  .scene { position: static; padding-bottom: 96px; }
  #shopScene { display: block; padding: 0; } #shopScene.hidden { display: none !important; }
  .stage-wrap { display: none; }
  .m-shop { display: block; padding: 12px 12px 104px; } .m-shop.hidden { display: none !important; }
  #shopScene > .toolbar { display: none; }
  .m-controls .toolbar { position: static; transform: none; display: flex; flex-wrap: wrap; white-space: normal; max-width: none; padding: 10px; gap: 8px; }
  .m-controls .toolbar select { max-width: none; flex: 1 1 100%; font-size: 17px; padding: 11px 12px; }
  .m-controls .seg { flex: 1 1 100%; } .m-controls .seg button { flex: 1; font-size: 17px; padding: 10px; }
  .m-controls .waiting { flex: 1 1 100%; text-align: center; font-size: 16px; }
  .m-hero { display: flex; align-items: center; gap: 12px; background: repeating-linear-gradient(90deg, var(--wall1) 0 30px, var(--wall2) 30px 60px); border-radius: 24px; padding: 12px 14px; box-shadow: var(--shadow); }
  .m-chef { height: 92px; flex: none; }
  .m-hero-txt { flex: 1; min-width: 0; } .m-hero-txt b { font-family: 'Baloo 2'; font-size: 21px; display: block; } .m-hero-txt small { color: var(--muted); font-size: 15px; }
  .m-sign { border: 5px solid #74d4b4; background: #ffffff; border-radius: 18px; padding: 8px 12px; box-shadow: 0 4px 0 #45af8c; flex: none; }
  .m-sign b { display: block; font-family: 'Baloo 2'; font-size: 20px; color: #35a882; } .m-sign small { color: #6d8d82; font-weight: 800; font-size: 13px; }
  .m-sign.closed { border-color: #badcf8; box-shadow: 0 4px 0 #92bbdd; } .m-sign.closed b { color: #64a3d5; } .m-sign.closed small { color: #869fb4; }
  body.night .m-sign { background: #2d3b4c; }
  .m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .m-tile { border: none; background: var(--card); border-radius: 20px; padding: 12px 10px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; color: var(--ink); }
  .m-tile span { grid-row: span 2; font-size: 32px; } .m-tile b { font-family: 'Baloo 2'; font-size: 26px; line-height: 1; } .m-tile small { color: var(--muted); font-size: 15px; font-weight: 700; }
  .m-controls { margin-top: 12px; }
  .m-guest { margin-top: 14px; background: var(--card); border-radius: 26px; padding: 16px; box-shadow: var(--shadow); text-align: center; position: relative; }
  .m-guest .m-order { background: var(--soft); border-radius: 18px; padding: 10px 12px; margin-bottom: 6px; }
  .m-guest .m-order b { display: block; font-family: 'Baloo 2'; font-size: 23px; line-height: 1.2; }
  .m-guest .m-order small { display: block; color: var(--muted); font-size: 16px; margin-top: 3px; }
  .m-guest img.m-who { height: 190px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .14)); }
  .m-guest .m-tag { display: inline-block; font-family: 'Baloo 2'; font-weight: 700; color: #ffffff; background: var(--pink2); padding: 3px 14px; border-radius: 99px; font-size: 16px; margin-bottom: 8px; }
  .m-guest .m-btns { display: flex; gap: 10px; margin-top: 10px; } .m-guest .m-btns .candy { flex: 1; font-size: 18px; padding: 14px 10px; white-space: nowrap; } .m-guest .m-btns .candy:first-child { flex: 2; }
  .m-guest.leave { animation: mleave .45s ease-in forwards; }
  @keyframes mleave { to { transform: translateX(110%) rotate(6deg); opacity: 0; } }
  .m-queue { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; }
  .m-q { flex: none; width: 96px; border: none; background: var(--card); border-radius: 18px; padding: 8px 6px; box-shadow: var(--shadow); color: var(--ink); }
  .m-q img { height: 62px; } .m-q small { font-size: 13px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-card { margin-top: 14px; background: var(--board); border-radius: 22px; padding: 14px 16px; color: #e9f2f6; font-family: Mali, cursive; box-shadow: var(--shadow); }
  .m-card-h { font-size: 26px; color: #e8f3fd; margin-bottom: 4px; }
  .m-card .q { font-size: 23px; }
  /* levels: a simple vertical list */
  #levelsScene { display: block; padding: 12px; } #levelsScene.hidden { display: none !important; }
  .road-wrap { overflow: visible; padding: 10px; } .road { width: auto !important; height: auto !important; }
  .road svg.path, .road .deco, .node .chef-here { display: none; }
  .road .node { position: relative !important; left: auto !important; top: auto !important; width: 100%; margin: 12px 0; flex-direction: row !important; text-align: left !important; }
  .road .node .info .tools { justify-content: flex-start !important; }
  .stop { width: 84px !important; height: 84px !important; } .stop img { width: 62px; height: 62px; }
  .plan-card { margin-top: 14px; }
  /* map: full screen, groups slide up */
  #mapScene { display: block; padding: 0; } #mapScene.hidden { display: none !important; }
  .map-box { height: calc(100vh - 230px); border-radius: 0; }
  .map-side { position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; max-height: 70vh; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .3s; padding-bottom: 100px; }
  .map-side.open { transform: none; }
  .m-done { display: block; float: right; font-size: 17px; padding: 8px 16px; position: sticky; top: 0; z-index: 2; }
  .m-groups { display: inline-block; flex: none; }
  .map-top { flex-wrap: wrap; } .search { width: auto; flex: 1; } .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .fbtn { white-space: nowrap; font-size: 15px; padding: 8px 12px; }
  .zoom button { width: 52px; height: 52px; } .ob-card { left: 8px; right: 8px; width: auto; bottom: 96px; }
  /* ticket, sheets and popups: full screen / bottom sheets with big buttons */
  .ticket { top: 0; left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; z-index: 30; transform: translateY(105%); }
  .ticket.open { transform: none; }
  .t-head img { height: 90px; width: 90px; } .t-head h2 { font-size: 21px; }
  .field { grid-template-columns: 1fr; gap: 4px; } .field input { font-size: 17px; padding: 12px; }
  .t-actions { flex-wrap: wrap; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); } .t-actions .candy { flex: 1; font-size: 18px; padding: 14px 12px; }
  .t-actions .skip { margin-left: 0; flex-basis: 100%; }
  .modal { padding: 0; align-items: end; } .sheet, .sheet.wide { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
  .grid2 { grid-template-columns: 1fr; } .tabs { width: 100%; } .tab { flex: 1; font-size: 16px; padding: 10px 8px; }
  .reply-list { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; }
  .gtip { left: 10px !important; right: 10px !important; top: auto !important; bottom: 100px !important; max-width: none; font-size: 17px; padding: 16px 44px 16px 16px !important; }
  .gtip .row .candy, .gtip .row .pill { font-size: 17px; padding: 11px 16px; }
  .tour-card { left: 10px !important; right: 10px !important; width: auto; top: auto !important; bottom: 100px !important; }
  .toast { bottom: 100px; font-size: 17px; }
  .dict td:first-child { white-space: normal; }
}

/* ---------- Gmail-style email editor ---------- */
.sheet.gmail { width: min(640px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sheet.gmail > .x { top: 8px; right: 10px; width: 36px; height: 36px; font-size: 16px; }
.gm { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.gm-top { background: var(--pinkbg); padding: 14px 56px 14px 20px; font-family: 'Baloo 2'; font-size: 19px; }
.gm-steps { display: flex; gap: 6px; padding: 10px 14px 6px; overflow-x: auto; }
.gm-step { flex: 1; min-width: 118px; border: 2px solid transparent; background: var(--soft); border-radius: 14px; padding: 7px 10px; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.gm-step b { display: block; font-size: 16px; } .gm-step small { display: block; font-size: 13px; color: var(--muted); }
.gm-step.on { border-color: var(--pink2); background: var(--card); }
.gm-line { display: flex; align-items: center; gap: 10px; margin: 0 20px; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.09)); min-height: 46px; }
.gm-line > span { color: var(--muted); font-size: 16px; min-width: 58px; }
.gm-line input { border: none !important; box-shadow: none !important; background: transparent !important; padding: 10px 0 !important; font-size: 17px; flex: 1; outline: none; margin: 0; }
.gm-to { font-size: 16px; } .gm-to small { color: var(--muted); margin-left: 6px; font-size: 13px; }
.gm-body { border: none !important; box-shadow: none !important; background: transparent !important; resize: none; outline: none; font-size: 17px; line-height: 1.55;
  padding: 14px 20px !important; margin: 0; min-height: 300px; height: 42vh; font-family: Nunito, sans-serif; }
.gm-blanks { margin: 0 16px 8px; background: #d8f1fd; color: #224458; border-radius: 12px; padding: 9px 12px; font-size: 15px; }
body.night .gm-blanks { background: #25333c; color: #a5defa; }
.gm-link { border: none; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0 0 0 4px; }
.gm-out:empty { display: none; } .gm-out { margin: 0 16px 8px; max-height: 30vh; overflow-y: auto; }
.gm-note, .gm-prev { background: var(--soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.gm-prev small { display: block; color: var(--muted); } .gm-prev pre { white-space: pre-wrap; font-family: Nunito, sans-serif; margin: 6px 0 0; font-size: 15px; }
.gm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line, rgba(0, 0, 0,.09)); flex-wrap: wrap; }
.gm-save { background: #0b57d0; color: #ffffff; border: none; border-radius: 99px; padding: 11px 26px; font: 700 17px Nunito, sans-serif; cursor: pointer; }
.gm-save:hover { background: #0842a0; }
.gm-ic { border: none; background: transparent; color: var(--ink); border-radius: 99px; padding: 9px 12px; font: 700 15px Nunito, sans-serif; cursor: pointer; }
.gm-ic:hover, .gm-ic.on { background: var(--soft); }
.gm-menu { position: relative; }
.gm-drop { position: absolute; bottom: 110%; left: 0; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 5; }
.gm-drop button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; border-radius: 10px; font: 600 15px Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.gm-drop button:hover { background: var(--soft); }
.gm-bar .grow { flex: 1; }
@media (max-width: 760px) {
  .sheet.gmail { max-height: 94vh; height: 94vh; }
  .gm-body { height: auto; flex: 1; min-height: 160px; }
  .gm-step { min-width: 104px; }
  .gm-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .gm-save { flex: 1 1 100%; order: 9; padding: 13px; }
}
.gm { overflow-y: auto; } .gm > * { flex: none; }
.gm-body { height: 38vh; min-height: 160px; }
.gm-bar { position: sticky; bottom: 0; background: var(--paper); }
@media (max-width: 760px) { .gm-body { height: 46vh; flex: none; } }
.gm-card { padding: 0 !important; overflow: hidden; flex: none; }
.gm-card .gm-top { font-size: 17px; padding: 12px 16px; } .gm-card .gm-top small { font-family: Nunito; font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.gm-card .gm-line { margin: 0 16px; } .gm-card .gm-body { height: auto; min-height: 280px; padding: 12px 16px !important; }
.gm-card > .plan, .gm-card > .warn { margin: 0 12px 12px; }
@media (max-width: 760px) { .gm-to small { display: none; } }

/* ---------- 📋 My day ---------- */
#plannerScene { overflow-y: auto; }
.planner { max-width: 880px; margin: 0 auto; padding: 18px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.scene-btn { position: relative; } .scene-btn .badge { position: absolute; top: -4px; right: -4px; }
.pl-hero { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 28px; padding: 16px 20px; box-shadow: var(--shadow); border: 3px solid var(--pink2); }
.pl-hero.calm { border-color: #83cfb6; }
.pl-hero img { width: 92px; height: 92px; object-fit: contain; flex: none; }
.pl-hero h2 { margin: 0 0 4px; font-family: 'Baloo 2'; font-size: 27px; } .pl-hero p { margin: 0; font-size: 18px; color: var(--muted); } .pl-hero p b { color: var(--ink); }
.grow { flex: 1; min-width: 0; }
.pl-shop { flex: none; border: none; background: var(--soft); border-radius: 20px; padding: 10px 14px; display: grid; justify-items: center; gap: 3px; cursor: pointer; color: var(--ink); font: inherit; }
.pl-shop b { font-family: 'Baloo 2'; font-size: 16px; } .pl-shop small { font-size: 13px; color: var(--muted); }
.sw { width: 50px; height: 28px; border-radius: 99px; background: #d3d0d8; position: relative; flex: none; transition: background .2s; display: inline-block; }
.sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0,.25); transition: left .2s; }
.on > .sw { background: #45b992; } .on > .sw i { left: 25px; }
.pl-card { background: var(--card); border-radius: 26px; padding: 18px 20px; box-shadow: var(--shadow); }
.pl-card h3 { margin: 0 0 10px; font-family: 'Baloo 2'; font-size: 22px; } .pl-card h3 small { font-family: Nunito; font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.pl-card .hint { font-size: 15px; }
.pl-need { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--soft); margin-bottom: 8px; }
.pl-need b { display: block; font-size: 17px; } .pl-need small { color: var(--muted); font-size: 15px; }
.pl-ic { font-size: 28px; flex: none; width: 40px; text-align: center; }
.pl-need .candy { flex: none; font-size: 16px; padding: 10px 16px; }
.pl-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pl-people .chip { border: none; background: var(--card); border-radius: 99px; padding: 5px 12px; font: 700 14px Nunito; color: var(--ink); cursor: pointer; }
.pl-allclear, .pl-empty { background: #eaf7f3; color: #236750; border-radius: 18px; padding: 16px; font-size: 17px; text-align: center; }
body.night .pl-allclear, body.night .pl-empty { background: #1f3930; color: #b1e5d4; }
.pl-day { margin-top: 12px; } .pl-day-h { font-family: 'Baloo 2'; font-size: 18px; margin-bottom: 6px; } .pl-day-h small { font-family: Nunito; color: var(--muted); font-size: 14px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; }
.pl-row:nth-child(even) { background: var(--soft); }
.pl-row img { width: 44px; height: 44px; object-fit: contain; cursor: pointer; flex: none; } .pl-row .grow { cursor: pointer; }
.pl-row b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pl-row small { color: var(--muted); font-size: 14px; }
.pl-btn { flex: none; border: 2px solid var(--line, rgba(0, 0, 0,.08)); background: var(--card); border-radius: 99px; padding: 7px 12px; font: 700 14px Nunito; color: var(--ink); cursor: pointer; }
.pl-btn:hover { background: var(--pinkbg); }
.pl-more { border: none; background: none; font: 800 15px Nunito; color: var(--pink2); cursor: pointer; padding: 8px 10px; }
.pl-auto { border-radius: 18px; background: var(--soft); padding: 12px; margin-bottom: 10px; }
.pl-auto-h { font-family: 'Baloo 2'; font-size: 18px; margin-bottom: 6px; }
.pl-sw { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: none; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 6px; cursor: pointer; color: var(--ink); font: inherit; }
.pl-sw b { display: block; font-size: 16px; } .pl-sw small { color: var(--muted); font-size: 14px; }
.pl-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pl-stats > div { background: var(--soft); border-radius: 18px; padding: 12px 14px; } .pl-stats b { display: block; font-family: 'Baloo 2'; font-size: 28px; } .pl-stats small { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .planner { padding: 12px 12px 110px; }
  .pl-hero { flex-wrap: wrap; padding: 14px; } .pl-hero img { width: 64px; height: 64px; } .pl-hero h2 { font-size: 23px; }
  .pl-shop { width: 100%; grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 12px; } .pl-shop .sw { grid-row: span 2; }
  .pl-need { flex-wrap: wrap; } .pl-need .candy { width: 100%; }
  .pl-btn span { display: none; } .pl-btn { padding: 9px 11px; font-size: 17px; }
  .pl-stats { grid-template-columns: 1fr; }
  .scene-btn { font-size: 13px; padding: 8px 2px; }
}
@media (max-width: 760px) {
  .pl-row { flex-wrap: wrap; row-gap: 6px; }
  .pl-row .grow { flex: 1 1 calc(100% - 60px); } .pl-row b { white-space: normal; }
  .pl-row .pl-btn:first-of-type { margin-left: 54px; }
  .pl-btn span { display: inline; font-size: 14px; } .pl-btn { padding: 8px 12px; font-size: 14px; }
}

/* ---------- phone: big-thumb pass (every label ≥15px, every tap target ≥44px, inputs ≥17px so iOS never zooms) ---------- */
@media (max-width: 760px) {
  body { -webkit-text-size-adjust: 100%; }
  small, .hint, .t-sub, .verify { font-size: 15px !important; line-height: 1.4; }
  .hint { font-size: 16px !important; }
  input, select, textarea { font-size: 17px !important; min-height: 48px; }
  textarea { min-height: 96px; }
  input[type=checkbox], input[type=radio] { width: 26px !important; height: 26px !important; min-height: 0 !important; flex: none; margin: 0; }
  label.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; padding: 6px 0; }
  .pill, .candy, .tab, .fbtn, .pl-btn, .gm-ic, .chip, .pl-people .chip { min-height: 46px; font-size: 16px !important; }
  .candy.mini { min-height: 44px; padding: 10px 16px; font-size: 16px !important; }
  .pill { padding: 10px 16px; display: inline-flex; align-items: center; }
  .x, #sx { width: 46px !important; height: 46px !important; font-size: 20px !important; }
  .tabs { gap: 6px; } .tab { flex: 1 1 30%; padding: 8px 6px; }
  .m-done { font-size: 17px !important; padding: 10px 20px !important; }
  .fbtn { padding: 8px 14px; }
  .q { min-height: 44px; padding: 8px 4px; font-size: 18px; } .q small { font-size: 15px !important; }
  .road button, .level-node button, .node button { min-height: 44px; padding: 8px 14px; font-size: 16px; }
  .bakers-here, .st { font-size: 15px !important; }
  .t-foot .row, .links { gap: 8px; flex-wrap: wrap; }
  #oEditLetters { display: inline-block; padding: 8px 2px; font-size: 16px; }
  a { text-underline-offset: 3px; }
  /* bottom tab bar: bigger and easier to hit */
  .scenes { padding-top: 6px; }
  .scene-btn { min-height: 60px; font-size: 14px !important; line-height: 1.15; gap: 3px; }
  .scene-btn::first-letter { font-size: 22px; }
  .scene { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .m-shop { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .planner { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  /* notch / home-bar safe areas (matters inside the iPhone app) */
  .hud { padding-top: calc(10px + env(safe-area-inset-top)); }
  .ticket { padding-top: env(safe-area-inset-top); }
  .toast, .gtip { font-size: 17px; }
}
/* inside the iPhone app: no fullscreen button (the app is already full screen) */
body.in-app #fsBtn { display: none !important; }
.scene-btn i { font-style: normal; margin-right: 5px; }
@media (max-width: 760px) {
  .scene-btn::first-letter { font-size: inherit; }
  .scene-btn { flex-direction: column; justify-content: center; font-size: 14px !important; font-weight: 800; }
  .scene-btn i { display: block; font-size: 25px; line-height: 1; margin: 0 0 3px; }
  .scene-btn .long { display: none; }
  .scene-btn .badge { top: 2px; right: 14%; }
}

/* ======================================================================
   Phone polish (v18): one spacing system everywhere.
   page gutter 14px · gap between cards 12px · card padding 16px · card radius 22px
   ====================================================================== */
.short { display: none; }
.pl-acts { display: flex; gap: 8px; flex: none; }
@media (max-width: 760px) {
  :root { --gut: 14px; --gap: 12px; --pad: 16px; --rad: 22px; }
  .short { display: inline; } .t-actions .long, .skip .long { display: none; }

  /* header: compact, one tidy block */
  .hud { padding: calc(8px + env(safe-area-inset-top)) var(--gut) 12px; gap: 10px; border-radius: 0 0 26px 26px; box-shadow: 0 6px 18px rgba(101, 157, 203, .12); }
  .hud .logo { font-size: 25px; line-height: 1; }
  .icons { gap: 6px; } .icon-btn { width: 40px; height: 40px; font-size: 18px; }
  .goal { padding: 9px 14px 10px; border-radius: 16px; box-shadow: none; }
  .goal-top { font-size: 15px; } .goal .meter { height: 8px; margin-top: 6px; }

  /* every scene: same gutter and rhythm */
  .m-shop { display: flex !important; flex-direction: column; gap: var(--gap); padding: var(--gap) var(--gut) calc(112px + env(safe-area-inset-bottom)); }
  .m-shop.hidden { display: none !important; }
  .m-shop > * { margin: 0 !important; }

  /* shop hero: name + level on the left, a small open/closed switch on the right */
  .m-hero { padding: 12px 14px; gap: 12px; border-radius: var(--rad); }
  .m-chef { height: 64px; width: 64px; object-fit: contain; flex: none; }
  .m-hero-txt b { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-hero-txt small { display: block; margin-top: 2px; }
  .m-sign { border-width: 3px; border-radius: 99px; padding: 8px 14px; box-shadow: 0 3px 0 #45af8c; display: flex; flex-direction: column; align-items: center; min-width: 92px; }
  .m-sign.closed { box-shadow: 0 3px 0 #92bbdd; }
  .m-sign b { font-size: 17px; line-height: 1.1; } .m-sign small { font-size: 12px !important; line-height: 1.1; }

  .m-tiles { gap: 10px; }
  .m-tile { padding: 12px 14px; border-radius: 20px; column-gap: 12px; row-gap: 2px; min-height: 76px; align-content: center; }
  .m-tile b { align-self: end; } .m-tile small { align-self: start; line-height: 1.2; }

  .m-controls .toolbar { padding: 12px; gap: 10px; border-radius: var(--rad); }
  .m-controls .toolbar select { min-height: 50px; border-radius: 14px; }
  .m-controls .seg { border-radius: 14px; } .m-controls .seg button { min-height: 46px; border-radius: 12px; }
  .m-controls .waiting { flex-basis: 100%; text-align: center; margin: 0; }

  .m-guest { padding: var(--pad); border-radius: var(--rad); }
  .m-guest .m-tag { margin-bottom: 10px; }
  .m-guest .m-order { padding: 10px 14px; margin-bottom: 4px; border-radius: 16px; }
  .m-guest img.m-who { height: 170px; margin: 4px 0; }
  .m-guest .m-btns { margin-top: 8px; }

  /* guest queue: fills the row when there are few, scrolls when there are many */
  .m-queue { display: flex; gap: 10px; padding: 2px 0 4px; scrollbar-width: none; }
  .m-queue::-webkit-scrollbar { display: none; }
  .m-q { flex: 1 0 96px; width: auto; border-radius: 18px; padding: 10px 6px 8px; }

  .m-card { padding: 14px var(--pad) 16px; border-radius: var(--rad); }
  .m-card-h { font-size: 24px; margin-bottom: 2px; }

  /* My day: flat items, no card-in-card padding pile-up */
  .planner { gap: var(--gap); padding: var(--gap) var(--gut) calc(112px + env(safe-area-inset-bottom)); }
  .pl-hero { padding: 14px; gap: 12px; border-radius: var(--rad); border-width: 2px; }
  .pl-hero img { width: 56px; height: 56px; }
  .pl-hero h2 { font-size: 22px; } .pl-hero p { font-size: 16px; }
  .pl-shop { padding: 10px 14px; border-radius: 16px; }
  .pl-card { padding: var(--pad); border-radius: var(--rad); }
  .pl-card h3 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .pl-card h3 small { margin: 0; }
  .pl-need { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: start; padding: 12px; border-radius: 16px; }
  .pl-need .pl-ic { width: 36px; font-size: 26px; grid-row: span 2; }
  .pl-need .candy { grid-column: 2; justify-self: start; width: auto !important; margin-top: 8px; min-height: 42px; padding: 9px 18px; font-size: 15px !important; }
  .pl-need b { font-size: 16px; }
  .pl-day { margin-top: 14px; } .pl-day-h { font-size: 17px; margin-bottom: 4px; }
  .pl-row { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; padding: 10px; border-radius: 16px; }
  .pl-row img { width: 44px; height: 44px; }
  .pl-row .grow { min-width: 0; }
  .pl-acts { grid-column: 2; flex-wrap: wrap; gap: 6px; }
  .pl-row .pl-btn:first-of-type { margin-left: 0; }
  .pl-btn { min-height: 38px !important; padding: 6px 12px !important; font-size: 14px !important; }
  .pl-auto { padding: 12px; border-radius: 16px; } .pl-sw { padding: 10px 12px; }
  .pl-stats { gap: 10px; } .pl-stats > div { padding: 12px 14px; border-radius: 16px; }

  /* Levels: smaller circles, centred with their card */
  .road-wrap { padding: var(--gap) var(--gut) 0; border-radius: 0; }
  .road .node { margin: 0 0 var(--gap); gap: 12px; align-items: center; }
  .road .stop, .node.current .stop { width: 72px !important; height: 72px !important; border-width: 4px; }
  .road .stop img { max-width: 52px; max-height: 52px; }
  .road .stop .num { width: 26px; height: 26px; font-size: 14px; top: -4px; left: -4px; }
  .node.done .stop::after, .node.locked .stop::after { width: 26px; height: 26px; font-size: 13px; bottom: -4px; right: -4px; border-width: 2px; }
  .road .info { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 18px; }
  .road .info h3, .road .info b:first-child { font-size: 18px; }
  #levelsScene { padding: 0 0 calc(112px + env(safe-area-inset-bottom)) !important; }
  .plan-card { margin: var(--gap) var(--gut) 0; padding: var(--pad); border-radius: var(--rad); }
  .plan-card h2 { font-size: 23px; line-height: 1.15; }

  /* Map: fills the space down to the tab bar */
  #mapScene { padding: 0 !important; }
  .map-box { height: calc(100dvh - var(--hudH, 150px) - 84px - env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; }
  .map-top { top: 12px; left: var(--gut); right: var(--gut); gap: 8px; }
  .m-groups { min-height: 48px; border-radius: 16px; padding: 0 14px; background: var(--card) !important; color: var(--pink2) !important; box-shadow: var(--shadow) !important; border: none; font-size: 15px !important; }
  .search input { min-height: 48px; border-radius: 16px; }
  .filters { padding: 4px; border-radius: 14px; scrollbar-width: none; -ms-overflow-style: none; }
  .filters::-webkit-scrollbar { display: none; }
  .fbtn { flex: none; min-height: 40px !important; padding: 6px 12px !important; font-size: 15px !important; border-radius: 11px; }
  .zoom { right: var(--gut); bottom: 16px; gap: 8px; } .zoom button { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
  .map-side { padding: 8px var(--pad) calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; max-height: 78vh; }
  .map-side::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0,.14); margin: 0 auto 10px; }

  /* Order ticket: the email comes first, details after */
  #ticketBody { padding: 0 var(--gut) var(--gap); gap: var(--gap); }
  #ticketBody > * { order: 3; margin-top: 0 !important; margin-bottom: 0 !important; }
  #ticketBody > .t-head { order: 0; margin: 0 calc(-1 * var(--gut)) !important; padding: calc(14px + env(safe-area-inset-top)) var(--gut) 12px; align-items: center; gap: 12px; }
  #ticketBody > .letter { order: 1; }
  .ticket { padding-top: 0 !important; }
  .t-head img { height: 72px !important; width: 72px !important; }
  .t-head h2 { font-size: 20px !important; padding-right: 48px; }
  #ticketBody .card { padding: var(--pad); border-radius: var(--rad); }
  #ticketBody .card.gm-card { padding: 0 !important; }
  .gm-card .gm-body { min-height: 240px; }
  .links { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .links .pill { justify-content: center; padding: 8px 6px !important; font-size: 15px !important; }
  .t-actions { flex-wrap: nowrap !important; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); }
  .t-actions .candy { flex: 1 1 0; min-width: 0; padding: 13px 8px !important; font-size: 16px !important; white-space: nowrap; }
  .t-actions #oSend, .t-actions #oSave2 { flex: 1.7 1 0; }
  .t-actions .skip { flex-basis: 0 !important; }

  /* Bottom sheets: grabber, compact header, tabs in one swipeable row */
  .sheet { padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom)) !important; border-radius: 26px 26px 0 0 !important; }
  .sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0,.14); margin: 0 auto 12px; }
  .sheet.gmail::before { position: absolute; left: 50%; top: 6px; margin: 0 0 0 -21px; z-index: 3; }
  .sheet > .x, #sx { top: 18px !important; right: var(--pad) !important; width: 38px !important; height: 38px !important; font-size: 16px !important; }
  .sheet-head { gap: 10px; padding-right: 48px; margin-bottom: 10px; }
  .sheet-head .ic { display: none; }
  .sheet-head h2 { font-size: 23px; } .sheet-head .hint { font-size: 15px !important; }
  .sheet h2 { font-size: 23px; padding-right: 48px; }
  .tabs { flex-wrap: nowrap !important; overflow-x: auto; gap: 6px; margin: 0 calc(-1 * var(--pad)) 12px; padding: 4px var(--pad); scrollbar-width: none; background: none !important; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none !important; min-height: 42px !important; padding: 8px 14px !important; border-radius: 99px !important; font-size: 15px !important; background: var(--soft); white-space: nowrap; }
  .tab.on { background: var(--pink2) !important; color: #ffffff !important; }
  .sheet label { margin-bottom: 12px; display: block; }
  .sheet .grid2 { grid-template-columns: 1fr !important; gap: 0; }
  .sheet .row { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .sheet .row .candy { flex: 1 1 auto; }

  /* popups & toast above the tab bar, same gutters */
  .gtip { left: var(--gut) !important; right: var(--gut) !important; width: auto !important; border-radius: 20px; padding: 16px; }
  .toast { left: var(--gut); right: var(--gut); bottom: calc(96px + env(safe-area-inset-bottom)); transform: none; border-radius: 16px; text-align: center; }
  .ob-card { left: var(--gut); right: var(--gut); border-radius: 20px; }

  /* bottom tab bar: lighter, even */
  .scenes { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; border-radius: 24px 24px 0 0; }
  .scene-btn { min-height: 58px; border-radius: 16px; }
}
@media (max-width: 760px) { #oBody { overflow: hidden; resize: none; } }
@media (max-width: 760px) {
  .sheet label.check { display: flex !important; gap: 12px; align-items: flex-start; line-height: 1.4; }
  .sheet label.check input { margin-top: 1px; }
}
@media (max-width: 760px) {
  .dict, .dict tbody, .dict tr, .dict td { display: block; width: auto !important; }
  .dict tr { background: var(--card); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
  .dict td { background: none; padding: 0; border-radius: 0 !important; white-space: normal !important; }
  .dict td:first-child { font-size: 17px; margin-bottom: 3px; }
  .dict td:last-child { font-size: 16px; }
}

/* loading screen until the shop (or the login) is ready — no blank pink page on slow phones */
.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, #e5f1fb, #e7f6fe); font-family: 'Baloo 2', sans-serif; color: #405d74; }
.splash img { width: 150px; animation: splashBob 1.2s ease-in-out infinite; }
.splash b { font-size: 21px; }
.splash i { width: 120px; height: 8px; border-radius: 99px; background: rgba(109, 181, 241, .18); overflow: hidden; position: relative; }
.splash i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 99px; background: #6db5f1; animation: splashBar 1.1s ease-in-out infinite; }
@keyframes splashBob { 50% { transform: translateY(-8px); } }
@keyframes splashBar { 0% { left: -40%; } 100% { left: 100%; } }
body:has(#app:not(.hidden)) .splash, body:has(#login:not(.hidden)) .splash { display: none; }
body.night .splash { background: linear-gradient(180deg, #213440, #162830); color: #dee8f1; }

/* ======================= 📥 Inbox (Gmail-style, all accounts) ======================= */
#inboxScene { overflow: hidden; }
.mail { display: grid; grid-template-columns: 270px 1fr; gap: 16px; height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 4px; }
.mail-nav { overflow-y: auto; padding: 4px 4px 20px; }
.mail-folders { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.mf { display: flex; align-items: center; gap: 12px; border: none; background: none; text-align: left; padding: 9px 16px; border-radius: 0 99px 99px 0;
  font: 700 15.5px Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.mf span { width: 22px; text-align: center; } .mf .n { margin-left: auto; font-size: 13.5px; }
.mf:hover { background: var(--soft); } .mf.on { background: var(--pinkbg); color: var(--pink2); }
.mail-acc-h { display: flex; align-items: center; justify-content: space-between; font: 700 13px Nunito; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 12px 6px; }
.mini-link { border: none; background: none; color: var(--pink2); font: 800 13px Nunito; cursor: pointer; text-transform: none; letter-spacing: 0; }
.acc { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: none; background: none; text-align: left; padding: 9px 12px; border-radius: 14px; cursor: pointer; color: var(--ink); font: inherit; }
.acc:hover { background: var(--soft); } .acc.on { background: var(--card); box-shadow: var(--shadow); }
.acc b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acc small { color: var(--muted); font-size: 12.5px; }
.acc .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: #b8b4c2; }
.acc .dot.ok { background: #45b992; } .acc .dot.off { background: #64a3d5; } .acc .dot.all { background: var(--pink2); }
.acc .bar { display: block; height: 4px; border-radius: 9px; background: var(--soft); margin-top: 5px; overflow: hidden; } .acc .bar em { display: block; height: 100%; background: #45b992; }
.mail-main { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.mail-top { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.07)); }
.mail-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 99px; padding: 0 16px; }
.mail-search input { border: none !important; background: transparent !important; box-shadow: none !important; flex: 1; font-size: 16px; padding: 11px 0 !important; outline: none; min-height: 0 !important; margin: 0; }
#mailAcct { display: none; border-radius: 99px; max-width: 220px; }
.mail-chips { display: none; }
.mail-list { flex: 1; overflow-y: auto; }
.mail-count { padding: 10px 18px 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.mrow { display: flex; gap: 12px; align-items: center; width: 100%; border: none; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.06)); background: var(--card);
  text-align: left; padding: 10px 18px; cursor: pointer; color: var(--ink); font: inherit; }
.mrow:hover { background: var(--soft); box-shadow: inset 3px 0 0 var(--pink2); } .mrow.on { background: var(--pinkbg); }
.mrow img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.mrow-main { flex: 1; min-width: 0; }
.mrow-top { display: flex; align-items: baseline; gap: 6px; } .mrow .who { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .cnt { font-size: 12.5px; color: var(--muted); } .mrow .when { margin-left: auto; font-size: 13px; color: var(--muted); flex: none; }
.mrow-sub { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); } .mrow .snip { color: var(--muted); }
.mrow.unread { background: #ffffff; } body.night .mrow.unread { background: #2a3844; }
.mrow.unread .who, .mrow.unread .subj, .mrow.unread .when { font-weight: 800; color: var(--ink); }
.mrow-lbls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .mrow-lbls:empty { display: none; }
.lbl { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--ink2, #5e576d); white-space: nowrap; }
.lbl.pink { background: #e3f1fc; color: #488ec8; } .lbl.blue { background: #e1efff; color: #2b6cc4; } .lbl.mint { background: #ddf5ed; color: #248565; }
.lbl.red { background: #e4f1fc; color: #4784b6; } .lbl.sand { background: #d8f1fd; color: #365c74; } .lbl.gold { background: #c7ebfc; color: #264c64; } .lbl.acct { background: none; border: 1px solid var(--line, rgba(0, 0, 0,.12)); font-weight: 700; }
body.night .lbl.pink, body.night .lbl.blue, body.night .lbl.mint, body.night .lbl.red, body.night .lbl.sand, body.night .lbl.gold { filter: brightness(.85) saturate(.9); }
.mail-more { margin: 14px auto; display: block; }
.mail-empty { text-align: center; padding: 60px 24px; color: var(--muted); } .mail-empty img { width: 110px; } .mail-empty b { display: block; font-family: 'Baloo 2'; font-size: 21px; color: var(--ink); margin: 8px 0; } .mail-empty p { max-width: 420px; margin: 0 auto; }
/* reading a conversation replaces the list, like Gmail */
.mail-read { position: absolute; inset: 0; background: var(--card); overflow-y: auto; padding: 0 22px 30px; z-index: 2; }
.mr-bar { position: sticky; top: 0; display: flex; gap: 6px; align-items: center; padding: 10px 0; background: var(--card); z-index: 2; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.07)); margin: 0 -22px 0; padding-left: 12px; padding-right: 12px; }
.mr-back, .mr-ic { border: none; background: none; border-radius: 99px; padding: 9px 14px; font: 700 15px Nunito; color: var(--ink); cursor: pointer; }
.mr-back:hover, .mr-ic:hover { background: var(--soft); }
.mr-subj { font-family: Nunito, sans-serif; font-weight: 700; font-size: 23px; margin: 18px 0 8px; line-height: 1.3; }
.mr-lbls { display: flex; gap: 6px; flex-wrap: wrap; } .mr-lbls:empty { display: none; }
.mr-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 16px; padding: 10px 12px; background: var(--soft); border-radius: 16px; }
.mr-move > span { font-size: 13px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.mr-move .chip { border: none; background: var(--card); border-radius: 99px; padding: 7px 12px; font: 700 13.5px Nunito; color: var(--ink); cursor: pointer; }
.mr-move .chip.on { background: var(--pink2); color: #ffffff; }
.mr-move select { width: auto; border-radius: 99px; padding: 6px 12px; font-size: 13.5px; min-height: 0; margin: 0; }
.mm { border-bottom: 1px solid var(--line, rgba(0, 0, 0,.07)); padding: 14px 0; }
.mm-head { display: flex; gap: 12px; align-items: flex-start; }
.mm .av { width: 40px; height: 40px; object-fit: contain; flex: none; background: var(--soft); border-radius: 50%; }
.mm-head b { font-size: 15.5px; } .mm-head small { color: var(--muted); font-size: 13px; }
.mm-to { font-size: 13px; color: var(--muted); } .mm-to i { font-style: normal; font-weight: 700; color: var(--ink2, #5e576d); }
.mm .when { font-size: 13px; color: var(--muted); flex: none; }
.mm-body { white-space: pre-wrap; word-wrap: break-word; font: 15.5px/1.6 Nunito, sans-serif; margin: 10px 0 0 52px; color: var(--ink); }
.mm-snip { display: none; margin: 4px 0 0 52px; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm.folded { cursor: pointer; } .mm.folded .mm-body { display: none; } .mm.folded .mm-snip { display: block; }
.mm.in .mm-body { background: #f8fcfe; border-radius: 14px; padding: 12px 14px; } body.night .mm.in .mm-body { background: #2d3746; }
.mr-note { margin: 14px 0; font-size: 14px; color: var(--muted); }
.mr-reply { margin-top: 18px; }
.mr-replybtn { border: 1px solid var(--line, rgba(0, 0, 0,.15)); background: var(--card); border-radius: 99px; padding: 10px 22px; font: 700 15px Nunito; color: var(--ink); cursor: pointer; }
.mr-replybtn:hover { background: var(--soft); }
.mr-compose { border-radius: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0,.12); overflow: hidden; background: var(--card); }
.mr-compose .gm-line { margin: 0 16px; } .mr-compose .gm-body { min-height: 160px; height: auto; padding: 12px 16px !important; }
.mr-compose .gm-bar { position: static; }

@media (max-width: 760px) {
  #inboxScene { overflow: visible; padding: 0 !important; }
  .mail { display: block; padding: 0; }
  .mail-nav { display: none; }
  .mail-main { border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
  .mail-top { position: sticky; top: var(--hudH, 150px); z-index: 5; background: var(--paper, #fbf9fe); border: none; padding: 10px var(--gut) 6px; flex-wrap: wrap; gap: 8px; }
  .mail-search { min-height: 48px; background: var(--card); box-shadow: var(--shadow); }
  #mailAcct { display: block; width: 100%; max-width: none; min-height: 46px !important; }
  .mail-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px var(--gut) 10px; scrollbar-width: none; }
  .mail-chips::-webkit-scrollbar { display: none; }
  .mail-chips .chip { flex: none; border: none; background: var(--card); box-shadow: var(--shadow); border-radius: 99px; padding: 8px 14px; font: 700 15px Nunito; color: var(--ink); min-height: 40px !important; }
  .mail-chips .chip.on { background: var(--pink2); color: #ffffff; }
  .mail-list { overflow: visible; background: var(--card); margin: 0 var(--gut); border-radius: var(--rad); box-shadow: var(--shadow); padding-bottom: 4px; margin-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mail-list:has(.mail-empty) { background: transparent; box-shadow: none; }
  .mrow { padding: 12px 14px; gap: 12px; border-radius: 0; }
  .mrow:first-of-type { border-radius: var(--rad) var(--rad) 0 0; }
  .mrow img { width: 44px; height: 44px; }
  .mrow .who { font-size: 16px; } .mrow-sub { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mrow .subj { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mrow .snip { font-size: 14.5px; }
  .lbl { font-size: 12.5px; padding: 3px 10px; }
  /* open conversation: full screen, above the tab bar */
  #inboxScene.reading .mail-top, #inboxScene.reading .mail-chips, #inboxScene.reading .mail-list { display: none; }
  .mail-read { position: fixed; inset: 0; z-index: 30; padding: 0 var(--gut) calc(40px + env(safe-area-inset-bottom)); }
  .mr-bar { margin: 0 calc(-1 * var(--gut)); padding: calc(8px + env(safe-area-inset-top)) 8px 8px; }
  .mr-ic span { display: none; } .mr-ic { font-size: 20px; padding: 8px 12px; }
  .mr-subj { font-size: 21px; margin-top: 14px; }
  .mr-move { gap: 6px; padding: 10px; } .mr-move .chip { min-height: 38px !important; font-size: 14px !important; }
  .mr-move select { flex: 1 1 100%; min-height: 42px !important; }
  .mm-body { margin-left: 0; margin-top: 12px; font-size: 16px; } .mm-snip { margin-left: 0; }
  .mr-replybtn { width: 100%; min-height: 50px; font-size: 16px; }
}
#inboxScene { padding: 14px; } #inboxScene.hidden { display: none !important; }
.mrow .dash { font-style: normal; }
@media (max-width: 760px) { .mrow { align-items: flex-start; } .mrow .dash { display: none; } .mrow img { margin-top: 2px; } }

/* 🛡️ bounce shield */
.sh-hero { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; margin: 4px 0 14px; background: var(--soft); }
.sh-hero.good { background: #e7f7f2; } .sh-hero.warn { background: #d8f1fd; } .sh-hero.bad { background: #e6f2fc; }
body.night .sh-hero.good { background: #1f3930; } body.night .sh-hero.warn { background: #25333c; } body.night .sh-hero.bad { background: #233646; }
.sh-big { font-family: 'Baloo 2'; font-size: 40px; min-width: 90px; text-align: center; }
.sh-hero small, .sh-grid small, .sh-acc small { display: block; color: var(--muted); }
.sh-alert { background: #e6f2fc; color: #2c5b81; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.sh-alert .pill { margin-left: 8px; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.sh-grid > div { background: var(--soft); border-radius: 16px; padding: 12px; } .sh-grid b { font-family: 'Baloo 2'; font-size: 24px; }
.sh-acc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.07)); }
.sh-acc .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #45b992; flex: none; } .sh-acc .dot.off { background: #64a3d5; }
.sh-warn { color: #2b6fa6; font-size: 14px; margin-top: 3px; } .sh-ok { color: #248565; font-size: 14px; margin-top: 3px; }
.sh-how { margin-top: 14px; } .sh-how summary { cursor: pointer; font-weight: 800; } .sh-how li { margin: 6px 0; }
input[type=range] { width: 100%; }
@media (max-width: 760px) { .sh-grid { grid-template-columns: 1fr 1fr; } .sh-big { font-size: 34px; min-width: 76px; } }

/* 🚨 alerts */
.alert-bar { position: fixed; z-index: 18; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(560px, calc(100% - 28px));
  display: flex; gap: 12px; align-items: center; text-align: left; border: none; cursor: pointer; color: #ffffff; font: inherit;
  background: linear-gradient(135deg, #569dd7, #428bc7); border-radius: 20px; padding: 12px 16px; box-shadow: 0 10px 28px rgba(66, 139, 199, .35);
  animation: alertPulse 2.4s ease-in-out infinite; }
.alert-bar.hidden { display: none; }
.alert-bar b { display: block; font-size: 16px; } .alert-bar small { opacity: .9; font-size: 13.5px; }
.ab-ic { font-size: 26px; } .ab-go { font-weight: 800; background: rgba(255, 255, 255,.2); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
@keyframes alertPulse { 50% { box-shadow: 0 10px 34px rgba(86, 157, 215, .6); } }
.al { border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; background: var(--soft); border-left: 6px solid #6097b9; }
.al.red { border-left-color: #569dd7; background: #f2f9fe; } body.night .al.red { background: #222f3a; }
.al-head { display: flex; gap: 10px; align-items: center; } .al-ic { font-size: 26px; }
.al-head b { display: block; font-size: 17px; }
.al-tag { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; background: #6097b9; color: #ffffff; margin-bottom: 3px; }
.al.red .al-tag { background: #569dd7; }
.al p { margin: 8px 0; } .al-do ol { margin: 6px 0 4px 20px; padding: 0; } .al-do li { margin: 4px 0; }
.al-tech { margin-top: 10px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.al-tech small { display: block; color: var(--muted); } .al-tech code { display: block; font-size: 12.5px; margin: 4px 0 8px; word-break: break-word; }
@media (max-width: 760px) { .alert-bar { bottom: calc(86px + env(safe-area-inset-bottom)); border-radius: 18px; } }

/* 📮 accounts hub + wizard */
.sheet.accounts { width: min(1180px, 100%); }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.acc-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.acc-tiles > div { background: var(--soft); border-radius: 16px; padding: 10px 12px; } .acc-tiles b { font-family: 'Baloo 2'; font-size: 24px; display: block; }
.acc-tiles small { color: var(--muted); font-size: 13px; } .acc-tiles .warn { background: #d8f1fd; }
.acc-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.acc-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.acc-filters .chip { border: none; background: var(--soft); border-radius: 99px; padding: 7px 13px; font: 700 14px Nunito; color: var(--ink); cursor: pointer; }
.acc-filters .chip.on { background: var(--pink2); color: #ffffff; }
#accQ { width: 220px; border-radius: 99px; margin: 0; }
.acc-bulk { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--pinkbg); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
.acc-bulk b { margin-right: 6px; } .pill.danger { color: #4784b6; }
.acc-table { border-radius: 16px; overflow: hidden; border: 1px solid var(--line, rgba(0, 0, 0,.08)); }
.acc-row { display: grid; grid-template-columns: 34px 2.2fr 1fr .8fr 1fr 1fr 1.6fr 96px; gap: 10px; align-items: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0,.07)); background: var(--card); font-size: 14px; }
.acc-row.head { background: var(--soft); font-weight: 800; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.acc-row.off { opacity: .75; }
.acc-row .cb input { width: 18px; height: 18px; }
.a-main { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .a-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-main small { color: var(--muted); } .a-why { color: #4784b6; font-size: 13px; }
.a-main .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: #45b992; }
.a-main .dot.warn { background: #6097b9; } .a-main .dot.off { background: #64a3d5; }
.a-today .bar { display: block; height: 5px; border-radius: 9px; background: var(--soft); margin-top: 4px; overflow: hidden; } .a-today .bar em { display: block; height: 100%; background: #45b992; }
.a-cap input { width: 64px; padding: 6px 8px; margin: 0; }
.dd { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin: 0 3px 3px 0; background: #edecf0; color: #837c94; }
.dd.ok { background: #ddf5ed; color: #248565; } .dd.bad { background: #e4f1fc; color: #4784b6; }
.a-stats .bad { color: #4784b6; font-weight: 800; } .a-act { display: flex; gap: 4px; justify-content: flex-end; } .a-act .pill { padding: 5px 10px; }
.lbl-m { display: none; }
.acc-empty { padding: 30px; text-align: center; color: var(--muted); }
.sheet.wizard { width: min(620px, 100%); }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 10px; } .wiz-steps span { flex: 1; text-align: center; font-size: 13px; font-weight: 800; padding: 6px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.wiz-steps .on { background: var(--pink2); color: #ffffff; } .wiz-steps .done { background: #ddf5ed; color: #248565; }
.wiz-prov { background: var(--soft); border-radius: 14px; padding: 10px 14px; margin: 8px 0; } .wiz-prov small { display: block; color: var(--muted); }
.wiz-howto { margin: 8px 0 14px 20px; padding: 0; } .wiz-howto li { margin: 6px 0; line-height: 1.5; }
.wiz-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.wiz-choice label { display: flex; gap: 8px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 10px 12px; cursor: pointer; margin: 0; }
.wiz-choice small { display: block; color: var(--muted); font-size: 13px; }
.wiz-res { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; margin: 6px 0; background: #eaf7f3; }
.wiz-res.bad { background: #f2f9fe; } .wiz-res > span { font-size: 20px; font-weight: 900; } .wiz-res.ok > span { color: #248565; } .wiz-res.bad > span { color: #4784b6; }
.wiz-res small { display: block; color: var(--muted); }
body.night .wiz-res { background: #1f3930; } body.night .wiz-res.bad { background: #222f3a; }
.mail-compose { display: block; margin: 0 0 14px 4px; border: none; background: var(--pinkbg); color: var(--ink); border-radius: 18px; padding: 16px 22px;
  font: 800 16px Nunito; cursor: pointer; box-shadow: var(--shadow); }
.mail-compose:hover { background: #daecfb; }
.mini-link.plain { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.mail-fab { display: none; }
.gm-line select { border: none !important; background: transparent !important; box-shadow: none !important; flex: 1; font-size: 16px; padding: 10px 0 !important; margin: 0; min-height: 0 !important; }
@media (max-width: 760px) {
  .acc-tiles { grid-template-columns: repeat(3, 1fr); } .acc-tiles b { font-size: 21px; }
  #accQ { width: 100%; }
  .acc-table { border: none; }
  .acc-row.head { display: none; }
  .acc-row { grid-template-columns: 30px 1fr 1fr; border: 1px solid var(--line, rgba(0, 0, 0,.08)); border-radius: 16px; margin-bottom: 10px; gap: 8px 10px; }
  .acc-row .a-main { grid-column: 2 / 4; }
  .acc-row .a-today, .acc-row .a-cap, .acc-row .a-warm, .acc-row .a-dns, .acc-row .a-stats { grid-column: span 1; }
  .acc-row .a-stats { grid-column: 2 / 4; } .acc-row .a-act { grid-column: 1 / 4; justify-content: flex-start; }
  .acc-row > :nth-child(3) { grid-column: 2; }
  .lbl-m { display: block; font-size: 12px; color: var(--muted); font-weight: 800; }
  .wiz-choice { grid-template-columns: 1fr; }
  .mail-fab { display: grid; place-items: center; position: fixed; right: var(--gut); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 6;
    width: 58px; height: 58px; border-radius: 18px; border: none; background: var(--pink2); color: #ffffff; font-size: 24px; box-shadow: 0 8px 20px rgba(66, 139, 199,.35); }
  #inboxScene.reading .mail-fab, #inboxScene.hidden .mail-fab { display: none; }
  body:has(.alert-bar:not(.hidden)) .mail-fab { bottom: calc(170px + env(safe-area-inset-bottom)); }
}
.a-main .dot { width: 10px !important; height: 10px !important; padding: 0 !important; border: 0 !important; display: block; }
body:has(#modal:not(.hidden)) .alert-bar { display: none; }
@media (max-width: 760px) { .wiz-steps { padding-right: 48px; } .wiz-steps span { font-size: 12px; padding: 6px 4px; } }
@media (max-width: 760px) {
  .acc-row { grid-template-columns: 30px 1fr 1fr !important; align-items: start; }
  .acc-row .cb { grid-column: 1; grid-row: 1; }
  .acc-row .a-main { grid-column: 2 / 4 !important; grid-row: 1; }
  .acc-row .a-today { grid-column: 2 !important; grid-row: 2; }
  .acc-row .a-cap { grid-column: 3 !important; grid-row: 2; }
  .acc-row .a-warm { grid-column: 2 !important; grid-row: 3; }
  .acc-row .a-dns { grid-column: 3 !important; grid-row: 3; }
  .acc-row .a-stats { grid-column: 2 / 4 !important; grid-row: 4; }
  .acc-row .a-act { grid-column: 2 / 4 !important; grid-row: 5; }
  .acc-filters .chip { font-size: 14px !important; min-height: 38px !important; padding: 6px 12px; }
}
@media (max-width: 760px) {
  .alert-bar { padding: 10px 12px; gap: 10px; border-radius: 16px; }
  .alert-bar .grow { min-width: 0; }
  .alert-bar b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .alert-bar small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .ab-ic { font-size: 22px; } .ab-go { font-size: 14px; padding: 6px 10px; }
  .mail-fab { z-index: 17; }
  body:has(.alert-bar:not(.hidden)) .mail-list, body:has(.alert-bar:not(.hidden)) .m-shop, body:has(.alert-bar:not(.hidden)) .planner { padding-bottom: 80px; }
}

/* 💰 budget card (Kam gre denar) */
.card.budget .card-h small { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 6px; }
.bud-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.bud-tiles > div { background: var(--soft); border-radius: 14px; padding: 8px 10px; } .bud-tiles b { display: block; font-family: 'Baloo 2'; font-size: 18px; }
.bud-tiles small { color: var(--muted); font-size: 12.5px; line-height: 1.25; display: block; }
.bud-areas { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; } .bud-areas .chip { font-size: 12.5px; }
.bud-p { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0,.06)); }
.bud-p b { display: block; font-size: 14.5px; font-weight: 700; } .bud-p small { color: var(--muted); font-size: 12.5px; }
.bud-p > span { font-weight: 800; white-space: nowrap; font-size: 14px; } .bud-p a { text-decoration: none; font-size: 17px; }
.bud-line { margin-top: 10px; background: #e2f4fd; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; } .bud-line small { display: block; color: #264c64; margin-bottom: 3px; }
body.night .bud-line { background: #242e33; } body.night .bud-line small { color: #8fcceb; }
.bud-more { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--pink2); } .bud-src { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bud-mini { background: var(--soft); border-radius: 12px; padding: 8px 10px; margin: 8px 0; font-size: 14px; } .bud-mini small { color: var(--muted); }
@media (max-width: 760px) { .bud-tiles { grid-template-columns: 1fr 1fr; } #ticketBody > .budget { order: 2; } }

/* ---------- 📬 Gmail desk (2026-10-08) ---------- */
.icon-btn.gm-off { opacity: .55; }
.gmd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--card); border-radius: 18px; padding: 12px 14px; margin: 4px 0 12px; }
.gmd-who { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.gmd-who small, .gmd-goal small { color: var(--ink2); font-size: 14px; }
.gmd-goal { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.gmd-goal b { min-width: 30px; text-align: center; font-size: 20px; }
.gmd-goal .pill { min-width: 40px; }
.gmd-why { margin: 6px 2px 10px; }
.gmd-list .reply { align-items: center; }
.gmd-open { flex: none; white-space: nowrap; }
.gmd-status { display: flex; flex-direction: column; gap: 6px; border-left: 6px solid #a2d5c4; }
.gmd-status.due { border-left-color: #68c1ed; }
.gmd-status .pill { align-self: flex-start; }
.gmd-steps { padding-left: 22px; display: grid; gap: 16px; font-size: 16px; }
.gmd-steps small { display: block; color: var(--ink2); margin-top: 6px; }
.gmd-steps .pill { margin-top: 8px; display: inline-block; }
.gmd-drafts summary { cursor: pointer; font-weight: 800; }
.gmd-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px dashed rgba(0, 0, 0,.1); }
.gmd-draft .grow { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.gmd-draft small { color: var(--ink2); }
.gmd-draft select { width: auto; }
.gmd-foot { justify-content: flex-end; margin-top: 12px; }
#oGmSent.pulse { animation: gmPulse 1.2s ease-in-out infinite; }
@keyframes gmPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(162, 213, 196,.5); } }
@media (max-width: 760px) { #ticketBody > .gmd-status { order: 1; } }
.gmd-h { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; font: 700 20px 'Baloo 2', sans-serif; }
.gmd-h b { background: var(--pinkbg, #e0f0fc); border-radius: 99px; padding: 0 10px; font-size: 16px; }
.gmd-calm { margin: 16px 2px 6px; color: var(--muted); font-size: 16px; }
.gmd-small { margin-top: 18px; color: var(--muted); }
.gmd-small summary { cursor: pointer; font-size: 14px; }
.gmd-small .pill { margin-top: 10px; }
.gmd-more > summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.gmd-more[open] > summary { margin-bottom: 10px; }
.gmd-more > .card { box-shadow: none; margin: 8px 0 0; }
@media (max-width: 760px) { #ticketBody > .gmd-more { order: 4; } }

/* ---------- 🍽️ Restaurant, side view, scrolls sideways (2026-10-10 v2, sprites from her sheet → sprites/rest/) ---------- */
#tablesScene { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#tablesScene.hidden { display: none; }
.rest-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 18px; font-size: 17px; }
.rest-bar .rb b { font: 700 24px 'Baloo 2', sans-serif; margin-right: 4px; }
.rest-bar .rb.warm b { color: #4885ab; } .rest-bar .rb.due b { color: #428bc7; }
.rest-bar small { color: var(--muted); font-size: 15px; }
.rest-wrap { flex: 1; overflow-x: auto; overflow-y: hidden; margin: 0 12px 12px; border-radius: 26px; -webkit-overflow-scrolling: touch;
  scrollbar-color: #add0ec transparent; cursor: grab; box-shadow: 0 6px 0 rgba(47, 83, 113,.12); }
.rest-wrap.drag { cursor: grabbing; user-select: none; }
.rest-sizer { position: relative; }
.rest-room { position: absolute; left: 0; top: 0; height: 560px; transform-origin: 0 0; }
.rr-wall { position: absolute; left: 0; right: 0; top: 0; height: 392px;
  background: repeating-linear-gradient(90deg, #e6f1fb 0 34px, #f4f9fe 34px 68px); }
.rr-wall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
  background: repeating-linear-gradient(90deg, #bfdbf1 0 6px, #cde3f5 6px 46px); box-shadow: inset 0 8px 0 #ffffff, inset 0 11px 0 #a1c5e2; }
.rr-floor { position: absolute; left: 0; right: 0; top: 392px; bottom: 0;
  background: repeating-conic-gradient(#b8ddf0 0 25%, #daeef9 0 50%) 0 0 / 56px 56px; box-shadow: inset 0 10px 14px rgba(47, 83, 113,.15); }
body.night .rr-wall { background: repeating-linear-gradient(90deg, #313450 0 34px, #383a58 34px 68px); }
body.night .rr-wall::after { background: repeating-linear-gradient(90deg, #435767 0 6px, #4e6476 6px 46px); box-shadow: inset 0 8px 0 #607789, inset 0 11px 0 #242840; }
body.night .rr-floor { background: repeating-conic-gradient(#424e58 0 25%, #374049 0 50%) 0 0 / 56px 56px; }
.rr { position: absolute; pointer-events: none; image-rendering: auto; }
.rr-lamp { top: 0; height: 150px; }
.rr-shelf { top: 118px; width: 220px; }
.rr-plant { bottom: 44px; height: 92px; }
.rr-table { bottom: 66px; width: 186px; z-index: 3; }
.rr-cake { bottom: 182px; height: 70px; z-index: 4; }
.rr-chair { bottom: 70px; height: 156px; z-index: 1; }
.rr-chair.flip { transform: scaleX(-1); }
.rr-sign { position: absolute; left: 34px; top: 70px; width: 210px; padding: 16px 12px; text-align: center; border-radius: 20px; background: #ffffff; box-shadow: 0 6px 0 #aecfea;
  font: 700 26px 'Baloo 2', sans-serif; color: #428bc7; line-height: 1.15; }
.rr-sign small { display: block; font: 700 14px Nunito, sans-serif; color: #647786; margin-top: 6px; }
.rr-counter { position: absolute; left: 24px; bottom: 66px; width: 230px; height: 96px; border-radius: 16px 16px 6px 6px; background: linear-gradient(#7e9aac, #647e8e); box-shadow: inset 0 10px 0 #8ec4df; z-index: 2; }
.rr-guest { position: absolute; bottom: 132px; width: 110px; display: flex; flex-direction: column; align-items: center; border: none; background: none; padding: 0; cursor: pointer; z-index: 2; }
.rr-guest img { height: 112px; width: 110px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 4px 3px rgba(0, 0, 0,.18)); transition: transform .2s; }
.rr-guest:hover img { transform: translateY(-4px) scale(1.05); }
.rr-guest .bub { position: absolute; top: -40px; background: #ffffff; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 21px; box-shadow: 0 3px 8px rgba(0, 0, 0,.18); }
.rr-guest.warm img { animation: restHop 1.4s ease-in-out infinite; filter: drop-shadow(0 0 12px #50bef6); }
.rr-guest.due img { animation: restWave 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
.rr-tag { position: absolute; bottom: 8px; width: 136px; transform: translateX(-50%); text-align: center; background: var(--card); color: var(--ink); border-radius: 14px; padding: 4px 8px; font-weight: 800; font-size: 15px; line-height: 1.15;
  box-shadow: 0 3px 0 rgba(0, 0, 0,.08); border: none; cursor: pointer; z-index: 5; font-family: Nunito, sans-serif; }
.rr-tag small { display: block; font-weight: 700; font-size: 13px; color: var(--muted); }
.rr-tag.warm small { color: #4885ab; } .rr-tag.due small { color: #428bc7; }
.rr-door { position: absolute; bottom: 66px; width: 150px; height: 270px; border-radius: 75px 75px 6px 6px; background: linear-gradient(#6c8596, #516978); box-shadow: inset 0 0 0 10px #829dae, 0 6px 0 rgba(0, 0, 0,.15); }
.rr-door::after { content: ''; position: absolute; right: 26px; top: 140px; width: 14px; height: 14px; border-radius: 50%; background: #72c6ef; }
.rr-exit { position: absolute; bottom: 352px; width: 110px; padding: 6px 0; text-align: center; border-radius: 10px; background: #70bfa5; color: #ffffff; font: 700 18px 'Baloo 2', sans-serif; }
.rr-leaver { position: absolute; bottom: 70px; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; opacity: .8; z-index: 2; padding: 0; }
.rr-leaver img { height: 88px; transform: scaleX(-1); animation: restWalk 1.6s ease-in-out infinite; }
.rr-leaver small { background: var(--card); color: var(--ink); border-radius: 10px; padding: 2px 6px; font: 700 12px Nunito, sans-serif; }
@keyframes restHop { 50% { transform: translateY(-8px); } }
@keyframes restWave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } }
@keyframes restWalk { 50% { transform: scaleX(-1) translateY(-4px) rotate(4deg); } }
@media (max-width: 760px) {
  .rest-wrap { margin: 0 8px 96px; flex: none; }
  .rest-bar { padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 760px) { .rest-bar small { display: none; } .rest-bar { gap: 4px 14px; } .rest-wrap { margin-bottom: 0; } }
/* 🌳 park outside the restaurant + doors between scenes (2026-10-10 v3) */
.rr-park { position: absolute; top: 0; bottom: 0; right: 0; background: linear-gradient(#bfe6f7 0, #e3fbf3 330px, #93d8c1 392px, #79caaf 100%); }
.rr-park::before { content: ''; position: absolute; left: 0; right: 0; top: 380px; height: 30px; background: radial-gradient(circle at 20px 30px, #86d4ba 22px, transparent 23px) 0 0 / 46px 30px repeat-x; }
.rr-park::after { content: '☁️'; position: absolute; left: 120px; top: 40px; font-size: 60px; opacity: .9; text-shadow: 380px 30px 0 rgba(255, 255, 255,.9), 760px -10px 0 rgba(255, 255, 255,.9); }
body.night .rr-park { background: linear-gradient(#2b3560 0, #46507a 330px, #41695c 392px, #36564b 100%); }
.rr-door.open { background: linear-gradient(#cfeefa, #93d8c1); box-shadow: inset 0 0 0 10px #829dae, 0 6px 0 rgba(0, 0, 0,.15); }
.rr-door.open::after { display: none; }
.rr-exit { width: 140px; font-size: 16px; }
.rr-grow { position: absolute; top: 236px; padding: 8px 14px; background: #d8f1fd; border: 3px dashed #749eb9; border-radius: 14px; font: 700 15px 'Baloo 2', sans-serif; color: #3d5b6d; text-align: center; transform: rotate(-3deg); }
.rr-grow small { font: 600 12px Nunito, sans-serif; }
.rr-back { position: absolute; left: 270px; top: 214px; z-index: 6; border: none; border-radius: 99px; padding: 10px 18px; background: #ffffff; color: #428bc7; font: 700 18px 'Baloo 2', sans-serif; box-shadow: 0 4px 0 #aecfea; cursor: pointer; }
.rr-parksign { position: absolute; top: 60px; width: 300px; padding: 14px; text-align: center; background: #ffffff; border-radius: 18px; box-shadow: 0 6px 0 #6dbba1; font: 700 26px 'Baloo 2', sans-serif; color: #3e866e; z-index: 2; }
.rr-parksign small { display: block; font: 700 14px Nunito, sans-serif; color: #57786d; margin-top: 4px; }
.rr-tree { position: absolute; bottom: 150px; width: 26px; height: 120px; background: #5d7583; border-radius: 8px; }
.rr-tree::before { content: ''; position: absolute; left: 50%; bottom: 80px; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #a0e1cb, #6cc2a5 60%, #57ab8f); box-shadow: -40px 30px 0 -20px #6cc2a5, 40px 34px 0 -22px #61b89b; }
.rr-tree.t1::before { background: radial-gradient(circle at 35% 35%, #daecfb, #afd3f0 60%, #98c3e5); box-shadow: -40px 30px 0 -20px #afd3f0, 40px 34px 0 -22px #a5cbeb; }
.rr-tree.t2 { height: 100px; } .rr-tree.t2::before { width: 120px; height: 120px; }
.rr-bench { position: absolute; bottom: 120px; width: 150px; height: 18px; background: #7e9aac; border-radius: 6px; box-shadow: 0 -26px 0 -4px #6b8698, 0 -52px 0 -4px #6b8698; }
.rr-bench::before, .rr-bench::after { content: ''; position: absolute; top: 14px; width: 10px; height: 36px; background: #516978; border-radius: 3px; } .rr-bench::before { left: 14px; } .rr-bench::after { right: 14px; }
.rr-pguest { position: absolute; border: none; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.rr-pguest.back { bottom: 158px; z-index: 2; } .rr-pguest.front { bottom: 44px; z-index: 4; }
.rr-pguest img { height: 104px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0,.15)); }
.rr-pguest:not(.ripe) img { filter: saturate(.75) drop-shadow(0 4px 3px rgba(0, 0, 0,.12)); }
.rr-pguest.ripe img { animation: restHop 1.6s ease-in-out infinite; }
.rr-pguest .bub { position: absolute; top: -34px; background: #ffffff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; box-shadow: 0 3px 8px rgba(0, 0, 0,.18); }
.ptag { background: var(--card); color: var(--ink); border-radius: 12px; padding: 3px 8px; font: 800 13px Nunito, sans-serif; line-height: 1.15; text-align: center; max-width: 130px; box-shadow: 0 2px 0 rgba(0, 0, 0,.08); }
.ptag small { display: block; font-weight: 700; font-size: 12px; color: var(--muted); }
.rr-pguest.ripe .ptag small { color: #428bc7; }
.rr-parkempty { position: absolute; bottom: 120px; width: 300px; padding: 12px; background: rgba(255, 255, 255,.85); border-radius: 14px; font: 700 15px Nunito, sans-serif; color: #57786d; }
.rest-bar .rb.park b { color: #3e866e; }
/* shop → tables door */
.to-tables { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 8; border: none; border-radius: 22px; padding: 14px 16px; background: #ffffff; color: #428bc7;
  font: 700 18px 'Baloo 2', sans-serif; box-shadow: 0 6px 0 #aecfea; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: toTablesNudge 2.4s ease-in-out infinite; }
.to-tables span { font-size: 32px; } .to-tables b { font-size: 26px; line-height: 1; }
@keyframes toTablesNudge { 0%, 70%, 100% { transform: translateY(-50%); } 85% { transform: translate(6px, -50%); } }
.m-to-tables { display: flex; align-items: center; gap: 12px; width: 100%; border: none; border-radius: 22px; padding: 14px 18px; margin: 12px 0; background: #ffffff; color: #428bc7; font: 700 20px 'Baloo 2', sans-serif; box-shadow: 0 5px 0 #aecfea; cursor: pointer; }
.m-to-tables span { font-size: 30px; } .m-to-tables b { margin-left: auto; font-size: 26px; }
#tablesScene.walk-in { animation: walkIn .45s ease-out; } #shopScene.walk-in, #mShop.walk-in { animation: walkBack .45s ease-out; }
@keyframes walkIn { from { transform: translateX(60px); opacity: 0; } } @keyframes walkBack { from { transform: translateX(-60px); opacity: 0; } }
/* ---------- 2026-10-10 v5: her clipart in the shop + kitchen window + street ---------- */
.candy-shelf { position: absolute; left: 1196px; top: 40px; height: 290px; z-index: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0,.08)); }
.display { left: 1210px; top: 268px; width: 300px; }
.display-tag { bottom: auto; top: -26px; }
.till { left: 1000px; top: -150px; height: 160px; }
.counter-cake { left: 600px; top: -118px; height: 128px; }
/* the baker peeks through the kitchen window, cut off at the sill */
.kitchen-door { top: 70px; height: 210px; overflow: hidden; border-radius: 120px 120px 14px 14px; }
.kitchen-door span { display: none; }
.kitchen-door .baker.b1 { position: absolute; left: 50%; bottom: -88px; height: 290px; transform: translateX(-50%); }
.kitchen-door .sill { position: absolute; left: -10px; right: -10px; bottom: 0; height: 26px; background: var(--shelf); box-shadow: 0 -4px 0 rgba(0, 0, 0,.06) inset; z-index: 2; }
.kitchen::before { content: 'KITCHEN'; position: absolute; left: 140px; top: 30px; transform: translateX(-50%); font-family: 'Baloo 2'; font-weight: 700; color: #ffffff; background: #99cbf5; padding: 2px 14px; border-radius: 10px; font-size: 17px; letter-spacing: 1px; z-index: 3; }
.kitchen.busy .kitchen-door .baker { animation: peek 1.4s ease-in-out infinite; }
@keyframes peek { 50% { transform: translateX(-50%) translateY(-10px) rotate(-3deg); } }
.to-street { right: auto; left: 18px; }
.to-street small { font: 700 13px Nunito, sans-serif; color: var(--muted); }
@keyframes toStreetNudge { 0%, 70%, 100% { transform: translateY(-50%); } 85% { transform: translate(-6px, -50%); } }
.to-street { animation-name: toStreetNudge; }
#streetScene { display: flex; flex-direction: column; min-height: 0; flex: 1; } #streetScene.hidden { display: none; }
#streetScene.walk-in { animation: walkBack .45s ease-out; }
.st-sky { position: absolute; left: 0; right: 0; top: 0; height: 400px; background: linear-gradient(#bfe6f7, #eaf7fc); }
body.night .st-sky { background: linear-gradient(#25305a, #4a527c); }
.st-walk { position: absolute; left: 0; right: 0; top: 400px; bottom: 0; background: repeating-linear-gradient(90deg, #dde4e8 0 118px, #c9d3d7 118px 122px); box-shadow: inset 0 14px 0 #bec9ce; }
.st-road { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: #afacb8; }
.st-shop { position: absolute; top: 40px; bottom: 160px; width: 560px; background: repeating-linear-gradient(90deg, #e6f1fb 0 34px, #f4f9fe 34px 68px); border-radius: 18px 18px 0 0; box-shadow: 0 0 0 8px #bbd7ee inset; }
.st-awning { position: absolute; left: -20px; right: -20px; top: 0; height: 70px; background: repeating-linear-gradient(90deg, #99cbf5 0 46px, #ffffff 46px 92px); border-radius: 16px; box-shadow: 0 8px 0 rgba(0, 0, 0,.08); }
.st-shopname { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); background: #ffffff; color: #428bc7; border-radius: 16px; padding: 4px 22px; font: 700 34px 'Baloo 2', sans-serif; box-shadow: 0 5px 0 #aecfea; white-space: nowrap; }
.st-door { position: absolute; bottom: 0; width: 140px; height: 210px; border-radius: 70px 70px 0 0; background: linear-gradient(#ccecfc, #ace0fb); box-shadow: inset 0 0 0 10px #829dae; border: none; cursor: pointer; font: 700 16px 'Baloo 2', sans-serif; color: #506674; padding-top: 70px; }
.st-guest { position: absolute; bottom: 70px; border: none; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.st-guest img { height: 120px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0,.15)); }
.st-guest:hover img { transform: translateY(-4px); }
.st-guest.first img { animation: restHop 1.6s ease-in-out infinite; }
.st-more { position: absolute; bottom: 110px; width: 190px; padding: 10px 12px; background: #ffffff; border-radius: 16px; text-align: center; font: 700 16px 'Baloo 2', sans-serif; color: #647786; box-shadow: 0 4px 0 rgba(0, 0, 0,.08); }
.rr-wallart { z-index: 0; filter: drop-shadow(0 6px 4px rgba(0, 0, 0,.08)); }
.rr-rug { z-index: 0; object-fit: fill; opacity: .95; }
.pk-tree { z-index: 1; } .pk-prop { z-index: 2; } .pk-front { z-index: 5; }
.rr-pguest.back { z-index: 3; } .rr-pguest.front { z-index: 6; }
/* ---------- v6: chevrons, ⓘ info, separate park, door art ---------- */
.chev { position: absolute; top: 50%; transform: translateY(-50%); z-index: 9; width: 46px; height: 60px; border: none; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(47, 83, 113,.25)); transition: transform .15s; }
.chev img { width: 100%; height: 100%; object-fit: contain; }
.chev.right { right: 10px; } .chev.left { left: 10px; }
.chev.right { animation: chevR 2.4s ease-in-out infinite; } .chev.left { animation: chevL 2.4s ease-in-out infinite; }
@keyframes chevR { 0%, 70%, 100% { transform: translateY(-50%); } 85% { transform: translate(6px, -50%); } }
@keyframes chevL { 0%, 70%, 100% { transform: translateY(-50%); } 85% { transform: translate(-6px, -50%); } }
.strip-box { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.strip-scene { display: flex; flex-direction: column; min-height: 0; flex: 1; } .strip-scene.hidden { display: none; }
#parkScene.walk-in { animation: walkIn .45s ease-out; }
.m-chevs { display: flex; justify-content: space-between; margin: 10px 4px; }
.chev-m { width: 42px; height: 56px; border: none; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(47, 83, 113,.25)); }
.chev-m img { width: 100%; height: 100%; object-fit: contain; }
.room-info { width: 30px; height: 30px; border-radius: 50%; border: none; background: #ffffff; color: #428bc7; font: 800 17px 'Baloo 2', sans-serif; font-style: italic; cursor: pointer; box-shadow: 0 3px 0 #aecfea; flex: none; }
.room-info-pop { position: fixed; z-index: 200; max-width: 290px; background: #ffffff; color: #3d4b57; border-radius: 16px; padding: 12px 14px; font: 600 15px Nunito, sans-serif; line-height: 1.4; box-shadow: 0 10px 30px rgba(47, 83, 113,.25); }
.rr-doorbtn { position: absolute; bottom: 64px; height: 300px; border: none; background: none; padding: 0; cursor: pointer; z-index: 3; }
.rr-doorbtn img { height: 100%; filter: drop-shadow(0 6px 4px rgba(0, 0, 0,.12)); }
.rr-doorbtn:hover img { transform: translateY(-3px); }
.st-door { width: 200px; height: 236px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.st-door img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
@media (max-width: 760px) { .chev { width: 36px; height: 48px; } .chev.right { right: 4px; } .chev.left { left: 4px; } }
/* v7: no OPEN/CLOSED sign (first letters are always manual), no kitchen label / bubble */
#openSign, #mSign, .kbubble, .kitchen::before, #diaryBtn { display: none !important; }
/* 🧁 Kitchen tab */
.kt-bakers { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.kt-bake { display: flex; align-items: flex-end; } .kt-bake img { height: 120px; } .kt-bake img + img { height: 96px; margin-left: -18px; }
.kt-bakers.busy .kt-bake img { animation: bake 1.2s ease-in-out infinite; } .kt-bakers.busy .kt-bake img + img { animation-delay: .3s; }
.kt-live { font: 700 13px Nunito, sans-serif; color: #35a882; margin-left: 6px; animation: restHop 1.4s infinite; display: inline-block; }
.kt-doing { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.kt-nums { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; } .kt-nums b { display: block; font: 700 26px 'Baloo 2', sans-serif; } .kt-nums small { color: var(--muted); }
.kt-letter { border-top: 1px dashed rgba(0, 0, 0,.1); padding: 12px 0; } .kt-letter:first-of-type { border-top: none; }
.kt-lh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .kt-lh b { flex: 1; font-size: 17px; }
.kt-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kt-step { border-radius: 14px; padding: 8px 10px; background: var(--soft, #f5fafe); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kt-step span { font-weight: 800; font-size: 13px; } .kt-step.ok span { color: #35a882; } .kt-step.todo span { color: #428bc7; }
.kt-step small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .kt-steps { grid-template-columns: 1fr; } }
/* 🍭 Levels: visual, little text */
.node .lv-badge { position: absolute; left: 62px; top: -8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #ffffff; box-shadow: 0 3px 0 rgba(0, 0, 0,.1); z-index: 3; }
.node.right .lv-badge { left: auto; right: 62px; }
.node .lv-badge.done { background: #2abd8c; color: #ffffff; font-weight: 800; } .node .lv-badge.current { background: #45baf5; }
.node .lv-badge.bake { top: 60px; animation: restHop 1.4s ease-in-out infinite; }
.node .info small.lv-num { font-weight: 800; color: var(--muted); }
.node .tools button { min-width: 36px; font-size: 16px; }
.lv-head { display: flex; align-items: center; gap: 10px; } .lv-head h2 { margin: 0; flex: 1; }
.lv-ring { --p: 0; width: 150px; height: 150px; margin: 16px auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#99cbf5 calc(var(--p) * 1%), #e6f1fb 0); }
.lv-ring > div { width: 112px; height: 112px; border-radius: 50%; background: var(--card); display: grid; place-content: center; text-align: center; }
.lv-ring b { font: 700 32px 'Baloo 2', sans-serif; line-height: 1; } .lv-ring small { color: var(--muted); font-weight: 700; }
.lv-found { text-align: center; font-size: 17px; margin-bottom: 14px; } .lv-found b { font: 700 24px 'Baloo 2', sans-serif; }
.lv-order { display: grid; gap: 8px; }
.lv-o { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--soft, #f5fafe); }
.lv-o.now { box-shadow: 0 0 0 2px #99cbf5 inset; } .lv-o > span { font-size: 22px; } .lv-o b { font-size: 14px; } .lv-o em { font-style: normal; font-weight: 800; color: #2abd8c; }
.lv-o .bar { height: 6px; margin-top: 4px; } .lv-o .bar i { background: #99cbf5; }
.kt-connect { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 0 0 3px #99cbf5 inset; } .kt-connect > span { font-size: 40px; } .kt-connect h3 { margin: 0 0 4px; } .kt-connect small { color: var(--muted); }
.gmc { display: grid; gap: 14px; max-width: 560px; } .gmc h2 { margin: 6px 0 0; }
.gmc-f { display: grid; gap: 6px; font-weight: 800; font-size: 16px; }
.gmc-f input { font-size: 18px; padding: 14px 16px; border-radius: 16px; }
.gmc-f.big input { font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; border: 3px solid #99cbf5; }
.gmc-go { font-size: 20px; padding: 14px; }
.gmc-help { display: grid; gap: 8px; background: var(--soft, #f5fafe); border-radius: 16px; padding: 12px 14px; } .gmc-help .pill { justify-self: start; } .gmc-help small { color: var(--muted); }
.cloud-drift { animation: cloudDrift 24s ease-in-out infinite alternate; opacity: .95; }
@keyframes cloudDrift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
/* v8: rooms are full screen, no frame; the counts float over the scene (.scene is already positioned) */
.strip-scene .rest-bar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 8; width: max-content; max-width: calc(100% - 140px);
  background: rgba(255, 255, 255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 99px; padding: 6px 10px 6px 16px; gap: 6px 14px;
  font-size: 15px; box-shadow: 0 4px 14px rgba(47, 83, 113,.15); }
.strip-scene .rest-bar:empty { display: none; }
.strip-scene .rest-bar .rb b { font-size: 19px; }
body.night .strip-scene .rest-bar { background: rgba(45, 59, 76,.82); }
.strip-scene .rest-wrap { margin: 0 !important; border-radius: 0; box-shadow: none; }
@media (max-width: 760px) { .strip-scene .rest-bar { top: 8px; font-size: 13px; padding: 4px 8px 4px 12px; max-width: calc(100% - 100px); } .strip-scene .rest-bar .rb b { font-size: 16px; } }
@media (max-width: 760px) { .strip-scene { position: relative; top: auto !important; } }
@media (max-width: 760px) { .strip-scene .rest-bar { flex-wrap: nowrap; white-space: nowrap; gap: 8px; } .strip-scene .rest-bar .rb { overflow: hidden; text-overflow: ellipsis; } }
#restWrap { background: repeating-conic-gradient(#b8ddf0 0 25%, #daeef9 0 50%) 0 0 / 56px 56px; }
#parkWrap { background: #79caaf; } #streetWrap { background: #afacb8; }
body.night #restWrap { background: repeating-conic-gradient(#424e58 0 25%, #374049 0 50%) 0 0 / 56px 56px; } body.night #parkWrap { background: #36564b; }
/* 🧁 Lead finders card (bottom of Kitchen) */
.kt-lab { display: flex; gap: 22px; align-items: stretch; flex-wrap: wrap; background: linear-gradient(135deg, #edf9fe, #f0f7fd); }
body.night .kt-lab { background: linear-gradient(135deg, #2d3b4c, #30334a); }
.kt-scene { position: relative; width: 250px; height: 210px; flex: none; margin: 0 auto; }
.kt-scene img { position: absolute; }
.kt-rack { right: 0; bottom: 18px; height: 150px; opacity: .9; }
.kt-b1 { left: 20px; bottom: 58px; height: 120px; z-index: 1; } .kt-b2 { left: 112px; bottom: 58px; height: 104px; z-index: 1; }
.kt-rack { right: -30px; z-index: 0; }
.kt-table { left: 0; bottom: 0; height: 120px; z-index: 2; }
.kt-lab.busy .kt-b1, .kt-lab.busy .kt-b2 { animation: bake 1.2s ease-in-out infinite; } .kt-lab.busy .kt-b2 { animation-delay: .3s; }
.kt-body { flex: 1; min-width: 240px; display: grid; gap: 12px; align-content: start; }
.kt-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .kt-top h3 { margin: 0; }
.kt-pill { font: 800 13px Nunito, sans-serif; padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0,.06); color: var(--muted); }
.kt-pill.on { background: #d8f3ea; color: #259771; }
.kt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kt-tiles > div { background: var(--card); border-radius: 18px; padding: 10px 8px; text-align: center; box-shadow: 0 3px 0 rgba(47, 83, 113,.08); display: grid; gap: 2px; }
.kt-tiles span { font-size: 20px; } .kt-tiles b { font: 700 26px 'Baloo 2', sans-serif; line-height: 1; } .kt-tiles small { color: var(--muted); font-weight: 700; font-size: 12px; }
#ktBake { justify-self: start; }
.kt-where summary { cursor: pointer; font-weight: 800; color: var(--muted); font-size: 14px; } .kt-where[open] summary { margin-bottom: 8px; }
.kt-ok { font: 800 13px Nunito, sans-serif; padding: 3px 10px; border-radius: 99px; background: #e6f2fc; color: #428bc7; } .kt-ok.yes { background: #d8f3ea; color: #259771; }
.kt-letter.needs { background: #f5fafe; border-radius: 16px; padding: 12px; box-shadow: 0 0 0 2px #99cbf5 inset; }
/* v9 shop: window + lamps on the wall, guests show only a short name */
.shop-window { position: absolute; left: 925px; top: 56px; height: 200px; z-index: 0; filter: drop-shadow(0 6px 4px rgba(0, 0, 0,.06)); }
.shop-lamp { position: absolute; top: -4px; height: 150px; z-index: 1; } .shop-lamp.l1 { left: 770px; } .shop-lamp.l2 { left: 1300px; }
.nav-hide { display: none !important; }
.order { width: auto; min-width: 120px; max-width: 220px; padding: 6px 14px; margin-left: auto; margin-right: auto; border-radius: 99px; }
.order b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: none; }
.logo { cursor: pointer; }
/* ✨ Candy Factory */
#factoryScene.walk-in { animation: walkIn .45s ease-out; }
#factoryWrap { background: #e7eeff; }
.fx-sky { position: absolute; inset: 0 0 160px 0; background: radial-gradient(ellipse at 30% 10%, #f7fafe 0, transparent 50%), linear-gradient(#dcefff 0, #e5f1fb 60%, #f0f7fd 100%); }
.fx-sky::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff 1.6px, transparent 2px), radial-gradient(#90d6f9 1.4px, transparent 2px); background-size: 90px 90px, 140px 140px; background-position: 10px 20px, 60px 70px; opacity: .8; }
.fx-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: repeating-linear-gradient(90deg, #dcedfb 0 60px, #dcf0ff 60px 120px); box-shadow: inset 0 10px 0 #71c5ee, inset 0 14px 0 #c7ebfc; }
body.night .fx-sky { background: linear-gradient(#2d4b5c, #3a486c); } body.night .fx-floor { background: repeating-linear-gradient(90deg, #4a587c 0 60px, #3f5e72 60px 120px); }
.fx-cloud { opacity: .9; }
.fx-guest { position: absolute; bottom: 70px; border: none; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 5; touch-action: pan-x; }
.fx-guest.back { bottom: 120px; z-index: 3; }
.fx-guest img { height: 112px; filter: drop-shadow(0 0 10px rgba(127, 208, 248,.7)) drop-shadow(0 4px 3px rgba(0, 0, 0,.12)); }
.fx-guest.warm img { animation: restHop 1.4s ease-in-out infinite; }
.fx-guest .bub { position: absolute; top: -36px; background: #ffffff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px; box-shadow: 0 3px 8px rgba(0, 0, 0,.18); }
.fx-guest.warm .ptag small { color: #4885ab; } .fx-guest.client .ptag small { color: #3b6b88; }
/* ✋ move dock */
.move-dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 300; display: flex; gap: 12px; align-items: stretch; background: rgba(255, 255, 255,.92); backdrop-filter: blur(10px); padding: 12px; border-radius: 26px; box-shadow: 0 14px 40px rgba(47, 83, 113,.3); flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); }
.move-dock.hidden { display: none; }
.md-title { width: 100%; text-align: center; font: 700 16px 'Baloo 2', sans-serif; color: var(--ink); }
.md-t { width: 130px; padding: 12px 8px; border-radius: 20px; background: #f5fafe; border: 3px dashed #add0ec; display: grid; justify-items: center; gap: 2px; font: 700 17px 'Baloo 2', sans-serif; transition: transform .12s; }
.md-t span { font-size: 30px; } .md-t small { font: 700 11px Nunito, sans-serif; color: var(--muted); }
.md-t.over { transform: scale(1.1); background: #e6f2fc; border-style: solid; border-color: #99cbf5; }
.drag-ghost { position: fixed; z-index: 310; height: 140px; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0,.3)); transform: rotate(-6deg); }
.rr-guest, .rr-pguest, .st-guest, .guest { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.t-move { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .t-move span { font-weight: 800; color: var(--muted); font-size: 13px; } .t-move .pill { padding: 4px 10px; font-size: 13px; }
/* 🍭 Levels: whole character inside the circle, never cut */
.node .stop img:not(.chef-here) { object-fit: contain !important; object-position: center bottom; padding: 6px 4px 0; box-sizing: border-box; }
/* 🗺️ map: greyed locked levels, foldable side panel */
.layer.locked-sum { opacity: .5; filter: grayscale(.9); cursor: pointer; }
.layer.locked-sum img { width: 40px; height: 40px; object-fit: contain; }
.map-side-toggle { width: 40px; height: 40px; border-radius: 50%; border: none; background: #ffffff; color: #428bc7; font: 800 18px 'Baloo 2', sans-serif; box-shadow: 0 3px 0 #aecfea; cursor: pointer; flex: none; }
#mapScene.side-off .map-side { display: none; }
#mapScene.side-off .map-box { left: 0 !important; width: 100% !important; margin-left: 0 !important; }
@media (max-width: 760px) { .map-side-toggle { display: none; } }
#mapScene.side-off { grid-template-columns: 1fr; }
/* 🍭 Levels: nothing bounces */
#levelsScene .lv-badge, #levelsScene .deco, #levelsScene .chef-here, #levelsScene .bakers-here, #levelsScene .lv-o em { animation: none !important; }
/* v10 navigation: desktop top nav = Kitchen · Levels · Kingdom; phone bottom bar = the walk, ☰ for the rest */
.phone-only { display: none !important; }
.stage-sizer { height: 1px; }
@media (max-width: 760px) {
  .phone-only { display: flex !important; } .icon-btn.phone-only { display: grid !important; }
  .desk-only { display: none !important; }
  .scene-btn.nav-hide { display: flex !important; }
  .scenes .scene-btn { flex: 1; min-width: 0; font-size: 11px; padding: 4px 2px; }
  /* 📱 shop = the real game scene, full height, swipe sideways */
  #mShop, .m-shop { display: none !important; }
  #shopScene { display: block !important; position: relative; top: auto !important; height: calc(100svh - var(--hudH, 130px) - 74px - env(safe-area-inset-bottom)); }
  #shopScene.hidden { display: none !important; }
  #shopScene > .toolbar { display: flex !important; justify-content: flex-start !important; position: absolute; top: 6px; left: 8px; right: 8px; z-index: 20; overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255,.85); backdrop-filter: blur(6px); }
  #shopScene > .toolbar select { max-width: 150px; font-size: 13px; } #shopScene > .toolbar .waiting { display: none; }
  .stage-wrap { display: block !important; position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .stage > .wide { left: 0 !important; right: 0 !important; }
  #stageWrap .chev { position: fixed; top: 55%; }
}
.menu-pop { display: grid; gap: 10px; }
.menu-it { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; gap: 0 12px; border: none; background: var(--soft, #f5fafe); border-radius: 18px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.menu-it span { grid-row: span 2; font-size: 30px; } .menu-it b { font: 700 19px 'Baloo 2', sans-serif; } .menu-it small { color: var(--muted); }
/* her logo */
.hud .logo-img { height: 56px; width: auto; display: block; cursor: pointer; filter: none; }
.logo-img.big { width: min(320px, 80vw); height: auto; }
@media (max-width: 760px) { .hud .logo-img { height: 42px; } }
/* ✨ factory v2: an indoor magic wall (no sky, no floating clouds) */
.fx-sky { background: radial-gradient(ellipse at 20% 0%, #f5fafe 0, transparent 45%), repeating-linear-gradient(90deg, #e2f0ff 0 70px, #e9f0ff 70px 140px) !important; }
.fx-sky::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: repeating-linear-gradient(90deg, #c8deef 0 8px, #d9e9f5 8px 52px); box-shadow: inset 0 8px 0 #71c5ee, inset 0 11px 0 #c7ebfc; }
body.night .fx-sky { background: repeating-linear-gradient(90deg, #2f4b5e 0 70px, #35556a 70px 140px) !important; }
.fx-win { filter: drop-shadow(0 6px 6px rgba(60, 92, 160,.12)); }
/* 🏠 rooms overview (corner house) */
.room-house { position: fixed; right: 14px; top: calc(var(--hudH, 76px) + 12px); z-index: 40; width: 216px; filter: drop-shadow(0 8px 14px rgba(47, 83, 113,.25)); }
.rh-roof { position: relative; height: 44px; background: repeating-conic-gradient(#b0d4f0 0 25%, #d7eaf9 0 50%) 0 0 / 18px 18px; clip-path: polygon(10% 100%, 50% 0, 90% 100%); display: grid; place-items: end center; padding-bottom: 4px; }
.rh-roof b { font: 700 14px 'Baloo 2', sans-serif; color: #ffffff; text-shadow: 0 1px 0 #428bc7, 0 0 4px #428bc7; }
.rh-bow { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-size: 16px; }
.rh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; background: #e5f6fe; border: 3px solid #81c7ea; border-radius: 6px 6px 14px 14px; box-shadow: inset 0 -4px 0 #b4def3; }
.rh-tile { position: relative; border: 3px solid #acd8ef; background: #f6fcff; border-radius: 10px; padding: 4px 2px 3px; display: grid; justify-items: center; gap: 1px; cursor: pointer; font: inherit; color: var(--ink); }
.rh-tile img { height: 34px; width: 48px; object-fit: contain; }
.rh-tile small { font: 800 11px Nunito, sans-serif; color: #546976; }
.rh-tile:hover { transform: translateY(-2px); }
.rh-tile.on { border-color: #47bbf5; background: #e2f4fd; box-shadow: 0 0 0 2px #ace0fb; }
.rh-badge { position: absolute; top: -8px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #6bb4f0; color: #ffffff; font: 800 12px Nunito, sans-serif; display: grid; place-items: center; box-shadow: 0 2px 0 #337ab4; }
body.night .rh-grid { background: #2d3b4c; border-color: #5a688c; } body.night .rh-tile { background: #3a495c; border-color: #506280; } body.night .rh-tile small { color: #dbe7f1; }
@media (max-width: 760px) { .room-house { display: none; } }
#mapScene:not(.hidden) ~ .room-house, body:has(#mapScene:not(.hidden)) .room-house, body:has(#levelsScene:not(.hidden)) .room-house { display: none; }
/* full names on guests: a little more room, two lines max */
.order { max-width: 270px; } .order b { font-size: 17px; }
.rr-tag { width: 170px; } .ptag { max-width: 165px; }
.rr-tag, .ptag { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
/* 🏠 rooms house v2: bottom-left, small, numbers only */
.room-house { top: auto !important; right: auto !important; left: 12px; bottom: 12px; width: 150px; filter: drop-shadow(0 6px 10px rgba(47, 83, 113,.2)); }
.rh-roof { height: 30px; } .rh-roof b { display: none; } .rh-bow { font-size: 13px; top: 6px; }
.rh-grid { gap: 5px; padding: 6px; }
.rh-tile { padding: 0; height: 34px; font: 800 17px 'Baloo 2', sans-serif; color: #546976; display: grid; place-items: center; }
.rh-badge { top: -7px; right: -6px; min-width: 17px; height: 17px; font-size: 11px; }
.rest-room > .zone { position: absolute; top: 0; bottom: 0; }
#streetWrap { background: #afacb8; }
/* 🏠 Happy Pets style house: attic with K, rooms 1–4 below */
.room-house { width: 176px !important; filter: drop-shadow(0 6px 10px rgba(47, 83, 113,.22)); }
.rh-attic { position: relative; height: 62px; margin: 0 6px -3px; background: #d8f1fd;
  clip-path: polygon(0 100%, 50% 0, 100% 100%); display: grid; place-items: end center; padding-bottom: 6px; }
.rh-attic::before { content: ''; position: absolute; inset: 0; background: #4e97d3; clip-path: polygon(0 100%, 50% 0, 100% 100%, 92% 100%, 50% 12%, 8% 100%); }
.rh-attic .rh-tile { width: 38px; height: 30px; font-size: 16px; z-index: 1; }
.rh-attic .rh-bow { position: absolute; right: 30px; top: 16px; font-size: 18px; z-index: 2; transform: rotate(18deg); }
.rh-grid { grid-template-columns: repeat(4, 1fr) !important; background: #d8f1fd !important; border: 3px solid #4e97d3 !important; border-top-width: 4px !important; border-radius: 4px 4px 10px 10px !important; }
.rh-tile { border: 2px solid #8fc7e3 !important; background: #f5fbfe !important; border-radius: 4px !important; height: 30px !important; color: #2c383e !important; }
.rh-tile.on { border-color: #47bbf5 !important; box-shadow: 0 0 0 2px #a3ddfa !important; background: #ffffff !important; }
.rh-roof { display: none; }
body.night .rh-attic, body.night .rh-grid { background: #3a495c !important; } body.night .rh-tile { background: #485b70 !important; color: #ffffff !important; }
/* attic with K · L · C */
.rh-attic { height: 58px !important; clip-path: polygon(0 100%, 26% 0, 74% 0, 100% 100%) !important; display: flex !important; justify-content: center; align-items: flex-end; gap: 5px; padding-bottom: 6px; }
.rh-attic::before { clip-path: polygon(0 100%, 26% 0, 74% 0, 100% 100%, 94% 100%, 71% 9%, 29% 9%, 6% 100%) !important; }
.rh-attic .rh-tile { width: 34px !important; height: 28px !important; }
.rh-attic .rh-bow { right: 8px !important; top: 6px !important; }
body:has(#mapScene:not(.hidden)) .room-house, body:has(#levelsScene:not(.hidden)) .room-house { display: block; }
/* 🏠 house v4: the real Happy Pets silhouette (svg) + absolutely placed tiles */
.room-house { width: 184px !important; height: 126px; filter: drop-shadow(0 6px 10px rgba(47, 83, 113,.22)); }
.room-house .rh-shape { position: absolute; inset: 0; width: 184px; height: 126px; }
.room-house .rh-tile { position: absolute; width: 34px !important; height: 30px !important; padding: 0; display: grid; place-items: center; font: 800 16px 'Baloo 2', sans-serif;
  border: 2px solid #8fc7e3 !important; background: #f6fcff !important; border-radius: 4px !important; color: #2c383e !important; z-index: 1; }
.room-house .rh-tile.on { border-color: #47bbf5 !important; box-shadow: 0 0 0 2px #a3ddfa !important; }
.room-house .rh-bow { position: absolute; left: 62px; top: -2px; font-size: 20px; z-index: 2; }
body.night .room-house .rh-tile { background: #485b70 !important; color: #ffffff !important; }
.room-house { height: 164px !important; } .room-house .rh-shape { height: 164px !important; }
/* 🏠 house v5: house + green yard, like the Happy Pets room picker */
.room-house { width: 236px !important; height: 116px !important; }
.room-house .rh-shape { width: 236px !important; height: 116px !important; }
.room-house .rh-tile { width: 36px !important; height: 30px !important; }
.room-house .rh-tile.yard { border: 2px solid #3d9578 !important; background: #b3edda !important; color: #4a96d3 !important; font: 900 11px Nunito, sans-serif !important; letter-spacing: .3px; }
.room-house .rh-tile.yard.on { border-color: #47bbf5 !important; background: #ffffff !important; }
.room-house .rh-tile.deco { opacity: .55; cursor: default; font-size: 15px !important; }
.room-house .rh-bow { left: 62px !important; top: -3px !important; }
.room-house { width: 244px !important; } .room-house .rh-shape { width: 244px !important; }
.room-house .rh-tile.yard { width: 42px !important; }
.room-house .rh-tile.yard { font: 800 16px 'Baloo 2', sans-serif !important; color: #236750 !important; width: 36px !important; }
/* 🏠 house v7: one triangle roof on one rectangle */
.room-house { width: 252px !important; height: 136px !important; } .room-house .rh-shape { width: 252px !important; height: 136px !important; }
.room-house .rh-attic-t, .room-house .rh-tile { width: 32px !important; height: 28px !important; }
.room-house .rh-tile:not(.yard) { width: 36px !important; height: 30px !important; }
.room-house [data-room=planner], .room-house [data-room=levels], .room-house [data-room=map] { width: 32px !important; height: 26px !important; font-size: 15px !important; }
.room-house .rh-bow { left: 86px !important; top: -10px !important; font-size: 20px !important; }
.room-house [data-room=planner], .room-house [data-room=levels], .room-house [data-room=map] { width: 30px !important; height: 24px !important; font-size: 14px !important; }
.room-house .rh-bow { left: 97px !important; top: 4px !important; transform: translate(-50%, -58%) !important; font-size: 34px !important; line-height: 1; z-index: 3; }
.room-house .rh-tile.yard { border-color: #a6d9c8 !important; background: #effaf6 !important; color: #5f9784 !important; }
/* 🏠 the house is a small closed house; it opens when you hover it */
.room-house { transform: scale(.42); transform-origin: 0 100%; transition: transform .22s ease, opacity .22s; opacity: .9; cursor: pointer; }
.room-house .rh-tile { opacity: 0; transition: opacity .15s; pointer-events: none; }
.room-house:hover, .room-house:focus-within { transform: scale(1); opacity: 1; }
.room-house:hover .rh-tile, .room-house:focus-within .rh-tile { opacity: 1; pointer-events: auto; transition-delay: .08s; }
/* attic: emojis in little circles */
.room-house [data-room=planner], .room-house [data-room=levels], .room-house [data-room=map] { width: 28px !important; height: 28px !important; border-radius: 50% !important; font-size: 15px !important; line-height: 1; padding: 0 !important; }
/* attic emojis in TRUE circles (beats the 36×30 room-tile rule) */
.room-house .rh-tile.attic:not(.yard) { width: 28px !important; height: 28px !important; min-width: 28px; aspect-ratio: 1 / 1; border-radius: 50% !important; padding: 0 !important; font-size: 15px !important; }
/* 🌙 weekend chalkboard */
.weekend-board { position: relative; min-height: 190px; display: grid; place-content: center; text-align: center; gap: 4px; font-family: Mali, 'Baloo 2', sans-serif; color: #f7fafe; }
.weekend-board b { font-size: 34px; font-weight: 700; } .weekend-board span { font-size: 24px; opacity: .9; }
.chalk-heart { position: absolute; fill: none; stroke: #c9e4fa; stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 3 1.2; opacity: .85; }
/* 📱 shop toolbar on phones: one small, tidy pill */
@media (max-width: 760px) {
  #shopScene > .toolbar { left: 50% !important; right: auto !important; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px);
    padding: 4px 5px !important; gap: 5px !important; border-radius: 99px !important; overflow: visible !important; box-shadow: 0 4px 12px rgba(47, 83, 113,.15); }
  #shopScene > .toolbar #areaSel, #shopScene > .toolbar .waiting { display: none !important; }
  #shopScene > .toolbar #srcSel { max-width: 160px; font-size: 13px; padding: 6px 10px; height: 34px; border-radius: 99px; }
  #shopScene > .toolbar #modeSeg { padding: 2px; } #shopScene > .toolbar #modeSeg button { padding: 6px 10px; font-size: 13px; }
  #stageWrap .chev { display: none !important; }
}
.stage:not(.fitted) { visibility: hidden; }
/* 🍰 clickable shop furniture: grows on hover */
.shop-map { position: absolute; left: 905px; top: 66px; width: 270px; border: none; background: none; padding: 0; z-index: 1; }
.shop-map img { width: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(47, 83, 113,.12)); }
.shop-click { cursor: pointer; transition: transform .22s ease, filter .22s ease; }
.shop-click:hover { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(178, 216, 247,.75)); z-index: 6; }
.kitchen.shop-click:hover { transform: scale(1.05); }
.shop-window { display: none; }
.chef.shop-click:hover { transform: scale(1.06); }
.shop-map { left: 872px !important; top: 30px !important; width: 350px !important; }
.shop-lamp.l1 { left: 752px !important; }
/* hover grows in place: never jumps in front of other things */
.shop-click:hover { z-index: auto !important; }
#display.shop-click:hover { z-index: 3 !important; } #chef.shop-click:hover { z-index: 2 !important; } #kitchen.shop-click:hover, #mapFrame.shop-click:hover { z-index: 1 !important; }
.shop-map { top: 64px !important; }
.shop-map { top: 98px !important; }
/* 🏠 closed: a little house inside a white circle in the corner; open: the whole house */
.room-house { transform: scale(.24); left: 22px !important; bottom: 26px !important; }
.room-house::before { content: ''; position: absolute; left: -9px; top: -67px; width: 270px; height: 270px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 12px 30px rgba(47, 83, 113,.28); z-index: -1; transition: opacity .15s; }
.room-house:hover, .room-house:focus-within { transform: scale(1); }
.room-house:hover::before, .room-house:focus-within::before { opacity: 0; }
body.night .room-house::before { background: #2d3b4c; }
/* white scroll bars in the rooms */
.rest-wrap, .stage-wrap { scrollbar-color: #ffffff transparent; }
.rest-wrap::-webkit-scrollbar, .stage-wrap::-webkit-scrollbar { height: 10px; background: transparent; }
.rest-wrap::-webkit-scrollbar-thumb, .stage-wrap::-webkit-scrollbar-thumb { background: #ffffff; border-radius: 99px; box-shadow: 0 0 0 1px rgba(0, 0, 0,.06); }
.rest-wrap::-webkit-scrollbar-track, .stage-wrap::-webkit-scrollbar-track { background: transparent; }
.st-logo { position: absolute; left: 50%; top: 78px; width: 400px; transform: translateX(-50%); z-index: 2; }
/* smaller house inside the circle = nicer padding (circle stays ~65px on screen) */
.room-house { transform: scale(.18); left: 30px !important; bottom: 34px !important; }
.room-house::before { left: -55px; top: -113px; width: 362px; height: 362px; }
.room-house:hover, .room-house:focus-within { transform: scale(1); left: 12px !important; bottom: 12px !important; }
/* 🏠 closed = a house emoji in a white circle; hover opens the real house */
.room-house:not(:hover):not(:focus-within) { transform: none !important; width: 62px !important; height: 62px !important; left: 16px !important; bottom: 18px !important;
  border-radius: 50%; background: #ffffff; box-shadow: 0 8px 22px rgba(47, 83, 113,.25); opacity: 1; }
.room-house:not(:hover):not(:focus-within) > :not(.rh-mini) { display: none !important; }
.room-house::before { display: none !important; }
.rh-mini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; line-height: 1; }
.room-house:hover .rh-mini, .room-house:focus-within .rh-mini { display: none; }
.room-house:hover, .room-house:focus-within { transform: none !important; left: 12px !important; bottom: 12px !important; }
.room-house:hover .rh-tile, .room-house:focus-within .rh-tile { opacity: 1; pointer-events: auto; }
body.night .room-house:not(:hover):not(:focus-within) { background: #2d3b4c; }
/* 🗺️ Candy Kingdom: full-screen map, levels in a small floating card */
#mapScene { grid-template-columns: 1fr !important; }
#mapScene .map-side { display: none !important; }
#mapScene.side-open .map-side { display: block !important; position: absolute; left: 24px; top: 74px; width: 320px; max-height: calc(100% - 100px); overflow-y: auto; z-index: 20; box-shadow: 0 16px 40px rgba(47, 83, 113,.25); }
#mapScene .map-box { grid-column: 1 / -1; }
.map-side-toggle { width: auto !important; height: 38px !important; border-radius: 99px !important; padding: 0 14px !important; font: 700 15px 'Baloo 2', sans-serif !important; display: inline-flex !important; align-items: center; }
#mapScene.side-open .map-side-toggle { background: #e6f2fc; }
#mapScene .map-side .m-done { display: none; }
@media (max-width: 760px) { .map-side-toggle { display: inline-flex !important; } #mapScene.side-open .map-side { left: 8px; right: 8px; width: auto; top: 64px; } .m-groups { display: none !important; } }
/* ‹ back arrow on Kitchen / Levels / Candy Kingdom */
.back-chev { position: fixed !important; left: 12px !important; top: 50% !important; z-index: 45; }
.back-chev.hidden { display: none !important; }
@media (max-width: 760px) { .back-chev { top: auto !important; bottom: 96px; } }
.rr-doorbtn.fantasy { height: 400px !important; bottom: 50px; }
@media (max-width: 760px) { .hud { border-radius: 0 !important; } }   /* phone header: straight bottom edge */
@media (max-width: 760px) { #helpBtn, #msgBtn { display: none !important; } #inboxIconBtn { order: -1; } #menuBtn { order: 99; } }   /* phone: 📥 first, ☰ last, ? lives in ☰ */
.menu-it span { text-align: center; font-weight: 800; color: var(--ink2); }
.help > h2 { display: block !important; width: 100%; text-align: center !important; margin: 10px auto 6px !important; justify-content: center; }
.help > h2 { padding-right: 0 !important; padding-left: 0 !important; }   /* the sheet's h2 keeps 48px for the ✕: not here, it's centred */
/* level picker: same size as Serve / Lost, text vertically centred */
#shopScene > .toolbar select#srcSel, #shopScene > .toolbar select#areaSel { font: 600 14px 'Baloo 2', sans-serif !important; height: 34px !important; line-height: 1.2 !important;
  padding: 0 28px 0 12px !important; display: inline-flex; align-items: center; box-sizing: border-box; }
#shopScene > .toolbar #modeSeg button { font-size: 14px !important; height: 30px; display: inline-flex; align-items: center; }
#shopScene > .toolbar { align-items: center !important; }
.rest-wrap .rest-room { transition: opacity .28s ease; } .rest-wrap.loading .rest-room { opacity: 0; }
/* 📱 Kitchen on phones: compact and calm */
.kt-chip { display: none; font-style: normal; }
@media (max-width: 760px) {
  .back-chev { display: none !important; }
  #planner { padding: 12px 10px 110px !important; }
  .kt-connect { display: grid !important; grid-template-columns: 44px 1fr; gap: 6px 10px; }
  .kt-connect > span { grid-row: span 2; font-size: 34px; } .kt-connect .grow h3 { font-size: 18px; } .kt-connect button { grid-column: 1 / -1; width: 100%; }
  .kt-lh { flex-wrap: wrap; } .kt-lh b { flex: 1 1 auto; } .kt-lh .candy { flex: 1 1 100%; margin-top: 6px; }
  .kt-steps { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
  .kt-step { padding: 0 !important; background: none !important; }
  .kt-step b, .kt-step span, .kt-step small { display: none !important; }
  .kt-chip { display: inline-block; padding: 6px 10px; border-radius: 99px; font: 800 13px Nunito, sans-serif; background: #d8f3ea; color: #259771; }
  .kt-step.todo .kt-chip { background: #e6f2fc; color: #428bc7; }
  .pl-row .pl-btn span { display: none; } .pl-row .pl-btn { padding: 6px 9px; }
  .kt-lab { flex-direction: column; align-items: stretch; } .kt-scene { transform: scale(.85); margin: -10px auto -16px; }
  .kt-tiles b { font-size: 22px; }
}
@media (max-width: 760px) { .room-house, #roomHouse { display: none !important; } }   /* the house is desktop-only (phones have the bottom bar) */

/* 📅 week planner */
#daySel { max-width: 190px; }
.wk-sheet h2 { margin: 0 0 6px; } .wk-sheet #wkAll { margin: 6px 0 12px; }
.wk { display: grid; gap: 10px; }
.wk-day { background: var(--soft, #f5fafe); border-radius: 18px; padding: 12px 14px; }
.wk-day.full { background: #ebf7f3; }
.wk-h { display: flex; align-items: center; gap: 10px; } .wk-h b { font: 700 18px 'Baloo 2', sans-serif; flex: 1; } .wk-h span { font-weight: 800; color: var(--ink2); } .wk-h i { font-style: normal; color: #45af8c; font-weight: 800; }
.wk-g { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wk-g .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .wk-g small { color: var(--muted); }
.wk-g .chip button { border: none; background: none; color: var(--muted); font-weight: 800; cursor: pointer; padding: 0 2px; }
.rr-tag.scheduled small { color: var(--pink2); }

/* 📱 empty-shop message: outside the shrunk shop picture, readable */
.empty-shop b, .empty-shop span { display: block; } .empty-shop span { font-size: .8em; color: var(--ink2); font-family: Nunito, sans-serif; font-weight: 600; margin-top: 2px; }
@media (max-width: 760px) {
  #shopScene > .empty-shop { position: absolute; left: 16px; right: 16px; top: auto; bottom: 24px; z-index: 25; font-size: 19px; line-height: 1.3; padding: 16px 18px; }
}

/* house is desktop-only: also hide on touch screens (phone sideways, tablets) */
@media (hover: none) and (pointer: coarse), (max-height: 500px) {
  .room-house, #roomHouse { display: none !important; }
}

/* 🍬 loading screen v2: candies fall behind the logo and the chef, no text */
.splash { overflow: hidden; }
.splash > img { position: relative; z-index: 1; }
.splash .splash-chef { width: 170px; }
.candy-rain { position: absolute; inset: 0; pointer-events: none; }
.cdrop { position: absolute; top: 0; display: block; opacity: .9; will-change: transform;
  animation: candyFall var(--d) linear var(--w) infinite; }
.cdrop svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 4px rgba(87, 123, 153, .18)); }
@keyframes candyFall { from { transform: translateY(-15vh) rotate(0deg); } to { transform: translateY(115vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) {
  .cdrop { animation: none; transform: translateY(calc(var(--w) * -18vh)); opacity: .55; }
  .splash > img { animation: none !important; }
}

/* 📱 iPhone: the ✕ sits below the clock/notch, and the page never slides sideways */
@media (max-width: 760px) {
  .t-close { top: calc(12px + env(safe-area-inset-top)) !important; z-index: 5; }
  .sheet { max-height: calc(100svh - env(safe-area-inset-top) - 8px); }
  html, body { overflow-x: hidden; overscroll-behavior-x: none; max-width: 100%; }
  #shopScene > .toolbar { overscroll-behavior-x: contain; }
}

/* 🍽️ room bar on phones: just icon + number, never cut-off words; zero counts hide */
.rest-bar .rb em { font-style: normal; } .rest-bar .ph-ic { display: none; font-style: normal; }
@media (max-width: 760px) {
  .strip-scene .rest-bar .rb em { display: none; }
  .strip-scene .rest-bar .ph-ic { display: inline; margin-right: 3px; }
  .strip-scene .rest-bar .rb.zero { display: none; }
  .strip-scene .rest-bar .rb { overflow: visible; text-overflow: clip; display: inline-flex; align-items: center; }
  .strip-scene .rest-bar { gap: 12px; padding: 4px 6px 4px 14px; }
}

/* 📱 shop toolbar fits one phone width: day · level · Serve / Lost */
@media (max-width: 760px) {
  #shopScene > .toolbar select#daySel, #shopScene > .toolbar select#srcSel { font: 600 14px 'Baloo 2', sans-serif !important; height: 34px !important;
    padding: 0 22px 0 10px !important; box-sizing: border-box; border-radius: 99px; }
  #shopScene > .toolbar select#daySel { width: 86px; max-width: 86px; } #shopScene > .toolbar select#srcSel { width: 104px; max-width: 104px; }
  #shopScene > .toolbar .seg button { padding: 6px 9px; }
}

/* 📥 inbox on phones: rows follow the card's round corners, account picker round like the search */
@media (max-width: 760px) {
  .mail-list { overflow: clip; }
  .mrow:first-of-type { border-radius: var(--rad) var(--rad) 0 0; } .mrow:last-of-type { border-bottom: none; border-radius: 0 0 var(--rad) var(--rad); }
  .mrow:only-of-type { border-radius: var(--rad); }
  #mailAcct { border-radius: 99px !important; padding-left: 18px !important; }
}

/* ===================== IGLOO DINER skin (2026-10-12) ===================== */
.ig-logo { font-family: 'Baloo 2'; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.01em; color: #68b4e6;
  background: none; border: 0; padding: 0; white-space: nowrap; cursor: pointer;
  -webkit-text-stroke: 7px #fcfbff; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(104, 180, 230, .18), 0 10px 22px rgba(59, 88, 107, .16); }
.ig-logo em { font-style: normal; color: #4fc69e; }
.ig-logo.big { font-size: clamp(46px, 13vw, 76px); -webkit-text-stroke-width: 10px; display: inline-block; }
.hud .ig-logo { font-size: 32px; }
.st-logo.ig-logo { position: absolute; left: 50%; top: 92px; width: auto; font-size: 64px; transform: translateX(-50%); z-index: 2; cursor: default; }
@media (max-width: 760px) { .hud .ig-logo { font-size: 25px; -webkit-text-stroke-width: 6px; } }
body.night .ig-logo { color: #b4e4ff; -webkit-text-stroke-color: #212d38; }
body.night .ig-logo em { color: #9fefd4; }
::selection { background: #c8e9ff; color: #324656; }

/* igloo ice-brick wall (day + night) */
.wall { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%2296%22%20viewBox%3D%220%200%20160%2096%22%3E%0A%3Crect%20width%3D%22160%22%20height%3D%2296%22%20fill%3D%22%23d8ecfb%22/%3E%0A%3Cg%20fill%3D%22%23f1f9ff%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%0A%3Crect%20x%3D%22-77%22%20y%3D%2251%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%3Crect%20x%3D%2283%22%20y%3D%2251%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%3C/g%3E%0A%3Cg%20fill%3D%22%23ffffff%22%3E%3Crect%20x%3D%2214%22%20y%3D%229%22%20width%3D%2260%22%20height%3D%226%22%20rx%3D%223%22/%3E%3Crect%20x%3D%2296%22%20y%3D%2257%22%20width%3D%2246%22%20height%3D%226%22%20rx%3D%223%22/%3E%3Crect%20x%3D%228%22%20y%3D%2257%22%20width%3D%2234%22%20height%3D%226%22%20rx%3D%223%22/%3E%3C/g%3E%3C/svg%3E") 0 0/160px 96px, var(--wall1); }
body.night .wall { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%2296%22%20viewBox%3D%220%200%20160%2096%22%3E%0A%3Crect%20width%3D%22160%22%20height%3D%2296%22%20fill%3D%22%23223540%22/%3E%0A%3Cg%20fill%3D%22%232b3f4c%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%0A%3Crect%20x%3D%22-77%22%20y%3D%2251%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%3Crect%20x%3D%2283%22%20y%3D%2251%22%20width%3D%22154%22%20height%3D%2242%22%20rx%3D%2212%22/%3E%3C/g%3E%0A%3Cg%20fill%3D%22%23374f5e%22%3E%3Crect%20x%3D%2214%22%20y%3D%229%22%20width%3D%2260%22%20height%3D%226%22%20rx%3D%223%22/%3E%3Crect%20x%3D%2296%22%20y%3D%2257%22%20width%3D%2246%22%20height%3D%226%22%20rx%3D%223%22/%3E%3Crect%20x%3D%228%22%20y%3D%2257%22%20width%3D%2234%22%20height%3D%226%22%20rx%3D%223%22/%3E%3C/g%3E%3C/svg%3E") 0 0/160px 96px, var(--wall1); }
.floor { background: repeating-conic-gradient(var(--floor1) 0 25%, var(--floor2) 0 50%) 0 0/76px 76px; }
/* snowy outdoors: lilac-to-ice sky, snow ground, frozen street */
.rr-park { background: linear-gradient(#c8e9ff 0, #eef3ff 330px, #f5fcff 392px, #e9f1fb 100%); }
.rr-park::before { background: radial-gradient(circle at 20px 30px, #fcfbff 22px, transparent 23px) 0 0 / 46px 30px repeat-x; }
.rr-park::after { content: none; }
body.night .rr-park { background: linear-gradient(#244550 0, #3d6a78 330px, #466970 392px, #375258 100%); }
#parkWrap { background: #e9f1fb; } #streetWrap { background: #dfe6f3; }
body.night #parkWrap { background: #375258; }
.st-sky { background: linear-gradient(#c8e9ff, #eef3ff); }
.st-walk { background: repeating-linear-gradient(90deg, #f5fcff 0 118px, #e3e6f4 118px 122px); box-shadow: inset 0 14px 0 #fcfbff, inset 0 18px 0 #e3e6f4; }
.st-road { background: linear-gradient(#cfdcef, #bccbe4); }
.rr-parksign { box-shadow: 0 6px 0 #9ad0f2; color: #4a6a84; } .rr-parksign small, .rr-parkempty { color: #638090; }
#factoryWrap { background: linear-gradient(#e6f4ff, #e4f2ff); }
/* trade business names are long: street tags stay inside their own 150px slot */
.st-guest .ptag { max-width: 136px; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.st-guest .ptag small { white-space: nowrap; }
body:has(#login:not(.hidden)) #roomHouse { display: none !important; }
