/* Shared components: header, footer, buttons, facts, lot cards, states, unveil room. */

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); }
.site-head .bar { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.mark { font: 500 21px/1 var(--display); letter-spacing: .06em; margin-right: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 13px; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--fg); }
.lang { font: 400 13px/1 var(--display); color: var(--muted); letter-spacing: .08em; }
.lang button[aria-pressed="true"] { color: var(--fg); }
.lang span { margin-inline: 4px; color: var(--faint); }
.wallet-btn { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 2px; white-space: nowrap; }
.wallet-btn:hover { border-color: var(--gilt); }
.tabbar { display: none; }
@media (max-width: 760px) {
  .site-head .bar { padding-block: 16px; gap: 18px; }
  .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 9; background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
  .tabbar a { text-align: center; font-size: 12px; color: var(--muted); padding-block: 4px; }
  .tabbar a[aria-current="page"] { color: var(--fg); }
  body { padding-bottom: 64px; }
}
.notice { border-bottom: 1px solid var(--line); }
.notice .wrap { padding-block: 10px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }
.notice.bad .wrap { color: var(--danger); }
.notice button { text-decoration: underline; text-underline-offset: 3px; }

/* footer */
.site-foot { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 28px 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 12.5px; color: var(--muted); }
.site-foot .end { margin-left: auto; font-family: var(--display); letter-spacing: .06em; }
.site-foot a:hover { color: var(--fg); }

/* buttons */
.act { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); width: 100%; text-align: left; }
.act b { font: 400 16px/1 var(--serif); letter-spacing: .06em; }
.act span { font: 400 16px/1 var(--display); color: var(--muted); }
.act:hover:not(:disabled) { border-color: var(--gilt); }
.act.main { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.act.main span { color: var(--bg); opacity: .7; }
.act:disabled { opacity: .4; }
.link { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--gilt); }

/* facts */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font: 400 20px/1.2 var(--display); letter-spacing: .03em; }
.facts dd small { font: 300 13px var(--sans); color: var(--muted); letter-spacing: 0; }

/* lot cards */
.lots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 960px) { .lots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } }
.item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.item .pic { aspect-ratio: 1; background: var(--plinth); margin-bottom: 10px; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.item.gone .pic img { filter: grayscale(1) brightness(.35); }
.item.veiled .pic img { filter: brightness(.08); }
.item .name { font: 400 15px/1.4 var(--serif); }
.item .med { font-size: 12.5px; color: var(--muted); min-height: 1.7em; }
.item .row { display: flex; justify-content: space-between; gap: 8px; font: 400 14px/1 var(--display); color: var(--muted); letter-spacing: .04em; }
a.item:hover .name { color: var(--gilt); }

/* lists (hammer log, listings) */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 20px; padding-block: 16px; border-top: 1px solid var(--line); align-items: baseline; }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.ledger .w { min-width: 0; overflow-wrap: anywhere; font: 400 15px var(--serif); }
.ledger .a { font: 400 14px var(--display); color: var(--muted); }
@media (max-width: 600px) { .ledger li { grid-template-columns: minmax(0, 1fr) auto; } .ledger .lotno { grid-column: 1 / -1; } }

/* states */
.state { padding-block: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.state h3 { font: 400 18px/1.3 var(--serif); letter-spacing: .04em; }
.state p { color: var(--muted); font-size: 13.5px; max-width: 46ch; }
.skeleton { background: linear-gradient(90deg, var(--plinth), var(--line), var(--plinth)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* unveil room */
.room-scrim { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow: auto; }
.room { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 32px; max-width: 980px; margin: 0 auto;
  padding: calc(40px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.room h3 { font: 400 26px/1.3 var(--serif); letter-spacing: .06em; }
.meter { height: 1px; background: var(--line); }
.meter i { display: block; height: 100%; width: 0; background: var(--gilt); transition: width .4s linear; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cards.one { grid-template-columns: minmax(0, 320px); justify-content: center; }
@media (max-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; perspective: 1000px; }
.card .in { position: relative; aspect-ratio: 1; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .7, .15, 1); }
.card.open .in { transform: rotateY(180deg); }
.card .f, .card .b { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; background: var(--plinth); }
.card .b { transform: rotateY(180deg); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .t { font-size: 12.5px; line-height: 1.4; min-height: 2.8em; color: var(--muted); }
.card .t b { display: block; font: 400 14px/1.35 var(--serif); color: var(--fg); }
.room .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.room .acts .act { flex: 1 1 220px; }

/* sale hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); align-items: end; padding-block: clamp(24px, 5vw, 64px) 8px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--plinth); }
@media (max-width: 860px) { .hero figure img { aspect-ratio: 5 / 4; object-position: 50% 35%; } }
.hero figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 13px; }
.side { display: flex; flex-direction: column; gap: 40px; padding-bottom: 6px; min-width: 0; }
.title { display: flex; flex-direction: column; gap: 10px; }
.title h1 { font: 400 clamp(30px, 4.4vw, 46px)/1.15 var(--serif); letter-spacing: .04em; }
.title .en { font: italic 400 17px/1 var(--display); color: var(--muted); }
.closing { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.closing img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.serif { font: 400 15px/1.4 var(--serif); }

/* season list */
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 760px) { .season { grid-template-columns: 1fr; } }
.season li { display: flex; gap: 18px; align-items: baseline; padding-block: 18px; border-top: 1px solid var(--line); }
.season .r { font: 400 18px/1 var(--display); color: var(--muted); width: 2.2rem; flex: none; }
.season b { font: 400 16px/1.3 var(--serif); flex: 1; }
.season em { font: italic 400 13px var(--display); color: var(--muted); }
.season li.now b { color: var(--gilt); }
/* 預展：沿用拍賣圖錄的留白、細線與字級。 */
.preview-time { display:flex; flex-direction:column; gap:12px; padding:20px 0; border-top:1px solid var(--line); }
.preview-time > .num { font-size:clamp(22px,4vw,36px); }
.preview-events .lots { grid-template-columns:repeat(3,minmax(0,1fr)); }
.preopening .state h1 { font:400 clamp(24px,4vw,36px)/1.5 var(--serif); }
.preview .side, .preview .title, .preview-events .item { min-width:0; }
.preview .act { gap:16px; flex-wrap:wrap; }
@media(max-width:600px) { .preview-events .lots { grid-template-columns:1fr; } .preview .season li em { overflow-wrap:anywhere; } }
