/* ============================================================
   KİM? KİMİNLE? NEREDE? — İsim Şehir Hayvan stillerinin üstüne
   sadece bu oyuna özel parçalar (kâğıt, katlama, açılış, final).
   ============================================================ */

/* soru simgeleri (emoji) */
.kk-qi { font-style: normal; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; font-size: 15px; line-height: 1; }
.ns-sc .kk-qi, .ns-inv-cats .kk-qi { font-size: 16px; }
.ns-hero-r span .kk-qi { font-size: 18px; }
.kk-by { font-style: normal; grid-row: 1 / 3; grid-column: 3; font-size: 11px; color: var(--ink-faint); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }

/* oyun içi üst şerit: soru adımları */
.kk-steps { display: inline-flex; gap: 4px; }
.kk-steps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.1); opacity: 0.5; transition: all 0.25s; }
.kk-steps i.on { opacity: 1; background: rgba(74, 191, 140, 0.18); border-color: rgba(74, 191, 140, 0.6); }
.kk-steps i.cur { opacity: 1; transform: scale(1.18); background: rgba(255, 204, 51, 0.2); border-color: #ffcc33; box-shadow: 0 0 12px rgba(255, 204, 51, 0.45); }
.ns-bar.off { opacity: 0; }

/* ---------- kâğıt ---------- */
.kk-from { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 10px; font-size: 14px; color: var(--ink-dim); text-align: center; animation: ns-pk-in 0.4s both; }
.kk-paper { --paper: #fffaf0; --lineC: rgba(80, 120, 200, 0.18); position: relative; width: 100%; max-width: 560px; box-sizing: border-box; margin: 0 auto; padding: 18px 22px 18px 52px; border-radius: 6px 6px 16px 16px;
  color: #2b2140; background: linear-gradient(90deg, transparent 38px, rgba(229, 72, 77, 0.35) 38px, rgba(229, 72, 77, 0.35) 40px, transparent 40px), var(--paper);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); transform: rotate(var(--tilt, -1deg)); animation: kk-arrive 0.6s cubic-bezier(.34, 1.56, .64, 1) both; transition: transform 0.3s; }
.kk-paper::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgba(255, 224, 138, 0.7); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }   /* bant */
@keyframes kk-arrive { from { opacity: 0; transform: translateX(-60px) rotate(-12deg) scale(0.9); } }
.kk-paper.folding { animation: kk-fold 0.7s cubic-bezier(.6, 0, .4, 1) both; }
@keyframes kk-fold { 0% { transform: rotate(var(--tilt)); } 45% { transform: perspective(700px) rotateX(55deg) scaleY(0.6); } 100% { transform: perspective(700px) rotateX(0) translateX(70px) rotate(6deg) scale(0.92); opacity: 0.55; } }
.kk-paper.locked { opacity: 0.85; }
/* üstteki katlanmış satırlar */
.kk-folds { display: flex; flex-direction: column; gap: 3px; margin: -4px 0 12px -30px; }
.kk-folds:empty { display: none; }
.kk-fold { position: relative; height: 14px; border-radius: 3px; display: flex; align-items: center; padding-left: 8px; font-style: normal;
  background: linear-gradient(180deg, #efe4c8, #e2d4b0); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 2px 3px rgba(0, 0, 0, 0.12); animation: kk-foldin 0.4s both; animation-delay: calc(var(--i) * 0.06s); }
.kk-fold span { font-size: 10px; opacity: 0.6; filter: grayscale(0.6); }
@keyframes kk-foldin { from { transform: scaleY(0); opacity: 0; } }
.kk-folds small { margin: 4px 0 0 2px; font-size: 11.5px; color: #8a7a5a; }
.kk-q { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kk-qe { font-size: 34px; line-height: 1; animation: ns-card-bob 3s ease-in-out infinite; }
.kk-q b { font: 700 30px/1.1 "Fredoka", sans-serif; color: #4a2fa0; }
.kk-line { display: flex; gap: 8px; align-items: center; }
.kk-line input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; box-sizing: border-box; border: 0; border-bottom: 3px dashed #8b5cf6; border-radius: 10px 10px 4px 4px;
  background: rgba(139, 92, 246, 0.07); color: #1e1533; font: 600 21px/1 "Fredoka", sans-serif; outline: none; transition: background 0.2s, border-color 0.2s; }
.kk-line input::placeholder { color: #a99cc4; font-weight: 500; font-size: 16px; }
.kk-line input:focus { background: rgba(139, 92, 246, 0.12); border-bottom-style: solid; }
.kk-dice { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; font-size: 22px; background: linear-gradient(180deg, #ffe08a, #f5b81f); box-shadow: 0 4px 0 #b8760c; transition: transform 0.15s; }
.kk-dice:hover { transform: translateY(-2px) rotate(-8deg); }
.kk-dice.roll { animation: kk-roll 0.5s ease; }
@keyframes kk-roll { 50% { transform: rotate(200deg) scale(1.15); } }
.kk-tip { margin: 10px 0 0; font-size: 12.5px; color: #8a7a9a; }
.kk-fold-btn { margin: 20px auto 0; display: flex; }
.kk-fold-btn.off { filter: saturate(0.5) brightness(0.85); }
.ns-status .kk-wn { width: 100%; text-align: center; font: 600 13px "Fredoka", sans-serif; color: var(--ink-dim); }
.kk-watch { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 30px auto; text-align: center; }
.kk-watch img { width: 110px; animation: ns-pk-think 2.6s ease-in-out infinite; }
.kk-watch b { font: 600 20px "Fredoka", sans-serif; }
.kk-watch small { max-width: 340px; color: var(--ink-dim); }

/* ---------- açılış ---------- */
.kk-rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.kk-rdots { display: flex; gap: 5px; }
.kk-rdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.kk-rdots i.on { background: #4abf8c; } .kk-rdots i.cur { background: #ffcc33; box-shadow: 0 0 8px #ffcc33; }
.kk-open { margin-top: 18px; padding-top: 14px; animation: kk-unfold 0.8s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes kk-unfold { from { opacity: 0; transform: perspective(800px) rotateX(-75deg) scaleY(0.3); transform-origin: 50% 0; } }
.kk-ptitle { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kk-ptitle b { font: 700 20px "Fredoka", sans-serif; color: #4a2fa0; }
.kk-ptitle small { font-size: 12.5px; color: #8a7a9a; }
.kk-rlines { display: flex; flex-direction: column; gap: 6px; }
.kk-rl { display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.35s, transform 0.45s cubic-bezier(.34, 1.56, .64, 1), background 0.4s; }
.kk-rl.show { opacity: 1; transform: none; background: color-mix(in srgb, var(--c) 10%, transparent); }
.kk-rl.show:last-child { animation: kk-pop 0.6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes kk-pop { 40% { transform: scale(1.05) rotate(-1deg); } }
.kk-rq { grid-row: 1 / 3; display: flex; align-items: center; gap: 5px; font-size: 18px; }
.kk-rq small { font: 600 11px/1.15 "Fredoka", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; color: #8a7a9a; }
.kk-ra { font: 700 21px/1.2 "Fredoka", sans-serif; color: #1e1533; overflow-wrap: anywhere; }
.kk-ra i { font-weight: 500; font-size: 15px; color: #a99cc4; }
.kk-rw { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8a7a9a; }
.kk-rw .ns-av { --s: 18px !important; }
.kk-rl.said .kk-ra { position: relative; justify-self: start; padding: 6px 12px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); color: #4a2fa0; }
.kk-end { margin-top: 10px; text-align: center; font: 600 13px "Fredoka", sans-serif; letter-spacing: 0.25em; color: #b8a8d8; opacity: 0; transition: opacity 0.5s 0.4s; }
.kk-end.show { opacity: 1; }
.kk-ract { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.kk-ract .ns-actions { margin: 0; }
.kk-laugh { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border: 0; border-radius: 18px; cursor: pointer; font: 700 18px "Fredoka", sans-serif; color: #3a2400;
  background: linear-gradient(180deg, #ffe08a, #ffc53d 55%, #f0a516); box-shadow: 0 6px 0 #b8760c, 0 10px 22px rgba(245, 184, 31, 0.35); transition: transform 0.12s; }
.kk-laugh:hover { transform: translateY(-2px) rotate(-2deg); }
.kk-laugh:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8760c; }
.kk-laugh.ready { animation: ns-join-pulse 1.6s ease-in-out infinite; }
.kk-laugh.pop { animation: kk-pop 0.35s ease; }
.kk-laugh b { min-width: 22px; padding: 2px 7px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, 0.6); }
.kk-laugh b:empty { display: none; }
.kk-fly { position: fixed; z-index: 3000; font-style: normal; font-size: 26px; pointer-events: none; animation: kk-fly 1.2s ease-out both; }
@keyframes kk-fly { to { transform: translateY(-140px) rotate(25deg) scale(1.4); opacity: 0; } }
#kk-next:disabled { opacity: 0.5; cursor: default; }

/* ---------- final ---------- */
.kk-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; width: 100%; margin: 14px 0 6px; }
.kk-story { position: relative; padding: 16px 16px 12px 40px; border-radius: 6px 6px 14px 14px; color: #2b2140; transform: rotate(var(--tilt));
  background: linear-gradient(90deg, transparent 28px, rgba(229, 72, 77, 0.3) 28px, rgba(229, 72, 77, 0.3) 30px, transparent 30px), #fffaf0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); animation: kk-arrive 0.5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 0.08s); }
.kk-story h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font: 700 16px "Fredoka", sans-serif; color: #4a2fa0; }
.kk-story h4 small { font-size: 13px; color: #8a7a9a; }
.kk-story .kk-rl { opacity: 1; transform: none; grid-template-columns: 22px minmax(0, 1fr); padding: 3px 4px; background: none; }
.kk-story .kk-rq small { display: none; }
.kk-story .kk-ra { font-size: 15.5px; }
.kk-story.best { box-shadow: 0 0 0 3px #ffcc33, 0 0 30px rgba(255, 204, 51, 0.5), 0 12px 26px rgba(0, 0, 0, 0.35); }
.kk-crown { position: absolute; top: -14px; right: 12px; padding: 4px 10px; border-radius: 99px; font: 700 12px "Fredoka", sans-serif; color: #3a2400; background: linear-gradient(180deg, #ffe08a, #f5b81f); box-shadow: 0 3px 0 #b8760c; }

/* ---------- tanıtım örneği ---------- */
.kk-introp { margin: 26px auto 10px; max-width: 340px; padding: 12px 14px 12px 40px; border-radius: 6px 6px 14px 14px; text-align: left; color: #2b2140; transform: rotate(-1.5deg);
  background: linear-gradient(90deg, transparent 28px, rgba(229, 72, 77, 0.3) 28px, rgba(229, 72, 77, 0.3) 30px, transparent 30px), #fffaf0; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
.kk-ip { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto auto; column-gap: 8px; padding: 3px 0; animation: ns-cred-pop 0.45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(0.3s + var(--i) * 0.35s); }
.kk-ip span { grid-row: 1 / 4; font-size: 18px; }
.kk-ip small { font: 600 10px "Fredoka", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; color: #8a7a9a; }
.kk-ip b { font: 700 16px "Fredoka", sans-serif; color: #1e1533; }
.kk-ip em { font-style: normal; font-size: 11px; color: #8a7a9a; }

@media (max-width: 560px) {
  .kk-paper { padding: 14px 14px 14px 44px; }
  .kk-q b { font-size: 24px; } .kk-qe { font-size: 28px; }
  .kk-rl { grid-template-columns: 80px minmax(0, 1fr); }
  .kk-ra { font-size: 18px; }
  .kk-steps i { width: 22px; height: 22px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .kk-paper, .kk-open, .kk-qe, .kk-laugh.ready, .kk-story, .kk-fold { animation: none !important; } }
:root[data-theme="light"] .kk-paper, :root[data-theme="light"] .kk-story { box-shadow: 0 10px 26px rgba(76, 47, 140, 0.18); }

/* Ana sayfa örnek kâğıdı: sakin akış — "?" bir kez döner, satırlar sırayla yavaşça açılır */
.ns-hero-demo { transition: opacity 0.4s ease, transform 0.4s ease; }
.ns-hero-moon { animation: ns-hero-spin 1.6s cubic-bezier(.34, 1.56, .64, 1) 1 both; }
.ns-hero-r { animation: kk-hero-in 0.6s ease-out both; animation-delay: calc(0.5s + var(--i) * 0.9s); }
@keyframes kk-hero-in { from { opacity: 0; transform: translateX(-14px) scale(0.96); } 70% { opacity: 1; transform: translateX(2px) scale(1.01); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ns-hero-r { animation: none; } }

/* ---------- Lobi ayarları: taşan yazılar ---------- */
/* Sorular ve süre satırları: başlık üstte, seçenekler tam genişlikte */
.ns-settings .ns-set:not(.in) .ns-set-h { margin-bottom: 5px; }
.ns-settings .ns-set:not(.in) .ns-set-t { flex-direction: row; align-items: baseline; gap: 5px; }
.ns-set .ns-chips[data-set="qset"] { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ns-set .ns-chips[data-set="qset"] .ns-chip { justify-content: center; padding: 5px 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-set .ns-chips[data-set="time"] { grid-auto-flow: row; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
.ns-set .ns-chips[data-set="time"] .ns-chip { font-size: 12.5px; }
/* tek anahtar (küfür filtresi) satırı boydan boya */
.ns-settings .ns-togs { grid-template-columns: 1fr; }
.ns-settings .ns-tog { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "ic t sw" "ic s sw"; }

/* ---------- "Bu oyunda": kâğıttaki soru sırası ---------- */
.ns-sum-cats { overflow: auto !important; align-items: center; }
.kk-sum-paper { position: relative; flex: 1 1 100%; align-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 9px 7px;
  padding: 14px 12px 12px; border-radius: 14px; transform: rotate(-0.6deg);
  background: repeating-linear-gradient(180deg, transparent 0 25px, rgba(255, 255, 255, 0.045) 25px 26px), linear-gradient(170deg, rgba(255, 244, 207, 0.1), rgba(255, 244, 207, 0.03));
  border: 1px dashed rgba(255, 224, 138, 0.3); }
.kk-sq { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--a) 20%, transparent); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
  animation: ns-cred-pop 0.4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 0.06s); transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1); }
.kk-sq:hover { transform: translateY(-2px) rotate(-2deg); }
.kk-sq em { position: absolute; top: -7px; left: -5px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 700 9.5px/1 "Fredoka", sans-serif; font-style: normal;
  color: #2b1700; background: linear-gradient(180deg, #ffe08a, #f5b81f); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.kk-sq i { font-style: normal; font-size: 15px; line-height: 1; }
.kk-sq b { font: 600 13px/1.1 "Fredoka", sans-serif; color: var(--ink); }
:root[data-theme="light"] .kk-sum-paper { background: repeating-linear-gradient(180deg, transparent 0 25px, rgba(91, 63, 176, 0.06) 25px 26px), #fffaf0; border-color: rgba(180, 130, 20, 0.35); }
:root[data-theme="light"] .kk-sq { background: color-mix(in srgb, var(--a) 22%, #fff); }

/* Ayarlar: bütün satırlar aynı düzende (başlık üstte, seçenekler altta) — dar sütunda taşmasın */
.ns-settings .ns-set:not(.in) { padding: 8px 10px 9px; }
.ns-settings .ns-set:not(.in) .ns-set-h { gap: 8px; }
.ns-settings .ns-set:not(.in) .ns-set-t { font-size: 13.5px; }
.ns-settings .ns-set:not(.in) .ns-set-t small { font-size: 11px; }
.ns-settings .ns-set .ns-chips[data-set="max"] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.ns-settings .ns-set .ns-chip { min-width: 0; }
.ns-settings .ns-set .ns-set-h .ns-tip { top: -7px; right: -6px; }
.ns-settings .ns-tog { padding: 8px 10px; }
.ns-settings .ns-tog .ns-tog-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* "Bu oyunda": sadece dikey kaydırma, sohbet gibi mor ince çubuk, mor kâğıt */
.ns-sum-cats { overflow-x: hidden !important; overflow-y: auto !important; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; padding: 8px 4px 4px; }
.ns-sum-cats::-webkit-scrollbar { width: 6px; height: 0; }
.ns-sum-cats::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 99px; }
.ns-sum-cats::-webkit-scrollbar-track { background: transparent; }
.kk-sum-paper { transform: none; box-sizing: border-box; max-width: 100%; min-width: 0; padding: 14px 12px 12px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06) 70%), rgba(20, 12, 40, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.kk-sq { max-width: 100%; background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0.12)); border-color: rgba(167, 139, 250, 0.45); }
.kk-sq:hover { border-color: rgba(196, 181, 253, 0.8); box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35); }
.kk-sq b { overflow: hidden; text-overflow: ellipsis; }
.kk-sq em { color: #fff; background: linear-gradient(180deg, #a78bfa, #7c3aed); }
:root[data-theme="light"] .kk-sum-paper { background: rgba(139, 92, 246, 0.08); border-color: rgba(124, 58, 237, 0.3); }
:root[data-theme="light"] .kk-sq { background: rgba(139, 92, 246, 0.14); border-color: rgba(124, 58, 237, 0.35); }


/* ---------- Ayarlar: sütun boyunca eşit dağılsın, boşluk kalmasın ---------- */
@media (min-width: 900px) {
  #ns.ns-wide .ns-settings { display: flex; flex-direction: column; }
  #ns.ns-wide .ns-settings > .ns-set, #ns.ns-wide .ns-settings > .ns-togs { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; margin-top: 8px; }
  #ns.ns-wide .ns-settings > .ns-togs { display: grid; align-content: stretch; }
  #ns.ns-wide .ns-settings .ns-tog { height: 100%; }
  #ns.ns-wide .ns-settings .ns-set .ns-chip { padding-top: 7px; padding-bottom: 7px; font-size: 13.5px; }
  #ns.ns-wide .ns-settings .ns-set-h { margin-bottom: 8px; }
  #ns.ns-wide .ns-settings .ns-set-ic { width: 28px; height: 28px; }
  #ns.ns-wide .ns-settings .ns-set-t { font-size: 14.5px; }
  #ns.ns-wide .ns-settings .ns-lang { padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- "Bu oyunda": soruları büyük renkli kartlar (kâğıttaki sırayla) ---------- */
.ns-sum-cats { align-items: stretch !important; padding: 6px 2px 2px; }
.kk-qgrid { flex: 1 1 100%; min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: stretch; gap: 8px; }
.kk-qc { position: relative; flex: 0 0 calc(25% - 6px); min-width: 0; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 4px; border-radius: 18px; text-align: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--a) 30%, transparent), color-mix(in srgb, var(--a) 7%, transparent));
  border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--a) 20%, transparent);
  animation: ns-cred-pop 0.45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 0.06s); transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.2s; }
.kk-qgrid[data-n="4"] .kk-qc { flex-basis: calc(25% - 6px); }
.kk-qc:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--a) 20%, transparent), 0 10px 22px color-mix(in srgb, var(--a) 30%, transparent); }
.kk-qc i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 27px; line-height: 1;
  background: color-mix(in srgb, var(--a) 24%, rgba(0, 0, 0, 0.18)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 16%, transparent); }
.kk-qc:nth-child(odd) i { animation: ns-bobble 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.3s); }
.kk-qc:nth-child(even) i { animation: ns-bobble 3.2s ease-in-out infinite reverse; animation-delay: calc(var(--i) * 0.3s); }
.kk-qc:hover i { transform: scale(1.1) rotate(-8deg); transition: transform 0.2s; }
.kk-qc b { font: 600 14px/1.15 "Fredoka", sans-serif; color: var(--ink); max-width: 100%; padding: 0 4px; overflow-wrap: anywhere; }
.kk-qc em { position: absolute; top: 7px; left: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 "Fredoka", sans-serif; font-style: normal;
  color: #1a1033; background: color-mix(in srgb, var(--a) 85%, #fff); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
/* kâğıt gibi: kartların arasında katlanma çizgisi hissi */
.kk-qc::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; border-bottom: 1.5px dashed color-mix(in srgb, var(--a) 35%, transparent); }
:root[data-theme="light"] .kk-qc { background: linear-gradient(170deg, color-mix(in srgb, var(--a) 30%, #fff), #fff); }
@media (prefers-reduced-motion: reduce) { .kk-qc i { animation: none !important; } }
.ns-sum-stats .kk-st { grid-row: 1 / 3; font-style: normal; font-size: 21px; line-height: 1; width: 24px; text-align: center; }

/* "Bu oyunda": İsim Şehir Hayvan'daki gibi alanı tam doldursun, kaydırma çıkmasın (7 soru → 4 + 3, alt satır genişler) */
.ns-sum-cats { overflow: hidden !important; padding: 2px 0 0; }
.kk-qgrid { gap: 8px; }
.kk-qc { flex: 1 1 calc(25% - 8px); min-height: 0; gap: 6px; padding: 8px 4px; }
.kk-qc b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.kk-qgrid[data-n="7"] .kk-qc i, .kk-qgrid[data-n="8"] .kk-qc i { width: 42px; height: 42px; font-size: 23px; }
.kk-qgrid[data-n="7"] .kk-qc b { font-size: 13.5px; }
.kk-qgrid[data-n="7"] .kk-qc::after { bottom: 6px; }

/* ---------- Davet kartı: sorular renkli kartlar, kurallar üç eşit kutu ---------- */
.ns-invite .kk-isec.cats { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.kk-iq { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-content: stretch; gap: 7px; }
.kk-iqc { position: relative; flex: 1 1 calc(25% - 7px); min-width: 0; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px 7px; border-radius: 14px; text-align: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--a) 30%, transparent), color-mix(in srgb, var(--a) 7%, transparent));
  border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--a) 20%, transparent);
  animation: ns-cred-pop 0.4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(0.2s + var(--i) * 0.05s); transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1); }
.kk-iqc:hover { transform: translateY(-3px) rotate(-1.5deg); }
.kk-iqc i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; line-height: 1; background: color-mix(in srgb, var(--a) 24%, rgba(0, 0, 0, 0.18)); }
.kk-iqc:nth-child(odd) i { animation: ns-bobble 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.3s); }
.kk-iqc:nth-child(even) i { animation: ns-bobble 3.2s ease-in-out infinite reverse; animation-delay: calc(var(--i) * 0.3s); }
.kk-iqc b { font: 600 13px/1.1 "Fredoka", sans-serif; color: var(--ink); max-width: 100%; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-iqc em { position: absolute; top: 5px; left: 6px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 "Fredoka", sans-serif; font-style: normal; color: #1a1033; background: color-mix(in srgb, var(--a) 85%, #fff); }
.kk-ir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.kk-irt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 9px 6px 8px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--a) 12%, rgba(0, 0, 0, 0.15)); border: 1px solid color-mix(in srgb, var(--a) 38%, transparent);
  animation: ns-cred-pop 0.4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(0.45s + var(--i) * 0.08s); }
.kk-irt i { font-style: normal; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.kk-irt:hover i { transform: scale(1.15) rotate(-8deg); }
.kk-irt small { max-width: 100%; font: 500 11px/1.15 "Fredoka", sans-serif; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-irt b { max-width: 100%; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.1 "Fredoka", sans-serif; color: #1a1033; background: color-mix(in srgb, var(--a) 85%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-irt.off { opacity: 0.8; } .kk-irt.off b { background: rgba(255, 255, 255, 0.14); color: var(--ink-dim); }
:root[data-theme="light"] .kk-iqc { background: linear-gradient(170deg, color-mix(in srgb, var(--a) 30%, #fff), #fff); }
:root[data-theme="light"] .kk-irt { background: color-mix(in srgb, var(--a) 14%, #fff); }
@media (max-width: 420px) { .kk-iqc { flex-basis: calc(33.33% - 7px); } }
@media (prefers-reduced-motion: reduce) { .kk-iqc i { animation: none !important; } }


/* ---------- Kâğıt çizgileri: her satırın altında bir çizgi → yazılar hep çizgiye oturur ---------- */
.kk-paper, .kk-story, .kk-introp { --lineC: rgba(80, 120, 200, 0.24); }
.kk-folds small { display: block; margin: 6px 0 0 30px; padding: 0 0 5px; border-bottom: 1px solid var(--lineC); line-height: 1.3; }
.kk-folds { margin-bottom: 14px; }
.kk-q { padding: 2px 0 8px; margin-bottom: 14px; border-bottom: 1px solid var(--lineC); }
.kk-tip { margin: 12px 0 0; padding: 0 0 6px; border-bottom: 1px solid var(--lineC); line-height: 1.35; }
.kk-paper:not(.kk-open)::after { content: ""; display: block; height: 30px; margin-top: 0; background: linear-gradient(transparent 29px, var(--lineC) 29px); }
.kk-ptitle { padding-bottom: 8px; border-bottom: 1px solid var(--lineC); margin-bottom: 8px; }
.kk-rlines { gap: 4px; }
.kk-rl { border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--lineC); padding: 7px 8px 6px; }
.kk-story h4 { padding-bottom: 6px; border-bottom: 1px solid var(--lineC); }
.kk-story .kk-rlines { gap: 0; }
.kk-story .kk-rl { padding: 5px 4px 4px; border-radius: 0; }
.kk-ip { border-bottom: 1px solid var(--lineC); padding: 5px 0 4px; }

/* ---------- Katla ve gönder: kâğıt uçup gider, "Değiştir" ile geri gelir ---------- */
.kk-pwrap { position: relative; width: 100%; max-width: 600px; margin: 0 auto; overflow-x: clip; overflow-y: visible; padding: 12px 20px 26px; box-sizing: border-box; }
.kk-pwrap .kk-paper { animation: kk-arrive 0.6s cubic-bezier(.34, 1.56, .64, 1) both; }
.kk-pwrap.sent .kk-paper { animation: kk-send 0.85s cubic-bezier(.55, 0, .45, 1) forwards; pointer-events: none; }
.kk-pwrap.back .kk-paper { animation: kk-back 0.75s cubic-bezier(.34, 1.4, .64, 1) both; }
.kk-pwrap.now.sent .kk-paper { animation: none; opacity: 0; transform: translateX(120%) rotate(16deg) scale(0.5); }
@keyframes kk-send {
  0% { transform: rotate(var(--tilt)); opacity: 1; }
  35% { transform: perspective(700px) rotateX(62deg) scaleY(0.45) rotate(var(--tilt)); opacity: 1; }
  55% { transform: perspective(700px) rotateX(70deg) scale(0.55, 0.3) translateX(0); opacity: 1; }
  100% { transform: perspective(700px) rotateX(70deg) scale(0.4, 0.22) translateX(260%) rotate(14deg); opacity: 0; } }
@keyframes kk-back {
  0% { transform: perspective(700px) rotateX(70deg) scale(0.4, 0.22) translateX(260%) rotate(14deg); opacity: 0; }
  45% { transform: perspective(700px) rotateX(70deg) scale(0.55, 0.3) translateX(0); opacity: 1; }
  75% { transform: perspective(700px) rotateX(30deg) scaleY(0.8) rotate(var(--tilt)); }
  100% { transform: rotate(var(--tilt)); opacity: 1; } }
.kk-sentbox { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; opacity: 0; transform: scale(0.9); pointer-events: none; transition: opacity 0.35s, transform 0.45s cubic-bezier(.34, 1.56, .64, 1); }
.kk-pwrap.sent .kk-sentbox { opacity: 1; transform: none; transition-delay: 0.55s; }
.kk-pwrap.now.sent .kk-sentbox { transition-delay: 0s; }
.kk-env { font-size: 54px; line-height: 1; animation: kk-env 2.4s ease-in-out infinite; }
@keyframes kk-env { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
.kk-sentbox b { font: 600 20px/1.2 "Fredoka", sans-serif; color: var(--ink); }
.kk-sentbox small { max-width: 360px; font-size: 13.5px; color: var(--ink-dim); }
.kk-paper.locked { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .kk-pwrap .kk-paper, .kk-env { animation-duration: 0.01s !important; } }

/* ---------- Güldüm: kâğıt başına 1 kez, gülenlerin avatarları ---------- */
.kk-laugh:not(.ready):not(.done) { filter: saturate(0.4) brightness(0.8); cursor: default; }
.kk-laugh:not(.ready):not(.done):hover { transform: none; }
.kk-laugh.done { animation: none; background: linear-gradient(180deg, #a7f3d0, #4abf8c); box-shadow: 0 6px 0 #2f8a63, 0 10px 22px rgba(74, 191, 140, 0.35); color: #0f3d2a; cursor: default; }
.kk-lby { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 34px; margin-top: 12px; }
.kk-lby:empty { visibility: hidden; }
.kk-lbt { margin-right: 4px; font: 600 13px "Fredoka", sans-serif; color: var(--ink-dim); }
.kk-lbp { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #ffcc33; animation: ns-cred-pop 0.45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 0.05s); }
.kk-lby.mini { justify-content: flex-start; min-height: 0; margin: 0; gap: 2px; }
.kk-lby.mini .kk-lbt { font-size: 11px; color: #8a7a9a; }
.kk-lby.mini .kk-lbp .ns-av { --s: 20px !important; }
.kk-lby.mini .kk-lbp { box-shadow: 0 0 0 1.5px #ffcc33; }
.kk-sfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.kk-dl { flex: none; padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(74, 47, 160, 0.25); background: rgba(139, 92, 246, 0.1); color: #4a2fa0; font: 600 12.5px "Fredoka", sans-serif; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.kk-dl:hover { transform: translateY(-2px); background: rgba(139, 92, 246, 0.2); }

/* gönderince sadece "Değiştir" kalsın */
.kk-fold-btn[hidden], #ns-stop[hidden] { display: none !important; }
/* katlanmış satırlar: kâğıdın içinde, ince ve kısa (çok satırda da taşmaz) */
.kk-folds { margin: -2px 0 10px; gap: 2px; }
.kk-fold { height: 7px; padding: 0; margin: 0 auto 0 0; width: calc(100% - var(--i) * 3px); border-radius: 2px; }
.kk-fold span { display: none; }
.kk-folds small { margin: 6px 0 0; }
/* sohbet açıkken dil menüsü sohbetin üstünde açılsın */
body:has(.lang-menu.open) .nav, body:has(.nav-links.open) .nav { z-index: 1700; }

/* ---------- Okuma ekranı ekrana sığsın ---------- */
/* açılmamış satırlar yer kaplamaz; açıldıkça kâğıt uzar */
.kk-open .kk-rl:not(.show) { max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; margin: 0; overflow: hidden; }
.kk-open .kk-rl { max-height: 160px; transition: opacity 0.35s, transform 0.45s cubic-bezier(.34, 1.56, .64, 1), background 0.4s, max-height 0.45s ease, padding 0.3s; }
.kk-open .kk-rlines { gap: 3px; }
.kk-open .kk-rl { padding-top: 5px; padding-bottom: 4px; }
.kk-open .kk-ra { font-size: 19px; }
.kk-open { margin-top: 14px; padding-bottom: 12px; }
.kk-open .kk-end { margin-top: 6px; }
/* Güldüm solda, Sonraki kâğıt sağda: tek satır */
.kk-ract { flex-wrap: nowrap; justify-content: space-between; width: 100%; max-width: 560px; margin: 18px auto 0; gap: 10px; }
.kk-ract .ns-actions { margin: 0 0 0 auto; }
.kk-ract #kk-next { white-space: nowrap; }
.kk-ract .ns-actions:empty { display: none; }
.kk-ract:has(.ns-actions:empty) { justify-content: center; }
.kk-lby { margin-top: 10px; }
@media (max-width: 480px) { .kk-ract .kk-laugh { height: 48px; padding: 0 14px; font-size: 16px; } .kk-ract #kk-next { padding-left: 16px; padding-right: 16px; } }
