/* YUME DESIGN · 1+2+4 real-site UX mix (2026-10-24).
   Presentation-only: keep existing order, auth, studio and image sources intact. */
body .site-wrap > .topbar{
  position:sticky;top:0;z-index:350;isolation:isolate;
  padding-inline:clamp(10px,2vw,22px);
  background:linear-gradient(125deg,rgba(255,251,255,.96),rgba(247,239,254,.94));
  border:1px solid rgba(226,207,241,.85);
  border-top:0;border-radius:0 0 22px 22px;
  box-shadow:0 7px 22px rgba(105,66,135,.10);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
body .site-wrap > .topbar :is(.desktop-nav a,.member-entry,.purchase-nav){
  border-radius:999px;min-height:39px;display:inline-flex;align-items:center;justify-content:center;
}
body .site-wrap > .topbar .desktop-nav a[aria-current="page"]{
  color:#78529f!important;background:#f1e6fb!important;box-shadow:inset 0 0 0 1px #dfc8ec;
}
body .site-wrap > .topbar .purchase-nav{
  background:linear-gradient(115deg,#9570c4,#d28fbf)!important;color:#fff!important;
  border-color:transparent!important;box-shadow:0 5px 15px #9770b44a;
}
body .site-wrap > .topbar :is(a,button):focus-visible,
body .yume-bottom-nav :is(a,button):focus-visible{
  outline:3px solid #9d69bf!important;outline-offset:3px!important;
}
body .yume-bottom-nav{z-index:351;max-width:calc(100% - 22px);box-sizing:border-box}
body .yume-bottom-nav [data-yume-nav-legacy-inquiry][hidden]{display:none!important}
body .yume-bottom-nav [data-yume-nav-notifications]{
  min-width:0;flex:1;position:relative;padding:7px 5px;border-radius:12px;
  color:#8c72a6;min-height:48px
}
body .yume-bottom-nav [data-yume-nav-notifications][aria-pressed="true"]{
  background:#f0e5fa;color:#7655a4;
}
body .yume-bottom-nav [data-yume-nav-notifications] svg{width:22px;height:22px}
body .yume-bottom-nav [data-yume-nav-notifications] span{font-size:10px;font-weight:750}

/* Hero: put meaningful controls in the layout flow, instead of an
   absolutely positioned block that can be covered or cut at 320px. */
body .yume-hero-layout > .hero{
  position:relative!important;display:flex!important;align-items:flex-end!important;
  min-height:clamp(500px,44vw,610px)!important;height:auto!important;
  padding:0!important;isolation:isolate;overflow:hidden;
}
body .yume-hero-layout .hero .hero-shade{
  pointer-events:none!important;z-index:1!important;
  background:linear-gradient(0deg,rgba(247,239,253,.97) 0%,rgba(247,239,253,.86) 22%,rgba(247,239,253,.20) 58%,transparent 85%)!important;
}
body .yume-hero-layout .hero .yume-duo-visual{z-index:2;pointer-events:none!important}
body .yume-hero-layout .hero :is(.hero-art,.hero-label,.scene-label){pointer-events:none}
body .yume-hero-layout .hero .hero-copy{
  position:relative!important;top:auto!important;bottom:auto!important;
  left:auto!important;right:auto!important;transform:none!important;
  box-sizing:border-box!important;display:block!important;
  width:calc(100% - 36px)!important;max-width:700px!important;
  min-width:0!important;margin:0 18px 20px!important;padding:18px 20px 20px!important;
  z-index:12!important;pointer-events:auto!important;
  background:linear-gradient(130deg,rgba(255,251,255,.94),rgba(248,237,255,.88));
  border:1px solid #ffffffa8;border-radius:20px;
  box-shadow:0 12px 28px #6e4b8b22;
}
body .yume-hero-layout .hero .hero-copy h1{font-size:clamp(24px,3.4vw,42px)!important;line-height:1.27!important;max-width:none!important}
body .yume-hero-layout .hero .hero-copy > p:not(.eyebrow){margin:9px 0 12px!important}
body .yume-hero-layout .hero .yume-hero-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;margin:0!important;
}
body .yume-hero-layout .hero .yume-hero-actions :is(a,button){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-width:0!important;width:100%!important;
  max-width:100%!important;min-height:48px!important;height:auto!important;
  padding:11px 12px!important;line-height:1.3!important;white-space:normal!important;
  text-align:center!important;overflow-wrap:anywhere!important;
  position:relative!important;z-index:13!important;border-radius:999px!important;
}

/* Inline, instantly adjustable gallery / original-ratio sizing. */
body .yume-image-inline .yume-size-quick{
  display:flex;align-items:center;justify-content:flex-end;
  flex:1 1 235px;min-width:min(100%,235px);gap:8px;flex-wrap:wrap;
  border:1px solid #e6d1ef;border-radius:18px;padding:8px 10px;
  background:linear-gradient(130deg,#fffaff,#f7effc);
}
body .yume-size-quick label{font-size:12px;font-weight:800;color:#74548f;white-space:nowrap}
body .yume-size-quick input[type="range"]{
  flex:1 1 90px;min-width:70px;max-width:270px;
  height:34px;accent-color:#a376c4;touch-action:pan-x;
}
body .yume-size-quick output{min-width:42px;text-align:center;color:#8548a7;font:800 12px/1.2 system-ui;white-space:nowrap}
body .yume-size-quick button{
  flex:0 0 auto;border:1px solid #e1c8eb;border-radius:999px;
  min-height:34px;padding:6px 10px;background:white;color:#76549a;
  font-size:11px;font-weight:800;
}
body .yume-size-quick :is(input,button):focus-visible{outline:3px solid #976abd;outline-offset:2px}
body :is(#home-works,#gallery-items,#signature-items) .work-card{transition:width .2s ease,box-shadow .2s ease}
body #art-dialog .dialog-preview img{
  box-sizing:border-box!important;width:calc(62.5% * var(--yume-image-zoom,1.6))!important;
  max-width:100%!important;height:auto!important;max-height:62dvh!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
}
@media(min-width:651px) and (max-width:1080px){
  body .yume-hero-layout > .hero{min-height:520px!important}
  body .yume-hero-layout .hero .hero-copy{max-width:calc(100% - 36px)!important}
}
@media(max-width:650px){
  body .site-wrap > .topbar{height:auto;min-height:66px;padding:6px 9px;border-radius:0 0 15px 15px}
  body .yume-hero-layout > .hero{min-height:clamp(500px,145vw,625px)!important}
  body .yume-hero-layout .hero .hero-copy{
    width:calc(100% - 26px)!important;max-width:none!important;
    margin:0 13px 15px!important;padding:14px 13px 15px!important;border-radius:17px!important;
  }
  body .yume-hero-layout .hero .hero-copy h1{font-size:clamp(25px,7vw,33px)!important}
  body .yume-hero-layout .hero .yume-hero-actions{gap:7px!important}
  body .yume-hero-layout .hero .yume-hero-actions :is(a,button){font-size:12px!important;min-height:48px!important;padding:10px 8px!important}
  body .yume-image-inline .yume-size-quick{flex:1 1 100%;justify-content:stretch}
  body .yume-size-quick input[type="range"]{max-width:none}
  /* A one-column mobile gallery otherwise never changes size when the
     user moves the slider: vary actual card width, never crop its contents. */
  html:root body :is(#home-works,#gallery-items,#signature-items) .work-card{
    width:min(100%,calc(47% + 33% * var(--yume-image-zoom,1.6)))!important;
    max-width:none!important;min-width:0!important;justify-self:center!important;
  }
  body .site-wrap{padding-bottom:max(155px,calc(145px + env(safe-area-inset-bottom,0px)))!important}
}
@media(max-width:390px){
  body .yume-hero-layout .hero .yume-hero-actions{grid-template-columns:1fr!important}
  body .yume-hero-layout > .hero{min-height:570px!important}
}
@media(prefers-reduced-motion:reduce){
  body .yume-hero-layout .hero .yume-hero-actions :is(a,button),
  body :is(#home-works,#gallery-items,#signature-items) .work-card{transition:none!important}
}


/* OCT 24 / v2 repair · causal fix:
   The previous 700px text panel crossed into the right-hand 49% duo art.
   Text content is administrator-editable, so solve collision geometrically,
   instead of abbreviating Korean or English titles. */
@media (min-width: 861px) {
  html:root body .yume-hero-layout > .hero {
    min-height:clamp(480px,43vw,640px)!important;
    align-items:center!important;
    justify-content:flex-start!important;
    padding-block:24px!important;
  }
  html:root body .yume-hero-layout .hero .hero-copy {
    flex:0 0 auto!important;
    width:calc(51% - 52px)!important;
    max-width:calc(51% - 52px)!important;
    min-width:0!important;
    margin:20px 0 20px 23px!important;
    padding:clamp(16px,2vw,25px)!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
  }
  html:root body .yume-hero-layout .hero .hero-copy h1{
    font-size:clamp(22px,2.5vw,38px)!important;
    line-height:1.31!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
    text-shadow:none!important;
  }
  html:root body .yume-hero-layout .hero .yume-duo-visual{
    position:absolute!important;
    left:auto!important;right:14px!important;
    top:30px!important;bottom:22px!important;
    width:49%!important;max-width:49%!important;
    height:auto!important;margin:0!important;
    pointer-events:none!important;
  }
  html:root body .yume-hero-layout .hero .yume-duo-visual img{
    width:100%!important;height:100%!important;
    object-fit:contain!important;object-position:center!important;
  }
  html:root body .yume-hero-layout .hero .hero-shade{
    background:linear-gradient(90deg,rgba(246,239,254,.96),rgba(246,239,254,.72) 47%,transparent 65%)!important;
  }
}
/* Narrower windows must stack the art and the text instead of overlapping. */
@media (max-width: 860px) {
  html:root body .yume-hero-layout > .hero{
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;justify-content:flex-start!important;
    height:auto!important;min-height:0!important;
    padding:0 0 12px!important;
  }
  html:root body .yume-hero-layout .hero .yume-duo-visual{
    position:relative!important;top:auto!important;right:auto!important;
    bottom:auto!important;left:auto!important;
    width:calc(100% - 28px)!important;max-width:none!important;
    height:clamp(205px,35vw,315px)!important;
    flex:none!important;margin:40px 14px 0!important;
    overflow:hidden!important;z-index:3!important;
  }
  html:root body .yume-hero-layout .hero .yume-duo-visual img{
    width:100%!important;height:100%!important;object-fit:contain!important;
    object-position:center!important;
  }
  html:root body .yume-hero-layout .hero .hero-copy{
    position:relative!important;top:auto!important;right:auto!important;
    bottom:auto!important;left:auto!important;
    flex:none!important;width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:10px 14px 3px!important;
    padding:15px!important;z-index:5!important;
    overflow-wrap:anywhere!important;
  }
  html:root body .yume-hero-layout .hero .hero-copy h1{
    font-size:clamp(23px,4.8vw,32px)!important;
    line-height:1.3!important;word-break:keep-all!important;
    overflow-wrap:anywhere!important;
  }
  html:root body .yume-hero-layout .hero .hero-shade{
    background:linear-gradient(0deg,rgba(246,239,254,.97),rgba(246,239,254,.67) 45%,transparent 90%)!important;
  }
}
@media(max-width:390px){
  html:root body .yume-hero-layout > .hero{min-height:0!important;height:auto!important}
  html:root body .yume-hero-layout .hero .yume-duo-visual{height:215px!important}
  html:root body .yume-hero-layout .hero .yume-hero-actions{grid-template-columns:1fr!important}
}

/* Compact proportional artwork mosaic · 6 genuine homepage works.
   auto-fill uses a *definite* width per track: unlike minmax(...,1fr)
   this does not stretch one or two cards to fill the whole panel.
   The existing scale slider continuously changes card width via --yume-image-zoom. */
html:root body :is(#home-works,#gallery-items,#signature-items){
  --yume-card-target:clamp(170px,calc(215px * var(--yume-image-zoom,1)),350px);
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--yume-card-target)),var(--yume-card-target)))!important;
  justify-content:center!important;
  justify-items:stretch!important;
  align-items:start!important;
  gap:clamp(10px,1.4vw,18px)!important;
  max-width:100%!important;
  min-width:0!important;
}
html:root body :is(#home-works,#gallery-items,#signature-items) .work-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  justify-self:stretch!important;
  overflow:hidden!important;
}
html:root body :is(#home-works,#gallery-items,#signature-items) .art-preview{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:var(--yume-art-ratio,1)!important;
  padding:0!important;
  overflow:hidden!important;
}
html:root body :is(#home-works,#gallery-items,#signature-items) .art-preview > img{
  position:absolute!important;
  inset:8px!important;
  width:calc(100% - 16px)!important;
  height:calc(100% - 16px)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
html:root body #home-works .work-meta{
  padding:10px 12px!important;
}
html:root body #home-works .work-meta h3{
  font-size:clamp(12px,1.15vw,15px)!important;
  overflow-wrap:anywhere;
  line-height:1.4;
}
html:root body #home-works .art-purchase-action button{
  width:100%;
  min-height:39px;
  border-radius:999px;
  font-size:clamp(11px,.95vw,13px);
  white-space:normal;
  overflow-wrap:anywhere;
}
/* Mobile: fit two readable proportion-preserving cards side-by-side when
   the available width permits, and one card on very narrow viewports. */
@media(max-width:800px){
  html:root body #home .home-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:650px){
  html:root body :is(#home-works,#gallery-items,#signature-items){
    --yume-card-target:clamp(130px,calc(148px * var(--yume-image-zoom,1)),237px);
    gap:10px!important;
  }
  html:root body #home-works .work-meta{
    padding:8px 9px!important;
  }
  html:root body #home-works .art-purchase-action button{
    font-size:11px!important;
    padding:8px 6px!important;
  }
}
/* Keep crowded navigation readable on mid-sized desktop screens. */
@media(min-width:861px) and (max-width:1250px){
  html:root body .site-wrap > .topbar{gap:clamp(4px,.8vw,10px)!important}
  html:root body .site-wrap > .topbar .desktop-nav{gap:clamp(3px,.7vw,10px)!important}
  html:root body .site-wrap > .topbar :is(.desktop-nav a,.top-actions button,.top-actions a){
    white-space:nowrap;font-size:clamp(10px,.9vw,13px)!important;
  }
}


/* v4: true non-overlapping desktop grid. The preceding v2 panel placement
   used a wide overlay; grid tracks now allocate separate physical space
   for the admin-editable headline and the unchanged character artwork. */
@media (min-width:861px){
  html:root body .yume-hero-layout>.hero{
    display:grid!important;
    grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;
    column-gap:clamp(12px,1.5vw,26px)!important;
    align-items:center!important;
    justify-content:stretch!important;
    padding:clamp(14px,1.7vw,26px)!important;
    min-height:clamp(455px,40vw,590px)!important;
    height:auto!important;
  }
  html:root body .yume-hero-layout>.hero>.hero-copy{
    grid-column:1!important;grid-row:1!important;
    position:relative!important;inset:auto!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    align-self:center!important;
    width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:0!important;
    margin:0!important;
    padding:clamp(15px,2vw,25px)!important;
    overflow-wrap:anywhere!important;
    z-index:5!important;
  }
  html:root body .yume-hero-layout>.hero>.yume-duo-visual{
    grid-column:2!important;grid-row:1!important;
    position:relative!important;inset:auto!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    align-self:center!important;
    width:100%!important;max-width:100%!important;
    min-width:0!important;height:clamp(315px,34vw,505px)!important;
    margin:0!important;
    overflow:hidden!important;z-index:3!important;
  }
  html:root body .yume-hero-layout>.hero>.yume-duo-visual img{
    display:block!important;width:100%!important;height:100%!important;
    object-fit:contain!important;object-position:center center!important;
  }
  html:root body .yume-hero-layout>.hero>.hero-copy h1{
    max-width:100%!important;
    font-size:clamp(22px,2.65vw,37px)!important;
    line-height:1.3!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
    text-shadow:none!important;
  }
  html:root body .yume-hero-layout>.hero>.hero-copy .yume-hero-actions{
    width:100%!important;min-width:0!important;
  }
}
/* Smaller layouts use the preceding stacked art-then-copy rules: no shared
   horizontal lane, no absolute text on top of the character image. */


/* Keep text readable against the translucent moonlight card even when a
   theme plugin previously styled the title as white-on-hero. */
html:root body .yume-hero-layout>.hero>.hero-copy h1{
  color:#553b68!important;
  text-shadow:0 1px 0 rgba(255,255,255,.65)!important;
}
html:root body .yume-hero-layout>.hero>.hero-copy > p:not(.eyebrow){
  color:#695575!important;
  text-shadow:none!important;
}
html:root body .yume-hero-layout>.hero>.hero-copy > .eyebrow{
  color:#8858a9!important;
  text-shadow:none!important;
}


/* Keep the price-guide shortcut readable beside the six artwork previews. */
html:root body #home .works-panel .section-head{
  display:flex!important;align-items:center!important;
  flex-wrap:wrap!important;column-gap:12px!important;row-gap:8px!important;
}
html:root body #home .works-panel .section-head>div{
  flex:1 1 215px!important;min-width:0!important;
}
html:root body #home .works-panel .section-head>a[href="/prices.html"]{
  padding:7px 12px!important;min-height:38px!important;
  border-radius:999px!important;background:#f8ecfa!important;
  border:1px solid #e5caeb!important;color:#83549c!important;
  font-weight:800!important;text-decoration:none!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
