/* Browsea · Captain's logbook card collection (optional layer; see logbook-cards.js). */
.lc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* nav counter */
.lc-counter {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 8px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft);
  font: 500 12.5px var(--mono); letter-spacing: .02em; cursor: pointer; white-space: nowrap; vertical-align: middle;
}
.lc-counter svg { width: 14px; height: 14px; flex: none; }
.lc-counter:hover, .lc-counter:focus-visible { border-color: var(--ink); color: var(--ink); }
.lc-counter.on { color: var(--ink); }
.lc-counter.on svg { color: var(--copper); }
.lc-counter.full { border-color: #c9a24a; background: #fff6dc; }
.lc-counter.bump { animation: lc-bump .5s ease; }
@keyframes lc-bump { 30% { transform: scale(1.14); border-color: var(--copper); } }
.nav li.lc-li { display: flex; align-items: center; }
@media (max-width: 700px) { .lc-counter { margin-left: 2px; padding: 0 8px 0 7px; } }
@media (max-width: 360px) { .lc-counter .lc-of { display: none; } }

/* small marks on the page once the logbook is in play */
.entry .lc-stamp {
  position: absolute; top: -13px; right: 14px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(19,40,58,.25);
}
.entry .lc-stamp svg { width: 12px; height: 12px; }
.entry.lc-flash { animation: lc-flash 1.6s ease; }
@keyframes lc-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--copper); } 100% { box-shadow: 0 0 0 0 transparent; } }
.lc-play .entry { cursor: default; }
#compass { cursor: pointer; outline: none; }
#compass:focus-visible circle:first-child { stroke-width: 3; }
/* compass spin is driven by logbook-cards.js on the .dial group */
@keyframes lc-spin { to { rotate: 720deg; } }
.sounding { stroke: transparent; stroke-width: 14px; paint-order: stroke; }
.sounding.lc-sounded { fill: var(--teal); font-weight: 600; }

/* pack reveal: a small card that slides in at the corner; never blocks the page */
.lc-pack {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 12px;
  max-width: min(380px, calc(100vw - 32px)); padding: 10px 30px 10px 10px; border-radius: 14px; background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 40px rgba(19,40,58,.35); font-family: var(--sans);
  transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.9,.3,1.15), opacity .3s;
}
.lc-pack.in { transform: none; opacity: 1; pointer-events: auto; }
.lc-pack.out { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.12); opacity: 0; transition: transform .55s cubic-bezier(.5,0,.8,.4), opacity .55s ease-in; }
.lc-pack-card { position: relative; flex: none; width: 84px; height: 118px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; border-radius: 8px; }
.lc-pack-flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .7s cubic-bezier(.3,1.3,.5,1) .25s; }
.lc-pack.in .lc-pack-flip { transform: none; }
.lc-pack-flip > * { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lc-pack-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, transparent 18px, #ecb48a 19px, transparent 20px), repeating-linear-gradient(45deg, #1d3a52 0 6px, #13283a 6px 12px); border: 3px solid #ecb48a; box-sizing: border-box; }
.lc-pack-tx { display: grid; gap: 2px; min-width: 0; }
.lc-pack-tx b { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #ecb48a; }
.lc-pack-tx .nm { font: 600 16px/1.25 var(--serif); }
.lc-pack-tx .ct { font: 400 12px var(--mono); color: #a8bccb; }
.lc-pack-x { position: absolute; top: 2px; right: 4px; border: 0; background: none; color: #a8bccb; font-size: 14px; line-height: 1; padding: 6px; cursor: pointer; }
.lc-pack[data-r="legendary"] .lc-pack-card::after, .lc-pack[data-r="admiral"] .lc-pack-card::after, .lc-pack[data-r="secret"] .lc-pack-card::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 160, 90,.5) 45%, rgba(120,230,255,.5) 55%, transparent 70%); background-size: 300% 300%; mix-blend-mode: color-dodge; animation: lc-sheen 2.6s linear infinite; }

/* over an open sheet the pack sits compact at the top, clear of hints and buttons */
.lc-dlg .lc-pack { top: 12px; bottom: auto; right: 12px; left: auto; padding: 8px 30px 8px 8px; gap: 10px; }
.lc-dlg .lc-pack-card { width: 52px; height: 73px; }
.lc-dlg .lc-pack-tx .nm { font-size: 14px; }
.lc-dlg .lc-pack-tx .ct { display: none; }
.lc-dlg .lc-toast.above { bottom: 16px; }

/* toasts */
.lc-toast {
  position: fixed; left: 50%; bottom: 16px; z-index: 41; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; border-radius: 12px; background: var(--white); color: var(--ink); border: 1px solid var(--land-edge);
  box-shadow: 0 10px 30px rgba(19,40,58,.22); font: 500 14px var(--sans); transition: transform .3s, opacity .3s;
}
.lc-toast.in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lc-toast.above { bottom: 156px; }
.lc-toast .lc-tb { display: flex; gap: 8px; }

/* shared buttons */
.lc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 13.5px var(--sans); cursor: pointer; text-decoration: none; }
.lc-btn:hover { background: var(--copper); border-color: var(--copper); }
.lc-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.lc-btn.ghost:hover { border-color: var(--ink); background: transparent; }
.lc-btn.glow { box-shadow: 0 0 0 3px #f0d48a; }
.lc-x { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; padding: 10px; cursor: pointer; border-radius: 8px; }
.lc-x:focus-visible, .lc-btn:focus-visible, .lc-slot:focus-visible, .lc-arrow:focus-visible, .lc-vcard:focus-visible, .lc-counter:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* binder */
.lc-dlg { padding: 0; border: 0; max-width: none; max-height: none; color: var(--ink); font-family: var(--sans); }
.lc-binder { width: min(980px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 24px)); margin: auto; background: var(--paper); border: 1px solid var(--land-edge); border-radius: 12px; overflow: hidden; }
.lc-binder[open] { display: flex; flex-direction: column; }
.lc-binder::backdrop { background: rgba(19,40,58,.6); }
.lc-binder.lc-under { opacity: 0; }
.lc-bhead { padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); background: var(--white); }
.lc-brow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lc-eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0 0 2px; }
.lc-bhead h2 { font: 600 26px/1.2 var(--serif); margin: 0; }
.lc-bsub { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; max-width: 640px; }
.lc-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lc-bar { flex: 1 1 160px; height: 8px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.lc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--copper)); transition: width .5s; }
.lc-bn { font: 500 13px var(--mono); }
.lc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lc-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 6px 22px 22px; }
.lc-group { padding: 16px 0 6px; border-bottom: 1px dashed var(--line); }
.lc-group:last-child { border-bottom: 0; }
.lc-group h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font: 600 18px var(--serif); }
.lc-group h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.lc-group h3 .k { font: 400 12px var(--mono); color: var(--ink-soft); }
.lc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 500 11.5px var(--sans); background: #fff3d1; color: #7a5410; border: 1px solid #e3c47a; }
.lc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 14px; }
.lc-grid li { display: grid; gap: 5px; align-content: start; min-width: 0; }
.lc-slot { position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; padding: 0; border-radius: 8px; border: 2px dashed color-mix(in srgb, var(--c, #8a94a0) 55%, #fff); background: color-mix(in srgb, var(--c, #8a94a0) 7%, var(--paper)); cursor: pointer; overflow: hidden; color: var(--ink-soft); font-family: var(--sans); text-align: center; }
.lc-slot.got { border: 0; background: var(--ink); box-shadow: 0 3px 10px rgba(19,40,58,.22); transition: transform .2s; }
.lc-slot.got:hover { transform: translateY(-3px); }
.lc-slot canvas { display: block; width: 100%; height: 100%; }
.lc-slot.got[data-r="legendary"]::after, .lc-slot.got[data-r="admiral"]::after, .lc-slot.got[data-r="secret"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 160, 90,.22) 45%, rgba(120,230,255,.22) 55%, transparent 70%); background-size: 300% 300%; mix-blend-mode: color-dodge; animation: lc-sheen 4s linear infinite; }
.lc-slot .q { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 10px 8px; }
.lc-slot .q b { font: 600 30px var(--serif); color: color-mix(in srgb, var(--c, #8a94a0) 70%, var(--ink)); opacity: .55; }
.lc-slot .q span { font-size: 11.5px; line-height: 1.35; }
.lc-slot .q em { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: color-mix(in srgb, var(--c, #8a94a0) 80%, var(--ink)); }
.lc-slot.sel { outline: 3px solid var(--copper); outline-offset: 2px; }
.lc-cap { font-size: 12px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-cap.off { color: #8a94a0; }
.lc-detail { border-top: 1px solid var(--line); background: var(--white); padding: 14px 18px 16px 22px; display: flex; gap: 14px; align-items: flex-start; }
.lc-detail[hidden] { display: none; }
.lc-detail .tx { flex: 1; min-width: 0; }
.lc-detail h4 { margin: 0 0 4px; font: 600 17px var(--serif); }
.lc-detail ul { margin: 4px 0 10px; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.lc-detail p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; }
.lc-pad { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; margin: 6px 0; }
.lc-pad button, .lc-pad2 button { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: 600 15px var(--mono); color: var(--ink); cursor: pointer; }
.lc-pad button:active, .lc-pad2 button:active { background: var(--shoal); }
.lc-padrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lc-pad2 { display: flex; gap: 6px; }
.lc-pad2 button { width: 44px; border-radius: 50%; }
.lc-con { display: flex; gap: 6px; margin: 6px 0 4px; max-width: 420px; }
.lc-con input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0f2233; color: #cfe5ea; font: 400 13.5px var(--mono); }
.lc-con-out { font: 400 12.5px var(--mono); color: var(--ink-soft); min-height: 1.4em; }

/* big card viewer */
.lc-viewer { width: 100vw; height: 100dvh; margin: 0; background: transparent; color: var(--paper); overflow: hidden; }
.lc-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lc-viewer::backdrop { background: rgba(11,24,36,.94); }
.lc-vtop { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 0 18px; font: 500 13px var(--mono); color: #a8bccb; }
.lc-vtop .lc-x { color: var(--paper); }
.lc-vstage { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.lc-vcard { --cw: min(84vw, calc((100dvh - 170px) * 5 / 7), 500px); position: relative; width: var(--cw); aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; border-radius: calc(var(--cw) * .056); color: inherit; }
.lc-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
.lc-vcard.track .lc-tilt { transition: transform .06s linear; }
.lc-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.2,.5,1); }
.lc-flip.flipped { transform: rotateY(180deg); }
.lc-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); border-radius: calc(var(--cw) * .056); }
.lc-face canvas { display: block; width: 100%; height: 100%; }
.lc-face.back { transform: rotateY(180deg); }
.lc-holo, .lc-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.lc-holo { opacity: 0; mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 22%, rgba(255, 125, 40,.6) 36%, rgba(255,220,90,.55) 46%, rgba(70,230,255,.6) 56%, rgba(150,110,255,.5) 66%, transparent 78%); background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%); transition: opacity .3s; }
.lc-holo { -webkit-mask-image: linear-gradient(to bottom, #000 19%, rgba(0,0,0,.28) 19.6%, rgba(0,0,0,.28) 58.8%, #000 59.4%); mask-image: linear-gradient(to bottom, #000 19%, rgba(0,0,0,.28) 19.6%, rgba(0,0,0,.28) 58.8%, #000 59.4%); }
.lc-glare { opacity: .0; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.85), transparent 48%); transition: opacity .3s; }
.lc-vcard[data-r="legendary"] .lc-holo, .lc-vcard[data-r="admiral"] .lc-holo { opacity: .3; }
.lc-vcard.track[data-r="legendary"] .lc-holo, .lc-vcard.track[data-r="admiral"] .lc-holo { opacity: .5; }
.lc-vcard[data-r="secret"] .lc-holo { opacity: .3; }
.lc-vcard[data-r="rare"] .lc-holo { opacity: .14; }
.lc-vcard[data-r="uncommon"] .lc-holo { opacity: .08; }
.lc-vcard .lc-glare { opacity: .4; }
/* hide the far face at the midpoint of the flip (software compositors can leak backfaces) */
.lc-flip .lc-face { transition: visibility 0s .3s; }
.lc-flip.flipped .lc-face.front, .lc-flip:not(.flipped) .lc-face.back { visibility: hidden; }
.lc-vcard:not(.track)[data-r="legendary"] .lc-holo, .lc-vcard:not(.track)[data-r="admiral"] .lc-holo, .lc-vcard:not(.track)[data-r="secret"] .lc-holo { animation: lc-sheen 5s linear infinite; }
@keyframes lc-sheen { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.lc-vcard.slide-l { animation: lc-in-l .32s ease-out; }
.lc-vcard.slide-r { animation: lc-in-r .32s ease-out; }
@keyframes lc-in-l { from { transform: translateX(-60px); opacity: 0; } }
@keyframes lc-in-r { from { transform: translateX(60px); opacity: 0; } }
.lc-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(246,241,228,.35); background: rgba(246,241,228,.08); color: var(--paper); font: 400 30px/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.lc-arrow:hover { background: rgba(246,241,228,.2); }
.lc-arrow:disabled { opacity: .3; cursor: default; }
.lc-vbar { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.lc-vbar .lc-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lc-vbar .lc-btn:hover { background: #fff; }
.lc-vbar .lc-btn.ghost { background: transparent; color: var(--paper); border-color: rgba(246,241,228,.4); }
.lc-vbar .lc-arrow { display: none; width: 44px; height: 44px; font-size: 26px; }
.lc-vhint { margin-top: 10px; font: 400 12px var(--mono); color: #7d93a3; text-align: center; padding: 0 16px; }
@media (max-width: 700px) {
  .lc-vstage > .lc-arrow { display: none; }
  .lc-vbar .lc-arrow { display: grid; }
  .lc-vcard { --cw: min(92vw, calc((100dvh - 150px) * 5 / 7)); }
  .lc-binder { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .lc-bhead { padding: 12px 8px 10px 16px; }
  .lc-body { padding: 4px 16px 18px; }
  .lc-detail { padding: 12px 10px 14px 16px; }
  .lc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .lc-slot .q { padding: 6px 4px; }
  .lc-slot .q span { font-size: 10.5px; }
  .lc-slot .q b { font-size: 24px; }
  .lc-pack { right: 8px; left: 8px; bottom: 8px; max-width: none; }
  .lc-toast.above { bottom: 150px; }
}

/* the Admiral's moment */
.lc-fleet { position: fixed; inset: 0; z-index: 45; pointer-events: none; width: 100vw; height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  .lc-pack, .lc-pack.out, .lc-toast { transition: opacity .2s; transform: none; }
  .lc-toast { transform: translateX(-50%); }
  .lc-pack-flip, .lc-flip, .lc-tilt { transition: none; }
  .lc-vcard.slide-l, .lc-vcard.slide-r, #compass.lc-spin, .lc-counter.bump, .entry.lc-flash { animation: none; }
  .lc-holo, .lc-slot.got::after, .lc-pack-card::after { animation: none !important; }
}

/* ---- being noticed: progress ring, card flight, peek, deal, source glyphs (motion only; no words) ---- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.lc-counter { position: relative; padding-left: 4px; gap: 6px; transition: --p .6s ease-out; }
.lc-ring { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.lc-counter .lc-ring svg { width: 12px; height: 12px; }
.lc-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--copper) calc(var(--p, 0) * 360deg), rgba(19,40,58,.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2.2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2.2px)); }
.lc-counter.full .lc-ring::before { background: conic-gradient(#c9a24a 0 360deg); }
.lc-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--copper); opacity: 0; pointer-events: none; }
.lc-counter.pulse .lc-ring::after { animation: lc-ring .8s ease-out; }
@keyframes lc-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.lc-counter .n { display: inline-flex; align-items: center; height: 20px; overflow: hidden; }
.lc-num { display: inline-block; }
.lc-counter.tick .lc-num { animation: lc-tick .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes lc-tick { from { transform: translateY(85%); opacity: 0; } }
.lc-counter.glow { animation: lc-glow 1s ease; }
@keyframes lc-glow { 30% { box-shadow: 0 0 0 4px rgba(181,83,28,.3); border-color: var(--copper); } }

/* the card in flight; a popover so it rides above open sheets too */
.lc-fly { position: fixed; inset: 0 auto auto 0; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: 34px; height: 48px; z-index: 60; pointer-events: none; will-change: transform, opacity; opacity: 0; }
.lc-fly-c { position: absolute; inset: 0; border-radius: 4px; box-shadow: 0 6px 16px rgba(19,40,58,.35); }
.lc-fly-back, .lc-fly canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; box-sizing: border-box; }
.lc-fly-back, .lc-fan i, .entry .lc-glyph { background: radial-gradient(circle at 50% 50%, transparent 4px, #ecb48a 4.5px, transparent 5.5px), repeating-linear-gradient(45deg, #1d3a52 0 3px, #13283a 3px 6px); }
.lc-fly-back { border: 2px solid #ecb48a; }
.lc-fly canvas { opacity: 0; transition: opacity 0s .14s; }
.lc-fly.face canvas { opacity: 1; }
.lc-fly.face .lc-fly-c { animation: lc-flipx .3s ease-in-out; }
@keyframes lc-flipx { 50% { transform: scaleX(.05); } }

/* the peek (idle, after a first card) and the deal (brand-new visitor): face-down cards slip out from behind the counter */
.lc-fan { position: absolute; left: 15px; top: 14px; width: 0; height: 0; z-index: -1; pointer-events: none; }
.lc-fan i { position: absolute; left: -9px; top: -12px; width: 18px; height: 25px; border-radius: 3px; border: 1.5px solid #ecb48a; box-sizing: border-box; box-shadow: 0 2px 6px rgba(19,40,58,.3); opacity: 0; transform-origin: 50% -70%; }
.lc-fan i:nth-child(1) { --r: 34deg; --tx: 0px; --ty: 22px; }
.lc-fan i:nth-child(2) { --r: 0deg; --tx: 0px; --ty: 26px; }
.lc-fan i:nth-child(3) { --r: -34deg; --tx: 0px; --ty: 22px; }
.lc-counter.peek .lc-fan i { animation: lc-peek 1.6s cubic-bezier(.3,1.25,.5,1) both; }
.lc-counter.peek .lc-fan i:nth-child(2) { animation-delay: .06s; }
.lc-counter.peek .lc-fan i:nth-child(3) { animation-delay: .12s; }
@keyframes lc-peek {
  0% { opacity: 0; transform: translate(0, 10px) rotate(0) scale(.7); }
  10% { opacity: 1; }
  28%, 70% { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 10px) rotate(0) scale(.7); }
}
.lc-counter.deal .lc-fan i:nth-child(2) { animation: lc-deal 1.3s cubic-bezier(.3,1.2,.5,1) both; }
@keyframes lc-deal {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: 1; }
  35%, 62% { opacity: 1; transform: translate(-4px, 30px) rotate(-10deg); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 0) rotate(0); }
}

/* tiny card glyph on whatever still holds an uncollected card, with a sheen every ~6s */
.entry .lc-glyph { position: absolute; top: -12px; right: 18px; z-index: 2; width: 12px; height: 17px; border-radius: 2.5px; border: 1.5px solid #ecb48a; box-sizing: border-box; box-shadow: 0 1px 3px rgba(19,40,58,.3); overflow: hidden; transform: rotate(8deg); pointer-events: none; }
.entry .lc-glyph i { position: absolute; top: -6px; bottom: -6px; left: 0; width: 5px; background: linear-gradient(90deg, transparent, rgba(255,244,228,.95), rgba(143,211,220,.75), transparent); transform: translateX(-10px) rotate(20deg); animation: lc-glint 6s ease-in-out infinite; }
@keyframes lc-glint { 0% { transform: translateX(-10px) rotate(20deg); } 14%, 100% { transform: translateX(16px) rotate(20deg); } }
.entry .lc-glyph.gone { animation: lc-glyph-out .4s ease-in forwards; }
@keyframes lc-glyph-out { to { transform: translateY(-12px) rotate(40deg) scale(.4); opacity: 0; } }
.lc-sg { pointer-events: none; }
.lc-sg-card { fill: #1d3a52; stroke: #ecb48a; stroke-width: 1.4; }
.lc-sg-in { fill: none; stroke: rgba(236,180,138,.6); stroke-width: .7; }
.lc-sg-glint { fill: rgba(255,244,228,.9); transform: translateX(-10px) rotate(20deg); animation: lc-sglint 6s ease-in-out infinite; }
@keyframes lc-sglint { 0% { transform: translateX(-10px) rotate(20deg); } 14%, 100% { transform: translateX(12px) rotate(20deg); } }
.lc-sg-k { transform-box: fill-box; transform-origin: center; }
.lc-sg.gone .lc-sg-k { animation: lc-glyph-out .4s ease-in forwards; }

@media (prefers-reduced-motion: reduce) {
  .lc-counter { transition: none; }
  .lc-counter.pulse .lc-ring::after, .lc-counter.tick .lc-num, .lc-fly.face .lc-fly-c { animation: none; }
  .lc-counter.peek .lc-fan i { animation: lc-peek-r 1.6s ease both; }
  .lc-counter.deal .lc-fan i:nth-child(2) { --r: -10deg; --tx: -4px; animation: lc-peek-r 1.3s ease both; }
  @keyframes lc-peek-r { 0% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } 25%, 75% { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); } }
  .entry .lc-glyph i, .lc-sg-glint { animation: lc-glint-r 6s ease-in-out infinite; transform: translateX(3px) rotate(20deg); }
  @keyframes lc-glint-r { 0%, 100% { opacity: 0; } 10% { opacity: 1; } 22% { opacity: 0; } }
  .entry .lc-glyph.gone, .lc-sg.gone .lc-sg-k { animation: lc-fade-out .25s forwards; }
  @keyframes lc-fade-out { to { opacity: 0; } }
}
