/* ============================================================================
   r549 — BOARD SKIN: "CELESTIAL COURT"  (theme: Celestial Night)
   ----------------------------------------------------------------------------
   Design language: carved stone court. Ivory marble, gold hairline grid, arches
   at the corners, an orrery medallion in the middle and slow gold shimma
   drifting over the surface.
   Geometry is untouched: same 15×15 grid, same 52-cell loop, same bases,
   same pawns. Only the dressing changes.
   ========================================================================== */

html[data-cosmetic-board="celestial"] #screen-game .lkb-frame {
  padding: 11px;
  border-radius: 9px 35px 9px 35px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.55), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(120,86,30,.35), transparent 46%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.10) 0 1px, transparent 1px 9px),
    linear-gradient(150deg, #f2e9d6 0%, #ddcfae 34%, #c3ad83 62%, #a98f63 100%);
  box-shadow:
    inset 0 3px 5px rgba(255,255,255,.65),
    inset 0 -7px 16px rgba(84,58,20,.42),
    0 16px 38px rgba(24,16,4,.58),
    0 0 0 2px rgba(158,124,64,.55),
    0 0 0 5px rgba(60,42,14,.35);
}

/* double gold fillet + arch ornament in each corner */
html[data-cosmetic-board="celestial"] #screen-game .lkb-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 6px 30px 6px 30px;
  border: 2px solid rgba(150,112,44,.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,246,220,.65),
    inset 0 0 22px rgba(96,66,20,.28);
  /* r555 — কোণার গোল সোনালি ডট বাদ; এখন শুধু নরম কোনার আভা (কোনো বিন্দু নয়) */
  background:
    linear-gradient(135deg, rgba(214,172,88,.30), rgba(255,250,232,0) 34%),
    linear-gradient(315deg, rgba(214,172,88,.26), rgba(255,250,232,0) 34%);
  pointer-events: none;
  z-index: 3;
}

/* --- surface: warm marble ------------------------------------------------ */
html[data-cosmetic-board="celestial"] #screen-game .lkb-board {
  border-radius: 6px 28px 6px 28px;
  background:
    radial-gradient(ellipse at 24% 18%, rgba(255,253,244,.9), transparent 52%),
    radial-gradient(ellipse at 78% 84%, rgba(232,214,180,.55), transparent 58%),
    repeating-linear-gradient(104deg, rgba(150,116,58,.055) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(14deg, rgba(150,116,58,.04) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #fffdf6 0%, #f7f0dd 52%, #efe4c9 100%);
  box-shadow:
    inset 0 0 40px rgba(126,90,36,.20),
    inset 0 0 0 1px rgba(196,158,86,.5);
}

/* slow gold shimma across the marble */
html[data-cosmetic-board="celestial"] #screen-game .lkb-board::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(104deg,
    transparent 22%,
    rgba(255,238,186,.42) 40%,
    rgba(255,252,232,.62) 50%,
    rgba(255,238,186,.36) 60%,
    transparent 78%);
  background-size: 100% 100%;
  /* r554: আগে background-position অ্যানিমেট হতো — পুরো বোর্ড প্রতি ফ্রেমে
     রিপেইন্ট। এখন আলোর ব্যান্ডটা নিজেই transform/opacity-তে ভাসে
     (কম্পোজিটর-বান্ধব), চেহারা একই নরম শিমার। */
  animation: bc-shimma 11s ease-in-out infinite;
}

/* r550 — "ছোট বল এর মত" ধুলো-বিন্দু বাদ। এখন পাথরের ওপর একটা নরম,
   বড় আলোর আভা ধীরে ভাসে (কোনো গোল দাগ/বিন্দু নেই)। */
html[data-cosmetic-board="celestial"] #screen-game .lkb-board::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(168deg, rgba(255, 246, 214, .30), rgba(255, 246, 214, 0) 62%),
    linear-gradient(348deg, rgba(226, 190, 116, .14), rgba(226, 190, 116, 0) 48%);
  background-size: 100% 100%, 100% 100%;
  animation: bc-glow-drift 13s ease-in-out infinite;
  opacity: .75;
}

@keyframes bc-shimma {
  0%, 100% { transform: translate3d(-5%, 0, 0) scale(1.02); opacity: .42; }
  50%      { transform: translate3d(5%, 0, 0) scale(1.06); opacity: .88; }
}
/* r550 — বিন্দু-ভরা ঝিকিমিকি বাদ; এখন আলোর আভা ধীরে ভাসে */
@keyframes bc-glow-drift {
  0%, 100% { opacity: .55; transform: translate3d(0, 0, 0); }
  50%      { opacity: .9; transform: translate3d(0, -1.2%, 0); }
}

/* --- track cells: ivory with a gold hairline -----------------------------*/
html[data-cosmetic-board="celestial"] #screen-game .lkb-track-cell {
  background: linear-gradient(148deg, #fffefa 0%, #fbf5e6 70%, #f3e9d2 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    inset 0 0 0 1px rgba(184,146,74,.30),
    0 0 6px rgba(184,146,74,.06);
  border-radius: 2px;
}

/* --- bases: the hue stays (players must stay readable), the well goes stone */
html[data-cosmetic-board="celestial"] #screen-game .lkb-base {
  border-radius: 8px 20px 8px 20px;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,.5),
    inset 0 -3px 10px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,248,226,.5);
}
html[data-cosmetic-board="celestial"] #screen-game .lkb-base-inner {
  border-radius: 6px 14px 6px 14px;
  background:
    radial-gradient(circle at 30% 24%, #fffef8 0%, #fbf4e2 46%, #eee0c2 100%);
  box-shadow:
    0 4px 14px rgba(74,48,12,.35),
    0 0 0 1.5px rgba(160,122,54,.6),
    inset 0 2px 4px #ffffff,
    inset 0 -3px 7px rgba(120,88,32,.16);
}
/* pawn rings: keep the player's ring colour, only sharpen the stone socket */
html[data-cosmetic-board="celestial"] #screen-game .lkb-base .lkb-goti {
  background: radial-gradient(circle at 40% 34%, #fffdf3 0%, #f2e5c6 100%);
  box-shadow:
    inset 0 1px 3px rgba(92,60,16,.20),
    inset 0 0 0 1px rgba(255,255,255,.9),
    0 1px 2px rgba(255,255,255,.8),
    0 0 8px rgba(196,156,72,.22);
}

html[data-cosmetic-board="celestial"] #screen-game .lkb-pocket-mark {
  background: radial-gradient(circle at 35% 30%, #fff8dd, #c9a256 70%, #8f6a24);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(190,148,62,.6);
  opacity: .85;
}

/* --- centre: an orrery medallion ---------------------------------------- */
html[data-cosmetic-board="celestial"] #screen-game .lkb-crown {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fffdf2 0%, #f7e7b4 24%, #d9ae52 58%, #a67c26 82%, #7d5a12 100%);
  border: 2px solid rgba(255,248,214,.9);
  box-shadow:
    0 0 26px rgba(226,184,96,.85),
    0 0 58px rgba(186,138,48,.45),
    inset 0 -3px 7px rgba(96,66,14,.45),
    inset 0 2px 5px rgba(255,255,255,.85);
  animation: bc-orbit 18s linear infinite;
}
html[data-cosmetic-board="celestial"] #screen-game .lkb-crown::after {
  content: '✦';
  font-size: 13px;
  color: #fffce9;
  text-shadow: 0 0 7px rgba(255,214,110,.95), 0 1px 2px rgba(70,44,6,.55);
}
@keyframes bc-orbit {
  0% { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%,-50%) rotate(180deg) scale(1.06); }
  100% { transform: translate(-50%,-50%) rotate(360deg) scale(1); }
}

/* safe-star and arrow markers sit on carved gold, so cool them slightly */
html[data-cosmetic-board="celestial"] #screen-game .lkb-star-wrap {
  filter: drop-shadow(0 1px 2px rgba(120,86,24,.55));
}
html[data-cosmetic-board="celestial"] #screen-game .lkb-arrow-wrap {
  filter: drop-shadow(0 1px 2px rgba(60,40,8,.55)) drop-shadow(0 0 5px rgba(255,246,214,.7));
}

@media (prefers-reduced-motion: reduce) {
  html[data-cosmetic-board="celestial"] #screen-game .lkb-board::before,
  html[data-cosmetic-board="celestial"] #screen-game .lkb-board::after,
  html[data-cosmetic-board="celestial"] #screen-game .lkb-crown { animation: none; }
}
