:root {
  --bg: #0d0f13;
  --app: #111318;
  --panel: #171a20;
  --panel-2: #1d2027;
  --panel-3: #24282f;
  --border: #262a32;
  --border-soft: #1f232a;
  --text: #e9ebef;
  --muted: #8d939e;
  --dim: #5f6570;
  --lime: #b8f03a;
  --lime-2: #8fd11a;
  --yellow: #f3e600;
  --cyan: #3fe0f0;
  --danger: #ff5d6c;
  --radius: 14px;
  --radius-sm: 10px;
  --topbar-h: 92px;
  --sidebar-w: 236px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--app);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--lime); color: #111; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2e36; border-radius: 10px; border: 2px solid var(--app); }
::-webkit-scrollbar-thumb:hover { background: #363b45; }

.muted { color: var(--muted); }

/* ---------- Layout ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

/* ---------- Top bar ---------- */

.topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px 0 18px;
  background: rgba(17, 19, 24, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mascot {
  width: 76px;
  height: 76px;
  object-fit: cover;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
  transform: scale(1.35);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover .brand-mascot { transform: scale(1.45) rotate(-6deg); }

.brand-name {
  font-family: "Lilita One", "Inter", sans-serif;
  font-size: 44px;
  line-height: .95;
  letter-spacing: .5px;
  display: flex;
  align-items: flex-start;
}
.brand-name .slop {
  color: #fff;
  text-shadow: 0 3px 0 #0a0b0e;
}
.brand-name .ware {
  background: linear-gradient(180deg, #e2ff6a 0%, var(--lime) 45%, var(--lime-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #0a0b0e);
}
.brand-name sup { font-family: "Inter", sans-serif; font-size: 11px; color: #fff; margin: 4px 0 0 2px; }
.brand-tagline {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.search {
  position: relative;
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 44px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: #3a404b; background: #20242b; }
.search > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  max-height: 420px;
  overflow: auto;
}
.search-results.open { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}
.search-item:hover, .search-item.active { background: var(--panel-3); }
.search-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; }
.search-item img.grey { filter: grayscale(1) brightness(.8); }
.search-item strong { display: block; font-size: 14px; }
.search-item small { color: var(--muted); font-size: 12px; }
.search-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #c9cdd4;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--panel-2); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.bell-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--app);
}
.bell-dot.seen { display: none; }

.bell-wrap { position: relative; }
.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 330px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.notif-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.notif-head { display: flex; justify-content: space-between; padding: 8px 10px 10px; font-weight: 700; font-size: 14px; }
.notif-head .muted { font-weight: 500; font-size: 12px; }
.notif { display: flex; gap: 12px; padding: 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #cfd3da; }
.notif:hover { background: var(--panel-2); }
.notif small { display: block; color: var(--dim); margin-top: 3px; font-size: 11.5px; }
.notif-icon { width: 10px; height: 10px; border-radius: 50%; background: #3a3f49; margin-top: 5px; flex-shrink: 0; }
.notif-icon.lime { background: var(--lime); }
.notif-icon.spin-slow { background: none; width: 14px; height: 14px; margin-top: 3px; border: 2px solid #3a3f49; border-top-color: var(--yellow); animation: spin 1.4s linear infinite; }

.profile { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .2s; }
.profile:hover { background: var(--panel-2); }
.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: url("../assets/cp77-cover.jpg") 50% 62% / 240% no-repeat, #333;
  box-shadow: 0 0 0 2px #2a2e36;
}
.avatar .online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 2.5px var(--app);
}
.profile-name { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-initial { font-weight: 800; font-size: 15px; color: #10130a; }

.btn-signin.auth-pending { visibility: hidden; }
.btn-signin[hidden], .account[hidden] { display: none; }

.account { position: relative; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.account-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.account-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.account-head > div { min-width: 0; }
.account-head strong { display: block; font-size: 14px; }
.account-head small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu > a,
.account-menu > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: #cfd3da;
  text-align: left;
}
.account-menu > a:hover,
.account-menu > button:hover { background: var(--panel-2); color: #fff; }
.account-menu svg { width: 16px; height: 16px; }
.account-menu .danger { color: #ff8b96; }
.account-menu .danger:hover { color: var(--danger); }
.verify-note { margin: 0 4px 6px; padding: 9px 10px; border-radius: 9px; background: rgba(243, 230, 0, .08); border: 1px solid rgba(243, 230, 0, .25); color: #e9e2a0; font-size: 12.5px; }
.verify-note button { color: var(--yellow); font-weight: 700; text-decoration: underline; padding: 0; }

.account-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-row > div { min-width: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--lime); color: #0f1206; }
.btn-accent:hover { background: #c9ff52; box-shadow: 0 8px 30px -8px rgba(184, 240, 58, .55); }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--panel-3); }
.btn-ghost.on { color: var(--lime); border-color: rgba(184, 240, 58, .4); }
.btn-ghost.on svg { fill: currentColor; }
.btn-soon {
  background: repeating-linear-gradient(-45deg, #262a31 0 10px, #2b2f37 10px 20px);
  color: #9aa0aa;
  border: 1px solid #343944;
  cursor: not-allowed;
}
.btn-soon:hover { color: #c3c8d0; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  padding: 18px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  color: #b4b9c2;
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  transition: background .2s, color .2s;
}
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { background: var(--panel); color: #fff; }
.nav a.active { background: var(--panel-2); color: #fff; font-weight: 600; }
.nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
}

.promo-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 6px;
  overflow: hidden;
}
.promo-top { display: flex; justify-content: space-between; align-items: flex-start; }
.promo-card p { margin: 0; font-size: 13px; line-height: 1.45; color: #d6d9de; }
.heart { color: #8d939e; padding: 2px; transition: transform .2s, color .2s; }
.heart svg { width: 17px; height: 17px; }
.heart.on { color: var(--danger); transform: scale(1.15); }
.heart.on svg { fill: currentColor; }
.promo-card img { width: 100%; mix-blend-mode: lighten; margin-top: -4px; }

/* ---------- Main view ---------- */

.view {
  padding: 18px 28px 0 6px;
  min-width: 0;
  outline: none;
  animation: fadeUp .35s ease both;
}
.view.leaving { animation: none; opacity: 0; }

.section { margin-top: 36px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.2px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.link { color: var(--lime); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.link:hover { text-decoration: underline; }

.page-title { margin: 6px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.page-sub { margin: 0; color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #15130a;
  box-shadow: var(--shadow);
}
.hero-art {
  display: block;
  position: relative;
  aspect-ratio: 16 / 7.2;
  min-height: 300px;
  background: url("../assets/cp77-hero.jpg") 65% 30% / cover no-repeat;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 4, .85) 0%, rgba(10, 9, 4, .35) 45%, transparent 70%),
    linear-gradient(0deg, rgba(16, 17, 20, 1) 0%, rgba(16, 17, 20, .0) 40%);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pill-featured { background: rgba(20, 18, 8, .75); color: var(--yellow); border: 1px solid rgba(243, 230, 0, .45); }
.pill-soon { background: rgba(184, 240, 58, .12); color: var(--lime); border: 1px solid rgba(184, 240, 58, .35); }

.hero-content {
  position: absolute;
  z-index: 2;
  left: 32px;
  top: 24px;
  right: 40%;
}
.cp-logo {
  margin: 44px 0 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  line-height: .85;
  transform: skewX(-10deg) rotate(-4deg);
  transform-origin: left;
}
.cp-logo .word {
  display: block;
  font-size: clamp(42px, 6.4vw, 92px);
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgba(63, 224, 240, .55), -2px 0 0 rgba(255, 0, 90, .35);
  letter-spacing: 1px;
}
.cp-logo .num {
  display: block;
  margin: 6px 0 0 44%;
  font-size: clamp(36px, 5vw, 72px);
  color: var(--cyan);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .5), 0 0 24px rgba(63, 224, 240, .6);
  letter-spacing: 6px;
}
.hero-tagline {
  margin-top: 22px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: .9;
}

.hero-panel {
  position: relative;
  z-index: 3;
  margin: -96px 18px 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(23, 25, 31, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
}
.hero-panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.hero-panel p { margin: 0; color: #b9bec7; font-size: 13.5px; line-height: 1.55; }

.status-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 250px;
  padding: 14px 20px;
  background: var(--panel-3);
  border: 1px solid #30353e;
  border-radius: 12px;
}
.status-box strong { display: block; font-size: 11.5px; letter-spacing: 1.3px; text-transform: uppercase; color: #cfd3da; }
.status-box span { font-size: 12px; color: var(--muted); }
.spinner {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid #3a3f49;
  border-top-color: #cfd3da;
  animation: spin 1s linear infinite;
}

.hero-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 18px 18px;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat b.lime { color: var(--lime); }

/* ---------- Capsules (game cards) ---------- */

.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.row-scroll > * { scroll-snap-align: start; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.capsule {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.capsule:hover { transform: translateY(-4px); border-color: #343a45; box-shadow: var(--shadow); }
.capsule-art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0c0d10; }
.capsule-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.capsule:hover .capsule-art img { transform: scale(1.05); }

.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: rgba(12, 13, 16, .82);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(184, 240, 58, .3);
}

.is-grey .capsule-art img,
.is-grey.media-main img,
.is-grey .media-thumb img,
img.is-grey { filter: grayscale(1) brightness(.72) contrast(1.08); }
.is-grey:hover .capsule-art img { transform: none; }

.stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 8px 16px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.stamp.big { font-size: 30px; padding: 12px 26px; border-width: 4px; letter-spacing: 5px; }

.capsule-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.capsule-body h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.capsule-body .dev { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 8px; border-radius: 6px; background: var(--panel-3); color: #aeb3bc; font-size: 11px; font-weight: 600; }
.capsule-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.release { min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-soon { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: #cfd3da; background: var(--panel-3); padding: 5px 9px; border-radius: 7px; white-space: nowrap; }

/* ---------- Daily drops ---------- */

.daily {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 24px;
  padding: 26px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(184, 240, 58, .12), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.daily-intro h2 { margin: 12px 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.daily-intro h2 em { font-style: normal; color: var(--lime); }
.daily-intro p { margin: 0 0 18px; color: #b5bac3; font-size: 14px; line-height: 1.55; }
.countdown { display: flex; gap: 8px; margin-bottom: 18px; }
.countdown div {
  min-width: 62px;
  padding: 10px 6px 8px;
  text-align: center;
  background: var(--app);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.countdown b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-content: start; }
.drop {
  position: relative;
  padding: 14px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.drop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g, linear-gradient(135deg, #2a2e36, #1d2027));
  opacity: .35;
}
.drop > * { position: relative; }
.drop .when { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.drop .name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.drop .genre { margin-top: auto; font-size: 12px; color: #aab0b9; }
.drop.today { border-color: rgba(184, 240, 58, .55); box-shadow: 0 0 0 1px rgba(184, 240, 58, .25), 0 10px 30px -12px rgba(184, 240, 58, .35); }
.drop.today .when { color: var(--lime); }
.drop.locked .name { filter: blur(6px); user-select: none; }
.drop.locked .lock { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--muted); }

/* ---------- Client download block ---------- */

.client {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(17, 19, 24, .97) 35%, rgba(17, 19, 24, .6)),
    url("../assets/cp77-shot1.jpg") center / cover;
  border: 1px solid var(--border);
}
.client-left { display: flex; align-items: center; gap: 20px; }
.client-left img { width: 96px; height: 96px; object-fit: cover; mix-blend-mode: lighten; transform: scale(1.3); }
.client h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.client p { margin: 0; color: #b5bac3; font-size: 14px; max-width: 520px; line-height: 1.55; }
.client-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.os-btn svg { width: 18px; height: 18px; }
.os-btn small { font-weight: 600; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; opacity: .7; }

/* ---------- Store ---------- */

.store-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 22px; }
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #b4b9c2;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: #fff; background: var(--panel-2); }
.chip.active { background: var(--lime); color: #10130a; border-color: var(--lime); }
.select {
  height: 38px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed #2f343d;
  border-radius: 18px;
}
.empty img { width: 240px; margin: 0 auto 10px; mix-blend-mode: lighten; }
.empty h3 { margin: 0 0 6px; font-size: 20px; }
.empty p { margin: 0 auto 18px; color: var(--muted); max-width: 420px; line-height: 1.55; }

/* ---------- Game page ---------- */

.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.crumbs a:hover { color: #fff; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.game-title-row h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.6px; }

.game-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }

.media-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0c0f;
}
.media-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .35s ease; }
.media-main.portrait { background-size: cover; background-position: center; }
.media-main.portrait::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: inherit;
  filter: blur(28px) brightness(.45);
}
.media-main.portrait img { position: relative; object-fit: contain; }
.media-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.media-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
  padding: 0;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb:hover { opacity: 1; }
.media-thumb.active { border-color: var(--lime); opacity: 1; }

.game-side { display: flex; flex-direction: column; gap: 14px; }
.game-cover { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.game-side .blurb { margin: 0; color: #c3c8d0; font-size: 14px; line-height: 1.6; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.meta dt { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; font-weight: 700; padding-top: 2px; }
.meta dd { margin: 0; color: #dfe2e7; }
.meta dd a { color: var(--lime); }

.buy-box {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: linear-gradient(90deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 14px;
}
.buy-box h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.buy-box p { margin: 0; color: var(--muted); font-size: 13px; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 22px; }
.card {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.card + .card { margin-top: 16px; }
.card h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; color: #cfd3da; }
.card p { color: #b9bec7; font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; color: #b9bec7; font-size: 14px; line-height: 1.8; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reqs h4 { margin: 0 0 8px; font-size: 13px; color: #fff; }
.reqs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; color: #cfd3da; }

.review-empty { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.review-empty img { width: 70px; mix-blend-mode: lighten; }

.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #cfd3da; }
.feature svg { width: 17px; height: 17px; color: var(--lime); flex-shrink: 0; }

/* ---------- Community ---------- */

.feed { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 22px; }
.post { display: flex; gap: 14px; }
.post + .post { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: #111; }
.post-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.post-head strong { font-size: 14px; }
.post-head small { color: var(--dim); font-size: 12px; }
.post p { margin: 6px 0 8px; color: #c3c8d0; font-size: 14px; line-height: 1.55; }
.post-actions { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.post-actions button:hover { color: #fff; }
.post-actions button.on { color: var(--lime); }
.post-actions svg { width: 15px; height: 15px; }
.composer { display: flex; gap: 12px; margin-bottom: 18px; }
.composer input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.composer input:focus { border-color: #3a404b; }
.online-list { display: flex; flex-direction: column; gap: 12px; }
.friend { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.friend .post-avatar { width: 32px; height: 32px; font-size: 12px; position: relative; }
.friend small { display: block; color: var(--muted); font-size: 12px; }
.friend .status-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }

/* ---------- Settings ---------- */

.settings { max-width: 760px; margin-top: 22px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.setting + .setting { border-top: 1px solid var(--border-soft); }
.setting strong { display: block; font-size: 14.5px; font-weight: 600; }
.setting small { color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2d3139;
  transition: background .2s;
  cursor: pointer;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1);
}
.switch input:checked + span { background: var(--lime); }
.switch input:checked + span::after { transform: translateX(18px); background: #10130a; }
.switch input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 56px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img,
.client-left img,
.modal-body .mascot {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
}
.footer-brand img { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: lighten; transform: scale(1.3); }
.footer-brand b { font-family: "Lilita One", sans-serif; font-size: 22px; font-weight: 400; color: #fff; letter-spacing: .5px; }
.footer-brand b span { color: var(--lime); }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { margin: 0 0 4px; color: #cfd3da; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; color: var(--dim); font-size: 11.5px; line-height: 1.6; }

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .22s, transform .22s;
}
.modal.open { pointer-events: auto; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card.wide { width: min(1100px, 100%); background: transparent; border: 0; box-shadow: none; }
.modal-card.wide img { width: 100%; border-radius: 14px; border: 1px solid var(--border); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(12, 13, 16, .6);
  color: #cfd3da;
}
.modal-close:hover { background: var(--panel-3); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }
.modal-banner { position: relative; height: 170px; overflow: hidden; }
.modal-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.modal-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel), transparent 70%); }
.modal-body { padding: 4px 24px 24px; text-align: center; }
.modal-body .mascot { width: 110px; height: 110px; object-fit: cover; margin: 18px auto 0; mix-blend-mode: lighten; transform: scale(1.25); }
.modal-body h3 { margin: 8px 0 8px; font-size: 22px; font-weight: 800; }
.modal-body p { margin: 0 auto 18px; color: #b5bac3; font-size: 14px; line-height: 1.6; max-width: 380px; }
.fake-progress { margin: 0 0 18px; text-align: left; }
.fake-progress .bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.fake-progress .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, var(--lime-2) 10px 20px);
  background-size: 200% 100%;
  animation: stripes 1s linear infinite;
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}
.fake-progress .labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Auth ---------- */

.auth { padding: 6px 28px 24px; }
.auth.busy { cursor: progress; }
.auth.busy #authSubmit,
.auth.busy .btn-google { opacity: .6; }
.auth-head { text-align: center; }
.auth-head .mascot {
  width: 96px;
  height: 96px;
  object-fit: cover;
  margin: 16px auto 0;
  mix-blend-mode: lighten;
  transform: scale(1.25);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 92%);
}
.auth-head h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 800; }
.auth-head p { margin: 0 auto 18px; max-width: 340px; color: #b5bac3; font-size: 13.5px; line-height: 1.55; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--app); border: 1px solid var(--border); border-radius: 12px; }
.auth-tabs button { height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.auth-tabs button:hover { color: #fff; }
.auth-tabs button.active { background: var(--panel-3); color: #fff; }

.auth-notice { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(243, 230, 0, .07); border: 1px solid rgba(243, 230, 0, .25); color: #e9e2a0; font-size: 12.5px; line-height: 1.5; }
.auth-notice code { font-size: 12px; color: var(--yellow); }

.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f2f4f7; }
.btn-google .g-logo { width: 20px; height: 20px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.field { display: block; margin-bottom: 12px; text-align: left; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #cfd3da; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--app);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: rgba(184, 240, 58, .6); box-shadow: 0 0 0 3px rgba(184, 240, 58, .12); }
.auth[data-mode="signin"] .signup-only,
.auth[data-mode="signup"] .signin-only { display: none; }
.auth-link { padding: 0; color: var(--lime); font-size: 12px; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-msg { min-height: 0; margin: 2px 0 10px; color: #ff8b96; font-size: 13px; line-height: 1.45; text-align: left; }
.auth-msg:empty { display: none; }
.auth-msg.ok { color: var(--lime); }
.auth-fine { margin: 14px 0 0; color: var(--dim); font-size: 11.5px; text-align: center; }

.composer-locked { align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--panel-2); border: 1px dashed #343944; border-radius: 12px; color: #b5bac3; font-size: 14px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: #22262d;
  border: 1px solid #333843;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .2s, transform .25s;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animations ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stripes { to { background-position: -28px 0; } }

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

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .game-top, .game-body, .feed { grid-template-columns: 1fr; }
  .daily { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .btn-client span { display: none; }
  .btn-client { width: 42px; padding: 0; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 36px; }
  .client { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 72px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .search { min-width: 0; }
  .topbar { gap: 14px; padding: 0 14px 0 8px; }
  .brand-mascot { width: 56px; height: 56px; }
  .brand-name { font-size: 28px; }
  .profile-name { display: none; }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    height: auto;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(17, 19, 24, .95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-soft);
  }
  .promo-card { display: none; }
  .nav { flex-direction: row; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; height: 54px; padding: 0 6px; font-size: 11px; flex: 1; justify-content: center; }
  .nav a.active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .view { padding: 14px 14px 90px; }
  .hero-content { right: 20px; left: 20px; }
  .hero-panel { flex-direction: column; align-items: stretch; margin-top: -60px; }
  .status-box { min-width: 0; }
  .hero-shots { grid-template-columns: repeat(2, 1fr); }
  .reqs { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
  .search { height: 40px; }
  .bell-wrap { display: none; }
  .btn-signin span { display: none; }
  .btn-signin { width: 42px; padding: 0; }
  .account-menu { width: calc(100vw - 28px); right: -6px; }
  .hero-art { aspect-ratio: auto; min-height: 340px; background-position: 72% 30%; }
  .hero-tagline { letter-spacing: 2px; font-size: 11px; }
  .row-scroll { grid-auto-columns: 70%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .countdown div { min-width: 0; flex: 1; }
  .game-title-row h1 { font-size: 26px; }
  .notif-panel { width: calc(100vw - 28px); }
}
