
  :root{
    --ink:#1C1410;
    --aubergine:#3D1A38;
    --berry:#8B2942;
    --marigold:#E8A94C;
    --marigold-soft:#F0C888;
    --papyrus:#F3E9D8;
  }
  *{box-sizing:border-box;}
  html,body{
    margin:0;padding:0;
    height:100%;
    overflow:hidden;
    overscroll-behavior:none;
  }
  body{
    background:#000;
    height:100vh;
    height:100dvh;
    font-family:'Inter', sans-serif;
    color:var(--papyrus);
    display:flex;
    justify-content:center;
    align-items:center;
  }

  .app{
    width:100vw;
    height:100vh;
    height:100dvh;
    background:#000;
    position:relative;
    overflow:hidden;
    container-type: inline-size;
    container-name: app;
  }

  .screen{
    position:absolute;
    inset:0;
    display:none;
    flex-direction:column;
    align-items:center;
  }
  .screen.active{ display:flex; }

  /* ============ SCREEN 1: COVER ============ */
  #screen-cover{ justify-content:flex-start; }

  .bg-video{
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    height:100dvh;
    object-fit:cover;
    z-index:0;
    opacity:0.55;
  }

  .header-row{
    position:absolute;
    bottom:28px; left:0; right:0;
    display:flex;
    justify-content:flex-end;
    padding:0 18px;
    z-index:6;
    pointer-events:none;
  }
  .header-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
  }
  .powered-by{
    font-family:'Inter', sans-serif;
    font-weight:400;
    font-size: clamp(9px, 1.3cqw, 11px);
    letter-spacing:0.18em;
    text-transform:uppercase;
    color: rgba(243,233,216,0.55);
  }
  .header-row .title-logo-img{
    width: min(46cqw, 260px);
    min-width:150px;
    height:auto;
  }
  .bgtt-lower{
    position:absolute;
    top: 16px;
    left:0; right:0;
    display:flex;
    justify-content:center;
    z-index:6;
    pointer-events:none;
  }
  .bgtt-lower img{
    width: min(92cqw, 480px);
    min-width:220px;
    height:auto;
  }
  .exp-companion-wrap{
    position:absolute;
    top:50%;
    left:0; right:0;
    transform: translate(min(3.33cqw, 17.4px), -50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    z-index:6;
    pointer-events:none;
  }
  .exp-companion-wrap img{
    width: min(77.7cqw, 406px);
    min-width:210px;
    height:auto;
  }
  .subtitle-line{
    position:absolute;
    top: 92px;
    left:0; right:0;
    text-align:center;
    z-index:6;
    pointer-events:none;
    font-family:'Inter', sans-serif;
    font-weight:300;
    font-size: clamp(11px, 2.2cqw, 20px);
    letter-spacing:0.12em;
    text-transform:uppercase;
    color: var(--papyrus);
    padding: 0 14px;
  }
  /* shared eyebrow label style — used on every screen for consistency */
  .eyebrow-label{
    position:absolute;
    top: 70px;
    left:0; right:0;
    text-align:center;
    z-index:6;
    font-family:'Inter', sans-serif;
    font-weight:300;
    font-size: clamp(10px, 2cqw, 16px);
    letter-spacing:0.1em;
    text-transform:uppercase;
    color: var(--papyrus);
    padding: 0 14px;
  }
  .byline{
    position:absolute;
    top: 118px;
    left:0; right:0;
    text-align:center;
    z-index:6;
    pointer-events:none;
    font-family:'Inter', sans-serif;
    font-weight:300;
    font-size: clamp(11px, 1.7cqw, 15px);
    letter-spacing:0.12em;
    text-transform:uppercase;
    color: var(--marigold-soft);
    white-space:nowrap;
  }

  .avatar-well{
    position:absolute;
    inset:0;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    z-index:2;
  }
  .avatar-slide{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    opacity:0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow:hidden;
  }
  .avatar-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: center top;
    transform: translateY(22%);
  }
  .avatar-slide.active{
    opacity:1;
    transform: scale(1);
  }

  /* landscape/wide-screen fix: less push-down so the model isn't cropped under the title */
  @media (orientation: landscape){
    .avatar-slide img{
      transform: translateY(14%);
    }
  }

  /* genuinely wide/short screens (laptops, desktops): stop full-bleed stretching,
     show as a centered phone-card instead so the photo never loses the model's head */
  @media (min-aspect-ratio: 3/2){
    body{ background:#000; }
    .app{
      width: 100%;
      max-width: 480px;
      height: 100vh;
      height: 100dvh;
      box-shadow: 0 0 80px rgba(0,0,0,0.9);
    }
    .avatar-slide img{
      transform: translateY(22%);
    }
  }

  .cta-wrap{
    position:absolute;
    bottom: 6vh;
    left:0; right:0;
    display:flex;
    justify-content:center;
    z-index:6;
  }
  .cta-btn{
    background: var(--marigold);
    color: var(--aubergine);
    border:none;
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size: clamp(14px, 1.8cqw, 18px);
    letter-spacing:0.04em;
    text-transform:uppercase;
    padding: clamp(14px,1.8vh,20px) clamp(28px,4cqw,44px);
    border-radius:30px;
    cursor:pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    -webkit-tap-highlight-color: transparent;
  }
  .cta-btn:active{ transform: scale(0.97); }

  .back-btn{
    position:absolute;
    top: 24px;
    left: 20px;
    z-index:10;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(243,233,216,0.25);
    color: var(--papyrus);
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size:13px;
    padding: 9px 16px 9px 12px;
    border-radius:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:5px;
    -webkit-tap-highlight-color: transparent;
  }
  .back-btn:active{ transform: scale(0.96); }

  /* ============ SCREEN 2: INTRO ============ */
  #screen-intro{
    justify-content:flex-start;
    padding: 6vh 8cqw;
    text-align:center;
  }
  .intro-center-block{
    position:absolute;
    top: 28vh;
    left:0; right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
    z-index:6;
    padding: 0 10cqw;
  }
  .intro-center-block img{
    width: min(77.7cqw, 406px);
    min-width:210px;
    height:auto;
  }
  .name-capture{
    margin-top: 26px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
  }
  .name-label{
    font-family:'Inter', sans-serif;
    font-weight:400;
    font-size: 11px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color: rgba(243,233,216,0.5);
  }
  .name-input{
    background:transparent;
    border:none;
    border-bottom: 1px solid rgba(243,233,216,0.35);
    color: var(--marigold-soft);
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size: clamp(18px, 2.6cqw, 22px);
    text-align:center;
    padding: 4px 8px 8px;
    width: 240px;
    max-width: 70cqw;
  }
  .name-input::placeholder{
    color: rgba(243,233,216,0.3);
    font-style:normal;
  }
  .name-input:focus{
    outline:none;
    border-bottom-color: var(--marigold);
  }

  /* ============ SCREEN 1.5: TITLE PAGE ============ */
  #screen-title{
    justify-content:flex-start;
  }
  .title-page-block{
    position:absolute;
    top: 28vh;
    left:0; right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding: 0 10cqw;
    text-align:center;
  }
  .title-page-logo{
    width: min(77.7cqw, 406px);
    min-width:210px;
    height:auto;
    margin-bottom: 22px;
  }
  .title-page-tagline{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:500;
    font-size: clamp(15px, 2.2cqw, 18px);
    color: var(--marigold-soft);
    max-width: 380px;
    line-height:1.5;
    margin-bottom: 30px;
  }
  .title-page-rule{
    width: 60px;
    height: 1px;
    background: rgba(243,233,216,0.3);
    margin-bottom: 30px;
  }
  .title-page-imprint{
    margin-top: 50px;
    opacity: 0.7;
  }
  .title-page-imprint img{
    width: min(50cqw, 260px);
    min-width:150px;
    height:auto;
  }
  .exp-nav-btn{
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
  }
  .exp-nav-btn:active{
    transform: scale(0.97);
  }

  .sa-caption{
    position:absolute;
    left:0; right:0;
    text-align:center;
    z-index:6;
    padding: 0 10cqw;
    top: 64vh;
    font-family:'Inter', sans-serif;
    font-weight:300;
    letter-spacing:0.14em;
    text-transform:uppercase;
    font-size: clamp(11px, 1.8cqw, 14px);
    color: rgba(243,233,216,0.65);
  }
  .story-tagline{
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size: clamp(16px, 2.6cqw, 22px);
    letter-spacing:0.02em;
    color: var(--papyrus);
  }
  .story-body{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:500;
    font-size: clamp(17px, 2.2cqw, 20px);
    line-height:1.6;
    color: rgba(243,233,216,0.85);
    max-width: 480px;
    margin: 0 auto;
  }

  /* ============ SCREEN 3: JOURNAL (scrollable) ============ */
  #screen-journal.active{
    display:block;
  }
  .journal-scroll{
    position:absolute;
    inset:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling: touch;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding: 70px 10cqw 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .journal-scroll::-webkit-scrollbar{
    display:none;
    width:0;
    height:0;
  }
  .journal-scroll img{
    width: min(77.7cqw, 406px);
    min-width:210px;
    height:auto;
    margin-bottom: 34px;
  }
  .city-title-img{
    width: min(77.7cqw, 406px);
    min-width:210px;
    height:auto;
    margin: 8px 0 30px;
  }
  .title-compare-stage{
    position:relative;
    width: min(77.7cqw, 406px);
    min-height: 100px;
    margin: 8px 0 10px;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .title-compare-stage img{
    position:absolute;
    top:0; left:0;
    width:100%;
    height:auto;
    opacity:0;
    transition: opacity 0.25s ease;
    margin:0;
  }
  .title-compare-stage img.active{
    opacity:1;
    position:relative;
  }
  .compare-badge{
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size:12px;
    letter-spacing:0.06em;
    color: var(--marigold);
    text-transform:uppercase;
    margin-bottom: 20px;
  }
  .chapter-label{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size: 12px;
    letter-spacing:0.24em;
    text-transform:uppercase;
    color: var(--marigold);
    margin-top: 6px;
  }
  .map-link-btn{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    max-width:480px;
    padding: 14px 18px;
    border-radius: 12px;
    border:1px solid rgba(232,169,76,0.4);
    background: rgba(232,169,76,0.06);
    margin-bottom: 22px;
    text-decoration:none;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .map-link-btn:active{ transform: scale(0.98); }
  .map-link-icon{
    font-size:20px;
    flex-shrink:0;
  }
  .map-link-text{
    display:flex;
    flex-direction:column;
    gap:1px;
  }
  .map-link-label{
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size:14px;
    color: var(--marigold);
  }
  .map-link-sub{
    font-family:'Inter', sans-serif;
    font-size:11.5px;
    color: rgba(243,233,216,0.55);
  }

  /* ============ SCREEN: DAY SELECTOR ============ */
  #screen-days{
    justify-content:flex-start;
  }
  .days-scroll{
    position:absolute;
    inset:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding: 70px 8cqw 50px;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .days-scroll::-webkit-scrollbar{ display:none; }
  .days-title{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:700;
    font-size: clamp(24px, 4cqw, 32px);
    color: var(--papyrus);
    margin-bottom: 6px;
    text-align:center;
  }
  .days-subtitle{
    font-family:'Inter', sans-serif;
    font-size: 13px;
    color: rgba(243,233,216,0.55);
    margin-bottom: 34px;
    text-align:center;
  }
  .day-list{
    width:100%;
    max-width: 480px;
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .day-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding: 16px 18px;
    border-radius: 12px;
    border:1px solid rgba(243,233,216,0.18);
    background: rgba(255,255,255,0.02);
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    text-align:left;
  }
  .day-card.active:active{ transform: scale(0.98); }
  .day-card.disabled{
    opacity:0.35;
    cursor:default;
  }
  .day-num{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:700;
    font-size: 22px;
    color: var(--marigold);
    min-width: 46px;
  }
  .day-info{
    display:flex;
    flex-direction:column;
    gap:2px;
  }
  .day-name{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size: 15px;
    color: var(--papyrus);
    letter-spacing:0.02em;
  }
  .day-status{
    font-family:'Inter', sans-serif;
    font-size: 11px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color: rgba(243,233,216,0.4);
  }
  .day-card.active .day-status{ color: var(--marigold); }

  /* pull-quote used on Robben Island / other emotionally-weighted days */
  .pull-quote{
    max-width: 480px;
    width:100%;
    text-align:center;
    padding: 24px 20px;
    margin: 10px 0 30px;
    border-top: 1px solid rgba(232,169,76,0.35);
    border-bottom: 1px solid rgba(232,169,76,0.35);
  }
  .pull-quote p{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size: clamp(17px, 2.4cqw, 20px);
    line-height:1.6;
    color: var(--marigold-soft);
    margin:0 0 10px;
  }
  .pull-quote span{
    font-family:'Inter', sans-serif;
    font-size:12px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color: rgba(243,233,216,0.5);
  }
  .legacy-divider{
    width:100%;
    max-width:480px;
    height:1px;
    background: rgba(243,233,216,0.15);
    margin: 20px 0 40px;
  }
  .legacy-textarea{
    min-height: 220px !important;
  }
  .city-heading-text{
    font-family:'Quicksand', sans-serif;
    font-weight:700;
    font-style:normal;
    font-size: clamp(28px, 5cqw, 40px);
    color: var(--papyrus);
    text-align:center;
    margin: 8px 0 30px;
  }
  .callback-quote{
    background: rgba(232,169,76,0.07);
    border-left: 3px solid var(--marigold);
    border-radius: 6px;
    padding: 20px 24px;
    max-width: 480px;
    width:100%;
    margin: 6px 0 36px;
  }
  .callback-label{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size: 11px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color: var(--marigold);
    margin-bottom: 10px;
  }
  .callback-text{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:500;
    font-size: clamp(17px, 2.2cqw, 19px);
    line-height:1.6;
    color: var(--marigold-soft);
  }
  .letter-body{
    --body-font: 'Quicksand', sans-serif;
    --body-style: normal;
    --body-weight: 500;
    max-width: 520px;
    width:100%;
  }
  .letter-body p{
    font-family: var(--body-font);
    font-style: var(--body-style);
    font-weight: var(--body-weight);
    font-size: clamp(17px, 2cqw, 19px);
    line-height:1.75;
    color: rgba(243,233,216,0.88);
    margin: 0 0 22px;
    text-align:left;
  }
  .letter-body p.salutation{
    font-style:italic;
    font-size: clamp(19px, 2.6cqw, 23px);
    color: var(--marigold-soft);
    margin-bottom: 26px;
  }
  .letter-body p.ask{
    font-weight:600;
    color: var(--papyrus);
    margin-bottom: 8px;
  }
  .journal-prompt{
    font-family:'Quicksand', sans-serif;
    font-weight:600;
    font-style:normal;
    font-size: clamp(17px, 2cqw, 19px);
    line-height:1.4;
    color: var(--papyrus);
    max-width: 520px;
    text-align:center;
    margin: 40px 0 24px;
  }
  .journal-prompt:first-of-type{
    margin-top: 12px;
  }
  .journal-scroll textarea{
    width:100%;
    max-width:480px;
    min-height: 130px;
    resize:none;
    border:1px solid rgba(243,233,216,0.25);
    border-radius:10px;
    background: rgba(255,255,255,0.03);
    color: var(--papyrus);
    font-family:'Inter', sans-serif;
    font-size:15px;
    line-height:1.6;
    padding:16px 18px;
  }
  .journal-scroll textarea::placeholder{ color: rgba(243,233,216,0.35); }
  .journal-scroll textarea:focus{
    outline:none;
    border-color: var(--marigold);
    box-shadow: 0 0 0 3px rgba(232,169,76,0.15);
  }
  .photo-gallery{
    width:100%;
    max-width:480px;
    margin: 40px 0 20px;
  }
  .photo-gallery-label{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size:11px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color: var(--marigold);
    margin-bottom: 14px;
    text-align:center;
  }
  .photo-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .photo-slot{
    position:relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
  }
  .photo-square-btn{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed rgba(232,169,76,0.5);
    border-radius:10px;
    background: rgba(232,169,76,0.05);
    color: var(--marigold);
    font-size:26px;
    font-weight:600;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .photo-square-btn:active{ transform: scale(0.95); }
  .photo-slot .photo-square-img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    min-width:0;
    margin:0;
    object-fit:cover;
    cursor:zoom-in;
    border-radius:10px;
    border:1px solid rgba(243,233,216,0.2);
  }
  .photo-square-remove{
    position:absolute;
    z-index:1;
    top:-6px;
    right:-6px;
    width:22px;
    height:22px;
    border-radius:50%;
    background: var(--berry);
    color:#fff;
    border:2px solid #000;
    font-size:13px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }

  /* ============ PHOTO FULL-SCREEN VIEWER ============ */
  .photo-viewer{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.93);
    padding:24px;
  }
  .photo-viewer.open{
    display:flex;
  }
  .photo-viewer-img{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:6px;
    box-shadow:0 8px 40px rgba(0,0,0,0.7);
  }
  .photo-viewer-close{
    position:absolute;
    top:18px;
    right:18px;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    border-radius:50%;
    background:rgba(28,20,16,0.8);
    border:1px solid rgba(243,233,216,0.4);
    color:var(--papyrus);
    font-family:'Inter', sans-serif;
    font-size:22px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
    z-index:1;
    -webkit-tap-highlight-color: transparent;
  }
  .photo-viewer-close:active{ transform:scale(0.94); }
  body.photo-viewer-open{
    overflow:hidden;
  }

  /* ============ JOURNAL BACK UP & RESTORE PANEL ============ */
  .journal-data-panel{
    width:100%;
    max-width:480px;
    margin:36px 0 12px;
    padding:22px 20px 24px;
    border:1px solid rgba(232,169,76,0.35);
    border-radius:16px;
    background: rgba(232,169,76,0.05);
  }
  .journal-data-title{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:700;
    font-size: clamp(19px, 3cqw, 24px);
    color: var(--marigold);
    text-align:center;
    margin:0 0 8px;
  }
  .journal-data-copy{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:500;
    font-size:14px;
    line-height:1.6;
    color: rgba(243,233,216,0.85);
    text-align:center;
    margin:0 0 18px;
  }
  .journal-data-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  @container app (min-width: 420px){
    .journal-data-buttons{ flex-direction:row; }
    .journal-data-buttons .journal-data-btn{ flex:1 1 0; }
  }
  .journal-data-btn{
    display:block;
    width:100%;
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size:14px;
    letter-spacing:0.03em;
    color: var(--aubergine);
    background: var(--marigold);
    border:none;
    border-radius:24px;
    padding:13px 18px;
    cursor:pointer;
    text-align:center;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  }
  .journal-data-btn:active{ transform: scale(0.98); }
  .journal-data-btn:disabled{
    opacity:0.45;
    cursor:default;
    transform:none;
  }
  .journal-data-btn:focus-visible{
    outline:2px solid var(--marigold-soft);
    outline-offset:2px;
  }
  .journal-data-btn-secondary{
    background: rgba(255,255,255,0.08);
    border:1px solid rgba(243,233,216,0.3);
    color: var(--papyrus);
  }
  .journal-data-btn-danger{
    background: var(--berry);
    border:1px solid rgba(255,255,255,0.2);
    color:#fff;
  }
  .journal-data-hint{
    font-family:'Inter', sans-serif;
    font-size:11.5px;
    line-height:1.55;
    color: rgba(243,233,216,0.6);
    text-align:center;
    margin:12px 0 0;
  }
  .journal-data-status{
    min-height:18px;
    font-family:'Inter', sans-serif;
    font-size:12.5px;
    line-height:1.5;
    color: rgba(243,233,216,0.7);
    text-align:center;
    margin-top:14px;
  }
  .journal-data-status-working{ color: var(--marigold-soft); }
  .journal-data-status-success{ color: var(--marigold-soft); }
  .journal-data-status-error{ color: #f0a0a0; }
  .restore-confirm{
    margin-top:16px;
    padding:16px;
    border:1px solid rgba(232,169,76,0.5);
    border-radius:12px;
    background: rgba(139,41,66,0.18);
  }
  .restore-confirm[hidden]{ display:none; }
  .restore-confirm-text{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size:15px;
    line-height:1.55;
    color: var(--papyrus);
    text-align:center;
    margin:0 0 14px;
  }
  .restore-confirm-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  @container app (min-width: 420px){
    .restore-confirm-buttons{ flex-direction:row; }
    .restore-confirm-buttons .journal-data-btn{ flex:1 1 0; }
  }
  .restore-file-input{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
    opacity:0;
  }
  .journal-busy-overlay{
    position:fixed;
    inset:0;
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(10,5,4,0.82);
  }
  .journal-busy-overlay[hidden]{ display:none; }
  .journal-busy-overlay:focus{ outline:none; }
  .journal-busy-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    padding:28px 32px;
    border-radius:16px;
    background: rgba(28,20,16,0.96);
    border:1px solid rgba(232,169,76,0.4);
  }
  .journal-busy-spinner{
    width:30px;
    height:30px;
    border-radius:50%;
    border:3px solid rgba(232,169,76,0.25);
    border-top-color: var(--marigold);
    animation: journal-busy-spin 0.9s linear infinite;
  }
  @keyframes journal-busy-spin{ to{ transform:rotate(360deg); } }
  .journal-busy-text{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size:16px;
    line-height:1.4;
    color: var(--papyrus);
    margin:0;
    text-align:center;
  }

  /* ============ HAMBURGER NAVIGATION MENU ============ */
  .nav-menu-btn{
    position:absolute;
    top:24px;
    right:20px;
    z-index:900;
    width:44px;
    height:44px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background: rgba(28,20,16,0.72);
    border:1px solid rgba(232,169,76,0.5);
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action:manipulation;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }
  .nav-menu-btn.nav-hidden{ display:none; }
  .nav-menu-btn:active{ transform: scale(0.95); }
  .nav-menu-btn:focus-visible{
    outline:2px solid var(--marigold-soft);
    outline-offset:2px;
  }
  .nav-menu-icon{
    position:relative;
    display:block;
    width:22px;
    height:2px;
    border-radius:2px;
    background: var(--marigold-soft);
  }
  .nav-menu-icon::before,
  .nav-menu-icon::after{
    content:'';
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    border-radius:2px;
    background: var(--marigold-soft);
  }
  .nav-menu-icon::before{ top:-6px; }
  .nav-menu-icon::after{ top:6px; }
  .nav-menu-backdrop{
    position:absolute;
    inset:0;
    z-index:940;
    background: rgba(0,0,0,0.55);
    opacity:0;
    visibility:hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-menu-panel{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:min(82%, 320px);
    z-index:950;
    display:flex;
    flex-direction:column;
    padding: 18px;
    background: linear-gradient(160deg, #2a1426 0%, #170d14 55%, #0c070c 100%);
    border-left:1px solid rgba(232,169,76,0.35);
    box-shadow: -12px 0 32px rgba(0,0,0,0.5);
    transform: translateX(102%);
    visibility:hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }
  .app.nav-menu-open .nav-menu-backdrop{
    opacity:1;
    visibility:visible;
  }
  .app.nav-menu-open .nav-menu-panel{
    transform: translateX(0);
    visibility:visible;
  }
  .nav-menu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    padding-bottom:14px;
    margin-bottom:8px;
    border-bottom:1px solid rgba(232,169,76,0.25);
  }
  .nav-menu-eyebrow{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size:11px;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color: var(--marigold);
    margin:0;
  }
  .nav-menu-close{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:44px;
    padding:0 16px;
    border-radius:22px;
    border:1px solid rgba(243,233,216,0.3);
    background: rgba(255,255,255,0.06);
    color: var(--papyrus);
    font-family:'Inter', sans-serif;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action:manipulation;
  }
  .nav-menu-close:active{ transform: scale(0.96); }
  .nav-menu-close:focus-visible{
    outline:2px solid var(--marigold-soft);
    outline-offset:2px;
  }
  .nav-menu-items{
    display:flex;
    flex-direction:column;
    gap:10px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    flex:1 1 auto;
    min-height:0;
  }
  .nav-menu-item{
    display:block;
    width:100%;
    text-align:left;
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size:18px;
    color: var(--papyrus);
    background: rgba(255,255,255,0.03);
    border:1px solid rgba(243,233,216,0.14);
    border-left:3px solid transparent;
    border-radius:12px;
    padding:15px 18px;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action:manipulation;
  }
  .nav-menu-item:hover{
    background: rgba(232,169,76,0.12);
    border-color: rgba(232,169,76,0.45);
    border-left-color: var(--marigold);
  }
  .nav-menu-item.is-current{
    background: rgba(232,169,76,0.12);
    border-color: rgba(232,169,76,0.45);
    border-left-color: var(--marigold);
  }
  .nav-menu-item:active{ transform: scale(0.98); }
  .nav-menu-item:focus-visible{
    outline:2px solid var(--marigold-soft);
    outline-offset:2px;
  }

  /* While the menu is open, freeze the active screen's scroll container so
     wheel/touch gestures can't scroll content behind the drawer. */
  .app.nav-menu-open .journal-scroll,
  .app.nav-menu-open .days-scroll{
    overflow:hidden;
  }

  @media (prefers-reduced-motion: reduce){
    .nav-menu-panel,
    .nav-menu-backdrop{
      transition:none;
    }
  }

  /* ============ CONTINUE → BUTTONS (cover / title / intro) ============ */
  .continue-btn{
    position:absolute;
    left:20px;
    bottom:28px;
    transform:none;
    z-index:9;
    background: var(--marigold);
    color: var(--aubergine);
    border:none;
    font-family:'Inter', sans-serif;
    font-weight:700;
    font-size: clamp(13px, 1.6cqw, 16px);
    letter-spacing:0.04em;
    text-transform:uppercase;
    padding:13px 26px;
    border-radius:30px;
    cursor:pointer;
    white-space:nowrap;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    -webkit-tap-highlight-color: transparent;
    touch-action:manipulation;
  }
  .continue-btn:hover{ background: var(--marigold-soft); }
  .continue-btn:active{ transform:scale(0.97); }
  .continue-btn:focus-visible{
    outline:2px solid var(--marigold-soft);
    outline-offset:3px;
  }

  /* ============ SCREEN: WELCOME ============ */
  .welcome-scroll{
    position:absolute;
    inset:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:76px 10cqw 150px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .welcome-scroll::-webkit-scrollbar{ display:none; width:0; height:0; }
  .welcome-body{ max-width:520px; }
  .welcome-logo{
    display:block;
    width:min(92cqw, 480px);
    min-width:220px;
    height:auto;
    margin:16px auto clamp(56px, 8cqw, 80px);
    transform:translateX(-12%);
  }
  .welcome-title{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:700;
    font-size: clamp(26px, 5cqw, 40px);
    color: var(--papyrus);
    text-align:center;
    margin: 8px 0 30px;
  }
  .welcome-signoff{
    margin-top:10px;
  }
  .welcome-signature{
    font-family:'Quicksand', sans-serif;
    font-style:normal;
    font-weight:600;
    font-size: clamp(18px, 2.4cqw, 21px);
    color: var(--marigold-soft);
    letter-spacing:0.06em;
    margin-bottom:0;
  }
