@charset "UTF-8";
:root {
  color-scheme: dark;
  --ink: #102126;
  --paper: #fff3db;
  --gold: #efbd69;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--paper);
  background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
.backdrop { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .36; filter: sepia(.3); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 26, 31, .84) 10%, rgba(10, 26, 31, .55) 65%, rgba(10, 26, 31, .35)); }
main { flex: 1; width: min(100%, 52rem); margin: auto; padding: 2.5rem 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.occasion { margin: 0 0 1.1rem; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .95; font-weight: 700; letter-spacing: -.045em; text-shadow: 0 4px 35px #102126; }
h1 em { color: var(--gold); font-weight: 400; }
.recipient { max-width: 34rem; margin: 1.5rem 0; font-size: 1rem; line-height: 1.6; color: #d2d4cc; }
.recipient strong { color: var(--paper); font-size: 1.25rem; font-weight: 500; }
.music { width: min(100%, 25rem); }
.custom-player { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; }
[hidden] { display: none !important; }
.play-button { width: 6rem; height: 6rem; border: 1px solid #ffdb99; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 8px #efbd6912, 0 8px 30px #0004; transition: transform .2s, background .2s; }
.play-button:hover { background: #ffcf80; transform: scale(1.05); }
.play-button svg { width: 2.5rem; height: 2.5rem; fill: currentColor; }
.play-icon { margin-left: .25rem; }
.timeline { width: 100%; }
input[type=range] { accent-color: var(--gold); width: 100%; margin: 0; height: 1.5rem; cursor: pointer; }
input[type=range]:disabled { cursor: wait; }
.time { display: flex; justify-content: space-between; color: #d2d4cc; font-size: .875rem; font-variant-numeric: tabular-nums; }
.download { color: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.75rem; margin-top: .75rem; font-size: 1rem; text-decoration: underline; text-underline-offset: .3rem; text-decoration-color: #efbd6980; }
.download:hover { color: var(--gold); }
.download svg { width: 1.2rem; height: 1.2rem; color: var(--gold); }
#player-status { color: var(--gold); font-size: .875rem; line-height: 1.5; }
#player-status:empty { display: none; }
audio { width: 100%; }
.message { max-width: 30rem; margin: 1rem 0 0; color: #d2d4cc; font-size: 1rem; line-height: 1.5; }
.lyrics { width: min(100%, 36rem); margin-top: .25rem; }
.lyrics.is-animating { overflow: hidden; }
.lyrics summary { display: flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; min-height: 2.75rem; margin: auto; padding: .5rem .75rem; color: var(--gold); cursor: pointer; list-style: none; font-size: 1rem; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.lyrics summary:hover { color: var(--paper); }
.lyrics summary svg { width: 1rem; height: 1rem; transition: transform .7s ease; }
.lyrics-hide, .lyrics[open]:not([data-expanded="false"]) .lyrics-show { display: none; }
.lyrics[open]:not([data-expanded="false"]) .lyrics-hide { display: inline; }
.lyrics[open]:not([data-expanded="false"]) summary svg { transform: rotate(180deg); }
.lyrics-copy {
  position: relative;
  margin-top: .75rem;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 4px double #8a6138;
  border-radius: .3rem .6rem .4rem .25rem;
  color: #352719;
  background:
    radial-gradient(ellipse at 0 0, #94602945, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #94602940, transparent 50%),
    repeating-linear-gradient(8deg, #64451e06 0 1px, transparent 1px 4px),
    repeating-linear-gradient(97deg, #fffcdd18 0 1px, transparent 1px 6px),
    linear-gradient(100deg, #dfc28b, #f3e1b4 20%, #eed8a6 75%, #d9b77a);
  box-shadow: inset 0 0 2rem #80531d38, inset 0 0 0 .5rem #f8e5b738;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.8;
}
.lyrics-copy::before, .lyrics-copy::after {
  content: '';
  display: block;
  width: 5rem;
  height: .3rem;
  margin: 0 auto 1.5rem;
  border-block: 1px solid #88633b80;
}
.lyrics-copy::after { margin: 1.5rem auto 0; }
footer { padding: .75rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .5rem; text-align: center; color: #d2d4cc; font-size: .875rem; line-height: 1; }
.footer-logo { display: block; width: 9rem; max-width: 100%; height: auto; transform: translateY(-1px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  main { padding: 1.75rem 1.5rem 1rem; }
  .occasion { font-size: .75rem; letter-spacing: .12em; }
  h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .recipient { margin: 1.25rem 0; }
  .recipient strong { font-size: 1.125rem; }
  .play-button { width: 5rem; height: 5rem; }
  .custom-player { gap: 1rem; }
  footer { padding-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.play-button:disabled { opacity: .55; cursor: default; transform: none; }
.pending-player { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pending-player p { margin: 0; font-size: 1rem; line-height: 1.5; color: #d2d4cc; }
