:root {
  color: #281923;
  background: #fff7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #281923;
  --muted: #7b6672;
  --pink: #ff5f9f;
  --rose: #fff0f6;
  --mint: #dff8ec;
  --sky: #e7f0ff;
  --yellow: #fff2b8;
  --line: rgba(77, 42, 62, 0.12);
  --shadow: 0 18px 48px rgba(94, 40, 70, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 240, 246, 0.92), rgba(231, 240, 255, 0.74)),
    #fff7fb;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 96px;
}

.is-login .tabbar {
  display: none;
}

.is-login .topbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 18px;
}

.eyebrow,
.soft-label,
.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.today-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 13px;
}

.view {
  display: grid;
  gap: 14px;
}

.hero-card,
.card,
.photo-viewer,
.music-panel,
.editor-card,
.game-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  min-height: 210px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(135deg, #ffe0ec, #fff4bd 54%, #d8f7eb);
}

.hero-card strong {
  display: block;
  color: var(--ink);
  font-size: 78px;
  font-weight: 950;
  line-height: 0.9;
}

.hero-card span:last-child {
  color: var(--pink);
  font-size: 24px;
  font-weight: 950;
}

.hero-card img {
  width: 170px;
  max-width: 100%;
  justify-self: end;
  border-radius: 18px;
  image-rendering: pixelated;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.login-card,
.user-strip,
.location-card,
.location-person {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  min-height: 520px;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 240, 246, 0.94), rgba(223, 248, 236, 0.82)),
    #fff;
}

.login-card h2 {
  font-size: 36px;
  line-height: 1;
}

.login-hero {
  display: block;
}

.login-card form,
.login-card label {
  display: grid;
  gap: 10px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 7px;
}

.auth-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.auth-switch button.active {
  background: var(--ink);
  color: #fff;
}

.login-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.login-card input,
.profile-card input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
  padding: 0 14px;
}

.profile-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 20px;
}

.profile-card label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.profile-top,
.match-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
}

.profile-top img,
.match-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(94, 40, 70, 0.14);
}

.profile-top h2,
.match-card h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.match-card {
  border-radius: 20px;
  background: var(--rose);
  padding: 12px;
}

.match-card p {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
}

.login-error {
  min-height: 20px;
  color: #b24568;
  font-size: 13px;
  font-weight: 850;
}

.user-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.user-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.user-strip button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  padding: 0 14px;
}

.quote-text {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.word-text {
  color: var(--pink);
  font-size: 28px;
  font-weight: 950;
}

.chemical-card {
  background: linear-gradient(135deg, rgba(231, 240, 255, 0.92), rgba(223, 248, 236, 0.9));
}

.chemical-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.chemical-row h2 {
  font-size: 28px;
  line-height: 1.05;
}

.chemical-row p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.chemical-row strong {
  border-radius: 18px;
  background: #fff;
  color: #2c5c74;
  font-size: 18px;
  padding: 14px;
}

.photo-viewer {
  position: relative;
  min-height: 570px;
  overflow: hidden;
}

.photo-viewer img {
  width: 100%;
  height: 570px;
  display: block;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  background: rgba(40, 25, 35, 0.72);
  color: #fff;
  font-weight: 900;
  padding: 12px 14px;
}

.button-row,
.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button,
.ghost-button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  font-weight: 950;
}

.primary-button {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 95, 159, 0.28);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.music-panel,
.editor-card,
.game-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.music-panel {
  min-height: 530px;
  align-content: center;
  background: linear-gradient(160deg, #281923, #5a274a 55%, #ff88b8);
  color: #fff;
}

.music-kicker {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.record {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #1b1018 0 10px, #321d2c 11px 19px);
}

.music-panel.is-playing .record {
  animation: spinRecord 2.2s linear infinite;
}

.record::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.music-panel h2 {
  font-size: 28px;
}

.music-panel p {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.song-meta {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  text-align: left;
}

.song-meta span {
  font-weight: 850;
}

.song-meta span:last-child {
  justify-self: end;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
}

.spotify-embed {
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: 16px;
}

.song-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.preview-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
}

.editor-card {
  align-items: stretch;
  justify-items: stretch;
  text-align: left;
}

.editor-card label {
  font-size: 24px;
  font-weight: 950;
}

.quote-waiting {
  justify-items: start;
  text-align: left;
}

.quote-waiting h2 {
  font-size: 28px;
  line-height: 1.05;
}

.quote-waiting p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.quote-daily-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 20px;
}

.quote-daily-card {
  min-height: 220px;
  align-content: center;
  background: linear-gradient(135deg, #fff0f6, #fff2b8 58%, #dff8ec);
}

.quote-daily-card h2 {
  color: var(--ink);
  font-size: 32px;
  line-height: 1.08;
}

.quote-daily-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.daily-note-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 20px;
}

.daily-note-card textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.45;
  outline: none;
  padding: 14px;
}

.note-status,
.received-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.received-note {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  background: var(--rose);
  padding: 16px;
}

.received-note p {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

.editor-card textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  padding: 16px;
  outline: none;
}

.location-card,
.location-person {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.location-card h2 {
  font-size: 30px;
}

.location-person p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.location-list {
  display: grid;
  gap: 14px;
}

.shared-map-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 14px;
}

.shared-map {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 95, 159, 0.18), transparent 18%),
    radial-gradient(circle at 74% 48%, rgba(86, 178, 206, 0.18), transparent 20%),
    linear-gradient(135deg, #e7f0ff, #dff8ec 58%, #fff2b8);
}

.real-map,
.leaflet-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.leaflet-map {
  z-index: 1;
  font: inherit;
}

.leaflet-container {
  background: #e7f0ff;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(40, 25, 35, 0.14) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(40, 25, 35, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 25, 35, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  transform: translate(-50%, -100%);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 10px;
  box-shadow: 0 12px 24px rgba(40, 25, 35, 0.24);
  rotate: -45deg;
}

.leaflet-marker-icon .map-pin {
  position: relative;
  transform: none;
}

.map-pin span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
  rotate: 45deg;
}

.map-pin.elif {
  background: var(--pink);
}

.map-pin.ayca {
  background: #56b2ce;
}

.map-pin.elif span {
  background: #d83f82;
}

.map-pin.ayca span {
  background: #2a8cac;
}

.empty-map {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.distance-card {
  display: grid;
  gap: 7px;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.distance-card strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.distance-card a {
  color: var(--pink);
  font-weight: 900;
  text-decoration: none;
}

.location-person h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.galaxy-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, #151126, #24163e 48%, #50305f);
  box-shadow: var(--shadow);
  padding: 20px;
  color: #fff;
}

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

.galaxy-head .card-label,
.galaxy-status {
  color: rgba(255, 255, 255, 0.66);
}

.galaxy-head h2 {
  margin-top: 4px;
  font-size: 46px;
  line-height: 1;
}

.galaxy-head > span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 950;
  padding: 10px 12px;
}

.galaxy-scene {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 95, 159, 0.45), transparent 82px),
    radial-gradient(circle at 78% 26%, rgba(86, 178, 206, 0.38), transparent 78px),
    radial-gradient(circle at 50% 78%, rgba(255, 242, 184, 0.2), transparent 110px),
    linear-gradient(180deg, #090716 0%, #17112b 56%, #2c1a45 100%);
}

.galaxy-scene::before,
.galaxy-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.galaxy-scene::before {
  opacity: 0.58;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.46) 0 1px, transparent 1.5px);
  background-position: 16px 22px, 54px 72px;
  background-size: 58px 58px, 92px 92px;
}

.galaxy-scene::after {
  background: radial-gradient(ellipse at center, transparent 38%, rgba(9, 7, 22, 0.36) 100%);
}

.galaxy-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%) rotate(-18deg);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 34%),
    conic-gradient(from 90deg, transparent, rgba(255, 95, 159, 0.34), rgba(86, 178, 206, 0.28), transparent);
  filter: blur(1px);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 250px;
  height: 118px;
}

.orbit-two {
  width: 330px;
  height: 162px;
  transform: translate(-50%, -50%) rotate(24deg);
}

.sky-star {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: starPulse 2.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.sky-star::before,
.sky-star::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(var(--s) * 2.6);
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: inherit;
  content: "";
}

.sky-star::after {
  width: 2px;
  height: calc(var(--s) * 2.6);
}

.sky-star.elif {
  background: #ff8fc0;
  box-shadow: 0 0 16px rgba(255, 143, 192, 0.9);
}

.sky-star.ayca {
  background: #8be7ff;
  box-shadow: 0 0 16px rgba(139, 231, 255, 0.9);
}

.home-planet {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 12%),
    linear-gradient(145deg, #ff8fc0, #56b2ce);
  box-shadow: 0 0 44px rgba(255, 143, 192, 0.34);
}

.home-planet::after {
  position: absolute;
  left: -26px;
  top: 38px;
  width: 146px;
  height: 22px;
  transform: rotate(-18deg);
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
}

.galaxy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.galaxy-stats div,
.starred-by {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.galaxy-stats strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.galaxy-card .primary-button {
  background: linear-gradient(135deg, #ff5f9f, #56b2ce);
}

.galaxy-card .primary-button:disabled {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: none;
  cursor: default;
}

.galaxy-status {
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.starred-by {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.game-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  padding: 8px;
}

.game-switch button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.game-switch button.active {
  background: var(--ink);
  color: #fff;
}

.snake-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff7fb, #e7f0ff 58%, #dff8ec);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.snake-headline h2 {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

#snakeCanvas {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  justify-self: center;
  border: 8px solid #281923;
  border-radius: 18px;
  background: #fff7fb;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 18px 34px rgba(40, 25, 35, 0.16);
  image-rendering: pixelated;
}

.snake-best {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.snake-best div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.snake-best strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.snake-controls {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.snake-controls div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.snake-controls button {
  display: grid;
  width: 68px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 22px rgba(40, 25, 35, 0.2);
  font-size: 24px;
  font-weight: 950;
}

.tabbar {
  position: fixed;
  right: 50%;
  bottom: 14px;
  z-index: 10;
  display: grid;
  width: min(calc(100% - 24px), 460px);
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  transform: translateX(50%);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(94, 40, 70, 0.2);
  padding: 8px;
  backdrop-filter: blur(16px);
}

.tab-button {
  display: grid;
  gap: 3px;
  min-height: 56px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.tab-button span {
  font-size: 18px;
}

.tab-button.active {
  background: var(--ink);
  color: #fff;
}

@keyframes spinRecord {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.68;
    scale: 0.9;
  }

  50% {
    opacity: 1;
    scale: 1.18;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-card img {
    width: 130px;
  }

  .hero-card strong {
    font-size: 64px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .chemical-row {
    grid-template-columns: 1fr;
  }

  .photo-viewer,
  .photo-viewer img {
    min-height: 0;
    height: 500px;
  }
}
