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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #d2e3e2;
  color: #000;
  overflow: hidden;
}

@media (min-width: 900px) {
  body {
    background-color: #d6e6d9;
  }
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-pattern--1 {
  display: block;
}

.bg-pattern--2 {
  display: none;
}

@media (min-width: 900px) {
  .bg-pattern--1 {
    display: none;
  }

  .bg-pattern--2 {
    display: block;
  }
}

.main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vmin 6vmin clamp(4.5rem, 12vmin, 6rem);
  text-align: center;
}

.headline {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 8.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.32;
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 6vmin, 3rem);
}

.headline span {
  display: block;
}

.icon-wrap {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 15px;
  width: clamp(104px, 32vmin, 168px);
  height: clamp(104px, 32vmin, 168px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.icon-wrap svg {
  display: block;
  flex: 0 0 auto;
  width: 75%;
  height: 75%;
  min-width: 56px;
  min-height: 56px;
}

.connection-status {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.connection-status__oval {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.connection-google-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.connection-google-circle:hover {
  background: #f3f4f6;
}

.connection-google-circle:active {
  transform: scale(0.96);
}

.connection-google-circle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.connection-google-circle--fixed-tr {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 2;
}

.connection-datetime-oval {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.connection-status__dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: #22c55e;
  border: 2px solid #000;
  border-radius: 50%;
  box-sizing: content-box;
}

.connection-status__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #000;
  white-space: nowrap;
}

.connection-status__datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.connection-status__date {
  opacity: 0.85;
}

.connection-status__time {
  font-weight: 600;
}

.wifi-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 4vmin, 2rem);
}

.google-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 999px;
  color: #000;
  text-decoration: none;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.google-link:hover {
  background: #f3f4f6;
}

.google-link:active {
  transform: scale(0.98);
}

.google-link__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.greeting-footer {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.greeting-footer__burger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.greeting-footer__burger:hover {
  background: #f3f4f6;
}

.greeting-footer__burger:active {
  transform: scale(0.96);
}

.greeting-footer__burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.weather-popup--hidden {
  display: none !important;
}

.weather-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.weather-popup.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.weather-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.weather-popup__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: min(88vh, 560px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #000;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.weather-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
}

.weather-popup__close:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.weather-popup__close:active {
  transform: rotate(90deg) scale(0.95);
}

.weather-popup__greeting-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0 44px 8px 0;
}

.weather-popup__greeting-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 95, 21, 0.16) 0%, rgba(34, 197, 94, 0.12) 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.weather-popup__greeting-material {
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1;
  color: #000;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 40;
}

.weather-popup__greeting {
  margin: 0;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #000;
  line-height: 1.2;
}

.weather-popup__subtitle {
  margin: 0 36px 14px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}

.pulse-fab {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  overflow: visible;
}

.pulse-fab:hover {
  background: #fafafa;
}

.pulse-fab:active {
  transform: scale(0.96);
}

.pulse-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(196, 30, 58, 0.35);
  animation: pulse-fab-ring 2s ease-out infinite;
  pointer-events: none;
}

.pulse-fab__icon {
  position: relative;
  z-index: 1;
  font-size: 1.65rem !important;
  color: #c41e3a;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

@keyframes pulse-fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.pulse-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.pulse-popup.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.pulse-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.pulse-popup__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 44px 10px 0;
}

.pulse-popup__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pulse-popup__brand-icon {
  flex-shrink: 0;
  font-size: 1.6rem !important;
  color: #c41e3a;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.pulse-popup__title {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.pulse-region {
  position: relative;
  flex-shrink: 0;
}

.pulse-region__trigger {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 36px;
  padding: 0 8px 0 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pulse-region__trigger:hover {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.22);
}

.pulse-region__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.pulse-region__twemoji,
.pulse-region__emoji .twemoji-img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  object-fit: contain;
}

.pulse-region__twemoji--tile {
  width: 1.85rem;
  height: 1.85rem;
  margin: auto;
}

.pulse-region__caret {
  font-size: 1.15rem !important;
  color: #555;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  transition: transform 0.2s ease;
}

.pulse-region__trigger[aria-expanded="true"] .pulse-region__caret {
  transform: scale(1.08);
}

.pulse-region__picker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(240px, 72vw);
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.pulse-region__emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.pulse-region__emoji-btn:hover,
.pulse-region__emoji-btn:focus-visible {
  background: #fff;
  border-color: #000;
  outline: none;
  transform: scale(1.06);
}

.pulse-news {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px dashed #ccc;
  border-radius: 12px;
  background: #fafafa;
}

.pulse-news__note {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #333;
}

.pulse-news__note code {
  font-size: 0.72rem;
  padding: 1px 4px;
  background: #eee;
  border-radius: 4px;
}

.pulse-news__load {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pulse-news__load:hover:not(:disabled) {
  background: #333;
}

.pulse-news__load:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pulse-news__status {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #444;
  min-height: 1.2em;
}

.place-pulse__blog-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0b57d0;
}

.place-pulse__loading {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}

.place-pulse__panel {
  margin-top: 4px;
}

.place-pulse__hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #555;
}

.place-pulse__genre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.place-pulse__genre-item {
  margin: 0;
}

.place-pulse__genre-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.place-pulse__genre-btn:hover {
  border-color: #000;
  background: #fff;
}

.place-pulse__genre-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 4px;
}

.place-pulse__genre-teaser {
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #111;
}

.place-pulse__detail {
  margin-top: 10px;
}

.place-pulse__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 6px 10px 6px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.place-pulse__back .material-symbols-outlined {
  font-size: 1.1rem !important;
}

.place-pulse__back:hover {
  color: #000;
}

.place-pulse__detail-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.place-pulse__blogs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.place-pulse__blog {
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.place-pulse__blog-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

.place-pulse__blog-excerpt {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #444;
}

.weather-popup__state {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.weather-popup__place {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}

.weather-popup__current {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f4f7f6;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.weather-popup__cloud-icon {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
}

.weather-popup__current-text {
  min-width: 0;
}

.weather-popup__current-desc {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.weather-popup__current-temp {
  margin: 0;
  font-size: 0.85rem;
  color: #333;
}

.weather-popup__forecast-title {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

.weather-popup__forecast {
  list-style: none;
  margin: 0;
  padding: 0;
}

.weather-popup__forecast-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.82rem;
}

.weather-popup__forecast-item:last-child {
  border-bottom: none;
}

.weather-popup__forecast-day {
  font-weight: 600;
  color: #000;
}

.weather-popup__forecast-desc {
  color: #444;
}

.weather-popup__forecast-temps {
  font-variant-numeric: tabular-nums;
  color: #000;
  text-align: right;
}
