:root {
  --bg: #070910;
  --card: rgba(12, 16, 28, 0.72);
  --line: rgba(232, 214, 176, 0.28);
  --gold: #e8d6b0;
  --rose: #f3c1c6;
  --text: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.68);
  --sky: #cfefff;
  --cloud: #ffffff;
  --ink: #35506a;
  --blush: #ff8fab;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input {
  font-size: 16px;
  touch-action: manipulation;
}

h1,
h2,
.brand,
.eyebrow {
  font-family: "Cormorant Garamond", "Noto Sans TC", serif;
}

.theme-cinnamon {
  color: var(--ink);
  background: #cde8f8;
}

.theme-cinnamon h1,
.theme-cinnamon h2,
.theme-cinnamon .eyebrow {
  font-family: "Fredoka", "Noto Sans TC", sans-serif;
}

#cesium-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: none;
}

#cesium-container .cesium-viewer,
#cesium-container .cesium-viewer-cesiumWidgetContainer,
#cesium-container .cesium-widget,
#cesium-container .cesium-widget canvas {
  width: 100%;
  height: 100%;
}

#cesium-container .cesium-widget canvas {
  touch-action: none;
  cursor: grab;
}

#cesium-container .cesium-viewer-toolbar,
#cesium-container .cesium-viewer-bottom,
#cesium-container .cesium-infoBox,
#cesium-container .cesium-selection-indicator {
  pointer-events: none !important;
}

#cino-stage {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 118px;
  width: 86px;
  height: 86px;
  z-index: 16;
  pointer-events: none;
  perspective: 640px;
  overflow: visible;
}

.theme-earth #cino-stage {
  display: block;
}

#cino-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cino-turn 5.8s ease-in-out infinite;
}

.cino-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(90, 150, 190, 0.28));
}

#cino-hit {
  position: absolute;
  left: 18%;
  bottom: 8%;
  width: 64%;
  height: 58%;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 50%;
}

#cino-card.cino-pop {
  animation: cino-pop 0.35s ease;
}

@keyframes cino-turn {
  0%,
  100% {
    transform: rotateY(-16deg) translateY(0);
  }
  50% {
    transform: rotateY(16deg) translateY(-8px);
  }
}

@keyframes cino-pop {
  0% {
    transform: scale(1) rotateY(0);
  }
  40% {
    transform: scale(1.12) rotateY(10deg);
  }
  100% {
    transform: scale(1) rotateY(0);
  }
}

.theme-earth #cesium-container {
  opacity: 1;
  pointer-events: auto;
}

#city-dock,
#earth-hint {
  pointer-events: none;
}

#city-buttons,
#city-buttons button,
#city-buttons a {
  pointer-events: auto;
}

.theme-cinnamon #cesium-container {
  opacity: 0;
  pointer-events: none;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 72%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 58%, #fff 50%, transparent 51%);
  opacity: 0.55;
  pointer-events: none;
}

.theme-cinnamon .stars {
  display: none;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(18, 28, 52, 0.28), rgba(7, 9, 16, 0.55));
}

.cinnamon-screen {
  place-items: center start;
  padding: 8vh 6vw 18vh;
  background:
    linear-gradient(180deg, rgba(207, 239, 255, 0.12), rgba(255, 255, 255, 0.04)),
    url("./assets/cinnamoroll-sky.jpg") center / cover no-repeat;
}

.float-cloud {
  position: absolute;
  width: 120px;
  height: 48px;
  background: radial-gradient(circle at 30% 50%, #fff 0 22px, transparent 23px),
    radial-gradient(circle at 55% 40%, #fff 0 28px, transparent 29px),
    radial-gradient(circle at 78% 55%, #fff 0 20px, transparent 21px);
  opacity: 0.72;
  filter: drop-shadow(0 8px 12px rgba(150, 200, 230, 0.35));
  animation: drift 9s ease-in-out infinite;
  pointer-events: none;
}

.float-cloud.c1 {
  top: 12%;
  left: 8%;
}

.float-cloud.c2 {
  top: 22%;
  right: 18%;
  animation-delay: -3s;
  transform: scale(1.2);
}

.float-cloud.c3 {
  bottom: 28%;
  left: 18%;
  animation-delay: -5s;
  transform: scale(0.85);
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 18px -10px;
  }
}

.theme-earth {
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 80%, rgba(255, 232, 240, 0.45), transparent 28%),
    linear-gradient(180deg, #eaf7ff 0%, #cde8f8 55%, #d8effc 100%);
}

.theme-earth .stars {
  opacity: 0.35;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 72%, #ffe8f0 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff 50%, transparent 51%);
}

.theme-earth #city-dock,
.theme-earth #earth-hint {
  color: #5b7a94;
}

.theme-earth #city-buttons button,
.theme-earth #city-buttons a {
  background: rgba(255, 255, 255, 0.78);
  color: #3d5f7a;
  border: 1px solid rgba(170, 214, 240, 0.9);
  box-shadow: 0 8px 18px rgba(140, 190, 230, 0.2);
}

.theme-earth .panel-inner {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  color: var(--ink);
}

.theme-earth .panel-lead,
.theme-earth .list li,
.theme-earth .cards li,
.theme-earth .timeline li {
  color: #5b7a94;
}

.theme-earth .list li,
.theme-earth .cards li,
.theme-earth .timeline li {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(170, 214, 240, 0.85);
}

.theme-earth input,
.theme-earth textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(150, 198, 230, 0.7);
  color: var(--ink);
}

.theme-earth button,
.theme-earth .upload-btn {
  background: linear-gradient(180deg, #fff, #cfeeff 55%, #ffe8f4);
  color: #3d5f7a;
}

.theme-earth .geo-label {
  background: rgba(255, 255, 255, 0.88);
  color: #3d5f7a;
}

.theme-earth .secret {
  background: rgba(205, 232, 248, 0.72);
}

.theme-earth .secret .card {
  background: linear-gradient(180deg, #ffffff, #e7f6ff 55%, #ffe8f2);
  border-color: #b7e4f6;
}

.theme-earth .secret .letter,
.theme-earth .secret h2 {
  color: #4a7fa3;
}

.theme-earth .secret h2 {
  color: #c97a8c;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  font: inherit;
  resize: vertical;
  outline: none;
}

.note-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sky-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(180deg, rgba(207, 239, 255, 0.2), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle, #ffe8f0 0 1.5px, transparent 2px),
    radial-gradient(circle, #fff 0 1px, transparent 2px),
    radial-gradient(circle, #fff4b0 0 1.5px, transparent 2px);
  background-size: 90px 90px, 140px 140px, 70px 70px, 180px 180px;
  background-position: 10% 20%, 80% 30%, 40% 70%, 70% 80%;
  animation: twinkle 4.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.45;
    filter: blur(0);
  }
  50% {
    opacity: 1;
    filter: blur(0.2px);
  }
}

.card {
  position: relative;
  z-index: 10;
  width: min(520px, 100%);
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.fancy-card {
  position: relative;
  z-index: 1;
  margin-left: min(8vw, 80px);
  width: min(480px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow:
    0 22px 60px rgba(120, 176, 220, 0.38),
    0 0 40px rgba(255, 255, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: floaty 5.6s ease-in-out infinite;
}

.fancy-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(120deg, #fff, #b9e7ff, #ffe3ef, #fff6c7, #fff);
  background-size: 220% 220%;
  animation: shine 6s linear infinite;
  z-index: -1;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
}

.theme-cinnamon .eyebrow {
  color: #7aa7c8;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 400;
}

.theme-cinnamon h1 {
  color: #3d5f7a;
  font-weight: 500;
}

.sub,
.letter,
.panel-lead {
  color: var(--muted);
  line-height: 1.8;
}

.theme-cinnamon .sub,
.theme-cinnamon .letter {
  color: #5b7a94;
}

.wish-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.25;
  color: #c97a8c;
  text-shadow: 0 0 18px rgba(255, 232, 242, 0.95);
}

#fw-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#screen-congrats {
  z-index: 12;
  background:
    linear-gradient(180deg, rgba(12, 22, 48, 0.55), rgba(32, 16, 40, 0.5)),
    url("./assets/cinnamoroll-sky.jpg") center / cover no-repeat;
}

#screen-congrats .sparkles {
  display: none;
}

#screen-congrats .sky-veil,
#screen-congrats .float-cloud {
  z-index: 1;
}

#screen-congrats .fancy-card {
  z-index: 4;
}

form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  outline: none;
}

.theme-cinnamon input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(150, 198, 230, 0.7);
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, #f3e7c9, #d7b56a);
  color: #2a210f;
}

.theme-cinnamon button {
  background: linear-gradient(180deg, #fff, #cfeeff 55%, #ffe8f4);
  color: #3d5f7a;
  box-shadow:
    0 8px 18px rgba(140, 190, 230, 0.35),
    inset 0 1px 0 #fff;
}

.error {
  color: var(--rose);
  margin: 14px 0 0;
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0 8px;
}

.clock div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 6px;
}

.theme-cinnamon .clock div {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(170, 214, 240, 0.8);
}

.clock strong {
  display: block;
  font-size: 28px;
  font-family: "Cormorant Garamond", serif;
}

.theme-cinnamon .clock strong {
  font-family: "Fredoka", sans-serif;
  color: #3d5f7a;
}

.clock span {
  color: var(--muted);
  font-size: 12px;
}

.theme-cinnamon .clock span {
  color: #7aa7c8;
}

#peek-btn {
  margin-top: 18px;
}

#topbar {
  position: fixed;
  z-index: 22;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

#topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#topbar,
.page-bar {
  background: linear-gradient(90deg, #d4efff 0%, #ffffff 48%, #ffe8f2 100%);
  border-bottom: 2px solid #b7e4f6;
  box-shadow: 0 8px 22px rgba(140, 196, 226, 0.22);
}

.nav-link,
.page-bar .nav-link,
#topbar .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #4a7fa3;
  background: #ffffff;
  border: 1px solid #b7e4f6;
  border-radius: 999px;
  padding: 8px 14px;
  letter-spacing: 0.04em;
}

.nav-link:hover {
  background: #e7f6ff;
  color: #3d6f92;
}

.nav-link.is-active {
  background: linear-gradient(180deg, #fff, #ffe8f2);
  border-color: #f3c1c6;
  color: #c97a8c;
}

#city-dock {
  position: fixed;
  z-index: 18;
  left: 16px;
  right: 16px;
  bottom: 58px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

#city-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#city-buttons a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

#city-buttons button,
#city-buttons a {
  background: rgba(12, 16, 28, 0.72);
  color: var(--gold);
  border: 1px solid var(--line);
}

#earth-hint {
  position: fixed;
  z-index: 18;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 13px;
}

.geo-label {
  border: 0;
  background: rgba(10, 16, 28, 0.82);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: 0 0 0 2px var(--pin);
  white-space: nowrap;
}

.panel {
  position: fixed;
  z-index: 5;
  inset: 72px 16px 16px;
  display: grid;
  place-items: start center;
  overflow: auto;
}

.panel-inner {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(18px);
}

.place-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3e7c9, #d7b56a);
  color: #2a210f;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.gallery figure {
  margin: 0;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

#spin-btn {
  margin-left: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #f3c1c6;
  background: linear-gradient(180deg, #fff, #ffe8f2);
  color: #c97a8c;
}

#spin-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 72px 16px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(205, 232, 248, 0.72)),
    url("./assets/cinnamoroll-sky.jpg") center / cover no-repeat;
}

#spin-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}

#spin-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
}

.phone-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: min(640px, 100%);
}

.cino-phone-char {
  width: min(150px, 28vw);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 16px rgba(90, 150, 190, 0.3));
}

.cino-phone-right {
  width: min(120px, 24vw);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(280px, 58vw);
  height: min(58vh, 520px);
  padding: 14px 12px 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, #fff, #ffe8f2 70%, #d4efff);
  border: 3px solid #f3c1c6;
  box-shadow: 0 18px 36px rgba(140, 180, 210, 0.28);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  perspective: 900px;
}

#spin-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.spin-card {
  position: absolute;
  inset: 8px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.spin-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7fbff;
}

.spin-card.is-center {
  box-shadow: 0 10px 24px rgba(90, 150, 190, 0.22);
}

.cino-stickers {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 7;
  overflow: hidden;
}

.cino-stickers img {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(90, 150, 190, 0.28));
}

.cino-stickers .s1 {
  left: 8px;
  top: 18%;
  width: 92px;
  animation: drift 8s ease-in-out infinite;
}

.cino-stickers .s2 {
  right: 10px;
  top: 36%;
  width: 76px;
  animation: drift 10s ease-in-out infinite reverse;
}

.cino-stickers .s3 {
  left: 6%;
  bottom: 24%;
  width: 96px;
}

.cino-stickers .s4 {
  right: 16%;
  bottom: 10%;
  width: 84px;
  animation: drift 7s ease-in-out infinite;
}

.theme-earth .cino-stickers .s4 {
  bottom: 150px;
}

.subpage .cino-stickers {
  z-index: 1;
}

.gallery-pager {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.gallery button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.row-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr auto;
  gap: 8px;
}

#food-form,
#future-form {
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
}

#future-form {
  grid-template-columns: 1fr 2fr auto;
}

.list,
.cards,
.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list li,
.cards li,
.timeline li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.cards li {
  margin: 0;
}

.secret {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(212, 239, 255, 0.72), rgba(255, 232, 242, 0.78)),
    url("./assets/cinnamoroll-sky.jpg") center / cover no-repeat;
}

.secret .card {
  background: linear-gradient(180deg, #ffffff, #e7f6ff 55%, #ffe8f2);
  border: 2px solid #b7e4f6;
  color: #4a7fa3;
}

.secret .eyebrow {
  color: #7aa7c8;
}

.secret h2 {
  font-family: "Fredoka", "Noto Sans TC", sans-serif;
  color: #c97a8c;
}

.secret .letter {
  color: #4a7fa3;
  font-weight: 500;
}

.subpage {
  min-height: 100dvh;
  color: #1a4564;
  font-family: "Noto Sans TC", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(225, 244, 255, 0.72)),
    url("./assets/cinnamoroll-sky.jpg") center / cover no-repeat;
}

.page-bar {
  position: sticky;
  top: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.page-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-card {
  position: relative;
  z-index: 8;
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(120, 176, 220, 0.22);
}

.subpage h1 {
  margin: 0 0 8px;
  font-family: "Fredoka", "Noto Sans TC", sans-serif;
  font-weight: 600;
  color: #1a4564;
}

.streak {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #ffe8f2);
  border: 1px solid #f3c1c6;
  color: #c97a8c;
  font-weight: 700;
}

#checkin-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.subpage .panel-lead {
  color: #4a6f88;
}

.subpage input,
.subpage textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #9cc7e4;
  color: #1a4564;
}

.subpage button {
  background: linear-gradient(180deg, #fff, #cfeeff 55%, #ffe8f4);
  color: #1a4564;
}

.subpage .list li,
.subpage .cards li,
.subpage .timeline li {
  background: rgba(255, 255, 255, 0.78);
  border-color: #b7d8ee;
  color: #1a4564;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  form,
  .row-form,
  .note-form,
  #food-form,
  #future-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .card,
  .fancy-card {
    padding: 28px 20px;
  }

  .clock strong {
    font-size: 22px;
  }

  #topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  #topbar nav {
    justify-content: space-between;
  }

  #topbar nav .nav-link,
  .page-bar .nav-link {
    min-height: 44px;
    padding: 10px 8px;
  }

  .page-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cinnamon-screen {
    place-items: start center;
    padding: calc(16px + env(safe-area-inset-top)) 16px 34vh;
  }

  .fancy-card {
    margin-left: 0;
    animation: none;
  }

  .panel {
    inset: 108px 10px calc(12px + env(safe-area-inset-bottom));
  }

  .panel-inner {
    padding: 18px;
  }

  #cino-stage {
    width: 72px;
    height: 72px;
    bottom: 124px;
    right: 8px;
  }

  #city-buttons button,
  #city-buttons a {
    min-height: 44px;
    padding: 10px 14px;
  }

  #earth-hint {
    bottom: calc(10px + env(safe-area-inset-bottom));
    font-size: 11px;
    padding: 0 12px;
  }

  #earth-label-layer .geo-label {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
