/* ELSEWHERE, NEVADA — Y2K TOWN SKIN */

:root {
  --ink: #2d1e2b;
  --cream: #efe6cf;
  --dust: #c9a47b;
  --rust: #7e3e38;
  --wine: #4f2438;
  --night: #14131f;
  --sky: #5d6f8d;
  --teal: #4f8f8a;
  --acid: #b8d86f;
  --pink: #d47f9b;
  --blue: #7db0c7;
  --yellow: #d4b85f;
  --line: #241724;
  --pixel: "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #19131a;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.025) 75%);
  background-size: 18px 18px;
  image-rendering: pixelated;
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 20px));
  margin: 12px auto;
  background: #d8c8a8;
  border: 4px ridge #b8946f;
  box-shadow: 0 0 0 3px #211724, 12px 12px 0 rgba(0,0,0,.28);
}

.marquee-wrap {
  overflow: hidden;
  border-bottom: 2px solid #27182a;
  background: #211724;
  color: #f1df83;
  font: bold 12px var(--pixel);
  letter-spacing: 1px;
}

.marquee {
  width: max-content;
  padding: 7px 0;
  animation: scroll-left 24s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(30%); }
  to { transform: translateX(-100%); }
}

.sign-board {
  padding: 30px 16px 26px;
  text-align: center;
  color: #f4e8c7;
  background:
    linear-gradient(rgba(79,36,56,.86), rgba(79,36,56,.9)),
    repeating-linear-gradient(0deg, #57352d 0 5px, #6d4338 5px 10px);
  border-bottom: 4px double #2b1724;
  text-shadow: 2px 2px 0 #2b1724;
}

.sign-board h1 {
  margin: 2px 0 5px;
  font: bold clamp(34px, 7vw, 82px) var(--pixel);
  letter-spacing: -3px;
}

.tiny-code,
.tagline,
.kicker,
.micro {
  font-family: var(--pixel);
}

.tiny-code {
  margin: 0;
  font-size: 11px;
  letter-spacing: 3px;
}

.tagline {
  margin: 0;
  font-size: 13px;
}

.button-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: #2b1a2b;
  border-bottom: 4px ridge #a78362;
}

.button-strip a,
.pixel-button {
  display: inline-block;
  padding: 8px 12px;
  color: #211724;
  background: linear-gradient(#f6ebce, #caa879);
  border: 3px outset #ead4a6;
  font: bold 12px var(--pixel);
  text-decoration: none;
  cursor: pointer;
}

.button-strip a:active,
.pixel-button:active {
  border-style: inset;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(rgba(212,198,163,.88), rgba(212,198,163,.9)),
    repeating-linear-gradient(90deg, #cab58e 0 2px, #ddcba7 2px 4px);
}

.sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.window {
  border: 3px outset #d8c49b;
  background: #eee3c8;
}

.window-title {
  padding: 5px 8px;
  color: #f4e8c7;
  background: linear-gradient(90deg, #4f2438, #6e3b52);
  border-bottom: 2px solid #2a1927;
  font: bold 12px var(--pixel);
  letter-spacing: 1px;
}

.window-body {
  padding: 10px;
  background:
    linear-gradient(rgba(247,239,218,.9), rgba(236,222,188,.9)),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(91,61,48,.05) 15px 16px);
}

.weather-box strong {
  font: bold 28px var(--pixel);
}

.mini-meter {
  height: 14px;
  padding: 2px;
  background: #2b1b2b;
  border: 2px inset #8f765e;
}

.mini-meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #c15b63 0 6px, #8f3d4d 6px 12px);
}

.status-list p {
  margin: 6px 0;
  font-size: 12px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: 1px solid #2a1927;
}
.online { background: #86a86e; }
.warning { background: #d2b85d; }
.offline { background: #8c5b67; }

.blinkie-stack {
  display: grid;
  gap: 4px;
}

.blinkie {
  padding: 4px 6px;
  text-align: center;
  border: 2px solid #f6e8c9;
  outline: 1px solid #2a1927;
  font: bold 10px var(--pixel);
  letter-spacing: .5px;
  animation: blinkie 1.2s steps(2, end) infinite;
}
.blinkie.pink { background: #c67491; color: #32172a; }
.blinkie.blue { background: #75a7be; color: #172d36; animation-delay: .3s; }
.blinkie.green { background: #a6bd67; color: #26301b; animation-delay: .6s; }

@keyframes blinkie {
  50% { filter: brightness(1.35) contrast(1.08); }
}

.main-panel { min-width: 0; }

.hero-card {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  border: 3px outset #d8c49b;
  background: #eadbb9;
}

.hero-image {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#596b88 0 48%, #9d6d65 49% 59%, #a77e55 60% 100%);
  border-bottom: 3px inset #8c6a4e;
}

.sun {
  position: absolute;
  top: 38px;
  right: 80px;
  width: 58px;
  height: 58px;
  background: #e4c86e;
  border: 4px solid #9b7043;
  box-shadow: 0 0 0 4px rgba(228,200,110,.2);
  border-radius: 50%;
}

.mountains {
  position: absolute;
  left: -5%;
  width: 110%;
  clip-path: polygon(0 100%, 10% 55%, 22% 80%, 35% 38%, 48% 75%, 60% 45%, 74% 82%, 88% 50%, 100% 100%);
}

.mountains.back {
  bottom: 104px;
  height: 150px;
  background: #5a4858;
  opacity: .72;
}

.mountains.front {
  bottom: 74px;
  height: 126px;
  background: #3d303e;
}

.road {
  position: absolute;
  left: 29%;
  bottom: -20px;
  width: 42%;
  height: 185px;
  background: #4e4445;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.road::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 12px;
  width: 3px;
  height: 160px;
  background: repeating-linear-gradient(#e5d48c 0 13px, transparent 13px 24px);
}

.road-sign {
  position: absolute;
  left: 9%;
  bottom: 65px;
  padding: 8px 10px;
  color: #eee4c8;
  background: #2c5d50;
  border: 4px solid #d8d0ae;
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  transform: rotate(-2deg);
  font: bold 15px var(--pixel);
  text-align: center;
}

.road-sign::before,
.road-sign::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 5px;
  height: 62px;
  background: #6d6254;
}
.road-sign::before { left: 18px; }
.road-sign::after { right: 18px; }

.road-sign small {
  display: block;
  font-size: 9px;
}

.hero-copy {
  padding: 18px;
  background:
    linear-gradient(rgba(239,229,199,.92), rgba(231,213,174,.92)),
    radial-gradient(circle at 15% 15%, rgba(114,71,69,.12), transparent 30%);
}

.hero-copy h2 {
  margin: 0 0 8px;
  color: #4d2437;
  font: bold clamp(26px, 4vw, 44px) Georgia, serif;
}

.kicker {
  margin: 0 0 4px;
  color: #7d4a54;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.radio-message {
  min-height: 1.2em;
  color: #5b3443;
  font: bold 12px var(--pixel);
}

.webmaster {
  text-align: center;
}

.avatar-placeholder {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #f0dfbc;
  background:
    linear-gradient(135deg, #6d3b51, #354a64);
  border: 4px ridge #b79b76;
  font: bold 18px var(--pixel);
}

.counter-box span {
  display: inline-block;
  padding: 3px 5px;
  color: #a6d46d;
  background: #181419;
  border: 2px inset #6e5d4a;
  font: bold 16px var(--pixel);
}

.town-section {
  padding: 10px;
  background: #b6946d;
  border-top: 4px double #5a382f;
  border-bottom: 4px double #5a382f;
}

.section-banner {
  margin-bottom: 8px;
  padding: 7px;
  text-align: center;
  color: #f2df9c;
  background: #3e2637;
  border: 3px ridge #b68e64;
  font: bold 13px var(--pixel);
  letter-spacing: 1px;
}

.town-map {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(192,151,96,.18), rgba(192,151,96,.18)),
    #cda96f;
  border: 4px inset #826149;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(70,46,39,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,46,39,.28) 1px, transparent 1px);
  background-size: 32px 32px;
}

.highway {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 46%;
  height: 90px;
  display: grid;
  place-items: center;
  color: rgba(247,229,169,.5);
  background: #4a4141;
  border-top: 5px solid #6e5e59;
  border-bottom: 5px solid #6e5e59;
  transform: rotate(-2deg);
  font: bold 18px var(--pixel);
}

.building {
  width: 150px;
  position: absolute;
  color: #241724;
  text-decoration: none;
  filter: drop-shadow(5px 6px 0 rgba(0,0,0,.2));
}

.building-face {
  min-height: 86px;
  padding: 12px 8px;
  display: grid;
  place-items: center;
  background: #e8d7ad;
  border: 4px solid #4a2f34;
  text-align: center;
  font: bold 12px var(--pixel);
}

.building-face small {
  margin-top: 6px;
  color: #7b3347;
  font-size: 9px;
}

.roof {
  display: block;
  height: 24px;
  background: #7b3a40;
  clip-path: polygon(10% 100%, 22% 0, 78% 0, 90% 100%);
}

.dome {
  display: block;
  width: 94px;
  height: 48px;
  margin: 0 auto -2px;
  background: #6d8293;
  border: 4px solid #35414b;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}

.tower {
  display: block;
  width: 8px;
  height: 110px;
  margin: 0 auto -2px;
  position: relative;
  background: #46343d;
}
.tower::before,
.tower::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid #46343d;
  border-radius: 50%;
  transform: translateX(-50%);
}
.tower::before { top: 8px; width: 32px; height: 32px; }
.tower::after { top: -4px; width: 55px; height: 55px; }

.motel { left: 7%; top: 12%; }
.market { left: 33%; top: 17%; }
.observatory { right: 8%; top: 9%; }
.museum { left: 15%; bottom: 9%; }
.aviary { right: 28%; bottom: 8%; }
.radio { right: 7%; bottom: 8%; }

.building:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.cactus,
.tumbleweed {
  position: absolute;
  font-size: 34px;
  filter: saturate(.7);
}
.c1 { left: 4%; bottom: 36%; }
.c2 { right: 18%; top: 36%; }
.c3 { left: 54%; bottom: 29%; }
.tumbleweed {
  left: 48%;
  top: 52%;
  color: #7f5c3a;
  animation: tumble 10s linear infinite;
}

@keyframes tumble {
  from { transform: translateX(-40px) rotate(0deg); }
  to { transform: translateX(340px) rotate(720deg); }
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 10px;
  padding: 10px;
  background: #d8c8a8;
}

.bulletin-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background:
    repeating-linear-gradient(45deg, #8b6648 0 8px, #9b7554 8px 16px);
}

.note {
  min-height: 130px;
  padding: 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.22);
  transform: rotate(-1deg);
  font-family: "Comic Sans MS", cursive;
}
.note:nth-child(2) { transform: rotate(2deg); }
.note:nth-child(3) { transform: rotate(1deg); }
.note:nth-child(4) { transform: rotate(-2deg); }

.note strong {
  font-family: var(--pixel);
}

.yellow { background: #e8d889; }
.pink-note { background: #d99bb0; }
.blue-note { background: #9ac0d1; }
.green-note { background: #b6ca86; }

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.polaroid-grid a {
  padding: 7px 7px 18px;
  background: #eee7d5;
  border: 1px solid #a4876a;
  box-shadow: 3px 3px 0 rgba(0,0,0,.18);
  text-decoration: none;
  transform: rotate(-1deg);
}

.polaroid-grid a:nth-child(even) { transform: rotate(2deg); }

.photo {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 5px;
  border: 2px inset #89745f;
}
.ph1 { background: linear-gradient(#63718c 45%, #9d6b55 46% 100%); }
.ph2 { background: radial-gradient(circle at 70% 20%, #d9d090 0 8%, transparent 9%), #252235; }
.ph3 { background: repeating-linear-gradient(90deg, #334557 0 5px, #496579 5px 10px); }
.ph4 { background: linear-gradient(135deg, #6d3040, #2f2332); }

.polaroid-grid small {
  font-family: "Comic Sans MS", cursive;
}

.guestbook-strip,
.link-yard {
  margin: 10px;
  padding: 18px;
  border: 3px outset #d8c49b;
}

.guestbook-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #eee1bd;
  background:
    linear-gradient(rgba(65,34,52,.9), rgba(65,34,52,.9)),
    repeating-linear-gradient(90deg, #5c3c2f 0 6px, #6c4938 6px 12px);
}

.guestbook-strip h2,
.link-yard h2 {
  margin: 0 0 6px;
  font: bold 24px var(--pixel);
}

.link-yard {
  background:
    linear-gradient(rgba(229,215,179,.88), rgba(229,215,179,.88)),
    repeating-linear-gradient(0deg, #9a7b5b 0 2px, #b2926b 2px 4px);
}

.button-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.button-wall span {
  width: 88px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 2px;
  color: #f4e7c8;
  background: linear-gradient(135deg, #5d2d44, #2f4154);
  border: 2px outset #bea276;
  font: bold 8px var(--pixel);
  text-align: center;
}

footer {
  padding: 14px;
  color: #decda8;
  background: #281927;
  text-align: center;
  border-top: 4px ridge #aa865f;
  font-size: 11px;
}

@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .left-sidebar,
  .right-sidebar {
    grid-row: 2;
  }

  .town-map {
    min-height: 850px;
  }

  .building {
    width: 140px;
  }

  .motel { left: 7%; top: 8%; }
  .market { left: 52%; top: 12%; }
  .observatory { right: 7%; top: 31%; }
  .museum { left: 8%; bottom: 25%; }
  .aviary { left: 48%; bottom: 22%; }
  .radio { right: 8%; bottom: 3%; }
}

@media (max-width: 650px) {
  .page-shell {
    width: calc(100% - 8px);
    margin: 4px auto;
  }

  .welcome-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .main-panel,
  .left-sidebar,
  .right-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-image {
    min-height: 260px;
  }

  .bulletin-board {
    grid-template-columns: 1fr;
  }

  .guestbook-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .town-map {
    min-height: 1120px;
  }

  .building {
    width: 150px;
  }

  .motel { left: 7%; top: 5%; }
  .market { right: 6%; left: auto; top: 20%; }
  .observatory { left: 7%; right: auto; top: 36%; }
  .museum { right: 6%; left: auto; top: 51%; bottom: auto; }
  .aviary { left: 7%; top: 67%; bottom: auto; }
  .radio { right: 6%; bottom: 3%; }

  .highway {
    top: 47%;
    transform: rotate(90deg);
  }

  .tumbleweed {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
