﻿/* light-catalog — thin theme layer (states + a few components Tailwind can't express cleanly) */
:root {
  --lc-red: #a01b00;
  --lc-red-dark: #7a1400;
  --lc-title: #d10000;
  --lc-bonus: #ff0000;
  --lc-withdraw: #02af27;
  --lc-rank: #cecece;
  --lc-bg: #ebebeb;
  --lc-wrap: #ffffff;
  --download-gradient: linear-gradient(147deg, #ff9933 0%, #008000 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--lc-red);
  outline-offset: 2px;
}

.lc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Download CTA — orange→green like yonogamevip */
.lc-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  background-image: var(--download-gradient);
  white-space: nowrap;
}

.lc-dl:hover {
  opacity: 0.92;
}

.lc-dl:active {
  transform: scale(0.96);
}

.lc-dl--sm {
  min-height: 1.85rem;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  border-radius: 0.35rem;
}

.lc-dl--row {
  min-height: 2rem;
  min-width: 6.4rem;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  border-radius: 0.4rem;
  gap: 0.28rem;
}

.lc-dl--podium {
  display: flex;
  width: calc(100% - 0.5rem);
  max-width: 7rem;
  min-height: 1.7rem;
  margin-inline: auto;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  border-radius: 0.3rem;
  gap: 0.22rem;
}

.lc-dl--hero {
  min-height: 2.75rem;
  min-width: 9.5rem;
  padding: 0 1.15rem;
  font-size: 0.9rem;
  border-radius: 0.75rem;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.28);
}

.lc-dl--block {
  display: flex;
  width: 100%;
  max-width: 7.5rem;
  margin-inline: auto;
}

/* Game-style detail hero */
.lc-detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 15% 0%, #ff6a2a 0%, transparent 55%),
    radial-gradient(100% 70% at 90% 20%, #1b00a0 0%, transparent 50%),
    linear-gradient(155deg, #a01b00 0%, #7a1400 42%, #1b0038 100%);
}

.lc-detail-hero__glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgb(255 153 51 / 0.35), transparent 70%);
  pointer-events: none;
}

.lc-detail-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
}

/* Drawer */
.lc-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.lc-drawer.is-open {
  pointer-events: auto;
}

.lc-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lc-drawer.is-open .lc-drawer__backdrop {
  opacity: 1;
}

.lc-drawer__panel {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  width: min(750px, 100%);
  max-height: calc(100vh - 3.5rem);
  transform: translateX(-50%) translateY(-0.5rem);
  background: #f2fff7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: auto;
}

.lc-drawer.is-open .lc-drawer__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Tabs */
.lc-tab-panel {
  display: none;
}

.lc-tab-panel[hidden] {
  display: none !important;
}

.lc-tab-panel.is-active {
  display: block;
}

.lc-tab.is-active {
  background: #1b00a0;
  border-color: transparent;
  color: #fff;
}

.lc-tab--bar {
  background: transparent;
  border: 0;
  color: rgb(255 255 255 / 0.85);
}

.lc-tab--bar:hover {
  background: rgb(0 0 0 / 0.18);
  color: #fff;
}

.lc-tab--bar.is-active {
  background: rgb(0 0 0 / 0.28);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

/* Carousel */
.lc-carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lc-carousel__slide {
  min-width: 100%;
}

.lc-carousel__dot.is-active {
  background: var(--lc-red);
  width: 0.9rem;
}

/* Search results / modal */
.lc-search__results {
  display: none;
}

.lc-search__results.is-open {
  display: block;
}

.lc-modal {
  display: none;
}

.lc-modal.is-open {
  display: flex;
}

/* App detail download dock — dense card-like bar */
body.has-download-dock-page .lc-shell {
  padding-bottom: 7.25rem;
}

.lc-download-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  width: 100%;
  max-width: 750px;
  transform: translateX(-50%);
  background: #fff;
  border-top: 2px solid #a01b00;
  box-shadow: 0 -6px 20px rgb(0 0 0 / 0.14);
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
}

/* Reveal */
.lc-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lc-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Prose */
.lc-prose {
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.lc-prose h1,
.lc-prose h2,
.lc-prose h3,
.lc-prose h4 {
  font-weight: 700;
  color: #00070e;
  line-height: 1.25;
  margin: 1.2em 0 0.5em;
}

.lc-prose p,
.lc-prose ul,
.lc-prose ol {
  margin: 0 0 1em;
}

.lc-prose a {
  color: #1b4789;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lc-prose img {
  border-radius: 0.5rem;
  margin: 1em 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lc-reveal,
  .lc-carousel__track,
  .lc-drawer__panel,
  .lc-drawer__backdrop {
    transition: none !important;
  }

  .lc-reveal {
    opacity: 1;
    transform: none;
  }
}
