:root {
  color-scheme: dark;
  --bg: #141214;
  --panel: #211c20;
  --ink: #f1e9e2;
  --muted: #b4a6a8;
  --accent: #df9b9f;
  --line: #ffffff19;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 85% 35%, #39212b55, transparent 60%), var(--bg); color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.header, footer { max-width: 1240px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header { padding: 30px 48px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand:first-letter { color: var(--accent); }
main { max-width: 1240px; margin: auto; padding: 64px 48px 48px; min-height: 72vh; }
.hero { display: grid; grid-template-columns: 0.95fr 1fr; align-items: center; gap: clamp(40px, 7vw, 105px); }
.photo-card { margin: 0; position: relative; transform: rotate(-3deg); padding: 12px; border: 1px solid #b08d7b40; background: #211c1e; box-shadow: 0 30px 70px #0005; }
.photo-card::before { content: ''; position: absolute; width: 96px; height: 29px; background: #b9a48b55; top: -13px; left: calc(50% - 48px); transform: rotate(5deg); z-index: 1; }
.photo-surface { aspect-ratio: 4 / 5; overflow: hidden; background: #30252b; }
.photo-surface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; padding: 24px; background: radial-gradient(ellipse at 40% 30%, #67404c, #241e26 75%); color: #ebd3cc; }
.photo-heart { font-family: Georgia, serif; font-size: 100px; font-weight: 400; color: #d9a6a0; }
.photo-placeholder small { color: #bea9ac; font-size: 11px; }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 7px 8px; font-family: Georgia, serif; font-size: 15px; font-style: italic; color: #d1bfb4; }
figcaption span:last-child { font: 9px 'Segoe UI', sans-serif; letter-spacing: 2px; flex-shrink: 0; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 2.8px; color: var(--accent); }
.dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -2px; }
h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.12; white-space: pre-line; margin: 26px 0; }
.intro { max-width: 390px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.countdown { display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 24px); padding: 28px 0; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { min-width: 44px; text-align: center; }
.countdown b { font-family: Georgia, serif; font-weight: 400; font-size: 43px; font-variant-numeric: tabular-nums; }
.countdown small { display: block; font-size: 8px; letter-spacing: 2px; color: var(--muted); margin-top: 10px; }
.countdown > span { color: #70545f; font: 27px Georgia, serif; margin-top: 8px; }
.date-note { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 16px; }
.waiting-note { margin-top: 30px; color: #c6a3a3; font: italic 18px Georgia, serif; }
.unlock-panel { margin-top: 28px; padding: 24px; background: #251c2255; border: 1px solid #b1778540; border-radius: 4px; }
.unlock-panel p { color: var(--muted); font-size: 12px; }
.password-code { display: block; margin: 18px 0 24px; font-family: monospace; font-size: 23px; letter-spacing: 3px; color: var(--accent); overflow-wrap: anywhere; }
label { display: block; font-size: 11px; margin-bottom: 10px; color: var(--muted); }
.input-row { display: flex; gap: 8px; }
input { min-width: 0; width: 100%; padding: 13px; background: #121014; border: 1px solid #70545f; color: var(--ink); border-radius: 3px; }
.primary { border: 0; border-radius: 3px; padding: 14px 18px; background: #d3a0a3; color: #21161b; font-size: 11px; white-space: nowrap; }
.primary span { margin-left: 12px; }
.error { color: #ffb4b4 !important; font-size: 12px; line-height: 1.7; min-height: 1em; }
.error:empty { display: none; }
.video-view { max-width: 960px; margin: auto; text-align: center; }
.video-view .eyebrow { justify-content: center; }
h2 { font-size: clamp(35px, 5vw, 57px); margin: 24px 0 16px; }
.video-view > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.video-shell { margin: 32px 0 22px; border: 1px solid #b1778540; padding: 8px; background: #1e171c; border-radius: 6px; box-shadow: 0 20px 70px #0005; }
video { display: block; width: 100%; max-height: 70vh; background: #080708; }
.youtube-player { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; background: #080708; }
#youtubeLink { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.video-view > .video-note { font-size: 11px; color: var(--muted); line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; margin: 12px auto 18px; max-width: 640px; }
.video-note:empty { display: none; }
.video-placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px; background: radial-gradient(ellipse at center, #37232f, #110e13); }
.video-placeholder > span { font-size: 47px; color: var(--accent); }
.video-placeholder h3 { font: 27px Georgia, serif; font-weight: 400; margin: 20px 0 8px; }
.video-placeholder p { color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: none; color: var(--accent); padding: 12px; font-size: 12px; }
footer { margin-top: 24px; padding: 25px 48px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.preview { max-width: 1144px; margin: 18px auto 24px; border: 1px dashed #7c5e6a; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.preview div { display: flex; flex-wrap: wrap; gap: 10px; }
.preview button { border: 1px solid var(--line); background: #211b22; color: #e9c1c6; padding: 9px 12px; font-size: 11px; border-radius: 3px; }
button:hover { filter: brightness(1.12); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hidden { display: none !important; }
@media (max-width: 700px) {
  .header { padding: 22px; font-size: 8px; letter-spacing: 1px; }
  .brand { gap: 7px; }
  main { padding: 38px 24px; }
  .hero { grid-template-columns: 1fr; gap: 43px; }
  .photo-card { width: min(85%, 340px); margin: auto; }
  .photo-surface { aspect-ratio: 5 / 4; }
  figcaption { font-size: 12px; }
  .hero-copy { max-width: 460px; margin: auto; width: 100%; }
  h1 { font-size: 45px; }
  .countdown { justify-content: space-between; gap: 8px; }
  .countdown b { font-size: 36px; }
  .unlock-panel { padding: 18px; }
  .input-row { flex-direction: column; }
  footer { padding: 22px 24px; align-items: flex-start; font-size: 9px; }
  .preview { margin: 12px 24px 24px; align-items: flex-start; flex-direction: column; }
  .video-placeholder h3 { font-size: 21px; }
}
