.rdgj-landing { background: #f8f7f4; }
.rdgj-landing .wp-site-blocks > :is(header, footer),
.rdgj-landing .wp-site-blocks > main > .wp-block-group > .wp-block-post-title { display: none; }
.rdgj-landing .wp-site-blocks > main { margin-block: 0; padding-block: 0 !important; }
.rdgj-landing .wp-site-blocks > main > .wp-block-group { padding-block: 0 !important; }
.rdgj-landing .entry-content { margin-block: 0 !important; }
.rdgj-landing .entry-content > .rdgj { width: min(100%, 68rem); max-width: none; margin: 0 auto; }

.rdgj {
  --rdgj-ink: #241d20;
  --rdgj-muted: #63565d;
  --rdgj-paper: #f7f4f0;
  --rdgj-line: #e5dce0;
  --rdgj-red: #822d3d;
  --rdgj-green: #267259;
  color: var(--rdgj-ink);
  font: 1rem/1.5 system-ui, sans-serif;
  padding-block: 1.2rem 3rem;
}

.rdgj *, .rdgj *::before, .rdgj *::after { box-sizing: border-box; }
.rdgj [hidden] { display: none; }
.rdgj button, .rdgj input { font: inherit; }
.rdgj button { cursor: pointer; }
.rdgj button:disabled { cursor: default; }
.rdgj :is(button, input, a):focus-visible { outline: 3px solid #1862a1; outline-offset: 3px; z-index: 1; }
.rdgj :is(button, input):focus-visible { position: relative; }

.rdgj-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.rdgj a.rdgj-brand-home {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border-radius: .85rem;
  color: inherit;
  text-decoration: none;
}
.rdgj-brand-home:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.rdgj-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .85rem;
  background: var(--rdgj-red);
  color: #f9d47f;
  font-size: 1.45rem;
}
.rdgj-brand strong, .rdgj-brand small { display: block; }
.rdgj-brand strong { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.rdgj-brand small { color: var(--rdgj-muted); font-size: .8rem; }

.rdgj-hero {
  overflow: hidden;
  border-radius: clamp(.95rem, 2vw, 1.45rem);
  background: var(--rdgj-red);
  color: white;
  box-shadow: 0 12px 30px #48222b11;
}
.rdgj-landscape { margin: 0; position: relative; background: #2c4162; }
.rdgj-landscape img {
  display: block;
  width: 100%;
  height: clamp(12rem, 34vw, 22rem);
  object-fit: cover;
  object-position: 42% 40%;
}
.rdgj-landscape figcaption {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  padding: .22rem .45rem;
  border-radius: .35rem;
  background: #19151fdf;
  color: white;
  font-size: .65rem;
}
.rdgj-landscape figcaption a { color: inherit; text-decoration: underline; }
.rdgj-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  align-items: center;
  padding: clamp(1rem, 3.4vw, 1.9rem);
}
.rdgj-hero-copy :is(h1, h2) {
  color: white;
  font: 800 clamp(1.55rem, 4vw, 2.85rem)/1.08 system-ui, sans-serif;
  letter-spacing: -.04em;
  margin: 0;
  text-wrap: balance;
}
.rdgj-hero-copy p { grid-area: 2 / 1; margin: .36rem 0 0; color: #fff3ec; }
.rdgj-start {
  grid-area: 1 / 2 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3rem;
  padding: .55rem 1.15rem;
  border: 0;
  border-radius: .65rem;
  background: #f5cc70;
  color: #312117;
  font-weight: 800 !important;
  white-space: nowrap;
  box-shadow: 0 3px 0 #59202a;
  transition: background-color .16s, transform .16s;
}
.rdgj-start:hover { background: #ffe093; transform: translateY(-2px); }
.rdgj-start:active { transform: translateY(2px); }
.rdgj-start:focus-visible { outline-color: #fff; }

.rdgj .rdgj-catalogue-title {
  font: 800 clamp(1.25rem, 3.2vw, 1.8rem)/1.2 system-ui, sans-serif;
  letter-spacing: -.025em;
  margin: 1.65rem 0 .85rem;
}

.rdgj-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1rem); }
.rdgj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rdgj-line);
  border-radius: 1rem;
  background: white;
  color: var(--rdgj-ink);
  padding: 0;
  text-align: left;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.rdgj-card:hover { border-color: var(--rdgj-card-color); transform: translateY(-3px); box-shadow: 0 8px 18px #26132016; }
.rdgj-card-content { flex: 1; display: flex; flex-direction: column; gap: .24rem; width: 100%; padding: .78rem .9rem .88rem; }
.rdgj-card-title { font-size: clamp(.92rem, 2vw, 1.15rem); font-weight: 800; line-height: 1.18; }
.rdgj-card-description { flex: 1; color: var(--rdgj-muted); font-size: .83rem; line-height: 1.35; }
.rdgj-card-cta { display: flex; justify-content: space-between; align-items: center; margin-top: .35rem; color: var(--rdgj-card-color); font-size: .83rem; font-weight: 800; }
.rdgj-card-cta span { font-size: 1.15rem; line-height: 1; }

.rdgj-card[data-game="sopa"] { --rdgj-card-color: #24664e; --rdgj-preview-bg: #cce9cb; }
.rdgj-card[data-game="quiz"] { --rdgj-card-color: #3158a9; --rdgj-preview-bg: #172d61; }
.rdgj-card[data-game="completa"] { --rdgj-card-color: #286d98; --rdgj-preview-bg: #d4eefa; }
.rdgj-card[data-game="adivina"] { --rdgj-card-color: #654492; --rdgj-preview-bg: #e8dcfb; }
.rdgj-card[data-game="crucigrama"] { --rdgj-card-color: #995522; --rdgj-preview-bg: #f4dbb6; }
.rdgj-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(4.8rem, 15vw, 7.9rem);
  overflow: hidden;
  background: radial-gradient(circle at 50% 0, #ffffff80, transparent 70%), var(--rdgj-preview-bg);
}
.rdgj-preview-board { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 3px; width: fit-content; }
.rdgj-preview-tile {
  display: grid;
  place-items: center;
  width: clamp(.9rem, 3.1vw, 1.8rem);
  aspect-ratio: 1;
  border-radius: .27rem;
  background: white;
  color: var(--rdgj-card-color);
  font-size: clamp(.55rem, 1.7vw, .92rem);
  font-weight: 850;
  box-shadow: 0 2px 0 #0e273528;
}
[data-game="sopa"] .rdgj-preview-board {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: row;
  transform: rotate(-7deg);
}
[data-game="sopa"] .rdgj-preview-tile:nth-child(n+6):nth-child(-n+9) { background: #347d5b; color: white; }
[data-game="quiz"] .rdgj-preview {
  background: radial-gradient(ellipse at bottom, #3875bb, transparent 72%), radial-gradient(ellipse at top right, #602e7e, transparent 60%), #18264e;
}
[data-game="quiz"] .rdgj-preview-board { gap: clamp(.3rem, 1.4vw, .75rem); transform: rotate(-5deg); }
[data-game="quiz"] .rdgj-preview-tile {
  width: clamp(1.35rem, 4.5vw, 2.9rem);
  border: 2px solid #ffffffba;
  border-radius: 50%;
  background: #2872b3;
  color: white;
}
[data-game="quiz"] .rdgj-preview-tile:nth-child(2) { background: #a93d68; }
[data-game="quiz"] .rdgj-preview-tile:nth-child(3) { background: #427b46; }
[data-game="completa"] .rdgj-preview-tile:empty { background: #a5d0eb; border: 2px dashed #396e9a; }
[data-game="adivina"] .rdgj-preview-board { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; transform: rotate(6deg); }
[data-game="adivina"] .rdgj-preview-tile:first-child { background: #306e54; color: white; }
[data-game="adivina"] .rdgj-preview-tile:nth-child(2) { background: #f3cc77; color: #513414; }
[data-game="crucigrama"] .rdgj-preview-board { grid-template-columns: repeat(5, 1fr); grid-auto-flow: row; transform: rotate(-7deg); gap: 1px; }
[data-game="crucigrama"] .rdgj-preview-tile { width: clamp(.7rem, 2.5vw, 1.25rem); border-radius: .1rem; border: 1px solid #c69563; box-shadow: none; }
[data-game="crucigrama"] .rdgj-preview-tile.is-blank { visibility: hidden; }

@media (max-width: 680px) {
  .rdgj-hero-copy { grid-template-columns: 1fr; }
  .rdgj-start { grid-area: auto; width: 100%; margin-top: .8rem; }
  .rdgj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .rdgj-card, .rdgj-start { transition: none; }
}

.rdgj-play {
  scroll-margin-top: 3rem;
  padding: clamp(.8rem, 3vw, 1.5rem);
  border: 1px solid var(--rdgj-line);
  border-radius: 1rem;
  background: white;
  max-width: 54rem;
  margin-inline: auto;
  box-shadow: 0 12px 30px #48222b11;
}
.rdgj-play[hidden] { display: none; }
.rdgj-play-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--rdgj-line);
}

.rdgj-back {
  min-height: 2.5rem;
  margin: -.25rem 0 .55rem;
  padding: .15rem .35rem;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: var(--rdgj-red);
  font-weight: 750 !important;
}
.rdgj-back:hover { text-decoration: underline; }
.rdgj .rdgj-game-title, .rdgj .rdgj-prompt {
  color: var(--rdgj-ink);
  font-family: system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
}
.rdgj .rdgj-game-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0; }
.rdgj .rdgj-prompt { font-size: clamp(1.15rem, 2.75vw, 1.65rem); margin: .65rem 0 1rem; }
.rdgj-word { display: flex; flex-wrap: wrap; gap: clamp(2px, .75vw, 5px); margin: .65rem 0; }
.rdgj-fragment-tile {
  display: grid;
  place-items: center;
  width: clamp(1.35rem, 5.8vw, 2.55rem);
  aspect-ratio: 1;
  border: 2px solid #b7d8ef;
  border-radius: .35rem;
  background: #e1f0fc;
  color: #164a77;
  font-size: clamp(.9rem, 3vw, 1.35rem);
  font-weight: 850;
}
.rdgj-fragment-tile.is-gap { border-style: dashed; border-color: #4482b1; background: white; }
.rdgj-game { margin-top: .85rem; }
.rdgj-game p { margin: .4rem 0 .75rem; }
.rdgj-progress { color: var(--rdgj-red); font-size: .84rem; font-weight: 750; }
.rdgj-legend { color: var(--rdgj-muted); font-size: .87rem; }
.rdgj-status {
  font-weight: 650;
  margin: .8rem 0 0;
  min-height: 1.5em;
}
.rdgj-status:empty { min-height: 0; margin: 0; }

.rdgj-action, .rdgj-reset, .rdgj-choice {
  min-height: 2.65rem;
  padding: .45rem .8rem;
  border: 1px solid var(--rdgj-line);
  border-radius: .45rem;
}
.rdgj-action { background: var(--rdgj-red); color: white; border-color: var(--rdgj-red); font-weight: 650; }
.rdgj-action:hover:not(:disabled) { background: #703026; }
.rdgj-reset, .rdgj-choice { background: #faf6ee; color: var(--rdgj-ink); }
.rdgj-reset:hover, .rdgj-choice:hover:not(:disabled) { border-color: var(--rdgj-red); }
.rdgj-action:disabled, .rdgj-form input:disabled { opacity: .65; }
.rdgj-choices { display: grid; gap: .5rem; margin-bottom: .75rem; max-width: 32rem; }
.rdgj-choice { text-align: left; }
.rdgj-choice.is-correct, .rdgj-cross-cell.is-correct { background: #dfefe4; border-color: var(--rdgj-green); }
.rdgj-choice.is-wrong, .rdgj-cross-cell.is-wrong { background: #f9ded5; border-color: var(--rdgj-red); }
.rdgj-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .5rem;
  margin-bottom: .7rem;
}
.rdgj-field { display: grid; gap: .25rem; min-width: 0; max-width: 100%; font-weight: 650; }
.rdgj-field input {
  width: min(100%, 15rem);
  min-height: 2.65rem;
  border: 1px solid #887967;
  border-radius: .45rem;
  background: white;
  color: var(--rdgj-ink);
  padding-inline: .55rem;
  text-transform: uppercase;
}

.rdgj-guess-board {
  display: grid;
  gap: .3rem;
  list-style: none;
  margin: .75rem 0;
  padding: 0;
  width: min(100%, 19rem);
}
.rdgj-guess-row { display: grid; grid-template-columns: repeat(var(--rdgj-answer-length, 6), minmax(0, 1fr)); gap: .3rem; }
.rdgj-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--rdgj-line);
  border-radius: .35rem;
  background: var(--rdgj-paper);
  font-weight: 750;
}
.rdgj-tile small { position: absolute; right: .13rem; bottom: .02rem; font-size: .67em; }
.rdgj-tile.is-exact { background: var(--rdgj-green); color: white; }
.rdgj-tile.is-present { background: #f5d68d; color: #302311; }
.rdgj-tile.is-absent { background: #514840; color: white; }

.rdgj-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: .55rem 0 .75rem;
}
.rdgj-word-list li {
  border-radius: .3rem;
  background: #f2e9db;
  padding: .2rem .45rem;
  font-size: .81rem;
  font-weight: 750;
}
.rdgj-word-list .is-found,
.rdgj-search-cell.is-found {
  background: #12634a;
  color: #fff;
  border-color: #0b4936;
}
.rdgj-search-grid {
  display: grid;
  grid-template-columns: repeat(var(--rdgj-search-size, 10), minmax(0, 1fr));
  gap: clamp(1px, .5vw, 4px);
  width: min(100%, 29rem);
}
.rdgj-search-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  background: var(--rdgj-paper);
  color: var(--rdgj-ink);
  border: 1px solid var(--rdgj-line);
  border-radius: .25rem;
  font-size: clamp(.72rem, 2.8vw, 1rem) !important;
  font-weight: 700 !important;
}
.rdgj-search-cell[aria-pressed="true"] {
  background: #303c99;
  color: #fff;
  border-color: #20296b;
  box-shadow: inset 0 0 0 2px #fff;
}

.rdgj-cross-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.rdgj-cross-grid {
  display: grid;
  grid-template-columns: repeat(var(--rdgj-cross-columns, 8), minmax(0, 1fr));
  gap: 2px;
  width: min(100%, 18rem);
}
.rdgj-cross-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  background: white;
  border: 1px solid #927d68;
  border-radius: .2rem;
}
.rdgj-cross-cell[aria-hidden="true"] { background: #eee6db; border-color: transparent; }
.rdgj-cross-cell.is-active:not(.is-correct, .is-wrong) { background: #faedd7; }
.rdgj-cross-cell input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: .4rem 0 0;
  border-radius: inherit;
  background: transparent;
  color: var(--rdgj-ink);
  text-align: center;
  font-weight: 750;
  text-transform: uppercase;
}
.rdgj-cross-number {
  position: absolute;
  top: 0;
  left: .13rem;
  z-index: 2;
  font-size: .62rem;
  pointer-events: none;
}
.rdgj-cross-clues {
  display: grid;
  gap: .35rem;
  flex: 1 1 12rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rdgj-cross-clues button { width: 100%; font-size: .9rem; }
.rdgj-cross-clues button[aria-pressed="true"] { background: #faedd7; border-color: #927d68; }

.rdgj-play[data-active-game="quiz"] {
  --rdgj-ink: #fff;
  --rdgj-red: #e0e9ff;
  --rdgj-line: #849de25c;
  background: radial-gradient(ellipse at bottom left, #214985, transparent 76%), radial-gradient(ellipse at top right, #592d71, transparent 70%), #182246;
  color: white;
}
[data-active-game="quiz"] .rdgj-reset { background: #ffffff1a; color: white; }
[data-active-game="quiz"] .rdgj-action { background: #f5cc70; color: #261d25; border-color: #f5cc70; }
[data-active-game="quiz"] .rdgj-action:hover:not(:disabled) { background: #ffe093; }
[data-active-game="quiz"] button:focus-visible { outline-color: #f5cc70; }
.rdgj-quiz-meter {
  display: block;
  width: min(100%, 19rem);
  height: .42rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  appearance: none;
  color: #f5cc70;
  background: #ffffff2e;
}
.rdgj-quiz-meter::-webkit-progress-bar { background: #ffffff2e; border-radius: 1rem; }
.rdgj-quiz-meter::-webkit-progress-value { background: #f5cc70; border-radius: 1rem; }
.rdgj-quiz-meter::-moz-progress-bar { background: #f5cc70; border-radius: 1rem; }
[data-active-game="quiz"] .rdgj-choice {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  border-color: #aac0ef70;
  color: white;
  background: #ffffff14;
}
[data-active-game="quiz"] .rdgj-choice:hover:not(:disabled) { background: #ffffff2b; }
.rdgj-choice-letter {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #2872b3;
  color: white;
  font-size: .83rem;
  font-weight: 850;
}
.rdgj-choice:nth-child(2) .rdgj-choice-letter { background: #a93d68; }
.rdgj-choice:nth-child(3) .rdgj-choice-letter { background: #427b46; }
[data-active-game="quiz"] .rdgj-choice.is-selected { background: #ffffff32; border-color: #f5cc70; }

.rdgj-play[data-active-game="sopa"] { --rdgj-red: #286a51; --rdgj-paper: #edf6ee; --rdgj-line: #c9dfce; }
.rdgj-play[data-active-game="completa"] { --rdgj-red: #255d8d; --rdgj-paper: #eef7fe; --rdgj-line: #c7dfef; }
.rdgj-play[data-active-game="adivina"] { --rdgj-red: #603e88; --rdgj-paper: #f2edf9; --rdgj-line: #ded0eb; }
.rdgj-play[data-active-game="crucigrama"] { --rdgj-red: #8e4d27; --rdgj-paper: #fbf4eb; --rdgj-line: #e7d7c2; }

.rdgj-brand { flex-wrap: wrap; }
.rdgj-auth-brand img { vertical-align: middle; border-radius: .45rem; }
.rdgj-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .65rem;
  margin-left: auto;
  font-size: .79rem;
  font-weight: 720;
}
.rdgj-account a { color: #6b3079; text-underline-offset: .15em; }
.rdgj-player {
  padding: .2rem .52rem;
  border-radius: 999px;
  color: #53257c;
  background: #efe1ff;
}
.rdgj .rdgj-scorebar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 .95rem;
  padding: .6rem .7rem;
  border: 1px solid #542482;
  border-radius: .95rem;
  background: linear-gradient(125deg, #30135d, #592389 74%, #6d2d92);
  color: #fff;
  box-shadow: 0 6px 14px #2d135633;
}
body.admin-bar .rdgj-scorebar { top: 32px; }
.rdgj-score-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
}
.rdgj-coin, .rdgj-flying-coin {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.65rem;
  aspect-ratio: 1;
  border: 2px solid #ffdc79;
  border-radius: 50%;
  background: #fabb29;
  color: #63350a;
  box-shadow: 0 2px 0 #b76a11;
  font-weight: 900;
}
.rdgj-total { font-size: clamp(.9rem, 2.4vw, 1.24rem); white-space: nowrap; }
.rdgj-score-home {
  min-height: 1.8rem;
  margin-left: auto;
  border: 1px solid #ffffff6b;
  border-radius: .52rem;
  padding: .12rem .45rem;
  color: white;
  background: #ffffff19;
  font-size: .78rem !important;
  font-weight: 780 !important;
  white-space: nowrap;
}
.rdgj-score-home:not([hidden]) + .rdgj-trophies { margin-left: 0; }
.rdgj-score-home:hover { background: #ffffff3d; }

.rdgj-trophies { position: relative; margin-left: auto; }
.rdgj-trophies summary {
  width: max-content;
  padding: .25rem .5rem;
  border: 1px solid #ffe09888;
  border-radius: 999px;
  color: #fff4c6;
  background: #2b12566e;
  font-size: .75rem;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}
.rdgj-trophies summary::-webkit-details-marker { display: none; }
.rdgj-trophies summary:focus-visible { outline: 2px solid #ffe789; outline-offset: 3px; }
.rdgj-trophy-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 2;
  width: min(18rem, calc(100vw - 3.15rem));
  padding: .7rem;
  border: 1px solid #e4d5f6;
  border-radius: .85rem;
  color: #321950;
  background: #fffaff;
  box-shadow: 0 12px 24px #32195044;
}
.rdgj-medals { display: grid; gap: .22rem; padding: 0; margin: 0; list-style: none; }
.rdgj-medals li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .3rem;
  padding: .2rem;
  font-size: .74rem;
}
.rdgj-medals small { color: #644b74; }
.rdgj-medal-icon { color: #754395; font-size: 1.12rem; line-height: 1; }
.rdgj-medals .is-earned .rdgj-medal-icon { color: #a55506; }
.rdgj-trophy-description {
  margin: .5rem 0 0;
  padding: .45rem;
  border-radius: .5rem;
  background: #ffeeaf;
  color: #5c350a;
  font-size: .75rem;
  font-weight: 720;
}

.rdgj-score-games { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; }
.rdgj-score-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: .05rem .25rem;
  min-height: 2.1rem;
  padding: .24rem .15rem;
  border: 2px solid transparent;
  border-radius: .45rem;
  background: var(--rdgj-chip-bg);
  color: var(--rdgj-chip-color);
  font-size: clamp(.64rem, 1.86vw, .86rem) !important;
  line-height: 1.05 !important;
  transition: transform .15s, box-shadow .15s;
}
.rdgj-score-game:hover { transform: translateY(-2px); }
.rdgj-score-game[aria-current="true"] { border-color: #fff; box-shadow: 0 0 0 2px #ffcc49; }
.rdgj-score-game[data-score-game="sopa"] { --rdgj-chip-bg: #d4fbac; --rdgj-chip-color: #235d20; }
.rdgj-score-game[data-score-game="quiz"] { --rdgj-chip-bg: #d4eaff; --rdgj-chip-color: #1b45a0; }
.rdgj-score-game[data-score-game="completa"] { --rdgj-chip-bg: #bcf8f4; --rdgj-chip-color: #005653; }
.rdgj-score-game[data-score-game="adivina"] { --rdgj-chip-bg: #ffe1fb; --rdgj-chip-color: #842776; }
.rdgj-score-game[data-score-game="crucigrama"] { --rdgj-chip-bg: #ffdfa3; --rdgj-chip-color: #81431a; }
.rdgj-score-game[data-score-game="solitario"] { --rdgj-chip-bg: #ffd0bf; --rdgj-chip-color: #742c27; }
.rdgj-game-points { white-space: nowrap; }
.rdgj-game-medal { color: #875000; font-size: .91em; }

.rdgj-coins { position: absolute; left: 1.85rem; top: .12rem; z-index: 3; pointer-events: none; }
.rdgj-flying-coin {
  position: absolute;
  opacity: 0;
  animation: rdgj-fly-coin .85s cubic-bezier(.2,.6,.35,1) forwards;
  animation-delay: calc(var(--rdgj-coin-index) * .065s);
}
.rdgj-points-pop {
  position: absolute;
  left: 3.2rem;
  z-index: 1;
  color: #ffea91;
  font-size: 1.24rem;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px #4a235d;
  animation: rdgj-add-points 1.2s ease-out both;
}
@keyframes rdgj-fly-coin {
  0% { opacity: 0; transform: translate(4rem, 2.6rem) scale(.65) rotate(-25deg); }
  25% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-1.8rem, 0) scale(.42) rotate(195deg); }
}
@keyframes rdgj-add-points {
  0% { opacity: 0; transform: translateY(.55rem); }
  25%, 75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-.55rem); }
}
.rdgj .rdgj-play { scroll-margin-top: 6.5rem; }
body.admin-bar .rdgj .rdgj-play { scroll-margin-top: 8.7rem; }
.rdgj-login .rdgj-action { display: inline-flex; align-items: center; margin-right: .6rem; text-decoration: none; }
.rdgj-card[data-game="sopa"] { --rdgj-preview-bg: #8de188; }
.rdgj-card[data-game="completa"] { --rdgj-preview-bg: #8fddf9; }
.rdgj-card[data-game="adivina"] { --rdgj-preview-bg: #d4acf9; }
.rdgj-card[data-game="crucigrama"] { --rdgj-preview-bg: #f8bd65; }
.rdgj-play[data-active-game="sopa"] { --rdgj-paper: #e5f8df; --rdgj-line: #afd7bc; }
.rdgj-play[data-active-game="completa"] { --rdgj-paper: #e2f5ff; --rdgj-line: #a6d7ee; }
.rdgj-play[data-active-game="adivina"] { --rdgj-paper: #eee3fc; --rdgj-line: #d6b7ed; }
.rdgj-play[data-active-game="crucigrama"] { --rdgj-paper: #fff0d9; --rdgj-line: #edcd95; }

@media (max-width: 782px) {
  body.admin-bar .rdgj-scorebar { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .rdgj-scorebar { top: 0; }
  body.admin-bar .rdgj .rdgj-play { scroll-margin-top: 6.5rem; }
  .rdgj-account { margin-left: 0; }
}
@media (max-width: 620px) {
  .rdgj-score-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .rdgj .rdgj-scorebar { padding-inline: .42rem; }
  .rdgj-score-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
  .rdgj-trophies summary { font-size: .67rem; }
  .rdgj .rdgj-play, body.admin-bar .rdgj .rdgj-play { scroll-margin-top: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rdgj-score-game, .rdgj-flying-coin, .rdgj-points-pop { transition: none; animation: none; }
  .rdgj-flying-coin { display: none; }
}

.rdgj-game-editor {
  margin-left: auto;
  padding: .4rem .65rem;
  border: 1px solid currentColor;
  border-radius: .55rem;
  color: var(--rdgj-red);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.rdgj-game-editor:hover { text-decoration: underline; }

.rdgj-account-page { background: #f5efff; }
.rdgj-landing .entry-content > .rdgj-auth {
  width: min(100%, 58rem);
  max-width: none;
  margin-inline: auto;
}
.rdgj-auth {
  padding-block: clamp(1.75rem, 5vw, 4.5rem);
  color: #291749;
  font: 1rem/1.55 system-ui, sans-serif;
}
.rdgj-auth *, .rdgj-auth *::before, .rdgj-auth *::after { box-sizing: border-box; }
.rdgj-auth a { color: #6632a2; text-underline-offset: .18em; }
.rdgj-auth :is(a, input, button):focus-visible {
  outline: 3px solid #1c72a3;
  outline-offset: 3px;
}
.rdgj-auth-home {
  display: inline-block;
  margin-bottom: .9rem;
  font-size: .9rem;
  font-weight: 760;
}
.rdgj-auth-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid #e3d4f5;
  border-radius: 1.55rem;
  background: #fff;
  box-shadow: 0 22px 52px -27px #4f237b80;
}
.rdgj-auth-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 23rem;
  overflow: hidden;
  padding: clamp(1.25rem, 3.8vw, 2.2rem);
  color: #fff;
  background: radial-gradient(ellipse at 15% 45%, #7539b0 0%, transparent 68%),
    radial-gradient(ellipse at 100% 2%, #c044a2 0%, transparent 63%), #35155e;
}
.rdgj-auth-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, #fff6 1px, transparent 1.5px) 0 0 / 18px 18px;
  mask-image: linear-gradient(160deg, black, transparent 76%);
}
.rdgj-auth-brand {
  position: absolute;
  top: clamp(1.25rem, 3.8vw, 2.2rem);
  left: clamp(1.25rem, 3.8vw, 2.2rem);
  color: #ffdf86;
  font-size: .88rem;
  font-weight: 800;
}
.rdgj-auth-cover strong {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 870;
  letter-spacing: -.05em;
  line-height: 1.1;
}
.rdgj-auth-cover small { margin-top: .4rem; color: #eee1ff; }
.rdgj-auth-tokens { display: flex; gap: .45rem; margin-block: 2.25rem 1.7rem; }
.rdgj-auth-tokens span {
  display: grid;
  place-items: center;
  width: clamp(2.15rem, 6vw, 3.55rem);
  aspect-ratio: 1;
  border: 2px solid #fff9;
  border-radius: .85rem;
  color: #182b54;
  background: #9ce4ff;
  box-shadow: 0 5px 0 #15104759;
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 900;
  transform: rotate(-12deg);
}
.rdgj-auth-tokens span:nth-child(2) {
  border-radius: 50%;
  color: #5c340e;
  background: #ffc64b;
  transform: translateY(-.7rem) rotate(12deg);
}
.rdgj-auth-tokens span:nth-child(3) {
  color: #432470;
  background: #ffacf0;
  transform: rotate(13deg);
}
.rdgj-auth-form { padding: clamp(1.25rem, 4vw, 2.65rem); }
.rdgj-auth-form h1 {
  margin: 0;
  color: #251343;
  font: 850 clamp(1.7rem, 4.4vw, 2.6rem)/1.07 system-ui, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.rdgj-auth-form p { margin: .65rem 0 0; color: #5c4d6f; font-size: .92rem; }
.rdgj-auth-form form { display: grid; gap: .72rem; margin-top: 1rem; }
.rdgj-auth-form label { display: grid; gap: .24rem; font-size: .86rem; font-weight: 740; }
.rdgj-auth-form input:not([type="checkbox"], [type="hidden"]) {
  width: 100%;
  min-height: 2.72rem;
  padding: .48rem .65rem;
  color: #291749;
  border: 1px solid #b9a7d5;
  border-radius: .55rem;
  background: #faf7ff;
  font: inherit;
  font-size: 1rem;
}
.rdgj-auth-form label.rdgj-auth-remember { display: flex; align-items: center; gap: .4rem; }
.rdgj-auth-remember input { accent-color: #5f2ca2; }
.rdgj-auth-cta {
  min-height: 2.8rem;
  padding: .5rem .85rem;
  border: 0;
  border-radius: .6rem;
  color: white;
  background: #6330a2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.rdgj-auth-cta:hover { background: #4b247c; }
.rdgj-auth-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .95rem; font-size: .85rem; }
.rdgj-auth-form .rdgj-auth-error, .rdgj-auth-form .rdgj-auth-info {
  padding: .52rem .68rem;
  border-radius: .45rem;
  color: #762237;
  background: #ffedf1;
}
.rdgj-auth-form .rdgj-auth-info { color: #245338; background: #edfaee; }

@media (max-width: 640px) {
  .rdgj-auth-card { grid-template-columns: 1fr; }
  .rdgj-auth-cover { flex-direction: row; justify-content: space-between; align-items: center; gap: .45rem; min-height: 0; padding: .9rem 1.1rem; }
  .rdgj-auth-brand { position: static; }
  .rdgj-auth-cover strong, .rdgj-auth-cover small { display: none; }
  .rdgj-auth-tokens { flex: 0 0 auto; gap: .24rem; margin: 0; }
  .rdgj-auth-tokens span { width: clamp(1.2rem, 5vw, 1.65rem); border-radius: .42rem; font-size: .8rem; }
  .rdgj-auth-tokens span:nth-child(2) { transform: translateY(.1rem) rotate(12deg); }
}

.rdgj-offline-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  margin: -.15rem 0 .9rem;
}
.rdgj-offline-prepare {
  min-height: 2.4rem;
  padding: .35rem .65rem;
  border: 1px solid #bda7d4;
  border-radius: .6rem;
  background: #f5eaff;
  color: #4f237b;
  font-size: .82rem !important;
  font-weight: 750 !important;
}
.rdgj-offline-notice { color: var(--rdgj-muted); font-size: .84rem; }
.rdgj-offline-shell { margin: 0; background: #f8f7f4; }
.rdgj-offline-shell .rdgj { width: calc(100% - 2rem); max-width: 68rem; margin-inline: auto; }
.rdgj-offline-shell .rdgj-account a { display: none; }
.rdgj-offline-form { display: grid; gap: .65rem; justify-items: start; }
.rdgj-offline-form .rdgj-cross-layout { width: 100%; margin-top: .35rem; }
.rdgj-offline-question {
  width: min(100%, 34rem);
  padding: .7rem .8rem;
  border: 1px solid #d0c9e0;
  border-radius: .65rem;
}
.rdgj-offline-question legend { padding-inline: .3rem; font-weight: 770; }
.rdgj-offline-question label { display: flex; gap: .5rem; align-items: start; padding: .2rem 0; }
.rdgj-offline-question input { accent-color: #b883e6; margin-top: .3rem; }
.rdgj-card[data-game="sudoku"] { --rdgj-card-color: #176271; --rdgj-preview-bg: #89e6df; }
[data-game="sudoku"] .rdgj-preview-board {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  transform: rotate(6deg);
}
[data-game="sudoku"] .rdgj-preview-tile:empty { background: #b3f3eb; }
.rdgj-score-game[data-score-game="sudoku"] { --rdgj-chip-bg: #b3efc9; --rdgj-chip-color: #175591; }
.rdgj-play[data-active-game="sudoku"] { --rdgj-red: #1d6178; }
.rdgj-sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  width: min(100%, 27rem);
  border: 2px solid #214b63;
  border-right-width: 1px;
  border-bottom-width: 1px;
  margin: .6rem 0 .85rem;
}
.rdgj .rdgj-sudoku-grid input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-right: 1px solid #b3cbd5;
  border-bottom: 1px solid #b3cbd5;
  border-radius: 0;
  background: white;
  color: #0a5673;
  text-align: center;
  font-size: clamp(.83rem, 3.3vw, 1.35rem);
  font-weight: 760;
}
.rdgj .rdgj-sudoku-grid input:nth-child(3n) { border-right: 2px solid #214b63; }
.rdgj .rdgj-sudoku-grid input:is(:nth-child(n+19):nth-child(-n+27), :nth-child(n+46):nth-child(-n+54), :nth-child(n+73)) { border-bottom: 2px solid #214b63; }
.rdgj .rdgj-sudoku-grid input.is-given { background: #e0edf2; color: #172c3d; }
.rdgj .rdgj-sudoku-grid input.is-wrong { background: #ffe1db; color: #8c2929; }
.rdgj-offline-mode { color: #612d94; font-size: .84rem; font-weight: 750; text-underline-offset: .18em; }

.rdgj-discoveries {
  margin-top: 1.2rem;
  padding-top: .95rem;
  border-top: 1px solid var(--rdgj-line);
}
.rdgj-discoveries h3 {
  margin: 0 0 .6rem;
  color: var(--rdgj-ink);
  font: 800 clamp(1.05rem, 2.5vw, 1.35rem)/1.25 system-ui, sans-serif;
  letter-spacing: -.018em;
}
.rdgj-discovery-terms {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.rdgj-discoveries .rdgj-discovery-term {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border: 1px solid #a5baff;
  border-radius: .55rem;
  color: #182e64;
  background: #eef3ff;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: .18em;
}
.rdgj-discoveries .rdgj-discovery-term:hover { background: #dbe7ff; }
.rdgj-discovery-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  color: white;
  background: #2357cb;
  font: 800 .75rem/1 system-ui, sans-serif;
}
.rdgj-reading {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  width: min(32rem, calc(100% - 24px));
  max-height: calc(100% - 24px);
  z-index: 100;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe4f4;
  border-radius: 1rem;
  color: #182235;
  background: white;
  box-shadow: 0 10px 34px #0d1c3f3b;
  overflow: auto;
}
.rdgj-reading-content { position: relative; padding: 1.15rem; }
.rdgj-reading .rdgj-reading-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #34405b;
  background: #edf0f6;
  font-size: 1.5rem;
}
.rdgj-reading .rdgj-reading-close:hover { background: #dfe6f3; }
.rdgj-reading .rdgj-reading-type {
  margin: 0 2.75rem .3rem 0;
  color: #4260a0;
  font-size: .78rem;
  font-weight: 760;
}
.rdgj-reading h4 {
  margin: 0 2.75rem .55rem 0;
  color: inherit;
  font: 780 1.15rem/1.25 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.rdgj-reading .rdgj-reading-excerpt { margin: 0 0 .85rem; color: #435069; font-size: .95rem; line-height: 1.5; }
.rdgj-reading .rdgj-reading-link {
  display: inline-block;
  padding: .6rem .8rem;
  border-radius: .55rem;
  color: white;
  background: #1c4fbf;
  font-weight: 700;
  text-decoration: none;
}
.rdgj-reading .rdgj-reading-link:hover { background: #153e9c; text-decoration: underline; }
.rdgj-explore {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: 1.25rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rdgj-line);
}
.rdgj-explore a { color: var(--rdgj-red); font-size: .86rem; font-weight: 760; text-underline-offset: .15em; }

.rdgj-card[data-game="verdadero"] { --rdgj-card-color: #784c19; --rdgj-preview-bg: #ffe174; }
[data-game="verdadero"] .rdgj-preview-board { gap: .5rem; transform: rotate(-7deg); }
[data-game="verdadero"] .rdgj-preview-tile {
  width: clamp(1.45rem, 5vw, 2.75rem);
  border-radius: .65rem;
  font-size: clamp(1rem, 3vw, 1.65rem);
}
[data-game="verdadero"] .rdgj-preview-tile:first-child { background: #d8f3db; color: #216443; }
[data-game="verdadero"] .rdgj-preview-tile:nth-child(2) { background: #ffe3e6; color: #912d50; }
.rdgj-score-game[data-score-game="verdadero"] { --rdgj-chip-bg: #ffea8f; --rdgj-chip-color: #60411e; }
.rdgj-play[data-active-game="verdadero"] { --rdgj-red: #754517; --rdgj-paper: #fff4d2; }
[data-active-game="verdadero"] .rdgj-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-active-game="verdadero"] .rdgj-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: .6rem;
  color: #25553c;
  background: #ebf9ef;
  border-color: #bfdac8;
  font-weight: 740;
}
[data-active-game="verdadero"] .rdgj-choice:nth-child(2) { color: #802647; background: #fff0f4; border-color: #edc7d6; }
[data-active-game="verdadero"] .rdgj-choice-letter { background: #276849; }
[data-active-game="verdadero"] .rdgj-choice:nth-child(2) .rdgj-choice-letter { background: #923455; }
[data-active-game="verdadero"] .rdgj-choice.is-selected { outline: 2px solid currentColor; }

.rdgj-gincana-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-radius: .8rem;
  color: #31214f;
  background: #ffe174;
  font-weight: 800;
}
.rdgj-gincana-entry small { margin-inline-start: auto; }
.rdgj-gincana .rdgj-hero-copy { margin: 1rem 0; border-radius: .9rem; }
.rdgj-gincana-round {
  margin: 1rem 0;
  padding: clamp(.85rem, 3vw, 1.5rem);
  border: 1px solid #d9cfea;
  border-radius: .9rem;
  background: #fcf8ff;
}
.rdgj-gincana-round h2 { margin: 0 0 .6rem; font-size: clamp(1.15rem, 3vw, 1.45rem); }
.rdgj-gincana-round form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-top: .8rem; }
.rdgj-gincana-round label { display: grid; gap: .2rem; flex: 1 1 12rem; }
.rdgj-gincana-round input { min-width: 0; padding: .52rem .65rem; border: 1px solid #87799d; border-radius: .45rem; font: inherit; }
.rdgj-ranking { width: 100%; border-collapse: collapse; text-align: left; }
.rdgj-ranking th, .rdgj-ranking td { padding: .65rem; border-bottom: 1px solid #d9cfea; }

/* The backdrop belongs to the page around the game panel. */
body[data-rdgj-backdrop="claro"] { background: #f8f7f4; }
body[data-rdgj-backdrop="oleo"] {
  --rdgj-background-art: url("fondo-oleo.webp");
  background-color: #171e52;
}
body[data-rdgj-backdrop="abstracto"] {
  --rdgj-background-art: url("fondo-abstracto.webp");
  background-color: #b54f3a;
}
body[data-rdgj-backdrop="fortalezas"] {
  --rdgj-background-art: url("fondo-fortalezas.webp");
  background-color: #254b43;
}
body[data-rdgj-backdrop="acuarela"] {
  --rdgj-background-art: url("fondo-acuarela.webp");
  background-color: #cadacb;
}
body[data-rdgj-backdrop="grabado"] {
  --rdgj-background-art: url("fondo-grabado.webp");
  background-color: #f4e5c6;
}
body[data-rdgj-backdrop="pixel"] {
  --rdgj-background-art: url("fondo-pixel.webp");
  background-color: #70569e;
}
body[data-rdgj-backdrop="estampa"] {
  --rdgj-background-art: url("fondo-estampa.webp");
  background-color: #a3b8b8;
}
body[data-rdgj-backdrop="comic"] {
  --rdgj-background-art: url("fondo-comic.webp");
  background-color: #dfad8e;
}
body[data-rdgj-backdrop="cosmos"] {
  --rdgj-background-art: url("fondo-cosmos.webp");
  background-color: #584b87;
}
body[data-rdgj-backdrop]:not([data-rdgj-backdrop="claro"]) {
  --rdgj-backdrop-wash: rgb(248 247 244 / 48%);
  background-image: linear-gradient(var(--rdgj-backdrop-wash), var(--rdgj-backdrop-wash)), var(--rdgj-background-art);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body[data-rdgj-backdrop]:not([data-rdgj-backdrop="claro"]) :is(.rdgj-brand, .rdgj-offline-tools) {
  padding: .55rem .7rem;
  border-radius: .65rem;
  background: rgb(255 252 244 / 94%);
}
.rdgj-level-setting select {
  max-width: 100%;
  min-height: 2.5rem;
  padding: .4rem .6rem;
  border: 1px solid #7f8592;
  border-radius: .5rem;
  color: #212334;
  background: #fff;
  font: inherit;
}
.rdgj-level-setting { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-weight: 700; }
.rdgj-global-backdrop { position: relative; min-width: 0; max-width: 100%; }
.rdgj-global-backdrop summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: .3rem .6rem;
  border: 1px solid #95819d;
  border-radius: .5rem;
  background: #fff;
  color: #212334;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.rdgj-global-backdrop summary::-webkit-details-marker { display: none; }
.rdgj-global-backdrop summary::after { content: '▾'; margin-inline-start: .2rem; }
.rdgj-backdrop-label { color: #62416a; }
.rdgj-selected-backdrop { min-width: 0; overflow-wrap: anywhere; }
.rdgj-backdrop-thumbnail {
  display: block;
  flex: none;
  width: 44px;
  height: 30px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #a49a94;
  border-radius: .25rem;
  background: #f8f7f4;
}
.rdgj-backdrop-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rdgj-backdrop-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + .35rem);
  left: 0;
  width: min(22rem, calc(100vw - 2.5rem));
  min-width: 0;
  max-height: min(26rem, 52vh);
  box-sizing: border-box;
  margin: 0;
  padding: .35rem;
  overflow: auto;
  border: 1px solid #d7cbe2;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 10px 30px #2c174d40;
}
.rdgj-backdrop-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .5rem;
  border-radius: .4rem;
  color: #282035;
  cursor: pointer;
  font-weight: 680;
}
.rdgj-backdrop-option input { margin: 0; accent-color: #633288; }
.rdgj-backdrop-option:hover,
.rdgj-backdrop-option:focus-within,
.rdgj-backdrop-option:has(input:checked) { background: #eee2fa; }
@media (max-width: 650px) {
  .rdgj-offline-tools { position: relative; }
  .rdgj-global-backdrop { position: static; }
  .rdgj-backdrop-options { left: 0; }
}
.rdgj-active-level { margin: .25rem 0 .65rem; font-size: .88rem; font-weight: 760; color: var(--rdgj-ink); }
.rdgj-word.is-solved .rdgj-fragment-tile { background: #12634a; border-color: #0b4936; color: #fff; }
.rdgj-celebration {
  margin-block: .7rem;
  padding: .8rem 1rem;
  border: 2px solid #ce9417;
  border-radius: .8rem;
  background: #ffe07d;
  color: #392661;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  text-align: center;
}
.rdgj-party {
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rdgj-party span { position: absolute; left: var(--x); background: var(--color); opacity: 0; }
.rdgj-party-title {
  position: absolute;
  top: 19%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  box-sizing: border-box;
  padding: .65em 1em;
  border: 3px solid #ffe477;
  border-radius: 1rem;
  background: #28144e;
  color: #fff3b1;
  box-shadow: 0 10px 30px #11092180;
  font: 900 clamp(1.7rem, 5vw, 3.6rem)/1.12 system-ui, sans-serif;
  text-align: center;
}
.rdgj-party-confetti {
  top: -1%;
  width: .48rem;
  height: .72rem;
  border-radius: .14rem;
  animation: rdgj-confetti 4.1s var(--delay) ease-out both;
}
.rdgj-party-spark {
  top: var(--y);
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color);
  animation: rdgj-spark 1.9s var(--delay) ease-out both;
}
@media (prefers-reduced-motion: no-preference) {
  .rdgj-party-title { animation: rdgj-party-title-out .45s 5.2s ease-in both; }
}
@keyframes rdgj-party-title-out { to { opacity: 0; } }
@keyframes rdgj-confetti {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: 1; }
  74% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0) rotate(630deg); }
}
@keyframes rdgj-spark {
  0% { opacity: 0; transform: scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); }
}

.rdgj-choice.is-selected.is-correct {
  outline: 2px solid #63d5a1;
  outline-offset: 2px;
}
.rdgj-restart-dialog {
  box-sizing: border-box;
  width: min(31rem, calc(100% - 2rem));
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #d9cfea;
  border-radius: .85rem;
  background: #fff;
  color: #202035;
  box-shadow: 0 16px 48px #20133455;
}
.rdgj-restart-dialog::backdrop { background: #20133468; }
.rdgj-restart-dialog h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.rdgj-restart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

.rdgj-card[data-game="solitario"] { --rdgj-preview-bg: #ffd58d; --rdgj-card-color: #8b3b40; }
.rdgj-play[data-active-game="solitario"] { --rdgj-red: #773437; --rdgj-line: #dfc7ba; }
.rdgj-solitaire {
  --rdgj-closed-step: clamp(.45rem, 1.2vw, .8rem);
  --rdgj-open-step: clamp(.85rem, 2vw, 1.5rem);
  padding: clamp(.35rem, 2vw, 1rem);
  border-radius: .85rem;
  background: #174e44;
  color: #fff6df;
}
.rdgj-solitaire > .rdgj-clue { color: inherit; margin-top: 0; font-size: .85rem; }
.rdgj-solitaire-row { display: grid; grid-template-columns: repeat(var(--rdgj-columns, 7), minmax(0, 1fr)); gap: clamp(.15rem, .8vw, .6rem); }
.rdgj-solitaire-columns { margin-top: 1rem; }
.rdgj-solitaire-column { display: grid; }
.rdgj-solitaire-column .rdgj-solitaire-card {
  grid-area: 1 / 1;
  margin-top: calc(var(--rdgj-covered, 0) * var(--rdgj-closed-step) + var(--rdgj-exposed, 0) * var(--rdgj-open-step));
}
.rdgj .rdgj-solitaire-card {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px dashed #b8ddc4;
  border-radius: clamp(.25rem, .65vw, .55rem);
  background: #113e37;
  color: #e6edd2;
  font-weight: 800;
  font-size: clamp(.66rem, 2vw, 1.22rem);
}
.rdgj .rdgj-solitaire-card[data-suit] { border: 2px solid #252525; background: #fff; color: #101010; }
.rdgj .rdgj-solitaire-card:is([data-suit="0"], [data-suit="2"]) { border-color: #a00019; background: #fff0ee; color: #ad001b; }
.rdgj .rdgj-solitaire-card.is-back { border: 1px solid #f3c994; background: #862f43 url("solitario-dorso.webp") center / cover; }
.rdgj .rdgj-solitaire-card[aria-pressed="true"] { outline: 3px solid #ffdb63; outline-offset: -3px; }
.rdgj .rdgj-solitaire-card:focus-visible { outline: 3px dashed #ffdb63; outline-offset: -3px; }
.rdgj .rdgj-solitaire-card.is-movable { cursor: grab; user-select: none; }
.rdgj-solitaire-ghost {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 9999;
  display: grid;
  pointer-events: none;
  will-change: transform;
}
.rdgj .rdgj-solitaire-ghost .rdgj-solitaire-card {
  grid-area: 1 / 1;
  margin-top: calc(var(--rdgj-ghost-index) * var(--rdgj-open-step));
  pointer-events: none;
  outline: none;
}
.rdgj .rdgj-solitaire-card.is-dragged { opacity: .26; cursor: grabbing; }
.rdgj .rdgj-solitaire-card.is-confirming { opacity: .55; cursor: progress; }
.rdgj .rdgj-solitaire .is-drop-target { outline: 3px solid #ffdb63; outline-offset: 2px; border-radius: .45rem; }
.rdgj-solitaire-corner { position: absolute; top: .06rem; left: .13rem; line-height: 1.2; z-index: 1; }
.rdgj-solitaire-tools { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .6rem; }
.rdgj .rdgj-solitaire-tool { padding: .4rem .65rem; border: 1px solid #b6d7c9; border-radius: .35rem; background: #fff8e5; color: #184e42; font-weight: 800; }
.rdgj .rdgj-solitaire-tool:disabled { opacity: .55; }
.rdgj-solitaire-key { color: #fff; font-size: .82rem; font-weight: 750; }
.rdgj-solitaire-rules { position: relative; }
.rdgj-solitaire-rules summary {
  padding: .4rem .65rem;
  border: 1px solid #b6d7c9;
  border-radius: .35rem;
  background: #fff8e5;
  color: #184e42;
  font-weight: 800;
  cursor: pointer;
}
.rdgj-solitaire-rules ul {
  position: absolute;
  z-index: 5;
  top: 100%;
  right: 0;
  width: min(22rem, calc(100vw - 3rem));
  max-height: 50vh;
  overflow: auto;
  box-sizing: border-box;
  margin: .3rem 0 0;
  padding: .7rem 1rem .7rem 1.8rem;
  border: 1px solid #bfdfcf;
  border-radius: .45rem;
  background: #fffbf0;
  color: #153a32;
  box-shadow: 0 10px 24px #0b302b66;
  font-size: .88rem;
}
.rdgj-solitaire-rules li + li { margin-top: .4rem; }
.rdgj-solitaire-waste { display: grid; min-width: 0; }
.rdgj-draw-three { --rdgj-columns: 8; }
.rdgj-draw-three .rdgj-solitaire-waste {
  grid-column: span 3;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: inherit;
}
.rdgj-draw-three .rdgj-solitaire-waste span.rdgj-solitaire-card[data-card] { filter: saturate(.7); }
.rdgj-draw-three .rdgj-solitaire-waste button[data-card] { box-shadow: 0 0 0 2px #ffd45e; }
@media (max-width: 600px) {
  .rdgj-draw-three { --rdgj-columns: 4; row-gap: .55rem; }
}
@media (max-width: 460px) {
  .rdgj-solitaire-rules ul { right: auto; left: 50%; transform: translateX(-54%); width: min(17rem, 76vw); }
}
.rdgj .rdgj-solitaire .is-hint-source { outline: 3px dashed #ffdc58; outline-offset: -4px; }
.rdgj .rdgj-solitaire .is-hint-target { outline: 3px solid #81f1bd; outline-offset: 2px; border-radius: .35rem; }
.rdgj-solitaire-art {
  width: 78%;
  aspect-ratio: 1;
  margin-top: 18%;
  border-radius: .25rem;
  background-image: url("solitario-palos.webp");
  background-size: 200% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
}
[data-suit="1"] .rdgj-solitaire-art { background-position: 100% 0; }
[data-suit="2"] .rdgj-solitaire-art { background-position: 0 100%; }
[data-suit="3"] .rdgj-solitaire-art { background-position: 100% 100%; }

.rdgj-account-dashboard { display: grid; gap: 1rem; }
.rdgj-landing .entry-content > .rdgj-account-dashboard { width: min(calc(100% - 1.5rem), 65rem); }
.rdgj-account-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .3rem 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 1rem;
  background: #3d2365;
  color: #fff;
}
.rdgj-account-heading .rdgj-auth-home { grid-column: 1 / -1; margin: 0; color: #f3dcff; }
.rdgj-account-heading h1 { margin: .35rem 0 0; color: inherit; }
.rdgj-account-heading p { grid-column: 1; margin: 0; }
.rdgj-account-heading form { grid-area: 2 / 2 / 4 / 3; }
.rdgj-account-heading button { background: #fff0ff; color: #3d2365; }
.rdgj-account-heading button:hover { background: #ebd6fa; }
.rdgj-account-section { min-width: 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #e3d5f1; border-radius: .9rem; background: #fff; }
.rdgj-account-section h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); color: #35204d; }
.rdgj-account-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.rdgj-account-medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem; padding: 0; list-style: none; }
.rdgj-account-medals li { display: grid; gap: .15rem; padding: .6rem .7rem; border-radius: .55rem; background: #f4edf8; color: #37274b; overflow-wrap: anywhere; }
.rdgj-account-medals .is-earned { background: #fff0b7; color: #563700; }
.rdgj-account-medals span { font-size: .88rem; }
.rdgj-account-points strong { font-size: 1.3rem; color: #4d2376; }
.rdgj-account-section :is(select, textarea) {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #bba8cd;
  border-radius: .5rem;
  color: #30203f;
  background: #fff;
  font: inherit;
}
.rdgj-account-section textarea { resize: vertical; }
.rdgj-account-alert, .rdgj-account-confirmation { margin: 0; padding: .7rem .9rem; border-radius: .55rem; font-weight: 700; }
.rdgj-account-alert { background: #ffe6e7; color: #782d36; }
.rdgj-account-confirmation { background: #e1f6e9; color: #194c32; }
@media (max-width: 440px) {
  .rdgj-account-heading { grid-template-columns: 1fr; }
  .rdgj-account-heading form { grid-area: auto; margin-top: .45rem; }
}

.rdgj-round-info { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin: .5rem 0 .8rem; }
.rdgj-round-info p { margin: 0; }
.rdgj .rdgj-clock,
.rdgj .rdgj-round-points {
  padding: .3rem .65rem;
  border: 1px solid #eecb67;
  border-radius: .45rem;
  background: #fff1bd;
  color: #3e2a0c;
  font-size: .87rem;
  font-weight: 800;
}
.rdgj-clock span { font-variant-numeric: tabular-nums; }
.rdgj-variant-picker { max-width: 36rem; padding: clamp(.75rem, 3vw, 1.4rem); border: 1px solid #dfc7ba; border-radius: .8rem; background: #fff8ea; color: #301a20; }
.rdgj-variant-picker select { width: 100%; padding: .55rem; border: 1px solid #7a4852; border-radius: .35rem; background: #fff; color: #301a20; font: inherit; }
.rdgj-variant-picker .rdgj-variant-description { margin: .65rem 0 1rem; }
.rdgj-solitaire-tally { grid-column: span 6; align-self: center; margin: 0; font-weight: 750; }
.rdgj-solitaire-layout {
  --rdgj-layout-columns: 14;
  display: grid;
  grid-template-columns: repeat(var(--rdgj-layout-columns), minmax(0, 1fr));
  grid-auto-rows: clamp(1.25rem, 5vw, 3.5rem);
  max-width: 38rem;
  margin: 0 auto clamp(2rem, 9vw, 4rem);
}
[data-variant="trespicos"] .rdgj-solitaire-layout { --rdgj-layout-columns: 20; }
.rdgj-solitaire-layout .rdgj-solitaire-card { width: 92%; justify-self: center; }
.rdgj-solitaire-layout .is-covered-card { filter: brightness(.72); }
@media (max-width: 550px) {
  .rdgj-solitaire[data-variant="arana"] .rdgj-solitaire-corner,
  .rdgj-solitaire[data-variant="trespicos"] .rdgj-solitaire-corner { font-size: .6rem; left: 0; }
}

.rdgj-score-heading { flex-wrap: wrap; }
.rdgj a.rdgj-score-ranking {
  padding: .25rem .55rem;
  border: 1px solid #f7d073;
  border-radius: .55rem;
  background: #ffdf8b;
  color: #382057;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.rdgj a.rdgj-score-ranking:hover { background: #fff0b5; text-decoration: underline; }
.rdgj-leaderboard { padding-inline: .75rem; }
.rdgj-leaderboard-header {
  margin: .7rem 0 .75rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 5% 0%, #7945b0, transparent 64%), linear-gradient(120deg, #271342, #431867);
  color: #fff3c8;
}
.rdgj-leaderboard-header h1 { margin: 0; color: inherit; font-size: clamp(1.45rem, 5vw, 2.6rem); }
.rdgj-leaderboard-header p { margin: .35rem 0 0; }
.rdgj-podium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: .9rem;
  padding: clamp(.85rem, 3vw, 1.8rem);
  border: 1px solid #734e9d;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 50% 88%, #9857ba 0%, transparent 64%),
    radial-gradient(ellipse at 0 0, #5043a0 0%, transparent 53%),
    #241238;
  color: #fff8e8;
  text-align: center;
}
.rdgj-podium h2 { position: relative; margin: 0 0 1.2rem; color: #fff4bc; font-size: clamp(1.45rem, 4vw, 2.25rem); }
.rdgj .rdgj-podium-places {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.3rem, 1.4vw, .8rem);
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.rdgj-podium-place {
  --medal-light: #fff1a6;
  --medal-mid: #ffc545;
  --medal-edge: #a75015;
  --step-height: 8.75rem;
  display: grid;
  justify-items: center;
  min-width: 0;
}
.rdgj-podium-place[data-place="1"] { grid-column: 2; grid-row: 1; z-index: 1; }
.rdgj-podium-place[data-place="2"] {
  grid-column: 1;
  grid-row: 1;
  --medal-light: #f5fbff;
  --medal-mid: #b7d8fc;
  --medal-edge: #5264a0;
  --step-height: 7rem;
}
.rdgj-podium-place[data-place="3"] {
  grid-column: 3;
  grid-row: 1;
  --medal-light: #ffe0b0;
  --medal-mid: #f6a27a;
  --medal-edge: #a14e43;
  --step-height: 6rem;
}
.rdgj-podium-medal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 10vw, 5.15rem);
  aspect-ratio: 1;
  border: clamp(2px, .5vw, 5px) solid var(--medal-mid);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--medal-light), var(--medal-mid) 66%, var(--medal-edge));
  color: #4e271b;
  font-size: clamp(1.15rem, 4vw, 2.25rem);
  line-height: 1;
  box-shadow: inset 0 0 0 2px var(--medal-edge), 0 .18rem 0 var(--medal-edge), 0 0 1.45rem #ffc84e66;
  animation: rdgj-podium-spin 2.2s ease-in-out 2 both;
}
.rdgj-podium-place[data-place="2"] .rdgj-podium-medal { animation-delay: .12s; }
.rdgj-podium-place[data-place="3"] .rdgj-podium-medal { animation-delay: .24s; }
@keyframes rdgj-podium-spin {
  0% { transform: perspective(18rem) rotateY(0); }
  26% { transform: perspective(18rem) translateY(-.35rem) rotateY(120deg); }
  70% { transform: perspective(18rem) translateY(-.18rem) rotateY(330deg); }
  100% { transform: perspective(18rem) rotateY(360deg); }
}
.rdgj-podium-metal { margin: .45rem 0 .35rem; color: var(--medal-light); font-weight: 800; }
.rdgj-podium-step {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .25rem;
  width: 100%;
  min-height: var(--step-height);
  padding: .6rem clamp(.2rem, 1.15vw, .85rem);
  border: 1px solid var(--medal-light);
  border-bottom: .4rem solid var(--medal-edge);
  border-radius: .65rem .65rem .35rem .35rem;
  background: linear-gradient(160deg, var(--medal-light), var(--medal-mid));
  color: #35223e;
}
.rdgj-podium-place.is-empty .rdgj-podium-step {
  border-color: #9578ad;
  border-bottom-color: #493064;
  background: linear-gradient(155deg, #674c85, #432858);
  color: #f3eaff;
}
.rdgj-podium-rank { font-size: clamp(1.1rem, 3.8vw, 2rem); font-weight: 900; line-height: 1; }
.rdgj-podium-alias { max-width: 100%; overflow-wrap: anywhere; line-height: 1.25; }
.rdgj-podium-points { font-weight: 850; font-variant-numeric: tabular-nums; }
.rdgj-podium-confetti { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.rdgj-podium-confetti i {
  position: absolute;
  top: -1rem;
  left: var(--x);
  width: .4rem;
  height: .75rem;
  border-radius: 2px;
  background: var(--piece);
  animation: rdgj-podium-fall 3.25s var(--delay) linear both;
}
.rdgj-podium-confetti i:nth-child(3n) { height: .4rem; border-radius: 50%; }
@keyframes rdgj-podium-fall {
  0% { opacity: 0; transform: translate3d(0, -1rem, 0) rotate(0); }
  12%, 75% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--sway), 28rem, 0) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rdgj-podium-medal, .rdgj-podium-confetti i { animation: none; }
  .rdgj-podium-confetti { display: none; }
}
.rdgj-leaderboard-board { padding: clamp(.65rem, 3vw, 1.4rem); border: 1px solid #d9cfea; border-radius: 1rem; background: #fff; }
.rdgj-leaderboard-board h2 { margin: 0 0 .6rem; color: #442264; font-size: clamp(1.15rem, 3.2vw, 1.6rem); }
.rdgj-leaderboard-board thead { background: #f0e9fb; color: #351c53; }
.rdgj-leaderboard-board tbody tr:nth-child(even) { background: #f9f5fd; }
.rdgj-leaderboard-board th[scope="row"] { overflow-wrap: anywhere; }
.rdgj-leaderboard-board :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rdgj-leaderboard-board tbody .is-current-player { background: #fff1bd; }
.rdgj-leaderboard-personal { color: #4b286f; font-weight: 750; }
.rdgj-leaderboard-note { color: var(--rdgj-muted); }
.rdgj-leaderboard-navigation { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-block: .85rem; }

.rdgj-account-thread { margin-top: .65rem; padding: .65rem .8rem; border: 1px solid #dfd1ed; border-radius: .6rem; }
.rdgj-account-thread summary { color: #442264; cursor: pointer; font-weight: 750; overflow-wrap: anywhere; }
.rdgj-account-thread p { overflow-wrap: anywhere; }
.rdgj-account-reply { margin-top: .65rem; padding: .65rem .8rem; border-radius: .5rem; background: #f1ecfa; color: #35234d; }
.rdgj-account-reply p { margin: .35rem 0 0; }

.rdgj-play:is([data-active-game="sopa"], [data-active-game="completa"], [data-active-game="adivina"], [data-active-game="crucigrama"], [data-active-game="verdadero"], [data-active-game="quiz"]) { container-type: inline-size; }
.rdgj-play-main { min-width: 0; }
@container (min-width: 39rem) {
  .rdgj-play:is([data-active-game="sopa"], [data-active-game="completa"], [data-active-game="adivina"], [data-active-game="crucigrama"], [data-active-game="verdadero"], [data-active-game="quiz"]) .rdgj-play-body:has(.rdgj-discoveries:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
    align-items: start;
    gap: 1.2rem;
  }
  .rdgj-play-body .rdgj-discoveries:not([hidden]) {
    margin-top: .85rem;
    padding: .75rem;
    border: 1px solid var(--rdgj-line);
    border-radius: .7rem;
  }
}
.rdgj .rdgj-guess-form { display: grid; justify-items: start; }
.rdgj-guess-row { position: relative; }
.rdgj-guess-row:has(.rdgj-tile-input) .rdgj-tile { border-color: #705394; }
.rdgj-guess-row:focus-within { outline: 2px solid #663896; outline-offset: 2px; border-radius: .35rem; }
.rdgj .rdgj-guess-row .rdgj-tile-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: text;
}

.rdgj-spider-top { grid-template-columns: minmax(0,1fr) minmax(0,8fr); align-items: start; }
.rdgj-spider-top > .rdgj-solitaire-card { grid-column: 1; grid-row: 1 / 3; }
.rdgj-spider-top .rdgj-solitaire-tally { grid-column: 2; font-size: .85rem; text-align: right; }
.rdgj-collected-runs { grid-column: 2; justify-self: end; display: grid; width: min(100%, 25rem); grid-template-columns: repeat(8,minmax(0,1fr)); gap: .25rem; padding-bottom: .25rem; }
.rdgj-collected-runs .is-collected { box-shadow: 0 2px #ebddc9, 0 3px #5b4940, 0 5px #ebddc9; }
.rdgj .rdgj-solitaire .rdgj-collection-flight { position: fixed; pointer-events: none; z-index: 999; transform-origin: top left; }

.rdgj-game .rdgj-board-rotate { display: none; }
@media (orientation: portrait) and (max-width: 600px),
       (orientation: portrait) and (pointer: coarse) and (max-width: 850px) {
  .rdgj-game .rdgj-board-rotate {
    display: block;
    margin: 0 0 .75rem;
    padding: .6rem .85rem;
    border-inline-start: .25rem solid #c08218;
    border-radius: .35rem;
    background: #fff1c9;
    color: #4a3007;
    font-weight: 650;
  }
}

.rdgj-card[data-game="cocina"] { --rdgj-preview-bg: #ffd294; --rdgj-card-color: #8c361c; }
[data-game="cocina"] .rdgj-preview-board { grid-template-columns: repeat(3,1fr); transform: rotate(-5deg); }
.rdgj-score-game[data-score-game="cocina"] { --rdgj-chip-bg: #ffd4a5; --rdgj-chip-color: #752f13; }
/* The same illustrated set appears on the game card and behind the worktop. */
.rdgj-card[data-game="cocina"] .rdgj-preview,
.rdgj-kitchen-scene { background: #fbcd8c url("cocina-granadina.webp") center / cover; }
.rdgj-card[data-game="cocina"] .rdgj-preview-board { visibility: hidden; }
.rdgj-kitchen {
  color: #36203f; border: 4px solid #543352; overflow: hidden;
  border-radius: 1.25rem; background: #654166; box-shadow: 0 5px 0 #382337;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
}
.rdgj .rdgj-kitchen-how { color: #fff5dd; margin: .65rem 1rem .45rem; }
.rdgj-kitchen-tickets { display: flex; flex-wrap: wrap; gap: .45rem; padding: .45rem .8rem .8rem; background: linear-gradient(transparent 48%,#b0794b 49%,#75432d 65%,transparent 66%); }
.rdgj .rdgj-kitchen-ticket { border: 2px solid #53342b; border-radius: .3rem .3rem .6rem .6rem; padding: .35rem .65rem; background: #fff2cb; color: #493128; box-shadow: 0 3px 0 #35222b; font-weight: 700; cursor: pointer; }
.rdgj .rdgj-kitchen-ticket[aria-pressed="true"] { background: #adf1dc; border-color: #134b49; color: #133e3a; }
.rdgj-kitchen-scene { position: relative; display: flex; align-items: start; justify-content: end; min-height: clamp(15rem,32vw,21rem); padding: .9rem; box-sizing: border-box; border-block: 3px solid #55362b; }
.rdgj-kitchen-plate { position: relative; width: min(40%,15rem); box-sizing: border-box; padding: .8rem 1rem .9rem; border-radius: .25rem .25rem .65rem .65rem;
  background: repeating-linear-gradient(#fff8df 0 23px,#f2e3c4 24px); color: #412b32; box-shadow: 2px 5px 0 #58362678; transform: rotate(1deg); }
.rdgj-table-number { color: #76382a; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.rdgj .rdgj-kitchen-plate h3 { color: #432734; font-size: clamp(1.1rem,2.6vw,1.65rem); line-height: 1.07; margin: .2rem 0 .5rem; }
.rdgj-kitchen-plate ul { list-style: none; padding: 0; margin: 0; }
.rdgj-kitchen-plate li { font-size: .9rem; line-height: 1.4; }
.rdgj-kitchen-plate .is-ready { color: #145a3a; font-weight: 750; }
.rdgj-kitchen-dish { position: absolute; left: 23%; bottom: 5%; width: 34%; height: 18%; display: flex; justify-content: center; align-items: center; border-radius: 50%;
  background: radial-gradient(ellipse,#fffbe2 48%,#c8e9dc 51%,#fff8dc 62%,#1d8792 65%,#bcf0e3 69%,#247481 73%); box-shadow: 0 5px 0 #296a70,0 9px 8px #6e381779; }
.rdgj-kitchen-dish span { font-size: clamp(1rem,3.4vw,2.3rem); margin-inline: -.08em; filter: drop-shadow(0 2px 1px #7d523a77); }
.rdgj-kitchen-belt { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .35rem; overflow: hidden; padding: .55rem .7rem; background: repeating-linear-gradient(100deg,#415451 0 20px,#263a39 21px 23px); border-block: 5px solid #ce9661; }
.rdgj .rdgj-kitchen-tray { display: grid; justify-items: center; align-content: center; min-width: 0; min-height: 4.5rem; padding: .25rem; background: none; border: 0; cursor: pointer; color: #fff6da; }
.rdgj-kitchen .rdgj-food {
  display: block; border-radius: 22%; aspect-ratio: 1;
  background: #fff8e6 url("ingredientes-andaluces.webp") no-repeat;
  background-size: 500% 500%;
}
.rdgj-kitchen-tray .rdgj-food { width: min(94%, 4.2rem); }
.rdgj-kitchen-dish .rdgj-food { width: min(20%, 3.2rem); }
.rdgj-kitchen-tray strong { font-size: clamp(.72rem,2vw,.92rem); overflow-wrap: anywhere; }
.rdgj .rdgj-kitchen-tray:disabled { opacity: .48; }
.rdgj-kitchen-console { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; padding: .7rem 1rem; background: linear-gradient(#976596,#643e68); }
.rdgj-kitchen-progress { padding: .35rem .65rem; border-radius: .55rem; background: #39243e; color: #fff2b1; }
.rdgj .rdgj-kitchen-serve { background: #ffe076; color: #402b19; border: 2px solid #60402c; box-shadow: inset 0 2px #fff6c7,0 3px #553527; border-radius: 1rem; }
.rdgj .rdgj-kitchen-serve:disabled { background: #e2cfba; color: #5e5046; opacity: 1; }
@media (max-width: 560px) {
  .rdgj-kitchen-scene { padding: .5rem; background-position: 32% center; }
  .rdgj-kitchen-plate { width: 49%; padding: .6rem; }
  .rdgj-kitchen-dish { left: 8%; }
  .rdgj-kitchen-tickets { flex-wrap: nowrap; overflow-x: auto; }
  .rdgj .rdgj-kitchen-ticket { flex: 0 0 auto; max-width: 80%; }
  .rdgj-kitchen-console { padding: .5rem; }
}

.rdgj-leave, .rdgj-leave-style { max-width:min(30rem,90vw); padding:1.5rem; border:2px solid #7955ad; border-radius:1rem; background:#fffaf2; color:#302039; }
.rdgj-leave::backdrop, .rdgj-leave-style::backdrop { background:rgb(25 14 40 / .72); }
.rdgj-leave h3, .rdgj-leave-style h3 { margin:0; }
.rdgj-leave button, .rdgj-leave-style button { margin:.25rem .25rem .25rem 0; }
.rdgj-save-location { font-size:.9em; }
.rdgj-saved-list { color: #173956; min-width: 0; max-width: 100%; }
.rdgj-saved-list summary { cursor: pointer; padding: .4rem .65rem; border: 1px solid #99b1c2; background: #f3f8fc; border-radius: .55rem; font-weight: 700; }
.rdgj-saved-count { display: inline-block; padding-inline: .4em; border-radius: 1em; background: #dce9f3; font-variant-numeric: tabular-nums; }
.rdgj-saved-list[open] { flex-basis: 100%; }
.rdgj-saved-items:not([hidden]) { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.rdgj-saved-list .rdgj-return { margin: .45rem 0 0; }


.rdgj-guide-prompt:not(:empty) { display:block; font-weight:600; padding:.4em; }

.rdgj .rdgj-menu-toggle { display: none; }
.rdgj .rdgj-return:not([hidden]) {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  padding: .6rem .8rem; margin-bottom: .75rem;
  border-inline-start: 3px solid #41799e; background: #f3f8fc; color: #142e48;
}
.rdgj .rdgj-return p { margin: 0; flex: 1 1 15rem; font-size: .92rem; }
.rdgj .rdgj-return button { padding: .45rem .7rem; font-size: .88rem; }
.rdgj .rdgj-word input.rdgj-fragment-tile {
  box-sizing: border-box; min-width: 0; padding: 0; text-align: center;
  width: clamp(1.35rem, 5.8vw, 2.55rem); font: inherit; font-weight: 800;
}
.rdgj .rdgj-word input:focus { outline: 3px solid #1a6092; outline-offset: 1px; }
@media (min-width: 701px) and (pointer: fine), (min-width: 701px) and (min-height: 541px) {
  .rdgj-score-games { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 540px) {
  .rdgj .rdgj-scorebar { padding: .25rem .55rem; border-color: #183c5c; background: #112e4a; }
  .rdgj .rdgj-score-heading { flex-wrap: wrap; margin-bottom: 0; }
  .rdgj .rdgj-menu-toggle {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 40px;
    margin-inline-start: auto; padding: .3rem .55rem; background: #214767;
    color: white; border: 1px solid #799ab5; border-radius: .5rem; font-weight: 700;
  }
  .rdgj .rdgj-scorebar:not(.menu-open) :is(.rdgj-score-games,.rdgj-score-ranking,.rdgj-trophies) { display: none; }
  .rdgj .menu-open .rdgj-score-games { margin-top: .4rem; }
  .rdgj .rdgj-scorebar.menu-open { max-height: 75dvh; overflow-y: auto; }
}
@media (orientation: portrait) and (max-width: 600px),
       (orientation: portrait) and (pointer: coarse) and (max-width: 850px) {
  .rdgj-board-frame {
    position: relative; height: 82vh; height: 82svh; container-type: inline-size;
    overflow: hidden; background: #174b42; border-radius: .75rem;
  }
  .rdgj-board-viewport {
    position: absolute; left: 100%; top: 0; width: 82vh; width: 82svh; height: 100cqw;
    overflow: auto; transform-origin: top left; transform: rotate(90deg);
  }
  .rdgj .rdgj-board-viewport :is(.rdgj-solitaire, .rdgj-kitchen) { min-height: 100%; box-sizing: border-box; }
}

.rdgj .rdgj-mobile-label { display: none; }
@media (max-width: 700px), (pointer: coarse) and (max-height: 540px) {
  .rdgj .rdgj-wide-label { display: none; }
  .rdgj .rdgj-mobile-label { display: inline; }
  .rdgj .rdgj-solitaire-rules li.rdgj-mobile-label { display: list-item; }
  .rdgj-play[data-active-game="solitario"] .rdgj-play-header {
    display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; padding-block: .25rem;
  }
  .rdgj .rdgj-play[data-active-game="solitario"] .rdgj-game-title { font-size: 1.2rem; line-height: 1.2; }
  .rdgj .rdgj-play[data-active-game="solitario"] .rdgj-variant-switch { font-size: .85rem; padding: .35rem .55rem; }
  .rdgj .rdgj-save-location { font-size: .82rem; margin: .3rem 0; }
  .rdgj .rdgj-round-info { margin: .25rem 0; gap: .5rem; }
  .rdgj .rdgj-game .rdgj-board-rotate { padding: .3rem .55rem; margin: 0 0 .35rem; font-size: .88rem; }
}

.rdgj .rdgj-setup {
  width: min(24rem, calc(100vw - 2rem)); max-height: 85dvh; overflow: auto;
  box-sizing: border-box; padding: 1.1rem; margin: auto; border: 1px solid #9db5c8;
  border-radius: 1rem; background: #fff; color: #132f48; box-shadow: 0 .8rem 3rem #10283f55;
}
.rdgj-setup::backdrop { background: #11243788; }
.rdgj-setup form { display: grid; gap: .8rem; }
.rdgj .rdgj-setup h2, .rdgj .rdgj-setup p { margin: 0; }
.rdgj .rdgj-setup h2 { color: #173956; font-size: 1.35rem; }
.rdgj .rdgj-setup .rdgj-level-setting { display: grid; gap: .3rem; }
.rdgj-setup .rdgj-backdrop-options { position: static; width: 100%; max-height: 32dvh; }
.rdgj-setup-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Let the active table use the viewport beyond the WordPress content column. */
.rdgj .rdgj-play:is([data-active-game="solitario"], [data-active-game="cocina"]) {
  --rdgj-table-width: min(90vw, 90rem);
  width: var(--rdgj-table-width);
  max-width: none;
  margin-inline: calc(50% - var(--rdgj-table-width) / 2);
  padding: clamp(.35rem, 1vw, .85rem);
}
.rdgj-solitaire-shortcuts:empty { display: none; }
.rdgj-solitaire-shortcuts { display: inline-flex; gap: .25rem; }
.rdgj .rdgj-solitaire-shortcuts button {
  min-height: 40px; padding: .25rem .45rem; border: 1px solid #809eb8;
  border-radius: .5rem; background: #254a67; color: white; font-size: .85rem; font-weight: 700;
}
.rdgj .rdgj-solitaire-shortcuts button:disabled { background: #243d50; color: #b7c7d4; }
@media (max-width: 700px), (pointer: coarse) and (max-height: 540px), (pointer: coarse) and (orientation: portrait) and (max-width: 850px) {
  .rdgj .rdgj-play:is([data-active-game="solitario"], [data-active-game="cocina"]), .rdgj:has(.rdgj-solitaire-shortcuts:not(:empty)) .rdgj-scorebar {
    width: calc(100vw - .5rem); margin-inline: calc(50% - 50vw + .25rem);
  }
  .rdgj .rdgj-solitaire { padding: .35rem; }
  .rdgj-scorebar:has(.rdgj-solitaire-shortcuts:not(:empty)) .rdgj-score-heading { gap: .25rem; }
}
@media (orientation: portrait) and (max-width: 600px), (orientation: portrait) and (pointer: coarse) and (max-width: 850px) {
  .rdgj .rdgj-board-frame { height: 94svh; }
  .rdgj .rdgj-board-viewport { width: 94svh; }
}

.rdgj-kitchen .rdgj-food.rdgj-pantry { background-image: url("despensa.webp"); background-size: 300% 300%; }
.rdgj-chef { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; background: #fff3d4; color: #442535; }
.rdgj-chef-portrait { flex: 0 0 3.25rem; height: 3.25rem; border-radius: 50%; background: #ffd997 url("chef-lola.webp") center / cover; }
.rdgj-chef strong, .rdgj-chef div span { display: block; }
.rdgj-order-clock { display: block; width: fit-content; margin: .15rem auto 0; font-size: .82em; font-variant-numeric: tabular-nums; }
.rdgj-order-clock.is-urgent { background: #80271b; color: white; padding-inline: .35rem; border-radius: .25rem; }

.rdgj-saved-row { display: flex; align-items: stretch; gap: .25rem; max-width: 100%; }
.rdgj-saved-row .rdgj-reset { white-space: normal; text-align: start; }
.rdgj .rdgj-saved-delete { border: 1px solid #aa5866; border-radius: .5rem; background: #fff5f5; color: #75263b; padding: .4rem .65rem; }
.rdgj-saved-feedback:empty { display: none; }
