/* 推しバインダー / 포카함 — shared pages. Pastel Y2K, matches pokabinder-app lib/ui/theme.dart. */
@font-face { font-family: Jua; src: url(/fonts/Jua-Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Gaegu; src: url(/fonts/Gaegu-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: YuseiMagic; src: url(/fonts/YuseiMagic-Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: ZenMaru; src: url(/fonts/ZenMaruGothic-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root { --ink: #4a3a5c; --pink: #ff8fc7; --hot: #ff5fa8; --lav: #b9a7ff; --paper: #fdf8ff; --line: #f3eafb; --faint: #8f7fa3; --soft: #faf5fd; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper) repeating-linear-gradient(transparent 0 27px, var(--line) 27px 28px);
  font-family: Jua, 'Hiragino Maru Gothic ProN', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans JP', sans-serif; line-height: 1.6; }
body.l-ja { font-family: ZenMaru, Jua, 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif; }
a { color: var(--hot); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(100deg, #ffe3f1, #efe7ff); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 19px; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; }
.langs a[aria-current] { background: var(--hot); color: #fff; }
.page { max-width: 920px; margin: 0 auto; padding: 14px 14px 24px; }
.center { text-align: center; padding-top: 48px; }
.appbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px;
  box-shadow: 0 2px 0 #e6d9f2; border: 2px solid #f0e3fa; }
.btn.primary { background: var(--hot); color: #fff; border-color: var(--hot); box-shadow: 0 2px 0 #d94b8f; }
.soon { font-size: 12px; color: var(--faint); }
.center .appbar { justify-content: center; }

/* binder cover */
.binder { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px 12px 20px; background: var(--c); color: var(--on);
  border-radius: 8px 18px 18px 8px; box-shadow: 0 3px 8px rgba(74,58,92,.2), inset 7px 0 0 rgba(0,0,0,.08); }
.cover { position: relative; flex: none; width: 88px; height: 88px; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; overflow: visible; }
.pat { position: absolute; inset: 0; border-radius: 9px; background: #fff; }
.pat.p6 { background-color: #fff; background-image: linear-gradient(90deg, color-mix(in srgb, var(--mc) 45%, transparent) 50%, transparent 50%),
  linear-gradient(color-mix(in srgb, var(--mc) 45%, transparent) 50%, transparent 50%); background-size: 12.5% 12.5%; }
.pat.p7 { background-color: #fff; background-image: radial-gradient(circle, color-mix(in srgb, var(--mc) 45%, transparent) 18%, transparent 19%); background-size: 25% 25%; }
.coverst { position: absolute; right: -16px; top: -16px; width: 46px; container-type: inline-size; }
.coverst.txt { width: 80px; right: -30px; }
.coverst .shape { display: block; width: 120%; margin: -10%; }
.coverst .pill { font-size: 15px; }
.bname h1 { margin: 0; font-size: 26px; line-height: 1.25; overflow-wrap: anywhere; font-weight: normal; }
.bname p { margin: 2px 0 0; opacity: .85; }

/* cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.poka { min-width: 0; }
.card { position: relative; display: block; aspect-ratio: 55 / 85; container-type: inline-size; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; border-radius: 9cqw; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1.2cqw 1.6cqw rgba(74,58,92,.28)); }
.ph { position: absolute; overflow: hidden; border-radius: 6cqw; }
.fr-polaroid .ph { border-radius: 1.5cqw; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; }
.gloss { position: absolute; inset: 0; border-radius: 8.5cqw; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 42%, transparent 50%); }
.notch { position: absolute; left: 32%; width: 36%; top: 0; height: 5cqw; background: #f6f1ff; border-radius: 0 0 5cqw 5cqw; }
.cap { position: absolute; left: 6%; right: 6%; height: 18cqw; font: 700 10cqw/18cqw Gaegu, Jua, sans-serif; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; height: 12.75cqw; padding: 0 3.8cqw; border-radius: 99px; font: 8.5cqw/12.75cqw Jua, sans-serif; white-space: nowrap; }
.badge.play { background: rgba(30,23,38,.55); color: #fff; padding: 0 3.6cqw; }
.badge.shorts { background: #ff3b5c; color: #fff; }
.badge.kp { background: rgba(255,255,255,.92); color: var(--hot); }
.st { position: absolute; width: calc(var(--s) * 30%); transform: translate(-50%, -50%) rotate(var(--r)); pointer-events: none; }
.st .shape { display: block; width: 120%; margin: -10%; overflow: visible; }
.st.txt { width: auto; font-size: calc(var(--s) * 6cqw); }
.r-shiny { animation: shiny 2.4s ease-in-out infinite; }
.r-holo { animation: shiny 4s ease-in-out infinite; }
@keyframes shiny { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 .12em #fff) brightness(1.12); } }
.pill { display: inline-block; transform: rotate(var(--tilt, 0deg)); padding: .16em; background: #fff; border-radius: .85em; box-shadow: 0 .1em .15em rgba(74,58,92,.25); white-space: nowrap; line-height: 1.15; }
.pill > span { display: block; padding: .22em .5em; background: var(--bg); color: var(--fg); border: .12em solid var(--ink); border-radius: .7em; }
.f-jua { font-family: Jua, sans-serif; } .f-gaegu { font-family: Gaegu, Jua, sans-serif; font-weight: 700; }
.f-yusei { font-family: YuseiMagic, Jua, sans-serif; } .f-zen { font-family: ZenMaru, Jua, sans-serif; font-weight: 700; }
.meta { padding: 10px 2px 0; font-size: 13px; }
.title { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tags li { font-size: 11px; background: #ffe3f1; color: var(--hot); border-radius: 99px; padding: 1px 8px; }
.kps { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; }
.kps a { text-decoration: none; }
.memo { margin: 4px 0 0; font-size: 12px; white-space: pre-line; background: #fff; border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; }
.empty { text-align: center; color: var(--faint); padding: 40px 0; }
.usermade { margin: 32px 0 8px; font-size: 12px; color: var(--faint); }
.report summary { cursor: pointer; font-size: 13px; color: var(--faint); }
.report form { background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 8px; max-width: 420px; }
.report fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.report legend { margin-bottom: 4px; }
.report .note { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.report textarea { font: inherit; border: 2px solid #f0e3fa; border-radius: 10px; padding: 6px; }
.report button { margin-top: 10px; font: inherit; border: 0; border-radius: 99px; background: var(--hot); color: #fff; padding: 8px 18px; }
.notice { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.notice.ok { border: 2px solid #8fe3cf; }
.foot { max-width: 920px; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--faint); border-top: 2px dashed #f0e3fa; }
.foot p { margin: 4px 0; } .foot a { color: var(--faint); }
/* landing + docs */
.hero { text-align: center; }
.heroimg { width: 100%; max-width: 600px; height: auto; border-radius: 18px; box-shadow: 0 4px 14px rgba(74,58,92,.15); }
.hero h1 { font-size: 34px; margin: 14px 0 0; font-weight: normal; }
.lead { font-size: 17px; margin: 4px 0 14px; }
.hero .appbar { justify-content: center; }
.features { max-width: 560px; margin: 12px auto; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { background: #fff; border-radius: 14px; padding: 10px 14px 10px 40px; position: relative; box-shadow: 0 2px 0 #f0e3fa; }
.features li::before { content: '♡'; position: absolute; left: 14px; color: var(--hot); }
.small { text-align: center; font-size: 13px; color: var(--faint); }
.doc { max-width: 760px; font-family: system-ui, -apple-system, 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans JP', sans-serif; background: rgba(255,255,255,.85); border-radius: 18px; margin-top: 14px; }
.doc h1 { font-family: Jua, ZenMaru, sans-serif; font-weight: normal; font-size: 24px; }
.doc h2 { font-size: 17px; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .r-shiny, .r-holo { animation: none; } }
