/* Family widgets — chrome from lathom-shell.css (LPS) */
:root {
  --bg: #070b10;
  --panel: #10161e;
  --line: #243040;
  --text: #eef1f6;
  --muted: #9aa6b8;
  --dim: #6a7588;
  --cyan: #5ee7ff;
  --gold: #d4a84b;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); /* solid dark */
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Title years accent */
h1.contest-page-title .years,
.contest-page-title .years {
  color: var(--gold);
  font-weight: 650;
  font-size: 0.88em;
}

.content-card .cta-row { margin: 0.35rem 0 0; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: .45rem 1.05rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  touch-action: manipulation;
}
a.btn.primary {
  color: #041418;
  background: var(--cyan);
  border: 1px solid transparent;
}
a.btn:hover { filter: brightness(1.06); text-decoration: none; }

/* Photo: no chrome borders / hints — full content width on PC */
.viewer {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.viewer.bare .viewer-stage {
  border: none;
  border-radius: 10px;
  background: #05080c;
}
.viewer-stage {
  position: relative;
  /* Mobile: compact; PC: taller so photo fills the column */
  height: min(48vh, 420px);
  min-height: 220px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 900px) {
  .viewer-stage {
    /* Expand on desktop — nearly full content width height */
    height: min(72vh, 720px);
    min-height: 420px;
  }
}
.viewer-stage.zoomed { cursor: grab; }
.viewer-stage.grabbing { cursor: grabbing; }
.viewer-world {
  position: relative;
  will-change: transform;
  transform: translate(0, 0);
  line-height: 0;
  flex-shrink: 0;
}
.viewer-world img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

@media (max-width: 520px) {
  .viewer-stage {
    height: min(42vh, 340px);
    min-height: 200px;
  }
}
