@font-face { font-family: "Co Headline"; src: url(fonts/CoHeadline-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Co Headline"; src: url(fonts/CoHeadline-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --purple: #762482; --deep: #4A1653; --pink: #E0004D; --cyan: #05C3DE; --gold: #ED9B2E;
  --bg: #120A16; --panel: #1E1224; --line: #3A2442; --text: #F4F2F5; --muted: #B9A9BF;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Co Headline", system-ui, sans-serif; }
body { min-height: 100vh; }
.band { background: linear-gradient(160deg, var(--purple), var(--deep)); padding: 18px 16px 22px; text-align: center; }
.band img { height: 46px; display: block; margin: 0 auto 14px; }
.band h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.35; }
.band p { margin: 8px auto 0; max-width: 560px; font-size: 15px; line-height: 1.7; color: #EBDDF0; }
.band .pill { display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 99px; background: rgba(0,0,0,.28); font-size: 14px; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 120px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--panel); border: 2px solid transparent; border-radius: 16px; padding: 8px 8px 10px; cursor: pointer; transition: border-color .15s, transform .15s; }
.card img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 10px; display: block; }
.card .nm { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.card .en { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; }
.card .no { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); border-radius: 8px; padding: 2px 8px; font-size: 13px; direction: ltr; }
.card .zoom { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.card .tick { position: absolute; inset: 8px 8px auto 8px; aspect-ratio: 63 / 88; border-radius: 10px; background: rgba(118,36,130,.22); display: none; place-items: center; }
.card .tick span { width: 58px; height: 58px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: 30px; font-weight: 700; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.card.on { border-color: var(--pink); }
.card.on .tick { display: grid; }
.card.off { opacity: .45; }
.bar { position: fixed; inset: auto 0 0 0; background: rgba(18,10,22,.96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.bar .count { font-size: 16px; }
.bar .count b { color: var(--gold); }
.btn { border: 0; border-radius: 12px; padding: 13px 22px; font: inherit; font-size: 16px; font-weight: 700; background: var(--pink); color: #fff; cursor: pointer; }
.btn:disabled { background: #4b3a52; color: #9c8ca3; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.modal { position: fixed; inset: 0; background: rgba(5,2,7,.88); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal.show { display: flex; }
.modal .box { background: var(--panel); border-radius: 18px; padding: 20px 16px; max-width: 560px; width: 100%; text-align: center; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.mini { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.mini img { width: 18%; border-radius: 6px; }
.row { display: flex; gap: 10px; justify-content: center; }
.zoomview img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.zoomview .cap { margin-top: 10px; font-size: 16px; text-align: center; }
.msg { text-align: center; padding: 60px 16px; max-width: 520px; margin: 0 auto; }
.msg .big { font-size: 54px; margin-bottom: 8px; }
.msg h2 { font-size: 22px; margin: 0 0 8px; }
.msg p { color: var(--muted); line-height: 1.8; margin: 0; }
.err { color: #ff8fb0; font-size: 14px; margin-top: 10px; min-height: 1em; }
