/* Cookies and Caring - how the menus and screens look */
:root {
  --cream: #fff7ef;
  --paper: #fffdf9;
  --pink: #ff8fab;
  --pink-soft: #ffd3df;
  --berry: #b8456c;
  --cocoa: #6e4029;
  --cocoa-soft: #9b6b4f;
  --mint: #7fd6a8;
  --mint-soft: #d7f5e6;
  --gold: #ffcf3f;
  --sky: #7fc8ff;
  --red: #e5484d;
  --purple: #7a3fa0;
  --shadow: 0 8px 0 rgba(110, 64, 41, 0.18), 0 14px 30px rgba(110, 64, 41, 0.22);
  --font: 'Fredoka', 'Trebuchet MS', 'Comic Sans MS', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #ffe8d6; font-family: var(--font); color: var(--cocoa); -webkit-user-select: none; user-select: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

/* ---------- world tags (bubbles over heads, oven timers, floating coins) ---------- */
#tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); will-change: transform; }
.bubble { background: #fff; border: 3px solid var(--pink); border-radius: 18px; padding: 5px 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 4px 0 rgba(0,0,0,0.12); position: relative; }
.bubble::after { content: ''; position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--pink); border-bottom: 0; }
.bubble .order-row { display: flex; align-items: center; gap: 2px; }
.bubble img { width: 46px; height: 46px; }
.bubble .top-ic { width: 30px; height: 30px; margin-left: -4px; }
.bubble .plus { font-weight: 700; font-size: 15px; color: var(--berry); }
.bubble .pbar { width: 56px; height: 7px; background: #f1e3dc; border-radius: 4px; overflow: hidden; }
.bubble .pbar i { display: block; height: 100%; background: #5fd38a; border-radius: 4px; transition: width 0.3s, background 0.3s; }
.bubble .who { font-size: 11px; font-weight: 600; color: var(--cocoa-soft); line-height: 1; }
.bubble.queue { transform: scale(0.72); opacity: 0.85; transform-origin: 50% 100%; }
.bubble.critic { border-color: var(--purple); background: #f8efff; }
.bubble.critic::after { border-top-color: var(--purple); }
.bubble.critic .who { color: var(--purple); }
.bubble .hello { font-size: 11px; background: var(--gold); color: var(--cocoa); border-radius: 8px; padding: 1px 6px; font-weight: 700; }
.speech { background: #fff; color: var(--cocoa); border-radius: 14px; padding: 6px 10px; font-size: 14px; font-weight: 500; max-width: 220px; text-align: center; box-shadow: 0 3px 0 rgba(0,0,0,0.12); border: 2px solid #f0dcd0; white-space: normal; width: max-content; }
.speech.critic { background: #f8efff; border-color: #c9a7ef; color: #4b1f66; font-style: italic; }
.speech.baker { background: #fff4d6; border-color: #ffd98a; }
.oventag { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.oventag .ring { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#ff9a3c calc(var(--p) * 1%), rgba(255,255,255,0.65) 0); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,0.15); }
.oventag .ring img { width: 42px; height: 42px; background: #fff; border-radius: 50%; }
.oventag span { background: #fff; border-radius: 10px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.oventag.ready .ring { background: conic-gradient(#5fd38a calc(var(--p) * 1%), #ffe14d 0); animation: pulse 0.6s ease-in-out infinite alternate; }
.oventag.ready span { background: #5fd38a; color: #fff; }
.oventag.over .ring { background: #5a3a2a; animation: shake 0.3s infinite; }
.oventag.over span { background: var(--red); color: #fff; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes shake { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.float { font-weight: 700; font-size: 22px; color: #fff; text-shadow: 0 2px 0 var(--berry), 0 0 6px rgba(0,0,0,0.25); animation: floatUp 1.6s ease-out forwards; white-space: nowrap; }
.float.coin { color: var(--gold); text-shadow: 0 2px 0 #a8742a, 0 0 6px rgba(0,0,0,0.3); font-size: 26px; }
.float.heart { color: #ff5f8f; font-size: 30px; text-shadow: 0 2px 0 #fff; }
.float.ding { color: #fff; font-size: 30px; text-shadow: 0 3px 0 #ff9a3c; }
@keyframes floatUp { 0% { opacity: 0; margin-top: 10px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -70px; } }
.boardtag { background: rgba(255,255,255,0.9); border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 600; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud button, #hud .pill { pointer-events: auto; }
#topLeft { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pill { background: rgba(255, 253, 249, 0.95); border-radius: 999px; padding: 6px 14px 6px 8px; display: flex; align-items: center; gap: 8px; font-size: 20px; box-shadow: 0 4px 0 rgba(110,64,41,0.15); border: 2px solid #f3dccd; }
.pill b { font-weight: 700; }
.pill.small { font-size: 15px; padding: 3px 10px 3px 5px; }
.pill.bump { animation: bump 0.4s; }
@keyframes bump { 50% { transform: scale(1.18); } }
.coin-ic { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffcf3f 45%, #e0a020); border: 2px solid #c98a1a; display: inline-block; position: relative; flex: none; }
.coin-ic::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid rgba(201,138,26,0.6); }
.pill.small .coin-ic { width: 18px; height: 18px; }
.pin-ic { width: 18px; height: 22px; display: inline-block; position: relative; }
.pin-ic::before { content: ''; position: absolute; left: 2px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.pin-ic::after { content: ''; position: absolute; left: 8px; top: 12px; width: 2px; height: 10px; background: #888; }
.stars { color: var(--gold); letter-spacing: 1px; text-shadow: 0 1px 0 #c98a1a; font-size: 20px; }
.stars .off { color: #e8d8cc; text-shadow: none; }
#ratingNum { font-size: 16px; color: var(--cocoa-soft); }
#clockBox { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(255, 253, 249, 0.95); border-radius: 18px; padding: 6px 18px 8px; text-align: center; box-shadow: 0 4px 0 rgba(110,64,41,0.15); border: 2px solid #f3dccd; min-width: 160px; }
#dayLabel { font-size: 13px; font-weight: 600; color: var(--berry); text-transform: uppercase; letter-spacing: 1px; }
#clock { font-size: 24px; font-weight: 700; line-height: 1.1; }
#clockBox .bar { height: 6px; background: #f1e3dc; border-radius: 3px; overflow: hidden; margin-top: 4px; }
#dayBar { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff8fab, #a87aff); width: 0; }
#openTag { position: absolute; right: -10px; top: -8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; color: #fff; background: #3fb86a; transform: rotate(8deg); }
#openTag.closed { background: var(--red); }
#mapBox { position: absolute; top: 12px; right: 12px; background: rgba(255, 253, 249, 0.92); border-radius: 16px; padding: 5px; box-shadow: 0 4px 0 rgba(110,64,41,0.15); border: 2px solid #f3dccd; }
#minimap { display: block; border-radius: 12px; width: 200px; height: 150px; }
#topButtons { position: absolute; top: 178px; right: 12px; display: flex; gap: 6px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #f3dccd; background: rgba(255,253,249,0.95); font-size: 18px; box-shadow: 0 3px 0 rgba(110,64,41,0.15); color: var(--cocoa); }
.round-btn:active { transform: translateY(2px); }
#hint { position: absolute; left: 12px; top: 150px; max-width: min(380px, 44vw); background: var(--paper); border-radius: 18px; padding: 12px 14px 12px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); border: 3px solid var(--pink-soft); font-size: 17px; line-height: 1.35; animation: popIn 0.35s; }
#hint small { color: var(--cocoa-soft); font-size: 14px; }
#hint b { color: var(--berry); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.grandma { width: 52px; height: 56px; position: relative; flex: none; }
.grandma .g-hair { position: absolute; left: 6px; top: 0; width: 40px; height: 30px; border-radius: 50% 50% 40% 40%; background: #eeeae4; box-shadow: 0 -6px 0 -2px #eeeae4 inset; }
.grandma .g-hair::after { content: ''; position: absolute; left: 12px; top: -10px; width: 16px; height: 14px; border-radius: 50%; background: #eeeae4; }
.grandma .g-face { position: absolute; left: 9px; top: 12px; width: 34px; height: 36px; border-radius: 50%; background: #ffd9bd; }
.grandma .g-face i { position: absolute; top: 15px; width: 5px; height: 6px; border-radius: 50%; background: #3a2416; }
.grandma .g-face i:first-child { left: 9px; } .grandma .g-face i:last-child { right: 9px; }
.grandma .g-face::after { content: ''; position: absolute; left: 11px; top: 21px; width: 12px; height: 6px; border-bottom: 3px solid #b8456c; border-radius: 0 0 10px 10px; }
.grandma .g-glasses { position: absolute; left: 13px; top: 24px; width: 26px; height: 10px; border: 2px solid #b8456c; border-radius: 6px; background: transparent; }
.grandma.big { transform: scale(2); margin: 30px auto 36px; }
#toasts { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(520px, 90vw); }
.toast { background: var(--paper); border-radius: 14px; padding: 8px 16px; font-size: 16px; font-weight: 500; box-shadow: 0 4px 0 rgba(110,64,41,0.15); border: 2px solid #f3dccd; animation: popIn 0.3s; text-align: center; }
.toast.big { font-size: 20px; font-weight: 700; color: var(--berry); }
.toast.good { border-color: #9ae6b8; background: #f2fff7; }
.toast.warn { border-color: #ffb3a8; background: #fff4f2; }
.toast.review { display: flex; align-items: center; gap: 10px; text-align: left; max-width: 480px; }
.toast.review .stars { font-size: 16px; }
.toast.review.critic { border-color: #c9a7ef; background: #faf4ff; }
.toast.fade { opacity: 0; transition: opacity 0.5s; }
#reviewToasts { position: absolute; top: 232px; right: 12px; display: flex; flex-direction: column; gap: 6px; width: 290px; align-items: stretch; }
#reviewToasts .toast { font-size: 14px; padding: 6px 10px; }
#reviewToasts .toast small { font-size: 13px; color: var(--cocoa-soft); }
@media (max-width: 760px) { #reviewToasts { top: 60px; width: 220px; } }
#bottom { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
#heldCard { background: var(--paper); border-radius: 16px; padding: 4px 14px 4px 4px; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow); border: 3px solid var(--pink-soft); }
#heldCard img { width: 54px; height: 54px; }
#heldCard small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--cocoa-soft); }
#heldCard span { font-weight: 600; font-size: 16px; }
#heldCard.over { border-color: #ffb3a8; }
#prompt { background: var(--paper); border-radius: 16px; padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); border: 3px solid var(--gold); font-size: 18px; font-weight: 600; pointer-events: auto; }
#prompt kbd, #keysHelp kbd { font-family: inherit; background: var(--gold); color: var(--cocoa); border-radius: 8px; padding: 2px 10px; font-weight: 700; box-shadow: 0 3px 0 #c98a1a; font-size: 18px; }
#prompt.off { border-color: #f3dccd; color: var(--cocoa-soft); font-weight: 500; }
#prompt.off kbd { display: none; }
#keysHelp { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 10px; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
#keysHelp kbd { font-size: 12px; padding: 1px 6px; box-shadow: 0 2px 0 #c98a1a; text-shadow: none; }
#touch { display: none; }
body.touch #touch { display: block; }
body.touch #keysHelp { display: none; }
#stick { position: absolute; left: 24px; bottom: 24px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 3px solid rgba(255,255,255,0.7); pointer-events: auto; touch-action: none; }
#knob { position: absolute; left: 35px; top: 35px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.9); box-shadow: 0 3px 0 rgba(0,0,0,0.15); }
#touchUse { position: absolute; right: 26px; bottom: 30px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; background: var(--gold); font-size: 34px; pointer-events: auto; box-shadow: 0 5px 0 #c98a1a; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; touch-action: none; }
#touchUse small { font-size: 13px; font-weight: 700; color: var(--cocoa); }
#touchRun { position: absolute; right: 136px; bottom: 30px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,0.75); font-weight: 700; pointer-events: auto; touch-action: none; }
body.touch #bottom { bottom: 150px; }

/* ---------- Sharon banner ---------- */
#banner { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); pointer-events: none; z-index: 5; animation: slideDown 0.5s; }
#banner .banner-in { background: #f8efff; border: 4px solid var(--purple); border-radius: 22px; padding: 14px 22px 14px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 0 rgba(75,31,102,0.25), 0 16px 30px rgba(75,31,102,0.25); max-width: min(560px, 92vw); }
#banner h2 { margin: 0 0 4px; color: var(--purple); font-size: 24px; }
#banner p { margin: 0; font-size: 16px; color: #4b1f66; }
@keyframes slideDown { from { transform: translate(-50%, -40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sharon-face { width: 64px; height: 70px; position: relative; flex: none; }
.sharon-face .s-hat { position: absolute; left: -2px; top: 2px; width: 68px; height: 14px; border-radius: 50%; background: #4b1f66; }
.sharon-face .s-hat::before { content: ''; position: absolute; left: 18px; top: -18px; width: 32px; height: 24px; background: #4b1f66; border-radius: 8px 8px 0 0; }
.sharon-face .s-hat::after { content: ''; position: absolute; left: 44px; top: -26px; width: 7px; height: 22px; background: #ff4fa0; border-radius: 50%; transform: rotate(25deg); }
.sharon-face .s-head { position: absolute; left: 12px; top: 14px; width: 40px; height: 44px; border-radius: 50%; background: #f5c9a3; z-index: -1; }
.sharon-face .s-head i { position: absolute; top: 18px; width: 12px; height: 9px; border: 2px solid #d6172d; border-radius: 50% 50% 40% 40%; }
.sharon-face .s-head i:first-child { left: 5px; } .sharon-face .s-head i:last-child { right: 5px; }
.sharon-face .s-head::after { content: ''; position: absolute; left: 14px; top: 32px; width: 12px; height: 5px; border-top: 3px solid #8a2f3a; border-radius: 10px 10px 0 0; }

/* ---------- modal panels ---------- */
#modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(110, 64, 41, 0.28); z-index: 10; }
#modalCard { background: var(--paper); border-radius: 26px; padding: 22px 26px 24px; box-shadow: var(--shadow); border: 4px solid var(--pink-soft); max-width: min(860px, 94vw); max-height: 92vh; overflow: auto; position: relative; animation: popIn 0.25s; }
#modalCard h2 { margin: 0 0 4px; color: var(--berry); font-size: 28px; }
#modalCard .sub { margin: 0 0 14px; color: var(--cocoa-soft); font-size: 16px; }
.close-x { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #f3dccd; background: #fff; font-size: 18px; color: var(--cocoa); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: #fff; border: 3px solid #f3dccd; border-radius: 18px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; transition: transform 0.1s, border-color 0.1s; position: relative; color: var(--cocoa); }
button.card:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--pink); }
button.card:active:not(:disabled) { transform: translateY(1px); }
.card img { width: 72px; height: 72px; }
.card .nm { font-weight: 600; font-size: 16px; line-height: 1.15; }
.card .mini { display: flex; gap: 1px; justify-content: center; flex-wrap: wrap; }
.card .mini img { width: 24px; height: 24px; }
.card.locked { opacity: 0.55; filter: grayscale(0.6); cursor: default; }
.card .lock { font-size: 12px; color: var(--berry); }
.card .coins { font-size: 13px; color: var(--cocoa-soft); }
.card.wiggle { animation: shake 0.15s 3; border-color: var(--red); }
.card.done { border-color: #9ae6b8; background: #f2fff7; }
.mix-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
#modalCard.mix { width: min(860px, 94vw); }
#modalCard.mix #pantryGrid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
#modalCard.mix #pantryGrid .card { padding: 6px; }
#modalCard.mix #pantryGrid .card img { width: 56px; height: 56px; }
.recipe-card { background: #fff6ea; border: 3px dashed #f0c9a8; border-radius: 18px; padding: 12px; text-align: center; }
.recipe-card img.big { width: 110px; height: 110px; }
.recipe-card ul { list-style: none; padding: 0; margin: 8px 0 0; text-align: left; }
.recipe-card li { display: flex; align-items: center; gap: 8px; padding: 3px 4px; font-size: 16px; border-radius: 8px; }
.recipe-card li img { width: 30px; height: 30px; }
.recipe-card li.got { background: #e2f8ea; text-decoration: line-through; color: #3f9e66; }
.recipe-card li.got::after { content: '\2713'; margin-left: auto; font-weight: 700; }
.bowl { width: 220px; height: 130px; margin: 6px auto 0; position: relative; }
.bowl .rim { position: absolute; inset: 0; border-radius: 0 0 110px 110px; background: linear-gradient(180deg, #a8dcff, #6fb8ef); border: 4px solid #5aa0d8; border-top: 10px solid #5aa0d8; overflow: hidden; }
.bowl .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 0 0 110px 110px; transition: height 0.3s; }
.bowl .swirl { position: absolute; left: 50%; top: 30%; width: 90px; height: 50px; margin-left: -45px; border-radius: 50%; border: 4px dotted rgba(255,255,255,0.7); opacity: 0; }
.bowl.stirring .swirl { opacity: 1; animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flyer-dot { position: fixed; width: 48px; height: 48px; z-index: 30; pointer-events: none; transition: all 0.45s cubic-bezier(.5,-0.3,.7,1); }
.stir-btn { display: block; margin: 16px auto 4px; font-size: 26px; padding: 16px 40px; }
.progress { height: 18px; background: #f1e3dc; border-radius: 9px; overflow: hidden; margin: 10px 0 0; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width 0.15s; }
.msg { min-height: 26px; text-align: center; font-weight: 600; color: var(--berry); margin-top: 8px; font-size: 17px; }
.big-btn { background: var(--pink); color: #fff; border: none; border-radius: 18px; padding: 13px 30px; font-size: 22px; font-weight: 700; box-shadow: 0 6px 0 var(--berry); letter-spacing: 0.3px; }
.big-btn:hover { filter: brightness(1.05); }
.big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--berry); }
.big-btn.alt { background: var(--mint); box-shadow: 0 6px 0 #3f9e66; }
.big-btn.ghost { background: #fff; color: var(--cocoa); box-shadow: 0 6px 0 #e0cbbd; border: 2px solid #f3dccd; }
.big-btn:disabled { background: #e4d6cc; box-shadow: 0 6px 0 #cbb9ad; color: #fff; cursor: default; }
.link-btn { background: none; border: none; color: var(--cocoa-soft); text-decoration: underline; font-size: 16px; margin-top: 10px; }
.summary { text-align: center; min-width: min(460px, 86vw); }
.summary .row { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 2px dashed #f3dccd; font-size: 19px; }
.summary .row b { color: var(--berry); }
.summary .big-btn { margin-top: 18px; }
.sharon-box { background: #f8efff; border: 3px solid #c9a7ef; border-radius: 16px; padding: 10px 14px; margin-top: 12px; text-align: left; color: #4b1f66; font-size: 16px; }
.sharon-box .stars { font-size: 22px; }
.sharon-result { text-align: center; max-width: 520px; }
.sharon-result .sharon-face { margin: 40px auto 22px; transform: scale(1.4); }
.sharon-result .stars { font-size: 38px; }
.sharon-result blockquote { font-size: 19px; font-style: italic; background: #f8efff; border-radius: 16px; padding: 12px 16px; margin: 12px 0; color: #4b1f66; }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 40; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.how { max-width: 640px; font-size: 17px; line-height: 1.45; }
.how h3 { margin: 14px 0 4px; color: var(--berry); }
.how ul { margin: 4px 0; padding-left: 22px; }
.keys-table { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 16px; }
.keys-table kbd { font-family: inherit; background: var(--gold); border-radius: 6px; padding: 1px 8px; font-weight: 700; box-shadow: 0 2px 0 #c98a1a; white-space: nowrap; }
.settings label { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 18px; }
.settings input[type=range] { width: 200px; accent-color: var(--pink); }
.settings input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--pink); }
.pause-buttons { display: flex; flex-direction: column; gap: 14px; min-width: 280px; align-items: stretch; margin-top: 10px; }

/* ---------- website ---------- */
#website { position: absolute; inset: 0; background: rgba(110, 64, 41, 0.35); display: grid; place-items: center; z-index: 12; }
.browser { width: min(980px, 96vw); height: min(680px, 92vh); background: #e9e4f0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); display: flex; flex-direction: column; overflow: hidden; border: 3px solid #fff; animation: popIn 0.25s; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #f6f2fa; }
.browser-bar .dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; background: #ff6b6b; }
.browser-bar .dots i:nth-child(2) { background: #ffd23f; } .browser-bar .dots i:nth-child(3) { background: #5fd38a; }
.browser-bar .url { flex: 1; background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 14px; color: #777; }
.browser-bar .x { width: 34px; height: 34px; border-radius: 50%; border: none; background: #ffd3df; color: var(--berry); font-size: 16px; font-weight: 700; }
.site { flex: 1; background: var(--cream); display: flex; flex-direction: column; min-height: 0; }
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 8px; background: linear-gradient(180deg, #ffe1ea, var(--cream)); }
.logo { font-size: 30px; font-weight: 700; color: var(--berry); font-style: italic; }
.logo span { font-size: 18px; color: var(--cocoa-soft); }
.site-stats { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.tabs { display: flex; gap: 6px; padding: 0 16px; border-bottom: 3px solid #f3dccd; flex-wrap: wrap; }
.tabs button { border: none; background: #fbe9e0; color: var(--cocoa); border-radius: 14px 14px 0 0; padding: 10px 16px; font-size: 17px; font-weight: 600; position: relative; }
.tabs button.on { background: #fff; color: var(--berry); box-shadow: 0 -3px 0 var(--pink) inset; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
#webBody { flex: 1; overflow: auto; padding: 16px 20px 20px; background: #fff; }
.site-foot { padding: 6px; text-align: center; font-size: 13px; color: var(--cocoa-soft); background: var(--cream); }
.rev-summary { display: flex; gap: 20px; align-items: center; background: var(--cream); border-radius: 18px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.rev-summary .big-num { font-size: 54px; font-weight: 700; color: var(--berry); line-height: 1; }
.rev-summary .stars { font-size: 28px; }
.rev-summary p { margin: 4px 0 0; color: var(--cocoa-soft); }
.review { display: grid; grid-template-columns: 52px 1fr 64px; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 2px solid #f6e6dc; margin-bottom: 10px; background: #fffdfa; }
.review.critic { border-color: #c9a7ef; background: #faf4ff; }
.review.new { box-shadow: 0 0 0 3px var(--gold); }
.review .avatar { width: 48px; height: 48px; border-radius: 50%; position: relative; overflow: hidden; }
.review .avatar .face { position: absolute; left: 9px; top: 6px; width: 30px; height: 30px; border-radius: 50%; }
.review .avatar .hair { position: absolute; left: 7px; top: 2px; width: 34px; height: 16px; border-radius: 16px 16px 4px 4px; }
.review .avatar .body { position: absolute; left: 4px; top: 32px; width: 40px; height: 30px; border-radius: 50%; }
.review .nm { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review .nm .stars { font-size: 16px; }
.review .crit { background: var(--purple); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 6px; letter-spacing: 1px; }
.review .crit.gold { background: var(--gold); color: var(--cocoa); }
.review p { margin: 3px 0 0; font-size: 15px; line-height: 1.35; }
.review .when { font-size: 12px; color: var(--cocoa-soft); font-weight: 500; }
.review img { width: 60px; height: 60px; }
.empty { text-align: center; color: var(--cocoa-soft); padding: 40px; font-size: 18px; }
.shop-sec { margin: 4px 0 18px; }
.shop-sec h3 { margin: 0 0 4px; color: var(--berry); font-size: 21px; }
.shop-sec .note { margin: 0 0 10px; color: var(--cocoa-soft); font-size: 15px; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 2px solid #f6e6dc; margin-bottom: 8px; background: #fffdfa; }
.item img, .item .deco-ic { width: 70px; height: 70px; }
.item .deco-ic { display: grid; place-items: center; font-size: 40px; background: var(--cream); border-radius: 14px; }
.item h4 { margin: 0; font-size: 18px; }
.item p { margin: 2px 0 0; font-size: 14px; color: var(--cocoa-soft); }
.item .unlock { color: #3f9e66; font-weight: 600; }
.item .needs { color: var(--berry); font-weight: 600; }
.buy { background: var(--mint); color: #fff; border: none; border-radius: 14px; padding: 10px 16px; font-size: 17px; font-weight: 700; box-shadow: 0 4px 0 #3f9e66; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.buy .coin-ic { width: 18px; height: 18px; }
.buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #3f9e66; }
.buy.cant { background: #e4d6cc; box-shadow: 0 4px 0 #cbb9ad; }
.owned { color: #3f9e66; font-weight: 700; font-size: 16px; white-space: nowrap; }
.flyer-hero { display: flex; gap: 18px; align-items: center; background: var(--cream); border-radius: 18px; padding: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.flyer-paper { width: 120px; height: 160px; background: #fffdf7; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transform: rotate(-4deg); overflow: hidden; flex: none; text-align: center; font-size: 11px; }
.flyer-paper .top { background: var(--pink); color: #fff; font-weight: 700; padding: 6px 2px; font-size: 13px; }
.flyer-paper .cup { width: 54px; height: 54px; margin: 10px auto 4px; border-radius: 50% 50% 8px 8px; background: linear-gradient(180deg, #f2a6c4 55%, #e8b375 55%); }
.flyer-paper .nm { color: var(--berry); font-weight: 700; font-style: italic; font-size: 13px; }
.boards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.board-st { border-radius: 14px; padding: 10px; border: 2px solid #f3dccd; background: #fffdfa; font-size: 15px; }
.board-st b { display: block; font-size: 16px; }
.board-st.on { border-color: #9ae6b8; background: #f2fff7; }

/* ---------- title + creator + story ---------- */
.screen { position: absolute; inset: 0; display: grid; place-items: center; z-index: 20; }
#title { background: linear-gradient(90deg, rgba(255,232,214,0.55), rgba(255,232,214,0) 60%); place-items: center start; padding-left: 6vw; }
@media (max-width: 760px) { #title { place-items: center; padding-left: 0; } }
.title-card { text-align: center; background: rgba(255,253,249,0.92); border-radius: 34px; padding: 30px 44px 30px; box-shadow: var(--shadow); border: 4px solid var(--pink-soft); max-width: 92vw; animation: popIn 0.4s; }
.title-logo { display: flex; flex-direction: column; align-items: center; line-height: 0.95; }
.title-logo .t1, .title-logo .t3 { font-size: clamp(46px, 9vw, 86px); font-weight: 700; color: var(--berry); text-shadow: 0 5px 0 var(--pink-soft), 0 8px 16px rgba(184,69,108,0.25); font-style: italic; }
.title-logo .t2 { font-size: clamp(20px, 3vw, 28px); color: var(--cocoa-soft); font-weight: 600; margin: 2px 0; }
.tagline { font-size: 19px; margin: 14px 0 20px; }
.title-buttons { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.title-buttons .big-btn { min-width: 260px; }
.continue-info { margin: 12px 0 0; color: var(--cocoa-soft); font-size: 15px; min-height: 20px; }
.title-credit { position: absolute; bottom: 14px; right: 18px; color: #fff; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
#creator { place-items: center end; padding-right: 5vw; pointer-events: none; }
.creator-card { pointer-events: auto; background: rgba(255,253,249,0.96); border-radius: 26px; padding: 20px 24px; box-shadow: var(--shadow); border: 4px solid var(--pink-soft); width: min(420px, 92vw); animation: popIn 0.3s; }
.creator-card h2 { margin: 0 0 10px; color: var(--berry); font-size: 28px; }
.field { display: flex; flex-direction: column; font-weight: 600; gap: 4px; margin-bottom: 10px; }
.field input { font-family: inherit; font-size: 20px; padding: 8px 12px; border-radius: 12px; border: 3px solid #f3dccd; color: var(--cocoa); outline: none; }
.field input:focus { border-color: var(--pink); }
.opt-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #f3dccd; }
.swatches button.on { box-shadow: 0 0 0 3px var(--berry); transform: scale(1.1); }
.chips button { border: 2px solid #f3dccd; background: #fff; border-radius: 12px; padding: 5px 10px; font-size: 15px; color: var(--cocoa); }
.chips button.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.creator-buttons { display: flex; gap: 12px; justify-content: space-between; margin-top: 14px; }
.creator-buttons .big-btn { font-size: 19px; padding: 12px 20px; }
#story { background: rgba(255, 232, 214, 0.55); }
.story-card { background: var(--paper); border-radius: 30px; padding: 26px 34px; max-width: min(560px, 92vw); text-align: center; box-shadow: var(--shadow); border: 4px solid var(--pink-soft); display: flex; flex-direction: column; align-items: center; }
.story-card p { font-size: 24px; line-height: 1.4; margin: 0 0 22px; min-height: 100px; display: grid; place-items: center; }
#loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #ffe8d6; z-index: 50; font-size: 20px; }
.spinner { width: 60px; height: 60px; border-radius: 50%; border: 8px solid var(--pink-soft); border-top-color: var(--pink); margin: 0 auto; animation: spin 0.9s linear infinite; }

@media (max-width: 760px) {
  #mapBox { display: none; }
  #topButtons { top: 12px; }
  #hint { top: auto; bottom: 170px; left: 50%; transform: translateX(-50%); max-width: 92vw; font-size: 15px; }
  .mix-wrap { grid-template-columns: 1fr; }
  #keysHelp { display: none; }
  #clockBox { min-width: 120px; padding: 4px 12px; }
  #clock { font-size: 19px; }
  .pill { font-size: 16px; }
  .review { grid-template-columns: 44px 1fr; }
  .review > img { display: none; }
  #creator { place-items: end center; padding: 0 0 10px; }
  .creator-card { max-height: 60vh; overflow: auto; }
}

.goal { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid #f6e6dc; margin-bottom: 8px; background: #fffdfa; font-size: 17px; }
.goal .check { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #f3dccd; display: grid; place-items: center; font-weight: 700; color: #fff; }
.goal.done { background: #f2fff7; border-color: #9ae6b8; }
.goal.done .check { background: var(--mint); border-color: var(--mint); }
.goal.done .gt { color: #3f9e66; }
