html { min-height: 100vh; }
body { font-family: Arial, sans-serif; margin: 0; background: #f6f6f6; min-height: 100%; }
    header { padding: 16px 20px; background: #111; color: #fff; }
#last110Clock { transition: opacity 200ms ease; }


.instructors { width: 100%; height: 100px; min-height: 100px; text-align: center; }
.showTopic { width: 100%; text-align: center; padding-bottom: 20px; font-size: 1.5em; height: 52px; }

#roundStartOverlay.hide {
  opacity: 0;
  transition: opacity 150ms ease-out;  /* quick fade-out */
}


		
		body.preload #last110Clock {
  transition: none !important;
}


    .answerPanel, .answerPanel button, .answerPanel input { margin-left: auto; margin-right: auto; }
    .answerPanel input { margin-left: auto; margin-right: auto; max-width: 80%; }
    .chat-img { padding-top: 4px; }
    .fixchatdock { width: 100% !important; }
    .msgheader { margin:40px 0 5px 0; }
    .msgseparate { margin:14px 0; }
    #PointContainer { visibility: hidden; }
    .pointContainer { visibility: hidden; }
    
    /* Base: make both inputs clearly different even unfocused */
#answerInput {
  border: 2px solid rgba(0, 220, 255, 0.55);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
#chatInput {
  border: 2px solid rgba(255, 120, 0, 0.55);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* The “I’M ACTIVE” effect */
@keyframes neonPulse {
  0%   { box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 10px rgba(0, 220, 255, 0.35); }
  50%  { box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 22px rgba(0, 220, 255, 0.65); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0), 0 0 10px rgba(0, 220, 255, 0.35); }
}

@keyframes neonPulseChat {
  0%   { box-shadow: 0 0 10px rgba(0, 0, 255, 0.50); }
  50%  { box-shadow: 0 0 22px rgba(0, 0, 255, 0.60); }
  100% { box-shadow: 0 0 10px rgba(0, 0, 255, 0.50); }

}

#answerInput:focus {
  outline: none;
  animation: neonPulse 1.1s infinite;
  border-color: rgba(0, 220, 255, 0.95);
}

#chatInput:focus {
  outline: none;
  animation: neonPulseChat 1.1s infinite;
  border-color: rgba(60, 60, 205, 0.4);

}



    
    
    /* Force one-row: input takes remaining space, send stays fixed */
.acr-chatRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: nowrap !important;  /* override existing wrap */
}

/* Input wrapper becomes the positioning context */
.acr-chatInputWrap{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

/* Make room inside the input for the embedded emoji button */
#chatInput,
#chatInputMirror{
  padding-right: 48px !important;
      background-color: #000011; 
    color: white;
}

/* The emoji wrap is now INSIDE inputWrap, so position it like an "in-input" icon */
.acr-chatInputWrap .acr-emojiWrap{
  position:absolute;
  right:10px;
  top:50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* Style the emoji button to feel like an input icon, not a chunky button */
#acrEmojiBtn{
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 0px solid rgba(255,255,255,0.0);
  background: rgba(255,255,255,0.08);
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
    filter: invert(1) hue-rotate(180deg); 
     filter: saturate(0%);
}

/* Place the emoji panel relative to the input */
#acrEmojiPanel{
  right: 0;
  bottom: 46px;
}

/* Make Send behave nicely */
#btnSend{
  flex: 0 0 auto;
  white-space: nowrap;
}





    .wrap {
  display: grid;
  grid-template-columns: 360px 1fr;

  gap: 16px;
  padding: 16px;

  /* 👇 add these */
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

/* 1) Stop the page from becoming the scroller */
html, body {
  height: 100%;
  overflow: hidden;
}

/* 2) Make the main two-column app fill the viewport (minus header) */
.wrap {
  height: calc(100vh - 84px); /* adjust 84px if your header is different */
  overflow: hidden;
}

/* 3) Ensure both panels are allowed to shrink and let inner areas scroll */
#leftPanel, #rightPanel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}



#leftLobbyUI {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#roomList {
  flex: 1;
  min-height: 0;
  overflow: auto;
}






    .card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 14px; }
    label { display:block; font-size: 12px; margin-top: 10px; color:#333; }
    input, select, button { width:100%; padding: 10px; margin-top: 6px; box-sizing: border-box; }
    button { cursor:pointer; }
    .row { display:flex; gap:10px; margin-top:10px; }
    .row button { width: 50%; }
    .ok { color: #1a7f37; font-weight: bold; }
    .bad { color: #b42318; font-weight: bold; }
    #log { background:#0b0b0b; color:#d6d6d6; padding:10px; height:240px; overflow:auto; font-family: Consolas, monospace; font-size:12px; border-radius: 6px; }
    #chatLog { background:#fff; border:1px solid #ddd; border-radius: 6px; padding:10px; height: 58vh; min-height:320px; overflow:auto; }
    .msg { margin: 6px 0; }
    .meta { color:#666; font-size: 12px; }
      /* RAGE banner */
    .rage-banner{
      width: 100%;
      max-width: 98% !important;
      border-radius: 14px;
      padding: 14px 16px;
      margin: 0px 0 12px 0;
      display:flex;
      align-items:flex-start;
      justify-content:center;
      gap:14px;
      background: linear-gradient(135deg, rgba(255,75,75,0.15), rgba(255,180,75,0.10), rgba(110,120,255,0.10));
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 10px 28px rgba(0,0,0,0.22);
      position: relative;
      overflow:hidden;
      text-align:center;
    }
    .rage-banner::before{
      content:"";
      position:absolute;
      inset:-80px;
      background: radial-gradient(circle at 30% 30%, rgba(255,90,90,0.30), transparent 55%),
                  radial-gradient(circle at 70% 40%, rgba(255,190,90,0.18), transparent 60%),
                  radial-gradient(circle at 50% 80%, rgba(120,130,255,0.14), transparent 60%);
      filter: blur(10px);
      opacity: 0.9;
      transform: translateZ(0);
      animation: rageAmbient 8s ease-in-out infinite;
    }
    @keyframes rageAmbient{
      0%{ transform: translate3d(-1%, -1%, 0) scale(1.02); opacity:0.85;}
      50%{ transform: translate3d(1%, 1%, 0) scale(1.06); opacity:0.95;}
      100%{ transform: translate3d(-1%, -1%, 0) scale(1.02); opacity:0.85;}
    }

    /* Triggered on value changes */
    .rage-banner.rage-flash{
      animation: rageFlash 0.9s ease-out 1;
    }
    @keyframes rageFlash{
      0%{ box-shadow: 0 0 0 rgba(0,0,0,0.0), 0 10px 28px rgba(0,0,0,0.22); transform: translateY(0); }
      20%{ box-shadow: 0 0 22px rgba(255,80,140,0.45), 0 0 46px rgba(90,190,255,0.35), 0 14px 34px rgba(0,0,0,0.30); transform: translateY(-1px); }
      100%{ box-shadow: 0 0 0 rgba(0,0,0,0.0), 0 10px 28px rgba(0,0,0,0.22); transform: translateY(0); }
    }
    .rage-label{
      font-size: 12px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.75);
      z-index:1;
      user-select:none;
    }
    .rage-value{
    max-width: 100% !important; 
      font-size: 46px;
      font-weight: 700;
      line-height: 1.1;
      z-index:1;
      text-shadow: 0 6px 20px rgba(0,0,0,0.35);
      word-break: break-word;
    }
    .rage-pop{
      animation: ragePop 420ms cubic-bezier(.2,.9,.2,1) 1,
                 rageGlow 900ms ease-out 1;
    }
    @keyframes ragePop{
      0%{ transform: translateY(6px) scale(0.98); opacity: 0.2;}
      55%{ transform: translateY(-2px) scale(1.04); opacity: 1;}
      100%{ transform: translateY(0) scale(1); opacity: 1;}
    }
    @keyframes rageGlow{
      0%{ filter: drop-shadow(0 0 0 rgba(255,120,90,0)); }
      30%{ filter: drop-shadow(0 0 12px rgba(255,120,90,0.55)); }
      100%{ filter: drop-shadow(0 0 0 rgba(255,120,90,0)); }
    }


    /* ===== RAGE banner (above chat) ===== */
    .rage-banner{
      width:100%;
      border-radius:14px;
      padding:14px 16px;
      margin:0px 0 12px 0;
      display:flex;
      align-items:flex-start;
      justify-content:center;
      gap:14px;
      background: linear-gradient(135deg, rgba(255,75,75,0.15), rgba(255,180,75,0.10), rgba(110,120,255,0.10));
      border:1px solid rgba(0,0,0,0.08);
      box-shadow:0 10px 28px rgba(0,0,0,0.12);
      position:relative;
      overflow:hidden;
      text-align:center;
    }
    .rage-label{
      font-size:12px;
      letter-spacing:0.22em;
      text-transform:uppercase;
      color:rgba(0,0,0,0.55);
      user-select:none;
      z-index:1;
    }
    .rage-value{
      font-size:46px;
      font-weight:700;
      line-height:1.1;
      z-index:1;
      word-break:break-word;
    }



/* Left-panel controls */
.controls { margin-top: 10px; display: grid; gap: 8px; }
.controls select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.controls .checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; user-select: none; }
    /* Answer submit bar */
    .answerPanel{
      display:flex;
      gap:10px;
      align-items:flex-start;
      margin:2px 0 6px 0;
    }
    #answerInput{
      flex:1;
      padding:10px 12px;
      font-size:16px;
      border:1px solid #ccc;
      border-radius:8px;
      min-width: 200px;
    }
    #answerSubmitBtn{
      padding:10px 14px;
      font-size:14px;
      border:1px solid #999;
      border-radius:8px;
      background:#f5f5f5;
      cursor:pointer;
      width:150px;
      flex:0 0 auto;
    }
    #answerSubmitBtn:disabled{
      opacity:0.55;
      cursor:not-allowed;
    }

/* ===== Fixes (GPT) ===== */
*, *::before, *::after { box-sizing: border-box; }

.rage-banner{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Top controls row (right panel) */
.topControls{ margin-bottom: 10px; }
.controlsRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.controlsGroup{ min-width: 180px; }

#hdrPlayersBtn { display: none;} 
/* Mobile: stack with right panel first, then left panel below */
@media (max-width: 900px){
#hdrPlayersBtn { display: inline-flex;} 
  .wrap{
    grid-template-columns: 1fr;
  }
  .rightPanel{ grid-column: 1; grid-row: 1; }
  .leftPanel{ grid-column: 1; grid-row: 2; }
  #chatLog{ height: 46vh; min-height: 260px; }
  #log{ height: 180px; }
  .answerPanel{ flex-direction: column; align-items: stretch; }
  #answerSubmitBtn{ width: 100%; }
}
/* ===== REAL MOBILE FULL-WIDTH FIX (replacement) ===== */
@media (max-width: 900px){

  html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Kill desktop grid behavior so the UI isn't "shrunk" on phones */
  .wrap{
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 12px !important;
  }


  .rightPanel { order: 1 !important; }
  .leftPanel  { order: 2 !important; }
  /* Force cards to be phone-width */
  .leftPanel,
  .rightPanel{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  
  
 


  /* Make the rage banner truly edge-to-edge inside its card */
  #rageBanner,
  .rage-banner{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent flex containers from compressing */
  .topControls,
  .answerPanel,
  #chatLog,
  #debugWrap,
  #log{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Inputs + buttons go full width */
#answerInput,
#chatInput,
#answerSubmitBtn{
  width: 100% !important;
  max-width: 100% !important;

  }
  


  /* Keep nice stacking spacing */
  .answerPanel{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
}

/* ===== Emoji rendering fix (Windows/Chrome) =====
   Put emoji-capable fonts FIRST so Windows doesn't fall back to monochrome symbol fonts. */
#chatLog, #chatLog .msg, #chatLog .msg * {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji",
               system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-emoji: emoji;
}

/* Ensure emoji inherit a visible color when rendered as text glyphs */
#chatLog { color: #111; }


/* --- emoji rendering fallback (fix tofu squares) --- */
body, input, button, textarea, select {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* Ensure hidden UI really stays hidden */
.acr-hidden { display: none !important; }

/* Simple modal styling for vote panel */
.acr-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}
.acr-modal .acr-modal-inner {
  width: min(620px, 94%);
  max-width: (720px, 94%);
  max-height: 70vh;
  min-height: 55vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 14px 14px 10px 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  margin-left: 1%; margin-top: 10px;
}
.acr-modal .acr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.acr-modal .acr-modal-title { font-weight: 700; font-size: 18px; }
.acr-modal .acr-modal-close {
  border: 1px solid #ccc;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.acr-vote-list { display: flex; flex-direction: column; gap: 8px; }
.acr-vote-item {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.acr-vote-item:hover { background: #fafafa; }
.acr-vote-meta { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.acr-vote-selected { border-color: #7aa7ff; background: #f3f7ff; }


/* ===== Room list (stacked buttons) ===== */
.acr-roomList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 5px;
  padding-left: 0px;
}

.acr-roomList.acr-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.acr-roomEmpty {
  font-size: 13px;
  opacity: 0.75;
  padding: 10px 8px;
}


.acr-roomBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  cursor: pointer;
}

.theme-arcade #usernameRow > label { color: white; }
.theme-arcade .acr-roomBtn { background: #eeeeff; }

.theme-arcade .acr-modal-inner { background: #111111; color: white;  }
.theme-dark .acr-modal-inner { background: #111111; color: white;  }
.theme-dark .acr-vote-list  { background: transparent; color: white; border-radius: 12px; text-align: center;}


.acr-vote-item { background: rgba(255,000,0,0.9);  }
.acr-vote-item:hover { background: rgba(0,0,100,0.5); }
.acr-vote-item:active { background: yellow; }
.acr-vote-item:selected { background: orange; }
.acr-vote-item:focus { background: pink; }


.acr-roomBtn:hover {
  background: rgba(0,0,0,0.03);
}

.theme-dark .acr-roomBtn:hover {
  background: rgba(255,255,255,0.8);
}

.theme-arcade .acr-roomBtn:hover {
  background: rgba(235,255,255,1);
}

.acr-roomBtn:active {
  transform: translateY(1px);
}

.acr-roomBtnTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.acr-roomBtnName {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acr-roomBtnIcons {
  font-size: 16px;
  line-height: 1;
}

.acr-roomBtnCount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 999px;
  padding: 4px 8px;
  flex: 0 0 auto;
}

.theme-dark .acr-roomBtnActive {
  border-color: rgba(122,167,255,0.9);
  background: rgba(212,227,255,0.9);
}


.acr-roomBtnActive {
  border-color: rgba(122,167,255,0.9);
  background: rgba(122,167,255,0.14);
}


/* ===== Emoji rendering (Twemoji + fallback fonts) ===== */
body, input, button, select, textarea {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.12em;
}


/* --- Mirror-only tweaks: prevent emoji margins from pushing caret, and hide native caret --- */
#chatInputMirror img.emoji{
  margin-right: 0; /* keep caret snug against last emoji */
}



/* ===== Casino-style Rage reels ===== */
.rage-value { display:flex; justify-content:center; }
.rage-reels{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap: .06em;
  flex-wrap:wrap;
}
.rage-reel-ch, .rage-reel-punct{
  display:inline-block;
  min-width: .75ch;
  text-align:center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  letter-spacing: .06em;
}
.rage-reel-ch{
  will-change: transform;
}


/* ===== VLT slot tiles for Rage ===== */
.rage-banner{
  padding: 18px 18px;
}

.rage-machine{
  width: 100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.rage-reels-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.20));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.theme-light .rage-reels-wrap{
  background: transparent; 
  box-shadow: none;
  
}
.theme-arcade .rage-reels-wrap{
  background: linear-gradient(180deg, rgba(205,155,255,0.10), rgba(0,0,0,0.20));
}

.rage-reels{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap: 12px;
}

.theme-arcade .rage-reel{  background: linear-gradient(180deg, rgba(30,20,95,0.92), rgba(12,16,64,0.96)); }
.theme-blue .rage-reel{  background: linear-gradient(180deg, rgba(45,45,255,0.92), rgba(45,45,255,0.92));  }
.theme-arcade .rage-reel{  background: linear-gradient(180deg, rgba(0,0,02,0.92), rgba(0,10,30,0.92));  border: 2px solid rgba(55,155,155,0.44); }
.theme-arcade .rage-reel .letter {  color: white; }

.rage-reel{
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30,40,55,0.92), rgba(12,16,24,0.96));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.35),
    inset 0 18px 24px rgba(255,255,255,0.05),
    inset 0 -14px 18px rgba(0,0,0,0.35);
  overflow:hidden;
}

.rage-reel .mask{
  position:absolute;
  left:0; right:0;
  height: 28%;
  pointer-events:none;
  z-index: 2;
}
.rage-reel .mask.top{
  top:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.0));
}
.rage-reel .mask.bottom{
  bottom:0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.0));
}

.rage-reel .window{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  z-index: 1;
}

.rage-reel .letter{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  font-size: 88px;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 3px 0 rgba(0,0,0,0.40),
    0 10px 20px rgba(0,0,0,0.30);
  will-change: transform;
}

.rage-sep{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  font-size: 58px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 3px 0 rgba(0,0,0,0.45);
  padding: 0 2px;
  opacity: 0.1;
  display: none;
}

/* Responsive: shrink tiles on small screens */
@media (max-width: 900px){
  .rage-reel{ width: 110px; height: 110px; }
  .rage-reel .letter{ font-size: 74px; }
  .rage-sep{ font-size: 48px; }
}
@media (max-width: 560px){
  .rage-reels-wrap{ padding: 12px 12px; gap: 10px; }
  .rage-reel{ width: 92px; height: 92px; }
  .rage-reel .letter{ font-size: 62px; }
  .rage-sep{ font-size: 40px; }
}


/* ===== Rage banner as pure VLT machine (no old gradient bar) ===== */
.rage-banner{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.rage-banner::before{
  display:none !important;
}
.rage-banner.rage-empty{
  display:none !important;
}


/* ===== Emoji picker ===== */
.acr-emojiWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#acrEmojiBtn{
  border: 1px solid rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.00);
  background: transparent;
  border-radius: 10px;
  padding: 0px 10px 6px 10px;
  cursor: pointer;
  line-height: 1;
  font-size: 20px;
}
#acrEmojiBtn:hover{ background: rgba(0,0,0,0.03); }

#acrEmojiPanel{
  position: absolute;
  bottom: 44px;
  right: 0;
  width: 280px;
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  padding: 10px;
  display: none;
  z-index: 50;
}

#acrEmojiPanel.acr-open{ display: block; }

.acr-emojiGrid{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.acr-emojiCell{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
  font-size: 20px;
}
.acr-emojiCell:hover{ background: rgba(0,0,0,0.06); }

.acr-emojiHeader{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.acr-emojiClose{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 10px;
}
.acr-emojiClose:hover{ background: rgba(0,0,0,0.06); }
/* ===== Chat input Twemoji mirror (fix “blank emoji while typing”) ===== */
.acr-chatRow{
  display:flex;
  gap:10px;
  margin-top:10px;
  align-items: stretch;
  flex-wrap: nowrap; /* NEVER wrap */
}



.acr-chatInputWrap{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 6px; /* match the base input margin-top */
}

/* The visible “rendered” layer */
#chatInputMirror{
  position:absolute;
  inset:0;
  display:block;
  padding: 10px;          /* match base input padding */
  box-sizing: border-box;
  border: 1px solid transparent; /* match input border width for caret alignment */
  border-radius: 6px;
  pointer-events:none;
  white-space: pre;
  line-height: 1.2;
  overflow:hidden;
  z-index:1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
}



.acr-mirrorCaret{
  display:inline-block;
  width:1px;
  height:1.2em;
  background:#111;
  vertical-align:-0.12em;
  animation: acrCaretBlink 1s steps(2,start) infinite;
}
@keyframes acrCaretBlink { to { visibility:hidden; } }
#chatInputMirror.acr-placeholder{
  opacity: 0.6;
}

/* The real input (typing layer) */
#chatInput{
  position:relative;
  z-index:2;
  margin-top: 0 !important;    /* margin moved to wrapper */
  background: transparent;      /* let mirror show through */
  color: transparent;           /* hide glyphs that Windows can’t render */
  -webkit-text-fill-color: transparent;
  caret-color: transparent;            /* keep caret visible */
  line-height: 1.2;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
}

/* Make placeholder visible (since input text is transparent) */
#chatInput::placeholder{
  color: #777;
  opacity: 1;
}


.acr-chatInputWrap{
  flex: 1 1 auto;
  min-width: 0;
}

#btnSend{
  flex: 0 0 84px;
  width: 84px;
  white-space: nowrap;
}






/* Right panel splash (shown when not in a room) */
.acr-splash{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 28px 18px;
  min-height: 520px; /* tweak if you want */
}

.acr-splash-inner{
  max-width: 560px;
}

.acr-splash-title{
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.acr-splash-sub{
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.acr-splash-status{
  font-size: 13px;
  opacity: 0.75;
}










@media (max-width: 560px){
  .acr-chatRow{ flex-direction: column; align-items: stretch; }
  .acr-emojiWrap{ align-self: flex-end; }
}

#btnSend{
  flex: 0 0 54px;
  width: 54px;
  white-space: nowrap;
}


/* ONE-ROW RAGE TILES OVERRIDE */
#rageBanner.rage-banner{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#rageBanner .rage-reels-wrap{
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* prevent bleed/wrap */
}

#rageBanner .rage-reels{
  width: 100%;
  display: flex;
  flex-wrap: nowrap !important; /* NEVER allow 2 rows */
  justify-content: center;
  align-items: center;
  gap: var(--rage-gap, 10px);
}

#rageBanner .rage-reel{
  width: var(--rage-tile, 132px);
  height: var(--rage-tile, 132px);
  flex: 0 0 var(--rage-tile, 132px);
}

#rageBanner .rage-sep{
  flex: 0 0 auto;
  font-size: var(--rage-sep, 26px);
  line-height: 1;
  margin: 0 -4px;
}

#rageBanner .rage-reel .window{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#rageBanner .rage-reel .letter{
  font-size: var(--rage-font, 86px);
  line-height: 1;
}







/* ===== Fancy minimal header ===== */
.acr-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 18px;

  background: rgba(17,17,17,0.92);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.acr-header-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.acr-logo{
  height: 46px;
  width: auto;
  display:block;
}

.acr-brand{
  display:flex;
  flex-direction:column;
  line-height: 1.1;
  min-width: 0;
}

.acr-title{
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acr-subtitle{
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acr-header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.acr-iconBtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  padding: 0;
}
.acr-iconBtn:hover{ background: rgba(255,255,255,0.10); }
.acr-iconBtn:active{ transform: translateY(1px); }

.acr-iconBtn svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Optional dropdown menu */
.acr-headerMenu{
  position: fixed;
  top: 70px;
  right: 18px;
  width: 200px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  padding: 8px;
  z-index: 1100;
}
.acr-menuItem{
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.acr-menuItem:hover{ background: rgba(255,255,255,0.08); }


/* Header Leave button: only visible when in a room */
#hdrLeaveBtn { display: none; }
#hdrLeaveBtn.is-on { display: inline-flex; }

/* Make it a wide, colorful pill */
#hdrLeaveBtn {
  padding: 0;                /* pill handles padding */
  border: 0;
  background: transparent;
}

#hdrLeaveBtn .acr-leavePill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 19px 14px;
  border-radius: 999px;

  /* "danger" gradient vibe */
  background: linear-gradient(135deg, #101060, #101060);
  color: #111;

  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
}

#hdrLeaveBtn .acr-leaveIcon {
  width: 18px;
  height: 18px;
  color: rgba(0,0,0,0.85);
  color: rgba(255,255,255,0.85);
}

#hdrLeaveBtn .acr-leaveText {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: white;
}

#hdrLeaveBtn:hover .acr-leavePill {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#hdrLeaveBtn:active .acr-leavePill {
  transform: translateY(0px);
  filter: brightness(0.98);
}


/* Pill-style header button (does NOT use the 40x40 icon button sizing) */
.acr-pillBtn{
  display: none;              /* hidden by default */
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.acr-pillBtn.is-on{
  display: inline-flex;       /* visible only when in-room */
  align-items: center;
}

/* (your existing pill styling can stay the same) */
#acrLeaveBtn, #hdrLeaveBtn { /* optional safety if you changed ids before */ }




/* Header Leave button: only visible when in a room */
#hdrLeaveBtn { display: none; }
#hdrLeaveBtn.is-on { display: inline-flex; }



/* Mobile: only logo + hamburger (title if there’s room) */
@media (max-width: 650px){
  .acr-desktopOnly{ display:none !important; }
  .acr-subtitle{ display:none; }
  .acr-title{ font-size: 18px; }
}

@media (max-width: 420px){
  .acr-brand{ display:none; } /* ultra small: just logo + hamburger */
}


/* ===== Status pill ===== */
.acr-statusPill{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
  user-select: none;
  margin-top: 5px;
  color: white;
}

.acr-status-offline{
  background: rgba(255, 72, 72, 0.18);
  border-color: rgba(255, 72, 72, 0.35);
  color: #ffd0d0;
}

.acr-status-connected{
  background: rgba(72, 255, 190, 0.16);
  border-color: rgba(72, 255, 190, 0.35);
  color: #c8ffef;
}

.acr-status-inroom{
  background: rgba(170, 115, 255, 0.18);
  border-color: rgba(170, 115, 255, 0.35);
  color: #ead8ff;
}

/* ===== Slide-in drawer menu ===== */
body.acr-lock { overflow: hidden; }

.acr-drawerOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  opacity: 0;
  transition: opacity 220ms ease;
  
}

.acr-drawerOverlay.acr-open{ opacity: 1; }

.acr-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(300px, 90vw);
  background: rgba(18,18,18,0.98);
  border-left: 1px solid rgba(255,255,255,0.10);
  box-shadow: -24px 0 60px rgba(0,0,0,0.5);
  z-index: 1200;

  transform: translateX(105%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.acr-drawer.acr-open{ transform: translateX(0); }

.acr-drawerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.acr-drawerBrand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.acr-drawerLogo{
  height: 44px;
  width: auto;
  display:block;
}

.acr-drawerBrandText{
  min-width: 0;
}

.acr-drawerTitle{
  color:#fff;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acr-drawerSub{
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acr-drawerClose{
  background: rgba(255,255,255,0.06);
}

.acr-drawerStatus{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 0 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.acr-drawerRoom{
  color: rgba(255,255,255,0.72);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
  text-align: right;
}

.acr-drawerContent{
  padding: 12px 0;
  flex: 1;
  overflow: auto;
  color: white;
}

.acr-drawerHint{
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.35;
}

.acr-drawerNav{
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding-top: 10px;
}

.acr-drawerItem{
  width: 100%;
  text-align:left;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  font-weight: 700;
}

.acr-drawerItem:hover{ background: rgba(255,255,255,0.10); }
.acr-drawerItem:active{ transform: translateY(1px); }

.acr-drawerSep{
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 6px 0;
}



/* ===== Drawer settings controls ===== */
.acr-settingRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}
.acr-settingText{ min-width: 0; }
.acr-settingLabel{ font-weight: 900; font-size: 13px; margin-bottom: 2px; }
.acr-settingSub{ font-size: 12px; opacity: 0.85; }

.acr-select{
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  color: #fff;
  outline: none;
}
.acr-select:focus{
  border-color: rgba(255,255,255,0.28);
}

/* ===== Themes ===== */
/* Light is basically your current look. */
body.theme-light{
  background: #f3f4f6;
  color: #111;
}

/* Dark */
body.theme-dark{
  background: #0b0d10;
  color: #e8e8e8;
}
body.theme-light .acr-settingText{
color: white;
}

body.theme-dark .card{
  background: #101419;
  border-color: rgba(255,255,255,0.10);
  color: #e8e8e8;
}
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select{
  background: #0f1318;
  color: #e8e8e8;
  border-color: rgba(255,255,255,0.14);
}
body.theme-light select{
  background: #2f3338;
  color: #e8e8e8;
  border-color: rgba(255,255,255,0.14);
}
body.theme-dark #chatLog .msg { color: white; }
body.theme-blue #chatLog .msg,
body.theme-arcade #chatLog .msg { color: white; }

body.theme-blue #chatLog,
body.theme-arcade #chatLog{
  background: #000005;
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark #chatLog{
  background: #0f1318;
  border-color: rgba(255,255,255,0.10);
}


/* White caret in chat input for dark-ish themes */
#theme-blue #chatInput,
#theme-dark #chatInput,
#theme-arcade #chatInput {
  caret-color: #fff;
}



body.theme-dark .acr-drawer{
  background: #0e1217;
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark .acr-drawerItem{
  border-color: rgba(255,255,255,0.10);
}

/* Arcade (neon-ish accents, dark base) */
body.theme-blue {
  background:   linear-gradient(135deg, rgba(0,0,50,1), rgba(0,0,5,1), rgba(0,0,0,1));
  color: #f2f2f2;
}
body.theme-arcade{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(153,66,255,0.22), rgba(0,0,0,0) 60%),
              radial-gradient(1000px 500px at 90% 20%, rgba(0,255,209,0.14), rgba(0,0,0,0) 55%),
              #07080b;
  color: #f2f2f2;
}
body.theme-blue .card,
body.theme-arcade .card{
  background: rgba(15,18,26,0.92);
  border-color: rgba(140,92,255,0.22);
  color: #f2f2f2;
  box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}
body.theme-blue input,
body.theme-arcade input,
body.theme-blue textarea,
body.theme-arcade textarea,
body.theme-blue select,
body.theme-arcade select{
  background: rgba(10,12,18,0.92);
  color: #f2f2f2;
  border-color: rgba(0,255,209,0.22);
}
body.theme-arcade .acr-statusPill{
  border-color: rgba(0,255,209,0.25);
}
body.theme-arcade .acr-drawer{
  background: rgba(10,12,18,0.98);
  border-color: rgba(0,255,209,0.18);
}
body.theme-arcade .acr-drawerItem:hover{
  background: rgba(0,255,209,0.08);
}





/* Drawer icon SVG (fix for ⚙️ not rendering) */
.acr-drawerItem{
  display:flex;
  align-items:center;
  gap: 10px;
}

.acr-drawerIcon{
  display:inline-flex;
  width: 20px;
  justify-content:center;
}

.acr-drawerIcon svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}











/* Put this on the container that holds rage + submit, so the overlay can anchor */
#rageWrap, .rageWrap {
  position: relative;
}

/* The overlay itself */
.nextRoundOverlay{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  pointer-events: all; /* blocks clicks while visible */
  
}

.nextRoundOverlay.is-on{
  display: flex;
}

.nextRoundOverlay__card{
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);

}

/* =========================
   Round start overlay
   Visible only briefly at start of each round (e.g., 120->118)
   ========================= */


/* Anchor the overlay to ONLY the top gameplay area */
#rightTopArea{
  position: relative;
}

/* Overlay now covers only #rightTopArea (not chat) */
.round-overlay{
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.round-overlay.is-visible{
  opacity: 1;
  pointer-events: auto; /* blocks clicks only in the top area */
}

.round-overlay-inner{
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 85%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}




.round-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Dim + blur */
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
 border-radius: 16px !important;
  transition: opacity 500ms ease;
}

.round-overlay.is-visible {
  opacity: 1;
  pointer-events: auto; /* blocks clicks on the panel while visible */
}

.round-overlay-inner {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 85%;
  /* readable on any theme */
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* =========================
   Winner / Intermission overlay (bigger + "lower half" mock sponsor)
   ========================= */

/* Only when JS toggles .is-intermission on #roundOverlayInner */
.round-overlay-inner.is-intermission{
  width: min(920px, 92%);
  max-width: 920px;
  max-height: 86%;
  padding: 18px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;

  /* neon-arcade feel */
  background: rgba(6, 6, 12, 0.72);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 10px 32px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.35) inset;
}

.winner-block{
  padding: 6px 4px 2px;
}

.winner-block #roundOverlayLine1{
  font-size: 16px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.winner-block #roundOverlayLine2{
  font-size: 20px;
  margin-top: 6px;
}

.winner-block #roundOverlayLine3,
.winner-block #roundOverlayLine4{
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
}

.winner-ad{
  width: 100%;
}

.winner-ad-shell{
  width: 100%;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: stretch;
  gap: 14px;

  /* faux gradient border via background layers */
  background:
    linear-gradient(rgba(10,10,16,0.92), rgba(10,10,16,0.92)) padding-box,
    linear-gradient(135deg,
      rgba(0,255,255,0.65),
      rgba(255,0,255,0.55),
      rgba(255,255,0,0.40)
    ) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.45),
    0 0 22px rgba(0,255,255,0.08),
    0 0 22px rgba(255,0,255,0.06);
}

.winner-ad-logo{
  width: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 18px rgba(0,255,255,0.10);
}

.winner-ad-main{
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.winner-ad-toprow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.winner-ad-brand{
  font-weight: 800;
  letter-spacing: 0.3px;
  opacity: 0.95;
  font-size: 8px;
display: none;
}

.winner-ad-badge{
  font-size: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.6px;
display: none;
}

.winner-ad-headline{
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

.winner-ad-body{
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.35;
}

/* Image-based mock ad body */
.acr-adImg{
  display:block;
  width:100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 18px rgba(0,255,255,0.08), 0 0 18px rgba(255,0,255,0.06);
}

.winner-ad-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.winner-ad-cta{
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
max-width: 75%;
}

.winner-ad-cta:hover{
  transform: translateY(-1px);
}

.winner-ad-meta{
  font-size: 11px;
  opacity: 0.75;
  text-align: right;
  padding-right: 4px;
}

@media (max-width: 520px){
  .winner-ad-shell{ flex-direction: column; }
  .winner-ad-logo{ width: 100%; min-width: 0; }
  .winner-ad-footer{ flex-direction: column; align-items: flex-start; }
  .winner-ad-meta{ text-align: left; }
}












#roomPlayerList .acr-playerRow{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
}

#roomPlayerList .acr-playerRow:hover{
  background: rgba(255,255,255,0.06);
}

#roomPlayerList .acr-playerDot{
  width:10px;
  height:10px;
  border-radius:999px;
  flex: 0 0 auto;
}

/* Online/offline dot states */
#roomPlayerList .acr-playerDot.is-online{
  background: rgba(120,255,170,0.95);
}

#roomPlayerList .acr-playerDot.is-offline{
  background: rgba(255,90,110,0.9);
  box-shadow: 0 0 0 3px rgba(255,90,110,0.14);
  animation: acrDotBeat 2.4s infinite ease-in-out;
  opacity: 0.85;
}

@keyframes acrDotBeat{
  0%   { transform: scale(1);   filter: brightness(0.95); }
  40%  { transform: scale(1.14); filter: brightness(1.1); }
  70%  { transform: scale(1.05); filter: brightness(1.0); }
  100% { transform: scale(1);   filter: brightness(0.95); }
}

@keyframes acrDotPulse{
  0%   { transform: scale(1);   filter: brightness(1); }
  50%  { transform: scale(1.18); filter: brightness(1.2); }
  100% { transform: scale(1);   filter: brightness(1); }
}

/* Subtle offline row */
#roomPlayerList .acr-playerRow.acr-offline{
  opacity: 0.62;
}

/* Tiny CONNECTED tag that fades out */
#roomPlayerList .acr-playerStatusTag{
  margin-left: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(120,255,170,0.12);
  color: rgba(160,255,210,0.92);
  border: 1px solid rgba(120,255,170,0.22);
}

#roomPlayerList .acr-playerStatusTag.is-flash{
  animation: acrTagFade 4.5s forwards ease-out;
}

@keyframes acrTagFade{
  0%   { opacity: 0; transform: translateY(2px); }
  10%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

#roomPlayerList .acr-playerName{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Collapse CONNECTED tag after it fades so it doesn't steal width from the name */
#roomPlayerList .acr-playerStatusTag{
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  padding: 0;
  margin-left: 0;
  border-width: 0;
  opacity: 0;
}

/* Only expand while flashing */
#roomPlayerList .acr-playerStatusTag.is-flash{
  animation: acrTagFadeCollapse 4.5s forwards ease-out;
}

@keyframes acrTagFadeCollapse{
  0%   { opacity: 0; max-width: 0;   padding: 0;      margin-left: 0; border-width: 0; transform: translateY(2px); }
  10%  { opacity: 1; max-width: 160px; min-width: 90px; padding: 2px 6px; xmargin-left: 4px; border-width: 1px; transform: translateY(0); text-align: center; }
  70%  { opacity: 1; max-width: 160px; min-width: 90px;  padding: 2px 6px; x	margin-left: 4px; border-width: 1px; text-align: center;}
  100% { opacity: 0; max-width: 0;   padding: 0;      margin-left: 0; border-width: 0; }
}






#roomPlayerList .acr-playerMeTag{
  margin-left:auto;
  font-size:11px;
  font-weight:800;
  opacity:0.7;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.acr-playerPointsTag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  opacity: 0.95;
}
#roomPlayerList .acr-playerRow.acr-me{
  background: rgba(170,115,255,0.10);
}



/* White caret for dark themes (this is the FAKE caret in #chatInputMirror) */
body.theme-dark .acr-mirrorCaret,
body.theme-arcade .acr-mirrorCaret{
  background: #fff !important;
}







/* Right-panel bottom dock: chat input (65%) + players (35%) */
.acr-chatDock{
  display: flex;
  gap: 12px;
  align-items: stretch;
}

/* Chat dock spacing */
.acr-chatDock-left{
  padding-top: 20px;
}

.acr-chatDock-left{
  flex: 1 1 auto;
  min-width: 0;
}

.acr-chatDock-right{
  flex: 0 0 35%;
  min-width: 240px;
}



/* Simple card look for the new right-side panel */
.acr-sideCard{
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(250,250,250,0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.acr-sideCard-title{
  font-weight: 800;
  margin-bottom: 8px;
}

/* Make the list scroll inside the panel */
.acr-sideCard #roomPlayerList{
  flex: 1;
  min-height: 0;
  overflow: auto;
}



.theme-light .acr-sideCard { 
  background: rgba(240,240,245,0.85);
}


.theme-dark .acr-sideCard { 
  background: rgba(0,0,5,0.15);
}

.theme-arcade .acr-sideCard { 
  background: rgba(50,50,55,0.15);
  border: 1px solid rgba(135,85,205,0.40);
}


/* Mobile: stack (chat above, players below) */
@media (max-width: 900px){
  .acr-chatDock{
    flex-direction: column;
  }
  .acr-chatDock-left,
  .acr-chatDock-right{
    height: auto;
  }
  .acr-chatDock-right{
    min-width: 0;
  }
}







/* Make the game panel a vertical layout */
#gamePanel{
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--playersPaneW, 280px);
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: stretch;
  min-height: 0; /* important so children can scroll correctly */
}


.chatSender {
  color: #88f5f9;
  font-weight: 700;
}



/* Players wrapper is the GRID ITEM, so it must do the spanning */
#playersPaneHost{
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 0;          /* allow internal scrolling */
  display: flex;          /* let inner card stretch */
}

/* Inner card fills the host */
#playersPane{
  height: 100%;
  width: 100%;
}



#rightTopArea{
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
}

/* Chat stays in the main column at the bottom */
.acr-chatDock{
  grid-column: 1;
  grid-row: 2;
}

/* Players sits on the right side of the main panel */

/* Mobile: stack gameplay -> chat -> players */
@media (max-width: 900px){
  #gamePanel{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  #rightTopArea{ grid-column: 1; grid-row: 1; }
  .acr-chatDock{ grid-column: 1; grid-row: 2; }
  #playersPane{ grid-column: 1; grid-row: 3; }
}


/* Pin the whole chat dock to the bottom */
#gamePanel .acr-chatDock{
  margin-top: auto;
}



/* Give the right panel a stable height so "bottom" exists */
@media (min-width: 901px){
  #gamePanel{
    min-height: calc(90vh - 84px); /* subtract header height-ish */
  }
}



/* --- Make LEFT Chat Log stretch to bottom like Players pane --- */

/* left panel becomes a vertical layout */
.card.leftPanel{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* when in-room UI is shown, force it to be a flex column too */
#leftRoomUI {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}


/* keep it hidden when it’s supposed to be hidden */
/* make the room card fill remaining height */
#leftRoomUI .roomHudCard{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* make the log itself fill the remaining space */
#roomChatLog,
#chatLog{
  flex: 1;
  min-height: 0;
  height: auto !important;   /* kills any old vh heights */
  overflow: auto;
}








#answerSubmitBtn { max-width: 150px; border-radius: 20px; background-color: #dddddd; color: black; border-image: none !important; border-image-width: 0px !important; border-width: 0px !important;} 
#answerChangeBtn { max-width: 150px; border-radius: 20px; background-color: #33aa33; color: white; border-image: none !important; border-image-width: 0px !important; border-width: 0px !important;} 








.acr-rangeWrap{
  display:flex;
  align-items:center;
  gap: 10px;
}

.acr-range{
  width: 140px;
}

.acr-rangeRead{
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  min-width: 44px;
  text-align:right;
}

/* Simple toggle */
.acr-toggle{
  position: relative;
  display:inline-flex;
  align-items:center;
}

.acr-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.acr-toggleUi{
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
  transition: transform 160ms ease, background 160ms ease;
}

.acr-toggleUi::after{
  content:"";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  position:absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left 160ms ease;
}

.acr-toggle input:checked + .acr-toggleUi{
  background: rgba(255,255,255,0.24);
}

.acr-toggle input:checked + .acr-toggleUi::after{
  left: 21px;
}




/* Stop the sounds slider from spilling/creating a weird extra bar */
#hdrDrawerContent { overflow: hidden; }
#hdrDrawerContent input[type="range"] { width: 100%; max-width: 100%; display: block; }

#hdrDrawerContent { overflow-x: hidden; }
.acr-drawerNav { overflow: hidden; }


/* Drawer content: only scroll vertically, never show horizontal bar */
.acr-drawerContent{
  overflow-y: auto;
  overflow-x: hidden;
}







/* FORCE selected vote styling (must be AFTER any .acr-vote-item background rules) */
.acr-vote-item.acr-vote-selected{
  background: #f3f7ff !important;
  border-color: #7aa7ff !important;
}

/* if you want a darker selected look in dark theme */
.theme-dark .acr-vote-item.acr-vote-selected,
.theme-arcade .acr-vote-item.acr-vote-selected{
  background: rgba(0,160,20,1) !important;
  border-color: rgba(167,255,122,0.85) !important;
}





/* Voting options (these are the divs you click) */
.acr-vote-item{
  background: rgba(25,0,160,0.8) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 12px;
}

/* Selected vote */
.acr-vote-item.acr-vote-selected{
  background: rgba(0,255,0,0.85) !important;
  border-color: rgba(100,255,160,0.75) !important;
}




.acr-vote-meta { display: none !important; }
#hdrDrawerContent select {margin-left: 0px !important; }



/* .noSelfVote { opacity: .45; filter: grayscale(1); cursor: not-allowed; } */

.noSelfVote { opacity: .45; filter: cursor: not-allowed; }
.noSelfVote {
  opacity: .45;
  cursor: not-allowed;
  }

.selfVoteBadge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}

.voteShade {
  display: block;
  margin: 8px 0 0;
  opacity: .75;
  font-size: 13px;
  text-align: center;
}

#voteList > div {  text-align: center;}




.selfVoteBadge{
  margin-left: 8px;
  font-size: 12px;
  opacity: .9;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}






.resultRow {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.resultVotes {
  font-weight: bold;
  text-align: center;
}

.resultText {
  overflow-wrap: anywhere;
}

.resultOwner {
  opacity: 0.7;
  text-align: right;
}











.acrResultOwner { font-weight: 800; padding-right: 20px; }
.acrResultRow { margin-bottom: 5px; padding-bottom: 5px; border-bottom: 3px solid white; margin-left: 10%; margin-right: 10%; padding-top: 5px; margin-top: 15px; }
#LastWinnerName { padding-bottom: 40px; font-size: 1.3em; margin-bottom: 40px; }
#AcroWinners { padding-top: 50px; margin-top: 50x; } 














/* ===== Rage banner: auto-fit tiles to available width (prevents cutoff at 6 letters) ===== */
#rageBanner .rage-machine,
#rageBanner .rage-reels-wrap,
#rageBanner .rage-reels{
  max-width: 100%;
  min-width: 0; /* important in flex/grid parents */
}

/* Use the JS-provided --reel-count to compute a tile size that always fits one row */
#rageBanner .rage-reels{
  --gap: 12px;
  --tile-max: 132px; /* keeps 4-letter looking perfect on desktop */
  --tile-min: 78px;  /* floor so it never becomes tiny */
  --count: var(--reel-count, 4);
  
  
  
  /* tile = clamp(min, (available width - gaps)/count, max) */
  --tile: clamp(
    var(--tile-min),
    calc((100% - ((var(--count) - 1) * var(--gap))) / var(--count)),
    var(--tile-max)
  );

  display: flex;
  justify-content: center;
  gap: var(--gap);
  width: 100%;
}






/* Scale letter size with tile size so 6 letters doesn’t feel “squished” */
#rageBanner .rage-reels .rage-reel .letter{
  font-size: calc(var(--tile) * 0.66) !important;
  line-height: 1;
}

/* Optional: slightly tighter gaps on smaller screens */
@media (max-width: 900px){
  #rageBanner .rage-reels{ --gap: 10px; --tile-min: 70px; }
  
  

  
  
}
@media (max-width: 560px){
  #rageBanner .rage-reels{ --gap: 8px; --tile-min: 62px; }
}

/* ==========================================================
   DESKTOP (>=901px) LOCK: always show REEL LETTER BOXES
   Fixes: "back to dashes" / letters invisible on wide screens
   ========================================================== */
@media (min-width: 901px){
  /* Kill any decorative dash/scanline rails that can cover the letters */
  .rage-banner::before,
  .rage-banner::after{
    content: none !important;
    display: none !important;
  }

  /* Make sure the value area has real height so reels can't collapse */
  #rageValue,
  .rage-value{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: var(--reel-size, 58px) !important;
    padding: 8px 0 !important;
    line-height: 1 !important;
    font-size: 0 !important; /* hides any placeholder dashes text */
  }

  /* Force reels visible and above any backdrop */
  #rageValue .rage-reels,
  .rage-value .rage-reels{
    display: flex !important;
    gap: clamp(8px, 0.9vw, 12px) !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 3 !important;
  }

  /* Ensure each reel has a stable, readable box size on desktop */
  #rageValue .rage-reel,
  .rage-value .rage-reel{
    width: var(--reel-size, 58px) !important;
    height: var(--reel-size, 58px) !important;
    min-width: var(--reel-size, 58px) !important;
    min-height: var(--reel-size, 58px) !important;
  }

  #rageValue .rage-reel-letter,
  .rage-value .rage-reel-letter{
    opacity: 1 !important;
    transform: none !important;
  }
}





/* =========================================================
   DESKTOP REELS: force REAL square tiles (no stretching)
   Only affects >= 900px (mobile stays as-is)
   ========================================================= */
@media (min-width: 900px) {

  /* Center the whole reel block */
  #rageBanner #rageValue,
  #rageValue {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Make the reel row NOT stretch to full width */
  #rageBanner #rageValue .rage-reels,
  #rageValue .rage-reels {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;

    width: auto !important;        /* key: stop "fill the row" stretching */
    max-width: 100% !important;
    gap: clamp(10px, 1.2vw, 16px) !important;
    padding: 10px 12px !important;
  }

  /* HARD FORCE: each tile must be square and must NOT flex-grow */
  #rageBanner #rageValue .rage-reels .rage-reel,
  #rageValue .rage-reels .rage-reel {
    flex: 0 0 auto !important;     /* key: prevents wide/flat tiles */
    width: clamp(76px, 6vw, 120px) !important;
    height: clamp(76px, 6vw, 120px) !important;
    aspect-ratio: 1 / 1 !important;
  }

  /* Make the letter scale nicely with the tile */
  #rageBanner #rageValue .rage-reels .rage-reel .letter,
  #rageValue .rage-reels .rage-reel .letter {
    font-size: clamp(42px, 3.2vw, 76px) !important;
    line-height: 1 !important;
  }
}



/* === Mobile: move the header to a fixed footer (<= 900px) === */
@media (max-width: 900px){

  /* Turn the sticky top header into a fixed bottom bar */
  .acr-header{
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;

    /* keep it above content */
    z-index: 1200;

    /* visual: footer-style edge */
    border-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.08);

    /* iPhone safe area */
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /*
    Optional but recommended:
    Give the page some breathing room so the footer doesn't cover the very bottom UI.
    (Keyboard can still cover it — this just prevents "always covered" when keyboard is hidden.)
  */
  body{
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  /* If you ever use the optional header dropdown menu, anchor it above the footer on mobile */
  .acr-headerMenu{
    top: auto;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  
  #leftPanel { padding-left: 5%; padding-right: 5%; }
  
}





/* Vote modal confined to game area + no “centered offscreen” on mobile */
#rightTopArea{ position: relative; }

#rightTopArea #voteModal.acr-modal{
  position: absolute;    /* overrides fixed */
  inset: 0;
  display: flex;
  align-items: flex-start;   /* key: stop vertical centering */
  justify-content: center;
  padding: 10px;
}

#rightTopArea #voteModal .acr-modal-inner{
  width: min(620px, 96%);
  max-height: calc(100% - 20px); /* key: fit inside rightTopArea */
  min-height: 0;                  /* key: remove 50vh constraint */
  margin: 0;                      /* remove odd offsets */
  overflow: auto;
}











/* --- Desktop (keep your current behavior) --- */
html, body { height: 100%; overflow: hidden; }

/* --- Mobile fix --- */
@media (max-width: 900px) {
  /* Let the page scroll again on mobile (prevents keyboard + address bar weirdness) */
  html, body {
    height: auto;
    overflow: auto;
  }

  /* Use dynamic viewport height so the layout doesn't get "stuck" */
  .wrap {
    height: auto;            /* stop forcing calc(100vh - header) on mobile */
    min-height: 100dvh;      /* dynamic viewport height (handles address bar) */
    overflow: visible;
  }

  /* Make panels behave normally on mobile */
  #leftPanel, #rightPanel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* Keep chat log scrollable when it needs to be */
  #chatLog {
    max-height: 45dvh;       /* tweak if you want: 40–60dvh */
    overflow: auto;
  }

  /* Give breathing room for iPhone safe area */
  #chatDock, #chatInputRow {
    padding-bottom: env(safe-area-inset-bottom);
  }
}


#leftLobbyUI button { min-height: 40px; }


a.btnSecondary {
  text-decoration: none;
}

a.btnSecondary {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btnSecondary {
  padding: 10px 14px;
  border-radius: 3px;
  background: #ddd;
  color: #111;
  font-weight: 400;
font-size: 0.75em;
}

.rfloat { float: right; }
.lfloat { float: left; padding-top: 10px;} 

.player-badge-og {
    vertical-align: middle;
    image-rendering: auto;
    filter: drop-shadow(0 0 2px rgba(0, 200, 255, 0.6));
}




.player-badge{
  display:inline-flex;
  align-items:center;
  position:relative;
  line-height:0;
  cursor:help;
}

.player-badge__img{
  width:36px;           /* adjust 20–50px */
  height:auto;
  display:block;
}

/* Tooltip bubble */
.player-badge::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  bottom:calc(100% - 8px);
  transform:translateX(-50%);
  padding:12px 10px;
  border-radius:10px;

  background:rgba(10,12,20,0.92);
  color:#fff;
  font-size:12px;
  white-space:nowrap;

  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
  transform:translateX(-50%) translateY(4px);
  z-index:9999;

  /* subtle neon vibe */
  box-shadow:0 0 10px rgba(0,200,255,0.25), 0 0 14px rgba(255,0,200,0.18);
  border:1px solid rgba(255,255,255,0.12);
}

/* Tooltip little arrow */
.player-badge::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 2px);
  transform:translateX(-50%);
  width:0; height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:6px solid rgba(10,12,20,0.92);

  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease;
  z-index:9999;
}

.player-badge:hover::after,
.player-badge:hover::before{
  opacity:1;
}


.avatarWrap{
  width:120px;
  height:120px;
  border-radius:50%;
  overflow:hidden;        /* <-- hard clip */
  position:relative;
  display:inline-block;
  background: transparent;
}

/* the photo */
.avatarWrap .profile-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.06);  /* <-- still helps */
  display:block;
}


.playerListAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;

  /* optional subtle neon ring */
  box-shadow: 0 0 6px rgba(0,200,255,0.25), 0 0 8px rgba(255,0,200,0.18);
}



.acr-playerAvatarWrap{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.acr-playerAvatar{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}


.chatAvatar{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}



.acrModal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.acrModalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
}

.acrModalCard{
  position: relative;
  margin: 10vh auto 0 auto;
  width: min(420px, calc(100vw - 28px));
  background: rgba(12,14,22,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 0 18px rgba(0,200,255,0.25), 0 0 22px rgba(255,0,200,0.18);
  overflow:hidden;
}

.acrModalClose{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 20px;
  cursor:pointer;
}

.acrModalBody{ padding: 18px; }

.acrProfileHeader{
  display:flex;
  gap: 14px;
  align-items:center;
}

.acrProfileAvatarWrap{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  flex: 0 0 64px;
  box-shadow: 0 0 10px rgba(0,200,255,0.25), 0 0 12px rgba(255,0,200,0.18);
}

#acrProfileAvatar{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.06);
  display:block;
}

.acrProfileName{
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.acrProfileTag{
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
}

.acrProfileSoon{
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.65;
}













.acrModal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.acrModalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
}

.acrModalCard{
  position: relative;
  margin: 10vh auto 0 auto;
  width: min(420px, calc(100vw - 28px));
  background: rgba(12,14,22,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 0 18px rgba(0,200,255,0.25), 0 0 22px rgba(255,0,200,0.18);
  overflow:hidden;
}

.acrModalClose{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 20px;
  cursor:pointer;
line-height: 0px;
}

.acrModalBody{ padding: 18px; }

.acrProfileHeader{
  display:flex;
  gap: 14px;
  align-items:center;
}

.acrProfileAvatarWrap{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  flex: 0 0 64px;
  box-shadow: 0 0 10px rgba(0,200,255,0.25), 0 0 12px rgba(255,0,200,0.18);
}

#acrProfileAvatar{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.06);
  display:block;
}

.acrProfileName{
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.acrProfileTag{
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
}

.acrProfileSoon{
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.65;
}




.acr-playerAvatar { cursor: pointer; }


.profile-dm-btn {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  cursor: pointer;
  font-size: 13px;
}

.profile-dm-btn:hover {
  background: #333;
}



.email-required-badge {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;

  background: #ff3b3b;
  color: #fff;

  vertical-align: middle;
}

.add-email-btn {
  border-color: #ff3b3b;
}
	
