/* ══════════════════════════════════════════════════════════════════════
   LIONGRAM   (liongram.css)
   liongram.html only. Everything is prefixed .lg- so nothing leaks.
   The photographs are the page: the chrome is quiet black and gold, there
   are no borders around pictures, and every control gives way to them.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --lg-gold: #D9B948;
  --lg-gold-2: #C9A227;
  --lg-gold-soft: rgba(217,185,72,.14);
  --lg-bg: #070705;
  --lg-card: #12110c;
  --lg-card-2: #1a1812;
  --lg-line: rgba(255,255,255,.08);
  --lg-line-gold: rgba(201,162,39,.24);
  --lg-ink: rgba(255,255,255,.94);
  --lg-mid: rgba(255,255,255,.66);
  --lg-low: rgba(255,255,255,.44);
  --lg-red: #ff5d73;
  --lg-ok: #4ade80;
  --lg-radius: 12px;
  --lg-gap: 6px;
  --lg-ease: cubic-bezier(.22,.61,.36,1);
}

body.lg-body { background: var(--lg-bg); }
.lg, .lg *, .lg-viewer, .lg-viewer *, .lg-sheet, .lg-sheet *, .lg-mini, .lg-mini * { box-sizing: border-box; }
.lg [hidden], .lg-viewer[hidden], .lg-sheet[hidden], .lg-mini[hidden], .lg-toast[hidden],
.lg-viewer [hidden], .lg-sheet [hidden], .lg-mini [hidden] { display: none !important; }
.lg, .lg-viewer, .lg-sheet, .lg-mini, .lg-toast { color: var(--lg-ink); font-family: Inter, system-ui, sans-serif; }
.lg button, .lg a, .lg-viewer button, .lg-viewer a, .lg-sheet button, .lg-sheet a, .lg-mini button, .lg-mini a {
  -webkit-tap-highlight-color: transparent; }
.lg button, .lg-viewer button, .lg-sheet button, .lg-mini button { font-family: inherit; }
html.lg-noscroll, html.lg-noscroll body { overflow: hidden; }
/* Read by screen readers and search engines, never drawn. */
.lg .il-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.lg { max-width: 1240px; margin: 0 auto; padding: calc(var(--nav-h, 70px) + 6px) 12px 120px; min-height: 100vh; }
@media (min-width: 900px) { .lg { padding-left: 24px; padding-right: 24px; } }

/* ── the LionGram bar ── */
.lg-bar { position: sticky; top: calc(var(--nav-h, 70px) - 2px); z-index: 30; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 2px 8px;
  background: linear-gradient(180deg, rgba(7,7,5,.96) 70%, rgba(7,7,5,0)); }
.lg-mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--lg-ink); min-width: 0; }
.lg-mark-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #120f05;
  background: linear-gradient(140deg, #f2d77a, var(--lg-gold-2) 60%, #8f6f12); box-shadow: 0 6px 20px rgba(201,162,39,.28); flex: none; }
.lg-mark-t { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 1.32rem; letter-spacing: .02em; white-space: nowrap; }
.lg-mark-t b { color: var(--lg-gold); font-weight: 800; }
.lg-bar-act { display: flex; align-items: center; gap: 10px; flex: none; }
.lg-share { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: linear-gradient(140deg, #f2d77a, var(--lg-gold-2)); color: #140f02; font-weight: 800; font-size: .88rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(201,162,39,.25); transition: transform .15s var(--lg-ease), filter .15s; }
.lg-share:hover { filter: brightness(1.06); }
.lg-share:active { transform: scale(.96); }
@media (max-width: 380px) { .lg-share span { display: none; } .lg-share { width: 40px; padding: 0; justify-content: center; } }
.lg-me { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 200deg, #f2d77a, var(--lg-gold-2), #8f6f12, #f2d77a); text-decoration: none; }
.lg-me-av, .lg-av { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: #222018; color: var(--lg-gold); font-weight: 800; font-size: .9rem; border: 2px solid var(--lg-bg); }
.lg-me-av img, .lg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── tabs ── */
.lg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; margin: 0 -2px;
  scroll-snap-type: x proximity; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs button { flex: none; scroll-snap-align: start; height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--lg-line); background: rgba(255,255,255,.035); color: var(--lg-mid); font-weight: 700; font-size: .84rem;
  transition: background .15s, color .15s, border-color .15s; }
.lg-tabs button:hover { color: var(--lg-ink); }
.lg-tabs button[aria-selected="true"] { background: var(--lg-gold-soft); color: var(--lg-gold); border-color: var(--lg-line-gold); }
.lg-tabs button:active, .lg-cats button:active { transform: scale(.97); }

.lg-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; }
.lg-cats::-webkit-scrollbar { display: none; }
.lg-cats button { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--lg-line);
  background: transparent; color: var(--lg-mid); font-weight: 600; font-size: .8rem; cursor: pointer; }
.lg-cats button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: var(--lg-ink); border-color: rgba(255,255,255,.2); }

.lg-intro { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--lg-radius); background: var(--lg-card);
  border: 1px solid var(--lg-line); color: var(--lg-mid); font-size: .86rem; line-height: 1.55; }
.lg-intro b { color: var(--lg-ink); }
.lg-intro h2 { margin: 0 0 4px; font-size: 1rem; color: var(--lg-ink); }

/* ── today's featured photo ── */
.lg-feat { display: grid; grid-template-columns: 1fr; gap: 0; margin: 2px 0 16px; border-radius: 18px; overflow: hidden;
  background: var(--lg-card); border: 1px solid var(--lg-line-gold); cursor: pointer; text-align: left; padding: 0; color: inherit; width: 100%; }
.lg-feat-img { position: relative; aspect-ratio: 16 / 10; background: #15130d; overflow: hidden; }
.lg-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--lg-ease); }
.lg-feat:hover .lg-feat-img img { transform: scale(1.03); }
.lg-feat-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border-radius: 999px; background: rgba(8,7,4,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--lg-gold); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.lg-feat-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.lg-feat-body .lg-av { width: 40px; height: 40px; flex: none; border-color: var(--lg-card); }
.lg-feat-who { min-width: 0; }
.lg-feat-who b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-feat-who span { color: var(--lg-low); font-size: .8rem; }
@media (min-width: 900px) {
  .lg-feat { grid-template-columns: 1.7fr 1fr; }
  .lg-feat-img { aspect-ratio: 16 / 9; }
  .lg-feat-body { flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px; }
  .lg-feat-body .lg-av { width: 56px; height: 56px; }
  .lg-feat-who b { font-size: 1.15rem; white-space: normal; }
}

/* ── the grid ── */
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lg-gap); }
@media (min-width: 700px) { .lg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); --lg-gap: 8px; } }
@media (min-width: 1100px) { .lg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); --lg-gap: 10px; --lg-radius: 14px; } }
.lg-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--lg-radius); overflow: hidden; color: #fff;
  background: linear-gradient(110deg, #15130e 30%, #1f1c14 50%, #15130e 70%) 0 0 / 300% 100%;
  animation: lg-shimmer 1.6s linear infinite; contain: layout paint; }
.lg-tile.has-img { animation: none; background: #15130e; }
@keyframes lg-shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .lg-tile { animation: none; } }
.lg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-tile:focus-visible { outline: 2px solid var(--lg-gold); outline-offset: 2px; }
.lg-tile-hover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 10px;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.62)); opacity: 0; transition: opacity .18s; font-size: .8rem; font-weight: 700; }
.lg-tile-hover span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.lg-tile-hover .lg-tile-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .lg-tile:hover .lg-tile-hover { opacity: 1; } }
.lg-tile-badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 8px; font-size: .68rem; font-weight: 800;
  background: rgba(8,7,4,.78); color: #ffcf6b; letter-spacing: .02em; }
.lg-tile-rank { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 999px; background: rgba(8,7,4,.78); color: var(--lg-gold); font-weight: 900; font-size: .82rem; }
.lg-tile-likes { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 999px; background: rgba(8,7,4,.62); font-size: .72rem; font-weight: 800; }
@media (hover: hover) { .lg-tile:hover .lg-tile-likes { opacity: 0; } }

.lg-foot { display: flex; justify-content: center; padding: 18px 0 8px; min-height: 60px; }
.lg-more { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--lg-line-gold); background: transparent;
  color: var(--lg-gold); font-weight: 800; cursor: pointer; }
.lg-empty { grid-column: 1 / -1; text-align: center; color: var(--lg-mid); padding: 42px 16px; font-size: .93rem; line-height: 1.6; }
.lg-empty h2, .lg-empty h3 { color: var(--lg-ink); margin: 10px 0 4px; font-size: 1.08rem; }
.lg-empty .lg-empty-ic { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--lg-gold-soft); color: var(--lg-gold); }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border: 0;
  border-radius: 12px; font-weight: 800; font-size: .88rem; cursor: pointer; text-decoration: none;
  background: linear-gradient(140deg, #f2d77a, var(--lg-gold-2)); color: #140f02; }
.lg-btn.ghost { background: rgba(255,255,255,.06); color: var(--lg-ink); border: 1px solid var(--lg-line); }
.lg-btn.danger { background: rgba(255,93,115,.14); color: var(--lg-red); border: 1px solid rgba(255,93,115,.35); }
.lg-btn:disabled { opacity: .55; cursor: default; }
.lg-btn:active:not(:disabled) { transform: scale(.98); }
.lg-btn.sm { height: 34px; padding: 0 13px; font-size: .8rem; border-radius: 10px; }
.lg-link { color: var(--lg-gold); text-decoration: none; font-weight: 700; }

/* ── a member's gallery ── */
.lg-gal-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 8px 2px 18px; }
.lg-gal-head .lg-av { width: 84px; height: 84px; font-size: 1.6rem; border-width: 3px; }
.lg-gal-ring { padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #f2d77a, var(--lg-gold-2), #8f6f12, #f2d77a); }
.lg-gal-name { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.2; word-break: break-word; }
.lg-gal-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 10px; color: var(--lg-mid); font-size: .86rem; }
.lg-gal-stats b { color: var(--lg-ink); }
.lg-gal-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lg-gal-today { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--lg-radius); background: var(--lg-card);
  border: 1px solid var(--lg-line); font-size: .86rem; color: var(--lg-mid); display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.lg-gal-today b { color: var(--lg-ink); }
.lg-awards { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.lg-award { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem;
  background: var(--lg-card-2); border: 1px solid var(--lg-line-gold); color: var(--lg-gold); text-decoration: none; }
.lg-award.silver { color: #d6dbe3; border-color: rgba(214,219,227,.3); }
.lg-award.bronze { color: #e0a274; border-color: rgba(224,162,116,.3); }
@media (max-width: 420px) { .lg-gal-head .lg-av { width: 68px; height: 68px; } .lg-gal-name { font-size: 1.12rem; } }

/* ── the monthly competition ── */
.lg-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; align-items: end; }
.lg-pod { position: relative; border: 0; padding: 0; background: var(--lg-card); border-radius: 14px; overflow: hidden; cursor: pointer; color: inherit; text-align: left; }
.lg-pod img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.lg-pod.first { order: 2; transform: translateY(-8px); box-shadow: 0 0 0 2px var(--lg-gold), 0 14px 34px rgba(201,162,39,.22); }
.lg-pod.second { order: 1; } .lg-pod.third { order: 3; }
.lg-pod-gone { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 8px; text-align: center; color: var(--lg-low); font-size: .75rem; background: #15130e; }
.lg-award-cert { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; padding: 0 0 0 6px; }
.lg-pod-cap { display: block; padding: 8px 9px 10px; font-size: .76rem; color: var(--lg-mid); }
.lg-pod-cap b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.lg-medal { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: rgba(8,7,4,.8); }
.lg-medal.gold { color: var(--lg-gold); } .lg-medal.silver { color: #d6dbe3; } .lg-medal.bronze { color: #e0a274; }
.lg-hof-month { margin: 22px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lg-hof-month h2 { margin: 0; font-size: 1.05rem; font-family: Cinzel, Georgia, serif; color: var(--lg-gold); }

/* ══ THE VIEWER ══════════════════════════════════════════════════════ */
.lg-viewer { position: fixed; inset: 0; z-index: 99200; background: #040403; display: none; }
.lg-viewer.open { display: block; }
.lg-v { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.lg-v-top { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 8px; z-index: 2; }
.lg-v-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.lg-v-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.lg-v-who .lg-av { width: 36px; height: 36px; flex: none; border-color: transparent; }
.lg-v-name { display: block; min-width: 0; }
.lg-v-name b { display: block; color: var(--lg-ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-v-name small { display: block; color: var(--lg-low); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-v-dots { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.lg-v .il-fbtn { flex: none; }
.lg-v-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
/* overflow clipped: the blurred placeholder stays inside the photo's own box
   and never smears behind the top bar. */
.lg-v-frame { position: relative; max-width: 100%; max-height: 100%; overflow: hidden; }
@media (min-width: 900px) { .lg-v-frame { border-radius: 6px; } }
.lg-v-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px) brightness(.7); transform: scale(1.1); }
.lg-v-img { position: relative; display: block; max-width: 100vw; max-height: calc(100dvh - 210px); width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .25s; }
.lg-v-img.ready { opacity: 1; }
.lg-v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,18,12,.72); color: #fff; display: none; place-items: center; z-index: 3; }
.lg-v-nav.prev { left: 14px; } .lg-v-nav.next { right: 14px; }
@media (hover: hover) and (min-width: 700px) { .lg-v-nav:not([hidden]) { display: grid; } }
.lg-heart-burst { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: #fff; pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.5)); animation: lg-burst .8s var(--lg-ease) forwards; z-index: 4; }
@keyframes lg-burst { 0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }

.lg-v-panel { background: linear-gradient(180deg, rgba(4,4,3,0), rgba(4,4,3,.92) 18%); padding: 10px 14px max(14px, env(safe-area-inset-bottom)); max-height: 46dvh; overflow-y: auto; }
.lg-v-acts { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.lg-act { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent;
  color: #fff; font-weight: 800; font-size: .88rem; cursor: pointer; }
.lg-act:hover { background: rgba(255,255,255,.06); }
.lg-act svg { width: 25px; height: 25px; }
.lg-act.liked { color: var(--lg-red); }
.lg-act.liked svg path { fill: currentColor; }
.lg-act.pop svg { animation: lg-pop .35s var(--lg-ease); }
@keyframes lg-pop { 40% { transform: scale(1.3); } }
.lg-v-cap { font-size: .9rem; line-height: 1.55; color: var(--lg-ink); white-space: pre-wrap; word-break: break-word; margin: 0 0 6px; }
.lg-v-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--lg-low); font-size: .76rem; align-items: center; }
.lg-v-meta a { color: var(--lg-mid); text-decoration: none; }
.lg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--lg-mid); font-weight: 700; font-size: .72rem; text-decoration: none; }
.lg-chip.gold { background: var(--lg-gold-soft); color: var(--lg-gold); }
.lg-v-feed { color: var(--lg-gold); font-weight: 700; text-decoration: none; }

/* comments */
.lg-cm { margin-top: 10px; border-top: 1px solid var(--lg-line); padding-top: 10px; }
.lg-cm-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.lg-cm-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: start; }
.lg-cm-row .lg-av { width: 30px; height: 30px; font-size: .74rem; border: 0; }
.lg-cm-tx { font-size: .86rem; line-height: 1.45; word-break: break-word; }
.lg-cm-tx a { color: var(--lg-ink); font-weight: 800; text-decoration: none; margin-right: 6px; }
.lg-cm-tm { color: var(--lg-low); font-size: .72rem; margin-top: 2px; }
.lg-cm-x { border: 0; background: transparent; color: var(--lg-low); cursor: pointer; padding: 2px 4px; font-size: .74rem; }
.lg-cm-form { display: flex; gap: 8px; align-items: flex-end; }
.lg-cm-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--lg-line);
  background: rgba(255,255,255,.05); color: var(--lg-ink); font: inherit; font-size: .88rem; }
.lg-cm-form textarea:focus { outline: none; border-color: var(--lg-line-gold); }
.lg-cm-more { border: 0; background: transparent; color: var(--lg-mid); font-weight: 700; cursor: pointer; padding: 0; font-size: .82rem; }

@media (min-width: 900px) {
  .lg-v { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: 1fr; }
  .lg-v-top { position: absolute; top: 0; left: 0; right: 380px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
  .lg-v-top .lg-v-who, .lg-v-top .il-fbtn, .lg-v-top .lg-v-dots { display: none; }
  .lg-v-stage { grid-row: 1; grid-column: 1; padding: 24px 70px; }
  .lg-v-img { max-width: calc(100vw - 380px - 140px); max-height: calc(100dvh - 48px); }
  .lg-v-panel { grid-row: 1; grid-column: 2; max-height: none; height: 100dvh; background: var(--lg-card); border-left: 1px solid var(--lg-line);
    padding: 16px 18px; display: flex; flex-direction: column; }
  .lg-v-side-head { display: flex !important; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--lg-line); }
  .lg-cm { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .lg-cm-list { flex: 1; overflow-y: auto; }
}
.lg-v-side-head { display: none; }
.lg-v-side-head .lg-v-who { flex: 1; }

/* ══ SHEETS ══════════════════════════════════════════════════════════ */
.lg-sheet, .lg-mini { position: fixed; inset: 0; z-index: 99300; display: none; align-items: flex-end; justify-content: center;
  background: rgba(4,4,3,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lg-mini { z-index: 99400; }
.lg-sheet.open, .lg-mini.open { display: flex; }
.lg-panel { position: relative; width: 100%; max-width: 560px; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--lg-card); border: 1px solid var(--lg-line); border-bottom: 0; border-radius: 20px 20px 0 0; overflow: hidden;
  box-shadow: 0 -18px 60px rgba(0,0,0,.6); }
@media (min-width: 620px) { .lg-sheet, .lg-mini { align-items: center; } .lg-panel { border-radius: 18px; border-bottom: 1px solid var(--lg-line); max-height: 90dvh; } }
.lg-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--lg-line); flex: none; }
.lg-panel-head h3 { margin: 0; flex: 1; font-size: 1.02rem; font-weight: 800; }
.lg-panel-head .lg-back, .lg-panel-head .lg-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.lg-panel-body { padding: 16px; overflow-y: auto; flex: 1; }
.lg-panel-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--lg-line); display: flex; gap: 10px; justify-content: flex-end; flex: none; }
.lg-panel-foot .lg-btn { flex: 1; }
@media (min-width: 620px) { .lg-panel-foot .lg-btn { flex: none; min-width: 140px; } }

.lg-pick { display: grid; place-items: center; text-align: center; gap: 10px; padding: 34px 16px; border-radius: 16px;
  border: 1.5px dashed var(--lg-line-gold); background: rgba(217,185,72,.04); color: var(--lg-mid); font-size: .88rem; line-height: 1.5; }
.lg-pick .lg-empty-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--lg-gold-soft); color: var(--lg-gold); }
.lg-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.55; color: var(--lg-low); }
.lg-note b { color: var(--lg-mid); }
.lg-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.5; background: rgba(255,207,107,.08);
  border: 1px solid rgba(255,207,107,.25); color: #ffcf6b; }
.lg-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.5; background: rgba(255,93,115,.1);
  border: 1px solid rgba(255,93,115,.3); color: #ff9aa8; }

/* crop */
.lg-crop { position: relative; width: 100%; background: #0d0c09; border-radius: 14px; overflow: hidden; touch-action: none; cursor: grab; }
.lg-crop canvas { display: block; width: 100%; height: auto; }
.lg-crop:active { cursor: grabbing; }
.lg-crop-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: -1px -1px; opacity: .55; }
.lg-aspects { display: flex; gap: 6px; margin: 12px 0 10px; flex-wrap: wrap; }
.lg-aspects button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lg-line); background: transparent; color: var(--lg-mid);
  font-weight: 700; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lg-aspects button[aria-pressed="true"] { background: var(--lg-gold-soft); color: var(--lg-gold); border-color: var(--lg-line-gold); }
.lg-aspects i { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.lg-zoom { display: flex; align-items: center; gap: 10px; color: var(--lg-low); font-size: .78rem; }
.lg-zoom input { flex: 1; accent-color: var(--lg-gold); }
.lg-tilepv { display: flex; gap: 12px; align-items: center; margin-top: 12px; color: var(--lg-low); font-size: .78rem; }
.lg-tilepv canvas { width: 64px; height: 80px; border-radius: 8px; background: #15130e; flex: none; }

/* details form — the site's shared form styles capitalise every <label>;
   in a sheet that reads as shouting, so LionGram's labels are sentence case. */
.lg-sheet label, .lg-mini label { text-transform: none; letter-spacing: normal; }
/* il-design.css also forces font-size and colour on every label with
   !important; the two kinds of label here that are content, not captions,
   take them back. */
.lg-reasons label { font-size: .88rem !important; color: var(--lg-ink) !important; font-weight: 600; }
.lg-switch { font-size: .88rem !important; }
.lg-switch b { color: var(--lg-ink); }
.lg-switch small { display: block; margin-top: 2px; }
.lg-form-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; margin-bottom: 14px; }
.lg-form-row canvas, .lg-form-row img { width: 76px; height: 95px; border-radius: 10px; object-fit: cover; background: #15130e; }
.lg-field { display: block; margin-bottom: 12px; }
.lg-field > span { display: block; font-size: .76rem; font-weight: 700; color: var(--lg-mid); margin-bottom: 6px; }
.lg-field input, .lg-field select, .lg-field textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--lg-line);
  background: rgba(255,255,255,.05); color: var(--lg-ink); font: inherit; font-size: .9rem; }
.lg-field textarea { min-height: 95px; resize: vertical; }
.lg-field select option { background: #1a1812; }
.lg-field input:focus, .lg-field select:focus, .lg-field textarea:focus { outline: none; border-color: var(--lg-line-gold); }
.lg-count { text-align: right; font-size: .7rem; color: var(--lg-low); margin-top: 4px; }
.lg-switch { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--lg-line); cursor: pointer; }
.lg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lg-switch .lg-sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.18); flex: none; transition: background .15s; }
.lg-switch .lg-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lg-switch input:checked + .lg-sw { background: var(--lg-gold-2); }
.lg-switch input:checked + .lg-sw::after { transform: translateX(18px); }
.lg-switch input:focus-visible + .lg-sw { outline: 2px solid var(--lg-gold); outline-offset: 2px; }
.lg-switch b { display: block; font-size: .88rem; }
.lg-switch small { color: var(--lg-low); font-size: .76rem; line-height: 1.4; }

.lg-steps { display: flex; flex-direction: column; gap: 10px; padding: 8px 2px; }
.lg-step { display: flex; align-items: center; gap: 10px; color: var(--lg-low); font-size: .9rem; }
.lg-step i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; font-style: normal; font-size: .7rem; }
.lg-step.on { color: var(--lg-ink); }
.lg-step.on i { border-color: var(--lg-gold); border-top-color: transparent; animation: lg-spin .8s linear infinite; }
.lg-step.ok { color: var(--lg-ok); }
.lg-step.ok i { background: var(--lg-ok); border-color: var(--lg-ok); color: #052; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-done { text-align: center; padding: 10px 0; }
.lg-done img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.lg-done h3 { margin: 14px 0 4px; }
.lg-done p { color: var(--lg-mid); font-size: .88rem; margin: 0 0 14px; }

/* menus and the report form */
.lg-menu { display: flex; flex-direction: column; }
.lg-menu button, .lg-menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--lg-line);
  background: transparent; color: var(--lg-ink); font-weight: 600; font-size: .92rem; cursor: pointer; text-align: left; text-decoration: none; }
.lg-menu button:last-child, .lg-menu a:last-child { border-bottom: 0; }
.lg-menu .danger { color: var(--lg-red); }
.lg-menu svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.lg-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lg-reasons label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--lg-line); cursor: pointer; font-size: .88rem; }
.lg-reasons input { accent-color: var(--lg-gold); }
.lg-reasons label:has(input:checked) { border-color: var(--lg-line-gold); background: var(--lg-gold-soft); }

/* toast */
.lg-toast { position: fixed; left: 50%; bottom: calc(var(--il-bottom-h, 70px) + 18px); transform: translateX(-50%); z-index: 99500;
  max-width: min(92vw, 460px); padding: 11px 16px; border-radius: 14px; background: #1d1a12; border: 1px solid var(--lg-line-gold);
  color: var(--lg-ink); font-size: .86rem; line-height: 1.45; box-shadow: 0 12px 40px rgba(0,0,0,.5); text-align: center; }

/* ══ FIRE, HOT RIGHT NOW, CITY BATTLE (2026-10-15) ═════════════════════
   Owner: "more modern trending with fire … show residence city for
   competition". Flames are drawn SVG (liongram.js flame()), never the
   emoji. Every motion stops under prefers-reduced-motion. */
.lg-flame { display: block; filter: drop-shadow(0 0 3px rgba(255,106,26,.55)); transform-origin: 50% 90%; }
@keyframes lgFlicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.08, .96) rotate(-3deg); }
  60% { transform: scale(.96, 1.06) rotate(2deg); }
}
.lg-tile-fire { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 1px; padding: 4px 6px; border-radius: 999px;
  background: rgba(10,6,2,.62); border: 1px solid rgba(255,140,40,.35); }
.lg-tile-fire, .lg-tile.is-hot .lg-tile-likes, .lg-tile.is-hot .lg-tile-rank { z-index: 2; }
.lg-tile-fire .lg-flame { animation: lgFlicker 1.6s ease-in-out infinite; }
.lg-tile-fire .lg-flame:nth-child(2) { animation-delay: .25s; }
.lg-tile-fire .lg-flame:nth-child(3) { animation-delay: .5s; }
.lg-tile.is-hot { box-shadow: inset 0 0 0 1.5px rgba(255,120,40,.55); }
.lg-tile.is-hot::after { content: ''; position: absolute; z-index: 1; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(255,90,20,.22), transparent); }

.lg-trend-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--lg-mid); font-size: .88rem; }
.lg-trend-h b { color: #ffb070; }

.lg-hot { margin: 0 0 14px; }
.lg-hot-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; }
.lg-hot-h b { color: #ffb070; font-size: .98rem; letter-spacing: .02em; }
.lg-hot-h span { color: var(--lg-low); font-size: .8rem; }
.lg-hot-h .lg-flame { animation: lgFlicker 1.6s ease-in-out infinite; }
.lg-hot-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.lg-hot-row::-webkit-scrollbar { display: none; }
.lg-hot-card { position: relative; flex: 0 0 auto; width: 118px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; padding: 0;
  border: 1.5px solid rgba(255,120,40,.6); background: var(--lg-card); cursor: pointer; scroll-snap-align: start;
  box-shadow: 0 6px 22px rgba(255,90,20,.18); }
.lg-hot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-hot-fire { position: absolute; left: 6px; top: 6px; display: inline-flex; gap: 1px; padding: 3px 5px; border-radius: 999px; background: rgba(10,6,2,.6); }
.lg-hot-fire .lg-flame { animation: lgFlicker 1.6s ease-in-out infinite; }
.lg-hot-who { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 7px 6px; font-size: .72rem; font-weight: 700; color: #fff;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
@media (min-width: 768px) { .lg-hot-card { width: 150px; } }

.lg-city { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.lg-city-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--lg-radius);
  background: linear-gradient(135deg, rgba(217,185,72,.14), rgba(255,106,26,.08)); border: 1px solid var(--lg-line-gold); color: var(--lg-gold); }
/* !important: il-design.css sizes every phone h2 with !important. */
.lg-city-head h2 { margin: 0 0 4px; font-size: 1.06rem !important; line-height: 1.3 !important; color: var(--lg-ink); }
.lg-city-head p { margin: 0; color: var(--lg-mid); font-size: .86rem; line-height: 1.5; }
.lg-city-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--lg-radius); background: var(--lg-card); border: 1px solid var(--lg-line); }
.lg-city-row.is-mine { border-color: var(--lg-gold); box-shadow: 0 0 0 1px var(--lg-gold-soft); }
.lg-city-rank { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 800;
  background: var(--lg-card-2); color: var(--lg-mid); border: 1px solid var(--lg-line); }
.lg-city-row.top1 .lg-city-rank { background: linear-gradient(145deg, #f5d97a, #b8902a); color: #1a1405; border: none; }
.lg-city-row.top2 .lg-city-rank { background: linear-gradient(145deg, #e8e8ec, #9a9aa3); color: #16161a; border: none; }
.lg-city-row.top3 .lg-city-rank { background: linear-gradient(145deg, #e3a77a, #9a5a2c); color: #1a0e05; border: none; }
.lg-city-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-city-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lg-city-name b { color: var(--lg-ink); font-size: 1rem; }
.lg-city-name small { color: var(--lg-low); font-size: .78rem; }
.lg-city-name em { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1a1405; background: var(--lg-gold); padding: 2px 7px; border-radius: 999px; }
.lg-city-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.lg-city-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6a1a, var(--lg-gold)); transition: width .8s var(--lg-ease); }
.lg-city-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--lg-mid); font-size: .78rem; flex-wrap: wrap; }
.lg-city-meta svg { color: var(--lg-red); }
.lg-city-top { flex: 0 0 auto; width: 56px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; padding: 0; border: 1px solid var(--lg-line-gold); background: var(--lg-card-2); cursor: pointer; }
.lg-city-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-city-empty { padding: 26px 16px; text-align: center; color: var(--lg-mid); border-radius: var(--lg-radius); background: var(--lg-card); border: 1px dashed var(--lg-line-gold); }
.lg-city-call { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--lg-radius); color: var(--lg-mid);
  background: var(--lg-card); border: 1px dashed var(--lg-line-gold); font-size: .86rem; }
.lg-city-call b { color: var(--lg-gold); }
.lg-city-note { margin: 2px 4px 0; color: var(--lg-low); font-size: .76rem; line-height: 1.5; }

.lg-v-home, .lg-gal-home { display: inline-flex; align-items: center; gap: 5px; color: var(--lg-mid); }
.lg-v-home b, .lg-gal-home b { color: var(--lg-ink); }
.lg-gal-home { margin: 2px 0 6px; font-size: .85rem; flex-wrap: wrap; }
.lg-gal-home a { color: var(--lg-gold); text-decoration: none; font-weight: 700; margin-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  .lg-tile-fire .lg-flame, .lg-hot-h .lg-flame, .lg-hot-fire .lg-flame { animation: none; }
  .lg-city-bar i { transition: none; }
}
