* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--page, #2b2b2b);
  color: #f3f3f3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  background: var(--header, #000);
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
}
.top .logo { height: 64px; width: auto; max-width: 48vw; object-fit: contain; }
.top .title { font-weight: 700; font-size: 17px; line-height: 1.2; }
.top .title span { display: block; font-weight: 400; font-size: 13px; opacity: .8; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px; }
.card {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px 16px;
}
h1 { font-size: 19px; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0; }
textarea {
  width: 100%; font: 20px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em; padding: 12px 14px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.25); background: #fff; color: #111; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent, #FEDF00); }
.hint { margin: 8px 2px 0; font-size: 14px; opacity: .85; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row.between { justify-content: space-between; margin: 0 0 10px; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; }
button.primary {
  background: var(--accent, #FEDF00); color: #111; font-weight: 800;
  padding: 14px 22px; font-size: 17px; flex: 1 1 auto;
}
button.primary.small { padding: 10px 16px; font-size: 15px; flex: 0 0 auto; }
button.primary:disabled { opacity: .6; cursor: wait; }
button.link { background: none; color: #f3f3f3; text-decoration: underline; padding: 8px 4px; opacity: .85; }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.1); }
.msg.err { background: rgba(226,27,27,.25); }
.help { margin-top: 14px; font-size: 15px; }
.help img { width: 100%; max-width: 360px; border-radius: 10px; display: block; margin-top: 8px; }

.results { margin-top: 18px; }
.group { margin-bottom: 14px; }
.group .typed { font-size: 13px; opacity: .75; margin: 0 0 6px 2px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.photo {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 10px; margin-bottom: 8px;
}
.photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; background: #111; }
.photo .num { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; }
.photo .ev { font-size: 14px; opacity: .8; margin: 2px 0 8px; }
.photo a.dl {
  display: inline-block; background: var(--accent, #FEDF00); color: #111; font-weight: 800;
  text-decoration: none; padding: 10px 16px; border-radius: 10px;
}
.photo.none { grid-template-columns: 1fr; }
.photo.none p { margin: 0; }
.photo.none a { color: var(--accent, #FEDF00); }

footer { padding: 18px 16px 28px; text-align: center; font-size: 13px; opacity: .8; }
footer a { color: #f3f3f3; margin: 0 10px; }
footer p { margin: 10px 0 0; }
@media (min-width: 600px) { .top .logo { height: 88px; max-width: 360px; } h1 { font-size: 22px; } }

.pick ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.pick .pickbtn { width: 100%; text-align: left; background: rgba(255,255,255,.08); color: #f3f3f3; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.pick .pickbtn:hover { background: rgba(255,255,255,.16); }

.sitemenu { background: #1b1b1b; text-align: center; padding: 10px 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.sitemenu a { color: #e6e6e6; text-decoration: none; padding: 6px 10px; display: inline-block; }
.sitemenu a.on, .sitemenu a:hover { color: var(--accent, #FEDF00); }

/* the Digital Downloads drop-down */
.has-sub { position: relative; display: inline-block; }
.has-sub .sub { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; background: #1b1b1b; min-width: 220px; padding: 6px 0; z-index: 5; text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; padding: 8px 16px; white-space: nowrap; }
@media (max-width: 700px) { .has-sub { display: block; } .has-sub .sub { display: block; position: static; transform: none; box-shadow: none; text-align: center; padding: 0 0 4px; } .has-sub .sub a { font-size: 12px; opacity: .85; padding: 4px; } }

button.scan { background: rgba(255,255,255,.12); color: #f3f3f3; font-weight: 700; padding: 14px 18px; font-size: 16px; border: 1px solid rgba(255,255,255,.25); }
.scanner { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .scanbox { position: relative; width: 92vw; max-width: 640px; height: 150px; border: 3px solid var(--accent, #FEDF00); border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scanner .scanhint { position: relative; color: #fff; text-align: center; padding: 0 24px 16px; font-size: 15px; text-shadow: 0 1px 3px #000; }
.scanner .scanstatus { position: relative; color: #fff; text-align: center; padding: 14px 24px 0; font-size: 14px; opacity: .9; text-shadow: 0 1px 3px #000; min-height: 3em; }
.scanner .scanrow { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; padding: 0 12px; }
.scanner button { position: relative; background: #fff; color: #111; font: inherit; font-weight: 700; padding: 12px 18px; border: 0; border-radius: 10px; }
.scanner button:disabled { opacity: .5; }
.scanner #scancancel { background: var(--accent, #FEDF00); }

.scanner[hidden] { display: none; }

/* a photo that has not been purchased: preview with a lock, Email to purchase (10 Nov 2026) */
.photo .peek { position: relative; padding: 0; background: none; border: 0; border-radius: 10px; cursor: zoom-in; width: 120px; height: 120px; }
.photo .peek img { display: block; }
.photo .peek .lock { position: absolute; right: 6px; bottom: 6px; font-size: 18px; filter: drop-shadow(0 1px 2px #000); }
.photo .np { font-size: 13px; opacity: .85; margin: 0 0 8px; }
.photo a.dl.buy { background: #fff; }
.peek { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.peek[hidden] { display: none; }
.peek img { max-width: 94vw; max-height: 74vh; object-fit: contain; border-radius: 8px; background: #111; }
.peek p { color: #fff; text-align: center; font-size: 14px; margin: 12px 0 0; max-width: 520px; }
.peek #peekclose { position: absolute; top: 14px; right: 14px; background: #fff; color: #111; font: inherit; font-weight: 700; padding: 10px 16px; border: 0; border-radius: 10px; }
