:root {
  --ink: #111111;
  --bg: #d8d7d5;
  --card: #ececec;
  --muted: #5d5d5d;
  --line: #c8c8c8;
  --lime: #dbff49;
  --footer: #040404;
  --font-sans: "Geist", "Manrope", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #ffffff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

.topbar {
  background: #000;
  color: #fff;
  border-bottom: 1px solid #1d1d1d;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.35rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-switch {
  position: relative;
  min-width: 250px;
  height: 34px;
  display: grid;
  place-items: center;
}

.top-actions {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
}

.topbar-logo-quer {
  position: absolute;
  height: 30px;
  width: auto;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.topbar.scrolled .top-actions {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.topbar.scrolled .topbar-logo-quer {
  opacity: 1;
  transform: translateY(0);
}

.topbar-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f3f3f3;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}

.signup-modal[hidden] {
  display: none;
}

.signup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.signup-modal-panel {
  position: relative;
  width: min(92vw, 920px);
  padding: 3.25rem 1rem 1rem;
  border-radius: 14px;
  background: #0f0f0f;
  border: 1px solid #242424;
}

.signup-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #2e2e2e;
  background: #151515;
  color: #f2f2f2;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
}

.signup-modal iframe {
  display: block;
  width: 100%;
}

.btn {
  height: 56px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  padding: 0 1.55rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-ghost {
  background: #f3f3f3;
  color: #111;
}

.btn-lime {
  background: #111111;
  border-color: #111111;
  color: #f7f7f7;
}

.btn-lime:hover {
  background: #1d1d1d;
  border-color: #1d1d1d;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -26%, rgba(219, 255, 73, 0.42), transparent 36%),
    linear-gradient(180deg, #f2f1ec 0%, #ebebe6 100%);
  border-bottom: 1px solid #d3d3cf;
}

.hero-globe {
  position: absolute;
  inset: 0 -2% 0 0;
  pointer-events: none;
  z-index: 0;
}

.hero-globe-haze {
  position: absolute;
  right: 7%;
  bottom: -28%;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 247, 234, 0.82) 0%, rgba(255, 247, 234, 0.3) 48%, transparent 76%);
  filter: blur(16px);
  opacity: 0.94;
}

.hero-globe-art {
  position: absolute;
  right: 4.5%;
  bottom: -44%;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  opacity: 0.58;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  transition: transform 160ms ease-out;
}

.hero-globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: auto;
  filter: drop-shadow(0 10px 24px rgba(198, 186, 170, 0.28));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding: 2.7rem 1.2rem 2.35rem;
}

.hero-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  background: #050505;
  display: grid;
  place-items: center;
  padding: 14px;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-line {
  white-space: nowrap;
}

.subtitle {
  margin: 1rem auto 0;
  color: #666;
  max-width: 960px;
  font-size: clamp(1.05rem, 1.75vw, 1.6rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.01em;
}

.hero-form input,
.footer-form input,
.field input,
.field select {
  height: 56px;
  border-radius: 10px;
  border: 1px solid #d2d2d2;
  padding: 0 1rem;
  font-size: 1rem;
  background: #f7f7f7;
  font-family: inherit;
}

.hero-form button,
.footer-form button {
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #111;
  padding: 0 1.7rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.canvas {
  background: var(--bg);
  flex: 1 0 auto;
}

.container {
  max-width: none;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.controls {
  margin-bottom: 1.25rem;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  display: block;
  flex: 0 0 auto;
  min-width: 170px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0;
}

.filter-chip select,
.filter-chip input {
  height: 50px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #efefef;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0 0.95rem;
  color: #202020;
  outline: none;
  box-shadow: none;
}

.filter-chip-wide {
  min-width: 280px;
  flex: 1 1 380px;
}

.filter-chip select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.1rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #383838 50%),
    linear-gradient(135deg, #383838 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 23px,
    calc(100% - 13px) 23px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.active-filter-count {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #111111;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.reset-filters {
  height: 50px;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  background: #f4f4f4;
  color: #232323;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  padding: 0 1.25rem;
  cursor: pointer;
}

.reset-filters:hover {
  background: #ffffff;
}

.status {
  margin: 0.5rem 0 0.95rem;
  color: #4c4c4c;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.status-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #bfbfbf;
  border-top-color: #2d2d2d;
  animation: status-spin 0.8s linear infinite;
}

.status-spinner[hidden] {
  display: none;
}

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

.screenshot-credit {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: #555;
  text-align: right;
}

.screenshot-credit a {
  color: #222;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid #cfcfcf;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(22, 22, 22, 0.14);
  border-color: #bdbdbd;
}

.card:hover .shot {
  transform: scale(1.035);
}

.image-link {
  display: block;
  line-height: 0;
}

.shot {
  width: 100%;
  aspect-ratio: 3308 / 1900;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: #d0d0d0;
  transition: transform 320ms ease;
}

.card-body {
  padding: 0.9rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes {
  margin: 0.38rem 0 0.75rem;
  min-height: 2.6em;
  color: #444;
  font-size: 0.98rem;
}

.meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  margin-top: auto;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid #cfcfcf;
  width: 100%;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  background: #d7d7d7;
  border-radius: 999px;
  font-size: 0.64rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.45rem;
}

.visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #f3f3f3;
  background: #0f0f0f;
  text-decoration: none;
  border-radius: 999px;
  padding: 0 1.05rem;
  border: 1px solid #0f0f0f;
}

.visit:hover {
  background: #1d1d1d;
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid #d2d2d2;
  background: #f4f4f4;
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0 0.8rem;
  cursor: pointer;
}

.action-icon:hover {
  background: #e3e3e3;
}

.gallery-actions {
  display: grid;
  place-items: center;
  padding: 1rem 0 0;
}

.load-more {
  border: 1px solid #bfbfbf;
  background: #ececec;
  color: #161616;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

#scroll-sentinel {
  width: 100%;
  height: 1px;
}

.site-footer {
  background: var(--footer);
  color: #f3f3f3;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-brand img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-copy {
  margin: 0.6rem 0 0;
  max-width: 460px;
  line-height: 1.45;
  color: #cbcbcb;
}

.footer-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  width: min(100%, 490px);
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-meta {
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-form {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    padding: 0.65rem 0.85rem;
  }

  .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-inner {
    padding: 2rem 0.9rem;
  }

  .hero-globe-haze {
    right: -12%;
    bottom: -8%;
    width: 90vw;
    opacity: 0.78;
  }

  .hero-globe-art {
    right: -24%;
    bottom: -22%;
    width: 98vw;
    opacity: 0.42;
  }

  .hero-line {
    white-space: normal;
  }

  .footer-brand img {
    height: 44px;
  }

  .hero-form,
  .footer-form {
    grid-template-columns: 1fr;
  }

  .hero-form button,
  .footer-form button {
    font-size: 1.1rem;
  }

  .container {
    padding: 1.3rem 0.8rem;
  }

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

}
