/* Extracted from the <style> block that used to live in index.html.
 *
 * It is a file rather than inline markup because public/_headers now sets a
 * Content-Security-Policy, and style-src 'self' forbids an inline <style>.
 * That failure mode is a nasty one to debug by eye: a blocked stylesheet does
 * not error visibly, it just renders the page as unstyled black text on white,
 * which reads as a broken deploy rather than as a policy doing its job.
 */

  :root {
    --bg-color: #fcfbfa;
    --card-bg: #ffffff;
    --text-main: #2C2C2C;
    --text-muted: #6B6B6B;
    --accent-gold: #C5A059;
    --button-bg: #1A1A1A;
    --button-text: #FFFFFF;
    --line: #ece7df;
    --ok: #2f7d4f;
    --bad: #b3403a;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.5;
  }
  .hub-container {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    padding: 40px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    align-self: flex-start;
  }

  .header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 24px;
  }
  .hero {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    background-color: #f3f0ec;
  }
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 4px;
  }
  .wedding-date {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .divider {
    width: 50px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 0 auto 24px auto;
  }
  .welcome-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 28px;
  }

  label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  #guest-name {
    display: block;
    width: 70%;
    margin: 0 auto;
    font: inherit;
    font-size: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    text-align: center;
  }
  #guest-name::placeholder {
    font-style: italic;
  }
  #guest-name:focus-visible {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  }
  #name-hint {
    text-align: left;
    color: var(--bad);
    font-size: 0.82rem;
    margin: 6px 0 0;
    visibility: hidden;
  }
  #name-hint.show { visibility: visible; }

  #drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    margin: 20px 0 0;
    border-radius: 30px;
    border: none;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  #drop:active { transform: scale(0.98); }
  #drop:focus-visible { outline: 3px solid rgba(197, 160, 89, 0.5); outline-offset: 2px; }
  #drop.over { opacity: 0.8; outline: 3px dashed var(--accent-gold); outline-offset: 2px; }
  .drop-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 12px 0 0;
  }

  #busy-hint {
    display: none;
    font-size: 0.85rem;
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 18px 0 0;
  }
  #busy-hint.show { display: block; }

  #queue { list-style: none; margin: 20px 0 0; text-align: left; }
  .item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .item-top { display: flex; justify-content: space-between; gap: 0.8rem; }
  .item-name {
    font-size: 0.88rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .item-size { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }
  .bar {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    margin: 9px 0 6px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%; width: 0;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: width 0.2s ease;
  }
  .item-status { font-size: 0.8rem; color: var(--text-muted); }
  .item.done .bar-fill { background: var(--ok); }
  .item.done .item-status { color: var(--ok); }
  .item.failed .bar-fill { background: var(--bad); }
  .item.failed .item-status { color: var(--bad); }

  .gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    transition: transform 0.2s ease;
  }
  .gallery-link:active { transform: scale(0.98); }

  @media (prefers-reduced-motion: reduce) {
    .bar-fill, #drop, .gallery-link { transition: none; }
  }
