.bookmark-static-page {
  --bookmark-header-height: clamp(58px, 4.6875vw, 78px);
  --bookmark-header-bg: #030411;
  --bookmark-header-line: rgba(185, 118, 255, 0.22);
  --bookmark-purple: #9b42ff;
  --bookmark-purple-bright: #c06cff;
  --bookmark-gold: #f7b92e;
  --bookmark-brand-mask-width: 0;
  --bookmark-brand-mask-height: 0;
}

.bookmark-page-canvas,
.bookmark-static-main {
  position: relative;
}

.bookmark-page-canvas {
  overflow: hidden;
}

.bookmark-static-frame {
  width: 100%;
  padding-top: var(--bookmark-header-height);
  overflow: hidden;
}

.bookmark-static-frame .bookmark-page-image {
  display: block;
  width: 100%;
  height: auto;
  margin: calc(var(--bookmark-header-height) * -1) auto 0;
  padding: 0;
  border: 0;
}

.bookmark-live-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--bookmark-header-height);
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, #06081a, var(--bookmark-header-bg)),
    radial-gradient(circle at 22% 0%, rgba(96, 32, 180, 0.22), transparent 38%);
  border-bottom: 1px solid rgba(94, 55, 158, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.bookmark-live-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: var(--bookmark-brand-mask-width);
  height: var(--bookmark-brand-mask-height);
  background: var(--bookmark-header-bg);
  z-index: 1;
  pointer-events: none;
}

body[data-bookmark-active="browse"] {
  --bookmark-brand-mask-width: 0;
  --bookmark-brand-mask-height: 0;
}

.bookmark-games-page .bookmark-live-header::before {
  content: "";
  position: absolute;
  top: 100%;
  left: min(51.25vw, calc(100vw - 398px));
  width: min(326px, 21.4vw);
  height: min(242px, 15.8vw);
  background-image: url("/bookmark/assets/bookmark-games-approved.png?v=games-static-mask-1");
  background-size: 100vw auto;
  background-position: -29.3vw calc(-1 * var(--bookmark-header-height));
  border-bottom: 1px solid rgba(71, 48, 125, 0.34);
  border-left: 1px solid rgba(71, 48, 125, 0.22);
  border-right: 1px solid rgba(71, 48, 125, 0.22);
  border-radius: 0 0 14px 14px;
  pointer-events: none;
}

.bookmark-live-header__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: clamp(402px, 28vw, 520px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 1.8vw, 30px);
  padding: 0 clamp(14px, 1.9vw, 28px);
}

.bookmark-live-brand {
  justify-self: start;
  width: max-content;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 14px);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.bookmark-static-page .bookmark-live-brand img {
  width: clamp(232px, 18.5vw, 309px);
  height: auto;
  flex: 0 0 auto;
  max-width: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.bookmark-live-nav {
  min-width: 0;
}

.bookmark-live-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(5px, 1vw, 18px);
}

.bookmark-live-nav li {
  display: flex;
}

.bookmark-live-nav__item {
  position: relative;
}

.bookmark-live-nav a,
.bookmark-live-nav button {
  min-height: clamp(34px, 3vw, 42px);
  padding: 0 clamp(9px, 1vw, 15px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: clamp(0.72rem, 0.88vw, 0.95rem);
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.bookmark-live-search {
  --bookmark-search-width: 320px;
  --bookmark-search-collapsed-size: clamp(34px, 3vw, 42px);
  position: relative;
  flex: 0 0 var(--bookmark-search-collapsed-size);
  width: var(--bookmark-search-collapsed-size);
  height: var(--bookmark-search-collapsed-size);
  justify-content: flex-end;
  align-items: center;
  z-index: 12;
  overflow: visible;
}

.bookmark-live-search__shell {
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--bookmark-search-collapsed-size);
  max-width: var(--bookmark-search-collapsed-size);
  height: var(--bookmark-search-collapsed-size);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
  transition:
    width 180ms ease,
    max-width 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.bookmark-live-search:not(.is-open) .bookmark-live-search__shell {
  width: var(--bookmark-search-collapsed-size);
  max-width: var(--bookmark-search-collapsed-size);
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.bookmark-live-search.is-open .bookmark-live-search__shell {
  width: var(--bookmark-search-width);
  max-width: var(--bookmark-search-width);
  border-color: rgba(192, 108, 255, 0.28);
  background: rgba(9, 11, 24, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 26px rgba(0, 0, 0, 0.34);
}

.bookmark-live-search__toggle {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--bookmark-search-collapsed-size);
  width: var(--bookmark-search-collapsed-size);
  height: var(--bookmark-search-collapsed-size);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.bookmark-live-search__toggle svg {
  width: clamp(23px, 1.86vw, 28px);
  height: clamp(23px, 1.86vw, 28px);
  stroke: currentColor;
  stroke-width: 2.15;
  fill: none;
}

.bookmark-live-search__input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 0;
  max-width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: clamp(0.72rem, 0.88vw, 0.95rem);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 120ms ease;
}

.bookmark-live-search:not(.is-open) .bookmark-live-search__input {
  display: none;
}

.bookmark-live-search__input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.bookmark-live-search__input::-webkit-search-decoration,
.bookmark-live-search__input::-webkit-search-cancel-button,
.bookmark-live-search__input::-webkit-search-results-button,
.bookmark-live-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.bookmark-live-search__input:focus {
  outline: none;
}

.bookmark-live-search.is-open .bookmark-live-search__input {
  flex: 1 1 auto;
  width: auto;
  max-width: calc(var(--bookmark-search-width) - var(--bookmark-search-collapsed-size));
  padding: 0 8px 0 14px;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.bookmark-live-search__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: var(--bookmark-search-width);
  display: none;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(247, 185, 46, 0.18);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
}

.bookmark-live-search:not(.is-open) .bookmark-live-search__dropdown,
.bookmark-live-search__dropdown[hidden] {
  display: none !important;
}

.bookmark-live-search.is-open .bookmark-live-search__dropdown:not([hidden]) {
  display: grid;
}

.bookmark-live-search__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.bookmark-live-search__result {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  text-transform: none;
  background: transparent;
}

.bookmark-live-search__result:hover,
.bookmark-live-search__result:focus-visible,
.bookmark-live-search__result.is-active {
  color: #ffffff;
  background: rgba(247, 185, 46, 0.13);
  border-color: rgba(247, 185, 46, 0.36);
}

.bookmark-live-search__thumb {
  width: 42px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(26, 22, 49, 0.96), rgba(10, 12, 24, 0.96)),
    #0a0c18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bookmark-live-search__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bookmark-live-search__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bookmark-live-search__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
}

.bookmark-live-search__meta,
.bookmark-live-search__subline,
.bookmark-live-search__message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.bookmark-live-search__meta {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.bookmark-live-search__subline {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 650;
}

.bookmark-live-search__message {
  padding: 11px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.bookmark-live-games {
  position: relative;
}

.bookmark-live-games__toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.78;
}

.bookmark-live-games__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 40;
  width: min(340px, calc(100vw - 28px));
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(247, 185, 46, 0.18);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.bookmark-live-games__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.bookmark-live-games.is-open .bookmark-live-games__dropdown,
.bookmark-live-games:hover .bookmark-live-games__dropdown,
.bookmark-live-games:focus-within .bookmark-live-games__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bookmark-live-games__title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bookmark-live-games__divider {
  height: 1px;
  margin: 0 0 2px;
  background: linear-gradient(90deg, rgba(247, 185, 46, 0.86), rgba(247, 185, 46, 0.06));
}

.bookmark-live-nav .bookmark-live-games__option {
  min-height: 58px;
  justify-content: flex-start;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  text-transform: none;
}

.bookmark-live-games__option:hover,
.bookmark-live-games__option:focus-visible {
  color: #ffffff;
  background: rgba(247, 185, 46, 0.13);
  border-color: rgba(247, 185, 46, 0.36);
}

.bookmark-live-games__icon {
  width: 25px;
  flex: 0 0 25px;
  font-size: 1.12rem;
  line-height: 1;
}

.bookmark-live-games__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bookmark-live-games__copy strong {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.bookmark-live-games__copy span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
}

.bookmark-live-nav a:hover,
.bookmark-live-nav a:focus-visible,
.bookmark-live-nav button:focus-visible {
  color: #ffffff;
  background: rgba(133, 58, 232, 0.16);
  border-color: rgba(192, 108, 255, 0.28);
}

.bookmark-live-nav a:focus-visible,
.bookmark-live-nav button:focus-visible,
.bookmark-live-actions button:focus-visible {
  outline: 2px solid rgba(203, 122, 255, 0.95);
  outline-offset: 3px;
}

.bookmark-live-nav a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(119, 37, 218, 0.94), rgba(66, 20, 145, 0.94));
  border-color: rgba(214, 151, 255, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 16px rgba(157, 66, 255, 0.34);
}

.bookmark-live-nav button[aria-disabled="true"] {
  cursor: default;
  color: rgba(255, 255, 255, 0.74);
  opacity: 0.82;
}

.bookmark-live-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: clamp(7px, 0.85vw, 14px);
  position: relative;
  z-index: 2;
}

.bookmark-live-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bookmark-live-profile__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(190px, calc(100vw - 28px));
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(247, 185, 46, 0.18);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.bookmark-live-profile__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.bookmark-live-profile.is-open .bookmark-live-profile__dropdown,
.bookmark-live-profile:hover .bookmark-live-profile__dropdown,
.bookmark-live-profile:focus-within .bookmark-live-profile__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bookmark-live-profile__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  text-align: left;
}

.bookmark-live-profile__link:hover,
.bookmark-live-profile__link:focus-visible,
.bookmark-live-profile__link[aria-current="page"] {
  color: #ffffff;
  background: rgba(247, 185, 46, 0.13);
  border-color: rgba(247, 185, 46, 0.36);
}

.bookmark-live-profile__link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.58;
}

.bookmark-live-actions button {
  width: clamp(32px, 2.75vw, 42px);
  height: clamp(32px, 2.75vw, 42px);
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  opacity: 0.95;
}

.bookmark-live-actions button[aria-disabled="true"] {
  cursor: default;
}

.bookmark-live-cart {
  position: relative;
}

.bookmark-live-cart__badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bookmark-gold);
  color: #17081f;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 15px;
}

.bookmark-live-actions svg {
  width: clamp(17px, 1.42vw, 22px);
  height: clamp(17px, 1.42vw, 22px);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.bookmark-live-avatar {
  width: clamp(34px, 3.2vw, 48px);
  height: clamp(34px, 3.2vw, 48px);
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, #d99461 0 18%, #663117 19% 30%, transparent 31%),
    radial-gradient(circle at 50% 70%, #17111b 0 30%, #071024 31% 100%);
  box-shadow: 0 0 0 2px rgba(130, 57, 221, 0.32);
}

.bookmark-live-avatar span {
  width: 42%;
  height: 42%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .bookmark-live-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .bookmark-static-page .bookmark-live-brand img {
    width: clamp(58px, 9vw, 86px);
    height: auto;
    object-fit: cover;
    object-position: left center;
  }

  .bookmark-live-nav {
    justify-content: start;
    overflow: hidden;
  }

  .bookmark-live-nav__list {
    gap: 3px;
  }

  .bookmark-live-nav a,
  .bookmark-live-nav button {
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .bookmark-live-search {
    --bookmark-search-width: min(280px, 42vw);
  }

  .bookmark-live-games__dropdown {
    left: auto;
    right: 0;
    transform: translate(0, -4px);
  }

  .bookmark-live-games.is-open .bookmark-live-games__dropdown,
  .bookmark-live-games:hover .bookmark-live-games__dropdown,
  .bookmark-live-games:focus-within .bookmark-live-games__dropdown {
    transform: translate(0, 0);
  }

  .bookmark-live-actions {
    gap: 2px;
  }
}

@media (max-width: 660px) {
  .bookmark-static-page {
    --bookmark-header-height: 56px;
  }

  .bookmark-live-search {
    --bookmark-search-width: min(220px, 46vw);
  }

  .bookmark-live-actions button:nth-child(2),
  .bookmark-live-actions button:nth-child(3) {
    display: none;
  }

}
