html[data-ct-game] #crazytime-game-home,
html[data-ct-game] .ct-native-volume,
html[data-ct-game] .ct-native-volume * {
  box-sizing: border-box;
}

#crazytime-game-home {
  position: fixed;
  z-index: 90;
  left: max(8px, env(safe-area-inset-left));
  display: inline-flex;
  width: max-content;
  max-width: calc(100vw - 16px);
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(16, 19, 24, 0.88);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.3);
  color: #fff;
  font: 700 12px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

#crazytime-game-home[data-obscured="true"] {
  visibility: hidden;
  pointer-events: none;
}

#crazytime-game-home > span {
  font-size: 17px;
  line-height: 1;
}

#crazytime-game-home > strong {
  font: inherit;
}

#crazytime-game-home:hover,
#crazytime-game-home:focus-visible {
  border-color: rgba(105, 174, 255, 0.8);
  background: rgba(20, 121, 237, 0.94);
}

#crazytime-game-home:focus-visible,
.ct-native-volume-trigger:focus-visible,
.ct-native-volume-popover input:focus-visible {
  outline: 2px solid #8cc1ff;
  outline-offset: 2px;
}

.ct-native-volume {
  position: relative;
  z-index: 90;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  color: #fff;
  font: 700 11px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.ct-native-volume-trigger {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

html[data-ct-game="aviatrix"] .ct-native-volume-trigger {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(24, 18, 37, 0.62);
}

html[data-ct-game="aviatrix"] .ct-native-volume {
  margin-inline-start: 8px;
}

html[data-ct-game="only-match"] .ct-native-volume-trigger {
  height: 24px;
  border-color: rgba(221, 227, 242, 0.6);
  background: rgba(221, 227, 242, 0.15);
}

.ct-native-volume-trigger:hover,
.ct-native-volume[data-open="true"] .ct-native-volume-trigger {
  background: rgba(47, 140, 255, 0.78);
}

.ct-native-volume-bars {
  display: inline-flex;
  height: 14px;
  align-items: flex-end;
  gap: 2px;
}

.ct-native-volume-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ct-native-volume-bars i:nth-child(1) { height: 5px; }
.ct-native-volume-bars i:nth-child(2) { height: 9px; }
.ct-native-volume-bars i:nth-child(3) { height: 13px; }

.ct-native-volume-popover {
  position: absolute;
  z-index: 91;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  grid-template-columns: minmax(92px, 1fr) 34px;
  width: 152px;
  min-height: 46px;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(14, 17, 22, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.ct-native-volume[data-open="true"] .ct-native-volume-popover {
  display: grid;
}

.ct-native-volume[data-placement="top"] .ct-native-volume-popover {
  top: auto;
  bottom: calc(100% + 8px);
}

.ct-native-volume-popover input {
  width: 100%;
  min-width: 0;
  height: 26px;
  margin: 0;
  accent-color: #2f8cff;
  cursor: pointer;
}

.ct-native-volume-value {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 600px) {
  #crazytime-game-home {
    height: 34px;
    padding-right: 11px;
    border-radius: 8px;
    font-size: 11px;
  }

  .ct-native-volume-trigger {
    width: 26px;
    height: 26px;
  }

  html[data-ct-game="aviatrix"] .ct-native-volume {
    margin-inline-start: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #crazytime-game-home,
  .ct-native-volume-trigger {
    transition: none;
  }
}
