.cs-feedback-dialog,.cs-feedback-success-card{box-sizing:border-box;direction:rtl;text-align:center;color:#283b57;font-family:Heebo,Assistant,Arial,sans-serif;border:1.5px solid #ffffffed;border-radius:32px;background:linear-gradient(140deg,#ffffffe8,#edf6ffdb 58%,#f3edffe0);box-shadow:0 22px 64px #33496830,inset 0 1px 0 #fff;backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%)}
.cs-feedback-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:30px 26px;animation:cs-feedback-enter .22s ease-out}.cs-feedback-dialog::backdrop{background:#25324b45;backdrop-filter:blur(8px)}.cs-feedback-dialog h2{font-size:25px;line-height:1.3;margin:14px 0 8px}.cs-feedback-dialog p{font-size:16px;line-height:1.7;margin:0;color:#657187}.cs-feedback-symbol{display:grid;place-items:center;margin:auto;width:64px;height:64px;border-radius:23px;background:#e9def9;color:#825abd;font-size:33px}.cs-feedback-symbol.error{background:#fbe2e9;color:#b24f66}.cs-feedback-detail{padding:13px 18px;margin-top:18px;border-radius:18px;background:#ffffffa1;color:#735790;font-size:18px;font-weight:700}.cs-feedback-actions{display:flex;gap:10px;margin-top:24px;justify-content:center}.cs-feedback-actions button{font:inherit;font-weight:700;border:0;border-radius:18px;min-height:48px;flex:1;padding:10px 18px;cursor:pointer;-webkit-tap-highlight-color:transparent}.cs-feedback-actions .primary{background:#865aca;color:white}.cs-feedback-actions .secondary{background:#ffffffa8;color:#675782}.cs-feedback-actions button:focus-visible{outline:3px solid #7951c3;outline-offset:3px}
.cs-feedback-success{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;pointer-events:none;animation:cs-feedback-enter .2s ease-out;transition:opacity .2s}.cs-feedback-success.leaving{opacity:0}.cs-feedback-success-card{width:min(330px,calc(100vw - 40px));padding:22px}.cs-feedback-check{width:110px;height:110px;margin:auto}.cs-feedback-check svg{width:100%;height:100%}.cs-feedback-check path{stroke-dasharray:70;stroke-dashoffset:70;animation:cs-feedback-check .4s ease .1s forwards}.cs-feedback-success-card p{margin:8px 0 3px;font-size:19px;font-weight:700}
@keyframes cs-feedback-enter{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@keyframes cs-feedback-check{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.cs-feedback-dialog,.cs-feedback-success{animation:none;transition:none}.cs-feedback-check path{animation:none;stroke-dashoffset:0}}

.cs-feedback-reward{display:flex;align-items:center;justify-content:center;height:140px;gap:4px}.cs-reward-trophy,.cs-reward-coins{position:relative;width:125px;height:130px;display:grid;place-items:center;font-size:75px}.cs-reward-coins{width:90px;height:90px;font-size:62px}.cs-reward-animation{position:absolute;inset:0;width:100%;height:100%}.cs-reward-animation svg{width:100%;height:100%}

/* The selected character replaces the generic purchase symbol. */
.cs-feedback-dialog .cs-feedback-avatar{position:relative;width:min(230px,100%);height:clamp(120px,25dvh,205px);margin:-10px auto 0;pointer-events:none;isolation:isolate}
.cs-feedback-avatar .lumi-avatar{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none;filter:drop-shadow(0 8px 9px #53617b20)}
@media(max-height:600px){.cs-feedback-dialog:has(.cs-feedback-avatar){padding:18px 22px}.cs-feedback-dialog .cs-feedback-avatar{height:110px}.cs-feedback-dialog:has(.cs-feedback-avatar) .cs-feedback-actions{margin-top:14px}}

/* Shared shell for decisions, including dialogs that keep their own form or game state. */
dialog.cs-question-sheet, #messageActionDialog.cs-question-sheet {
  position:fixed; inset:auto 0 0; margin:0 auto; box-sizing:border-box; direction:rtl;
  width:min(100%,760px); max-width:100%; max-height:calc(100dvh - 24px);
  padding:0 clamp(16px,4vw,28px) calc(18px + env(safe-area-inset-bottom));
  overflow:auto; overscroll-behavior:contain; color:#3d3152;
  border:1px solid #ffffffb8!important; border-bottom:0!important; border-radius:28px 28px 0 0!important;
  background:#f1f4f9f5!important; box-shadow:0 -12px 50px #56387825!important;
}
dialog.cs-question-sheet[open] { animation:cs-question-rise .32s cubic-bezier(.2,.75,.25,1); }
dialog.cs-question-sheet::backdrop, #messageActionDialog.cs-question-sheet::backdrop { background:#40365740; backdrop-filter:blur(5px); }
dialog.cs-question-sheet .cs-question-header {
  position:relative; display:grid; place-items:center; box-sizing:border-box;
  min-height:68px; padding:14px 48px 4px; margin:0 0 8px; touch-action:none;
}
dialog.cs-question-sheet .cs-question-header :is(h2,h3), #messageActionDialog .cs-question-header h2 { margin:0; text-align:center; font:700 19px/1.4 Heebo,Arial,sans-serif; color:#3d3152; }
.cs-question-grip { position:absolute; top:9px; width:42px; height:4px; border-radius:8px; background:#9a89b459; }
dialog.cs-question-sheet .cs-question-close {
  position:absolute; inset:auto auto 8px 0; min-width:44px; width:44px; height:44px;
  display:grid; place-items:center; margin:0; padding:0; border:0; border-radius:50%;
  font:400 26px/1 Arial,sans-serif; color:#655080; background:#fff; box-shadow:none; cursor:pointer;
}
.cs-feedback-dialog textarea { box-sizing:border-box; width:100%; min-height:84px; margin-top:12px; padding:12px; border:1px solid #cbc2d8; border-radius:12px; font:inherit; font-size:16px; line-height:1.5; }
.cs-feedback-dialog[data-tone="error"] .cs-feedback-actions .primary { background:#a7304a; }
@keyframes cs-question-rise { from { transform:translateY(100%); } to { transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { dialog.cs-question-sheet[open] { animation:none; } }


.cs-feedback-level-card p {
  color: #294e48;
  overflow-wrap: anywhere;
}

/* This class is removed on blur or keyboard input. */
.cs-sheet-swipe-return:focus { outline: none !important; }
