/* start.css — the front gate. Two doors, one pixel town, no JavaScript. */

/* The page is one column: ribbon on top, start screen taking the rest.
   Without this the ribbon stacks on top of a full-height .start and the
   page scrolls by exactly the ribbon's height. */
body {
  min-height: 100svh;
  min-height: 100vh;      /* fallback for older mobile browsers */
  display: flex;
  flex-direction: column;
}

.topbanner { flex: 0 0 auto; }

.start {
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    to bottom,
    var(--sky-deep)  0%,
    var(--sky-deep) 30%,
    var(--sky-mid)  55%,
    var(--sky-warm) 80%,
    #d6795c        100%
  );
}

/* --- The card ----------------------------------------------------- */

.start__card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 72px) var(--gutter) 24px;
  text-align: center;
}

.start__kicker {
  margin: 0 0 18px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
}

.start__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(17px, 5.2vw, 34px);
  line-height: 1.45;
  color: var(--text);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.start__role {
  margin: 20px auto 0;
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--text-dim);
  text-wrap: balance;
}

/* --- The two doors ------------------------------------------------ */

.start__actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

/* The pixel font is wide; keep these two labels on one line each. */
.start__actions .btn { font-size: 11px; white-space: nowrap; }

@media (min-width: 620px) {
  .start__actions { flex-direction: row; justify-content: center; }
  .start__actions .btn { flex: 0 0 auto; font-size: 12px; }
}

.start__note {
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--text-quiet);
}

/* --- Footer links ------------------------------------------------- */

.start__links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0 var(--gutter) 20px;
  list-style: none;
  font-size: 0.95rem;
}
.start__links a {
  color: var(--text-dim);
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  padding: 6px 2px;          /* keeps the tap target >= 44px tall */
  display: inline-block;
}
.start__links a:hover { color: var(--lamp); }

/* --- The town ----------------------------------------------------- */

.scene {
  position: relative;
  width: 100%;
  margin-top: auto;
  line-height: 0;            /* no descender gap under the SVG */
  pointer-events: none;
}

.scene svg {
  width: 100%;
  height: auto;
  display: block;
  shape-rendering: crispEdges;   /* keeps every pixel edge hard */
}

/* Lamp-lit windows breathe; clouds drift. Both stop under
   prefers-reduced-motion via the global rule in base.css. */
.scene__window { animation: flicker 4s steps(2, end) infinite; }
.scene__cloud--a { animation: drift 90s linear infinite; }
.scene__cloud--b { animation: drift 140s linear infinite; }
.scene__sina { animation: bob 1.6s steps(2, end) infinite; }

@keyframes flicker {
  0%, 92%  { opacity: 1; }
  96%      { opacity: 0.72; }
  100%     { opacity: 1; }
}
@keyframes drift {
  from { transform: translateX(-40px); }
  to   { transform: translateX(200px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1px); }
}

/* The roadworks ribbon sits above everything, full width. */
.topbanner {
  margin: 0;
  padding: 9px var(--gutter);
  text-align: center;
  background: rgba(23, 18, 42, 0.55);
  border-bottom: 2px solid var(--panel-edge);
}

@media (max-width: 380px) {
  .topbanner .construction { font-size: 8px; padding: 8px 11px; }
}
