:root {
  --bg: #0a0a0b;
  --text: #f2efe8;
  --muted: #aaa59b;
  --faint: rgba(242, 239, 232, .12);
  --gold: #f4b545;
  --gold-hi: #ffd987;
  --gold-ink: #1d1405;
  --ok: #86dca0;
  --err: #ff9b8f;
  --glass-line: rgba(255, 255, 255, .16);
  --radius: 14px;
  --gutter: 16px;
  --display: "Pirata One", serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 700px) { :root { --gutter: 32px; } }

h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px); line-height: .98; letter-spacing: .005em;
  margin: 0 0 18px; color: #fff;
}
.eyebrow {
  margin: 0 0 12px;
  font: 600 14px/1 var(--label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.fine { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, border-color .25s;
}
.btn::before { /* top sheen */
  content: ""; position: absolute; inset: 1px 1px 52% 1px; z-index: -1;
  border-radius: 999px 999px 40% 40% / 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  pointer-events: none;
}
.btn::after { /* glint that sweeps across on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.25), 0 16px 40px rgba(0,0,0,.45); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn.gold {
  color: var(--gold-ink); border-color: rgba(255, 228, 165, .9);
  background: linear-gradient(180deg, rgba(255, 220, 140, .97) 0%, rgba(244, 181, 69, .95) 55%, rgba(222, 150, 30, .95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(140,80,0,.35), 0 12px 34px rgba(244,170,50,.32);
}
.btn.gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(140,80,0,.35), 0 18px 44px rgba(244,170,50,.45); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: saturate(.6); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-mark { transition: opacity .3s; }
.nav-mark img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font: 600 15px/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled {
  background: rgba(10, 10, 11, .55); border-bottom-color: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.nav:not(.scrolled) .nav-mark { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; background: #0a0a0b; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,11,.78) 24%, rgba(10,10,11,.1) 58%, rgba(10,10,11,0) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 22%),
    radial-gradient(120% 90% at 20% 100%, rgba(0,0,0,.35), transparent 60%);
}
.hero-inner { padding: 0 0 clamp(48px, 9vh, 110px); }
.hero .eyebrow { color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1 { margin: 0; line-height: 0; }
.wordmark { width: clamp(300px, 60vw, 880px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.sub {
  margin: clamp(12px, 2vh, 20px) 0 0;
  font: 500 clamp(19px, 2.2vw, 26px)/1.3 var(--body);
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3.5vh, 34px); }
.hero-tag {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px);
  font: 600 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.75); padding: 9px 13px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------------------------------------------------------------- intro */
.intro { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--faint); }
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.statement { font: 500 clamp(30px, 3.8vw, 50px)/1.08 var(--body); letter-spacing: -.015em; margin: 0; color: #fff; }
.intro-grid > p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: #d9d5cc; max-width: 46ch; }

/* ---------------------------------------------------------------- feature rows */
.feature {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(64px, 9vw, 120px) 0 0;
}
.feature.flip { grid-template-columns: 1fr 1.45fr; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text p:not(.eyebrow) { color: #e4e0d8; margin: 0 0 14px; max-width: 54ch; }
.zone {
  position: absolute; right: 16px; bottom: 10px;
  font-family: var(--display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; color: #fff;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 4px 10px rgba(0,0,0,.6);
  pointer-events: none;
}
.points { list-style: none; margin: 6px 0 0; padding: 0; }
.points li { padding: 14px 0; border-top: 1px solid var(--faint); color: #e4e0d8; font-size: 17px; }
.points li:last-child { border-bottom: 1px solid var(--faint); }
.points b { color: #fff; font-weight: 600; }
.points li.soon { color: #b9b4aa; }
.soon-tag {
  margin-left: 10px; white-space: nowrap;
  font: 600 13px/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

/* ---------------------------------------------------------------- the city */
.city { padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 9vw, 110px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head > p { margin: 0; color: #cfcac0; max-width: 48ch; justify-self: end; }
.places {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 215px);
  grid-auto-flow: dense; gap: 14px;
}
.city-text { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12px 6px 0; }
.city-text h2 { font-size: clamp(46px, 4.8vw, 72px); line-height: .9; margin: 0 0 16px; }
.city-text p:not(.eyebrow) { margin: 0; color: #d9d5cc; font-size: 16px; max-width: 22ch; }
.place { margin: 0; min-height: 0; }
.place.big { grid-column: span 2; grid-row: span 2; }
.place.wide { grid-column: span 2; }
@media (min-width: 1101px) {  /* fixed editorial arrangement on wide screens */
  .places .city-text { grid-column: 1; grid-row: 1 / span 2; }
  .places .p-molos { grid-column: 2 / span 2; grid-row: 1 / span 2; }
  .places .p-castle { grid-column: 4; grid-row: 1; }
  .places .p-space-bowling { grid-column: 4; grid-row: 2; }
  .places .p-tourist-night { grid-column: 1 / span 2; grid-row: 3 / span 2; }
  .places .p-oldtown-street { grid-column: 3 / span 2; grid-row: 3 / span 2; }
}
.place .frame { position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.place:hover img { transform: scale(1.05); }
.place .zone { font-size: clamp(20px, 1.7vw, 27px); right: 12px; bottom: 6px; }
.place.big .zone { font-size: clamp(28px, 2.8vw, 42px); right: 18px; bottom: 10px; }

/* ---------------------------------------------------------------- glass sections over the city */
.tech, .contribute { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0; }
.tech-bg, .contribute-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tech::after, .contribute::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.tech::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,11,.55) 22%, rgba(10,10,11,.5) 70%, var(--bg) 100%); }
.contribute::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,11,.72) 18%, rgba(10,10,11,.84) 60%, var(--bg) 100%); }
.tech .section-head > p, .contribute .section-head > p { color: #e4e0d8; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glass-card, .panel {
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  border: 1px solid var(--glass-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 60px rgba(0,0,0,.35);
}
.glass-card { padding: 24px 24px 22px; }
.glass-card h3 { margin: 0 0 8px; font: 700 19px/1.1 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.glass-card p { margin: 0; font-size: 16px; color: #e6e2da; }

/* ---------------------------------------------------------------- contribute */
.panel { padding: clamp(14px, 2vw, 22px); }
.uploader { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.map-wrap { position: relative; }
#map { height: 520px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #1a1b1e; }
.leaflet-container { font: inherit; }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.5); }
.leaflet-control-layers {
  background: rgba(10,10,11,.75) !important; color: var(--text); border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 10px !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.leaflet-control-layers label { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.leaflet-bar a { background: rgba(10,10,11,.8); color: #fff; border-color: rgba(255,255,255,.15); }
.leaflet-bar a:hover { background: rgba(40,40,44,.95); color: #fff; }
.leaflet-control-attribution { background: rgba(10,10,11,.6) !important; color: #aaa; }
.leaflet-control-attribution a { color: #ccc; }
.pin-hint {
  position: absolute; left: 10px; bottom: 28px; z-index: 500;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px);
  background: rgba(10,10,11,.78); border: 1px solid rgba(244,181,69,.8); border-radius: 12px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 6px 14px 6px 6px; font-size: 14px; pointer-events: none;
}
.pin-hint img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.pin-hint[hidden] { display: none; }
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border: 2px solid #000; box-shadow: 0 3px 8px rgba(0,0,0,.6);
  display: grid; place-items: center;
}
.pin b { transform: rotate(45deg); color: var(--gold-ink); font: 700 14px/1 var(--label); }
.pin.active { background: #fff; }

.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pick { display: flex; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick small { color: var(--muted); font-size: 14px; }
.pick:focus-within .btn { outline: 2px solid #fff; outline-offset: 3px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow: auto; }
.list:empty::before {
  content: "Your photos will appear here. Choose one, then tap the map where it was taken.";
  display: block; padding: 20px; color: var(--muted); font-size: 15px;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 12px;
}
.item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; cursor: pointer;
  padding: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(0,0,0,.25);
}
.item.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.item .meta { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.item .state { font-size: 14px; color: var(--muted); }
.item .state.ok { color: var(--ok); }
.item .inputs { display: flex; gap: 6px; }
.item select, .item input { min-width: 0; padding: 7px 9px; font-size: 14px; }
.item select { flex: 0 0 auto; }
.item input { flex: 1 1 auto; }
.item .rm { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px; }
.item .rm:hover { color: #fff; }

input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 12px;
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #8b867d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.5); }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #d4d0c7; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.fields .check, .fields .btn, .fields .status { grid-column: 1 / -1; }
.fields .btn { justify-self: start; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 15px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; padding: 0; }
.status { margin: 0; min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.join { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 9vw, 110px); }
.join-text p:not(.eyebrow) { color: #d9d5cc; max-width: 40ch; }
#join-form { display: flex; flex-direction: column; gap: 18px; }
#join-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#join-form .btn { align-self: flex-start; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; color: #d4d0c7; margin-bottom: 10px; padding: 0; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; color: var(--text); user-select: none;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: background .2s, border-color .2s;
}
.chips span:hover { border-color: rgba(255,255,255,.35); }
.chips input:checked + span { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: var(--gold-hi); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------------------------------------------------------- Vizzet Games logotype (bubbly, white on black) */
.vz-logo { display: inline-block; height: 1.5em; width: auto; vertical-align: -0.42em; margin: 0 .14em; }
.footer .vz-logo { height: 1.6em; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--faint); padding: 44px 0 56px; color: #cfcac0; font-size: 15px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-mark { height: 34px; width: auto; }
.footer p { margin: 4px 0; }
.footer b { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- credits page */
.page-credits main { padding: 56px 0 72px; }
.page-credits h1 { font-family: var(--display); font-weight: 400; font-size: 56px; margin: 12px 0; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.credits { padding-left: 18px; color: #d4d0c7; }
.credits li { margin: 12px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .places { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 24vw, 240px); }
  .places .city-text { grid-column: span 2; grid-row: auto; padding: 0 0 8px; }
  .city-text p:not(.eyebrow) { max-width: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .intro-grid, .feature, .section-head, .join, .uploader { grid-template-columns: 1fr; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .section-head > p { justify-self: start; }
  #map { height: 56vh; min-height: 340px; }
  .side { order: -1; }
  .list { max-height: none; }
  .hero-tag { display: none; }
}
@media (max-width: 600px) {
  .wordmark { width: 100%; }
  .tech-grid, .fields, #join-form .row { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .places .city-text { grid-column: auto; }
  .place.big, .place.wide { grid-column: auto; grid-row: auto; }
  .place .frame { height: auto; aspect-ratio: 16 / 10; }
  .places .place .zone, .places .place.big .zone { font-size: 28px; right: 14px; bottom: 8px; }
  .cta .btn { flex: 1 1 auto; }
  .item .inputs { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after, .place img { transition: none; }
}
