body { background: linear-gradient(180deg, #0f2a43 0%, #1c4a73 55%, #2f6f9f 100%); background-attachment: fixed; color: #eaf3fb; min-height: 100vh; }
[hidden] { display: none !important; }
.shell { width: min(760px, 100% - 2rem); padding: clamp(2rem, 6vw, 4rem) 0; position: relative; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 600; margin-bottom: .6rem; }
.head h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: #fff; }
.head h1 em { color: var(--lime); }

.search { display: flex; gap: .6rem; margin-top: 1.8rem; }
.search input { flex: 1; min-width: 0; min-height: 50px; padding: .6rem 1.1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; transition: var(--ease); }
.search input::placeholder { color: rgba(234, 243, 251, .6); }
.search input:focus { outline: none; background: rgba(255, 255, 255, .18); border-color: var(--lime); }
.btn-ghost { min-width: 50px; padding: 0; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.suggest { list-style: none; margin: .5rem 0 0; padding: .4rem; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.suggest button { width: 100%; padding: .7rem 1rem; border: 0; border-radius: 10px; background: none; text-align: left; transition: var(--ease); min-height: 44px; }
.suggest button:hover { background: #eef5d8; }
.suggest small { color: var(--muted); }

.state { margin-top: 1.2rem; min-height: 1.5em; color: rgba(234, 243, 251, .85); }
.state.error { padding: .9rem 1.1rem; border-radius: 12px; background: rgba(240, 90, 70, .22); color: #ffd9d3; }
.state.note { padding: .8rem 1rem; border-radius: 12px; background: rgba(242, 184, 75, .18); color: #ffe7b3; font-size: .9rem; }
.state.note { padding: .8rem 1.1rem; border-radius: 12px; background: rgba(242, 184, 75, .18); color: #ffe7b0; font-size: .9rem; }
.loader { display: inline-block; width: 18px; height: 18px; margin-right: .6rem; vertical-align: -3px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.now { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 1.5rem; padding: 1.8rem; border-radius: 24px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); animation: in 300ms ease-in-out; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.place { font-size: 1.05rem; opacity: .85; }
.temp-row { display: flex; align-items: center; gap: 1rem; }
.icon { font-size: 4rem; line-height: 1; }
.temp { font-family: var(--font-head); font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 700; line-height: 1; }
.desc { font-size: 1.15rem; margin-top: .3rem; }
.facts { display: grid; gap: .8rem; align-content: center; margin: 0; min-width: 200px; }
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.facts dt { opacity: .75; }
.facts dd { margin: 0; font-weight: 600; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; margin-top: 1rem; }
.day { display: grid; justify-items: center; gap: .3rem; padding: 1rem .4rem; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; transition: var(--ease); }
.day:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.day .d { opacity: .8; text-transform: capitalize; }
.day .i { font-size: 1.7rem; }
.day b { font-size: 1rem; }
.day span.lo { opacity: .6; }

@media (max-width: 640px) {
  .week { grid-template-columns: repeat(7, minmax(78px, 1fr)); overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; }
  .day { scroll-snap-align: start; }
  .now { padding: 1.3rem; }
}
