/* Reusable controls, content styles, and site components. */

/* BUTTON SYSTEM — BASE STYLES AND VARIANTS                                   */
/* -------------------------------------------------------------------------- */

:where(a, button, input, [role="button"]):where(
  .wp-block-button__link,
  .wp-element-button,
  .ct-button,
  button[type="submit"],
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .button,
  .btn,
  .cta-link-button
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48em;
  min-height: var(--dafy-control-height);
  padding: 11px 22px;
  border: 1px solid var(--dafy-button-border);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-button-bg);
  color: var(--dafy-button-text) !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow:
    0 10px 24px rgba(255, 102, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    color var(--dafy-duration-fast) var(--dafy-ease);
}

:where(a, button, input, [role="button"]):where(
  .wp-block-button.is-style-outline .wp-block-button__link,
  .button.is-outline,
  .btn.is-outline,
  .ct-button-outline,
  .is-outline .ct-button,
  .dark-button,
  .dark-outline-button
) {
  border-color: rgba(255, 102, 0, 0.8) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--dafy-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--dafy-shadow-xs);
}

:where(a, button, input, [role="button"]):where(
  .wp-block-button.is-style-outline .wp-block-button__link,
  .button.is-outline,
  .btn.is-outline,
  .ct-button-outline,
  .is-outline .ct-button,
  .dark-button,
  .dark-outline-button
):hover {
  border-color: var(--dafy-button-hover-border) !important;
  background: var(--dafy-button-hover-bg) !important;
  color: var(--dafy-button-hover-text) !important;
  box-shadow: var(--dafy-button-hover-shadow);
}

.ct-cta-paragraph .cta-link-button {
  margin-top: 10px;
  border-color: var(--dafy-orange) !important;
  background: var(--dafy-orange) !important;
  background-image: none !important;
  color: var(--dafy-text-dark) !important;
}

/* -------------------------------------------------------------------------- */
/* SEARCH FORM — BLOCKSY PANEL AND MODALS                                    */
/* -------------------------------------------------------------------------- */

.ct-panel-content .ct-search-form,
.ct-search-form[data-form-controls="inside"] {
  width: min(100%, 760px);
  margin-inline: auto;
}

.ct-search-form .ct-search-form-inner.ct-pseudo-input {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: stretch;
  min-height: 56px;
  padding: 5px;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-lg);
  background:
    radial-gradient(circle at top left, var(--dafy-orange-10), transparent 42%),
    linear-gradient(180deg, var(--dafy-surface-4), var(--dafy-surface-1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    var(--dafy-shadow-md);
  isolation: isolate;
  transition:
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease),
    transform var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-search-form .ct-search-form-inner.ct-pseudo-input::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 45%);
  pointer-events: none;
}

.ct-search-form .ct-search-form-inner.ct-pseudo-input:focus-within {
  border-color: var(--dafy-orange);
  box-shadow:
    0 0 0 3px var(--dafy-orange-16),
    0 18px 38px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
}

.ct-search-form input[type="search"].modal-field {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 15px;
  border: 0 !important;
  border-radius: calc(var(--dafy-radius-lg) - 5px) 0 0 calc(var(--dafy-radius-lg) - 5px) !important;
  background: transparent !important;
  color: var(--dafy-text) !important;
  font: inherit;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  font-weight: 600;
  line-height: 1.3;
  caret-color: var(--dafy-yellow);
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.ct-search-form input[type="search"].modal-field::placeholder {
  color: var(--dafy-text-soft);
  opacity: 0.82;
}

.ct-search-form input[type="search"].modal-field::-webkit-search-decoration,
.ct-search-form input[type="search"].modal-field::-webkit-search-cancel-button,
.ct-search-form input[type="search"].modal-field::-webkit-search-results-button,
.ct-search-form input[type="search"].modal-field::-webkit-search-results-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.ct-search-form .ct-search-form-inner > button[type="submit"].wp-element-button {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid rgba(255, 102, 0, 0.95) !important;
  border-radius: calc(var(--dafy-radius-lg) - 6px) !important;
  background: linear-gradient(180deg, #ff7a1a 0%, var(--dafy-orange) 100%) !important;
  color: var(--dafy-text-dark) !important;
  box-shadow:
    0 8px 20px rgba(255, 102, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: none;
  overflow: hidden;
}

.ct-search-form .ct-search-button-content {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ct-search-form .ct-ajax-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 22px;
  color: currentColor;
  transform: translate(-50%, -50%);
}

.ct-search-form .ct-ajax-loader svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ct-search-form .ct-ajax-loader:not(.active):not([data-state="loading"]) {
  pointer-events: none;
}

/* Live search dropdown. The selectors cover common Blocksy output variants. */
.ct-search-results,
.ct-search-form + .ct-search-results,
.ct-panel-content .ct-search-results {
  width: min(100%, 760px);
  max-height: min(62vh, 580px);
  margin: 12px auto 0;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-lg);
  background: rgba(26, 26, 26, 0.98);
  color: var(--dafy-text);
  box-shadow: var(--dafy-shadow-lg);
  scrollbar-color: #555555 var(--dafy-surface-5);
  scrollbar-width: thin;
}

.ct-search-results::-webkit-scrollbar {
  width: 10px;
}

.ct-search-results::-webkit-scrollbar-track {
  background: var(--dafy-surface-5);
  border-radius: var(--dafy-radius-pill);
}

.ct-search-results::-webkit-scrollbar-thumb {
  border: 2px solid var(--dafy-surface-5);
  border-radius: var(--dafy-radius-pill);
  background: #555555;
}

.ct-search-results :where(a, .ct-search-result) {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 80px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--dafy-radius-md);
  color: var(--dafy-text-secondary);
  text-decoration: none !important;
  transition:
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    transform var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-search-results :where(a, .ct-search-result):hover,
.ct-search-results :where(a, .ct-search-result):focus-visible {
  border-color: var(--dafy-orange-24);
  background: var(--dafy-orange-10);
  color: #ffffff;
  transform: translateX(2px);
}

.ct-search-results .ct-media-container {
  width: 72px;
  height: 60px;
  border-radius: var(--dafy-radius-sm);
  overflow: hidden;
  background: #000000;
}

.ct-search-results .ct-media-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.ct-search-results :where(.ct-search-result-title, .entry-title, .ct-entry-title) {
  margin: 0 !important;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

/* -------------------------------------------------------------------------- */
/* ARCHIVE ARTICLE CARDS                                                       */
/* -------------------------------------------------------------------------- */

:where(.blog, .archive, .search-results) .ct-container > section {
  min-width: 0;
}

/* Standard archive layouts retain a regular three-column grid. */
:where(.blog, .archive, .search-results) .entries:not([data-layout="enhanced-grid"]) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  width: 100%;
  max-width: var(--dafy-archive-width);
  margin-inline: auto;
  align-items: stretch;
}

/*
 * Blocksy Enhanced Grid:
 * 1–2 — two featured cards;
 * 3–5 — three standard cards;
 * the five-card pattern then repeats.
 */
.entries[data-layout="enhanced-grid"] {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 26px !important;
  width: 100%;
  max-width: var(--dafy-archive-width);
  margin-inline: auto;
  align-items: stretch;
}

.entries[data-layout="enhanced-grid"] > .entry-card {
  grid-column: span 2 !important;
}

.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 1),
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 2) {
  grid-column: span 3 !important;
}

:where(.blog, .archive, .search-results) .entry-card,
.entries[data-layout="enhanced-grid"] > .entry-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--dafy-border-soft) !important;
  border-radius: var(--dafy-radius-card) !important;
  background:
    radial-gradient(circle at top left, var(--dafy-orange-10), transparent 34%),
    linear-gradient(180deg, var(--dafy-surface-4) 0%, var(--dafy-surface-1) 100%) !important;
  box-shadow: var(--dafy-shadow-sm) !important;
  
  /* Performance: hardware acceleration for smoother hover effects. */
  transform: translateZ(0); 
  will-change: transform, box-shadow; 
  
  transition:
    transform var(--dafy-duration-base) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-base) var(--dafy-ease);
}

:where(.blog, .archive, .search-results) .entry-card::after,
.entries[data-layout="enhanced-grid"] > .entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  pointer-events: none;
  transition: box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

:where(.blog, .archive, .search-results) .entry-card:hover,
:where(.blog, .archive, .search-results) .entry-card:focus-within,
.entries[data-layout="enhanced-grid"] > .entry-card:hover,
.entries[data-layout="enhanced-grid"] > .entry-card:focus-within {
  border-color: var(--dafy-orange-38) !important;
  transform: translateY(-6px);
  box-shadow: var(--dafy-shadow-lg) !important;
}

:where(.blog, .archive, .search-results) .entry-card:hover::after,
:where(.blog, .archive, .search-results) .entry-card:focus-within::after,
.entries[data-layout="enhanced-grid"] > .entry-card:hover::after,
.entries[data-layout="enhanced-grid"] > .entry-card:focus-within::after {
  box-shadow: inset 0 0 0 1px var(--dafy-yellow-22);
}

/* The media is moved above the title without changing the HTML. */
:where(.blog, .archive, .search-results) .entry-card > .ct-media-container,
.entries[data-layout="enhanced-grid"] > .entry-card > .ct-media-container {
  order: -1;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: #000000;
}

/* Featured cards are wider; the lower three cards remain more compact. */
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 1) > .ct-media-container,
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 2) > .ct-media-container {
  aspect-ratio: 16 / 9;
}

.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 3) > .ct-media-container,
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 4) > .ct-media-container,
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 5) > .ct-media-container {
  aspect-ratio: 4 / 3;
}

:where(.blog, .archive, .search-results) .entry-card > .ct-media-container::after,
.entries[data-layout="enhanced-grid"] > .entry-card > .ct-media-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent 46%),
    linear-gradient(135deg, rgba(255, 102, 0, 0.08), transparent 45%);
  pointer-events: none;
}

:where(.blog, .archive, .search-results) .entry-card > .ct-media-container img,
.entries[data-layout="enhanced-grid"] > .entry-card > .ct-media-container img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  transform: scale(1.01);
  transition:
    transform var(--dafy-duration-base) var(--dafy-ease),
    filter var(--dafy-duration-base) var(--dafy-ease);
}

:where(.blog, .archive, .search-results) .entry-card:hover > .ct-media-container img,
:where(.blog, .archive, .search-results) .entry-card:focus-within > .ct-media-container img,
.entries[data-layout="enhanced-grid"] > .entry-card:hover > .ct-media-container img,
.entries[data-layout="enhanced-grid"] > .entry-card:focus-within > .ct-media-container img {
  transform: scale(1.065);
  filter: saturate(1.06) contrast(1.04);
}

:where(.blog, .archive, .search-results) .entry-card > .entry-title,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-title {
  margin: 0 !important;
  padding: 22px 22px 0;
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 1) > .entry-title,
.entries[data-layout="enhanced-grid"] > .entry-card:nth-child(5n + 2) > .entry-title {
  font-size: clamp(1.22rem, 1.8vw, 1.52rem);
}

:where(.blog, .archive, .search-results) .entry-card > .entry-title a,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dafy-text) !important;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color var(--dafy-duration-fast) var(--dafy-ease);
}

:where(.blog, .archive, .search-results) .entry-card:hover > .entry-title a,
:where(.blog, .archive, .search-results) .entry-card:focus-within > .entry-title a,
.entries[data-layout="enhanced-grid"] > .entry-card:hover > .entry-title a,
.entries[data-layout="enhanced-grid"] > .entry-card:focus-within > .entry-title a {
  color: var(--dafy-yellow) !important;
}

:where(.blog, .archive, .search-results) .entry-card > .entry-excerpt,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-excerpt {
  flex: 1 1 auto;
  padding: 14px 22px 0;
  color: var(--dafy-text-secondary);
}

:where(.blog, .archive, .search-results) .entry-card > .entry-excerpt p,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-excerpt p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:where(.blog, .archive, .search-results) .entry-card > .entry-button,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-button {
  align-self: flex-start;
  min-height: 42px;
  margin: 20px 22px 22px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 102, 0, 0.64) !important;
  border-radius: var(--dafy-radius-md) !important;
  background: var(--dafy-orange-10) !important;
  color: var(--dafy-orange-hover) !important;
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: none !important;
}

:where(.blog, .archive, .search-results) .entry-card > .entry-button svg,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-button svg {
  width: 17px;
  height: 17px;
  transition: transform var(--dafy-duration-fast) var(--dafy-ease);
}

:where(.blog, .archive, .search-results) .entry-card > .entry-button:hover svg,
.entries[data-layout="enhanced-grid"] > .entry-card > .entry-button:hover svg {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------- */
/* ARCHIVE PAGINATION                                                          */
/* -------------------------------------------------------------------------- */

.ct-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--dafy-archive-width);
  margin: 42px auto 0;
}

.ct-pagination > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-2);
  color: var(--dafy-text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: var(--dafy-shadow-xs);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    color var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-pagination a.page-numbers:hover {
  border-color: var(--dafy-orange);
  background: var(--dafy-orange-10);
  color: #ffffff;
  transform: translateY(-2px);
}

.ct-pagination a.page-numbers:focus-visible {
  border-color: var(--dafy-orange);
  background: var(--dafy-orange-10);
  color: #ffffff;
  outline: 2px solid var(--dafy-yellow);
  outline-offset: 3px;
  box-shadow: none;
}

.ct-pagination a.page-numbers:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

.ct-pagination .page-numbers.current {
  border-color: var(--dafy-yellow);
  background: var(--dafy-yellow);
  color: var(--dafy-text-dark);
  box-shadow: var(--dafy-shadow-yellow);
}

.ct-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ct-pagination .next.page-numbers,
.ct-pagination .prev.page-numbers {
  gap: 8px;
  padding-inline: 17px;
}

.ct-special-features .stk-block-column {
  transition: transform var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-special-features .stk-block-column:hover {
  transform: scale3d(1.05, 1.05, 1);
}

/* -------------------------------------------------------------------------- */
/* GAME BUY BOX                                                               */
/* -------------------------------------------------------------------------- */

.single-post .entry-content .game-buy-box {
  position: relative;
  max-width: var(--dafy-content-width);
  margin: 0;
  padding: 24px 26px;
  overflow: hidden;

  border: 1px solid var(--dafy-content-surface-border);
  border-left: 5px solid var(--dafy-orange);
  border-radius: var(--dafy-radius-lg);

  background: var(--dafy-content-surface);
  color: var(--dafy-text);

  box-shadow: var(--dafy-content-surface-shadow);

  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}


/* Subtle highlight on the right side of the block. */
.single-post .entry-content .game-buy-box::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;

  border-radius: 50%;
  background: var(--dafy-orange-10);

  pointer-events: none;
}


/* Hover state for the entire card. */
.single-post .entry-content .game-buy-box:hover,
.single-post .entry-content .game-buy-box:focus-within {
  border-color: var(--dafy-orange-38);
  border-left-color: var(--dafy-yellow);

  transform: translateY(-2px);

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px var(--dafy-orange-06);
}


/* Heading styles. */
.single-post .entry-content .game-buy-box__title {
  position: relative;
  z-index: 1;

  margin: 0 0 10px;

  color: var(--dafy-text);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.35;
}


/* Prevent global strong styles from affecting this component. */
.single-post .entry-content .game-buy-box__title strong {
  color: inherit;
  font-weight: inherit;
}


/* Main text styles. */
.single-post .entry-content .game-buy-box__text {
  position: relative;
  z-index: 1;

  max-width: 680px;
  margin: 0 0 18px;

  color: var(--dafy-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}


/* Button styles. */
.single-post .entry-content a.game-buy-box__button {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--dafy-control-height);
  padding: 11px 22px;

  border: 1px solid rgba(255, 102, 0, 0.95);
  border-radius: var(--dafy-radius-md);

  background: var(--dafy-orange);
  color: var(--dafy-text-dark) !important;

  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;

  text-decoration: none !important;

  box-shadow:
    0 10px 24px rgba(255, 102, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    color var(--dafy-duration-fast) var(--dafy-ease);
}


/* Mobile styles. */
@media (max-width: 689px) {

  .single-post .entry-content .game-buy-box {
    padding: 20px 18px;
    border-radius: var(--dafy-radius-md);
  }

  .single-post .entry-content .game-buy-box__title {
    font-size: 1.05rem;
  }

  .single-post .entry-content .game-buy-box__text {
    margin-bottom: 16px;
    font-size: 0.96rem;
  }

  .single-post .entry-content a.game-buy-box__button {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* CONTENT CALLOUTS, QUOTES AND CTA                                            */
/* -------------------------------------------------------------------------- */

.entry-content p[class*="-background-color"] {
  padding: 20px 25px;
  border-radius: var(--dafy-radius-xl);
}

.entry-content p.has-palette-color-8-background-color.has-background {
  border: 2px solid var(--dafy-yellow);
}

.platform-box {
  display: inline-block;
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--dafy-yellow);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-2);
  color: var(--dafy-text-secondary);
  font-size: 15px;
}

.platform-box .platform-label {
  color: #ffffff;
  font-weight: 700;
}

.styled-quote,
.ct-cta-paragraph,
.pullquote {
  max-width: var(--dafy-content-width);
  color: var(--dafy-text);
  box-shadow: var(--dafy-shadow-sm);
}

.styled-quote {
  position: relative;
  overflow: hidden;
  margin: 1.5em 0;
  padding: 25px 30px;
  border-left: 4px solid var(--dafy-danger);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-2);
}

.styled-quote::before {
  content: "\201C";
  float: right;
  margin: -0.1em 0 0 0.25em;
  color: rgba(255, 255, 255, 0.35);
  font-family: Georgia, serif;
  font-size: 5em;
  line-height: 0.8;
}

.styled-quote p {
  margin: 0 0 15px;
  font-size: 1.1em;
  line-height: 1.6;
}

.styled-quote footer {
  clear: right;
  color: var(--dafy-text-soft);
  font-size: 1em;
  font-style: italic;
}

.styled-quote footer a {
  color: var(--dafy-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.styled-quote footer a:hover {
  color: #ffffff;
}

.ct-cta-paragraph {
  margin: 2.5em 0;
  padding: 25px 30px;
  border-left: 5px solid var(--dafy-orange);
  border-radius: var(--dafy-radius-sm);
  background: var(--dafy-surface-2);
  transition:
    border-left-color var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-cta-paragraph:hover,
.ct-cta-paragraph:focus-within {
  border-left-color: var(--dafy-yellow);
  box-shadow: var(--dafy-shadow-lg);
}

.ct-cta-paragraph p {
  margin: 0 0 1.5em;
  color: var(--dafy-text-muted);
  font-size: 1.1em;
  line-height: 1.7;
}

.pullquote {
  position: relative;
  display: block;
  width: 100%;
  margin: 3em 0;
  padding: 2em 1.5em;
  border: 4px solid #ff4b2b;
  border-radius: var(--dafy-radius-xs);
  background: var(--dafy-surface-4);
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.6;
}

.pullquote::before {
  content: "\201C";
  position: absolute;
  top: 0.2em;
  left: 0.4em;
  color: rgba(255, 255, 255, 0.08);
  font-size: 6rem;
  font-style: normal;
  line-height: 1;
  pointer-events: none;
}

.pullquote :where(strong, b) {
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* ARTICLE & PAGE LISTS                                                        */
/* -------------------------------------------------------------------------- */

/* Consistent spacing for standard lists and adjacent Gutenberg blocks.
   Selectors exclude navigation, table of contents, widgets, and post loops. */
:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) {
  --dafy-list-bg: var(--dafy-content-surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--dafy-list-gap) !important;
  align-content: start;
  min-width: 0;
  margin: 1.25em 0;
  padding: 0;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) + :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) + :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list) {
  margin-block-start: 0;
}

@supports selector(ul:has(+ ul)) {
:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):has(+ :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list)),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):has(+ :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list)) {
  margin-block-end: var(--dafy-list-gap);
}

}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) > li,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) > li {
  position: relative;
  display: list-item;
  min-width: 0;
  margin: 0 !important;
  padding: var(--dafy-list-padding-y) 18px var(--dafy-list-padding-y) 48px;
  border: 1px solid var(--dafy-content-surface-border);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-list-bg);
  color: var(--dafy-text-secondary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  box-shadow: var(--dafy-shadow-xs);
  transition: border-color var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease);
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) > li::after,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) > li::after {
  content: none !important;
  display: none !important;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) > li::marker,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) > li::marker {
  content: "";
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) > li::before,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) > li::before {
  content: "";
  position: absolute;
  top: calc(var(--dafy-list-padding-y) + 0.8em - 7px);
  left: 18px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(252, 236, 7, 0.5);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--dafy-yellow), #ffca28);
  pointer-events: none;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):where(ol) > li,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):where(ol) > li {
  padding-left: 60px;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):where(ol) > li::before,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):where(ol) > li::before {
  content: counter(list-item);
  top: calc(var(--dafy-list-padding-y) + 0.8em - 14px);
  left: 16px;
  display: grid;
  place-items: center;
  min-width: 28px;
  width: auto;
  height: 28px;
  padding-inline: 4px;
  border-radius: 8px;
  color: var(--dafy-text-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-size: inherit;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):where(ol[type]) > li,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):where(ol[type]) > li {
  padding-left: 18px;
  list-style-position: inside;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):where(ol[type]) > li::before,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):where(ol[type]) > li::before {
  content: none;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)):where(ol[type]) > li::marker,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])):where(ol[type]) > li::marker {
  content: normal;
  color: var(--dafy-yellow);
  font-weight: 700;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) li > p,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) li > p {
  margin: 0;
  line-height: inherit;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) li > p + p,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) li > p + p {
  margin-block-start: 0.5em;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) li > a:not(:where([role="button"], [class*="button"], [class*="btn"])),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) li > a:not(:where([role="button"], [class*="button"], [class*="btn"])) {
  color: var(--dafy-orange-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) li > :where(strong, b),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) li > :where(strong, b) {
  color: var(--dafy-text);
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) :is(ul, ol),
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) :is(ul, ol) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 8px 0 0;
  padding: 0 0 0 1.5em;
  list-style-position: outside;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) ul,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) ul {
  list-style-type: square;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) :is(ul, ol) > li,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) :is(ul, ol) > li {
  display: list-item;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dafy-text-secondary);
  box-shadow: none;
  transform: none;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) :is(ul, ol) > li::before,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) :is(ul, ol) > li::before {
  content: none;
}

:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) :is(ul, ol) > li::marker,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) :is(ul, ol) > li::marker {
  color: var(--dafy-yellow);
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
:is(.single-post, .page:not(.home)) .entry-content :is(ul.wp-block-list, ol.wp-block-list, ul.styled-list, ol.styled-list, ul.dafy-article-list, ol.dafy-article-list):not(:where(li *, nav *, .wp-block-navigation *, .wp-block-query *, .wp-block-blocksy-query *, .custom-toc *, .stk-table-of-contents *, .ct-widget *, .ct-sidebar *, .comment-list *)) > li:hover,
:is(.single-post, .page:not(.home)) .entry-content > :is(ul:not([class]), ol:not([class])) > li:hover {
  border-color: var(--dafy-orange-38);
  background: var(--dafy-content-surface-hover);
}

}

.stk-table-of-contents__table li { color: #ffeb3b; }

@media (max-width: 768px) {
  :root { --dafy-list-padding-y: 10px; }
}

/* -------------------------------------------------------------------------- */
/* TABLES                                                                      */
/* -------------------------------------------------------------------------- */

.entry-content .wp-block-table {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: clamp(32px, 5vw, 48px) 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-2);
  box-shadow: var(--dafy-shadow-md);
}

.entry-content .wp-block-table table {
  width: 100%;
  min-width: 880px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.entry-content .wp-block-table table.has-fixed-layout {
  width: 100%;
  table-layout: fixed;
}

.entry-content .wp-block-table table.has-fixed-layout :where(th, td) {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.entry-content .wp-block-table :where(th, td) {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.entry-content .wp-block-table th {
  border-bottom: 3px solid var(--dafy-danger);
  background: var(--dafy-surface-2);
  color: var(--dafy-text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}

.entry-content .wp-block-table td {
  border-bottom: 1px solid var(--dafy-border-strong);
  color: var(--dafy-text-muted);
}

.entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content .wp-block-table tbody tr:hover {
  background: var(--dafy-surface-5);
}

.entry-content .wp-block-table :where(td, th) code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Optional wrapper for tables inserted outside the Gutenberg Table block. */
.entry-content .dafy-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: clamp(32px, 5vw, 48px) 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-2);
  box-shadow: var(--dafy-shadow-md);
}

.entry-content .dafy-table-scroll > table {
  width: 100%;
  min-width: 880px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
}

.entry-content .dafy-table-scroll :where(th, td) {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.entry-content .dafy-table-scroll th {
  border-bottom: 3px solid var(--dafy-danger);
  background: var(--dafy-content-surface-deep);
  color: var(--dafy-text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}

.entry-content .dafy-table-scroll td {
  border-bottom: 1px solid var(--dafy-content-surface-border);
  color: var(--dafy-text-muted);
}

.entry-content .dafy-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content .dafy-table-scroll tbody tr:hover {
  background: var(--dafy-content-surface-hover);
}

/* -------------------------------------------------------------------------- */
/* MEDIA, EMBEDS AND STEAM CHART                                               */
/* -------------------------------------------------------------------------- */

:where(
  figure.wp-block-image,
  figure.ct-featured-image,
  figure.wp-block-embed.is-type-video,
  figure.wp-block-embed.is-provider-youtube
) {
  margin: 1.5em 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #000000;
  border-radius: var(--dafy-radius-sm);
  background: #000000;
  box-shadow: var(--dafy-shadow-md);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

:where(
  figure.wp-block-image,
  figure.ct-featured-image,
  figure.wp-block-embed.is-type-video,
  figure.wp-block-embed.is-provider-youtube
):hover {
  transform: translateY(-2px);
  box-shadow: var(--dafy-shadow-lg);
}

:where(
  figure.wp-block-image,
  figure.ct-featured-image
) > a {
  display: block;
  line-height: 0;
}

:where(
  figure.wp-block-image,
  figure.ct-featured-image
) img {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

:where(
  figure.wp-block-embed.is-type-video .video-container,
  figure.wp-block-embed.is-provider-youtube .video-container,
  figure.wp-block-embed.is-type-video .wp-block-embed__wrapper,
  figure.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper
) {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #000000;
  line-height: 0;
}

:where(
  figure.wp-block-embed.is-type-video,
  figure.wp-block-embed.is-provider-youtube
) iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

:where(
  .wp-block-embed figcaption,
  figure.wp-block-image figcaption,
  figure.ct-featured-image figcaption,
  .steam-chart-wrapper figcaption
) {
  margin: 0 !important;
  padding: 0.75em 1em;
  border-top: 1px solid var(--dafy-border);
  background: var(--dafy-surface-1);
  color: #eeeeee;
  font-size: 0.9em;
  line-height: 1.45;
  text-align: center;
}

.entry-content .steam-chart-wrapper {
  display: block;
  width: 100%;
  margin: 2.5em 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #000000 !important;
  border-radius: var(--dafy-radius-sm) !important;
  background: #000000;
  box-shadow: var(--dafy-shadow-md) !important;
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

.entry-content .steam-chart-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--dafy-shadow-lg) !important;
}

.entry-content .steam-chart-wrapper iframe {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* WordPress already supplies a ratio spacer; use one sizing mechanism. */
@supports (aspect-ratio: 16 / 9) {
  .entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
    display: none;
    content: none;
  }
  .entry-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
  .entry-content .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper { aspect-ratio: 1 / 1; }
  .entry-content .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper { aspect-ratio: 9 / 16; }
  .entry-content .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper { aspect-ratio: 21 / 9; }
  .entry-content .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper { aspect-ratio: 18 / 9; }
}

/* -------------------------------------------------------------------------- */
/* RELATED POSTS                                                               */
/* -------------------------------------------------------------------------- */

.ct-related-posts {
  position: relative;
  width: calc(100% - 32px);
  max-width: var(--dafy-archive-width);
  max-width: min(var(--dafy-archive-width), calc(100% - 32px));
  margin: 56px auto;
  padding: 34px 28px 40px;
  overflow: hidden;
  border: 1px solid var(--dafy-border-strong);
  border-left: 0 !important;
  border-radius: var(--dafy-radius-lg);
  background:
    radial-gradient(circle at top left, var(--dafy-orange-10), transparent 34%),
    linear-gradient(180deg, var(--dafy-surface-2), var(--dafy-surface-1));
  box-shadow: var(--dafy-shadow-md);
}

.ct-related-posts::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(315deg, rgba(252, 236, 7, 0.025), transparent 42%);
  pointer-events: none;
}

.ct-related-posts .ct-module-title {
  position: relative;
  z-index: 1;
  margin: 0 0 30px;
  padding: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ct-related-posts .ct-module-title::after {
  content: none !important;
}

.ct-related-posts .ct-related-posts-items {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.ct-related-posts .ct-related-posts-items article {
  min-width: 0;
  grid-row: auto !important;
}

.ct-related-posts .ct-related-posts-items article > div {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--dafy-border-soft);
  border-radius: var(--dafy-radius-card);
  background: var(--dafy-surface-5);
  box-shadow: var(--dafy-shadow-sm);
  
  /* Performance: hardware acceleration for smoother hover effects. */
  transform: translateZ(0);
  will-change: transform, box-shadow;
  
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

.ct-related-posts .ct-related-posts-items article > div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.ct-related-posts .ct-media-container {
  display: block;
  width: 100%;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
  background: #000000;
}

.ct-related-posts .ct-media-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  transform: scale(1.01);
  transition:
    transform var(--dafy-duration-base) var(--dafy-ease),
    filter var(--dafy-duration-base) var(--dafy-ease);
}

.ct-related-posts .related-entry-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  inset: auto 0 0;
  z-index: 2;
  margin: 0 !important;
  padding: 18px 18px 20px;
  background: transparent !important;
}

.ct-related-posts .related-entry-title a {
  display: block;
  color: #ffffff;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-decoration: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.ct-related-posts .ct-related-posts-items article:hover > div,
.ct-related-posts .ct-related-posts-items article:focus-within > div {
  border-color: var(--dafy-orange-38);
  transform: translateY(-4px);
  box-shadow: var(--dafy-shadow-lg);
}

.ct-related-posts .ct-related-posts-items article:hover img,
.ct-related-posts .ct-related-posts-items article:focus-within img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.04);
}

.ct-related-posts .ct-related-posts-items article:hover .related-entry-title a,
.ct-related-posts .ct-related-posts-items article:focus-within .related-entry-title a {
  color: var(--dafy-yellow);
}

/* -------------------------------------------------------------------------- */
/* BLOCKSY QUERY SLIDER                                                        */
/* -------------------------------------------------------------------------- */

.wp-block-blocksy-query .ct-query-template.is-layout-slider {
  margin-bottom: 25px;
}

.wp-block-blocksy-query .ct-query-template.is-layout-slider article.wp-block-post {
  overflow: hidden;
  border: 1px solid var(--dafy-border-soft);
  border-radius: 18px;
  background: var(--dafy-surface-3);
}

.wp-block-blocksy-query .ct-query-template.is-layout-slider .wp-block-group.has-background {
  padding: 18px 18px 20px;
  background: var(--dafy-surface-3) !important;
}

.wp-block-blocksy-query .ct-query-template.is-layout-slider h3.ct-dynamic-data a {
  color: #ffe100;
  text-decoration: none;
}

.wp-block-blocksy-query .ct-query-template.is-layout-slider p.ct-dynamic-data {
  margin: 0;
  color: var(--dafy-text-secondary);
}

/* -------------------------------------------------------------------------- */
/* COOKIE NOTICE                                                               */
/* -------------------------------------------------------------------------- */

.cookie-notification,
.cookie-notification .ct-cookies-content p,
.cookie-notification strong {
  font-size: 16px;
}

.cookie-notification .ct-cookies-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.cookie-notification .ct-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cookie-notification .ct-button {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cookie-notification .ct-cookies-accept-button {
  border-color: rgba(255, 102, 0, 0.95);
  background: linear-gradient(180deg, #ff7a1a 0%, var(--dafy-orange) 100%);
  color: var(--dafy-text-dark);
}

.cookie-notification .ct-cookies-decline-button {
  border-color: rgba(255, 102, 0, 0.65);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dafy-text);
}

/* -------------------------------------------------------------------------- */
/* QUOTE GRID                                                                  */
/* -------------------------------------------------------------------------- */

.quote-grid {
  max-width: var(--dafy-content-width);
  margin: 2rem auto;
  padding-inline: 1rem;
}

.quote-grid__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-grid__item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--dafy-border-strong);
  border-radius: var(--dafy-radius-sm);
  background: var(--dafy-surface-5);
  box-shadow: var(--dafy-shadow-sm);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease);
}

.quote-grid__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--dafy-shadow-md);
}

/* -------------------------------------------------------------------------- */
/* AUTHOR BOX                                                                  */
/* -------------------------------------------------------------------------- */

.author-box.is-width-constrained {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: var(--dafy-content-width);
  margin: 2.5em 0;
  padding: 24px 26px;
  border: 1px solid var(--dafy-border-strong);
  border-left: 4px solid var(--dafy-orange);
  border-radius: var(--dafy-radius-lg);
  background: linear-gradient(180deg, var(--dafy-surface-2), var(--dafy-surface-1));
  box-shadow: var(--dafy-shadow-md);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease);
}

.author-box.is-width-constrained:hover {
  border-color: rgba(255, 102, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--dafy-shadow-lg);
}

.author-box.is-width-constrained .ct-media-container {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid rgba(255, 102, 0, 0.6);
  border-radius: 50%;
  background: var(--dafy-surface-5);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(255, 102, 0, 0.08);
}

.author-box.is-width-constrained .ct-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-box.is-width-constrained .ct-media-container svg {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 50%;
  background: var(--dafy-orange);
  fill: var(--dafy-text-dark);
  box-shadow: 0 8px 18px rgba(255, 102, 0, 0.28);
}

.author-box.is-width-constrained section {
  min-width: 0;
}

.author-box.is-width-constrained .author-box-name {
  margin: 0 0 10px;
  color: var(--dafy-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.author-box.is-width-constrained .author-box-bio {
  margin-bottom: 16px;
}

.author-box.is-width-constrained .author-box-bio p {
  margin: 0;
  color: var(--dafy-text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.author-box.is-width-constrained .author-box-socials span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-box.is-width-constrained .author-box-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 102, 0, 0.32);
  border-radius: var(--dafy-radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dafy-orange);
  text-decoration: none;
  box-shadow: var(--dafy-shadow-xs);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    color var(--dafy-duration-fast) var(--dafy-ease);
}

.author-box.is-width-constrained .author-box-socials a:hover {
  border-color: var(--dafy-yellow);
  background: var(--dafy-orange-10);
  color: var(--dafy-yellow);
  transform: translateY(-2px);
}

.author-box.is-width-constrained .author-box-socials :where(.ct-icon, svg) {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* -------------------------------------------------------------------------- */
/* COLLAPSIBLE TABLE OF CONTENTS                                               */
/* -------------------------------------------------------------------------- */

.single-post .custom-toc {
  max-width: var(--dafy-content-width);
  margin: 2em 0 2.5em;
  padding: 0;
  border: 1px solid var(--dafy-border-strong);
  border-left: 4px solid var(--dafy-yellow);
  border-radius: var(--dafy-radius-lg);
  background: linear-gradient(180deg, var(--dafy-surface-2), var(--dafy-surface-1));
  box-shadow: var(--dafy-shadow-md);
}

.single-post .custom-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--dafy-radius-lg);
  color: var(--dafy-text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.single-post .custom-toc__summary::-webkit-details-marker {
  display: none;
}

.single-post .custom-toc__summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid var(--dafy-yellow);
  border-bottom: 2px solid var(--dafy-yellow);
  transform: rotate(45deg);
  transition: transform var(--dafy-duration-base) var(--dafy-ease);
}

.single-post .custom-toc[open] .custom-toc__summary::after {
  transform: rotate(225deg);
}

.single-post .custom-toc__nav {
  margin: 0;
  padding: 0;
}

.single-post .custom-toc__list {
  margin: 0 !important;
  padding: 0 22px 22px !important;
  list-style: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.single-post .custom-toc__item {
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.single-post .custom-toc__item::before,
.single-post .custom-toc__item::after {
  content: none !important;
}

.single-post .custom-toc__link {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 16px 14px 40px;
  border: 1px solid var(--dafy-border-soft);
  border-radius: var(--dafy-radius-md);
  background: var(--dafy-surface-5);
  color: var(--dafy-text-secondary);
  line-height: 1.5;
  text-decoration: none !important;
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    background-color var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease),
    color var(--dafy-duration-fast) var(--dafy-ease);
}

.single-post .custom-toc__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dafy-yellow);
  box-shadow: 0 0 8px rgba(252, 236, 7, 0.6);
  transform: translateY(-50%);
}

.single-post .custom-toc__link:hover,
.single-post .custom-toc__link:focus-visible {
  border-color: var(--dafy-orange-38);
  background: var(--dafy-orange-10);
  color: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* HEADER MENU                                                                 */
/* -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
  #header[data-id="type-1"] [data-device="desktop"] {
    position: relative;
    z-index: 1000;
  }

  #header[data-id="type-1"] [data-device="desktop"] [data-row="middle"] {
    border-bottom: 1px solid var(--dafy-orange-24);
    background: rgba(17, 17, 17, 0.93);
    box-shadow: var(--dafy-shadow-header);
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #header[data-id="type-1"] [data-device="desktop"] [data-row="middle"] {
      background: rgba(17, 17, 17, 0.87);
      backdrop-filter: blur(8px) saturate(1.04);
      -webkit-backdrop-filter: blur(8px) saturate(1.04);
      
      /* Performance: move the header to a separate GPU layer for smoother scrolling. */
      will-change: backdrop-filter; 
    }
  }

  #header[data-id="type-1"] [data-device="desktop"] .ct-container {
    max-width: 1320px;
    padding-inline: 24px;
  }

  #header[data-id="type-1"] [data-device="desktop"] [data-row="middle"] > .ct-container > div {
    min-height: 78px;
    align-items: center;
  }

  #header[data-id="type-1"] [data-device="desktop"] .site-branding .site-logo-container {
    display: inline-flex;
    align-items: center;
    transition:
      transform var(--dafy-duration-fast) var(--dafy-ease),
      opacity var(--dafy-duration-fast) var(--dafy-ease);
  }

  #header[data-id="type-1"] [data-device="desktop"] .site-branding .site-logo-container:hover {
    opacity: 0.96;
    transform: translateY(-1px);
  }

  #header-menu-1 .menu {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
  }

  /* Hide Blocksy's visual arrows without disabling submenu expansion. */
  #header-menu-1 .ct-toggle-dropdown-desktop {
    display: none !important;
  }

  #header-menu-1 .menu > .menu-item {
    position: relative;
    margin: 0;
  }

  #header-menu-1 .menu > .menu-item > .ct-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--dafy-radius-md);
    background: transparent;
    color: var(--dafy-yellow);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
      background-color var(--dafy-duration-fast) var(--dafy-ease),
      box-shadow var(--dafy-duration-fast) var(--dafy-ease),
      transform var(--dafy-duration-fast) var(--dafy-ease);
  }

  #header-menu-1 .menu > .menu-item > .ct-menu-link::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 7px;
    left: 16px;
    height: 2px;
    border-radius: var(--dafy-radius-pill);
    background: linear-gradient(90deg, var(--dafy-orange), var(--dafy-yellow));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dafy-duration-fast) var(--dafy-ease);
  }

  #header-menu-1 .menu > .menu-item > .ct-menu-link:hover {
    background: var(--dafy-orange-10);
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.18);
    transform: translateY(-1px);
  }

  #header-menu-1 .menu > .menu-item > .ct-menu-link:hover::after,
  #header-menu-1 .menu > :where(.current-menu-item, .current-menu-parent, .current-post-parent, .current-post-ancestor) > .ct-menu-link::after {
    transform: scaleX(1);
  }

  #header-menu-1 .menu > :where(.current-menu-item, .current-menu-parent, .current-post-parent, .current-post-ancestor) > .ct-menu-link {
    background: linear-gradient(135deg, var(--dafy-orange-16), rgba(252, 236, 7, 0.08));
    box-shadow: inset 0 0 0 1px rgba(252, 236, 7, 0.18);
  }



  #header-menu-1 .menu > .menu-item-has-children {
    margin-bottom: -14px;
    padding-bottom: 14px;
  }

  #header-menu-1 .menu > .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 14px;
  }

  #header-menu-1 .sub-menu {
    top: calc(100% + 8px) !important;
    margin-top: 0 !important;
    padding: 10px;
    border: 1px solid var(--dafy-orange-24);
    border-radius: var(--dafy-radius-lg);
    background: rgba(26, 26, 26, 0.985);
    box-shadow: var(--dafy-shadow-md);
  }

  #header-menu-1 .sub-menu .ct-menu-link {
    display: block;
    padding: 11px 14px;
    border-radius: var(--dafy-radius-sm);
    color: var(--dafy-orange);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
      background-color var(--dafy-duration-fast) var(--dafy-ease),
      color var(--dafy-duration-fast) var(--dafy-ease),
      transform var(--dafy-duration-fast) var(--dafy-ease);
  }

  #header-menu-1 .sub-menu .ct-menu-link:hover {
    background: var(--dafy-orange-10);
    color: var(--dafy-orange-hover);
    transform: translateX(2px);
  }

  #header-menu-1 .sub-menu .menu-item-has-children {
    position: relative;
  }

  #header-menu-1 .sub-menu .menu-item-has-children > .sub-menu {
    top: 0 !important;
    left: calc(100% + 8px) !important;
    margin-top: 0 !important;
    transform: none !important;
  }

  #header-menu-1 .sub-menu .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
  }

  #header[data-id="type-1"] [data-device="desktop"] .ct-header-search.ct-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--dafy-orange-24);
    border-radius: var(--dafy-radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    box-shadow: var(--dafy-shadow-xs);
  }

  #header[data-id="type-1"] [data-device="desktop"] .ct-header-search.ct-toggle:hover {
    border-color: rgba(252, 236, 7, 0.45);
    background: var(--dafy-orange-10);
    transform: translateY(-1px);
  }


}

@media (max-width: 1024px) {
  #header[data-id="type-1"] [data-device="mobile"] [data-row="middle"] {
    border-bottom: 1px solid var(--dafy-orange-24);
    background: rgba(17, 17, 17, 0.98);
    box-shadow: var(--dafy-shadow-xs);
  }

  #header[data-id="type-1"] [data-device="mobile"] :where(.ct-header-search.ct-toggle, .ct-header-trigger.ct-toggle) {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dafy-orange-24);
    border-radius: var(--dafy-radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    box-shadow: none;
  }

  .ct-panel,
  .ct-drawer-canvas {
    background: linear-gradient(180deg, var(--dafy-surface-1), var(--dafy-surface-3));
    color: var(--dafy-text);
  }

  .ct-panel :where(.menu > .menu-item > .ct-menu-link, .sub-menu .ct-menu-link) {
    border-radius: var(--dafy-radius-sm);
    color: inherit;
  }

  .ct-panel :where(.menu > .menu-item > .ct-menu-link, .sub-menu .ct-menu-link):hover {
    background: var(--dafy-orange-10);
  }
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                         */
/* -------------------------------------------------------------------------- */

.entry-content .custom-faq-item {
  position: relative;
  max-width: var(--dafy-content-width);
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--dafy-border-strong);
  border-left: 4px solid var(--dafy-orange);
  border-radius: var(--dafy-radius-lg);
  background: linear-gradient(180deg, var(--dafy-surface-2), var(--dafy-surface-1));
  color: var(--dafy-text-secondary);
  box-shadow: var(--dafy-shadow-sm);
  transition:
    transform var(--dafy-duration-fast) var(--dafy-ease),
    box-shadow var(--dafy-duration-fast) var(--dafy-ease),
    border-color var(--dafy-duration-fast) var(--dafy-ease);
}

.entry-content .custom-faq-item:hover {
  border-color: rgba(255, 102, 0, 0.55);
  transform: translateY(-3px);
  box-shadow: var(--dafy-shadow-md);
}

.entry-content .custom-faq-item[open] {
  border-left-color: var(--dafy-yellow);
}

.entry-content .custom-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--dafy-radius-lg);
  color: var(--dafy-text);
  cursor: pointer;
  list-style: none;
}

.entry-content .custom-faq-question::-webkit-details-marker {
  display: none;
}

.entry-content .custom-faq-question::marker {
  content: "";
}

.entry-content .custom-faq-question:hover {
  background: var(--dafy-orange-06);
}

.entry-content .custom-faq-question::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-right: 2px solid var(--dafy-yellow);
  border-bottom: 2px solid var(--dafy-yellow);
  transform: rotate(45deg);
  transition: transform var(--dafy-duration-base) var(--dafy-ease);
}

.entry-content .custom-faq-item[open] .custom-faq-question::after {
  border-color: var(--dafy-orange-hover);
  transform: rotate(225deg);
}

.entry-content .custom-faq-heading {
  display: block;
  margin: 0 !important;
  padding: 0;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.entry-content .custom-faq-answer {
  padding: 0 22px 22px;
  color: var(--dafy-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.entry-content .custom-faq-answer > :first-child {
  margin-top: 0;
}

.entry-content .custom-faq-answer > :last-child {
  margin-bottom: 0;
}

.entry-content .custom-faq-answer a {
  color: var(--dafy-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content .custom-faq-answer a:hover {
  color: var(--dafy-yellow);
}

/* -------------------------------------------------------------------------- */
/* INLINE CODE                                                                 */
/* -------------------------------------------------------------------------- */

:where(.entry-content, .wp-block-post-content, .site-main, .ct-sidebar, .ct-widget) :not(pre) > code {
  display: inline;
  margin-inline: 2px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: var(--dafy-surface-5);
  color: var(--dafy-yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.22);
}

:where(.entry-content, .wp-block-post-content, .site-main, .ct-sidebar, .ct-widget) :not(pre) > code:hover {
  border-color: rgba(252, 236, 7, 0.35);
  background: var(--dafy-border);
  color: #ffffff;
}

:where(.entry-content, .wp-block-post-content, .site-main) :where(pre, .wp-block-code) code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 400;
  box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* SINGLE ARTICLE HEADER                                                       */
/* -------------------------------------------------------------------------- */

.single .hero-section[data-type="type-1"],
.single-post .hero-section[data-type="type-1"] {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.single .entry-header,
.single-post .entry-header {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 5px solid var(--dafy-orange);
  border-radius: var(--dafy-radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(252, 236, 7, 0.10), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(255, 102, 0, 0.13), transparent 35%),
    linear-gradient(145deg, #242424 0%, #1a1a1a 72%);
  box-shadow: var(--dafy-shadow-lg);
}

.single .entry-header::after,
.single-post .entry-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--dafy-orange), var(--dafy-yellow), transparent 78%);
  pointer-events: none;
}

.single .entry-header > :where(.page-title, .entry-title, h1.page-title, h1.entry-title),
.single-post .entry-header > :where(.page-title, .entry-title, h1.page-title, h1.entry-title) {
  flex: 0 0 100%;
  max-width: none;
  margin: 0 0 clamp(6px, 1vw, 10px);
  color: var(--dafy-yellow);
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.single .entry-header > :where(.page-title, .entry-title)::before,
.single .entry-header > :where(.page-title, .entry-title)::after,
.single-post .entry-header > :where(.page-title, .entry-title)::before,
.single-post .entry-header > :where(.page-title, .entry-title)::after {
  content: none;
  display: none;
}

.single .entry-header .entry-meta,
.single-post .entry-header .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  box-shadow: none;
}

.single .entry-header .entry-meta > li,
.single-post .entry-header .entry-meta > li {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  box-shadow: none;
  transform: none;
}

.single .entry-header .entry-meta > li::before,
.single .entry-header .entry-meta > li::after,
.single-post .entry-header .entry-meta > li::before,
.single-post .entry-header .entry-meta > li::after {
  content: none;
}

.single .entry-header .meta-categories,
.single-post .entry-header .meta-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.single .entry-header .meta-categories a,
.single-post .entry-header .meta-categories a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 102, 0, 0.9);
  border-radius: var(--dafy-radius-pill);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.98), rgba(255, 133, 52, 0.88));
  color: var(--dafy-text-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--dafy-shadow-orange);
}

.single .entry-header .meta-categories a::before,
.single .entry-header .meta-categories a::after,
.single-post .entry-header .meta-categories a::before,
.single-post .entry-header .meta-categories a::after {
  content: none;
  display: none;
}

.single .entry-header .meta-categories a:hover,
.single-post .entry-header .meta-categories a:hover {
  border-color: var(--dafy-yellow);
  background: var(--dafy-yellow);
  transform: translateY(-1px);
}

.single .entry-header .entry-meta > :where(.meta-date, .meta-updated-date),
.single-post .entry-header .entry-meta > :where(.meta-date, .meta-updated-date) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 102, 0, 0.42);
  border-radius: var(--dafy-radius-pill);
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.96), rgba(26, 26, 26, 0.96));
  color: var(--dafy-text-secondary);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: var(--dafy-shadow-xs);
}

.single .entry-header .entry-meta > .meta-date::before,
.single-post .entry-header .entry-meta > .meta-date::before {
  content: "Опубликовано";
  display: inline-flex;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 102, 0, 0.32);
  color: var(--dafy-orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.single .entry-header .entry-meta > .meta-updated-date,
.single-post .entry-header .entry-meta > .meta-updated-date {
  border-color: rgba(252, 236, 7, 0.36);
}

.single .entry-header .entry-meta > .meta-updated-date::before,
.single-post .entry-header .entry-meta > .meta-updated-date::before {
  content: "Обновлено";
  display: inline-flex;
  padding-right: 8px;
  border-right: 1px solid rgba(252, 236, 7, 0.36);
  color: var(--dafy-yellow);
  font-size: 0.78rem;
  font-weight: 700;
}

.single .entry-header :where(.meta-date, .meta-updated-date) :where(time, .ct-meta-element-date),
.single-post .entry-header :where(.meta-date, .meta-updated-date) :where(time, .ct-meta-element-date) {
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* IMAGE CTA GROUPS                                                            */
/* -------------------------------------------------------------------------- */

.preferred-source-box,
.dafy-cta-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
}

.preferred-source-box {
  gap: 25px;
}

.preferred-source-box a {
  display: block;
  flex: 0 1 auto;
  width: 100%;
}

.preferred-source-box a:first-child {
  max-width: 400px;
}

.preferred-source-box a:last-child {
  max-width: 330px;
}

.preferred-source-box img,
.dafy-cta-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.dafy-cta-minimal {
  max-width: fit-content;
  padding: 20px;
  border: 1px solid var(--dafy-surface-5);
  border-radius: var(--dafy-radius-lg);
  background: #1c1c1c;
}

.dafy-cta-link {
  display: block;
  max-width: 180px;
  line-height: 0;
  transition: transform var(--dafy-duration-fast) var(--dafy-ease);
}

.dafy-cta-link:hover {
  transform: scale(1.06);
}

/* -------------------------------------------------------------------------- */
/* EXTERNAL LINKS AND LIGHTBOX CURSOR                                          */
/* -------------------------------------------------------------------------- */

@supports selector(a:has(img)) {
  .entry-content a[target="_blank"]:not(:has(img)):not(:is(
    .gog-button,
    .gmg-button,
    .wp-block-button__link,
    .wp-element-button,
    .ct-button,
    .ct-button-outline,
    .button,
    .btn,
    .cta-link-button,
    .entry-button,
    .game-buy-box__button,
    .ct-load-more,
    .ct-cookies-accept-button,
    .ct-cookies-decline-button,
    .dark-button,
    .dark-outline-button,
    .dg-button,
    .dg-card__link,
    .dg-game__button,
    .dafy-support-card__button
  ))::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.3em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF6600' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-1px);
  }
}

.dafy-lightbox-media,
.dafy-lightbox-media img[data-dafy-lightbox],
img[data-dafy-lightbox] {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M7 13h2V9h2V7h8v2h2v2h2v8h-2v2h-3v2h-7v-2H9v-2H7z' fill='%23fcec07' stroke='%23171717' stroke-width='4' stroke-linejoin='miter'/%3E%3Cpath d='M7 13h2V9h2V7h8v2h2v2h2v8h-2v2h-3v2h-7v-2H9v-2H7z' fill='%23fcec07' stroke='%23ff6600' stroke-width='2' stroke-linejoin='miter'/%3E%3Cpath d='M20 20h3v3h2v2h2v3h-3v-2h-2v-2h-2z' fill='%23ff6600' stroke='%23171717' stroke-width='3' stroke-linejoin='miter'/%3E%3Cpath d='M20 20h3v3h2v2h2v3h-3v-2h-2v-2h-2z' fill='%23ff6600' stroke='%23fcec07' stroke-width='1' stroke-linejoin='miter'/%3E%3Cpath d='M23 4h2v3h3v2h-3v3h-2V9h-3V7h3z' fill='%23ffffff' stroke='%23171717' stroke-width='1'/%3E%3C/svg%3E") 9 9,
    zoom-in;
}
