@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #000000;
  --surface: #1C1E21;
  --surface-soft: #25282D;
  --surface-strong: #30343A;
  --text-primary: #FFFFFF;
  --text-secondary: #E4E6EB;
  --text-muted: #B0B3B8;
  --accent: #7DD3FC;
  --accent-warm: #FACC15;
  --danger: #FB7185;
  --focus-ring: #00D4FF;
  --focus-glow: rgba(0, 212, 255, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-primary);
}

body {
  color: var(--text-primary);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

#app {
  width: 600px;
  height: 600px;
  padding: 8px;
}

.screen {
  display: flex;
  flex-direction: column;
  width: 584px;
  height: 584px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.top-bar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 88px;
  border-radius: var(--radius);
  background: var(--surface);
}

.title-stack {
  min-width: 0;
  text-align: center;
}

.view-label {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.place-label {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: 800;
  opacity: 0.38;
}

.side-hint.available {
  color: var(--accent);
  opacity: 1;
}

.stage {
  flex: 1;
  display: flex;
  min-height: 0;
  padding-top: 12px;
}

.forecast-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.86;
  cursor: pointer;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    border-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    background-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.forecast-card:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 20px var(--focus-glow);
  background: var(--surface-strong);
  opacity: 1;
  transform: scale(0.986);
}

.card-state,
.forecast-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  text-align: center;
}

.weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent-warm);
  font-size: 78px;
  line-height: 1;
}

.hero-icon {
  margin-bottom: 34px;
}

.error-icon {
  color: var(--danger);
}

.loading-icon {
  margin-bottom: 26px;
  animation: soft-spin 1.4s linear infinite;
}

@keyframes soft-spin {
  to { transform: rotate(360deg); }
}

.card-state p {
  max-width: 440px;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.forecast-sentence {
  max-width: 508px;
  color: var(--text-primary);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.refresh-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .forecast-card,
  .loading-icon {
    animation: none;
    transition: none;
  }
}
