


:root {
  --gc-accent:        #ffd700;  
  --gc-accent-soft:   rgba(255,215,0,0.3);
  --gc-bg-panel:      rgba(8, 12, 24, 0.45);
  --gc-bg-header:     rgba(20,16,8,0.35);
  --gc-bg-input:      rgba(0,0,0,0.22);
  --gc-text:          #f0e8d0;
  --gc-text-muted:    #888;
  --gc-banner:        none; 
}






html[data-game-chat="poker"] {
  --gc-accent:        #ffd700;
  --gc-accent-soft:   rgba(255,215,0,0.35);
  --gc-bg-panel:      rgba(8, 28, 16, 0.55);    
  --gc-bg-header:     rgba(8, 30, 18, 0.6);
  --gc-bg-input:      rgba(0, 20, 10, 0.4);
  --gc-text:          #e8f5e8;
  --gc-banner:        url('/game/img/chat/chat-bg-holdem.jpg');
}


html[data-game-chat="roulette"] {
  --gc-accent:        #f1c40f;                  
  --gc-accent-soft:   rgba(241, 196, 15, 0.4);
  --gc-bg-panel:      linear-gradient(135deg, rgba(35, 6, 6, 0.85) 0%, rgba(6, 32, 18, 0.85) 50%, rgba(15, 5, 5, 0.9) 100%); 
  --gc-bg-header:     linear-gradient(90deg, rgba(180, 20, 30, 0.55) 0%, rgba(20, 80, 40, 0.55) 50%, rgba(20, 20, 20, 0.7) 100%);
  --gc-bg-input:      rgba(15, 10, 10, 0.6);
  --gc-text:          #fff5e0;
  --gc-banner:        url('/game/img/chat/chat-bg-roulette.jpg');
  --gc-border-accent: rgba(241, 196, 15, 0.5);
  --gc-fab-bg:        radial-gradient(circle at 30% 30%, #e74c3c 0%, #c0392b 40%, #1a1a1a 100%);
  --gc-fab-shadow:    0 4px 14px rgba(231, 76, 60, 0.45), 0 0 0 2px rgba(241, 196, 15, 0.6) inset;
}


html[data-game-chat="baccarat"] {
  --gc-accent:        #d4af37;                  
  --gc-accent-soft:   rgba(212, 175, 55, 0.4);
  --gc-bg-panel:      linear-gradient(160deg, rgba(8, 14, 35, 0.92) 0%, rgba(15, 25, 55, 0.88) 50%, rgba(5, 8, 22, 0.95) 100%); 
  --gc-bg-header:     linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(10, 18, 40, 0.7) 70%);
  --gc-bg-input:      rgba(8, 14, 30, 0.7);
  --gc-text:          #ecf3ff;
  --gc-banner:        url('/game/img/chat/chat-bg-baccarat.jpg');
  --gc-border-accent: rgba(212, 175, 55, 0.55);
  --gc-fab-bg:        linear-gradient(135deg, #d4af37 0%, #f5e6a8 45%, #c9a227 100%);
  --gc-fab-shadow:    0 4px 14px rgba(212, 175, 55, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.15) inset;
}


html[data-game-chat="seotda"] {
  --gc-accent:        #ffd700;
  --gc-accent-soft:   rgba(255,215,0,0.4);
  --gc-bg-panel:      rgba(50, 10, 12, 0.65);   
  --gc-bg-header:     rgba(60, 12, 14, 0.6);
  --gc-bg-input:      rgba(30, 6, 8, 0.45);
  --gc-text:          #f5e0d0;
  --gc-banner:        url('/game/img/chat/chat-bg-seotda.jpg');
}


html[data-game-chat="neon"] {
  --gc-accent:        #00f0ff;                   
  --gc-accent-soft:   rgba(0, 240, 255, 0.35);
  --gc-bg-panel:      rgba(15, 5, 30, 0.6);     
  --gc-bg-header:     rgba(30, 10, 50, 0.55);
  --gc-bg-input:      rgba(10, 5, 25, 0.4);
  --gc-text:          #e0f0ff;
  --gc-banner:        url('/game/img/chat/chat-bg-neon.jpg');
}


.gc-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-accent), rgba(0,0,0,0.5));
  border: 2px solid var(--gc-accent-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,.4), 0 0 12px var(--gc-accent-soft);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.gc-fab:hover { transform: scale(1.08); }
.gc-fab .gc-fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: #e44; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px;
  border: 2px solid #fff;
}
.gc-fab.gc-hide { display: none; }


.gc-panel {
  position: fixed;
  top: 60px; right: 0; bottom: 0;
  width: 380px;
  background: var(--gc-bg-panel);
  backdrop-filter: blur(8px) saturate(105%);
  -webkit-backdrop-filter: blur(8px) saturate(105%);
  border-left: 1px solid var(--gc-accent-soft);
  box-shadow: -8px 0 24px rgba(0,0,0,.35);
  color: var(--gc-text);
  display: flex; flex-direction: column;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), height .25s ease;
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.gc-panel.gc-open { transform: translateX(0); }
.gc-panel,
.gc-panel * { text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 1px rgba(0,0,0,.7); }

.gc-panel.gc-compact { top: auto; height: 320px; }


.gc-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gc-accent-soft);
  display: flex; align-items: center; gap: 6px;
  background: var(--gc-bg-header);
  position: relative;
  overflow: hidden;
}
.gc-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--gc-banner);
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.gc-header > * { position: relative; z-index: 1; }
.gc-header-title {
  flex: 1; font-size: 13px; font-weight: 700;
  color: var(--gc-accent);
  display: flex; align-items: center; gap: 5px;
}
.gc-online-count { font-size: 10.5px; color: #bbb; font-weight: 500; }
.gc-online-count .gc-dot { color:#3c3; display:inline-block; margin-right:2px; }
.gc-header-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.08); border: none; color: #ddd;
  font-size: 12px;
}
.gc-header-btn:hover { background: var(--gc-accent-soft); color: var(--gc-accent); }
.gc-header-btn.gc-muted i { color:#888; }


.gc-messages {
  flex: 1; overflow-y: auto;
  padding: 6px 10px 6px 8px;
  display: flex; flex-direction: column;
  gap: 1px;
  scrollbar-width: thin; scrollbar-color: var(--gc-accent-soft) transparent;
  font-size: 11.5px;
  line-height: 1.55;
}
.gc-messages::-webkit-scrollbar { width: 6px; }
.gc-messages::-webkit-scrollbar-thumb { background: var(--gc-accent-soft); border-radius: 3px; }

.gc-msg {
  display: block;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gc-text);
  word-break: break-word;
}
.gc-msg:hover { background: rgba(255,255,255,.035); }

.gc-msg-time { color: #6b7280; font-size: 10.5px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.gc-msg-title-img, .gc-msg-title-video {
  width: 14px; height: 14px; border-radius: 50%;
  object-fit: cover; background: #0a0a0a;
  vertical-align: -2px; margin-right: 2px; display: inline-block;
}
.gc-msg-title-emoji { display: inline-block; font-size: 10.5px; margin-right: 2px; vertical-align: baseline; }
.gc-msg-nick {
  font-weight: 700; color: var(--gc-accent); cursor: pointer;
  white-space: nowrap;
}
.gc-msg-nick:hover { text-decoration: underline; }
.gc-msg-colon { color: #888; margin: 0 4px 0 1px; }
.gc-msg-text { color: var(--gc-text); white-space: pre-wrap; display: inline; }

.gc-msg-sys .gc-msg-nick, .gc-msg-welcome .gc-msg-nick { color: #ffaa55; }
.gc-msg-sys .gc-msg-text, .gc-msg-welcome .gc-msg-text { color: #ffd9a0; font-style: italic; }


.gc-msg-jackpot {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin: 1px 0;
}
.gc-msg-jackpot[data-tier="big"]      { background: linear-gradient(90deg, rgba(255,215,0,.10), rgba(255,215,0,.02)); border-left: 2px solid rgba(255,215,0,.55); }
.gc-msg-jackpot[data-tier="big"] .gc-msg-text { color: #ffe066; }
.gc-msg-jackpot[data-tier="mega"]     { background: linear-gradient(90deg, rgba(255,140,0,.16), rgba(255,140,0,.03)); border-left: 2px solid rgba(255,140,0,.65); }
.gc-msg-jackpot[data-tier="mega"] .gc-msg-text { color: #ffaa55; }
.gc-msg-jackpot[data-tier="jackpot"]  { background: linear-gradient(90deg, rgba(255,60,60,.18), rgba(255,60,60,.04)); border-left: 2px solid rgba(255,80,80,.7); }
.gc-msg-jackpot[data-tier="jackpot"] .gc-msg-text { color: #ff8a8a; }
.gc-msg-jackpot[data-tier="super"]    { background: linear-gradient(90deg, rgba(186,85,255,.22), rgba(186,85,255,.05)); border-left: 2px solid rgba(220,120,255,.75); animation: gc-pulse 2s ease-in-out infinite; }
.gc-msg-jackpot[data-tier="super"] .gc-msg-text { color: #e0aaff; text-shadow: 0 0 6px rgba(220,120,255,.5); }
@keyframes gc-pulse {
  0%, 100% { box-shadow: inset 0 0 12px rgba(186,85,255,.12); }
  50%      { box-shadow: inset 0 0 22px rgba(220,120,255,.28); }
}


.gc-reactions { display: inline-flex; gap: 3px; flex-wrap: wrap; margin-left: 6px; vertical-align: middle; }
.gc-reaction {
  font-size: 10px; padding: 0 5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; cursor: pointer; user-select: none;
  line-height: 16px; display: inline-block;
}
.gc-reaction:hover { background: var(--gc-accent-soft); }
.gc-reaction.gc-reacted { background: var(--gc-accent-soft); border-color: var(--gc-accent); color: var(--gc-accent); }
.gc-reaction-add {
  font-size: 11px; padding: 0 5px; opacity: 0;
  background: transparent; border: 1px dashed rgba(255,255,255,.18);
  border-radius: 8px; cursor: pointer;
  line-height: 16px; display: inline-block; margin-left: 3px;
  transition: opacity .12s;
}
.gc-msg:hover .gc-reaction-add { opacity: .55; }
.gc-reaction-add:hover { opacity: 1 !important; background: rgba(255,255,255,.05); }
.gc-reaction-picker {
  display: flex; gap: 3px; padding: 5px;
  background: rgba(20,16,8,.95); border: 1px solid var(--gc-accent-soft);
  border-radius: 8px;
  position: absolute; z-index: 10000;
}
.gc-reaction-picker button { width: 24px; height: 24px; padding: 0; background: none; border: none; cursor: pointer; font-size: 16px; }
.gc-reaction-picker button:hover { background: var(--gc-accent-soft); border-radius: 4px; }


.gc-quick {
  display: flex; gap: 5px; padding: 5px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.gc-quick::-webkit-scrollbar { display: none; }
.gc-quick button {
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--gc-accent-soft);
  color: var(--gc-text);
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.gc-quick button:hover { background: var(--gc-accent-soft); }


.gc-input-row {
  display: flex; gap: 6px; padding: 6px 8px;
  border-top: 1px solid var(--gc-accent-soft);
  background: var(--gc-bg-input);
}
.gc-input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 12px;
  outline: none;
}
.gc-input:focus { border-color: var(--gc-accent); }
.gc-send {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gc-accent), rgba(0,0,0,0.5));
  border: none; color: #fff;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.gc-send:active { transform: scale(.95); }


.gc-mini-card {
  position: fixed;
  z-index: 10001;
  background: rgba(15,18,30,.97);
  border: 1px solid var(--gc-accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 200px; max-width: 240px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
  color: var(--gc-text);
  font-size: 12px;
}
.gc-mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gc-mini-avatar { width: 36px; height: 36px; border-radius: 50%; background: #333; object-fit: cover; border: 1px solid var(--gc-accent-soft); }
.gc-mini-nick { font-weight: 700; font-size: 14px; color: var(--gc-accent); }
.gc-mini-row { display: flex; justify-content: space-between; padding: 2px 0; color: #ccc; }
.gc-mini-row b { color: #fff; }
.gc-mini-close { position: absolute; top: 4px; right: 6px; background: none; border: none; color: #888; cursor: pointer; }


.gc-jump-new {
  position: absolute; bottom: 84px; right: 10px;
  background: var(--gc-accent); color: #000;
  padding: 4px 9px; border-radius: 12px;
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  border: none; display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.gc-jump-new.gc-show { display: block; }


@media (max-width: 900px) {
  .gc-panel {
    top: auto; bottom: 0; right: 0;
    width: 100%; height: 70vh;
    border-left: none;
    border-top: 1px solid var(--gc-accent-soft);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .gc-panel.gc-open { transform: translateY(0); }
  .gc-panel.gc-compact { height: 38vh; }
  .gc-fab { bottom: 76px; right: 12px; width: 48px; height: 48px; font-size: 20px; }
}
@media (max-height: 500px) and (max-width: 900px) {
  .gc-panel { height: 90vh; }
  .gc-panel.gc-compact { height: 50vh; }
}
