:root {
  --border-radius: 0.75rem;
  --border-radius-button: 50px;
  --hero-height: 380px;
}

html,
body {
  scroll-behavior: smooth;
}

body.scroll-lock {
  overflow: hidden;
}

.site-header p {
  margin-top: 0.3rem;
}


.site-logo:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.gradient-text {
  background: var(--wp--preset--gradient--blush-light-purple);
  color: transparent !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.games-list ul,
.past-games-list,
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}

.past-games-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.games-list :where(.is-layout-flow) > * {
  margin-block-start: 0;
}

.game-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
}

.game-item:hover {
  border-color: var(--wp--preset--color--dra-games-neon);
  transition: border-color 0.2s ease;
}

.game-item__title {
  position: absolute;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: 12px;
  font-weight: 600;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0));
  color: #fff;
  padding: 0.5rem;
  margin: 0;
  text-align: start;
  z-index: 2;
}

.game-item__rating {
  line-height: 1;
  justify-content: center;
  display: inline-flex;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 3px;
  gap: 3px;
  background: #666666;
  border-bottom-right-radius: var(--border-radius);
  color: #fff;
  min-width: 44px;
  font-size: 12px;
}

.high-rating {
  background: #288832;
}

.game-item__rating.rating-icon::before {
  width: 12px;
    height: 12px;
}

.game-item__thumbnail {
  margin: 0;
}

.game-item__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.game-item__thumbnail img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.block-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1;
  border-radius: var(--border-radius);
}

.game-item:hover .block-video-preview {
  opacity: 1;
  visibility: visible;
}

.video-preview-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.video-preview-player::-webkit-media-controls {
  display: none;
}

.video-preview-player::-moz-media-controls {
  display: none;
}

.category-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  opacity: 1;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-icon {
  display: inline-flex;
  border: 1px solid var(--wp--preset--color--dra-games-border);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  border-radius: var(--border-radius);
  font-weight: 300;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.9);
}

.category-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.category-icon-image {
  width: 14px;
  height: 14px;
  object-fit: cover;
  border-radius: 50%;
  filter: invert(85%) sepia(0%) saturate(28%) hue-rotate(227deg) brightness(93%)
    contrast(88%);
}

.game-wrapper {
  margin-block-start: 0;
}

.game-of-day-section-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

#single-game {
  min-height: 0 !important;
  /* height: 90dvh; */
  max-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
}

.is-fullscreen #single-game {
  height: 100dvh;
  max-height: 100dvh;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.game-wrapper {
  flex: 1 1 auto;
  min-height: 0;
}

.is-fullscreen #single-game .game-wrapper {
  width: 100%;
  max-width: none;
  display: flex;
}

.wp-block-dra-games-game-iframe {
  /* position: relative; */
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.is-fullscreen .wp-block-dra-games-game-iframe {
  aspect-ratio: unset;
  border-radius: 0;
  height: 100%;
  width: 100%;
  max-width: none;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.is-fullscreen .game-iframe {
  width: 100%;
  height: 100%;
}

.wp-block-dra-games-game-iframe:fullscreen {
  aspect-ratio: unset;
  height: 100%;
  width: 100%;
}

.wp-block-dra-games-game-iframe:-webkit-full-screen {
  aspect-ratio: unset;
  height: 100%;
  width: 100%;
}

.wp-block-dra-games-game-iframe.is-active-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: unset !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
}

.game-header-wrapper {
  position: relative;
  width: 100%;
}

.game-header-sitename {
  left: 5px;
  display: inline-flex;
  z-index: 1;
}

.game-header-title {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-header-menu {
  right: 5px;
  display: inline-flex;
  z-index: 1;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

.game-header-menu:where(.is-layout-constrained) > * {
  margin-block-start: 0 !important;
}

.is-fullscreen
  .is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
}

.is-fullscreen .game-wrapper {
  padding: 0 !important;
}

.single-game-top-panel {
  background: transparent;
}

.is-fullscreen .single-game-top-panel {
  margin-bottom: 0 !important;
}

.wp-block-dra-games-custom-terms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.block-custom-terms-values {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.game-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-terms .wp-block-post-terms__separator {
  display: none;
}

.game-terms a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  gap: 0.5rem;
  padding: 4px 10px;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-blue) r g b / 0.3);
  background-color: rgb(
    from var(--wp--preset--color--dra-games-blue) r g b / 0.2
  );
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.kksr-legend {
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  font-weight: 600;
  font-size: 15px !important;
}

.kk-star-ratings .kksr-legend {
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

.block-custom-terms-caption,
.block-game-dates-caption {
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  font-weight: 500;
  font-size: 13px !important;
  line-height: 1;
}

.block-custom-terms-values,
.block-game-dates-values {
  display: inline-flex;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  font-size: 13px !important;
  font-weight: 300;
  line-height: 1;
}

.game_age_rating .block-custom-terms-values {
  display: inline-flex;
  align-items: center;
  border-radius: var(--border-radius);
  padding: 3px 6px;
  gap: 5px;
  line-height: 1;
  font-weight: 500;
  color: rgb(from limegreen r g b / 0.8);
  font-size: 12px !important;
  border: 1px solid rgb(from limegreen r g b / 0.8);
}

.single-game-categories .category-list {
  display: inline-flex;
  flex-wrap: wrap;
}

.taxonomy-post_tag {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.taxonomy-post_tag .wp-block-post-terms__separator {
  display: none;
}

.taxonomy-post_tag a {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 8px;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.3);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 300;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.9);
}

.taxonomy-post_tag a:hover {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.1
  );
  border-color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.5);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.icon:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 50%;
  filter: invert(85%) sepia(0%) saturate(28%) hue-rotate(227deg) brightness(93%)
    contrast(88%);
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}
.button-with-icon:hover::before {
  transform: scale(1.1);
}

.button-with-icon:hover {
  background: var(--wp--preset--gradient--custom-1);
  transition: background 0.2s ease;
}

.game-favorite-with-text .button-with-icon {
  width: auto;
  height: auto;
  padding: 8px 16px;
  color: rgb(250, 250, 250, 0.7);
  border-radius: var(--border-radius);
  gap: 5px;
}

.fullscreen-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.8);
  mask: url("../icons/arrows-fullscreen.svg");
  -webkit-mask: url("../icons/arrows-fullscreen.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tag-icon:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../icons/tags.svg");
  background-size: cover;
  margin-right: 5px;
}

.yoast-breadcrumbs {
  margin-block-start: 0;
  font-size: 14px;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  font-weight: 300;
}

.yoast-breadcrumbs span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb_last {
  font-weight: 400;
}

.yoast-breadcrumbs a {
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  text-decoration: none;
}

.yoast-breadcrumbs > span > span:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yoast-breadcrumbs > span > span:first-child a::before {
  content: "";
  width: 16px;
  height: 16px;
  mask: url("../icons/house-door.svg") no-repeat center;
  -webkit-mask: url("../icons/house-door.svg") no-repeat center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.6
  );
}

.social-icon:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
}

.social-icon:hover:before {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.7
  );
  transform: scale(1.1);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.block-share {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.block-share-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgb(250, 250, 250, 0.05);
  color: rgb(250, 250, 250, 0.7);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgb(250, 250, 250, 0.1);
  border-radius: var(--border-radius);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.game-favorite-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  mask: url(../icons/heart.svg);
  -webkit-mask: url(../icons/heart.svg);
  width: 16px;
  height: 16px;
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: rgba(255, 255, 255, 0.8);
}

.is-active .game-favorite-icon {
  mask: url(../icons/heart-fill.svg);
  -webkit-mask: url(../icons/heart-fill.svg);
  mask-size: contain;
  -webkit-mask-size: contain;
}

.block-share-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  mask: url(../icons/share.svg);
  -webkit-mask: url(../icons/share.svg);
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.gotd-share .block-share-caption {
  display: none;
}

.gotd-share .block-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 8px 16px;
  color: rgb(250, 250, 250, 0.7);
  border-radius: var(--border-radius);
  gap: 5px;
  border: 1px solid transparent;
}

.block-share-button-label {
  font-size: 14px;
  font-weight: 400;
}

.block-share-button:focus-visible,
.block-share-close:focus-visible,
.block-share-link:focus-visible {
  outline: 2px solid
    rgb(from var(--wp--preset--color--dra-games-accent) r g b / 0.9);
  outline-offset: 2px;
}

.block-share-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0px);
  z-index: 20;
  width: min(240px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.16);
  border-radius: var(--border-radius);
  background: #222222;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.block-share-popup.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.block-share-dialog-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.block-share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.06);
  color: transparent;
  cursor: pointer;
}

.block-share-close::before {
  content: "";
  width: 16px;
  height: 16px;
  mask: url("../icons/x-lg.svg") no-repeat center;
  -webkit-mask: url("../icons/x-lg.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.8
  );
}

.block-share-close:hover::before {
  background-color: #fff;
}

.block-share-dialog-title {
  padding-right: 48px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.block-share-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  padding-bottom: 0;
}

.block-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: transparent;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.12);
  border-radius: 50%;
  background: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.06);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.block-share-link:hover {
  transform: translateY(-2px);
  border-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.5
  );
  background: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.12);
}
.icon-vk:before {
  mask: url("../icons/vk-white.svg");
  -webkit-mask: url("../icons/vk-white.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-vk:hover:before {
  background-color: #0077ff;
  transition: background-color 0.2s ease;
}

.icon-ok:before {
  mask: url("../icons/ok-white.svg");
  -webkit-mask: url("../icons/ok-white.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-ok:hover:before {
  background-color: #ff8800;
  transition: background-color 0.2s ease;
}

.icon-tg::before {
  mask: url("../icons/tg-white.svg");
  -webkit-mask: url("../icons/tg-white.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-tg:hover:before {
  background-color: #0088cc;
  transition: background-color 0.2s ease;
}

.icon-max::before {
  mask: url("../icons/max-white.svg");
  -webkit-mask: url("../icons/max-white.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-max:hover:before {
  background: linear-gradient(
    90deg,
    #5a8cff -16.1%,
    #43d6ff 16.36%,
    #8f3fff 76.63%
  );
  transition: background-color 0.2s ease;
}

.icon-copy::before {
  mask: url("../icons/copy-white.svg");
  -webkit-mask: url("../icons/copy-white.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-copy:hover:before {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.9
  );
  transition: background-color 0.2s ease;
}

.block-share-copy.is-copied .icon-copy:before {
  background-color: #22c55e;
  transform: scale(1.08);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.block-share-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  padding: 6px 10px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.9
  );
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 10;
}

.block-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.block-share-caption {
  font-size: 14px;
  font-weight: 500;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
}

.main-header-search {
  min-width: 500px;
}

.wp-block-search__inside-wrapper {
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-button);
}

.wp-block-search__input {
  border: none;
  background: transparent;
  color: inherit;
}

.main-header-search .wp-block-search__button {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0 5px;
}

.mobile-search .wp-block-search__button {
  background: rgb(250, 250, 250, 0.1);
  padding: 5px 10px;
}

.mobile-search .wp-block-search__inside-wrapper {
  padding: 0;
  overflow: hidden;
}
.mobile-search .wp-block-search__input {
  padding-left: 10px;
}
.main-header-search .wp-block-search__inside-wrapper:focus-within {
  border-color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.7);
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.7);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

#categories-toggle button {
  background: rgb(from var(--wp--preset--color--dra-games-blue) r g b / 0.3);
  border: 1px solid rgb(250, 250, 250, 0.05);
  color: rgb(250, 250, 250, 0.9);
  font-size: 14px;
}

.wp-block-navigation .block-share-caption {
  display: none;
}

.icon-text {
  display: inline-flex !important;
}

.install-btn-wrapper button:hover {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.5
  ) !important;
  transition: background-color 0.2s ease;
}

.install-btn-wrapper button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 300;
}

/* Добавляем иконку ПЕРЕД текстом */
.install-btn-wrapper button::before {
  content: ""; /* Обязательное свойство */
  width: 16px;
  height: 16px;
  mask: url("../icons/pc.svg") no-repeat center;
  -webkit-mask: url("../icons/pc.svg") no-repeat center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
  display: inline-block;
  margin-right: 8px; /* Отступ между иконкой и текстом */
}

.how-play-link a,
.home-link a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 300;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.9);
  text-decoration: none;
}

.how-play-link a::before {
  content: "";
  width: 16px;
  height: 16px;
  mask: url("../icons/question-circle.svg") no-repeat center;
  -webkit-mask: url("../icons/question-circle.svg") no-repeat center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
  display: inline-block;
}

.home-link a::before {
  content: "";
  width: 16px;
  height: 16px;
  mask: url("../icons/house-door.svg") no-repeat center;
  -webkit-mask: url("../icons/house-door.svg") no-repeat center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
  display: inline-block;
}

.how-play-link a:hover::before,
.home-link a:hover::before {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.9
  );
  transition: background-color 0.2s ease;
}

.how-play-link a:hover,
.home-link a:hover {
  color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.9
  ) !important;
  transition: color 0.2s ease;
}

.game-modal-trigger {
  position: absolute;
  right: 0px;
  top: 0px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.game-item:hover .game-modal-trigger::after {
  background-color: white;
  transition: background-color 0.2s ease;
}

.game-modal-trigger::after {
  content: "";
  width: 20px;
  height: 20px;
  mask: url("../icons/info-circle-fill.svg") no-repeat center;
  -webkit-mask: url("../icons/info-circle-fill.svg") no-repeat center;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.6
  );
  display: inline-block;
}

.block-game-info-modal {
  inset: 0;
  margin: auto;
  width: 100%;
  max-height: 70%;
  margin-block-end: auto !important;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.2);
  background: #414143;
  border-radius: var(--border-radius);
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.9);
}

dialog::backdrop {
  backdrop-filter: blur(8px);
  /* Затемнение фона для лучшей читаемости */
  background-color: rgba(0, 0, 0, 0.4);
}

.game-info-title {
  font-size: 26px;
}

.game-info-description {
  font-weight: 300;
  line-height: 1.5;
}

.game-info-footer {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.game-info-footer-right {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.game-info-link {
  display: flex;
  align-items: center;
  border: 1px solid
    rgb(from var(--wp--preset--color--dra-games-accent) r g b / 0.6);
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.3
  );
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.9);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--border-radius);
  padding: 10px 40px;
  text-decoration: none;
  text-transform: uppercase;
}

.game-info-link::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
  mask: url("../icons/controller.svg") no-repeat center;
  -webkit-mask: url("../icons/controller.svg") no-repeat center;
  display: inline-block;
  margin-right: 8px;
}

.game-info-link:hover {
  background-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.6
  );
  border-color: rgb(
    from var(--wp--preset--color--dra-games-accent) r g b / 0.9
  );
  color: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.game-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.game-info-close::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: rgb(
    from var(--wp--preset--color--dra-games-text) r g b / 0.9
  );
  mask: url("../icons/x-lg.svg") no-repeat center;
  -webkit-mask: url("../icons/x-lg.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: background-color 0.2s ease;
}

.block-game-info-modal img {
  text-align: center;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.game-info-close:focus {
  outline: none;
}

.schema-faq-question {
  font-weight: 700;
}

.related-games-list .game-item__thumbnail {
  padding: 0;
  margin: 0;
}

.related-games-list .game-item__title {
  margin: 0;
}

.game-cover .game-item__thumbnail img {
  filter: brightness(0.6);
}

.content-center {
  justify-content: center;
}

.wp-block-yoast-faq-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Заголовок секции — если добавлен отдельно перед блоком */
.schema-faq + .faq-header,
.schema-faq::before {
  content: none;
}

/* Каждый блок вопрос-ответ */
.schema-faq-section {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 22px 18px 62px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.schema-faq-section:last-child {
  margin-bottom: 0;
}

.schema-faq-section:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.schema-faq-section.active {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.04);
}

/* Номер вопроса через CSS-счётчик */
.schema-faq {
  counter-reset: faq-counter;
}

.schema-faq-section {
  counter-increment: faq-counter;
}

.schema-faq-section::before {
  content: counter(faq-counter, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--geist);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
  z-index: 1;
}

.schema-faq-section.active::before {
  background: var(--wp--preset--gradient--custom-1);
  color: #fff;
}

/* Стрелка справа */
.schema-faq-section::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 23px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
  z-index: 1;
}

.schema-faq-section.active::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23818cf8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E");
}

/* Вопрос */
.schema-faq-question {
  display: block;
  font-family: var(--wp--preset--font-family--geist);
  font-size: var(--wp--preset--font-size--normal);
  font-weight: 500;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.7);
  line-height: 1.5;
  padding-right: 30px;
  transition: color 0.3s ease;
}

.schema-faq-section:hover .schema-faq-question {
  color: #ffffff;
}

.schema-faq-section.active .schema-faq-question {
  color: #ffffff;
}

/* Ответ — по умолчанию открыт */
.schema-faq-answer {
  font-family: var(--wp--preset--font-family--geist);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 300;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.8);
  line-height: 1.7;
  margin: 10px 0 0;
  max-height: 200px;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 1;
}

/* Скрытый ответ */
.schema-faq-section:not(.active) .schema-faq-answer {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.single-game-title {
  font-size: 14px;
  max-width: 80%;
  text-wrap: balance;
}

.kk-star-ratings .kksr-muted {
  display: none;
  opacity: 1;
}

.wp-block-dra-games-block-game-of-day-name {
  width: 90%;
}

.wp-block-dra-games-block-game-of-day-name p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
}

.wp-block-dra-games-block-gotd-latest {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--wp--preset--spacing--40);
  overflow: hidden;
  border: 1px solid rgb(250, 250, 250, 0.05);
  border-radius: var(--border-radius);
  background: rgb(0, 0, 0, 0.05);
}

.wp-block-dra-games-block-gotd-latest:hover {
  border-color: rgb(250, 250, 250, 0.1);
  background: rgb(0, 0, 0, 0.15);
  box-shadow: 0 0 10px 0 rgb(250, 250, 250, 0.1);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.gotd-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}

.gotd-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.gotd-title {
  font-size: 15px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 1; /* Современный стандарт */
  -webkit-line-clamp: 1; /* Поддержка старых браузеров */
  overflow: hidden;
  color: var(--wp--preset--color--dra-games-text);
}

.wp-block-dra-games-block-game-of-day {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: var(--hero-height);
  gap: 2rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.gotd-label {
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgb(250, 250, 250, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgb(from var(--wp--preset--color--dra-games-purple) r g b / 0.6) 25%,
    rgb(from var(--wp--preset--color--dra-games-purple) r g b / 0.9) 50%,
    rgb(from var(--wp--preset--color--dra-games-purple) r g b / 0.6) 75%
  );
  background-size: 200% 100%;
  animation: shimmerAnimation 4s infinite linear;
  box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmerAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.game-of-the-day-image {
  flex-shrink: 0;
  overflow: hidden;
    width: 100%;
    height: auto;
}

.game-of-the-day-image img {
  position: relative;
  width: 100%;
  display: block;
  object-fit: cover;
  z-index: 0;
}

.game-of-the-day-details {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  flex: 1;
  z-index: 2;
}

.today {
  padding: 5px 10px;
  border: 1px solid var(--wp--preset--color--dra-games-blue);
  color: var(--wp--preset--color--dra-games-blue);
  font-size: 15px;
  font-weight: 400;
  border-radius: var(--border-radius);
}

.game-of-the-day-title {
  margin: 0;
  display: flex;
  gap: 5px;
  text-align: center;
}

.game-of-the-day-content {
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.game-of-the-day-links .button {
display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: var(--wp--preset--gradient--custom-1);
    box-shadow: 0 0 1px 0 rgb(0, 0, 0, 0.5);
    border: 3px solid rgb(250, 250, 250, 0.5);
    text-transform: uppercase;
    line-height: 1;
}

.game-of-the-day-links {
  display: flex;
  gap: 10px;
}

.gotd-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
}

.wp-block-dra-games-block-game-of-day-counter {
  color: rgba(255, 255, 255, 0.8);
}

.gotd-played {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  font-weight: 600;
  color: var(--wp--preset--color--dra-games-purple);
}

.gotd-played::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgb(255, 255, 255, 0.5);
  mask: url(../icons/play.svg);
  -webkit-mask: url("../icons/play.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  -webkit-mask-size: 145% !important;
  mask-size: 145% !important;
}

.rating-icon::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--wp--preset--color--luminous-vivid-amber);
  mask: url("../icons/star-fill.svg");
  -webkit-mask: url("../icons/star-fill.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.gotd-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  font-weight: 600;
  color: var(--wp--preset--color--dra-games-blue);
}

.gotd-date::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: rgb(255, 255, 255, 0.5);
  mask: url("../icons/calendar-date.svg");
  -webkit-mask: url("../icons/calendar-date.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.gotd-played.wp-block-dra-games-block-game-of-day-counter::before {
  background-color: var(--wp--preset--color--dra-games-purple);
}
.gotd-played.wp-block-dra-games-block-game-of-day-counter {
  color: rgb(250, 250, 250, 0.8);
  font-size: 16px;
  font-weight: 600;
  gap: 5px;
}
.wp-block-dra-games-block-game-of-day-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.8);
}
.wp-block-dra-games-block-game-of-day-timer::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: var(--wp--preset--color--dra-games-pink);
  mask: url("../icons/stopwatch.svg");
  -webkit-mask: url("../icons/stopwatch.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.hero-block::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--wp--preset--color--dra-games-blue);
  filter: blur(122px);
  top: 10%;
  left: 5%;
  opacity: 0.2;
}

.hero-block::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--wp--preset--color--dra-games-pink);
  filter: blur(122px);
  bottom: 35%;
  right: 5%;
  opacity: 0.1;
}

.hero {
  position: relative;
}

.hero-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--border-radius);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      #9f57f6 79px,
      #9f57f6 80px,
      transparent 80px,
      transparent 159px,
      #9f57f6 159px,
      #9f57f6 160px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      #9f57f6 79px,
      #9f57f6 80px,
      transparent 80px,
      transparent 159px,
      #fafafa 159px,
      #9f57f6 160px
    ),
    radial-gradient(circle at 80px 80px, #b984f8 6.4px, transparent 6.9px),
    radial-gradient(circle at 0px 0px, #9f57f6 4.8px, transparent 5.3px),
    radial-gradient(circle at 160px 0px, #9f57f6 4.8px, transparent 5.3px),
    radial-gradient(circle at 0px 160px, #9f57f6 4.8px, transparent 5.3px),
    radial-gradient(circle at 160px 160px, #9f57f6 4.8px, transparent 5.3px);
  background-size: 160px 160px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.05) 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.05) 80%
  );
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  z-index: -1;
  /* animation: shimmerAnimation 490s infinite linear; */
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.game-card-history {
  position: relative;
}

.game-card-history:hover img {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.history-actions {
  margin-top: 1rem;
}

.game-card-history img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.game-card-history-title {
  display: none;
}

.clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
}

#fav-dropdown-panel {
  display: none;
  position: absolute;
  flex-direction: column;
  top: 110%;
  right: 0;
  width: 100%;
  overflow-y: auto;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.fav-panel-empty {
  font-size: 14px;
  font-weight: 400;
  color: rgb(from var(--wp--preset--color--dra-games-text) r g b / 0.6);
  text-align: center;
}

#fav-panel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

#fav-dropdown-panel.is-open {
  display: flex;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.game-card-fav-wrapper {
  position: relative;
}

.game-card-fav {
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.game-card-fav-title {
  display: none;
}

.delete-single-btn {
  position: absolute;
  font-size: 18px;
  top: -7px;
  right: -8px;
  width: 24px;
  height: 24px;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
}

.game-card-fav-wrapper:hover .delete-single-btn {
  background-color: rgba(0, 0, 0, 0.8);
  transition: background-color 0.2s ease;
}

/* .game-card-fav-wrapper:hover .game-card-fav {
  border-color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease;
} */

.game-card-fav-wrapper:hover .game-card-fav-img {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

#fav-panel-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: rgb(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  padding: 10px;
  border-radius: var(--border-radius-button);
  gap: 5px;
}

#fav-panel-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.single-fav-toggle #fav-panel-toggle {
  padding: 6px 10px;
  font-size: 12px;
}

.single-fav-toggle .game-favorite-icon {
  width: 13px;
  height: 13px;
}

.game-of-the-day-play-count {
  color: rgb(250, 250, 250, 0.5);
  font-size: 14px;
  font-weight: 300;
}

.single-game .game-favorite-toggle-text {
  display: none;
}

.game-notification-block {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#notification-dropdown {
  display: none;
  position: absolute;
  flex-direction: column;
  top: 110%;
  right: 0;
  width: 260px;
  overflow-y: auto;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-top-left-radius: var(--border-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

#notification-dropdown.is-open {
  display: flex;
}

#notification-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: rgb(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  padding: 10px;
  border-radius: var(--border-radius-button);
}

#notification-toggle.has-unread::after {
  content: attr(data-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background-color: var(--wp--preset--color--dra-games-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  z-index: 1;
}

.notification-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: rgb(255, 255, 255, 0.8);
  mask: url("../icons/bell.svg");
  -webkit-mask: url("../icons/bell.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

#notification-close {
    position: absolute;
    top: 3px;
    right: 3px;
    background: transparent;
    color: rgb(255, 255, 255, 0.7);
    font-size: 20px;
    border: 1px solid transparent;
    cursor: pointer;
}

.notification-dropdown-title {
  font-size: 13px;
  color: rgb(250, 250, 250, 0.7);
}
.notification-empty {
  font-size: 14px;
  color: rgb(250, 250, 250, 0.7);
}
.notification-item {
    padding: 10px;
    border: 1px solid rgb(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    background: rgb(250, 250, 250, 0.02);
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.notification-title {
    display: block;
    color: rgb(250, 250, 250, 0.8);
}

.notification-description {
    font-size: 14px;
    font-weight: 400;
    color: rgb(250, 250, 250, 0.7);
}

.notification-btn {
display: inline-flex;
    padding: 5px 12px;
    background: var(--wp--preset--gradient--custom-1);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    width: fit-content;
    line-height: 1;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(10px); */
}

.game-of-the-day-meta {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
}

.game-of-the-day-meta .game-of-the-day-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
}

.game-of-the-day-body {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.categories-wrapper {
  position: relative;
}

.categories-panel {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  width: auto;
  overflow-y: auto;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-top-left-radius: var(--border-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.categories-panel .category-list {
  justify-content: flex-end;
  gap: 5px;
  flex-direction: column;
  margin-bottom: 1rem;
  margin-top: 0;
  padding: 0;
  width: max-content;
}

.categories-panel a {
  display: flex;
  padding: 5px 10px;
  color: rgb(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--border-radius);
}

.categories-panel .category-icon {
  background-color: transparent;
  border: 1px solid transparent;
}

.categories-panel a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

/* === Мобильная адаптация === */
@media (max-width: 640px) {
  .schema-faq-section {
    padding: 16px 48px 16px 54px;
    border-radius: 12px;
  }

  .schema-faq-section::before {
    left: 16px;
    width: 26px;
    height: 26px;
    font-size: 10px;
    top: 16px;
  }

  .schema-faq-section::after {
    right: 16px;
    top: 21px;
  }

  .schema-faq-question {
    font-size: 13px;
  }

  .schema-faq-answer {
    font-size: 12px;
  }
}

/* Стили для планшетов и всего, что больше */
@media screen and (min-width: 768px) {
  .wp-block-dra-games-game-iframe {
    aspect-ratio: 1 / 1;
  }
  .games-list ul,
  .past-games-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .history-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
  .game-item__title {
    font-size: 15px;
  }
  .block-game-info-modal {
    max-width: 720px;
  }

  .single-game-title {
    font-size: 20px;
    max-width: 100%;
  }

  .game-header-item {
    position: absolute;
  }

  .game-header-title {
    text-align: center;
  }
  .single-game .game-favorite-toggle-text {
    display: block;
  }
  .game-of-the-day-details {
    align-items: center;
    justify-content: center;
    height: var(--hero-height);
  }
  .game-of-the-day-content {
    text-align: left;
  }

  .hero {
    height: var(--hero-height);
  }

  .game-of-the-day-image img {
    height: var(--hero-height);
  }
  .game-of-the-day-meta {
    position: absolute;
    top: 1rem;
    left: 0px;
    justify-content: space-between;
    gap: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .game-of-the-day-body {
    position: absolute;
    left: 0px;
    bottom: 0px;
  }
.game-of-the-day-image {
  position: absolute;
  border-radius: var(--border-radius);
  overflow: hidden;
}
  .game-of-the-day-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0, 0, 0, 0.5);
    z-index: 1;
  }
  .hero h1,
  .hero p {
    text-align: left !important;
  }

  .hero .wp-block-buttons.is-content-justification-center {
    justify-content: flex-start;
  }
  .game-of-the-day-meta .game-of-the-day-rating {
    display: flex;
  }
}

@media screen and (min-width: 1024px) {
  .wp-block-dra-games-game-iframe {
    aspect-ratio: 16 / 9;
  }
}