/* kids costume page: builds on ../wedding/wedding.css (glass card, groups, download bar) */
.kd-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.kd-preview { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kd-frame { position: relative; width: 100%; aspect-ratio: 1344 / 1800; border-radius: 26px; overflow: hidden; background: #d9d2f2; border: 6px solid #fff; box-shadow: 0 24px 50px rgba(30, 20, 90, .3); touch-action: none; cursor: grab; }
.kd-frame.drag { cursor: grabbing; }
.kd-frame canvas { display: block; width: 100%; height: 100%; }
.kd-hint { position: absolute; left: 50%; top: 24%; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: rgba(30, 24, 78, .7); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.kd-tip { font-size: 13px; color: var(--muted); text-align: center; max-width: 340px; }

.kd-costumes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cos { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 6px 9px; border-radius: 18px; cursor: pointer; border: 2.5px solid transparent; background: rgba(255, 255, 255, .75); font-weight: 700; font-size: 14px; transition: transform .2s, border-color .2s; }
.cos .ph, .kr .ph { position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden; }
.cos img, .kr img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: inherit; }
.cos:hover { transform: translateY(-3px); }
.cos.on { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 245, .2); }

/* premium (locked) costume: dimmed photo, a thin gold oval frame with a light running round it, a glass lock */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cos.lock .ph, .kr.lock .ph { padding: 2.5px; border: 0; border-radius: 50%; overflow: visible;
  background: conic-gradient(from var(--ga), #a8791f, #e9c66a 12%, #fff4c8 18%, #e9c66a 24%, #a8791f 40%, #d9b04f 62%, #a8791f 84%, #a8791f);
  box-shadow: 0 0 12px rgba(240, 196, 90, .45); animation: gold-run 3.6s linear infinite; }
.lock img { border-radius: 50%; filter: brightness(.6) saturate(.75); }
@keyframes gold-run { to { --ga: 360deg; } }
.lk { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 16px rgba(20, 10, 60, .35); }
.cos .lk { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lk svg { width: 50%; height: 50%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.cos.lock > span:last-child { color: #8a6416; }
.cos.lock:hover .lk { transform: scale(1.08); }
.lk { transition: transform .25s; }
@media (prefers-reduced-motion: reduce) { .cos.lock .ph, .kr.lock .ph { animation: none; } }

/* turning ring of costumes */
.kd-stage { position: relative; height: 360px; margin: 0 0 4px; perspective: 1100px; perspective-origin: 50% 30%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.kd-stage.dragging { cursor: grabbing; }
.kd-ring { position: absolute; left: 50%; top: 46%; width: 116px; height: 186px; margin: -93px 0 0 -58px; transform-style: preserve-3d; }
.kr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font: inherit; font-weight: 800; font-size: 14px; }
.kr .ph { border-radius: 16px; border: 2.5px solid rgba(255, 255, 255, .92); box-shadow: 0 16px 32px rgba(20, 10, 70, .35); background: #d9d2f2; }
.kr.on:not(.lock) .ph { border-color: #b9a6ff; box-shadow: 0 0 0 4px rgba(155, 123, 255, .55), 0 16px 32px rgba(20, 10, 70, .35); }
.kr b { color: var(--ink); white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.kr.lock b { color: #8a6416; }
.kd-ring-note { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin: -6px 0 18px; }
.plan-back[hidden] { display: none; }

/* animated upload box (after the «File Upload» reference): a folder that lifts its cards, a photo that flies in */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 20px; border-radius: 22px; cursor: pointer; text-align: center;
  border: 2px dashed rgba(124, 92, 245, .55); background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(240, 236, 255, .55)); transition: border-color .25s, background .25s, transform .25s; }
.drop:hover, .drop.over { border-color: var(--green); background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(232, 226, 255, .8)); }
.drop.over { transform: scale(1.02); }
.folder { position: relative; width: 120px; height: 96px; margin-bottom: 6px; }
.fback { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 62px; border-radius: 12px 12px 14px 14px; background: linear-gradient(180deg, #7d63ef, #6a4fe0); }
.fback::before { content: ""; position: absolute; top: -10px; right: 0; width: 44px; height: 16px; border-radius: 8px 8px 0 0; background: #7d63ef; }
.ffront { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #9a84ff, #7c5cf5); box-shadow: 0 10px 22px rgba(90, 63, 214, .35), inset 0 1px 0 rgba(255, 255, 255, .45); transform-origin: bottom center; transition: transform .35s cubic-bezier(.2, .8, .3, 1.3); z-index: 2; }
.ffront svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; padding: 3px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 8px; box-sizing: content-box; }
.fcard { position: absolute; bottom: 40px; width: 40px; height: 46px; display: grid; place-items: center; border-radius: 9px; background: #fff; box-shadow: 0 6px 14px rgba(60, 40, 140, .22); transition: transform .4s cubic-bezier(.2, .8, .3, 1.4); z-index: 1; }
.fcard svg { width: 22px; height: 22px; fill: none; stroke: #7c5cf5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c1 { left: 18px; transform: rotate(-14deg) translateY(6px); }
.c2 { left: 40px; transform: translateY(0); }
.c3 { right: 18px; transform: rotate(14deg) translateY(6px); }
.drop:hover .c1, .drop.over .c1 { transform: rotate(-20deg) translate(-6px, -16px); }
.drop:hover .c2, .drop.over .c2 { transform: translateY(-22px); }
.drop:hover .c3, .drop.over .c3 { transform: rotate(20deg) translate(6px, -16px); }
.drop.over .ffront { transform: perspective(300px) rotateX(-28deg); }
.fly { position: absolute; left: 50%; bottom: 40px; width: 54px; height: 64px; object-fit: cover; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 10px 22px rgba(60, 40, 140, .3); opacity: 0; translate: -50% 0; pointer-events: none; z-index: 1; }
.drop.busy .fly { animation: flyIn .9s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes flyIn { 0% { opacity: 0; transform: translateY(-90px) rotate(-10deg) scale(1.3); } 25% { opacity: 1; } 70% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } 100% { opacity: 0; transform: translateY(18px) scale(.8); } }
.drop-t { font-family: var(--head); font-size: 18px; font-weight: 800; color: var(--ink); }
.drop small { color: var(--muted); font-size: 13px; }
.drop small u { color: var(--green-d); font-weight: 700; }
.pick { margin-top: 8px; display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #9b6bff, #6d5cf6 50%, #4f8dff); box-shadow: 0 8px 20px rgba(124, 92, 245, .4); }
.bar { width: 70%; height: 6px; margin-top: 10px; border-radius: 999px; background: rgba(124, 92, 245, .15); overflow: hidden; opacity: 0; transition: opacity .2s; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9b6bff, #4f8dff); transition: width .8s ease; }
.drop.busy .bar, .drop.ready .bar { opacity: 1; }
.drop.busy .bar i, .drop.ready .bar i { width: 100%; }
.done { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: #2fbf71; color: #fff; font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .3, 1.5); }
.drop.ready .done { opacity: 1; transform: none; }

.kd-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sl input { width: 100%; accent-color: #7c5cf5; }
.kd-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kd-tools button { border: 1px solid rgba(255, 255, 255, .9); cursor: pointer; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .75); }
.kd-tools button[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2px #7c5cf5 inset; }
#fitGroup.off { opacity: .5; pointer-events: none; }
.dl[disabled] { filter: grayscale(.6); opacity: .7; cursor: not-allowed; }

@media (max-width: 820px) {
  .kd-grid { grid-template-columns: 1fr; gap: 18px; }
  .kd-preview { position: static; }
  .kd-frame { width: min(320px, 86vw); }
  .kd-sliders { grid-template-columns: 1fr; }
  .kd-stage { height: 290px; perspective: 800px; }
  .kd-ring { width: 84px; height: 140px; margin: -70px 0 0 -42px; }
  .kr { font-size: 12px; gap: 5px; }
  .kr .ph { border-radius: 12px; border-width: 2px; }
}

/* «نسخة واقعية» (Amer, 2026-12-02) */
.real-g.off { opacity: .5; pointer-events: none; }
.real-p { margin: -4px 0 12px; font-size: 14px; opacity: .8; }
.real-row { display: flex; flex-wrap: wrap; gap: 8px; }
.real-go { flex: 1 1 220px; height: 50px; border: 0; border-radius: 14px; cursor: pointer; font: 800 16px "IBM Plex Sans Arabic", system-ui, sans-serif; color: #fff;
  background: linear-gradient(120deg, var(--green, #7c5cf5), var(--lime, #b892ff)); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); position: relative; overflow: hidden; }
.real-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) 140% 0 / 260% 100% no-repeat; animation: real-shine 3s ease-in-out infinite; }
.real-go:disabled { cursor: progress; opacity: .8; }
.real-back { height: 50px; padding: 0 16px; border-radius: 14px; cursor: pointer; font: 700 14px "IBM Plex Sans Arabic", system-ui, sans-serif; background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .75; }
.real-note { display: block; margin-top: 10px; font-size: 12px; line-height: 1.6; opacity: .7; }
@keyframes real-shine { 0%, 40% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
/* while the picture is being made: a soft light sweeps over the preview */
/* light on phones: no repaint every frame (the old sweep moved a background, the eater moved «left» with a drop-shadow filter) */
.kd-load { position: absolute; inset: 0; display: none; place-items: center; z-index: 3; overflow: hidden; background: rgba(20, 10, 40, .42); }
.kd-load::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .22), transparent); will-change: transform; animation: kd-sweep 1.8s linear infinite; }
@keyframes kd-sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.kd-frame.thinking .kd-load { display: grid; }
.kd-lane { position: relative; width: 240px; height: 40px; direction: ltr; }
.kd-star { will-change: transform, opacity; position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; color: #ffd34d; font: 900 16px/1 system-ui, sans-serif; text-shadow: 0 0 8px rgba(255, 211, 77, .9); animation: 4s linear infinite; }
.kd-eat { position: absolute; top: 50%; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; animation: kd-walk 4s linear infinite; will-change: transform; }
.kd-eat i { position: absolute; left: 0; width: 36px; height: 18px; background: linear-gradient(135deg, #ffb15c, #ff6a00); }
.kd-eat .t { top: 0; border-radius: 18px 18px 0 0; transform-origin: 50% 100%; animation: kd-top .26s ease-in-out infinite alternate; }
.kd-eat .b { top: 18px; border-radius: 0 0 18px 18px; transform-origin: 50% 0; animation: kd-bot .26s ease-in-out infinite alternate; background: linear-gradient(315deg, #ff8a1e, #ff6a00); }
.kd-eat .t::after { content: ""; position: absolute; left: 11px; top: 5px; width: 7px; height: 8px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); } /* the play mark as its eye */
@keyframes kd-top { from { transform: rotate(0); } to { transform: rotate(-38deg); } }
@keyframes kd-bot { from { transform: rotate(0); } to { transform: rotate(38deg); } }
@keyframes kd-walk { 0% { transform: translateX(18px) scaleX(1); } 49.9% { transform: translateX(222px) scaleX(1); } 50% { transform: translateX(222px) scaleX(-1); } 100% { transform: translateX(18px) scaleX(-1); } }
@keyframes real-think { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .real-go::after, .kd-load::before, .kd-eat, .kd-eat i, .kd-star { animation-duration: 0s !important; } }

/* premium costume picked (Amer, 2026-12-02): a gold frame with a light running round the preview */
.kd-frame.pro { border-color: transparent;
  background: linear-gradient(#d9d2f2, #d9d2f2) padding-box, conic-gradient(from var(--ga), #a8791f, #e9c66a 12%, #fff4c8 18%, #e9c66a 24%, #a8791f 40%, #d9b04f 62%, #a8791f 84%, #a8791f) border-box;
  box-shadow: 0 0 0 1px rgba(240, 196, 90, .5), 0 0 26px rgba(240, 196, 90, .55), 0 24px 50px rgba(30, 20, 90, .3); animation: gold-run 3s linear infinite; }
@media (prefers-reduced-motion: reduce) { .kd-frame.pro { animation: none; } }

/* «NEW» on new costumes (Amer 2026-12-03): a small dark pill on the top of the photo, gold letters with a light sweeping across */
.ph .nw { position: absolute; left: 50%; top: 0; translate: -50% -45%; z-index: 3; padding: 3px 8px 2px; border-radius: 99px; line-height: 1;
  background: linear-gradient(180deg, #2a1d07, #120c02); border: 1px solid #d9b04f; box-shadow: 0 0 0 1px rgba(255, 236, 170, .18) inset, 0 2px 8px rgba(40, 25, 0, .35), 0 0 10px rgba(240, 196, 90, .45);
  animation: nw-glow 2.4s ease-in-out infinite; pointer-events: none; }
.ph .nw i { display: block; font: 800 10.5px/1 "Baloo Bhaijaan 2", system-ui, sans-serif; font-style: normal; letter-spacing: .16em; margin-inline-end: -.16em; direction: ltr;
  color: transparent; background: linear-gradient(100deg, #a8791f 0%, #e9c66a 28%, #fff7d6 42%, #e9c66a 56%, #a8791f 72%, #e9c66a 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; animation: nw-shine 2.4s linear infinite; }
@keyframes nw-shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes nw-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 236, 170, .18) inset, 0 2px 8px rgba(40, 25, 0, .35), 0 0 6px rgba(240, 196, 90, .3); } 50% { box-shadow: 0 0 0 1px rgba(255, 236, 170, .3) inset, 0 2px 8px rgba(40, 25, 0, .35), 0 0 14px rgba(240, 196, 90, .7); } }
@media (prefers-reduced-motion: reduce) { .ph .nw, .ph .nw i { animation: none; } }

/* ---------- extras (Amer 2026-12-03): tabs, places, brother/sister, occasion card, before/after ---------- */
/* tabs over the costumes: one pill row, the highlight glides (../glide.js) */
.kd-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: rgba(124, 92, 245, .08); border: 1.5px solid rgba(124, 92, 245, .12); }
.kd-tabs button { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 700 13.5px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--muted); position: relative; z-index: 1; transition: color .25s; white-space: nowrap; }
.kd-tabs button.on { color: #fff; }
.kd-tabs > .glider { background: var(--green); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }

/* places: four picture chips */
.kd-bgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bgc { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 5px 5px 7px; border-radius: 16px; border: 2.5px solid transparent; background: rgba(255, 255, 255, .75); cursor: pointer; font: 700 12.5px/1.2 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--ink); position: relative; z-index: 1; }
.bgc .ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; background: linear-gradient(160deg, #f1ecff, #d9cffb); }
.bgc .ph img { width: 100%; height: 100%; object-fit: cover; }
.bgc .ph em { font-style: normal; font-size: 26px; color: var(--green); }
.kd-bgs > .glider { z-index: 2; border: 2.5px solid var(--green); }

/* brother / sister */
.kd-twin-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; height: 48px; border-radius: 16px; border: 2px dashed rgba(124, 92, 245, .4); background: rgba(255, 255, 255, .6); cursor: pointer; font: 700 14.5px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--ink); transition: border-color .2s, transform .15s; }
.kd-twin-add[hidden] { display: none; }
.kd-twin-add:hover { border-color: var(--green); transform: translateY(-1px); }
.kd-twin { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; margin-top: 12px; padding: 12px; border-radius: 18px; background: rgba(124, 92, 245, .06); border: 1.5px solid rgba(124, 92, 245, .16); }
.kd-twin[hidden] { display: none; }
.kd-twin-drop { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed rgba(124, 92, 245, .45); background: rgba(255, 255, 255, .8); cursor: pointer; overflow: hidden; text-align: center; font: 700 12.5px/1.4 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--green-d, #5a3fd6); padding: 6px; }
.kd-twin-drop img { width: calc(100% + 12px); height: calc(100% + 12px); object-fit: cover; }
.kd-twin-side { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kd-twin-side > b { font-size: 13.5px; color: var(--ink); }
.kd-twin-side small { font-size: 12px; color: var(--muted); }
.kd-twin-cos { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.kd-tw { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .85); cursor: pointer; font: 700 10.5px/1.15 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--ink); text-align: center; }
.kd-tw img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 9px; }
.kd-tw.on { border-color: var(--green); background: #fff; }
.kd-twin-x { align-self: flex-start; border: 0; background: none; padding: 2px 0; cursor: pointer; font: 700 12.5px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: #c0392b; }

/* occasion card */
.g-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kd-occ { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-occ button { height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(124, 92, 245, .18); background: rgba(255, 255, 255, .8); cursor: pointer; font: 700 13px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--ink); position: relative; z-index: 1; transition: color .25s; }
.kd-occ button.on { color: #fff; border-color: transparent; background: transparent; }
.kd-occ > .glider { background: var(--green); }
.kd-name { margin-top: 10px; }
.kd-name.off { display: none; }

/* before / after over the preview */
.kd-ba { position: absolute; inset: 0; z-index: 6; --p: 50%; cursor: ew-resize; touch-action: none; border-radius: inherit; overflow: hidden; outline: 0; }
.kd-ba[hidden] { display: none; }
.kd-ba canvas { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green); font: 800 18px/1 system-ui, sans-serif; font-style: normal; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.ba-t { position: absolute; bottom: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(20, 12, 50, .55); color: #fff; font: 700 13px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; pointer-events: none; }
.ba-before { left: 12px; } .ba-after { right: 12px; }
.kd-ba:focus-visible .ba-line i { outline: 3px solid var(--green); outline-offset: 2px; }
.kd-ba-btn { position: absolute; z-index: 7; bottom: 12px; left: 50%; translate: -50% 0; height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; font: 800 13.5px/1 "IBM Plex Sans Arabic", system-ui, sans-serif; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.kd-ba-btn.on { background: var(--green); color: #fff; }
.kd-ba-btn[hidden] { display: none; }
.kd-ba:not([hidden]) ~ .kd-ba-btn { bottom: auto; top: 12px; }

/* night look */
html.night .kd-tabs { background: rgba(255, 255, 255, .05); border-color: rgba(196, 181, 253, .14); }
html.night .bgc, html.night .kd-tw, html.night .kd-occ button, html.night .kd-twin-add, html.night .kd-twin-drop { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: rgba(196, 181, 253, .2); }
html.night .kd-twin { background: rgba(255, 255, 255, .03); border-color: rgba(196, 181, 253, .16); }
html.night .kd-occ button.on, html.night .kd-tw.on { color: #fff; }
