/* GlimStar v1 — 曜石黑 × 香檳金；黑底留白是主角，稜光只給高光 */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--m-bg-0); color: var(--m-text); font-family: var(--m-font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--m-font-display); font-weight: 600; letter-spacing: .01em; }
.num { font-family: var(--m-num); font-variant-numeric: tabular-nums; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: linear-gradient(var(--m-bg-0) 70%, transparent); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { color: var(--m-gold); font-size: 12px; }
.brand-name { font-family: var(--m-font-display); font-weight: 700; letter-spacing: .18em; font-size: 15px; }
.brand-sub { color: var(--m-muted); font-size: 12px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--m-hairline); color: var(--m-muted); font-size: 18px; }

.view { padding: 4px 16px 24px; max-width: 720px; margin: 0 auto; }
.section { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-head h2 { font-size: 17px; }
.sec-head .more { color: var(--m-gold); font-size: 12px; letter-spacing: .08em; }
.eyebrow { color: var(--m-gold); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--m-muted); }
.small { font-size: 12px; }
.hairline { border-top: 1px solid var(--m-hairline); }

/* 首頁 hero：嚮導角色＋一句話 */
.hero { position: relative; overflow: hidden; border-radius: 20px; background: radial-gradient(120% 90% at 85% 20%, rgba(201,168,106,.14), transparent 55%), var(--m-bg-1); border: 1px solid var(--m-hairline); padding: 22px 20px 18px; min-height: 200px; }
.hero h1 { font-size: 26px; line-height: 1.2; max-width: 58%; position: relative; z-index: 1; }
.hero .lead { margin-top: 8px; color: var(--m-muted); font-size: 13px; max-width: 56%; position: relative; z-index: 1; }
.hero img { position: absolute; right: -10px; bottom: -14px; width: 170px; filter: drop-shadow(0 0 28px rgba(201,168,106,.28)); pointer-events: none; }
.hero .guide-tag { margin-top: 18px; font-size: 11px; color: var(--m-gold); letter-spacing: .1em; position: relative; z-index: 1; max-width: 58%; }

/* 卡片 */
.card { background: var(--m-surface); border: 1px solid var(--m-hairline); border-radius: 16px; padding: 14px; }
.card + .card { margin-top: 10px; }
.card.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.card.row.has-img { grid-template-columns: 56px 52px 1fr auto; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--m-bg-1); }
.chip.kind { white-space: nowrap; font-size: 11px; align-self: start; }
.hero-img { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 14px; margin: 12px 0 4px; background: var(--m-bg-1); }
.dday { font-family: var(--m-font-display); font-size: 22px; color: var(--m-gold); line-height: 1; }
.dday small { display: block; font-family: var(--m-num); font-size: 11px; color: var(--m-muted); margin-top: 4px; letter-spacing: .06em; }
.title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sub { color: var(--m-muted); font-size: 12px; margin-top: 3px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--m-hairline); font-size: 11px; color: var(--m-muted); margin: 6px 6px 0 0; }
.chip.gold { color: var(--m-gold); border-color: rgba(201,168,106,.4); }
.chip.single { color: var(--m-muted); border-style: dashed; }
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pill { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--m-hairline); font-size: 13px; color: var(--m-muted); }
.pill.on { color: var(--m-text); border-color: var(--m-gold); }
.pill .n { margin-left: 6px; font-family: var(--m-num); font-size: 11px; opacity: .7; }
/* 開賣時間（還沒開賣才顯示）與「加進行事曆」 */
.onsale { color: var(--m-gold); }
.btn.small { padding: 4px 10px; font-size: 12px; margin-left: 6px; white-space: nowrap; }

/* 藝人格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--m-surface); border: 1px solid var(--m-hairline); border-radius: 16px; padding: 14px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .name { font-family: var(--m-font-display); font-size: 18px; }
.tile .meta { color: var(--m-muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.tile .badge { font-family: var(--m-num); font-size: 11px; color: var(--m-gold); }

/* 月曆 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--m-muted); padding: 6px 0; }
.cal .day { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--m-num); font-size: 13px; color: var(--m-muted); position: relative; }
.cal .day.has { color: var(--m-text); background: var(--m-surface); }
.cal .day.on { outline: 1px solid var(--m-gold); color: var(--m-gold); }
.cal .day.today::after { content: ""; position: absolute; top: 4px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--m-gold); }
.cal .day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--m-gold); margin-top: 3px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head h2 { font-size: 20px; }

/* 文章 */
.article h1 { font-size: 30px; line-height: 1.15; }
.article h3 { margin-top: 22px; font-size: 14px; color: var(--m-gold); letter-spacing: .1em; }
.article p { line-height: 1.75; font-size: 15px; margin: 8px 0 0; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px; font-size: 13px; margin-top: 14px; }
.kv dt { color: var(--m-muted); }
.kv dd { margin: 0; }
.draft-tag { display: inline-block; padding: 2px 8px; border: 1px dashed var(--m-hairline); border-radius: 6px; color: var(--m-muted); font-size: 11px; }
.prism-text { background: var(--m-prism-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 底部 tab */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(13,11,9,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--m-hairline); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--m-muted); padding: 6px 0; }
.tab .t-ic { font-size: 16px; }
.tab.on { color: var(--m-gold); }

/* 抽屜 */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet .panel { width: 100%; max-width: 720px; margin: 0 auto; max-height: 92dvh; overflow: auto; background: var(--m-bg-1); border-radius: 22px 22px 0 0; border-top: 1px solid var(--m-hairline); padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--m-hairline); margin: 0 auto 14px; }
.sheet .close { position: sticky; top: 0; float: right; color: var(--m-muted); font-size: 20px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(201,168,106,.5); color: var(--m-gold); font-size: 13px; letter-spacing: .04em; }
.btn.primary { background: var(--m-gold); color: #0d0b09; border-color: var(--m-gold); font-weight: 600; }
.empty { padding: 28px 10px; text-align: center; color: var(--m-muted); font-size: 13px; }
.skeleton { height: 70px; border-radius: 16px; background: linear-gradient(90deg, var(--m-surface), rgba(255,255,255,.06), var(--m-surface)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.guide-note { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.guide-note img { width: 56px; height: 56px; }
.guide-note .q { font-size: 13px; color: var(--m-muted); }
.guide-note .q b { color: var(--m-gold); font-weight: 500; }
@media (min-width: 720px) { .hero h1 { font-size: 34px; } .hero img { width: 240px; } }

/* 首頁：搶票練習入口 */
.rush-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; border-color: rgba(201,168,106,.35);
  background: radial-gradient(90% 120% at 0% 50%, rgba(201,168,106,.12), transparent 60%), var(--m-surface); }
.rush-card img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(201,168,106,.3)); }
.rush-card .title { font-size: 17px; margin-top: 4px; }
.rush-card .btn { margin-top: 10px; padding: 8px 14px; }
