/* Fast Games Player Care — V5.1.1 visual + layout correction */
.player-care{
  --care-purple:#8f6cff;
  --care-purple-2:#6f59ff;
  --care-cyan:#67dcff;
  --care-green:#43e3ad;
  --care-amber:#ffc668;
  --care-surface:#0b0f19;
  --care-surface-2:#0f1421;
  --care-line:rgba(164,181,230,.16);
  --care-line-strong:rgba(164,181,230,.27);
  --care-muted:#8f9bb3;
  --care-text:#f7f8ff;
}

/* Critical state fix: author display rules must never defeat [hidden]. */
.player-care [hidden]{display:none!important}

.care-panel{
  width:min(480px,calc(100vw - 28px));
  height:min(760px,calc(100svh - 112px));
  max-height:760px;
  border:1px solid var(--care-line-strong);
  border-radius:30px;
  background:
    radial-gradient(110% 70% at 0% 0%,rgba(116,83,255,.16),transparent 54%),
    radial-gradient(90% 50% at 100% 100%,rgba(45,206,255,.09),transparent 55%),
    linear-gradient(180deg,rgba(12,16,28,.995),rgba(7,10,17,.995));
  box-shadow:0 34px 110px rgba(0,0,0,.66),0 0 0 1px rgba(255,255,255,.025) inset;
  backdrop-filter:blur(34px) saturate(1.15);
}
.care-panel:before{
  background:
    linear-gradient(90deg,transparent,rgba(255,255,255,.025),transparent),
    radial-gradient(circle at 18% 0,rgba(143,108,255,.14),transparent 34%);
}

.care-panel-head{
  min-height:88px;
  padding:16px 18px;
  border-bottom:1px solid var(--care-line);
  background:rgba(8,11,19,.58);
  backdrop-filter:blur(18px);
}
.care-brand{gap:13px;min-width:0}
.care-brand>span{
  width:50px;height:50px;border-radius:17px;
  border:1px solid rgba(143,108,255,.36);
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(111,89,255,.12));
  box-shadow:0 10px 30px rgba(0,0,0,.25),0 0 24px rgba(111,89,255,.08) inset;
}
.care-brand img{width:34px;height:34px;border-radius:10px}
.care-brand>div{min-width:0}
.care-brand strong{font-size:15px!important;line-height:1.25!important;letter-spacing:-.018em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.care-brand small{font-size:12px!important;line-height:1.35!important;color:#97a3bc!important;margin-top:5px!important;gap:7px!important}
.care-brand small i{width:7px;height:7px;background:var(--care-green);box-shadow:0 0 14px rgba(67,227,173,.7)}
.care-close{
  flex:0 0 40px;width:40px;height:40px;border-radius:13px;
  border:1px solid var(--care-line-strong);background:rgba(255,255,255,.035);
  color:#f8f9ff;font-size:25px;line-height:1;transition:.18s ease;
}
.care-close:hover{transform:rotate(4deg);background:rgba(255,255,255,.075);border-color:rgba(143,108,255,.48)}

.care-intro,.care-conversation{
  scrollbar-width:thin;
  scrollbar-color:rgba(143,108,255,.36) transparent;
}
.care-intro::-webkit-scrollbar,.care-conversation::-webkit-scrollbar,.care-messages::-webkit-scrollbar{width:8px}
.care-intro::-webkit-scrollbar-thumb,.care-conversation::-webkit-scrollbar-thumb,.care-messages::-webkit-scrollbar-thumb{background:rgba(143,108,255,.32);border:2px solid transparent;background-clip:padding-box;border-radius:999px}

.care-intro{padding:24px 24px 28px}
.care-signal{
  padding:10px 12px;border:1px solid rgba(143,108,255,.17);border-radius:13px;
  background:linear-gradient(90deg,rgba(143,108,255,.075),rgba(103,220,255,.025));
}
.care-signal span,.care-signal b{font-size:11px!important;line-height:1.3!important}
.care-signal span{letter-spacing:.13em;color:#ae9cff!important}
.care-signal b{color:#79869e!important;font-weight:750!important}
.care-intro h3{font-size:31px;line-height:1.02;margin:22px 0 11px;letter-spacing:-.047em}
.care-intro>p{font-size:15px!important;line-height:1.65!important;color:#9aa6bc!important;margin:0 0 22px;max-width:38ch}

.care-form{gap:14px}
.care-fields-2{gap:12px}
.care-form label{gap:7px}
.care-form label>span{font-size:11px!important;line-height:1.2!important;letter-spacing:.105em!important;color:#a2adc2!important}
.care-form input,.care-form select,.care-form textarea{
  border:1px solid rgba(164,181,230,.16);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(7,10,17,.82),rgba(7,10,17,.98));
  color:var(--care-text);font-size:14px!important;line-height:1.45!important;
  padding-left:14px;padding-right:14px;
  box-shadow:0 1px 0 rgba(255,255,255,.018) inset;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.care-form input,.care-form select{height:47px}
.care-form textarea{min-height:126px;padding-top:13px;padding-bottom:13px;resize:vertical}
.care-form input::placeholder,.care-form textarea::placeholder{color:#66738a}
.care-form input:focus,.care-form select:focus,.care-form textarea:focus{
  border-color:rgba(143,108,255,.68);
  box-shadow:0 0 0 4px rgba(143,108,255,.085),0 12px 35px rgba(0,0,0,.12);
  background:#090d17;
}
.care-form-bottom{
  margin-top:2px;display:grid;grid-template-columns:1fr;gap:10px;
  padding-top:2px;
}
.care-form-bottom small{font-size:11px!important;line-height:1.45!important;color:#748198!important;text-align:center;order:2}
.care-form-bottom button{
  width:100%;height:52px;border-radius:15px;padding:0 18px;
  background:linear-gradient(110deg,var(--care-purple),#514cff 58%,#4558e8);
  color:white;font-size:15px!important;line-height:1!important;font-weight:850;
  box-shadow:0 16px 38px rgba(86,72,255,.22),0 1px 0 rgba(255,255,255,.18) inset;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.care-form-bottom button:hover{transform:translateY(-2px);box-shadow:0 20px 46px rgba(86,72,255,.3),0 1px 0 rgba(255,255,255,.18) inset;filter:saturate(1.08)}
.care-form-bottom button:disabled{opacity:.55;transform:none;cursor:wait}
.care-form-bottom button b{font-size:17px;margin-left:6px}
.care-error{font-size:12px!important;line-height:1.55!important;border-radius:13px;padding:11px 13px}

/* Conversation is its own dedicated layout; it never stacks below the form. */
.care-conversation{padding:0;background:linear-gradient(180deg,rgba(7,10,17,.22),rgba(7,10,17,.6))}
.care-case-top{
  margin:18px 18px 10px;padding:16px 17px;border:1px solid var(--care-line);
  border-radius:18px;background:linear-gradient(145deg,rgba(143,108,255,.08),rgba(255,255,255,.025));
  align-items:flex-start;box-shadow:0 14px 36px rgba(0,0,0,.15);
}
.care-case-top>div{gap:3px;min-width:0}
.care-case-top span{font-size:10px!important;line-height:1.2!important;letter-spacing:.14em!important;color:#aa94ff!important}
.care-case-top strong{font-size:16px!important;line-height:1.3!important;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}
.care-case-top small{
  display:inline-flex;width:max-content;max-width:100%;margin-top:7px!important;padding:5px 9px;border-radius:999px;
  border:1px solid rgba(67,227,173,.18);background:rgba(67,227,173,.07);color:#83e8c5!important;
  font-size:10px!important;line-height:1.2!important;font-weight:800;text-transform:uppercase!important;letter-spacing:.08em;
}
.care-case-top button{
  flex:0 0 auto;border:1px solid rgba(143,108,255,.35);border-radius:11px;
  background:rgba(143,108,255,.07);color:#b7a8ff!important;font-size:12px!important;line-height:1!important;
  padding:10px 12px;transition:.18s ease;
}
.care-case-top button:hover{background:rgba(143,108,255,.14);border-color:rgba(143,108,255,.58);transform:translateY(-1px)}

.care-assignment{
  margin:0 18px 12px;padding:14px 15px;border:1px solid rgba(255,198,104,.14);border-radius:16px;
  background:linear-gradient(90deg,rgba(255,198,104,.055),rgba(255,255,255,.018));
  gap:12px;
}
.care-pulse{width:11px;height:11px;flex:0 0 11px}
.care-assignment>div{gap:3px}
.care-assignment strong{font-size:14px!important;line-height:1.35!important;color:#f5f7fc}
.care-assignment small{font-size:12px!important;line-height:1.5!important;color:#8d99af!important}

.care-messages{
  flex:1;min-height:180px;margin:0 10px;padding:10px 8px 14px;gap:10px;
  border-top:1px solid rgba(164,181,230,.08);
}
.care-message{max-width:86%;padding:11px 13px;border-radius:16px;border-color:rgba(164,181,230,.12);box-shadow:0 8px 22px rgba(0,0,0,.12)}
.care-message>div{margin-bottom:5px}
.care-message strong{font-size:10px!important;line-height:1.3!important}
.care-message time{font-size:10px!important;line-height:1.3!important}
.care-message p{font-size:13px!important;line-height:1.55!important;color:#e5e9f2!important}
.care-message.mine{background:linear-gradient(145deg,rgba(111,89,255,.18),rgba(143,108,255,.1));border-color:rgba(143,108,255,.24)}

.care-reply{
  margin:0;padding:12px 14px;border-top:1px solid var(--care-line);
  background:rgba(6,9,15,.78);backdrop-filter:blur(16px);gap:9px;
}
.care-reply textarea{
  min-height:54px;max-height:124px;border-radius:15px;border-color:rgba(164,181,230,.16);
  background:#090d16;padding:12px 13px;color:#fff;font-size:13px!important;line-height:1.5!important;
}
.care-reply textarea:focus{border-color:rgba(143,108,255,.62);box-shadow:0 0 0 4px rgba(143,108,255,.07)}
.care-reply button{
  width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#fff,#dfe6ff);color:#0a0d14;
  box-shadow:0 12px 28px rgba(0,0,0,.18);transition:.18s ease;
}
.care-reply button:hover{transform:translateY(-2px) rotate(-2deg)}
.care-case-footer{
  min-height:44px;padding:7px 16px 11px;background:rgba(6,9,15,.78);
}
.care-case-footer span{font-size:10px!important;line-height:1.3!important;letter-spacing:.11em!important;color:#66738c!important}
.care-case-footer button{font-size:11px!important;line-height:1.3!important;color:#ff9bae!important;padding:7px 0}

.care-launcher{height:66px;border-radius:22px;padding:7px 16px 7px 7px;gap:12px}
.care-launcher-logo{width:50px;height:50px;border-radius:17px}
.care-launcher-logo img{width:34px;height:34px}
.care-launcher-copy strong{font-size:12px!important;line-height:1.2!important}
.care-launcher-copy small{font-size:10px!important;line-height:1.3!important;margin-top:5px!important}

@media (max-width:620px){
  .player-care{right:10px;bottom:10px;left:10px}
  .care-launcher{margin-left:auto}
  .care-panel{
    position:fixed;left:10px;right:10px;bottom:88px;width:auto;
    height:min(740px,calc(100svh - 104px));max-height:none;border-radius:25px;
    transform-origin:bottom center;
  }
  .care-panel-head{min-height:78px;padding:13px 14px}
  .care-brand>span{width:44px;height:44px;border-radius:15px}
  .care-brand img{width:30px;height:30px}
  .care-brand strong{font-size:14px!important}
  .care-brand small{font-size:11px!important}
  .care-intro{padding:18px 16px 22px}
  .care-intro h3{font-size:27px}
  .care-fields-2{grid-template-columns:1fr}
  .care-form textarea{min-height:112px}
  .care-case-top{margin:14px 14px 9px;padding:14px}
  .care-case-top strong{max-width:230px;font-size:15px!important}
  .care-assignment{margin:0 14px 10px;padding:12px 13px}
  .care-messages{margin:0 6px}
  .care-launcher-copy{display:none}
  .care-launcher{width:60px;height:60px;padding:5px;border-radius:20px}
  .care-launcher-logo{width:48px;height:48px}
}

@media (max-height:680px) and (min-width:621px){
  .care-panel{height:calc(100svh - 98px);bottom:72px}
  .care-panel-head{min-height:72px;padding:11px 15px}
  .care-intro{padding:18px 20px 20px}
  .care-intro h3{font-size:27px;margin-top:16px}
  .care-intro>p{margin-bottom:15px}
  .care-form{gap:10px}
  .care-form textarea{min-height:84px}
}

@media (prefers-reduced-motion:reduce){
  .care-close,.care-case-top button,.care-form-bottom button,.care-reply button{transition:none!important}
  .care-pulse{animation:none!important}
}
