/* Sunup walk (js/walk.js): the phone-down walk and Pip's postcards. Loaded after app.css; uses its colour variables. */
.walk-ui { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(30, 26, 66, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadein .3s ease; }
.walk-ui .ws-sheet { position: relative; width: min(480px, 100%); box-sizing: border-box; background: var(--paper); border-radius: 28px 28px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); max-height: 100%; overflow-y: auto; animation: ws-up .35s cubic-bezier(.2, .9, .3, 1.15); }
.walk-ui .ws-sheet.center { text-align: center; }
.walk-ui .ws-sheet h2 { margin: 2px 0 6px; font-size: var(--fs-xl); text-align: center; }
.walk-ui .ws-sheet h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.25; }
.walk-ui .ws-sheet .x { position: absolute; top: 12px; right: 12px; }
.walk-ui .ws-hero { display: grid; justify-items: center; margin-top: -4px; }
.walk-ui .ws-sub { text-align: center; color: var(--muted); margin: 0 0 14px; }
.walk-ui .row { display: flex; gap: 10px; align-items: center; }
.walk-ui .kicker { margin: 14px 0 8px; }
.ws-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-mins button, .ws-todo button { font: inherit; font-weight: 800; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); cursor: pointer; }
.ws-mins button { padding: 12px 0; }
.ws-mins button[aria-checked="true"] { background: var(--tab-on); outline: 2.5px solid var(--btn-edge); }
.ws-todo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ws-todo button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: var(--fs-sm); text-align: left; }
.ws-todo button span { font-size: var(--fs-lg); }
.ws-todo button[aria-pressed="true"] { background: #F2F8EA; outline: 2.5px solid #8DB36B; }
.walk-ui .tiny { font-size: var(--fs-xs); color: var(--muted); margin: 8px 0 0; }
.walk-ui .center-block { display: block; margin: 4px auto 0; }

/* walking: nearly black, so the screen can rest and there's nothing to fiddle with */
.walk-ui.walking { background: #12112C; -webkit-backdrop-filter: none; backdrop-filter: none; align-items: stretch; cursor: pointer; }
.ww { position: relative; width: min(480px, 100%); height: 100%; color: #CFC8E8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); box-sizing: border-box; }
.ww-map { width: 100%; max-width: 390px; height: auto; }
.ww-bob { transform-box: fill-box; transform-origin: 50% 100%; animation: ww-bob .55s ease-in-out infinite alternate; }
.ww-time { margin: 6px 0 0; font-size: var(--fs-4xl); font-weight: 800; color: #E8E2FA; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ww-msg { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 800; }
.ww-hint { margin: 8px 0 0; font-size: var(--fs-sm); color: #8F88AE; text-align: center; }
.ww-early { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 9, 30, .55); cursor: default; animation: fadein .25s ease; }
.ww-early .ws-sheet { color: var(--ink); }

/* the postcard */
.walk-ui.postcard { align-items: center; background: rgba(30, 26, 66, .62); overflow-y: auto; }
.pc-wrap { width: min(440px, 100%); box-sizing: border-box; padding: calc(16px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.pc-wrap .kicker { color: #FFF6E6; margin: 0; }
.pc-wrap .center { text-align: center; }
.pc { position: relative; margin: 4px 6px; background: #FFFDF8; border-radius: 10px; padding: 12px 12px 14px; box-shadow: 0 14px 34px rgba(20, 14, 50, .35); transform: rotate(-2deg); }
.pc.fresh { animation: pc-in .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.pc-pic { border-radius: 6px; overflow: hidden; aspect-ratio: 240 / 150; }
.pc-pic svg { display: block; width: 100%; height: 100%; }
.pc-stamp { position: absolute; top: 18px; right: 18px; width: 44px; height: 52px; display: grid; place-items: center; font-size: 24px; background: #FFF4E8; border: 2px dashed #E2B6A0; border-radius: 4px; transform: rotate(6deg); }
.pc-note { margin: 12px 4px 0; font-family: var(--font-hand); font-size: var(--fs-lg); line-height: 1.35; color: #4A3B6A; }
.pc-sign { display: block; text-align: right; margin-top: 6px; }
.pc-loot { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); animation: ws-up .5s .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.pc-loot > span:first-child { font-size: var(--fs-2xl); }
.pc-loot small { display: block; color: var(--muted); font-weight: 700; }
.pc-find { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 8px 14px; box-shadow: var(--shadow); color: var(--ink); }
.pc-find.fresh { animation: ws-up .5s .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.pc-find-art { flex: none; display: grid; place-items: center; width: 56px; height: 56px; background: #FFF1D6; border-radius: 14px; }
.pc-find b { display: block; }
.pc-find small { display: block; color: var(--muted); font-weight: 700; }
.pc-gift { margin: 0; padding: 10px 14px; border-radius: 16px; background: #FFE9A8; color: #5A3F0E; font-weight: 800; text-align: center; }
.pc-mood { background: var(--paper); border-radius: 18px; padding: 10px 14px 12px; box-shadow: var(--shadow); }
.pc-mood .kicker { color: var(--muted); margin: 0 0 6px; }
.pc-mood .faces { display: flex; justify-content: space-between; }
.pc-mood .faces button { display: grid; justify-items: center; gap: 1px; font: inherit; border: 0; background: none; padding: 6px 4px; border-radius: 14px; cursor: pointer; color: var(--muted); }
.pc-mood .faces span { font-size: var(--fs-2xl); transition: transform .15s; }
.pc-mood .faces small { font-size: var(--fs-2xs); font-weight: 800; }
.pc-mood .faces button[aria-checked="true"] { background: var(--tab-on); outline: 2px solid var(--btn-edge); color: var(--ink); }
.pc-mood .faces button[aria-checked="true"] span { transform: scale(1.15); }
.pc-wrap .btn.big { margin: 2px 0 0; }

/* Today: the walk tile (like the morning-pages tile) */
.walk-tile { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0; padding: 12px 14px; border: 0; border-radius: 20px; background: linear-gradient(180deg, #F2F8EA, #E6F1DA); box-shadow: 0 3px 0 #CFE2BD, var(--shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.walk-tile .sunling-solo { flex: none; }
.walk-tile b { display: block; font-size: var(--fs-md); }
.walk-tile small { display: block; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }
.walk-tile .secs { margin-left: auto; font-size: var(--fs-xs); font-weight: 800; color: #5E8C4A; white-space: nowrap; }
.walk-tile.out { background: linear-gradient(180deg, #2B2A5C, #3E3470); color: #fff; box-shadow: 0 3px 0 #1E1D45, var(--shadow); }
.walk-tile.out small, .walk-tile.out .secs { color: #CFC8E8; }
.walk-tile.done { background: #FFFDF8; box-shadow: 0 3px 0 var(--line), var(--shadow); }

@keyframes ws-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes ww-bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-5px) rotate(4deg); } }
@keyframes pc-in { 0% { opacity: 0; transform: translateY(60px) rotate(8deg) scale(.85); } 60% { opacity: 1; transform: translateY(-6px) rotate(-3.5deg) scale(1.02); } 100% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .ww-bob, .pc.fresh, .pc-loot, .walk-ui .ws-sheet { animation: none; } }
