/* The song-creation journey (/studio): one design system for every stage (owner, 28 Nov 2026: "Every stage must look and
   feel like it belongs to the same premium Evermelora experience"). Laid over the creator's own markup by the studio
   Worker; the creator's code and the approved homepage and artwork are untouched. Chocolate, champagne gold, warm cream.

   Buttons, everywhere in the journey:
     primary   - one per screen: the way forward (gold, solid)          .btn, #ev-next, .ev-b1
     secondary - a real alternative (champagne outline)                 #ds-edit, #dsf-revise, #ev-edit-brief, #ds-use-builder, #ev-back, .ev-b2
     tertiary  - quiet ways out or back (text, no box)                  .back ([data-back]), .ev-b3 (#dsf-new: small secondary ring)          */

:root{--ev-gold-a:#f7d7a0;--ev-gold-b:#e9b874;--ev-gold-c:#c98f4f;--ev-ink:#2d180f;--ev-cream:#fff2dc;--ev-text:#f2e3cf;--ev-mute:#cdb698;
  --ev-line:rgba(244,195,123,.22);--ev-card:rgba(36,21,15,.92);--ev-radius:16px;--ev-gap:18px}

/* ---- containers: one card per stage, no frames inside frames, the same side margins everywhere -------------------- */
#dalton-studio{border:0!important;padding:0!important;background:none!important;box-shadow:none!important;max-width:760px;margin-left:auto!important;margin-right:auto!important}
#dalton-studio > .eyebrow,#dalton-studio > h2,#dalton-studio > .intro{display:none!important}   /* the page already says it, once */
#dalton-studio .panel{border-radius:var(--ev-radius)!important}
#dalton-studio #dsf{padding-left:0!important;padding-right:0!important;border:0!important;background:none!important;box-shadow:none!important}
#ds-guided > p:first-child{background:none!important;border:0!important;padding:0!important;margin:2px 2px 14px!important;color:var(--ev-mute)!important;font:14px/1.55 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important}
#dsf .dsf-box{border-top:0!important;padding-top:4px!important}

/* ---- primary ------------------------------------------------------------------------------------------------------ */
#dalton-studio .btn,#ev-next,.ev-b1{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px!important;
  border:0!important;border-radius:999px!important;font:700 16px/1.2 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;letter-spacing:.01em;
  color:var(--ev-ink)!important;background:linear-gradient(180deg,var(--ev-gold-a) 0%,var(--ev-gold-b) 58%,var(--ev-gold-c) 100%)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.55)!important;text-decoration:none!important;text-align:center;
  cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;-webkit-tap-highlight-color:transparent}
#dalton-studio .btn:hover,#ev-next:hover,.ev-b1:hover{filter:brightness(1.04);transform:translateY(-1px)}
#dalton-studio .btn:active,#ev-next:active,.ev-b1:active{transform:translateY(0) scale(.99)}
#dalton-studio .btn:disabled,#ev-next:disabled,.ev-b1:disabled{opacity:.55;cursor:default;transform:none;filter:none}
#dalton-studio .actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}

/* ---- secondary ---------------------------------------------------------------------------------------------------- */
#dalton-studio #ds-edit,#dalton-studio #dsf-revise,#dalton-studio #ev-edit-brief,#dalton-studio #ds-use-builder,#ev-back,.ev-b2{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px!important;
  border:0!important;border-radius:999px!important;background:transparent!important;background-image:none!important;
  box-shadow:inset 0 0 0 1px rgba(244,195,123,.55)!important;color:var(--ev-cream)!important;
  font:600 15px/1.2 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;text-decoration:none!important;cursor:pointer;transition:box-shadow .15s ease,background .15s ease}
#dalton-studio #ds-edit:hover,#dalton-studio #dsf-revise:hover,#dalton-studio #ev-edit-brief:hover,#dalton-studio #ds-use-builder:hover,#ev-back:hover,.ev-b2:hover{background:rgba(244,195,123,.08)!important;box-shadow:inset 0 0 0 1px rgba(247,215,160,.9)!important}

/* ---- tertiary ----------------------------------------------------------------------------------------------------- */
#dalton-studio .back,.ev-b3{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 6px!important;margin:6px 0!important;
  border:0!important;border-radius:10px!important;background:none!important;background-image:none!important;box-shadow:none!important;outline:0;
  color:var(--gold,#f4c37b)!important;font:600 14px/1.3 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;
  letter-spacing:.02em;text-decoration:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
#dalton-studio .back:hover,.ev-b3:hover{color:var(--gold-hi,#f7d7a0)!important;text-decoration:underline!important;text-underline-offset:4px}
/* "Start a different song": the secondary champagne ring, sized down so it never competes with the step's gold button */
#dalton-studio #dsf-new{display:flex!important;margin:28px auto 4px!important;min-height:44px;padding:0 22px!important;border-radius:999px!important;
  box-shadow:inset 0 0 0 1px rgba(244,195,123,.5)!important;color:var(--ev-cream,#f6ead8)!important;font-weight:600!important;text-decoration:none!important}
#dalton-studio #dsf-new:hover{background:rgba(244,195,123,.08)!important;box-shadow:inset 0 0 0 1px rgba(247,215,160,.9)!important;text-decoration:none!important}
#dalton-studio #dsf-new[hidden]{display:none!important}
#dalton-studio .btn:focus-visible,#ev-next:focus-visible,.ev-b1:focus-visible,#ds-edit:focus-visible,#dsf-revise:focus-visible,#ev-back:focus-visible,.ev-b2:focus-visible,#dalton-studio .back:focus-visible,.ev-b3:focus-visible{outline:2px solid var(--ev-gold-a)!important;outline-offset:3px}

/* ---- the security check: dark, and only shown when it needs the customer ------------------------------------------ */
#dsf-turnstile{margin:14px 0 4px;min-height:0}
#dsf-turnstile:empty{display:none}

/* ---- Cassidy's Melody Run on the waiting step: inside the screen, always (the game draws to the width it is given) - */
#mr-host{width:100%;max-width:100%}
#mr-host #mr-root:not(.mr-full){left:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:14px 0 18px!important}
#mr-host.ev-managed .mr-prog{display:none!important}      /* the journey's own status card says how the song is going */

/* ---- the confirmation sheet (Start a different song) ------------------------------------------------------------- */
.ev-sheet{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:flex-end;justify-content:center;padding:16px 16px max(16px,env(safe-area-inset-bottom));
  background:rgba(12,6,3,.66);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:ev-fade .2s ease both}
.ev-sheet-in{width:100%;max-width:440px;padding:26px 22px 18px;border-radius:22px;text-align:center;color:var(--ev-text);
  background:linear-gradient(180deg,#2a1810,#1a0e09);box-shadow:inset 0 0 0 1px rgba(244,195,123,.35),0 30px 80px rgba(0,0,0,.55);animation:ev-rise .28s cubic-bezier(.2,.8,.2,1) both}
.ev-sheet-in h3{margin:0 0 8px;font:italic 400 1.5rem/1.2 var(--serif,"Iowan Old Style",Palatino,Georgia,serif);color:var(--ev-cream)}
.ev-sheet-in p{margin:0 0 20px;font:15px/1.55 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif);color:var(--ev-mute)}
.ev-sheet-in .ev-b1,.ev-sheet-in .ev-b2{width:100%;margin:0 0 10px}
@media (min-width:720px){.ev-sheet{align-items:center}}
@keyframes ev-fade{from{opacity:0}to{opacity:1}}
@keyframes ev-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ev-sheet,.ev-sheet-in{animation:none}#dalton-studio .btn,#ev-next,.ev-b1{transition:none}}

/* ---- phones: the same 18px side margins as the page, a little less padding inside cards ---------------------------- */
@media (max-width:600px){
  #dalton-studio .panel{padding-left:14px!important;padding-right:14px!important}
  #ds-review #mr-host{width:auto;max-width:none;margin-left:-14px;margin-right:-14px}   /* the game uses the card's full width */
  #dalton-studio .btn,#ev-next,.ev-b1{min-height:54px;padding:0 22px!important}
  #dalton-studio .actions .btn,#dsf-create,#dsf-generate,#dsf-buy{width:100%}
}

/* back from checkout: the order's confirmation, in the studio's quiet type */
html.ev-done-step #dalton-studio > .ds-guarantee,html.ev-done-step #ds-guided > p,html.ev-done-step #ds-guided > .back,
html.ev-done-step #ds-review > h3,html.ev-done-step #ds-review > .actions,html.ev-done-step #ds-review > .hint{display:none!important}
/* once the song is being recorded its details can no longer change: no Edit Details, no "next we write your lyrics" */
html.ev-past-details #ds-review > .actions,html.ev-past-details #ds-review > .hint{display:none!important}
/* whatever the page scrolls to lands below the sticky header */
#ev-status,#ev-wait,#dsf,#dsf-lyrics,#dsf-working,#dsf-preview,#dsf-done,#ev-unlocked,#mr-host{scroll-margin-top:84px}
/* anything the creator hides stays hidden, whatever the button rules above say */
#dalton-studio .btn[hidden],#dalton-studio button[hidden],#dalton-studio .back[hidden]{display:none!important}
#dsf-done{text-align:center;padding:8px 0 4px}
#dsf-done h3{font-family:var(--serif,Georgia,serif);font-weight:500;font-size:clamp(1.5rem,5vw,2rem);margin:6px 0 8px}
#dsf-done .hint{max-width:34em;margin:0 auto}
#dsf-done .ev-receipt-back{margin:14px auto 0}

/* the checkout button holds its price in its own span: laid out as one line of text (wrapping as one sentence if it
   must), centred, never split into a word column and a price column */
#dalton-studio #dsf-buy{display:block!important;text-align:center!important;padding:15px 22px!important;line-height:1.35!important}
#dalton-studio #dsf-buy #dsf-price{white-space:nowrap}

/* the preview step's choices (package, gift): a titled section, not a box around boxes; the choices themselves are the
   only cards */
#dalton-studio .dsf-gift{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:26px 0 0!important;border-radius:0!important}
#dalton-studio .dsf-tiers-title{margin:0 0 10px!important;font:700 .72rem/1.2 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;letter-spacing:.2em;text-transform:uppercase;color:var(--gold,#f4c37b)!important}
#dalton-studio .dsf-tiers-title strong{font-weight:700}

/* messages that ask the customer for something: the studio's dark card with a warm red edge (the creator's light pink
   boxes were unreadable on the dark studio) */
#dalton-studio .ds-alert,#dalton-studio .dsf-msg:not(.dsf-ok):not(:empty){background:rgba(192,87,63,.12)!important;border:1px solid rgba(232,128,102,.7)!important;color:#ffd9cf!important;
  border-radius:14px!important;padding:14px 16px!important;font:600 15px/1.45 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;box-shadow:none!important}
#dalton-studio .ds-alert ul{margin:8px 0 0!important;padding-left:20px!important}
#dalton-studio .ds-alert li{color:#ffd9cf!important}
#dalton-studio .ds-alert button{display:inline!important;min-height:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;border:0!important;
  color:#ffe6a8!important;font:600 15px/1.45 inherit!important;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer}
#dalton-studio .dsf-msg.dsf-ok{color:var(--ev-mute,#cdb79c)!important}
/* a step that still needs an answer: one warm-red edge on the card itself (no second ring around it), and a quiet
   "Please choose one" in the card's top corner, clear of its title */
#dalton-studio .panel.ds-missing,#dalton-studio .ds-missing{position:relative;outline:0!important;animation:none!important;
  border-color:rgba(232,128,102,.8)!important;box-shadow:0 0 0 1px rgba(232,128,102,.25),0 10px 30px rgba(0,0,0,.25)!important}
#dalton-studio .ds-need{position:absolute;top:16px;right:18px;margin:0!important;padding:4px 10px!important;border-radius:999px!important;
  background:rgba(192,87,63,.16)!important;box-shadow:inset 0 0 0 1px rgba(232,128,102,.6);color:#ffc9b8!important;
  font:600 12px/1.2 var(--sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;letter-spacing:.02em;white-space:nowrap}
@media (max-width:420px){#dalton-studio .ds-need{top:12px;right:12px;font-size:11px!important;padding:3px 8px!important}}
/* Continue / Back sit clear of the card above them */
#dalton-studio #ev-step-navigation{margin-top:28px!important}
