/* The showroom page shared by the ArtMug detail page (/artmug, inside ArtMug's iframe) and the personal page (/).
   Shared parts (grid, lightbox, form) are in artmug-draft.css; html[data-mode="home"] holds the personal page's differences. */
:root { --bg: #0a0d0c; --panel: #121715; --panel2: #0f1311; --line: #222a26; --text: #f1f4ee; --sub: #b3bdb6; --mute: #7f8a83; --accent: #d6e6a3; --on-accent: #10140f; }
#page { position: relative; max-width: 1000px; margin: 0 auto; background: var(--bg); border-radius: 20px; overflow: hidden; }
.wrap { padding: 0 5%; }
.eyebrow { font-size: 11.5px; letter-spacing: .24em; color: var(--accent); font-weight: 600; }
.h2 { margin: 6px 0 0; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
section { padding-top: 84px; }

/* top bar */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px 5%; }
.brand { font-weight: 900; letter-spacing: .18em; font-size: 15px; }
.bar-r { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(214,230,163,.12); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #7fe08a; }
.status.closed { background: rgba(255,255,255,.08); color: var(--sub); }
.status.closed i { background: #9aa39d; }
.status-note { margin-top: 14px; font-size: 13.5px; color: var(--accent); }
/* without the intro screen the bar sits in the flow instead of over the picture */
.bar.solo { position: relative; }
.bar .go-ask { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; cursor: pointer; }

/* showroom intro: rows of works drifting sideways behind the title */
.intro { position: relative; height: 560px; overflow: hidden; }
.rows { position: absolute; inset: -30px 0 0; display: flex; flex-direction: column; gap: 12px; transform: rotate(-4deg) scale(1.08); opacity: .55; }
.row { display: flex; gap: 12px; width: max-content; animation: drift 70s linear infinite; }
.row:nth-child(2) { animation-direction: reverse; animation-duration: 90s; }
.row:nth-child(3) { animation-duration: 80s; }
.row img { height: 150px; width: auto; border-radius: 10px; }
@keyframes drift { to { transform: translateX(-50%); } }
.intro::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(10,13,12,.55) 0%, rgba(10,13,12,.92) 62%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.intro-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 6% 20px; }
.intro-copy h1 { margin: 12px 0 0; font-size: clamp(46px, 9vw, 92px); font-weight: 900; letter-spacing: .06em; line-height: 1; }
.intro-copy p { margin: 18px 0 0; color: var(--sub); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; max-width: 640px; }
.tags span { padding: 5px 11px; border: 1px solid #39443e; border-radius: 999px; font-size: 12px; color: #d3dbd5; background: rgba(10,13,12,.6); }
@media (max-width: 600px) { .intro { height: 500px; } .row img { height: 104px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.facts div { padding: 16px 18px; border-radius: 14px; background: var(--panel); }
.facts small { display: block; font-size: 12px; color: var(--mute); }
.facts b { font-size: 17px; }
.facts .ac { background: var(--accent); color: var(--on-accent); }
.facts .ac small { color: #4a5532; }

/* showroom: category rail + price panel + works */
.room { display: grid; grid-template-columns: 200px 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 2px; }
.rail-h { margin: 14px 0 6px; font-size: 11px; letter-spacing: .2em; color: var(--mute); }
.rail-h:first-child { margin-top: 0; }
.rail button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-size: 14.5px; text-align: left; cursor: pointer; }
.rail button small { color: var(--mute); font-size: 12px; }
.rail button:hover { background: var(--panel); }
.rail button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.rail button[aria-pressed="true"] small { color: #4a5532; }
.rail button[disabled] { opacity: .4; cursor: default; }
.stage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.stage-head h3 { margin: 0; font-size: 26px; font-weight: 800; }
.stage-head .cnt { color: var(--mute); font-size: 14px; margin-left: 6px; font-weight: 500; }
.ptag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ptag span { padding: 5px 10px; border-radius: 8px; background: var(--panel); font-size: 13px; color: var(--sub); }
.ptag b { color: var(--text); margin-left: 6px; }
.stage-head .ask-cat { padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
@media (max-width: 760px) {
  .room { grid-template-columns: 1fr; gap: 16px; }
  .rail { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -5%; padding: 0 5% 4px; scrollbar-width: none; }
  .rail-h { display: none; }
  .rail button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; gap: 6px; }
  .stage-head h3 { font-size: 22px; }
}

/* full price table */
.table { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; background: var(--panel); }
.table summary::-webkit-details-marker { display: none; }
.table summary::after { content: '펼치기 +'; font-size: 13px; color: var(--mute); font-weight: 500; }
.table[open] summary::after { content: '접기 –'; }
.tcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; }
.tcol { padding: 18px 22px; border-top: 1px solid var(--line); }
.tcol h4 { margin: 0 0 8px; font-size: 14px; color: var(--accent); }
.tcol div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13.5px; color: var(--sub); }
.tcol div b { color: var(--text); font-weight: 600; white-space: nowrap; }
.pnote { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* notices + form */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 24px; }
.notes div { position: relative; padding: 18px 18px 18px 52px; border-radius: 14px; background: var(--panel); font-size: 14px; color: var(--sub); }
.notes b { position: absolute; left: 18px; top: 18px; font-size: 13px; color: var(--accent); }
.notes strong { color: var(--text); }
.askbox { margin-top: 22px; padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.askbox h3 { margin: 0 0 4px; font-size: 21px; }
.askbox > p { margin: 0 0 20px; font-size: 13.5px; color: var(--mute); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; font-size: 14px; }
.flow span { padding: 9px 14px; border-radius: 10px; background: var(--panel); }
.flow span:last-child { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.flow i { font-style: normal; color: var(--mute); }
.foot { margin-top: 64px; padding: 22px 5% 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); text-align: center; }

/* SNS · contact links (personal page only) */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 24px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s; }
.links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.links a small { display: block; font-weight: 500; font-size: 12px; color: var(--mute); margin-top: 2px; overflow-wrap: anywhere; }
.links a::after { content: '↗'; color: var(--accent); }
.bar-links { display: flex; gap: 4px; }
.bar-links a { padding: 6px 10px; border-radius: 999px; color: var(--sub); text-decoration: none; font-size: 12.5px; }
.bar-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
@media (max-width: 760px) { .bar-links { display: none; } }

/* the personal page is the whole site: full width, the content column centred */
html[data-mode="home"] body { background: var(--bg); padding: 0; }
html[data-mode="home"] #page { max-width: none; border-radius: 0; }
html[data-mode="home"] .wrap { max-width: 1160px; margin: 0 auto; }
html[data-mode="home"] .bar { max-width: 1160px; margin: 0 auto; }
html[data-mode="home"] .intro { height: 640px; }
html[data-mode="home"] .row img { height: 170px; }
@media (max-width: 600px) { html[data-mode="home"] .intro { height: 520px; } html[data-mode="home"] .row img { height: 104px; } }
/* personal page: a full-screen cover first; its buttons open the detail view (html[data-view]) */
html[data-mode="home"] #page { overflow: clip; }
html[data-view="cover"] #detail { display: none; }
html[data-view="detail"] .intro.cover { display: none; }
html[data-mode="home"] .intro.cover { height: 100vh; height: 100svh; min-height: 580px; }
.intro.cover .rows { opacity: .62; }
/* six rows sized to fill the screen height */
html[data-mode="home"] .intro.cover .row img { height: calc((100svh + 90px) / 6.2); min-height: 96px; }
.intro.cover .intro-copy h1 { font-size: clamp(56px, 12vw, 140px); }
.intro.cover .intro-copy p { font-size: 16.5px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1px solid #46524b; background: rgba(10,13,12,.55); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; backdrop-filter: blur(6px); transition: border-color .2s, transform .2s; }
.cta:hover { border-color: var(--accent); transform: translateY(-2px); }
.cta.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cover-meta { margin-top: 22px; font-size: 13px; color: var(--mute); }
.cover-meta b { color: var(--sub); }
.cover-links { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.cover-links a { color: var(--sub); font-size: 13px; text-decoration: none; }
.cover-links a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .cta { padding: 12px 18px; font-size: 14px; }
  .cover-links { bottom: 16px; }
}

/* the detail view: the bar stays at the top with the page menu */
.view-nav { display: none; gap: 2px; }
html[data-view="detail"] .bar { position: sticky; top: 0; z-index: 20; background: rgba(10,13,12,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
html[data-view="detail"] .view-nav { display: flex; }
.view-nav a { padding: 8px 12px; border-radius: 999px; color: var(--sub); text-decoration: none; font-size: 14px; white-space: nowrap; }
.view-nav a:hover { color: var(--text); }
.view-nav a[aria-current="true"] { color: var(--accent); background: rgba(214,230,163,.1); }
a.brand { color: var(--text); text-decoration: none; }
a.go-ask { display: inline-block; text-decoration: none; }
html[data-view="detail"] #detail { animation: rise .35s ease; }
html[data-view="detail"] #detail > .wrap > :first-child { margin-top: 28px; }
html[data-mode="home"] section, html[data-mode="home"] #s-price, html[data-mode="home"] .facts { scroll-margin-top: 84px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  html[data-view="detail"] .bar { flex-wrap: wrap; row-gap: 6px; padding-top: 12px; padding-bottom: 10px; }
  html[data-view="detail"] .view-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  html[data-view="detail"] .bar .status { display: none; }
}
/* cover: rows alternate direction and speed; one even 80% overlay over the whole cover */
.intro.cover .rows { inset: -50px -40px -50px; gap: 12px; opacity: .7; }
.intro.cover .row:nth-child(4) { animation-duration: 95s; animation-direction: reverse; }
.intro.cover .row:nth-child(5) { animation-duration: 75s; }
.intro.cover .row:nth-child(6) { animation-duration: 85s; animation-direction: reverse; }
.intro.cover::after { background: rgba(10,13,12,.8); }