/* Harbor Hill — chunky cartoon game look: thick ink outlines, 3D buttons, bright colours. */
:root {
  --ink: #2b2d42;
  --paper: #fff8ec;
  --card: #ffffff;
  --muted: #6b6f85;
  --line: #e9dfcc;
  --sun: #ffd23f;
  --sun-d: #e0a800;
  --coral: #ff6b6b;
  --coral-d: #d94848;
  --teal: #2ec4b6;
  --teal-d: #1f9a8f;
  --teal-l: #d6f6f2;
  --purple: #7b61ff;
  --blue: #3a86ff;
  --good: #3ccf7a;
  --good-d: #23a35a;
  --good-l: #dcf8e7;
  --bad: #ff5a5f;
  --bad-l: #ffe1e2;
  --sky: #8fd3ff;
  --font: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --o: 3px solid var(--ink);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); color: var(--ink); font-size: 16px;
  background: #1f2135 radial-gradient(circle at 50% 0, #3a3d63, #1f2135 70%) fixed;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, .inp:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button:disabled { cursor: default; }

#app {
  max-width: 460px; height: 100dvh; margin: 0 auto; position: relative; overflow: hidden;
  display: flex; flex-direction: column; background: var(--paper);
  box-shadow: 0 0 0 3px var(--ink), 0 30px 80px rgba(0, 0, 0, .5);
}

/* ---------- HUD ---------- */
#hud {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: var(--ink); color: #fff; position: relative; z-index: 20;
}
#hud[hidden] { display: none; }
.me { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--sun); background: #fff; flex: none; padding: 0; overflow: visible; }
.me .av { width: 38px; height: 38px; display: block; border-radius: 50%; }
.lv {
  position: absolute; right: -6px; bottom: -6px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink);
}
.xpwrap { flex: 1; min-width: 0; }
.xpwrap b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp { height: 9px; border-radius: 9px; background: #44475f; overflow: hidden; margin-top: 3px; border: 2px solid #1a1b2b; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #b39dff); transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
.clock { font-size: 12px; font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--ink); border: 2px solid #1a1b2b;
  border-radius: 999px; padding: 3px 9px 3px 4px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 #1a1b2b; white-space: nowrap;
}
.chip.icon { padding: 3px 6px; font-size: 15px; }
.chip.big { font-size: 18px; padding: 6px 14px 6px 8px; border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3a8, var(--sun) 45%, var(--sun-d)); border: 2px solid var(--ink); display: inline-block; flex: none; }
.chip.big .coin { width: 22px; height: 22px; }
.staric { font-style: normal; color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); font-size: 17px; line-height: 1; }
.bump { animation: bump .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (max-width: 400px) { .clock { display: none; } .chip.icon { padding: 3px 4px; } }

/* ---------- scene steps ---------- */
#steps { display: flex; gap: 2px; padding: 6px 10px 7px; background: #3a3d5c; position: relative; z-index: 19; }
#steps:empty { display: none; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #b8bbd6; font-size: 10.5px; font-weight: 600; position: relative; }
.step::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 4px; background: #55597d; z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.active::before { background: var(--good); }
.dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; position: relative; z-index: 1;
  background: #55597d; border: 2px solid #1a1b2b; filter: grayscale(.8);
}
.step.done .dot { background: var(--good); color: #fff; font-weight: 700; filter: none; }
.step.active { color: #fff; }
.step.active .dot { background: var(--sun); filter: none; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 210, 63, 0); } }

/* ---------- stage ---------- */
#stage { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.art { flex: 1 1 auto; min-height: 200px; position: relative; overflow: hidden; }
.art.hurt { animation: hurt .45s; }
@keyframes hurt { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }
.art.hurt::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(255, 60, 60, .55); animation: fade .5s forwards; pointer-events: none; z-index: 30; }
@keyframes fade { to { opacity: 0; } }
#sheet {
  flex: 0 1 auto; max-height: 62%; overflow-y: auto; padding: 14px 14px 18px; position: relative; z-index: 5;
  background: var(--paper); border-top: var(--o); border-radius: 24px 24px 0 0; margin-top: -22px;
  display: flex; flex-direction: column; gap: 10px;
}
#sheet:empty { display: none; }
#sheet > * { animation: rise .32s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.quest { display: flex; gap: 10px; align-items: flex-start; background: #fff3c4; border: var(--o); border-radius: 16px; padding: 9px 12px; box-shadow: 0 3px 0 var(--ink); }
.quest-ico { font-size: 22px; line-height: 1.2; }
.quest .en, .head .en { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.head.big .en { font-size: 22px; font-weight: 700; }
.native { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.native:empty { display: none; }
:lang(ar), :lang(ur) { font-family: "Noto Sans Arabic", var(--font); }
:lang(hi) { font-family: "Noto Sans Devanagari", var(--font); }

/* ---------- dialogue ---------- */
.dlg { display: flex; align-items: flex-start; gap: 0; margin-top: 6px; }
.dlg-por {
  flex: none; width: 60px; height: 60px; border-radius: 50%; border: var(--o); background: #fff; overflow: hidden; position: relative; z-index: 2;
  box-shadow: 0 3px 0 var(--ink); margin-right: -10px; margin-top: -4px;
}
.dlg-por .av { width: 100%; height: 100%; display: block; }
.dlg-por.icon { display: grid; place-items: center; font-size: 26px; background: #efe9ff; }
.dlg.speaking .dlg-por { animation: talk .35s infinite alternate; }
@keyframes talk { to { transform: translateY(-3px) rotate(-3deg); } }
.dlg-box { flex: 1; min-width: 0; background: #fff; border: var(--o); border-radius: 18px; padding: 16px 12px 8px 20px; position: relative; box-shadow: 0 4px 0 var(--ink); }
.dlg-name {
  position: absolute; top: -13px; left: 16px; background: var(--c); color: #fff; border: 2.5px solid var(--ink); border-radius: 10px;
  padding: 1px 10px; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: baseline; white-space: nowrap;
}
.dlg-name small { font-weight: 500; font-size: 11px; opacity: .9; }
.dlg-text { margin: 2px 0 4px; font-size: 17px; line-height: 1.38; font-weight: 500; min-height: 1.4em; }
.dlg-text.hidden-text { color: var(--muted); letter-spacing: .02em; }
.dlg .tr { margin: 2px 0 6px; padding: 7px 9px; background: #f3efe6; border-radius: 10px; }
.dlg-tools { display: flex; gap: 6px; justify-content: flex-end; }
.ibtn {
  min-width: 36px; height: 32px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; box-shadow: 0 2px 0 var(--ink);
  font-size: 15px; font-weight: 600; padding: 0 8px;
}
.ibtn:active { transform: translateY(2px); box-shadow: none; }
.ibtn.wide { font-size: 13px; }
.you { display: flex; justify-content: flex-end; align-items: flex-end; gap: 6px; }
.you .av { border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.you-text { background: var(--teal); color: #fff; padding: 9px 13px; border: var(--o); border-radius: 18px 18px 4px 18px; font-weight: 600; max-width: 80%; box-shadow: 0 3px 0 var(--ink); }
.you.oops .you-text { background: #9aa3b5; }
.fix { background: #fff; border: 2.5px dashed var(--sun-d); border-radius: 14px; padding: 8px 12px; font-size: 15px; font-weight: 500; }
.fix-t { color: var(--good-d); }

/* ---------- choices + buttons ---------- */
.choices { display: flex; flex-direction: column; gap: 9px; }
.choices.row { flex-direction: row; flex-wrap: wrap; }
.choices.row .choice { flex: 1 1 0; justify-content: center; min-width: 70px; }
.choice {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: #fff; border: var(--o); border-radius: 16px; padding: 10px 12px; font-weight: 600; font-size: 16.5px;
  box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .15s;
}
.choice:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.abc { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.choice.right { background: var(--good); color: #fff; animation: yay .4s; }
.choice.right .abc { background: #fff; }
@keyframes yay { 50% { transform: scale(1.05); } }
.choice.wrong { background: var(--bad-l); color: #a32a2e; opacity: .7; box-shadow: 0 2px 0 var(--ink); transform: translateY(3px); }
.choice.soft { background: #dde3ee; }
.choices.money .choice { font-size: 22px; background: #e7f9e9; padding: 14px 8px; }
.choices.money .choice::before { content: "💵"; font-size: 18px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.go {
  align-self: stretch; background: var(--coral); color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .02em;
  border: var(--o); border-radius: 18px; padding: 13px; box-shadow: 0 6px 0 var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.go:not(:disabled):active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.go:disabled { background: #b9b4c9; }
.go.alt { background: var(--blue); }
.go.locked { background: #a7a3b8; font-size: 16px; }

/* ---------- builder ---------- */
.builder { display: flex; flex-direction: column; gap: 10px; }
.build-line {
  min-height: 56px; padding: 9px; border-radius: 16px; background: #fff; border: 3px dashed #c9bda6;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.build-line:empty::before { content: "Tap the words…"; color: #b3a995; font-weight: 600; }
.build-line.done { border: 3px solid var(--good); background: var(--good-l); }
.placed { background: var(--teal); color: #fff; font-weight: 600; padding: 6px 11px; border-radius: 10px; border: 2px solid var(--ink); animation: pop .25s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.pool { display: flex; flex-wrap: wrap; gap: 8px; }
.tile {
  background: #fff8e6; border: var(--o); border-radius: 12px; padding: 7px 13px; font-weight: 600; font-size: 17px;
  box-shadow: 0 4px 0 var(--ink);
}
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tile.used { visibility: hidden; }

/* ---------- fx ---------- */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.float { position: absolute; transform: translate(-50%, -50%); font-weight: 700; white-space: nowrap; animation: floatUp 1.1s ease-out forwards; }
.float.xpgain { color: var(--purple); font-size: 19px; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.float.praise { font-size: 38px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); animation: praise 1.1s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.float.combo { color: var(--sun); font-size: 40px; }
@keyframes floatUp { to { transform: translate(-50%, -150%); opacity: 0; } }
@keyframes praise { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); } 30% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); } 70% { opacity: 1; } 100% { transform: translate(-50%, -110%) scale(1); opacity: 0; } }
.spark { position: absolute; width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--ink); animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); opacity: 0; } }
.lvup {
  position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); background: var(--purple); color: #fff; border: var(--o); border-radius: 22px;
  padding: 14px 26px; text-align: center; box-shadow: 0 6px 0 var(--ink); animation: praise 1.9s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.lvup b { display: block; font-size: 30px; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; color: var(--sun); }
#toast {
  position: absolute; left: 50%; top: 120px; transform: translate(-50%, -20px); opacity: 0; z-index: 80;
  background: var(--ink); color: #fff; padding: 9px 15px; border-radius: 14px; font-weight: 600; font-size: 15px;
  pointer-events: none; transition: .25s; max-width: 88%; text-align: center; border: 2px solid #fff;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scene card + modals ---------- */
.scard { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(43, 45, 66, .55); animation: fadein .25s; }
.scard.out { animation: fadeout .38s forwards; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.scard-in {
  background: var(--sun); border: 4px solid var(--ink); border-radius: 26px; padding: 18px 26px; text-align: center; min-width: 70%;
  box-shadow: 0 8px 0 var(--ink); animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1);
}
.scard.out .scard-in { animation: cardout .38s forwards; }
@keyframes cardin { from { transform: scale(.4) rotate(-6deg); } }
@keyframes cardout { to { transform: translateX(120%) rotate(8deg); } }
.scard-ico { font-size: 46px; display: block; }
.scard-in small { font-weight: 700; letter-spacing: .1em; font-size: 12px; }
.scard-in b { display: block; font-size: 34px; line-height: 1.1; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.scard-in p { margin: 6px 0 0; font-weight: 500; }
.modal { position: absolute; inset: 0; background: rgba(20, 21, 36, .6); display: grid; place-items: center; z-index: 60; padding: 22px; animation: fadein .2s; }
.panel {
  background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; padding: 30px 18px 18px; width: 100%; position: relative;
  display: flex; flex-direction: column; gap: 14px; align-items: center; box-shadow: 0 8px 0 var(--ink); animation: cardin .45s cubic-bezier(.3, 1.6, .5, 1);
}
.ribbon {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; border: 3px solid var(--ink);
  padding: 6px 20px; border-radius: 12px; font-weight: 700; font-size: 19px; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 4px 0 var(--ink);
}
.stars3 { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.stars3 i { font-style: normal; font-size: 58px; line-height: 1; color: #d8d2c4; -webkit-text-stroke: 3px var(--ink); transform: scale(0); }
.stars3 i:nth-child(2) { font-size: 72px; }
.stars3 i.pop { transform: scale(1); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.stars3 i.on { color: var(--sun); }
.loot { display: flex; gap: 10px; }
.panel .go { width: 100%; }
.panel .langs { justify-content: center; }

/* ---------- onboarding + creator ---------- */
.art.title { background: linear-gradient(#ffb36b, #ffd9a1 50%, #8fd3ff 50.5%, #4fb6f0); }
.title .sunbig { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--sun); border: var(--o); top: 18%; right: 12%; }
.title .skyline { position: absolute; left: 0; right: 0; bottom: 49.5%; height: 36%; display: flex; align-items: flex-end; gap: 5px; padding: 0 14px; }
.title .skyline i { flex: 1; background: #5b5f97; border: var(--o); border-bottom: 0; border-radius: 8px 8px 0 0; position: relative; }
.title .skyline i::after { content: ""; position: absolute; inset: 10px 7px 6px; background: repeating-linear-gradient(#ffe27a 0 6px, transparent 6px 14px); -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 11px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 11px); opacity: .8; }
.title .sea { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: repeating-linear-gradient(170deg, transparent 0 22px, rgba(255, 255, 255, .25) 22px 25px); }
.title .boat { position: absolute; bottom: 22%; left: -15%; font-size: 40px; animation: sail 16s linear infinite; }
@keyframes sail { to { left: 110%; } }
.clouds i { position: absolute; width: 90px; height: 30px; background: #fff; border: var(--o); border-radius: 30px; animation: drift 24s linear infinite; }
.clouds i:nth-child(1) { top: 10%; left: -20%; }
.clouds i:nth-child(2) { top: 24%; left: -40%; animation-delay: -9s; transform: scale(.7); }
.clouds i:nth-child(3) { top: 6%; left: -30%; animation-delay: -16s; }
@keyframes drift { to { left: 110%; } }
.logo-big {
  position: absolute; left: 0; right: 0; top: 10%; text-align: center; font-size: 56px; line-height: .9; font-weight: 700; color: #fff;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); transform: rotate(-4deg);
}
.tagline { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs button { padding: 8px 13px; border-radius: 14px; border: var(--o); background: #fff; font-weight: 600; box-shadow: 0 4px 0 var(--ink); }
.langs button[aria-pressed="true"] { background: var(--sun); }
.art.creator { background: radial-gradient(circle at 50% 70%, #ffe9b3, #ffb36b 70%); }
.creator .spotlight { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 30%; transform: translateX(-50%); background: radial-gradient(rgba(255, 255, 255, .7), transparent 70%); }
.pedestal { position: absolute; left: 50%; bottom: 10%; width: 180px; height: 34px; transform: translateX(-50%); background: var(--purple); border: var(--o); border-radius: 50%; box-shadow: 0 6px 0 var(--ink); }
.actor.hero { left: 50%; bottom: calc(10% + 14px); transform: translateX(-50%); }
.crow { display: flex; align-items: center; gap: 8px; }
.clabel { width: 50px; font-weight: 600; font-size: 14px; color: var(--muted); flex: none; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); padding: 0; overflow: hidden; }
.sw.pv { background: #fff; }
.sw .av { width: 100%; height: 100%; display: block; }
.sw[aria-pressed="true"] { outline: 3px solid var(--blue); outline-offset: 2px; transform: scale(1.08); }
.inp { width: 100%; padding: 11px 14px; border: var(--o); border-radius: 14px; background: #fff; font-size: 17px; font-weight: 500; box-shadow: 0 3px 0 var(--ink); }

/* ---------- actors ---------- */
.actor { position: absolute; z-index: 3; animation: idle 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.actor .av { display: block; overflow: visible; }
.actor .shadow { position: absolute; left: 15%; right: 15%; bottom: -4px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .18); z-index: -1; }
.actor.talk { animation: talkb .3s ease-in-out infinite alternate; }
@keyframes idle { 50% { transform: translateY(-3px) scaleY(1.01); } }
@keyframes talkb { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-6px) rotate(1.5deg); } }
.actor.hero { animation: none; }

/* ---------- world map ---------- */
.art.map { background: #4fb6f0 repeating-linear-gradient(160deg, transparent 0 26px, rgba(255, 255, 255, .18) 26px 29px); }
.mapsvg { position: absolute; inset: 4% 3% 2%; width: 94%; height: 94%; }
.deco { position: absolute; font-size: 26px; transform: translate(-50%, -50%); }
.maptitle { position: absolute; left: 12px; top: 10px; background: #fff; border: var(--o); border-radius: 14px; padding: 4px 12px; font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 var(--ink); line-height: 1.1; }
.maptitle small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: var(--o); z-index: 4;
  background: #cfcadb; box-shadow: 0 5px 0 var(--ink); font-size: 22px; font-weight: 700; display: grid; place-items: center; padding: 0;
}
.node b { color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; font-size: 22px; }
.node.soon b, .node.locked b { -webkit-text-stroke: 0; font-size: 18px; }
.node.open { background: var(--coral); }
.node.done { background: var(--good); }
.node.here { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -60%); } }
.node.sel { outline: 4px solid #fff; outline-offset: 2px; }
.nstars { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; font-size: 11px; padding: 0 5px; white-space: nowrap; }
.me-pin { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); overflow: hidden; background: #fff; }
.me-pin .av { width: 100%; height: 100%; display: block; }
.dayhead h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.1; }
.dayhead p { margin: 4px 0 0; color: #4a4d63; line-height: 1.4; }
.daynum { display: inline-block; background: var(--purple); color: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 1px 10px; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); }
.loading { height: 14px; border-radius: 9px; background: #fff; border: var(--o); overflow: hidden; }
.loading i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--good) 0 10px, #5fe095 10px 20px); transition: width .2s; }
.art.dayintro { background: radial-gradient(circle at 50% 40%, #ffe9b3, #ff9f6b); }

/* ---------- summary ---------- */
.art.summary { background: radial-gradient(circle at 50% 40%, #7b61ff, #3d2f99); display: grid; place-items: center; color: #fff; }
.bigstars { text-align: center; position: relative; padding-top: 30px; }
.bigstars .ribbon { top: -8px; }
.bigstars b { font-size: 58px; display: block; color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.bigstars span { font-weight: 600; font-size: 18px; }
.confetti { position: absolute; top: -14px; width: 9px; height: 15px; border-radius: 2px; border: 1.5px solid var(--ink); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(460px) rotate(600deg); } }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows div { display: flex; justify-content: space-between; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-weight: 600; box-shadow: 0 3px 0 var(--ink); }
.rows .st { color: var(--sun-d); letter-spacing: 2px; }
.teaser { background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; border: var(--o); }
.teaser small { color: var(--sun); font-weight: 700; letter-spacing: .1em; font-size: 11px; display: block; }
.teaser b { display: block; font-size: 18px; }
.teaser span:not(.big) { font-size: 14px; opacity: .85; }
.teaser .big { font-size: 38px; }

/* ---------- shared props ---------- */
.phone {
  position: absolute; inset: 12px 0 30px; margin: 0 auto; width: min(290px, 84%);
  border-radius: 32px; background: var(--ink); padding: 9px; box-shadow: 0 8px 0 rgba(0, 0, 0, .3); display: flex; border: 3px solid #000;
}
.phone .screen { flex: 1; border-radius: 24px; background: #f4efe8; display: flex; flex-direction: column; overflow: hidden; }
.phone .status { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; padding: 6px 14px 2px; }
.chathead { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; background: #fff; border-bottom: 2px solid var(--line); }
.chathead .av { border-radius: 50%; border: 2px solid var(--ink); }
.chathead b { display: block; font-size: 15px; }
.chathead small { font-size: 11px; color: var(--good-d); font-weight: 600; }
.chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; animation: pop .25s; border: 2px solid var(--ink); }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: #c8f4ec; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .ticks { color: var(--blue); font-size: 11px; margin-left: 6px; }
.msg .tr { color: var(--muted); font-size: 13px; margin-top: 4px; }
.msg .ibtn { margin-top: 5px; height: 26px; font-size: 12px; min-width: 30px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b5; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; transform: translateY(-2px); } }
.voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.voice .play { width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 14px; flex: none; border: 2px solid var(--ink); }
.voice .wave { display: flex; gap: 2px; align-items: center; height: 26px; flex: 1; }
.voice .wave i { flex: 1; background: #c8ccd3; border-radius: 2px; }
.voice.playing .wave i { background: var(--coral); animation: wv .6s ease-in-out infinite alternate; }
@keyframes wv { to { transform: scaleY(.35); } }
.voice small { font-size: 11px; color: var(--muted); font-weight: 600; }
.note { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 3px 9px; border-radius: 999px; }
.notif {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 86%; z-index: 6; background: #fff; border: var(--o); border-radius: 16px;
  padding: 8px 10px; display: flex; gap: 8px; align-items: center; box-shadow: 0 5px 0 var(--ink); animation: drop .5s cubic-bezier(.3, 1.6, .5, 1); text-align: left;
}
.notif .av { border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.notif b { display: block; font-size: 14px; } .notif span { font-size: 13px; color: var(--muted); }
@keyframes drop { from { transform: translate(-50%, -140%); } }
.helper { position: absolute; right: 10px; bottom: 34px; display: flex; align-items: center; gap: 6px; background: #fff; padding: 4px 12px 4px 4px; border-radius: 999px; border: var(--o); box-shadow: 0 3px 0 var(--ink); font-size: 13px; font-weight: 600; animation: rise .4s; z-index: 6; }
.helper .av { border-radius: 50%; }
.words { display: flex; flex-direction: column; gap: 6px; }
.word { display: flex; align-items: center; gap: 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 7px 10px; text-align: left; box-shadow: 0 3px 0 var(--ink); }
.word b { min-width: 96px; }
.word span { color: var(--muted); font-size: 14px; }
.word i { font-style: normal; }
.counter-n { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.qcard { background: #fff; border: var(--o); border-radius: 16px; padding: 14px; font-size: 21px; font-weight: 600; text-align: center; box-shadow: 0 4px 0 var(--ink); }
.blank { display: inline-block; min-width: 64px; border-bottom: 4px solid var(--coral); color: var(--coral); }
.blank.filled { border-color: var(--good); color: var(--good-d); }
.tip { background: var(--teal-l); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.tip b { color: var(--teal-d); }

/* ========== DAY 1 ========== */
.art.airport { background: linear-gradient(#bfe6ff 0 52%, #e9e2d2 52%); }
.airport .wins { position: absolute; left: 0; right: 0; top: 0; height: 52%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.airport .wins i { border: var(--o); border-radius: 10px; background: linear-gradient(#7cc7ff, #c9ecff); }
.airport .plane { position: absolute; top: 14%; left: -20%; font-size: 40px; animation: fly 9s linear infinite; z-index: 1; }
@keyframes fly { to { left: 110%; transform: translateY(-30px); } }
.airport .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: repeating-linear-gradient(90deg, transparent 0 48px, rgba(0, 0, 0, .06) 48px 50px); }
.desk { position: absolute; left: 50%; bottom: 8%; width: 74%; height: 34%; transform: translateX(-50%); background: #5b8bd6; border: var(--o); border-radius: 14px 14px 6px 6px; z-index: 4; box-shadow: inset 0 10px 0 #7aa6ea; }
.desk .sign { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); background: var(--ink); color: var(--sun); font-weight: 700; padding: 3px 12px; border-radius: 8px; font-size: 13px; letter-spacing: .08em; white-space: nowrap; border: 2px solid #000; }
.passport { position: absolute; left: 50%; bottom: 30%; z-index: 5; width: 54px; height: 70px; background: #8b1e3f; border: var(--o); border-radius: 6px; color: var(--sun); display: grid; place-items: center; font-size: 22px; transform: translateX(-50%) rotate(-8deg); animation: pop .4s; }
.stamp { position: absolute; left: 50%; bottom: 34%; z-index: 6; transform: translateX(-30%) rotate(12deg); color: var(--good-d); border: 3px solid var(--good-d); border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: 18px; background: rgba(255, 255, 255, .8); animation: stamp .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes stamp { from { transform: translateX(-30%) rotate(12deg) scale(2.4); opacity: 0; } }
.art.arrivals { background: linear-gradient(135deg, #3a3d63, #5b5f97); }

/* letter pop map */
.art.popmap { background: #e9f1e1; background-image: linear-gradient(90deg, transparent 0 46%, #fff 46% 54%, transparent 54%), linear-gradient(transparent 0 46%, #fff 46% 54%, transparent 54%), linear-gradient(30deg, transparent 0 48%, #fff 48% 52%, transparent 52%); background-size: 120px 120px, 120px 120px, 220px 220px; }
.search { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 6; background: #fff; border: var(--o); border-radius: 16px; padding: 8px 12px; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 0 var(--ink); font-weight: 600; }
.search .slot { width: 26px; height: 32px; border-bottom: 3px solid #c9bda6; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.search .slot.fill { border-color: var(--good); color: var(--good-d); animation: pop .3s; }
.search .rest { color: var(--muted); margin-left: 4px; }
.pin { position: absolute; left: 56%; top: 52%; font-size: 44px; transform: translate(-50%, -100%); animation: drop .6s cubic-bezier(.3, 1.6, .5, 1); z-index: 5; }
.pinlabel { position: absolute; left: 56%; top: 54%; transform: translateX(-50%); background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 2px 10px; font-weight: 700; z-index: 5; white-space: nowrap; }
.bub {
  position: absolute; bottom: -80px; width: 64px; height: 64px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #fff, #bfe8ff 40%, #7cc7ff); border: var(--o); box-shadow: 0 4px 0 var(--ink);
  font-size: 30px; font-weight: 700; display: grid; place-items: center; animation: floatbub linear forwards;
}
.bub.popped { animation: popbub .3s forwards; pointer-events: none; }
.bub.nope { background: radial-gradient(circle at 35% 30%, #fff, #ffc9c9 40%, #ff8a8a); animation: popbub .4s forwards; pointer-events: none; }
@keyframes floatbub { to { transform: translateY(calc(-1 * var(--h, 420px))) translateX(var(--sway, 10px)); } }
@keyframes popbub { to { transform: scale(1.6); opacity: 0; } }
.popbar { display: flex; gap: 8px; align-items: center; justify-content: center; }

/* street + taxi */
.art.street { background: linear-gradient(#8fd3ff 0 55%, #7bd389 55% 70%, #6b6f85 70% 88%, #7bd389 88%); }
.street .sunsm { position: absolute; top: 8%; right: 10%; width: 54px; height: 54px; border-radius: 50%; background: var(--sun); border: var(--o); }
.street .road-line { position: absolute; left: 0; right: 0; top: 78.5%; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 52px); }
.street.moving .road-line { animation: roadmove .5s linear infinite; }
@keyframes roadmove { to { background-position: -52px 0; } }
.houses { position: absolute; left: 0; right: 0; bottom: 30%; height: 38%; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6px; z-index: 2; transition: transform 1.2s ease-out; }
.house { position: relative; width: 22%; height: 78%; border: var(--o); border-radius: 4px; background: var(--c); display: flex; justify-content: center; align-items: flex-end; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.house::before { content: ""; position: absolute; left: -12%; right: -12%; bottom: 100%; height: 46%; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house .door { width: 34%; height: 46%; background: #8a5a3b; border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.house .hnum { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 7px; font-weight: 700; font-size: 18px; }
.house.hit { animation: yay .5s; outline: 4px solid var(--good); outline-offset: 3px; }
.taxi { position: absolute; bottom: 13%; left: 4%; font-size: 64px; z-index: 3; transition: left 1.2s ease-in-out; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.street.moving .taxi { animation: rumble .2s infinite alternate; }
@keyframes rumble { to { margin-bottom: 2px; } }
.art.taxiin { background: linear-gradient(#8fd3ff 0 45%, #7bd389 45% 58%, #6b6f85 58%); }
.taxiin .dash { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #2b2d42; border-top: 6px solid #44475f; z-index: 4; }
.taxiin .wheel { position: absolute; right: 12%; bottom: 14%; width: 96px; height: 96px; border-radius: 50%; border: 12px solid #111; z-index: 5; }
.taxiin .meter { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); background: #111; color: #ff5a5f; font-family: ui-monospace, Menlo, monospace; font-size: 22px; padding: 4px 10px; border-radius: 8px; border: 3px solid #44475f; z-index: 5; }
.taxiin .actor { left: 5%; bottom: 24%; z-index: 5; }
.cityscape { position: absolute; left: 0; right: 0; bottom: 42%; height: 34%; background-repeat: repeat-x; background-position: 0 100%; background-size: 320px 100%; animation: drive 2.4s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160' preserveAspectRatio='none'%3E%3Cg stroke='%232b2d42' stroke-width='3'%3E%3Crect x='4' y='60' width='46' height='100' fill='%23ffb4a2'/%3E%3Crect x='60' y='20' width='38' height='140' fill='%23a0c4ff'/%3E%3Crect x='108' y='84' width='56' height='76' fill='%23caffbf'/%3E%3Crect x='174' y='40' width='34' height='120' fill='%23fdffb6'/%3E%3Crect x='218' y='70' width='46' height='90' fill='%23bdb2ff'/%3E%3Ccircle cx='292' cy='120' r='24' fill='%237bd389'/%3E%3C/g%3E%3C/svg%3E"); }
.mapdeco { position: absolute; font-size: 30px; z-index: 1; }
.taxiin .road-line { position: absolute; left: 0; right: 0; top: 74%; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 52px); animation: roadmove .5s linear infinite; }

/* apartment */
.art.flatdoor { background: linear-gradient(#f6e7d3 0 78%, #c9a27e 78%); }
.flatdoor .door1 { position: absolute; left: 58%; bottom: 22%; width: 34%; height: 66%; background: #4f7cac; border: var(--o); border-radius: 8px 8px 0 0; box-shadow: inset 0 0 0 8px #6b97c6; }
.flatdoor .door1 b { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); background: var(--sun); border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 8px; }
.flatdoor .actor { left: 8%; bottom: 20%; }
.art.flat { background: #d9c3a5; }
.plan { position: absolute; inset: 12px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0; border: 5px solid var(--ink); border-radius: 10px; background: var(--ink); }
.room {
  position: relative; border: 2px solid var(--ink); background: var(--c); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 8px;
  font-size: 34px; padding: 6px;
}
.room .rlabel { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: #fff; border: 2.5px solid var(--ink); border-radius: 9px; padding: 0 8px; font-size: 14px; font-weight: 700; white-space: nowrap; animation: pop .3s; }
.room.found { box-shadow: inset 0 0 0 5px var(--good); }
.room:active { filter: brightness(.95); }
.marker { position: absolute; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); overflow: hidden; background: #fff; transition: left .6s cubic-bezier(.3, 1.4, .5, 1), top .6s cubic-bezier(.3, 1.4, .5, 1); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 3px 0 var(--ink); }
.marker .av { width: 100%; height: 100%; display: block; }
.keyprop { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 70px; z-index: 6; animation: cardin .6s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 4px 0 var(--ink)); }

/* phone shop */
.art.pshop { background: linear-gradient(#e0f4ff 0 62%, #b08968 62%); }
.pshop .shopsign { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; border: var(--o); border-radius: 12px; padding: 3px 16px; font-weight: 700; letter-spacing: .1em; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; z-index: 2; }
.pshop .wall { position: absolute; left: 6%; right: 6%; top: 22%; height: 26%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pshop .wall i { font-style: normal; font-size: 28px; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; }
.pshop .counter2 { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: #c69c72; border-top: var(--o); z-index: 4; }
.pshop .actor { left: 50%; bottom: 34%; transform: translateX(-50%); z-index: 3; }
.pshop .actor { animation: none; }
.bigscreen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; background: var(--ink); color: #fff; border: 4px solid #000; border-radius: 22px; padding: 14px 16px; text-align: center; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.bigscreen small { display: block; color: var(--sun); font-weight: 600; letter-spacing: .08em; }
.digits { display: flex; gap: 4px; margin-top: 6px; font-family: ui-monospace, Menlo, monospace; }
.digits span { width: 26px; height: 38px; border-radius: 8px; background: #44475f; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.digits span.fill { background: var(--good); animation: pop .25s; }
.digits span.gap { width: 8px; background: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { background: #fff; border: var(--o); border-radius: 14px; padding: 10px 0; font-size: 24px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.key.zero { grid-column: 2; }

/* ========== DAY 4 (restyled) ========== */
.art.bedroom { background: linear-gradient(#ffe2c4 0 72%, #d9b38c 72%); }
.bedroom .window { position: absolute; top: 12%; left: 10%; width: 36%; height: 42%; border-radius: 10px; background: linear-gradient(#ffad7a, #ffd9a8); border: 6px solid #fff; outline: 3px solid var(--ink); overflow: hidden; }
.bedroom .window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%); }
.bedroom .sun { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #fff3c4; bottom: 10%; left: 30%; border: 2px solid var(--ink); animation: rise-sun 8s ease-out both; }
@keyframes rise-sun { from { transform: translateY(40px); } }
.bedroom .bed { position: absolute; bottom: 10%; right: 6%; width: 58%; height: 26%; background: #f2f4f7; border: var(--o); border-radius: 14px 14px 6px 6px; box-shadow: inset 0 -16px 0 #7aa7c7; }
.bedroom .bed::before { content: ""; position: absolute; left: 8%; top: -16%; width: 30%; height: 42%; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; }
.bedroom .plant { position: absolute; bottom: 26%; left: 6%; font-size: 40px; }
.ringing-phone {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 100px; height: 156px; border-radius: 22px; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 34px; border: 3px solid #000; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 4px #44475f;
  animation: ring .5s infinite; z-index: 5;
}
.ringing-phone span { font-size: 22px; font-weight: 700; }
.ringing-phone small { font-size: 11px; opacity: .7; }
@keyframes ring { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-8deg); } 75% { transform: translate(-50%, -50%) rotate(8deg); } }
.ringing-phone.quiet { animation: none; }
.art.phonebg { background: linear-gradient(135deg, #3a3d63, #5b5f97); }
.art.kitchen-am { background: #dff3ee repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .8) 39px 41px), repeating-linear-gradient(transparent 0 39px, rgba(255, 255, 255, .8) 39px 41px); }
.fridge { position: absolute; left: 7%; top: 7%; bottom: 6%; width: 52%; background: #fff; border-radius: 14px; border: 4px solid var(--ink); box-shadow: inset 0 0 0 5px #d5dde3, 0 5px 0 rgba(0, 0, 0, .15); display: grid; grid-template-rows: repeat(3, 1fr); padding: 8px; gap: 4px; }
.fridge .shelf { display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 4px solid #a9cde0; padding-bottom: 2px; }
.slot { width: 30%; aspect-ratio: 1; display: grid; place-items: center; font-size: 30px; border-radius: 10px; position: relative; transition: .2s; }
.slot.empty { border: 2.5px dashed #a9b4bd; font-size: 0; }
.slot.focus { background: #fff1c8; box-shadow: 0 0 0 3px var(--sun-d); transform: scale(1.1); }
.slot.gone::after { content: "✕"; position: absolute; color: var(--bad); font-size: 24px; font-weight: 700; }
.counter { position: absolute; right: 0; left: 63%; bottom: 0; height: 30%; background: #b08968; border-top: var(--o); }
.breadbin { position: absolute; right: 8%; bottom: 30%; width: 26%; height: 22%; background: #d8a47f; border: var(--o); border-radius: 40px 40px 8px 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #6b3f22; letter-spacing: .1em; }
.breadbin.focus { box-shadow: 0 0 0 4px var(--sun); }
.sticky { position: absolute; right: 6%; top: 8%; width: 30%; min-height: 32%; background: #fff59d; padding: 8px 9px; border: 2.5px solid var(--ink); transform: rotate(3deg); font-family: "Caveat", cursive; font-size: 19px; line-height: 1.05; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.sticky b { font-family: var(--font); font-size: 10px; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.sticky div { animation: pop .3s; }

.art.bus { background: #3a3f52; }
.bus .win { position: absolute; inset: 14px 14px 32% 14px; border-radius: 18px; overflow: hidden; background: linear-gradient(#8a99a8, #b5c1cc); border: 5px solid var(--ink); }
.bus .city { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; background-repeat: repeat-x; background-position: 0 100%; background-size: 320px 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cpattern id='w' width='13' height='16' patternUnits='userSpaceOnUse'%3E%3Crect x='4' y='5' width='6' height='7' fill='%23ffd88a' opacity='.6'/%3E%3C/pattern%3E%3C/defs%3E%3Cg fill='%2342505f' stroke='%232b2d42' stroke-width='2'%3E%3Crect x='0' y='60' width='46' height='100'/%3E%3Crect x='54' y='18' width='38' height='142'/%3E%3Crect x='100' y='84' width='60' height='76'/%3E%3Crect x='168' y='40' width='34' height='120'/%3E%3Crect x='210' y='70' width='50' height='90'/%3E%3Crect x='268' y='28' width='44' height='132'/%3E%3C/g%3E%3Cg fill='url(%23w)'%3E%3Crect x='2' y='66' width='42' height='94'/%3E%3Crect x='56' y='24' width='34' height='136'/%3E%3Crect x='104' y='90' width='52' height='70'/%3E%3Crect x='170' y='46' width='30' height='114'/%3E%3Crect x='212' y='76' width='46' height='84'/%3E%3Crect x='270' y='34' width='40' height='126'/%3E%3C/g%3E%3C/svg%3E"); }
.bus .city.far { height: 88%; opacity: .45; filter: blur(1.5px); background-size: 240px 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' preserveAspectRatio='none'%3E%3Cg fill='%236d7c8c'%3E%3Crect x='0' y='40' width='30' height='120'/%3E%3Crect x='36' y='10' width='40' height='150'/%3E%3Crect x='84' y='60' width='28' height='100'/%3E%3Crect x='118' y='25' width='50' height='135'/%3E%3Crect x='176' y='50' width='34' height='110'/%3E%3Crect x='214' y='0' width='22' height='160'/%3E%3C/g%3E%3C/svg%3E"); }
.bus.moving .city { animation: drive 3s linear infinite; }
.bus.moving .city.far { animation: drivefar 7s linear infinite; }
@keyframes drive { to { background-position: -320px 100%; } }
@keyframes drivefar { to { background-position: -240px 100%; } }
.bus .rain { position: absolute; inset: -20%; opacity: .55; background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(255, 255, 255, .55) 14px 15px); animation: rain .5s linear infinite; }
@keyframes rain { to { transform: translate(-12px, 30px); } }
.bus .win::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(1.5px); background: rgba(200, 210, 220, .15); }
.bus .sign { position: absolute; bottom: 30%; right: -40%; background: #0c6e5f; color: #fff; padding: 8px 14px; border-radius: 8px; border: 3px solid var(--ink); font-weight: 700; font-size: 18px; filter: blur(5px); transition: right 1s ease-out; white-space: nowrap; z-index: 1; }
.bus .sign.show { right: 12%; }
.bus .rail { position: absolute; left: 0; right: 0; top: 6px; height: 6px; background: #c7ccd6; }
.bus .seats { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: repeating-linear-gradient(90deg, var(--teal) 0 70px, var(--teal-d) 70px 76px); border-top: var(--o); }
.bus .actor { left: 4%; bottom: 16%; }
.ride { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.route { display: flex; align-items: center; width: 100%; padding: 0 6px; }
.route i { width: 18px; height: 18px; border-radius: 50%; background: #e6dccb; border: 2.5px solid var(--ink); flex: none; }
.route i.on { background: var(--sun); transform: scale(1.3); }
.route i.past { background: var(--good); }
.route b { flex: 1; height: 5px; background: var(--ink); }
.stopbtn { width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff8a80, #e53935); border: 4px solid var(--ink); color: #fff; font-weight: 700; font-size: 26px; letter-spacing: .06em; box-shadow: 0 8px 0 var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.stopbtn:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.stopbtn.lit { background: radial-gradient(circle at 40% 35%, #fff1a8, var(--sun)); color: var(--ink); text-shadow: none; box-shadow: 0 8px 0 var(--ink), 0 0 30px var(--sun); }
.stopbtn small { display: block; font-size: 12px; letter-spacing: 0; }
.row2 { display: flex; gap: 8px; justify-content: center; }

.art.shop { background: linear-gradient(#f3fbef 0 60%, #e2ecdc 60%); }
.storesign { position: absolute; top: 0; left: 0; right: 0; text-align: center; background: var(--good); color: #fff; font-weight: 700; letter-spacing: .14em; font-size: 13px; padding: 5px; border-bottom: var(--o); }
.tabs { position: absolute; top: 36px; left: 10px; right: 10px; display: flex; gap: 6px; }
.tabs button { flex: 1; background: #fff; border: var(--o); border-radius: 12px; padding: 5px 2px; font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.15; box-shadow: 0 3px 0 var(--ink); }
.tabs button span { font-size: 20px; }
.tabs button[aria-pressed="true"] { background: var(--sun); }
.aisle { position: absolute; top: 104px; left: 10px; right: 10px; bottom: 30px; display: grid; grid-template-rows: 1fr 1fr; }
.aisle .board { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; padding: 0 6px 4px; border-bottom: 10px solid #c9a27e; box-shadow: 0 4px 0 var(--ink); margin-bottom: 14px; }
.item { font-size: 42px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; transition: transform .12s; }
.item:active { transform: scale(.88); }
.item small { font-size: 12px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 7px; padding: 0 5px; min-height: 18px; }
.item small:empty { visibility: hidden; }
.item.taken { opacity: .3; }
.item.soldout { font-size: 12px; color: var(--muted); font-weight: 700; height: 62px; justify-content: center; border: 2.5px dashed #a99f8c; border-radius: 10px; }
.art.shop.busy .tabs, .art.shop.busy .aisle { pointer-events: none; filter: saturate(.6); opacity: .8; }
.fly { position: absolute; font-size: 40px; z-index: 40; pointer-events: none; transition: transform .55s cubic-bezier(.5, -0.3, .7, 1), opacity .55s; }
.listbar { display: flex; gap: 6px; flex-wrap: wrap; }
.listbar span { padding: 5px 11px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); font-weight: 600; font-size: 14px; }
.listbar span.got { background: var(--good); color: #fff; }
.listbar span.got::before { content: "✓ "; }
.timer { height: 14px; border-radius: 9px; background: #fff; border: 2.5px solid var(--ink); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--good); transition: width .25s linear; }
.timer.low i { background: var(--bad); }
.timerow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timerow .timer { flex: 1; }

.art.checkout { background: linear-gradient(#fdf3df 0 58%, #6c757d 58% 61%, #8d99a6 61%); }
.checkout .actor { left: 8%; bottom: 40%; }
.register { position: absolute; right: 6%; top: 10%; background: var(--ink); color: #7fffb2; font-family: ui-monospace, Menlo, monospace; font-size: 22px; padding: 8px 12px; border-radius: 10px; border: 4px solid #000; min-width: 110px; text-align: right; }
.register.hit { animation: bump .5s; }
.belt { position: absolute; left: 0; right: 0; bottom: 12%; height: 22%; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 38px; background: repeating-linear-gradient(90deg, #2f3640 0 18px, #39414c 18px 20px); border-top: var(--o); border-bottom: var(--o); z-index: 4; }
.belt span { transition: transform .4s, opacity .4s; }
.belt span.scanned { transform: translateX(-40px); opacity: .35; }
.cash { position: absolute; right: 10%; top: 34%; font-size: 14px; font-weight: 700; background: #e8f5e9; border: 2.5px solid var(--ink); color: #2e6b31; border-radius: 8px; padding: 8px 12px; transform: rotate(-6deg); }

.art.kitchen { background: linear-gradient(#ffe8d6 0 62%, #a47551 62% 66%, #c69c72 66%); }
.video { position: absolute; top: 10px; left: 12px; right: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border: 3px solid #000; z-index: 4; }
.video .av { border-radius: 50%; }
.video b { font-size: 14px; display: block; }
.video small { font-size: 11px; opacity: .7; }
.video > div { flex: 1; }
.prog { height: 5px; background: #44475f; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--coral); width: 0; transition: width .5s; }
.video .rec { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
.cook { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 10px; }
.cook > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #5b3d22; }
.bowl { width: 92px; height: 50px; border-radius: 0 0 50px 50px; background: #e9eef3; position: relative; overflow: hidden; border: var(--o); border-top: 0; }
.bowl .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .5s, background .5s; }
.bowl[data-state="eggs"] .fill { height: 45%; background: radial-gradient(circle at 35% 50%, #ffb703 0 12px, transparent 13px), radial-gradient(circle at 65% 50%, #ffb703 0 12px, transparent 13px), #fff8e1; }
.bowl[data-state="milk"] .fill { height: 62%; background: radial-gradient(circle at 35% 55%, #ffb703 0 11px, transparent 12px), radial-gradient(circle at 65% 55%, #ffb703 0 11px, transparent 12px), #fdfdfb; }
.bowl[data-state="mixed"] .fill { height: 62%; background: #ffd76a; }
.pan { width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(#3a3f47 60%, #23272e 61%); position: relative; border: var(--o); }
.pan .handle { position: absolute; right: -54px; top: 50%; width: 56px; height: 14px; background: #23272e; border: 2.5px solid var(--ink); border-radius: 6px; transform: translateY(-50%); }
.pan .fill { position: absolute; inset: 18px; border-radius: 50%; transition: .5s; transform: scale(0); }
.pan[data-state="butter"] .fill { transform: scale(.35); background: #ffe28a; border-radius: 30%; }
.pan[data-state="eggs"] .fill { transform: scale(1); background: #ffd24d; }
.pan[data-state="cheese"] .fill { transform: scale(1); background: radial-gradient(circle at 30% 40%, #ffb000 0 7px, transparent 8px), radial-gradient(circle at 60% 60%, #ffb000 0 7px, transparent 8px), radial-gradient(circle at 55% 30%, #ffb000 0 6px, transparent 7px), #ffd24d; }
.pan[data-state="folded"] .fill { transform: scale(1); background: linear-gradient(transparent 50%, #f2b632 50%); }
.pan.sizzle::after { content: "~ ~ ~"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; -webkit-text-stroke: 1px var(--ink); animation: steam 1s infinite; }
@keyframes steam { 50% { transform: translate(-50%, -6px); opacity: .4; } }
.plate { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(#fff 55%, #e8edf2 56% 66%, #fff 67%); position: relative; border: var(--o); }
.plate .fill { position: absolute; inset: 24px 18px 34px; border-radius: 60px 60px 8px 8px; background: #f2b632; border: 2px solid var(--ink); transform: scale(0); transition: .5s; }
.plate[data-state="omelette"] .fill { transform: scale(1); }
.cue:empty { display: none; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tool { background: #fff; border: var(--o); border-radius: 14px; padding: 5px 2px; font-size: 26px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 var(--ink); }
.tool:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tool small { font-size: 12.5px; font-weight: 600; }
.tool.sel { background: var(--sun); }

.art.night { background: linear-gradient(#1d3557, #274472 70%, #3d2f2a 70%); }
.night .moonwin { position: absolute; left: 8%; top: 9%; width: 30%; height: 38%; border: 5px solid var(--ink); border-radius: 10px; background: #0f1d33; overflow: hidden; }
.night .moon { position: absolute; width: 32px; height: 32px; border-radius: 50%; top: 18%; right: 18%; box-shadow: -8px 4px 0 #fef3c7; }
.night .stars i { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: blink 2s infinite; }
.night .glow { position: absolute; right: 6%; top: 10%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(rgba(255, 214, 140, .55), transparent 70%); }
.notebook { position: absolute; right: 7%; bottom: 7%; width: 58%; height: 64%; background: #fffdf5; border: var(--o); border-radius: 6px 12px 12px 6px; padding: 12px 12px 8px 22px; background-image: repeating-linear-gradient(transparent 0 25px, #d6e4f0 25px 26px); background-position: 0 34px; box-shadow: inset 8px 0 0 var(--coral); transform: rotate(-2deg); font-family: "Caveat", cursive; color: #22336b; font-size: 21px; line-height: 26px; overflow: hidden; }
.notebook .date { font-size: 15px; color: #8a7d64; }
.notebook div.w { animation: write 1.4s steps(40) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.art.door { background: linear-gradient(#e9dcc9 0 80%, #b9a07f 80%); }
.doorway { position: absolute; left: 50%; bottom: 20%; width: 120px; height: 72%; transform: translateX(-50%) perspective(400px); background: #8a5a3b; border: var(--o); border-radius: 6px 6px 0 0; transform-origin: left center; transition: transform .8s; box-shadow: inset 0 0 0 10px #96654a; z-index: 2; }
.doorway.knock { animation: knock .3s 2; }
@keyframes knock { 50% { transform: translateX(-50%) perspective(400px) translateX(3px); } }
.doorway.open { transform: translateX(-50%) perspective(400px) rotateY(-75deg); }
.doorway .knob { position: absolute; right: 12px; top: 52%; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.door .actor { left: 50%; bottom: 20%; transform: translateX(-50%); }
.door .actor { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-height: 680px) {
  .art { min-height: 170px; }
  #sheet { max-height: 66%; }
  .actor .av { transform: scale(.8); transform-origin: 50% 100%; }
}

.introbig { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 110px; animation: bob2 1.6s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(43, 45, 66, .35)); }
@keyframes bob2 { 50% { transform: translate(-50%, -58%) rotate(-4deg); } }

/* ---------- learn first ---------- */
.chip.icon[hidden] { display: none; }
.art.learn { background: radial-gradient(circle at 50% 30%, #8f7bff, #4b37c9 75%); }
.art.learn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .25) 1.5px, transparent 2px) 0 0 / 26px 26px; }
.lhead { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #fff; }
.lhead b { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbadge { background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; padding: 2px 9px; font-weight: 700; font-size: 13px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.lbadge.check { background: var(--good); color: #fff; }
.ldots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.ldots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 1.5px solid var(--ink); }
.ldots i.past { background: var(--good); }
.ldots i.on { background: var(--sun); transform: scale(1.3); }
.fcard {
  position: absolute; left: 50%; top: calc(50% + 14px); transform: translate(-50%, -50%); width: min(300px, 78%); z-index: 2;
  background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 18px 16px 22px; box-shadow: 0 8px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: flipin .45s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes flipin { from { transform: translate(-50%, -50%) rotateY(80deg) scale(.8); opacity: 0; } }
.fpic { font-size: 84px; line-height: 1.1; }
.fcard.letter .fpic { font-size: 110px; font-weight: 700; color: var(--purple); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.fen { font-size: 30px; line-height: 1.15; }
.fplay { position: absolute; right: -14px; top: -14px; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; background: var(--sun); border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
.fcard.ask small { font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.fmean { margin: 6px 0 0; font-size: 30px; font-weight: 600; line-height: 1.35; }
.qplay { width: 110px; height: 110px; border-radius: 50%; font-size: 52px; background: var(--sun); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); margin-top: 8px; animation: pulse2 1.4s infinite; }
.qplay:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
@keyframes pulse2 { 50% { transform: scale(1.06); } }
.tipcard { position: absolute; left: 50%; top: calc(50% + 14px); transform: translate(-50%, -50%); width: min(330px, 86%); z-index: 2; background: #fff3c4; border: 4px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 8px 0 var(--ink); animation: flipin .45s cubic-bezier(.3, 1.4, .5, 1); }
.tipcard b { font-size: 14px; letter-spacing: .1em; color: var(--sun-d); }
.tipico { font-size: 30px; margin-right: 6px; }
.tipcard p { margin: 6px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.meaning { background: #fff; border: var(--o); border-radius: 18px; padding: 10px 14px; box-shadow: 0 4px 0 var(--ink); }
.meaning small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.meaning p { margin: 2px 0 0; font-size: 26px; font-weight: 600; line-height: 1.45; }
.lrow { display: flex; gap: 8px; }
.lrow .go { flex: 1; }
.lrow .go.alt { flex: 0 0 auto; padding: 13px 16px; }
.art.learn.ready { display: grid; place-items: center; }
.readyword { position: relative; z-index: 2; font-size: 64px; font-weight: 700; color: var(--sun); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink); animation: cardin .6s cubic-bezier(.3, 1.6, .5, 1); transform: rotate(-4deg); }
.panel.book { max-height: 82%; overflow-y: auto; padding-top: 34px; }
.panel.book .words { width: 100%; }

/* ========== DAY 2 ========== */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pcell { background: #fff; border: var(--o); border-radius: 16px; padding: 8px; box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; }
.pcell:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.pcell.right { background: var(--good); }
.pcell.wrong { background: var(--bad-l); opacity: .6; transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.clk { display: flex; align-items: center; gap: 8px; }
.clk b { font-size: 20px; font-family: ui-monospace, Menlo, monospace; }
.art.clocks { background: radial-gradient(circle at 50% 40%, #ffe9b3, #ffb36b); display: grid; place-items: center; }
.clockhead { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; background: #fff; border: var(--o); border-radius: 14px; padding: 6px 12px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.clockask { position: relative; z-index: 2; }

.art.townmap { background: #a8e6a1; background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2.5px); background-size: 22px 22px; }
.road { position: absolute; background: #6b6f85; border: 3px solid var(--ink); }
.road.v { left: calc(40% - 20px); width: 40px; top: calc(40% - 20px); bottom: -6px; border-bottom: 0; background-image: linear-gradient(transparent 0 40%, #fff 40% 60%, transparent 60%); background-size: 100% 34px; background-position: center; background-repeat: repeat-y; }
.road.h { top: calc(40% - 20px); height: 40px; left: calc(40% - 20px); right: -6px; border-right: 0; }
.road.h::after { content: ""; position: absolute; left: 30px; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #fff 0 16px, transparent 16px 32px); }
.bld { position: absolute; transform: translateX(-50%); width: 66px; height: 70px; border: var(--o); border-radius: 10px 10px 4px 4px; background: var(--c); box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; z-index: 2; padding: 0; }
.bld small { font-size: 11px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 4px; margin-top: 2px; white-space: nowrap; }
.bld.q { font-size: 34px; color: var(--ink); cursor: pointer; }
.bld.found { background: var(--sun); animation: yay .5s; }
.bld.bank { animation: pulse2 1.6s infinite; }
.walker { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; overflow: hidden; z-index: 4; box-shadow: 0 4px 0 var(--ink); transition: left .8s ease-in-out, top .8s ease-in-out; }
.walker .av { width: 100%; height: 100%; display: block; }
.choices.dirs { flex-direction: row; }
.choices.dirs .choice { flex: 1; justify-content: center; text-align: center; font-size: 15px; padding: 12px 6px; }

.art.cafe { background: linear-gradient(#ffe9c7 0 62%, #8d5524 62% 65%, #c98b4f 65%); }
.art.cafe.busy::before { content: "🧍 🧍‍♀️ 🧍 🧍‍♂️"; position: absolute; right: 8px; bottom: 34%; font-size: 26px; letter-spacing: -4px; opacity: .55; }
.menuboard { position: absolute; right: 12px; top: 12px; width: 52%; background: #2f3e46; color: #fff; border: 4px solid #8d5524; border-radius: 12px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 5px 0 var(--ink); z-index: 1; }
.menuboard b { display: block; text-align: center; color: var(--sun); letter-spacing: .2em; font-size: 14px; }
.menuboard div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.cafecounter { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; background: #c98b4f; border-top: var(--o); z-index: 4; box-shadow: inset 0 10px 0 #e0a96d; }
.espresso { position: absolute; left: 44%; bottom: 33%; font-size: 40px; z-index: 3; }
.breakfast { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); font-size: 54px; z-index: 5; animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.tray { position: absolute; right: 10px; bottom: 36%; width: 54%; min-height: 60px; background: #b0bec5; border: var(--o); border-radius: 50px; z-index: 5; padding: 6px 12px; box-shadow: 0 5px 0 var(--ink); display: flex; align-items: center; gap: 6px; }
.tray small { font-weight: 700; font-size: 10px; letter-spacing: .1em; color: #455a64; writing-mode: vertical-rl; transform: rotate(180deg); }
.trayitems { display: flex; flex-wrap: wrap; gap: 2px; }
.titem { font-size: 28px; padding: 0 2px; animation: pop .25s; }
.patience { position: absolute; left: 10px; top: 12px; width: 38%; height: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 9px; overflow: hidden; z-index: 5; }
.patience::before { content: "😊"; position: absolute; left: -2px; top: -6px; font-size: 18px; z-index: 1; }
.patience i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--bad), var(--sun), var(--good)); transition: width .2s linear; margin-left: 0; }

.art.office { background: linear-gradient(#e3f2fd 0 70%, #b08968 70%); }
.form { position: absolute; right: 12%; top: 14%; width: 38%; height: 52%; background: #fff; border: var(--o); border-radius: 8px; padding: 10px; transform: rotate(3deg); box-shadow: 0 5px 0 var(--ink); }
.form b { font-size: 13px; letter-spacing: .1em; }
.form i { display: block; height: 10px; margin-top: 14px; border-bottom: 2.5px dashed #b0bec5; }
.officeplant { position: absolute; right: 4%; bottom: 26%; font-size: 40px; }
.daysgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.day { background: #fff; border: var(--o); border-radius: 14px; padding: 6px 2px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; }
.day b { font-size: 17px; }
.day small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.day[aria-pressed="true"] { background: var(--sun); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.schedule { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 6; background: var(--sun); border: 4px solid var(--ink); border-radius: 18px; padding: 12px 18px; text-align: center; box-shadow: 0 7px 0 var(--ink); display: flex; flex-direction: column; animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.schedule b { letter-spacing: .1em; font-size: 13px; }
.schedule span { font-size: 22px; font-weight: 700; }

/* ---------- settings, hints, practice arcade ---------- */
.setrow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 18px; }
.toggle { min-width: 130px; padding: 9px 14px; border: var(--o); border-radius: 14px; background: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 4px 0 var(--ink); }
.toggle[aria-pressed="true"] { background: var(--sun); }
.choice.hint, .tile.hint, .pcell.hint { border-color: var(--good); background: var(--good-l); animation: hintglow 1s ease-in-out infinite; }
@keyframes hintglow { 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 6px rgba(60, 207, 122, .45); transform: scale(1.03); } }
.go.practice { background: var(--teal); font-size: 17px; }
.art.arcade { background: radial-gradient(circle at 50% 40%, #2ec4b6, #126e66 75%); display: grid; place-items: center; }
.art.arcade::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .2) 1.5px, transparent 2px) 0 0 / 24px 24px; }
.arcadetitle { position: relative; z-index: 1; text-align: center; font-size: 44px; font-weight: 700; color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); line-height: 1.05; }
.arcadetitle small { display: block; font-size: 16px; color: #fff; -webkit-text-stroke: 0; text-shadow: none; margin-top: 6px; }
.arcadeicons { position: absolute; bottom: 18%; left: 0; right: 0; text-align: center; font-size: 34px; letter-spacing: 10px; animation: pulse2 2s infinite; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { position: relative; background: #fff; border: var(--o); border-radius: 18px; padding: 12px 10px; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.mode:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.mico { font-size: 34px; }
.mtxt b { display: block; font-size: 17px; }
.mtxt small { font-size: 12px; color: var(--muted); }
.mbest { position: absolute; top: -10px; right: -6px; background: var(--sun); border: 2px solid var(--ink); border-radius: 9px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.ptimer { position: absolute; left: 12px; right: 12px; bottom: 34px; height: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 9px; overflow: hidden; z-index: 3; }
.ptimer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--bad), var(--sun)); transition: width .2s linear; }
.pool.letters { justify-content: center; }
.pool.letters .tile { min-width: 46px; font-size: 24px; text-transform: lowercase; }

/* ========== DAY 3 ========== */
.routine { position: absolute; left: 10px; right: 10px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 6; }
.routine span { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); animation: pop .3s; }
.tool:disabled { opacity: .45; }
.art.backroom { background: linear-gradient(#fdf0d5 0 66%, #b08968 66%); }
.spot { position: absolute; border: 3px dashed rgba(43, 45, 66, .35); border-radius: 12px; background: rgba(255, 255, 255, .25); display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 2px; z-index: 3; }
.spot span { font-size: 11px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 5px; margin-bottom: 2px; }
.spot.ready { border-color: var(--blue); background: rgba(58, 134, 255, .12); animation: pulse2 1.2s infinite; }
.spot.hint { border-color: var(--good); background: rgba(60, 207, 122, .25); }
.placed-item { font-style: normal; font-size: 26px; animation: pop .3s; align-self: center; }
.shelfbar { position: absolute; height: 10px; background: #8d5524; border: 2.5px solid var(--ink); border-radius: 4px; z-index: 2; }
.fridge2 { background: #e9f4f8 !important; border: 3px solid var(--ink) !important; border-radius: 12px; }
.machine { position: absolute; left: 18%; top: 31%; width: 70px; height: 60px; background: #5b5f97; border: 3px solid var(--ink); border-radius: 10px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; z-index: 2; }
.machine small { font-size: 8px; font-weight: 700; text-align: center; line-height: 1; }
.counterbox { position: absolute; left: 4%; top: 62%; width: 60%; height: 8px; background: #6b4429; border: 2.5px solid var(--ink); z-index: 2; }
.bigcup { position: absolute; right: 18%; bottom: 33%; width: 110px; height: 120px; background: #fff; border: 4px solid var(--ink); border-top-width: 6px; border-radius: 6px 6px 40px 40px; z-index: 5; }
.cupin { position: absolute; inset: 8px; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 2px; font-size: 26px; }
.cupin span { animation: pop .3s; }
.handle2 { position: absolute; right: -30px; top: 24px; width: 30px; height: 44px; border: 4px solid var(--ink); border-left: 0; border-radius: 0 24px 24px 0; }
.ringer { position: absolute; right: 18%; bottom: 36%; font-size: 54px; z-index: 5; animation: ring .4s infinite; }
.slip { position: absolute; right: 12px; top: 12px; width: 52%; background: #fffde7; border: var(--o); border-radius: 8px; padding: 8px 10px; font-weight: 600; font-size: 14px; transform: rotate(2deg); box-shadow: 0 5px 0 var(--ink); z-index: 5; line-height: 1.7; }
.slip b { display: block; font-size: 12px; letter-spacing: .08em; }
.slip i { font-style: normal; font-family: "Caveat", cursive; font-size: 21px; color: #9aa3b5; }
.slip i.fill { color: var(--blue); animation: pop .3s; }
.phonepic { position: absolute; left: 14px; top: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 5; font-weight: 700; animation: wiggle .4s 6; }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.phonepic .av { border-radius: 50%; border: 3px solid var(--ink); }
.qlabel { margin: 0; font-weight: 600; font-size: 16px; }
.mood { position: absolute; right: 12px; top: 12px; width: 52%; background: #fff; border: var(--o); border-radius: 16px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 0 var(--ink); z-index: 5; }
.mface { font-size: 34px; }
.mbar { flex: 1; height: 14px; border: 2.5px solid var(--ink); border-radius: 9px; overflow: hidden; background: #eee; }
.mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--bad), var(--sun), var(--good)); transition: width .5s; }
.fivestars { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%) rotate(-4deg); font-size: 44px; color: var(--sun); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; z-index: 6; animation: cardin .6s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; }

/* ========== WEBSITE: home, topics, desktop layout ========== */
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; flex: none; }
.blogo { width: 34px; height: 34px; border-radius: 10px; background: var(--sun); color: var(--ink); border: 2.5px solid #1a1b2b; display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: 0 3px 0 #1a1b2b; }
.bname { display: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.bname b { color: var(--sun); font-weight: 700; }
#home { display: none; flex: 1; overflow-y: auto; background: var(--paper); scroll-behavior: smooth; }
body.at-home #home { display: block; }
body.at-home #stage, body.at-home #steps { display: none; }
#home > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.hero { display: grid; gap: 18px; padding: 22px 16px 10px; }
.kicker { margin: 0; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.hero h1 { margin: 6px 0 8px; font-size: 30px; line-height: 1.12; letter-spacing: -.01em; }
.hero p { margin: 0; color: #4a4d63; line-height: 1.5; font-size: 16px; }
.herobtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.herobtns .go { text-decoration: none; text-align: center; flex: 1 1 200px; }
.herocard { background: linear-gradient(160deg, #8f7bff, #4b37c9); color: #fff; border: var(--o); border-radius: 24px; padding: 16px; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.herocard b { font-size: 22px; }
.herocard small { opacity: .9; }
.hcav .av { display: block; }
.hcprog { width: 80%; height: 12px; background: rgba(255, 255, 255, .25); border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); margin-top: 6px; }
.hcprog i { display: block; height: 100%; background: var(--sun); }
.hsec { padding: 18px 16px 8px; }
.hsec h2 { margin: 0; font-size: 22px; }
.hsechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hsub { margin: 4px 0 12px; color: var(--muted); }
.linkbtn { color: var(--blue); font-weight: 700; font-size: 15px; }
.drow { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.dcard { background: #fff; border: var(--o); border-radius: 18px; padding: 12px; box-shadow: 0 5px 0 var(--ink); text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 118px; }
.dcard:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.dcard.next { background: var(--sun); }
.dcard.locked { background: #ebe6dc; color: #8a8597; box-shadow: 0 3px 0 #b9b3a6; border-color: #b9b3a6; }
.dnum { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--purple); }
.dcard.locked .dnum { color: #8a8597; }
.dcard b { font-size: 16px; line-height: 1.2; }
.dcard small { margin-top: auto; font-weight: 600; font-size: 13px; }
.tgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tcard { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: var(--o); border-radius: 18px; padding: 12px; box-shadow: 0 5px 0 var(--ink); color: inherit; text-decoration: none; transition: transform .12s; }
.tcard:hover { transform: translateY(-3px); }
.tcard:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.tico { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--tc, #eee); border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 32px; }
.tico.big { width: 84px; height: 84px; font-size: 48px; border-radius: 22px; }
.tbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tbody b { font-size: 17px; }
.tbody small { color: var(--muted); line-height: 1.35; }
.tmeta { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.lvl { background: var(--good); color: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0 7px; font-weight: 700; }
.lvl.a1 { background: var(--blue); }
.tbest { color: var(--sun-d); }
.crumbs { padding: 14px 16px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--blue); font-weight: 600; text-decoration: none; }
.thead { display: flex; gap: 16px; align-items: center; padding: 14px 16px; }
.thead h1 { margin: 0; font-size: 28px; }
.thead p { margin: 4px 0; color: #4a4d63; }
.modes.wide { grid-template-columns: 1fr 1fr; }
.hsec .tip { margin-bottom: 10px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wcard { position: relative; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 8px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wcard:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.wpic { font-size: 34px; }
.wcard b { font-size: 16px; }
.wcard small { color: var(--muted); font-size: 13px; }
.wcard i { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 13px; opacity: .6; }
.hfoot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px 40px; color: var(--muted); }

@media (min-width: 640px) {
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .modes.wide { grid-template-columns: repeat(4, 1fr); }
}
/* ----- desktop/tablet: a real website, game scene left + controls right ----- */
@media (min-width: 760px) {
  body { background: #e9e3d6; }
  #app { max-width: 1440px; box-shadow: none; }
  #hud { padding: 10px 24px; gap: 10px; }
  .bname { display: inline; }
  .xpwrap { max-width: 260px; }
  #steps { padding: 8px 24px; justify-content: center; }
  #steps .step { max-width: 140px; }
  #stage { flex-direction: row; }
  .art { min-height: 0; }
  #sheet { flex: 0 0 min(460px, 40%); max-height: none; margin-top: 0; border-radius: 0; border-top: 0; border-left: var(--o); padding: 22px 22px 28px; box-shadow: none; }
  #sheet > .go:last-child, #sheet > .lrow:last-child { margin-top: 4px; }
  .modal .panel { max-width: 480px; }
  .fcard { width: min(380px, 70%); }
  .fpic { font-size: 110px; }
  .fen { font-size: 38px; }
  .phone { width: min(330px, 60%); }
  .hero { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 40px 32px 16px; gap: 32px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; }
  .herobtns .go { flex: 0 0 auto; padding: 14px 26px; }
  .hsec { padding: 24px 32px 8px; }
  .hsec h2 { font-size: 26px; }
  .drow { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; }
  .tgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .crumbs, .thead { padding-left: 32px; padding-right: 32px; }
  .thead h1 { font-size: 36px; }
}
@media (min-width: 1200px) { .tgrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) {
  .actor:not(.hero) .av { width: 220px; height: 220px; }
  .walker, .marker { transform: translate(-50%, -50%) scale(1.25); }
}
.mode:disabled { opacity: .45; box-shadow: 0 2px 0 var(--ink); }

/* ========== DAY 5 ========== */
.art.posterwall { background: #e9dcc9 repeating-linear-gradient(90deg, transparent 0 60px, rgba(0, 0, 0, .04) 60px 62px); display: grid; place-items: center; }
.lostposter { width: min(300px, 78%); background: #fffdf5; border: var(--o); border-radius: 6px; padding: 12px; text-align: center; box-shadow: 0 7px 0 var(--ink); transform: rotate(-2deg); display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.lostposter::before { content: ""; position: absolute; top: -10px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); border: 2.5px solid var(--ink); transform: translateX(-50%); }
.ptitle { font-size: 30px; color: var(--bad); letter-spacing: .06em; -webkit-text-stroke: 1px var(--ink); }
.pname { font-weight: 700; font-size: 20px; letter-spacing: .12em; }
.pheadline { font-family: "Caveat", cursive; font-size: 24px; color: #9aa3b5; min-height: 30px; }
.pheadline.fill { color: var(--blue); animation: pop .3s; }
.lostposter small { color: var(--muted); font-size: 12px; }
.catbox.bump { animation: bump .5s; }
.clues { position: absolute; right: 12px; top: 12px; width: 52%; background: #fffde7; border: var(--o); border-radius: 10px; padding: 8px 10px; box-shadow: 0 5px 0 var(--ink); z-index: 5; transform: rotate(1.5deg); }
.clues b { font-size: 13px; letter-spacing: .08em; }
.clues ol { margin: 4px 0 0; padding-left: 20px; font-family: "Caveat", cursive; font-size: 20px; color: var(--blue); }
.clues li { animation: pop .3s; }
.art.park { background: linear-gradient(#a8dcff 0 45%, #8fd17f 45%); }
.libbuild { position: absolute; right: 6%; top: 18%; width: 34%; height: 40%; background: #d9c6a5; border: var(--o); border-radius: 4px; display: grid; place-items: center; z-index: 1; }
.libbuild b { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 6px; font-size: 13px; letter-spacing: .1em; }
.libroof { position: absolute; left: -8%; right: -8%; bottom: 100%; height: 40%; background: #b5452b; border: var(--o); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pspot { position: absolute; z-index: 3; line-height: 1; padding: 4px; border-radius: 14px; transition: transform .15s; }
.pspot:active { transform: scale(.92); }
.pspot.hint { outline: 4px solid var(--good); outline-offset: 2px; background: rgba(60, 207, 122, .25); }
.found-pop { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-style: normal; font-size: 34px; animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.roofcat { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-style: normal; font-size: 44px; animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.meow { position: absolute; right: 18%; top: 4%; z-index: 6; background: #fff; border: var(--o); border-radius: 14px; padding: 2px 10px; font-weight: 700; font-size: 18px; animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.art.library { background: linear-gradient(#a8dcff 0 70%, #6b6f85 70%); }
.libbuild.big { right: 14%; top: 26%; width: 44%; height: 44%; }
.roofcat2 { position: absolute; top: -48%; left: 50%; transform: translateX(-50%); font-size: 40px; z-index: 2; animation: wiggle .6s infinite; }
.phonecall { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; z-index: 6; animation: pulse2 1s infinite; }
.firetruck { position: absolute; bottom: 4%; left: 110%; font-size: 72px; z-index: 4; transition: left 1.2s ease-out; transform: scaleX(-1); }
.library.truck .firetruck { left: 30%; }
.ladder { position: absolute; left: 47%; bottom: 14%; width: 30px; height: 0; background: repeating-linear-gradient(transparent 0 12px, #b08968 12px 16px), linear-gradient(90deg, #b08968 0 5px, transparent 5px 25px, #b08968 25px); transform: rotate(14deg); transform-origin: bottom; transition: height 1s; z-index: 3; }
.library.climb .ladder { height: 58%; }
.ada { position: absolute; left: 44%; bottom: 10%; z-index: 5; opacity: 0; transition: bottom 1.4s ease-in-out, left 1.4s ease-in-out, opacity .4s; }
.ada .adacat { position: absolute; right: -26px; top: 26px; font-size: 38px; opacity: 0; transition: opacity .3s; }
.library.climb .ada { opacity: 1; left: 47%; bottom: 34%; }
.library.hold .ada { left: 50%; bottom: 58%; }
.library.hold .ada .adacat { opacity: 1; }
.library.hold .roofcat2 { display: none; }
.library.clap .ada { bottom: 12%; left: 40%; transition-duration: 1.2s; }
.claps { position: absolute; left: 6%; top: 10%; font-size: 40px; opacity: 0; z-index: 6; }
.library.clap .claps { opacity: 1; animation: pulse2 .6s infinite; }
.art.grantroom { background: linear-gradient(#e8e1f0 0 68%, #a47551 68%); }
.sofa2 { position: absolute; right: 8%; bottom: 26%; width: 50%; height: 22%; background: #6d597a; border: var(--o); border-radius: 20px 20px 8px 8px; box-shadow: inset 0 -14px 0 #574a63; }
.biscuit { position: absolute; right: 18%; bottom: 40%; z-index: 3; animation: idle 2.4s ease-in-out infinite; }
.catbowl { position: absolute; right: 12%; bottom: 8%; min-width: 80px; height: 34px; background: #3a86ff; border: var(--o); border-radius: 0 0 40px 40px; display: flex; justify-content: center; align-items: center; gap: 2px; font-size: 22px; padding: 0 8px; z-index: 3; }
.catbowl span { animation: pop .3s; }

/* ========== DAY 6 ========== */
.art.market { background: linear-gradient(#bde0fe 0 40%, #f6e7d3 40%); }
.stall { position: absolute; top: 14%; width: 28%; height: 30%; background: #fffaf0; border: var(--o); border-top: 0; z-index: 1; }
.stall i { position: absolute; left: -6%; right: -6%; top: -34%; height: 40%; border: var(--o); border-radius: 8px 8px 0 0; background: repeating-linear-gradient(90deg, var(--coral) 0 18px, #fff 18px 36px); }
.stall.s1 { left: 4%; } .stall.s2 { left: 36%; } .stall.s3 { left: 68%; }
.stall.s2 i { background: repeating-linear-gradient(90deg, var(--teal) 0 18px, #fff 18px 36px); }
.stall.s3 i { background: repeating-linear-gradient(90deg, var(--sun) 0 18px, #fff 18px 36px); }
.fruitstall .stall, .scarfstall .stall { display: none; }
.counter3 { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #c98b4f; border-top: var(--o); }
.fruit { position: absolute; z-index: 3; font-size: 58px; line-height: 1; transition: transform .25s; letter-spacing: -14px; }
.fruit.far { font-size: 30px; letter-spacing: -6px; opacity: .85; }
.fruit.focus { transform: scale(1.18); filter: drop-shadow(0 0 10px #ffd23f) drop-shadow(0 0 4px #ffd23f); }
.fruit.focus::after { content: "👆"; position: absolute; left: 50%; top: 100%; font-size: 30px; transform: translateX(-50%); animation: bob2 1s infinite; letter-spacing: 0; }
.fruit.far.focus::after { content: "👉"; left: -40px; top: 0; transform: none; font-size: 26px; }
.farline, .nearline { position: absolute; right: 8px; font-size: 12px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; z-index: 4; }
.farline { top: 38%; } .nearline { bottom: 32%; }
.scarfx { position: absolute; bottom: 20%; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 3; }
.scarfx.red { left: 36%; } .scarfx.blue { left: 66%; }
.scarfx .sc { font-size: 90px; line-height: 1; }
.scarfx.blue .sc { font-size: 64px; filter: hue-rotate(200deg) saturate(1.4); }
.scarfx .tag { background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 8px; font-size: 18px; transform: rotate(-4deg); }
.scarfx .tag.bump { animation: bump .5s; }
.scarfx .tag.sold { background: var(--good); color: #fff; }
.scarfx small { font-weight: 700; color: var(--muted); }
.art.fitting { background: linear-gradient(#f6e7d3 0 80%, #c9a27e 80%); }
.curtain { position: absolute; left: 8%; right: 8%; top: 4%; bottom: 20%; background: repeating-linear-gradient(90deg, #9d4edd 0 22px, #7b2cbf 22px 44px); border: var(--o); border-radius: 12px 12px 0 0; opacity: .35; }
.fitframe { position: absolute; left: 58%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border: 4px dashed var(--ink); border-radius: 16px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; z-index: 3; }
.fitframe small { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px; }
.jacket { display: grid; place-items: center; animation: pop .3s; }
.jacket span { line-height: 1; display: block; }
.jacket.small span { font-size: 70px; } .jacket.big span { font-size: 230px; } .jacket.right span { font-size: 138px; }
.jsize { position: absolute; left: 58%; bottom: 8%; transform: translateX(-50%); background: var(--sun); border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 12px; font-size: 18px; z-index: 4; }
.jsize:empty { display: none; }
.art.foodcourt { background: linear-gradient(#ffe5d9 0 62%, #d8c3a5 62%); }
.fctable { position: absolute; bottom: 8%; width: 26%; height: 14%; background: #fff; border: var(--o); border-radius: 50%; display: grid; place-items: center; font-size: 34px; z-index: 5; }
.fctable.t1 { left: 40%; } .fctable.t2 { left: 6%; opacity: .7; }
.fcsign { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; border: var(--o); border-radius: 12px; padding: 2px 14px; font-weight: 700; letter-spacing: .1em; box-shadow: 0 4px 0 var(--ink); }

/* ========== DAY 7 ========== */
.art.videocall { background: linear-gradient(135deg, #2b2d42, #5b5f97); }
.vcframe { position: absolute; inset: 16px 16px 30%; border: 4px solid #000; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #e3d7ff, #b8a6ff); overflow: hidden; }
.vcsis { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.vcme { position: absolute; right: 10px; top: 10px; border: 3px solid #fff; border-radius: 14px; overflow: hidden; background: #fff; }
.vcme .av { display: block; }
.vclive { position: absolute; left: 12px; top: 10px; color: #fff; background: var(--bad); border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: 13px; }
.album { position: absolute; left: 16px; right: 16px; bottom: 6%; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; z-index: 3; }
.photo { width: 58px; height: 66px; background: #fff; border: 3px solid var(--ink); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-4deg); animation: pop .3s; box-shadow: 0 4px 0 var(--ink); }
.photo:nth-child(even) { transform: rotate(4deg); }
.photo span { font-size: 28px; } .photo small { font-weight: 700; font-size: 11px; }
.photo.done { background: var(--good-l); border-color: var(--good-d); }
.art.cornershop .stall { display: none; }
.shelfrow { position: absolute; left: 34%; right: 4%; font-size: 30px; letter-spacing: 6px; border-bottom: 8px solid #8d5524; text-align: center; }
.shelfrow.r1 { top: 14%; } .shelfrow.r2 { top: 36%; }
.basket2 { position: absolute; right: 8%; bottom: 8%; min-width: 120px; min-height: 50px; background: #e9c46a; border: var(--o); border-radius: 8px 8px 30px 30px; display: flex; gap: 4px; align-items: center; justify-content: center; padding: 4px 10px; font-size: 22px; z-index: 5; flex-wrap: wrap; max-width: 46%; }
.basket2 span { animation: pop .3s; }
.art.leoroom { background: linear-gradient(#fde2e2 0 66%, #b08968 66%); }
.tvbig { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); font-size: 90px; }
.sofa3 { position: absolute; left: 22%; right: 22%; bottom: 18%; height: 18%; background: #3ccf7a; border: var(--o); border-radius: 20px 20px 8px 8px; box-shadow: inset 0 -12px 0 #23a35a; }
.sofa3.dark { background: #44475f; box-shadow: inset 0 -12px 0 #2b2d42; }
.snacktable { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); background: #fff; border: var(--o); border-radius: 50%; padding: 4px 18px; font-size: 26px; z-index: 4; }
.prefcard { position: absolute; right: 12px; top: 12px; background: #fffde7; border: var(--o); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 15px; line-height: 1.6; box-shadow: 0 5px 0 var(--ink); z-index: 6; transform: rotate(2deg); }
.prefcard b { font-size: 11px; letter-spacing: .1em; display: block; }
.posters { position: absolute; left: 10px; right: 10px; top: 12px; display: flex; gap: 8px; justify-content: center; z-index: 4; }
.mposter { flex: 1; max-width: 170px; background: #2b2d42; color: #fff; border: 3px solid #000; border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 5px 0 #000; }
.mposter .mpic { font-size: 34px; }
.mposter b { font-size: 14px; color: var(--sun); }
.mposter small { font-size: 11px; opacity: .85; }
.mposter .mface { font-size: 14px; }
.mposter.chosen { outline: 4px solid var(--good); transform: scale(1.06); }
.mposter.hint { outline: 4px solid var(--good); animation: hintglow 1s infinite; }
.art.cinema { background: #1a1b2b; }
.screen2 { position: absolute; left: 8%; right: 8%; top: 6%; height: 36%; background: linear-gradient(#5b5f97, #2b2d42); border: 4px solid #000; border-radius: 10px; display: grid; place-items: center; box-shadow: 0 0 40px rgba(123, 97, 255, .5); }
.screen2 b { color: var(--sun); font-size: 26px; letter-spacing: .1em; }
.screen2.end { background: linear-gradient(#ff6b6b, #7b61ff); }
.storystrip { position: absolute; left: 8%; right: 8%; top: 46%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 3; }
.sslot { aspect-ratio: 1; border: 3px dashed #8a8fb8; border-radius: 10px; display: grid; place-items: center; color: #8a8fb8; font-weight: 700; font-size: 20px; }
.sslot.fill { border-style: solid; border-color: var(--sun); background: #fff; font-size: 22px; animation: pop .3s; }
.panelpool { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel { background: #fff; border: var(--o); border-radius: 14px; padding: 8px 4px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; }
.panel span { font-size: 30px; } .panel small { font-weight: 600; color: var(--muted); }
.panel.used { visibility: hidden; }
.panel.hint { border-color: var(--good); animation: hintglow 1s infinite; }
.art.certbg { background: radial-gradient(circle at 50% 40%, #ffe9b3, #ffb36b); display: grid; place-items: center; }
.cert { width: min(360px, 86%); background: #fffdf5; border: 6px double var(--ink); border-radius: 12px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 8px 0 var(--ink); animation: cardin .6s cubic-bezier(.3, 1.6, .5, 1); }
.cert small { letter-spacing: .3em; font-weight: 700; color: var(--sun-d); }
.cert b { font-size: 26px; }
.cert strong { font-size: 22px; font-family: "Caveat", cursive; color: var(--blue); }
.cert p { margin: 0; color: #4a4d63; }
.certav .av { border: 3px solid var(--ink); border-radius: 50%; }
.certstars { color: var(--sun-d); font-weight: 700; }
.cert i { font-size: 12px; color: var(--muted); font-style: normal; }

/* ========== WEEK 2: scripted scene backgrounds + week tabs ========== */
.weektabs { position: absolute; right: 12px; top: 10px; display: flex; gap: 6px; z-index: 6; }
.weektabs button { background: #fff; border: var(--o); border-radius: 12px; padding: 4px 10px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.weektabs button[aria-pressed="true"] { background: var(--sun); }
.weekrow { margin-top: 6px; }
.weeklabel { display: inline-block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); margin: 6px 0 4px; }
.prop { position: absolute; transform: translate(-50%, -50%); line-height: 1; z-index: 2; filter: drop-shadow(0 4px 0 rgba(43, 45, 66, .25)); }
.prop.popin, .prop.pop { animation: cardin .5s cubic-bezier(.3, 1.6, .5, 1); }
.prop.bob { animation: bob2 1.6s ease-in-out infinite; }
.prop.card { background: #fffdf5; border: var(--o); border-radius: 10px; padding: 10px 12px; font-family: var(--font); font-size: 15px !important; line-height: 1.4; text-align: left; max-width: 62%; box-shadow: 0 5px 0 var(--ink); filter: none; white-space: pre-line; }
.psign { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; border: var(--o); border-radius: 12px; padding: 2px 14px; font-weight: 700; letter-spacing: .1em; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; z-index: 3; }
.art.p-cafe { background: linear-gradient(#ffe9c7 0 62%, #8d5524 62% 65%, #c98b4f 65%); }
.art.p-party { background: linear-gradient(#ffe0f0 0 62%, #c98b4f 62%); }
.art.p-bedroom { background: linear-gradient(#ffe2c4 0 72%, #d9b38c 72%); }
.art.p-clinic { background: linear-gradient(#e0f7fa 0 66%, #b2dfdb 66%); }
.art.p-pharmacy { background: linear-gradient(#e8f5e9 0 62%, #a5d6a7 62%); }
.art.p-bank { background: linear-gradient(#e3f2fd 0 64%, #90a4ae 64%); }
.art.p-home { background: linear-gradient(#f6e7d3 0 68%, #c9a27e 68%); }
.art.p-station { background: linear-gradient(#cfd8dc 0 58%, #78909c 58% 64%, #546e7a 64%); }
.art.p-train { background: linear-gradient(#90caf9 0 50%, #455a64 50%); }
.art.p-museum { background: linear-gradient(#f3e5ab 0 66%, #bcaaa4 66%); }
.art.p-city { background: linear-gradient(#bbdefb 0 55%, #9e9e9e 55% 75%, #757575 75%); }
.art.p-office { background: linear-gradient(#e3f2fd 0 70%, #b08968 70%); }
.art.p-tv { background: linear-gradient(#263238 0 100%); }
.art.p-beach { background: linear-gradient(#81d4fa 0 45%, #4fc3f7 45% 62%, #ffe082 62%); }
.art.p-bus { background: linear-gradient(#a8dcff 0 60%, #546e7a 60%); }
.art.p-restaurant { background: linear-gradient(#fff3e0 0 64%, #a1887f 64%); }
.art.p-street { background: linear-gradient(#8fd3ff 0 55%, #7bd389 55% 70%, #6b6f85 70% 88%, #7bd389 88%); }
.art.p-cold { background: linear-gradient(#e1f5fe 0 68%, #b0bec5 68%); }
.art.p-airport { background: linear-gradient(#b3e5fc 0 56%, #cfd8dc 56% 64%, #90a4ae 64%); }
.art.p-post { background: linear-gradient(#ffebee 0 64%, #c62828 64% 67%, #bcaaa4 67%); }
.art.p-salon { background: linear-gradient(#fce4ec 0 66%, #f5f5f5 66%); }
.art.p-fair { background: linear-gradient(#ffd6a5 0 50%, #a8e6a3 50%); }
.art.p-kitchen { background: linear-gradient(#fffde7 0 60%, #cfd8dc 60% 63%, #eceff1 63%); }
.art.p-library { background: linear-gradient(#efebe9 0 66%, #8d6e63 66%); }
.art.p-classroom { background: linear-gradient(#e8f5e9 0 18%, #2e7d32 18% 44%, #e8f5e9 44% 68%, #c8a27a 68%); }
.art.p-dark { background: radial-gradient(circle at 70% 40%, #4a3b1f 0 18%, #1b1b2f 45%); }
.art.p-stadium { background: linear-gradient(#90caf9 0 30%, #9e9e9e 30% 48%, #43a047 48%); }
.art.p-van { background: linear-gradient(#bbdefb 0 58%, #9e9e9e 58% 78%, #7bd389 78%); }
.art.p-park { background: linear-gradient(#a8dcff 0 45%, #8fd17f 45%); }
