/* Banco public catalogue and same-origin game host. */

body.banco-public-games-page {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  padding-top: 0 !important;
  background: #031927;
}


/*
 * GeneratePress owns the rest of the site; game catalogs and Parenthèses own
 * their complete viewport and navigation.
 * Keep the WordPress admin bar available to authenticated operators.
 */
body.banco-public-games-page > .site-header,
body.banco-public-games-page #masthead,
body.banco-public-games-page #site-navigation,
body.banco-public-games-page .main-navigation,
body.banco-public-games-page .page-hero,
body.banco-public-games-page .generate-page-header,
body.banco-public-games-page > .site-footer,
body.banco-public-games-page #colophon {
  display: none !important;
}

body.banco-public-games-page .site.grid-container,
body.banco-public-games-page #page,
body.banco-public-games-page .site-content,
body.banco-public-games-page .content-area,
body.banco-public-games-page .site-main,
body.banco-public-games-page .inside-article {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

body.banco-public-games-page .content-area {
  float: none;
}

body.banco-public-games-page .site-content {
  display: block;
}

body.banco-public-games-page .widget-area {
  display: none;
}

body.banco-public-games-page main#main > article > .inside-article {
  background: transparent;
}

body.banco-public-games-page main#main > article > .inside-article > .entry-header,
body.banco-public-games-page main#main > article > .inside-article > .page-header {
  display: none;
}

body.banco-public-games-page main#main > article > .inside-article > .entry-content {
  margin: 0;
}

.banco-public-games {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.banco-public-games__stage {
  width: 100%;
  max-width: 94rem;
  margin-inline: auto;
  overflow: clip;
  border: 1px solid rgba(217, 247, 242, 0.16);
  border-radius: clamp(18px, 2.5vw, 28px);
  background: #041a2a;
  box-shadow: 0 24px 70px rgba(0, 14, 24, 0.28);
}

.banco-public-games__stage iframe {
  display: block;
  width: 100%;
  height: clamp(32rem, 78svh, 54rem);
  min-height: 0;
  border: 0;
  background: #041a2a;
}

.banco-public-games__feedback {
  width: min(calc(100% - 2rem), 72rem);
  margin: 1rem auto 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(217, 247, 242, 0.24);
  border-radius: 1.25rem;
  color: #effffc;
  background: #0b2b3b;
  box-shadow: 0 1rem 2.4rem rgba(0, 14, 24, 0.24);
  font: 400 1rem/1.5 system-ui, sans-serif;
}

.banco-public-games__feedback[hidden] {
  display: none;
}

.banco-public-games__feedback-form {
  display: grid;
  gap: 0.8rem;
}

.banco-public-games__feedback-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.banco-public-games__feedback-form legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; }
.banco-public-games__feedback-form > label { display: grid; gap: 0.4rem; }
.banco-public-games__feedback-form textarea {
  width: 100%; min-height: 6rem; padding: 0.75rem; resize: vertical;
  border: 1px solid #628796; border-radius: 0.75rem;
  color: #effffc; background: #041a2a; font: inherit;
}
.banco-public-games__feedback-form button,
.banco-public-games__feedback-form nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; min-height: 44px; padding: 0.65rem 1.2rem;
  border: 1px solid #628796; border-radius: 999px;
  color: #effffc; background: #0b2433; font: 700 1rem/1.4 system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
}
.banco-public-games__feedback-form button[type="submit"] { background: #137d91; border-color: #53bec4; }
.banco-public-games__feedback-form button:disabled { opacity: 0.6; cursor: wait; }
.banco-public-games__feedback-form nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.banco-public-games__feedback-form [role="status"] { margin: 0; }
.banco-public-games__feedback-form [role="status"]:empty { display: none; }
.banco-public-games__feedback-form :is(button, a, textarea):focus-visible {
  outline: 3px solid #ffda44; outline-offset: 3px;
}
.banco-public-games__feedback-form .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.banco-public-games__stars {
  display: flex;
  gap: 0.35rem;
  font-size: 2rem;
  flex-wrap: wrap;
}

.banco-public-games__stars label {
  position: relative; display: grid; place-items: center; min-width: 44px;
  min-height: 44px; color: #7895a2; cursor: pointer;
}

.banco-public-games__stars input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.banco-public-games__stars label:has(input:checked) > span[aria-hidden="true"],
.banco-public-games__stars label:has(~ label input:checked) > span[aria-hidden="true"] {
  color: #ffda44;
}

.banco-public-games__stars label:has(input:focus-visible) {
  outline: 3px solid #ffda44;
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.banco-public-games__honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.banco-public-games-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 620px) {
  body.banco-public-games-page #wpadminbar {
    display: block;
  }

  .banco-public-games__stage {
    border-inline: 0;
    border-radius: 0;
  }

  .banco-public-games__stage iframe {
    height: min(45rem, 84svh);
  }
}

/* Selected pages delegate their commands to the game Shell; keep site navigation compact. */
.banco-public-games[data-state="game-selected"] .banco-public-games__header { padding: 2px 8px; min-height: 40px; }
.banco-public-games[data-state="game-selected"] .games-lab__mark,
.banco-public-games[data-state="game-selected"] .games-lab__eyebrow { display: none; }
.banco-public-games[data-state="game-selected"] .banco-public-games__selected-context { font-size: 12px; }
.banco-public-games[data-state="game-selected"] .banco-public-games__nav a { padding: 6px 10px; min-height: 36px; }
.banco-public-games[data-state="game-selected"] .games-lab__safe-area { padding: 4px; gap: 4px; }
.banco-public-games__stage { overflow: auto; }

[data-banco-public-games][data-command-navigation="ready"] .banco-public-games__header { display: none; }
#banco-product-wait { max-width: min(480px, calc(100vw - 32px)); padding: 32px 24px 24px; border: 1px solid #438c90; border-radius: 16px; color: #effffc; background: #123e4a; }
#banco-product-wait::backdrop { background: #001b29b8; }
#banco-product-wait > button { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; }
#banco-product-wait a { color: inherit; }
.banco-games-wait { margin: 48px auto; padding: 24px; max-width: 640px; }
