/* DORA · Official Photocard Binder */

/* ===== Tokens ===== */
:root {
  --night: #16121f;
  --night-2: #211a2e;
  --night-3: #2d2440;
  --sleeve: #f4f1f8;
  --sleeve-2: #e8e2f1;
  --ink: #1d1830;
  --ink-2: #5a5270;
  --pink: #ff3d8b;
  --pink-ink: #c8155f;
  --silver: #c9c6d6;
  --chalk: #ece8f5;
  --muted: #a39cb8;
  --ok: #1f9d6b;
  --bad: #d23a3a;
  --holo: linear-gradient(115deg, #ffd1ec 0%, #c9b8ff 22%, #a7ecff 44%, #fff4b8 64%, #ffc2d9 84%, #d0c2ff 100%);
  --f-display: "Archivo Black", "Black Han Sans", "Noto Sans KR", system-ui, sans-serif;
  --f-body: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-hand: "Nanum Pen Script", cursive;
  --r: 14px;
  --gutter: 16px;
  --tabbar-h: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--chalk);
  font: 400 16px/1.55 var(--f-body);
  background-image: radial-gradient(1200px 600px at 110% -10%, rgba(255, 61, 139, .10), transparent 60%),
                    radial-gradient(900px 500px at -20% 20%, rgba(140, 110, 255, .10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#main { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) var(--gutter) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px); outline: none; }
.boot { color: var(--muted); font-family: var(--f-mono); font-size: 13px; text-align: center; margin-top: 30vh; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px;
  box-shadow: 0 4px 16px rgba(255, 61, 139, .35); transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--chalk); border: 1.5px solid rgba(236, 232, 245, .35); box-shadow: none; }
.on-paper .btn-ghost, .paper .btn-ghost { color: var(--ink); border-color: rgba(29, 24, 48, .35); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-holo { background: var(--holo); color: var(--ink); box-shadow: 0 4px 18px rgba(200, 184, 255, .35); }

/* ===== Tabbar ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(22, 18, 31, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 198, 214, .14);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em;
}
.tab-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-ico svg .fill { fill: currentColor; stroke: none; }
.tabbar a[aria-current="page"] { color: #fff; }
.tabbar a[aria-current="page"] .tab-ico { color: var(--pink); }

/* ===== Headings / generic ===== */
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 8px; letter-spacing: .01em; }
.page-lead { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.fine { font-size: 12.5px; color: var(--muted); }
.foot-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 34px 0 0; line-height: 1.7; }
.foot-note a { color: var(--chalk); }
.holo-text { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Binder cover (home) ===== */
.plate { position: relative; padding: 22px 20px 20px; border-radius: 22px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid rgba(201, 198, 214, .16); }
.plate::before { /* argolas do binder */
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 22px; width: 10px;
  background: radial-gradient(circle at 5px 5px, var(--silver) 0 4px, transparent 4.5px) 0 0 / 10px 34px repeat-y; opacity: .55; }
.plate > * { margin-left: 16px; }
.plate .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.plate h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 20vw, 108px); line-height: .92; margin: 6px 0 6px; letter-spacing: .02em; }
.plate .ko { font-family: var(--f-display); color: var(--pink); font-size: 18px; letter-spacing: .1em; }
.plate .meta { font-family: var(--f-mono); font-size: 12px; color: var(--silver); margin-top: 10px; line-height: 1.7; }
.plate .actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(-1 * var(--gutter)) 8px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.vchip { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(201, 198, 214, .3); background: transparent; color: var(--chalk); cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; }
.vchip[aria-pressed="true"] { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }

/* ===== Binder page (pockets) ===== */
.page { background: var(--sleeve-2); border-radius: 18px; padding: 14px 12px 16px; margin: 0 0 22px; color: var(--ink);
  box-shadow: var(--shadow); position: relative; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
.page-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 0; }
.page-head span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); }
.pockets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .pockets { grid-template-columns: repeat(3, 1fr); } }
.pocket { border-radius: 12px; padding: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .35)); border: 1px solid rgba(29, 24, 48, .1); }

/* ===== Photocard ===== */
.pc { position: relative; display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: 10px; overflow: hidden;
  aspect-ratio: 55 / 85; box-shadow: 0 2px 8px rgba(29, 24, 48, .18); transform: translateZ(0); }
.pc img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pc .pc-info { padding: 7px 9px 9px; }
.pc .pc-code { font-family: var(--f-mono); font-size: 10px; color: var(--pink-ink); font-weight: 700; letter-spacing: .05em; }
.pc .pc-title { font-weight: 700; font-size: 13.5px; line-height: 1.25; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pc .pc-dur { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); margin-top: 3px; }
.rar { position: absolute; top: 7px; right: 7px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); text-transform: uppercase; }
.rar-POB { background: var(--silver); }
.rar-Common { background: #e6e2ee; color: var(--ink-2); }
.rar-Rare { background: #cfe6ff; color: #134a86; }
.rar-Super { background: #e2d4ff; color: #4b2a9a; }
.rar-ULT { background: var(--holo); color: var(--ink); }
.rar-Secret { background: var(--ink); color: #fff; }
.rar-Secret::before { content: "✦ "; }

/* holografia: única ousadia visual do projeto */
.holo { --hx: 50%; --hy: 50%; }
.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 130, 200, .45) 38%, rgba(130, 220, 255, .45) 48%, rgba(255, 240, 160, .4) 58%, transparent 72%);
  background-size: 260% 260%; background-position: var(--hx) var(--hy); mix-blend-mode: color-dodge; opacity: .55; transition: opacity .3s; }
.pc.tier-1::after { opacity: .18; }
.pc.tier-2::after { opacity: .38; }
.pc.tier-3::after { opacity: .6; }
@media (hover: hover) { .pc:hover::after { opacity: .8; } }

/* ===== Card page ===== */
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.back { text-decoration: none; color: var(--muted); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.stage { perspective: 1100px; display: flex; justify-content: center; margin: 4px 0 22px; }
.bigcard { position: relative; width: min(72vw, 300px); aspect-ratio: 55 / 85; transform-style: preserve-3d; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .5s cubic-bezier(.2, .8, .2, 1); border: 0; padding: 0; background: none; }
.bigcard.tracking { transition: transform .08s linear; }
.bigcard.flipped { --flip: 180deg; }
.face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.face.front { background: #fff; color: var(--ink); text-align: left; }
.face.front img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.face.front .fi { display: block; padding: 22px 14px 10px; }
.face.front .fi > span { display: block; }
.face.front .fi .pc-code { font-family: var(--f-mono); font-size: 11px; color: var(--pink-ink); font-weight: 700; }
.face.front .fi .t { font-weight: 700; font-size: 16px; line-height: 1.25; margin-top: 3px; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face.back { transform: rotateY(180deg); background: var(--night-3); color: var(--chalk); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 20px); }
.face.back .logo { font-family: var(--f-display); font-size: 58px; line-height: 1; }
.face.back .mono { font-family: var(--f-mono); font-size: 11px; color: var(--silver); letter-spacing: .12em; text-transform: uppercase; }
.sticker { position: absolute; z-index: 3; left: 50%; top: calc(100% * 55 / 85 - 32px); transform: translateX(-50%) rotate(-5deg); background: var(--pink); color: #fff; font-family: var(--f-display);
  font-size: 14px; letter-spacing: .04em; padding: 6px 12px; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; border: 2px solid #fff; }
.flip-hint { text-align: center; font-size: 12px; color: var(--muted); margin: -12px 0 18px; }

.paper { background: var(--sleeve); color: var(--ink); border-radius: 20px; padding: 20px 18px; box-shadow: var(--shadow); }
.doc-title { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 14px; word-break: break-word; }
.fields { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 18px; font-size: 14.5px; }
.fields dt, .fields dd { padding: 9px 0; border-bottom: 1px dashed rgba(29, 24, 48, .2); margin: 0; }
.fields dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-right: 14px; padding-top: 12px; }
.fields dd { font-weight: 500; }
.fields .mono { font-family: var(--f-mono); font-size: 12.5px; }
.play-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.play-row .btn { flex: 1 1 auto; white-space: nowrap; padding: 10px 14px; }
.embed { margin: 10px 0 4px; }
.embed iframe { width: 100%; height: 352px; border: 0; border-radius: 14px; }
.block { margin-top: 20px; }
.block h2, .fanchant h2 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); margin: 0 0 6px; }
.block p { margin: 0; }
.src { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink-2); min-height: 32px; }
.fanchant { margin-top: 22px; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; position: relative; background: #fff; }
.fanchant::before { content: "♪"; position: absolute; right: 12px; top: 6px; font-size: 22px; color: var(--pink); }
.fanchant p { margin: 0; font-weight: 500; }
.tracks-box { margin-top: 22px; border-top: 1px solid rgba(29, 24, 48, .15); }
.tracks-box summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.tracks-box summary::-webkit-details-marker { display: none; }
.tracks-box summary::after { content: "+"; font-size: 22px; color: var(--pink-ink); }
.tracks-box[open] summary::after { content: "–"; }
.trk-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trk { display: flex; gap: 10px; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); padding: 10px 2px; border-bottom: 1px solid rgba(29, 24, 48, .08); min-height: 48px; }
.trk .n { font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); width: 28px; flex: 0 0 auto; }
.trk .tt { flex: 1 1 auto; min-width: 0; }
.trk .tt b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk .tt span { display: block; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk .dur { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); flex: 0 0 auto; }
.more { margin: 14px auto 4px; display: flex; }
.pager { display: flex; justify-content: space-between; margin-top: 18px; }
.pager a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-family: var(--f-mono); font-size: 13px; }

/* ===== Song page ===== */
.song-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.song-head img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.song-head h1 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; word-break: break-word; }
.song-head > div { min-width: 0; }
.song-head .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 24px; }
.song-head .a { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 61, 139, .14); color: #ff8fbb; text-decoration: none; font-family: var(--f-mono); font-size: 11px; font-weight: 700; white-space: nowrap; }
.paper .chip { background: rgba(200, 21, 95, .1); color: var(--pink-ink); }
.player-slot { margin: 6px 0 14px; min-height: 80px; }
.player-slot iframe { border-radius: 12px; }
.lyrics { font-size: 17px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.lyrics .ln { display: block; padding: 2px 0; color: var(--ink-2); transition: color .2s, transform .2s; }
.lyrics .ln.atual { color: var(--ink); font-weight: 700; transform: translateX(4px); }
.lyrics.plain .ln { color: var(--ink); }
.lyr-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.credit { font-size: 12px; color: var(--ink-2); }
.seg { display: inline-flex; background: rgba(29, 24, 48, .08); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 36px; padding: 4px 14px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.dark-seg { background: rgba(255, 255, 255, .08); }
.dark-seg button { color: var(--muted); }
.dark-seg button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
textarea.paste { width: 100%; min-height: 160px; border-radius: 12px; border: 1.5px solid rgba(29, 24, 48, .25); padding: 12px; font: 15px/1.6 var(--f-body); background: #fff; color: var(--ink); }

/* ===== Índice ===== */
.search input { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid rgba(201, 198, 214, .3); background: var(--night-2); color: var(--chalk); padding: 10px 14px; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.idx-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.rail { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; padding: 8px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  background: rgba(22, 18, 31, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: 0 0 auto; min-width: 34px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--silver); border-radius: 8px; }
.rail a:active { background: var(--night-3); }
.letter { scroll-margin-top: 60px; }
.letter-h { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: 18px 0 4px; color: var(--pink); }
.letter-h small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.idx-list { list-style: none; margin: 0; padding: 0; }
.idx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(201, 198, 214, .1); }
.idx-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.idx-main .rt { color: var(--chalk); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx-main .ra { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; max-width: 45%; }
details.author summary { list-style: none; cursor: pointer; padding: 10px 0; border-bottom: 1px solid rgba(201, 198, 214, .1); }
details.author summary::-webkit-details-marker { display: none; }
details.author ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--pink); }
details.author li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; }
details.author li a:first-child { color: var(--chalk); text-decoration: none; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx-cap { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0; }

/* ===== Stats ===== */
.report { background: var(--night-2); border: 1px solid rgba(201, 198, 214, .12); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.report h2 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.big { font-family: var(--f-display); font-size: 72px; line-height: 1; }
.big small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.facts div { background: var(--night-3); border-radius: 12px; padding: 12px; }
.facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.facts span { font-size: 12.5px; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 5px; }
.bars .lbl span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.bar { height: 10px; background: var(--night-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--holo); border-radius: 999px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(201, 198, 214, .1); text-decoration: none; min-height: 44px; align-items: center; }
.linklist a span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ===== Membership ===== */
.member { background: var(--sleeve); color: var(--ink); border-radius: 20px; padding: 22px 20px; position: relative; overflow: hidden; }
.member::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--holo); }
.member h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 6px 0 12px; }
.member .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink); }
.member ol { padding-left: 20px; margin: 10px 0 16px; }
.member li { margin-bottom: 8px; }
.sign { display: flex; flex-direction: column; align-items: flex-end; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.signature { font-family: var(--f-hand); font-size: 46px; color: #2a47b8; line-height: 1; transform: rotate(-4deg); margin: 4px 8px 0 0; }
.sign .line { width: 180px; border-top: 1px solid var(--ink-2); margin-top: 4px; }
.sign .who { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.modal-wrap { width: min(94vw, 520px); max-height: 88vh; overflow: auto; border-radius: 20px; }
.modal-actions { position: sticky; bottom: 0; display: flex; justify-content: center; padding: 14px; background: linear-gradient(transparent, var(--sleeve) 30%); }

/* ===== Gravar ===== */
.nfc-list { list-style: none; margin: 0; padding: 0; }
.nfc-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(201, 198, 214, .1); }
.nfc-list code { font-family: var(--f-mono); font-size: 12px; word-break: break-all; }
.nfc-list small { color: var(--muted); }

/* ===== Overlay / pull ceremony ===== */
#overlay { position: fixed; inset: 0; z-index: 40; background: rgba(12, 9, 18, .94); display: flex; align-items: center; justify-content: center; padding: 16px; }
#overlay[hidden] { display: none; }
.pull { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; cursor: pointer; width: 100%; }
.pull .l1 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; min-height: 16px; }
.pull-stage { perspective: 1000px; }
.pull-card { position: relative; width: min(62vw, 260px); aspect-ratio: 55 / 85; transform-style: preserve-3d; transform: rotateY(180deg) scale(.6); opacity: 0; }
.pull-card.in { animation: pull-in .55s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.pull-card.reveal { animation: pull-flip .8s cubic-bezier(.3, .8, .2, 1) forwards; }
.pull-card .face.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .8) 48%, transparent 66%); background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: overlay; }
.pull-card.reveal .face.front::after { animation: sweep 1.1s .55s ease-out forwards; }
.pull .l3 { font-family: var(--f-display); font-size: 24px; line-height: 1.2; opacity: 0; transform: translateY(8px); transition: all .4s; max-width: 90vw; word-break: break-word; }
.pull .l3.on { opacity: 1; transform: none; }
.pull .l3 small { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--pink); letter-spacing: .1em; margin-top: 6px; }
.slap { position: absolute; z-index: 5; left: 50%; top: 58%; font-family: var(--f-display); font-size: 22px; color: #fff; background: var(--pink); padding: 8px 14px; border-radius: 10px; border: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(-10deg) scale(3); opacity: 0; white-space: nowrap; box-shadow: 0 8px 24px rgba(255, 61, 139, .5); }
.slap.go { animation: slap .35s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.skip-hint { font-size: 12px; color: var(--muted); }
@keyframes pull-in { to { opacity: 1; transform: rotateY(180deg) scale(1); } }
@keyframes pull-flip { from { opacity: 1; transform: rotateY(180deg); } to { opacity: 1; transform: rotateY(360deg); } }
@keyframes sweep { to { background-position: -50% 0; } }
@keyframes slap { to { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); } }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%); z-index: 60; background: var(--chalk); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }

/* ===== Jogo ===== */
.game-card { background: var(--night-2); border: 1px solid rgba(201, 198, 214, .12); border-radius: 20px; padding: 18px; }
.opt-group { display: grid; gap: 8px; margin: 8px 0 18px; }
.opt-group label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--night-3); cursor: pointer; min-height: 48px; border: 1.5px solid transparent; }
.opt-group label:has(input:checked) { border-color: var(--pink); }
.opt-group input { accent-color: var(--pink); margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.opt-group b { display: block; font-size: 15px; }
.opt-group span { font-size: 13px; color: var(--muted); }
.opt-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
select.vsel { width: 100%; min-height: 48px; border-radius: 14px; background: var(--night-3); color: var(--chalk); border: 1.5px solid rgba(201, 198, 214, .25); padding: 8px 12px; font-size: 16px; }
.hud { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.hud b { color: var(--chalk); }
.spk { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px 0 18px; }
.spk-btn { width: 116px; height: 116px; border-radius: 50%; border: 0; cursor: pointer; background: var(--holo); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(200, 184, 255, .3); position: relative; }
.spk-btn svg { width: 44px; height: 44px; }
.spk-btn.playing::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--pink); animation: ring 1s infinite; }
@keyframes ring { from { transform: scale(.95); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.lvl { display: flex; gap: 6px; }
.lvl i { width: 28px; height: 6px; border-radius: 999px; background: var(--night-3); }
.lvl i.on { background: var(--pink); }
.spk-cap { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.answers { display: grid; gap: 10px; }
.ans { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid rgba(201, 198, 214, .2); background: var(--night-3); color: var(--chalk); cursor: pointer; }
.ans img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.ans .at { min-width: 0; }
.ans .at b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ans .at span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ans.wrong { border-color: var(--bad); opacity: .5; }
.ans.right { border-color: var(--ok); background: rgba(31, 157, 107, .18); }
.ans:disabled { cursor: default; }
.round-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.result-big { text-align: center; }
.result-big .rank { font-family: var(--f-display); font-size: 44px; line-height: 1.1; margin: 6px 0; }
.result-big .score { font-family: var(--f-mono); color: var(--muted); }
.res-list { list-style: none; margin: 16px 0 0; padding: 0; }
.res-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(201, 198, 214, .1); }
.res-list .ok { color: var(--ok); } .res-list .ko { color: var(--bad); }
.res-list .tt { min-width: 0; flex: 1; }
.res-list .tt b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-list .tt span { font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
