/* The cam pages (chickencam.html, pigcam.html) and the list of cams (cams.html). */
.cam-page { padding: 24px 40px 0; max-width: 1240px; }
.cam-top { margin-bottom: 16px; }
.cam-top .back { font-size: 17px; color: var(--blue); white-space: nowrap; }
.cam-top .sep { margin: 0 8px; opacity: .55; }
.cam-me { float: right; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cam-top h1 { margin: 6px 0 0; display: flex; align-items: center; gap: 14px;
  font-family: var(--blackletter); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1; }
.cam-top h1 img { height: .9em; mix-blend-mode: multiply; }
.cam-top .tagline { margin-top: 4px; }

.cam-page main { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; align-items: start; }

.monitor { background: linear-gradient(#4a3a28, #2b2016); padding: 16px 16px 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #6b5236, 0 8px 20px rgba(0,0,0,.4); }
.screen { position: relative; overflow: hidden; border-radius: 14px / 18px; background: #000;
  box-shadow: inset 0 0 40px rgba(0,0,0,.9); }
.screen video { display: block; width: 100%; aspect-ratio: 1280 / 704; object-fit: cover;
  filter: contrast(1.08) brightness(.95); }
.osd { position: absolute; color: #f2f2f2; font: 600 clamp(11px, 1.5vw, 16px)/1 "Courier New", monospace;
  letter-spacing: 1px; text-shadow: 0 0 3px #000, 1px 1px 0 #000; }
.osd-tl { top: 12px; left: 14px; }
.osd-tr { top: 12px; right: 14px; }
.osd-bl { bottom: 12px; left: 14px; }
.osd-br { bottom: 12px; right: 14px; }
.scanlines { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,0) 1px 3px);
  box-shadow: inset 0 0 70px rgba(0,0,0,.7); }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; color: #e9dcc0; font-size: 16px; }
.controls .btn-small { margin: 0; }
.wage { font-family: var(--gothic); font-size: 18px; color: #f0cf7a; }
.log li.wage { color: var(--red); font-style: italic; }
.purse.paid { animation: purse-paid 1.4s ease-out; }
@keyframes purse-paid { 0%, 30% { background: rgba(217,176,74,.6); } 100% { background: transparent; } }

.cam-side h2 { margin: 0 0 6px; font-family: var(--gothic); color: var(--red); font-size: 30px; }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); font-size: 16px; }
.log li { padding: 6px 2px; border-bottom: 1px dotted var(--border); }
.log time { font-family: "Courier New", monospace; font-size: 14px; opacity: .7; margin-right: 6px; }
.log li.new { animation: flash 1.5s ease-out; }
@keyframes flash { from { background: rgba(217,176,74,.45); } to { background: transparent; } }
.fine-print { font-style: italic; font-size: 15px; opacity: .75; }
.cam-cta { display: block; text-align: center; text-decoration: none; font-size: 20px; }

/* ---------- the list of cams (cams.html) ---------- */
.cams-page main { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cam-tile { display: block; color: inherit; text-decoration: none; }
.cam-tile .monitor { padding-bottom: 16px; }
.cam-tile h2 { margin: 10px 0 2px; font-family: var(--gothic); font-weight: 700; font-size: 28px; line-height: 1.1; }
a.cam-tile:hover h2 { text-decoration: underline; }
.cam-tile > p { margin: 0; font-size: 16px; }
.cam-tile.off h2 { opacity: .55; }
.cam-tile.off > p { font-style: italic; }
.screen.static { aspect-ratio: 1280 / 704;
  background: #2a2a2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: static .5s steps(1, end) infinite; }
@keyframes static {
  0% { background-position: 0 0; } 20% { background-position: -47px 71px; } 40% { background-position: 83px -29px; }
  60% { background-position: -101px -59px; } 80% { background-position: 37px 113px; } }
.no-signal { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #f2f2f2;
  font: 700 clamp(18px, 3vw, 30px)/1 "Courier New", monospace; letter-spacing: 3px;
  text-shadow: 0 0 4px #000, 2px 2px 0 #000; }
@media (prefers-reduced-motion: reduce) { .screen.static, .purse.paid { animation: none; } }

.cam-page .foot { margin: 22px -38px 0; }

@media (max-width: 900px) {
  .cam-page main { grid-template-columns: 1fr; }
  .cams-page main { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .cams-page main { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cam-page { padding: 16px 16px 0; }
  .cam-page .foot { margin: 22px -16px 0; }
  .monitor { padding: 8px 8px 6px; }
  .cam-tile .monitor { padding-bottom: 8px; }
}
