/* cinema-shop.css — 리디자인 「シネマ」 영역 스타일(2026-11-14). 소유 담당은 docs/DESIGN_CINEMA.md 표. 토큰은 css/cinema.css
   담당 4(코인·상점): 코인 칩 · 잠긴 편 배지 · 코인 창(지갑 = 시안 s5) · 잠긴 사건 시트 · 결제 결과 안내 · 내 구매 · 잠긴 편 화면(play.html) · 웹 구매 시트
   마크업: js/tickets.js(코인) · js/shop.js(웹 판매·내 구매·복원). 기능·규칙은 그대로, 모양만. */

/* ───────── 공통 그림(인라인 SVG, js/tickets.js art()) ───────── */
.tk-svg { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: middle; overflow: visible; }
.tk-coin { color: var(--c-gold); }

/* ───────── 1. 상단 코인 칩(목록 머리, 누르면 코인 창) ───────── */
.tk-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; min-width: 44px; padding: 0 8px 0 10px; margin-right: 4px;
  border: 1px solid var(--c-glass-line); border-radius: var(--r-pill); white-space: nowrap;
  color: var(--c-gold-hi); background: var(--c-glass-solid); box-shadow: none;
  font-family: var(--f-num); transition: transform 140ms var(--ease-out);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tk-chip { background: var(--c-glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
}
.tk-chip:active { transform: scale(0.95); }
.tk-chip-coin { width: 20px; height: 20px; color: var(--c-gold); }
.tk-chip-n { font-family: var(--f-num); font-weight: 500; font-size: 17px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--c-gold-hi); }
/* 「+」(글은 숫자만 — 화면 읽기·시험이 「100」으로 읽도록 그림으로) */
.tk-chip::after {
  content: '+'; flex: none; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-gold); color: var(--c-on-gold); font-family: var(--f-ui), sans-serif; font-weight: 700; font-size: 15px; line-height: 1;
}
@media (any-pointer: coarse) { .tk-chip { height: 44px; } }
@media (max-width: 340px) { .tk-chip { padding: 0 6px 0 8px; margin-right: 0; gap: 5px; } .tk-chip::after { width: 18px; height: 18px; font-size: 13px; } }
@media (max-width: 300px) { .tk-chip { order: 2; } }

/* ───────── 2. 잠긴 편 배지(「コイン10で解放」, 시안 포스터 아래 금색 띠) ───────── */
.badge.badge--ticket {
  gap: 4px; height: 24px; padding: 0 9px; border-radius: 7px; white-space: nowrap;
  color: var(--c-on-gold); background: linear-gradient(180deg, #f0c979, #dcab52); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); /* Codex 6: 명도 차이·번짐 줄임 */
  font-family: var(--f-ui), sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .02em;
}
.badge--ticket .tk-badge-coin { width: 14px; height: 14px; color: #a86c12; }

/* ───────── 3. 코인 창 공통(.sheet--ticket = 지갑·잠금 둘 다) ───────── */
.sheet--ticket .sheet-body { padding: 4px 16px calc(18px + var(--sab)); }
.sheet--ticket .tk { display: flex; flex-direction: column; gap: 0; }
.sheet--ticket .tk > * + * { margin-top: 12px; }
.sheet--ticket .shop-lead { color: var(--c-text2); }
/* 안내 줄(모자람·힌트 필요·결제 결과) */
.tk-msg-ico { width: 18px; height: 18px; margin-top: 1px; }
.tk-empty, .tk-status {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 13px; border-radius: 12px;
  font-size: 13px; line-height: 1.55; color: var(--c-text);
  background: rgba(226, 72, 61, .10); border: 1px solid rgba(226, 72, 61, .38);
}
.tk-empty .tk-msg-ico, .tk-status--fail .tk-msg-ico { color: #ff8a7f; }
.tk-need.is-ready, .tk-status--ok { background: rgba(95, 191, 122, .10); border-color: rgba(95, 191, 122, .4); }
.tk-need.is-ready .tk-msg-ico, .tk-status--ok .tk-msg-ico { color: var(--c-green); }
.tk-status--pending { background: rgba(243, 154, 43, .10); border-color: rgba(243, 154, 43, .45); }
.tk-status--pending .tk-msg-ico { color: var(--c-amber); }
.tk-status { animation: tk-in 260ms var(--ease-out) both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 무료로 받기 두 칸: 광고 10(今日 n/3 · 見る) · 매일 10(次は あした ✓ 受取済) */
.tk-free { display: flex; gap: 10px; }
.tk-fcard {
  flex: 1 1 0; min-width: 0; min-height: 70px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 12px; border-radius: 16px; text-align: left; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-line); font-family: var(--f-ui), sans-serif;
}
button.tk-fcard { cursor: pointer; transition: transform 140ms var(--ease-out), border-color 160ms ease; }
button.tk-fcard:active:not(:disabled) { transform: scale(.98); }
.tk-fcard-a { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.tk-fcard-ico { width: 17px; height: 17px; color: var(--c-gold); }
.tk-fcard-b { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--c-text2); }
.tk-fcard-k { font-family: var(--f-ui), sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; } /* 같은 칸의 「Claimed」「Watch」와 같은 본문 글꼴(Q3-6) */
.tk-fcard-go {
  flex: none; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; color: var(--c-gold-hi); border: 1px solid rgba(232, 181, 77, .5); white-space: nowrap;
}
.tk-fcard-done { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--c-text2); white-space: nowrap; }
.tk-fcard-done .tk-svg { width: 12px; height: 12px; color: var(--c-gold); }
/* 코인이 모자라 연 창: 광고 칸을 금빛으로 */
.tk-fcard.is-hot { border-color: rgba(255, 217, 138, .5); background: linear-gradient(100deg, rgba(232, 181, 77, .10), rgba(243, 154, 43, .02) 70%), var(--c-surface2); }
.tk-fcard.is-hot .tk-fcard-go { background: var(--g-gold); color: var(--c-on-gold); border-color: transparent; }
button.tk-fcard:disabled { cursor: default; }
button.tk-fcard[aria-busy='true'] .tk-fcard-go { opacity: .55; border-style: dashed; }
.tk-fcard.is-done .tk-fcard-a { color: var(--c-text2); }
.tk-fcard.is-done .tk-fcard-ico { color: var(--c-text3); }

/* 팩 머리 · 안내 */
.sheet--ticket .tk-h { margin: 18px 4px 0; font-family: var(--f-title), serif; font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--c-text2); }
.sheet--ticket .tk > .tk-h + * { margin-top: 10px; }
.tk-enough, .tk-left-note { margin: 0; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.55; color: var(--c-text2); background: rgba(232, 181, 77, .07); border: 1px solid rgba(232, 181, 77, .2); }

/* 팩 카드 3장(100 · 300 · 500 「いちばんお得」) */
.sheet--ticket .tk-packs { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sheet--ticket .tk-pack {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 7px 12px; /* Codex 5: 상하 패딩 줄임 */
  border: 1px solid var(--c-line); border-radius: 16px; text-align: left; color: var(--c-text);
  background: var(--c-surface); box-shadow: none; font-family: var(--f-ui), sans-serif;
  transition: transform 140ms var(--ease-out), border-color 160ms ease;
}
.sheet--ticket button.tk-pack:active:not(:disabled) { transform: scale(.985); }
.sheet--ticket .tk-pack:disabled { cursor: default; opacity: 1; }
.sheet--ticket .tk-pack .shop-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
/* 인라인(플렉스 X): 글(innerText)이 「100コイン」으로 이어지게 — 플렉스면 줄바꿈이 끼어 「100\nコイン」 */
.tk-q { display: block; margin: 0; line-height: 1; white-space: nowrap; word-break: keep-all; }
.tk-q-n { font-family: var(--f-num); font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tk-q-u { margin-left: 3px; font-family: var(--f-title), serif; font-weight: 700; font-size: 13px; line-height: 1; white-space: pre; }
.sheet--ticket .tk-per { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--c-text2); }
.tk-per em { font-style: normal; font-weight: 700; color: var(--c-amber); margin-left: 6px; white-space: nowrap; }
.sheet--ticket .tk-price {
  flex: none; margin-left: auto; height: 40px; min-width: 88px; padding: 0 12px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--c-line2);
}
.sheet--ticket .tk-price b { font-family: var(--f-num); font-weight: 500; font-size: 17px; letter-spacing: .02em; color: var(--c-text); white-space: nowrap; }
/* 가격을 못 받음·준비 중·결제 중: 작은 글자 */
.sheet--ticket .tk-price.is-off { background: transparent; border-style: dashed; }
.sheet--ticket .tk-price.is-off b { font-family: var(--f-ui), sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--c-text2); }
.sheet--ticket .tk-pack.is-busy .tk-price { border-color: rgba(232, 181, 77, .6); }
.sheet--ticket .tk-pack.is-busy .tk-price b { color: var(--c-gold-hi); animation: tk-pulse 1.2s ease-in-out infinite; }
@keyframes tk-pulse { 50% { opacity: .45; } }
/* 가장 이득(500) */
.sheet--ticket .tk-pack.is-best {
  min-height: 64px; margin-top: 6px; border-color: rgba(255, 217, 138, .42);
  background: linear-gradient(100deg, rgba(232, 181, 77, .10), rgba(243, 154, 43, .02) 60%), var(--c-surface2);
  padding-top: 12px; padding-bottom: 6px; /* 띠와 가격 버튼 사이 틈 */
  box-shadow: none; /* Codex 6: 넓은 발광 제거 — 밝은 금색은 주 버튼(tk-use) 하나만 */
}
.sheet--ticket .tk-pack.is-best .tk-q-n { color: var(--c-gold-hi); }
.sheet--ticket .tk-pack.is-best .tk-price:not(.is-off) { background: rgba(232, 181, 77, .10); border-color: rgba(255, 217, 138, .55); }
.sheet--ticket .tk-pack.is-best .tk-price:not(.is-off) b { color: var(--c-gold-hi); }
.sheet--ticket .tk-rib {
  position: absolute; right: 14px; top: -11px; height: 22px; min-height: 0; padding: 0 10px; border-radius: 11px;
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--c-bg2); color: var(--c-amber); border: 1px solid rgba(243, 154, 43, .6);
  font-family: var(--f-ui), sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; box-shadow: none; /* Codex 6: 발광 띠 → 테두리 */
}
/* 팩 그림: 코인 1·2·3개 겹침(시안 색·각도) */
.tk-stack { position: relative; flex: none; width: 46px; height: 46px; transform: scale(.8); transform-origin: 50% 50%; margin: -2px -4px; }
.tk-stack-c { position: absolute; }
.tk-stack--1 .tk-stack-c1 { width: 40px; height: 40px; left: 3px; top: 3px; color: #c9a25a; transform: rotate(-8deg); }
.tk-stack--2 .tk-stack-c1 { width: 36px; height: 36px; left: 0; top: 2px; color: #a8834a; transform: rotate(-14deg); }
.tk-stack--2 .tk-stack-c2 { width: 38px; height: 38px; left: 8px; top: 6px; color: #dcb25e; transform: rotate(4deg); }
.tk-stack--3 .tk-stack-c1 { width: 34px; height: 34px; left: -2px; top: 2px; color: #9c7a42; transform: rotate(-18deg); }
.tk-stack--3 .tk-stack-c2 { width: 36px; height: 36px; left: 5px; top: 5px; color: #d4a955; transform: rotate(-4deg); }
.tk-stack--3 .tk-stack-c3 { width: 38px; height: 38px; left: 11px; top: 9px; color: #ffd98a; transform: rotate(10deg); }
/* 12/02 art-1202: 팩 그림을 GPT 그림(img/ui/coin_pack1~3.webp)으로 — 칸 크기는 그대로, 그림이 칸을 채움 */
.tk-stack--img { transform: none; margin: 0; width: 46px; height: 46px; }
.tk-stack-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.sheet--tkcase .tk-stack--img { transform: none; width: 38px; height: 38px; margin: 0; }

/* 아래: 안내 · 내 구매(코인 팩 기록) · 법률 링크 */
.sheet--ticket .tk-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sheet--ticket .tk-note { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--c-text2); }
/* 청약철회 제한 안내(구매 단추 바로 아래, 2026-11-20 밤) */
.sheet--ticket .tk-withdraw { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.6; color: var(--c-text2); text-wrap: pretty; }
.sheet--ticket .tk-withdraw a { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--c-line2); white-space: nowrap; }
html[data-lang='ja'] .sheet--ticket .tk-withdraw { word-break: auto-phrase; overflow-wrap: anywhere; }
.sheet--ticket .shop-legal { margin-top: 0; gap: 0 18px; font-size: 11.5px; }
.sheet--ticket .shop-legal a, .sheet--ticket .shop-legal a b { color: var(--c-text2); font-weight: 400; }
.tk-mine { border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); }
.tk-mine summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  font-size: 13px; font-weight: 700; color: var(--c-text);
}
.tk-mine summary::-webkit-details-marker { display: none; }
.tk-mine summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid var(--c-text2); border-bottom: 1.8px solid var(--c-text2); transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.tk-mine[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.tk-mine-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-num); font-size: 11.5px; font-weight: 500; color: var(--c-gold-hi); background: rgba(232, 181, 77, .14); }
.tk-mine-list { list-style: none; margin: 0; padding: 0 14px 10px; display: flex; flex-direction: column; }
.tk-mine-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--c-line); font-size: 12.5px; }
.tk-mine-q { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-text); }
.tk-mine-q .tk-coin { width: 15px; height: 15px; }
.tk-mine-at { color: var(--c-text2); font-family: var(--f-num); letter-spacing: .02em; }
.tk-mine-id { grid-column: 1 / -1; font-family: var(--f-num); font-size: 11px; color: var(--c-text2); overflow-wrap: anywhere; }

/* ───────── 4. 지갑(.sheet--wallet, 시안 s5 그대로: 전체 높이 · 코인 그림 · 큰 잔고) ───────── */
.sheet.sheet--wallet { background: radial-gradient(420px 300px at 50% 110px, rgba(243, 154, 43, .12), transparent 70%), var(--c-bg); } /* Codex 6: 금빛 번짐 줄임 */
/* 머리: 제목은 화면 읽기용만(그림이 제목), 닫기는 오른쪽 위 유리 원 */
.sheet--wallet .sheet-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 14px 12px 0 22px; justify-content: flex-end; pointer-events: none; }
.sheet--wallet .sheet-titles { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* 내린 상태(is-scrolled, js/tickets.js): 머리에 어두운 띠 → 내용이 손잡이·닫기 밑으로 비치지 않게. 손잡이는 띠 위(Q3-5) */
.sheet--wallet::before { z-index: 4; }
.sheet--wallet .sheet-head { min-height: 72px; border-radius: 22px 22px 0 0; transition: background-color 160ms ease; }
.sheet--wallet.is-scrolled .sheet-head { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg) 62%, rgba(11, 10, 9, 0) 100%); }
.sheet--wallet .sheet-x { pointer-events: auto; width: 44px; height: 44px; color: var(--c-text); background: var(--c-glass-solid); box-shadow: inset 0 0 0 1px var(--c-glass-line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet--wallet .sheet-x { background: var(--c-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.sheet--wallet .sheet-body { flex: 1; padding-top: 0; }
.tk-hero { display: flex; justify-content: center; height: 188px; margin: 6px -16px 0; pointer-events: none; } /* Codex 5: 세로 흐름 줄임 */
.tk-hero-img {
  width: min(264px, 72%); height: 216px; object-fit: cover; flex: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.sheet--ticket .tk > .tk-head { position: relative; z-index: 1; margin-top: 0; text-align: center; }
.tk-head .tk-have-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--c-gold); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.tk-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 2px; }
.tk-big .tk-have-n { display: inline-block; transform-origin: 50% 70%; font-family: var(--f-num); font-weight: 500; font-size: 58px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--c-gold-hi); text-shadow: 0 0 22px rgba(243, 154, 43, .22); }
.tk-big-u { font-family: var(--f-title), serif; font-weight: 700; font-size: 20px; color: var(--c-text); }
.tk-sub { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--c-text2); letter-spacing: .04em; }
.tk-sub > span { white-space: nowrap; }
.tk-sub .tk-have-paid { color: var(--c-text); font-family: inherit; }
.sheet--wallet .tk > .tk-free { margin-top: 16px; }
/* 잔고가 늘었을 때 숫자 한 번 반짝(구매·광고) */
.is-bump .tk-have-n { animation: tk-bump 520ms var(--ease-out); }
@keyframes tk-bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); text-shadow: 0 0 50px rgba(255, 217, 138, .8); } 100% { transform: scale(1); } }

/* ───────── 5. 잠긴 사건 시트(.sheet--tkcase): 표지 포스터 + 안내 + 잔고 + 금색 「コイン10で解放」 ───────── */
.tk-case { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.tk-case-art {
  position: relative; width: 96px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--c-surface2), var(--c-bg2)); box-shadow: 0 0 0 1px var(--c-line2), var(--shadow-card);
}
.tk-case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.85); }
.tk-case-lock { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 217, 138, .92); background: linear-gradient(180deg, transparent 40%, rgba(11, 10, 9, .55)); }
.tk-case-lock .tk-svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.tk-case-info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sheet--ticket .tk-lead { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--c-text2); }
.tk-case .tk-have { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; }
.tk-case .tk-have-ico { width: 18px; height: 18px; align-self: center; }
.tk-case .tk-have-k { font-size: 12px; font-weight: 700; color: var(--c-text2); letter-spacing: .06em; white-space: nowrap; }
.tk-case .tk-have-n { display: inline-block; font-family: var(--f-num); font-weight: 500; font-size: 22px; line-height: 1; color: var(--c-gold-hi); font-variant-numeric: tabular-nums; }
.tk-case .tk-have-paid { flex-basis: 100%; font-size: 11.5px; color: var(--c-text2); white-space: nowrap; }
/* 금색 큰 버튼(시안 btn-gold) */
/* Codex 6: 밝은 금색은 이 주 버튼 하나만. 그라데이션 명도 차이를 줄이고 넓은 발광(--shadow-gold) 대신 윗면 빛 한 줄 */
.btn.tk-use { min-height: 54px; border-radius: 27px; gap: 10px; font-size: 16.5px; letter-spacing: .08em; background: linear-gradient(180deg, #f7d58f 0%, #e8b54d 55%, #d9a03e 100%); color: var(--c-on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(0, 0, 0, .35); }
@media (hover: hover) { .btn.tk-use:hover:not(:disabled) { background: linear-gradient(180deg, #f7d58f 0%, #e8b54d 55%, #d9a03e 100%); } }
.btn.tk-use .tk-use-coin { width: 20px; height: 20px; color: #a86c12; }
.sheet--tkcase .tk > .tk-use { margin-top: 16px; }
/* Codex 5(11/15): 잠긴 사건 창은 「사건 정보 + 解放 버튼」이 첫 구역, 그 아래 받기·팩은 구분선 뒤 보조 정보로 작게.
   .tk-free 는 잠금 창에서 늘 첫 구역 다음에 붙는다(js/tickets.js 순서: 사건 → 안내 → 解放 → 결제 결과 → 받기 → 팩) */
.sheet--tkcase .tk > .tk-free { position: relative; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.sheet--tkcase .tk-fcard { min-height: 58px; padding: 10px 12px; gap: 6px; border-radius: 14px; background: rgba(255, 255, 255, .025); }
.sheet--tkcase .tk-fcard.is-hot { background: linear-gradient(100deg, rgba(232, 181, 77, .10), rgba(243, 154, 43, .02) 70%), var(--c-surface); }
.sheet--tkcase .tk-fcard-a { font-size: 12px; }
.sheet--tkcase .tk-fcard-ico { width: 15px; height: 15px; }
.sheet--tkcase .tk-fcard-go { height: 26px; padding: 0 11px; }
.sheet--tkcase .tk-h { margin-top: 16px; font-size: 13px; letter-spacing: .14em; color: var(--c-text3); }
.sheet--tkcase .tk > .tk-h + * { margin-top: 8px; }
.sheet--tkcase .tk-left-note, .sheet--tkcase .tk-enough { padding: 9px 12px; font-size: 12px; }
.sheet--tkcase .tk-packs { gap: 8px; padding-top: 2px; }
/* Codex 2차 3(11/15): 팩 행은 시트 바탕에 가깝게, 가격은 채움·테두리 대비를 낮춰 해제 버튼만 가장 밝게. 가격 칸 높이 44px(터치) 유지 */
.sheet--tkcase .tk-pack { min-height: 60px; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; background: transparent; border-color: rgba(244, 237, 225, .08); }
.sheet--tkcase .tk-pack.is-best { min-height: 64px; margin-top: 8px; padding-top: 12px; padding-bottom: 8px; background: rgba(232, 181, 77, .035); border-color: rgba(255, 217, 138, .24); } /* 띠(いちばんお得)와 가격 사이 틈 */
.sheet--tkcase .tk-stack { transform: scale(.7); margin: -4px -7px; }
.sheet--tkcase .tk-q-n { font-size: 19px; }
.sheet--tkcase .tk-q-u { font-size: 11.5px; }
.sheet--tkcase .shop-item-main { gap: 3px; }
.sheet--tkcase .tk-per { font-size: 11px; }
.sheet--tkcase .tk-price { height: 44px; min-width: 78px; padding: 0 12px; border-radius: 22px; background: transparent; border-color: rgba(255, 232, 196, .10); }
.sheet--tkcase .tk-price b { font-size: 15px; color: var(--c-text2); }
.sheet--tkcase .tk-pack.is-best .tk-price:not(.is-off) { background: transparent; border-color: rgba(255, 217, 138, .26); }
.sheet--tkcase .tk-pack.is-best .tk-price:not(.is-off) b { color: var(--c-gold); }
.sheet--tkcase .tk-pack.is-best .tk-q-n { color: var(--c-text); }
.sheet--tkcase .tk-price.is-off b { font-size: 11.5px; }
.sheet--tkcase .tk-rib { top: -10px; height: 20px; font-size: 10.5px; }
.sheet--tkcase .tk-foot { margin-top: 16px; }

/* ───────── 6. 잠긴 편 화면(play.html?case=… 바로 들어옴): 표지를 흐린 바탕 + 포스터 + 자물쇠 ───────── */
.notice.notice--ticket { position: relative; overflow: hidden; isolation: isolate; color: var(--c-text); }
.notice--ticket > * { position: relative; z-index: 1; }
.notice--ticket > .tk-lock-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(360px 300px at 50% 32%, rgba(243, 154, 43, .14), transparent 70%), linear-gradient(180deg, rgba(11, 10, 9, .8) 0%, rgba(11, 10, 9, .9) 40%, var(--c-bg) 68%), var(--tk-cover, none) center top / cover no-repeat, var(--c-bg);
}
.notice--ticket > .notice-back { position: absolute; }
.notice--ticket .pw-film.tk-poster {
  position: relative; width: 168px; aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: 12px; overflow: hidden; transform: none;
  background: linear-gradient(160deg, var(--c-surface2), var(--c-bg2)); box-shadow: 0 0 0 1px rgba(255, 217, 138, .3), 0 24px 50px rgba(0, 0, 0, .65);
}
.tk-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); }
.notice--ticket .tk-poster .pw-lock {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--c-gold-hi); background: var(--c-glass-solid); box-shadow: inset 0 0 0 1px var(--c-glass-line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .notice--ticket .tk-poster .pw-lock { background: var(--c-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.notice--ticket .pw-lock .tk-svg { width: 28px; height: 28px; }
.notice--ticket .notice-kicker { font-family: var(--f-ui), sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--c-gold); }
.notice--ticket .notice-title { font-family: var(--f-title), var(--f-sym), serif; font-weight: 800; letter-spacing: .06em; color: var(--c-text); }
.notice--ticket .notice-tag, .notice--ticket .notice-text { color: var(--c-text2); }
.notice--ticket .tk-left { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--c-text2); font-variant-numeric: tabular-nums; }
.notice--ticket .tk-left .tk-coin { width: 18px; height: 18px; }
.notice--ticket .tk-empty { max-width: 340px; text-align: left; }
.notice--ticket .btn--wide { max-width: 340px; }
.notice--ticket .shop-textlink { color: var(--c-text2); }

/* ───────── 7. 웹 판매 시트·내 구매·복원(js/shop.js — 웹은 지금 판매 꺼짐, 켜면 이 모양) ───────── */
.sheet--shop:not(.sheet--ticket) .shop-lead, .shop-note, .shop-period { color: var(--c-text2); }
.shop-item { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text); }
.shop-item.is-on { background: linear-gradient(100deg, rgba(232, 181, 77, .16), rgba(243, 154, 43, .04) 60%), var(--c-surface2); box-shadow: inset 0 0 0 1.5px rgba(255, 217, 138, .7); }
.shop-radio { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line2); }
.shop-item.is-on .shop-radio { box-shadow: inset 0 0 0 6px var(--c-gold); }
.shop-item-name { font-family: var(--f-title), serif; }
.shop-item-desc, .shop-item-price small { color: var(--c-text2); }
.shop-item-price b { font-family: var(--f-num); font-weight: 500; font-size: 18px; color: var(--c-text); }
.shop-best { height: auto; min-height: 19px; white-space: nowrap; color: #1d1203; background: var(--c-amber); }
.shop-owned { color: var(--c-green); box-shadow: inset 0 0 0 1px rgba(95, 191, 122, .5); }
.sheet--ticket .shop-item-name { word-break: keep-all; }
.shop-period .ico { color: var(--c-green); }
.shop-input { background: var(--c-bg2); color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-line2); }
.shop-input::placeholder { color: var(--c-text3); }
.shop-input:focus { box-shadow: inset 0 0 0 2px var(--c-gold); }
.shop-agree { color: var(--c-text2); }
.shop-agree input, .shop-check { accent-color: var(--c-gold); }
.shop-done { background: rgba(95, 191, 122, .12); color: var(--c-green); }
.shop-legal a { color: var(--c-text2); }
.shop-legal a b { color: var(--c-text); }
.shop-textlink, .shop-empty { color: var(--c-text2); }
.mine-item { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text); }
.mine-top { font-family: var(--f-title), serif; }
.mine-desc, .mine-dl dt { color: var(--c-text2); }
.mine-dl code { font-family: var(--f-num); color: var(--c-gold-hi); }
.restore { border-top-color: var(--c-line2); }
.restore-h { font-family: var(--f-title), serif; color: var(--c-text); }
.restore-form--code { border-top-color: var(--c-line); }
.notice--shop:not(.notice--ticket) .pw-film { background: linear-gradient(160deg, var(--c-surface2), var(--c-bg2)); box-shadow: 0 0 0 1px rgba(255, 217, 138, .3), var(--shadow-card); }
.notice--shop .pw-lock { background: var(--g-gold); color: var(--c-on-gold); }

/* ───────── 8. 좁은 폭 · 큰 글자 · 움직임 줄이기 ───────── */
@media (max-width: 374px) {
  .sheet--ticket .sheet-body { padding-left: 12px; padding-right: 12px; }
  .tk-free { gap: 8px; }
  .tk-fcard { padding: 11px 10px; }
  .sheet--ticket .tk-pack { gap: 10px; padding-left: 10px; }
  .sheet--ticket .tk-price { min-width: 84px; padding: 0 10px; }
  .tk-big .tk-have-n { font-size: 56px; }
  .tk-hero { height: 196px; }
  .tk-hero-img { height: 226px; }
}
/* 아주 좁음·글자 확대: 무료 두 칸을 위아래로, 팩 가격은 아래 줄로 */
@media (max-width: 330px) {
  .tk-free { flex-direction: column; }
  .sheet--ticket .tk-pack { flex-wrap: wrap; }
  .sheet--ticket .tk-price { margin-left: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-chip, button.tk-fcard, .sheet--ticket .tk-pack { transition: none; }
  .is-bump .tk-have-n, .tk-status, .sheet--ticket .tk-pack.is-busy .tk-price b { animation: none; }
}
/* 웹 결제로 가는 구매 버튼은 <a> 라 링크 글자색이 덮음 → 금색 위 진한 글자로 */
a.btn--primary.shop-cta, a.btn--primary.shop-cta:visited { color: var(--c-on-gold); text-decoration: none; }

/* ───────── 연속 수사 팩(2026-11-27 E1) — 팩 시트 · 지갑 칸 · 결과 화면 카드. 마크업 js/shop.js(openSeriesSheet·seriesWalletCard·seriesUpsellCard) ───────── */
.sheet--series .sheet-body { padding: 4px 16px calc(18px + var(--sab, 0px)); }
.sr-lead { margin: 2px 0 12px; }
.sr-eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.sr-ep { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-ep-art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--tone, #3a2f25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sr-ep-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-ep-no { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-family: var(--f-num); font-size: 12px; line-height: 1.4; }
.sr-ep-t { font-weight: 700; font-size: 12.5px; line-height: 1.35; color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sr-ep-m { font-size: 11px; color: var(--c-text2); }
.sr-forever { margin: 0 0 6px; }
.sr-note { margin: 0 0 12px; font-size: 12px; color: var(--c-text2); line-height: 1.5; }
.sr-owned { margin: 4px 0 10px; }
/* 지갑 칸: 표지 3장을 겹쳐 작게 */
.sr-w-art { flex: none; position: relative; width: 54px; height: 44px; }
.sr-w-art img, .sr-w-art i { position: absolute; top: 0; width: 30px; height: 40px; border-radius: 5px; object-fit: cover; background: #2c2620; box-shadow: 0 1px 3px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sr-w-art > :nth-child(1) { left: 0; transform: rotate(-6deg); }
.sr-w-art > :nth-child(2) { left: 12px; z-index: 1; }
.sr-w-art > :nth-child(3) { left: 24px; z-index: 2; transform: rotate(6deg); }
.sr-wallet .shop-item-desc { overflow-wrap: anywhere; }
/* 결과 화면 카드: 금색 upsell(css/shop.css) + 오른쪽 아래 작은 표지 3장 */
.upsell--series { grid-template-columns: 1fr auto; }
.sr-up-covers { grid-column: 1; display: flex; gap: 6px; margin-top: 8px; }
.sr-up-covers img, .sr-up-covers i { width: 34px; height: 42px; border-radius: 5px; object-fit: cover; background: rgba(61, 42, 8, .25); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
