/* Nous City cozy bits (city-cozy.js). Soft cream cards, rounded, calm. Everything prefixed cz-. */
.cz-host { position: relative; z-index: 70; font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; color: #5b4a3a; }
.cz-host button { font: inherit; cursor: pointer; }
.cz-veil { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(255, 246, 230, 0.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: cz-fade 0.25s ease both; }
.cz-veil--dark { background: rgba(30, 24, 18, 0.55); }
.cz-out { animation: cz-fadeout 0.22s ease both !important; }
.cz-card { position: relative; width: min(340px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fffaf0; border: 3px solid #f3e3c3;
    border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 14px 40px rgba(120, 84, 40, 0.22), inset 0 -4px 0 #f6ead3;
    animation: cz-pop-in 0.42s cubic-bezier(.2, 1.4, .4, 1) both; text-align: center; }
.cz-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #c08a3e; }
.cz-btn { margin-top: 14px; border: 0; border-radius: 999px; padding: 10px 22px; background: #6cc3a0; color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: transform .12s; }
.cz-btn:active { transform: scale(.96); }
.cz-btn--ghost { background: #f3e8d6; color: #7a6450; }
.cz-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f5ecdd; display: grid; place-items: center; }

/* morning news */
.cz-news { padding-top: 58px; }
.cz-news__sun { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff4cf;
    border: 3px solid #f3e3c3; display: grid; place-items: center; animation: cz-spin 14s linear infinite; }
.cz-news__mayor { display: flex; align-items: center; gap: 12px; text-align: left; background: #fdf1dc; border-radius: 18px; padding: 8px 12px; }
.cz-news__mayor b { display: block; font-size: 15px; }
.cz-news__mayor small { color: #a08b74; font-size: 12px; }
.cz-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #e7f4ec; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 0 #f0dfc1; flex: none; }
.cz-avatar svg { display: block; }
.cz-news__lines { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.cz-news__lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; animation: cz-rise .4s ease both; }
.cz-news__ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #f3e3c3; display: grid; place-items: center; }

/* chat bubble */
.cz-chatveil { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 14px calc(22px + env(safe-area-inset-bottom)); animation: cz-fade .2s ease both; }
.cz-chat { position: relative; width: min(420px, 100%); background: #fffaf0; border: 3px solid #f3e3c3; border-radius: 30px 30px 30px 30px / 26px 26px 34px 34px;
    padding: 24px 22px 14px; box-shadow: 0 10px 30px rgba(120, 84, 40, .25); animation: cz-pop-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.cz-chat__tag { position: absolute; top: -16px; left: 22px; display: flex; align-items: center; gap: 6px; background: #f6c453; color: #5b3d12;
    border-radius: 999px; padding: 4px 12px 4px 6px; transform: rotate(-3deg); box-shadow: 0 2px 0 #d9a23a; }
.cz-chat__tag b { font-size: 15px; }
.cz-chat__tag small { font-size: 11px; opacity: .75; }
.cz-chat__text { margin: 4px 0 8px; font-size: 17px; line-height: 1.45; min-height: 2.9em; }
.cz-chat__ghost { visibility: hidden; }
.cz-chat__foot { display: flex; align-items: center; gap: 8px; }
.cz-hearts { display: inline-flex; gap: 2px; }
.cz-heart--on { animation: cz-beat 1.6s ease-in-out infinite; }
.cz-chat__gain { font-size: 12px; font-weight: 700; color: #db2777; background: #fde7f1; border-radius: 999px; padding: 2px 8px; animation: cz-rise .4s ease both; }
.cz-chat__more { margin-left: auto; font-size: 12px; color: #c0a888; animation: cz-bob 1s ease-in-out infinite; }

/* critter book */
.cz-book { width: min(380px, 100%); }
.cz-book__count { font-size: 14px; color: #8a7560; }
.cz-book__count b { font-size: 20px; color: #5b4a3a; }
.cz-book__bar { height: 8px; border-radius: 99px; background: #f1e6d3; margin: 8px 6px 4px; overflow: hidden; }
.cz-book__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #86efac, #6cc3a0); }
.cz-book__group h4 { margin: 12px 0 6px; font-size: 12px; text-align: left; color: #b08d5f; font-weight: 700; }
.cz-book__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.cz-critter { position: relative; aspect-ratio: 1; border: 2px solid #f1e2c6; background: #fff; border-radius: 16px; display: grid; place-items: center; padding: 0; transition: transform .12s; }
.cz-critter:active { transform: scale(.94); }
.cz-critter--unfound { background: #f6f1e8; border-style: dashed; }
.cz-critter--sel { border-color: #6cc3a0; box-shadow: 0 0 0 3px #d9f2e7; }
.cz-critter__dots { position: absolute; bottom: 4px; display: flex; gap: 2px; }
.cz-critter__dots i { width: 4px; height: 4px; border-radius: 50%; background: #f6c453; }
.cz-critter--unfound .cz-critter__dots i { background: #d6cbb8; }
.cz-critter__n { position: absolute; top: 3px; right: 6px; font-size: 10px; color: #a08b74; font-weight: 700; }
.cz-critter__art--unfound { opacity: .85; }
.cz-book__foot { margin: 12px 0 0; font-size: 13px; color: #8a7560; min-height: 1.3em; }

/* critter toast */
.cz-toast { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
    background: #fffaf0; border: 3px solid #f3e3c3; border-radius: 22px; padding: 6px 16px 6px 8px; box-shadow: 0 8px 24px rgba(120, 84, 40, .2);
    animation: cz-drop .45s cubic-bezier(.2, 1.4, .4, 1) both; text-align: left; }
.cz-toast small { display: block; font-size: 11px; color: #b08d5f; }
.cz-toast b { font-size: 14px; }

/* rating */
.cz-rate__stars { display: flex; justify-content: center; gap: 4px; margin: 2px 0 2px; }
.cz-rate__stars .cz-pop { animation: cz-starpop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.cz-rate__word { margin: 2px 0 12px; font-weight: 700; font-size: 16px; }
.cz-rate__row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 8px; margin: 6px 4px; font-size: 13px; text-align: left; color: #8a7560; }
.cz-rate__bar { height: 10px; background: #f3eadb; border-radius: 99px; overflow: hidden; }
.cz-rate__bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s ease; }
.cz-rate__tip { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 14px 0 0; padding: 9px 12px; border-radius: 14px; background: #eef8f1; font-size: 13px; line-height: 1.35; }
.cz-rate__tip svg { flex: none; margin-top: 1px; }

/* photo mode */
.cz-photo { position: fixed; inset: 0; pointer-events: none; animation: cz-fade .25s ease both; }
.cz-photo > * { pointer-events: auto; }
.cz-photo__frame { position: absolute; inset: 10px; border-radius: 20px; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.cz-photo__frame::before, .cz-photo__frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .9); }
.cz-photo__frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.cz-photo__frame::after { bottom: 150px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.cz-photo__x { top: calc(16px + env(safe-area-inset-top)); right: 16px; background: rgba(40, 30, 20, .45); }
.cz-photo__flash { position: absolute; inset: 0; background: #fff; animation: cz-flash .26s ease-out both; pointer-events: none; }
.cz-photo__bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(400px, calc(100% - 24px));
    background: rgba(255, 250, 240, .92); border: 2px solid #f3e3c3; border-radius: 24px; padding: 10px 14px 8px; display: grid; gap: 4px;
    box-shadow: 0 8px 24px rgba(60, 40, 20, .2); animation: cz-rise .3s ease both; }
.cz-photo__ctl { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: #8a7560; }
.cz-photo__ctl small { min-width: 54px; text-align: right; }
.cz-photo__ctl input[type=range] { width: 100%; accent-color: #6cc3a0; }
.cz-photo__row { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 2px; }
.cz-round { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #f1e2c6; background: #fff; display: grid; place-items: center; }
.cz-shutter { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #f3e3c3; background: #fff; display: grid; place-items: center; padding: 0; transition: transform .1s; }
.cz-shutter i { width: 42px; height: 42px; border-radius: 50%; background: #f6c453; box-shadow: inset 0 -3px 0 #d9a23a; }
.cz-shutter:active { transform: scale(.92); }
.cz-photo__msg { text-align: center; color: #6cc3a0; font-weight: 700; }
.cz-polaroid { width: min(360px, 100%); animation: cz-develop .6s ease both; text-align: center; }
.cz-polaroid img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.cz-polaroid__btns { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

@keyframes cz-fade { from { opacity: 0; } }
@keyframes cz-fadeout { to { opacity: 0; } }
@keyframes cz-pop-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes cz-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes cz-drop { from { opacity: 0; transform: translate(-50%, -16px) scale(.9); } }
@keyframes cz-starpop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes cz-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }
@keyframes cz-bob { 50% { transform: translateY(-3px); } }
@keyframes cz-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes cz-flash { from { opacity: .9; } to { opacity: 0; } }
@keyframes cz-develop { from { opacity: 0; filter: brightness(1.8) saturate(0); transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .cz-host * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
