/* Script to Shot List Maker. Builds on /styles.css. Phone first. */
[hidden] { display: none !important; }
.slm { position: relative; z-index: 1; flex: 1; width: min(100%, 72rem); margin-inline: auto; padding: clamp(2rem, 6vw, 4rem) 16px 4rem; animation: rise-in 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.slm a:not(.sbtn) { color: var(--gold-1); }
.eyebrow { margin: 0 0 0.6rem; color: var(--gold-2); font-family: var(--pixel); font-size: 0.8rem; letter-spacing: 0.04em; }
.intro { max-width: 46rem; margin: 0 auto; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The form */
.maker { max-width: 46rem; margin: 2rem auto 0; padding: 1.25rem; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 44px rgba(251, 158, 11, 0.14); }
.paste-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem; margin-bottom: 0.4rem; }
.paste-head label, .opt label { color: var(--white); font-weight: 600; }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold-1); font: inherit; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
#script { display: block; width: 100%; min-height: 12rem; padding: 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: #0f0f13; color: var(--white); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
#script:focus, .maker select:focus, .shots textarea:focus, .shots input:focus, .shots select:focus { border-color: rgba(251, 191, 36, 0.7); outline: none; }
.options { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin: 1rem 0; }
@media (min-width: 640px) { .options { grid-template-columns: repeat(3, 1fr); } }
.opt label { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.maker select { width: 100%; padding: 0.65rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; background: #0f0f13; color: var(--white); font: inherit; font-size: 0.95rem; }
.sbtn { display: inline-block; width: 100%; padding: 0.95rem 1.4rem; border: 0; border-radius: 10px; background: linear-gradient(100deg, var(--gold-3), var(--gold-2), var(--gold-1)); color: #150e02; font: inherit; font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 0 26px rgba(251, 158, 11, 0.45); transition: scale 0.2s; }
.sbtn:hover { scale: 1.02; }
.sbtn:focus-visible, .abtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.private { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
.form-msg { min-height: 1.3em; margin: 0.5rem 0 0; color: var(--gold-1); font-size: 0.92rem; text-align: center; }

/* The result */
.result { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 46rem; margin: 0 auto 1rem; }
.summary div { padding: 0.8rem 0.5rem; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 14px; background: rgba(255, 255, 255, 0.04); text-align: center; }
.summary strong { display: block; color: var(--gold-1); font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.summary span { color: var(--muted); font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.abtn { padding: 0.6rem 1rem; border: 1px solid rgba(251, 191, 36, 0.55); border-radius: 10px; background: rgba(251, 191, 36, 0.06); color: var(--gold-1); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.abtn:hover { background: rgba(251, 191, 36, 0.16); }
.edit-note { margin: 0.6rem 0 1rem; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Table on a computer, cards on a phone */
.shots { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.shots select, .shots input, .shots textarea { width: 100%; padding: 0.4rem 0.45rem; border: 1px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--white); font: inherit; font-size: 0.9rem; }
.shots select:hover, .shots input:hover, .shots textarea:hover { border-color: var(--line); }
.shots textarea { resize: vertical; line-height: 1.4; }
.shots .scene-row th { padding: 0.9rem 0.4rem 0.4rem; color: var(--gold-2); font-family: var(--pixel); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; text-align: left; }
.with-q { display: flex; align-items: center; gap: 0.3rem; }
.q { display: grid; flex: none; place-items: center; width: 1.3rem; height: 1.3rem; border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 50%; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.print-credit { display: none; }
@media (max-width: 899px) {
  .shots thead { display: none; }
  .shots, .shots tbody { display: block; }
  .shots tr:not(.scene-row) { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.6rem; margin-bottom: 10px; padding: 0.8rem; border: 1px solid rgba(251, 191, 36, 0.22); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); }
  .shots tr.scene-row { display: block; }
  .shots tr.scene-row th { display: block; }
  .shots td { display: block; min-width: 0; }
  .shots td::before { content: attr(data-label); display: block; margin-bottom: 0.15rem; color: var(--muted); font-size: 0.75rem; }
  .shots td.num { grid-column: 1 / -1; color: var(--gold-1); font-family: var(--pixel); font-size: 0.8rem; }
  .shots td.num::before { content: "Shot "; display: inline; margin: 0; color: inherit; font-size: inherit; }
  .shots td.line, .shots td.show { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .table-scroll { border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
  .shots th, .shots td { padding: 0.35rem 0.35rem; vertical-align: top; text-align: left; }
  .shots thead th { padding: 0.7rem 0.4rem; color: var(--gold-2); font-size: 0.8rem; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); }
  .shots td.num { padding-top: 0.75rem; color: var(--gold-1); font-weight: 700; text-align: center; }
  .shots td.line { min-width: 16rem; }
  .shots td.sec { width: 5rem; }
  .shots td.show { min-width: 10rem; }
}

.dino { max-width: 46rem; margin: 2rem auto 0; padding: 1.3rem; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); text-align: center; }
.dino p { margin: 0 0 1rem; }
.dino .sbtn { width: auto; }

/* Help text */

/* Print: just the list, on white paper */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .grid, .spot, .sweep, #fx, .bar, .foot, .intro, .maker, .actions, .edit-note, .dino, .help, #action-msg, .q { display: none !important; }
  .slm { padding: 0; animation: none; width: 100%; }
  .result { margin: 0; }
  .summary { display: flex; gap: 2rem; max-width: none; margin: 0 0 6mm; }
  .summary div { padding: 0; border: 0; background: none; text-align: left; }
  .summary strong { color: #000; font-size: 14pt; }
  .summary span { color: #444; }
  .table-scroll { border: 0; background: none; }
  .shots { display: table !important; font-size: 9pt; }
  .shots thead { display: table-header-group !important; }
  .shots tbody { display: table-row-group !important; }
  .shots tr, .shots tr:not(.scene-row) { display: table-row !important; padding: 0; border: 0; background: none; break-inside: avoid; }
  .shots th, .shots td { display: table-cell !important; padding: 1.5mm 2mm; border-bottom: 0.3pt solid #bbb; color: #000 !important; vertical-align: top; }
  .shots td::before { display: none !important; }
  .shots thead th { color: #000 !important; border-bottom: 1pt solid #000; }
  .shots .scene-row th { padding-top: 4mm; color: #000 !important; font-family: inherit; font-size: 10pt; font-weight: 700; }
  .shots textarea { field-sizing: content; }
  .shots select, .shots input, .shots textarea { padding: 0; border: 0 !important; background: none !important; color: #000 !important; font-size: 9pt; -webkit-appearance: none; appearance: none; resize: none; }
  .print-credit { display: block; margin-top: 6mm; color: #444; font-size: 8pt; }
}
@media (prefers-reduced-motion: reduce) { .sbtn { transition: none; } }

/* How it works: short and visual */
.help { width: min(100%, 72rem); margin: 4.5rem auto 0; }
.help h2 { margin: 0 0 1.2rem; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; }
.hlabel { margin: 0 0 0.5rem; color: var(--gold-2); font-family: var(--pixel); font-size: 0.72rem; letter-spacing: 0.05em; }
.hstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hstats div { padding: 1rem; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 16px; background: rgba(251, 191, 36, 0.06); }
.hstats b { display: block; color: var(--gold-1); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hstats span { display: block; margin-top: 0.35rem; color: var(--white); font-size: 0.88rem; }
.hboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .hboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hstats, .hboard { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.htile { display: flex; flex-direction: column; padding: 1rem; border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); }
.htile h3 { margin: 0 0 0.3rem; color: var(--white); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.htile p { margin: 0; color: var(--text); font-size: 0.9rem; line-height: 1.45; }
.htile a { margin-top: auto; padding-top: 0.7rem; color: var(--gold-1); font-size: 0.85rem; font-weight: 600; }
.hviz { position: relative; display: flex; flex-wrap: wrap; align-content: center; gap: 6px; height: 6.5rem; margin-bottom: 0.9rem; padding: 10px; border-radius: 12px; background: #0f0f13; overflow: hidden; }
.hv-split span { padding: 0.3rem 0.5rem; border-radius: 6px; background: rgba(251, 191, 36, 0.14); color: var(--gold-1); font-size: 0.8rem; }
.hv-split i { width: 2px; height: 1.6rem; background: var(--gold-3, #f97316); box-shadow: 0 0 8px var(--gold-3, #f97316); }
.hv-time { flex-wrap: nowrap; align-items: center; align-content: normal; gap: 4px; padding-bottom: 1.6rem; }
.hv-time i { height: 1.4rem; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2), var(--gold-1)); }
.hv-time i[data-f="1"] { flex: 1; } .hv-time i[data-f="1.5"] { flex: 1.5; } .hv-time i[data-f="2"] { flex: 2; } .hv-time i[data-f="3"] { flex: 3; }
.hv-time small { position: absolute; left: 10px; bottom: 8px; color: var(--muted); font-family: var(--pixel); font-size: 0.62rem; }
.hv-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hv-moves span { padding: 0.3rem 0.45rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 0.72rem; line-height: 1.2; }
.hv-moves b { display: block; color: var(--gold-1); font-size: 0.78rem; }
.hv-light { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 6px; }
.hv-light span { display: flex; align-items: flex-end; padding: 0.35rem; border-radius: 8px; color: #fff; font-size: 0.68rem; font-weight: 700; }
.hv-light .l1 { background: radial-gradient(circle at 50% 25%, #6b7cff 0, #11132b 55%, #050510 100%); }
.hv-light .l2 { background: radial-gradient(circle at 50% 80%, #ff4b2b 0, #5c0d05 60%, #1a0402 100%); }
.hv-light .l3 { background: linear-gradient(180deg, #ffb347, #c2410c 70%, #3b1406); }
.hv-light .l4 { background: linear-gradient(180deg, #bfe6ff, #fff3b0); color: #222; }
.hq { margin-top: 3rem !important; }
.faqs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 800px) { .faqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faqs details { padding: 0.8rem 1rem; border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.faqs summary { color: var(--gold-1); font-weight: 700; cursor: pointer; }
.faqs p { margin: 0.4rem 0 0; color: var(--text); font-size: 0.92rem; }
