/* CodexKR APK Store v2 shared visual layer. */
:root {
  --ckr-v2-night: #031a37;
  --ckr-v2-night-2: #06102d;
  --ckr-v2-cyan: #06c9c0;
  --ckr-v2-purple: #6a42e8;
  --ckr-v2-border: #dce7f1;
  --ckr-v2-shadow: 0 14px 42px rgba(12, 35, 69, .09);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
.entry-content, .ckr-page-content, .ckr-content-card { min-width: 0; overflow-wrap: anywhere; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content pre, .entry-content code { white-space: pre-wrap; overflow-wrap: anywhere; }

.ckr-v2-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  margin: 0 0 34px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(103, 54, 238, .76), transparent 30%),
    radial-gradient(circle at 58% 32%, rgba(0, 206, 195, .38), transparent 28%),
    linear-gradient(115deg, #021833 0%, #052c49 52%, #170b51 100%);
}
.ckr-v2-page-hero::before,
.ckr-v2-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
}
.ckr-v2-page-hero::before { right: 13%; top: -95px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.ckr-v2-page-hero::after { left: -130px; bottom: -210px; box-shadow: 0 0 70px rgba(0,225,216,.4); }
.ckr-v2-page-hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  align-items: center;
  gap: 38px;
}
.ckr-v2-page-hero-copy { position: relative; z-index: 2; max-width: 720px; padding: 54px 0; }
.ckr-v2-page-hero .ckr-eyebrow { color: #31e5db; letter-spacing: .12em; font-weight: 800; }
.ckr-v2-page-hero h1 { max-width: 780px; margin: 8px 0 13px; color: #fff; font-size: clamp(2.25rem, 4vw, 4.3rem); line-height: .98; letter-spacing: -.045em; }
.ckr-v2-page-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.04rem; line-height: 1.75; }
.ckr-v2-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.ckr-v2-hero-points span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(4,22,51,.52); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 700; }
.ckr-v2-hero-points svg { width: 17px; height: 17px; color: #30dfd5; }
.ckr-v2-page-presenter { align-self: end; justify-self: center; height: 330px; margin: 0; pointer-events: none; }
.ckr-v2-page-presenter img { display: block; width: auto; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)); }

.ckr-category-hero {
  min-height: 350px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(104,61,232,.72), transparent 32%),
    radial-gradient(circle at 61% 30%, rgba(0,205,196,.32), transparent 28%),
    linear-gradient(115deg, #031831, #05304c 54%, #170b4d) !important;
}
.ckr-category-hero-grid { min-height: 350px; align-items: center; }
.ckr-category-hero h1, .ckr-category-hero .ckr-eyebrow { color: #fff; }
.ckr-category-hero p { color: rgba(255,255,255,.8); }
.ckr-category-art { align-self: end; height: 330px; overflow: hidden; }
.ckr-category-art img,
.ckr-category-art .ckr-category-mascot { width: auto !important; max-width: 390px !important; height: 100% !important; object-fit: contain !important; object-position: bottom center !important; margin-inline: auto; filter: drop-shadow(0 20px 26px rgba(0,0,0,.28)); }
.ckr-category-benefit { border-color: rgba(255,255,255,.16) !important; color: #fff; background: rgba(3,24,55,.46) !important; }
.ckr-category-benefit small { color: rgba(255,255,255,.68); }

.ckr-content-card, .ckr-game-card, .ckr-category-trust, .ckr-empty { border: 1px solid var(--ckr-v2-border); box-shadow: var(--ckr-v2-shadow); }
.ckr-search-page { padding-block: 38px 64px; }
.ckr-search-page > h1 { margin-top: 0; }
.ckr-topic-page .ckr-page-content { margin-top: 28px; }
.ckr-page-content .entry-content { font-size: 1rem; line-height: 1.8; }
.ckr-page-content .entry-content h2 { margin-top: 1.65em; }
.ckr-hindi-guide { margin-top: 32px; padding: 24px; border: 1px solid #dbeeea; border-radius: 16px; background: #f2fffc; }

/* Permanent Telegram creator card. The markup is emitted after the footer, so
 * it must be positioned here rather than relying on normal document flow. */
.ckr-floating-creator {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  width: min(310px, calc(100vw - 32px));
  min-height: 118px;
  padding: 12px 13px 12px 112px;
  overflow: visible;
  border: 1px solid rgba(46, 226, 215, .42);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(3, 24, 55, .97), rgba(10, 73, 102, .97));
  box-shadow: 0 18px 46px rgba(1, 15, 39, .32), inset 0 1px 0 rgba(255,255,255,.10);
  color: #fff;
  isolation: isolate;
}
.ckr-floating-creator.ckr-position-left {
  right: auto;
  left: max(16px, env(safe-area-inset-left));
}
.ckr-floating-creator > img {
  position: absolute;
  z-index: 1;
  left: -6px;
  bottom: 0;
  width: 116px;
  height: 142px;
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.28));
}
.ckr-floating-creator.ckr-position-left > img { left: auto; right: -6px; }
.ckr-floating-creator.ckr-position-left { padding-right: 112px; padding-left: 13px; }
.ckr-creator-copy { position: relative; z-index: 2; display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.ckr-creator-copy strong { color: #fff; font-size: 15px; line-height: 1.2; }
.ckr-creator-copy p { margin: 0; color: rgba(231, 246, 255, .78); font-size: 10px; line-height: 1.45; }
.ckr-creator-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 33px;
  margin-top: 2px;
  padding: 0 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, #19cfc3, #079e95);
  box-shadow: 0 8px 18px rgba(2, 183, 173, .22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.ckr-creator-copy a .ckr-icon { width: 15px; height: 15px; }

@media (min-width: 681px) {
  .ckr-floating-creator.ckr-hide-desktop { display: none !important; }
}

@media (max-width: 800px) {
  .ckr-v2-page-hero { min-height: 300px; margin-bottom: 22px; }
  .ckr-v2-page-hero-inner { grid-template-columns: minmax(0, 1fr) 145px; gap: 8px; }
  .ckr-v2-page-hero-copy { padding: 35px 0 32px; }
  .ckr-v2-page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .ckr-v2-page-hero p { font-size: .9rem; line-height: 1.58; }
  .ckr-v2-page-presenter { height: 250px; margin-right: -28px; }
  .ckr-v2-hero-points span { padding: 7px 9px; font-size: .72rem; }
  .ckr-category-hero, .ckr-category-hero-grid { min-height: 315px; }
  .ckr-category-hero-grid { grid-template-columns: minmax(0, 1fr) 135px !important; gap: 4px !important; }
  .ckr-category-art { height: 265px; margin-right: -25px; }
  .ckr-category-art img, .ckr-category-art .ckr-category-mascot { max-width: 210px !important; }
}

@media (max-width: 520px) {
  .ckr-v2-page-hero-inner { grid-template-columns: minmax(0, 1fr) 105px; }
  .ckr-v2-page-presenter { height: 205px; margin-right: -36px; }
  .ckr-v2-page-hero-copy { padding: 29px 0; }
  .ckr-v2-page-hero h1 { max-width: 270px; }
  .ckr-v2-page-hero p { max-width: 260px; }
  .ckr-v2-hero-points { gap: 6px; margin-top: 15px; }
  .ckr-v2-hero-points span:nth-child(3) { display: none; }
  .ckr-category-hero-grid { grid-template-columns: minmax(0, 1fr) 105px !important; }
  .ckr-category-art { height: 220px; margin-right: -35px; }
  .ckr-category-benefits { gap: 5px; }
  .ckr-category-benefit { padding: 8px !important; }
  .ckr-category-benefit small { display: none; }
}

@media (max-width: 680px) {
  .ckr-floating-creator {
    right: max(7px, env(safe-area-inset-right));
    bottom: max(68px, env(safe-area-inset-bottom));
    display: grid;
    justify-items: center;
    width: 74px;
    min-height: 132px;
    padding: 5px;
    border-radius: 28px;
  }
  .ckr-floating-creator.ckr-position-left {
    right: auto;
    left: max(7px, env(safe-area-inset-left));
    padding: 5px;
  }
  .ckr-floating-creator > img { position: static; width: 58px; height: 70px; }
  .ckr-floating-creator.ckr-position-left > img { position: static; }
  .ckr-creator-copy { justify-items: center; gap: 3px; text-align: center; }
  .ckr-creator-copy strong { max-width: 62px; font-size: 8px; }
  .ckr-creator-copy p { display: none; }
  .ckr-creator-copy a { min-height: 29px; padding: 5px 7px; border-radius: 999px; font-size: 7px; }
  .ckr-creator-copy a .ckr-icon { width: 11px; height: 11px; }
  .ckr-floating-creator.ckr-hide-mobile { display: none !important; }
}

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