/* Misión 03: una historieta jugable, de la puerta real de la UNT a cuatro mundos. */
body[data-rti-theme="banks"] {
  --comic-ink: #102341;
  --comic-paper: #fff9e9;
  --comic-gold: #ffcf4c;
  --comic-cyan: #73e5e5;
  --comic-shadow: #061329;
  color: var(--comic-ink);
  background: #f4eddc;
}

body[data-rti-theme="banks"] .inner-page {
  overflow: clip;
  background:
    radial-gradient(circle, rgba(16, 35, 65, .075) 1px, transparent 1.5px) 0 0 / 17px 17px,
    #f4eddc;
}

body[data-rti-theme="banks"] :where(.bank-game-hero, #bancos-disponibles, .ranking-explain, .mascot-ribbon) {
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
}

body[data-rti-theme="banks"] :where(.bank-game-hero h1, .section-heading h2, .online-bank-copy h3, .ranking-explain h2, .more-banks-coming h2, .mascot-ribbon h2) {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  text-wrap: balance;
}

/* Viñeta 01 · los héroes llegan a la UNT. La foto de fondo es el recurso nítido de 2000 px. */
body[data-rti-theme="banks"] .bank-game-hero {
  min-height: 0;
  padding: clamp(28px, 4vw, 58px) 0;
  color: var(--comic-ink);
  border-bottom: 9px solid var(--comic-ink);
  background:
    linear-gradient(105deg, rgba(9, 28, 55, .91), rgba(9, 28, 55, .68) 48%, rgba(9, 28, 55, .32)),
    url("/unt-entrance-comic.webp") center 48% / cover no-repeat;
  isolation: isolate;
}

body[data-rti-theme="banks"] .bank-game-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 15%, rgba(255, 207, 76, .38), transparent 26rem);
  content: "";
  pointer-events: none;
}

body[data-rti-theme="banks"] .bank-game-hero .paper-symbols,
body[data-rti-theme="banks"] .bank-game-hero::after { display: none; }

body[data-rti-theme="banks"] .bank-game-hero .page-hero-grid {
  width: min(1360px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

body[data-rti-theme="banks"] .bank-game-hero .page-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(25px, 3vw, 45px);
  color: var(--comic-ink);
  border: 5px solid var(--comic-ink);
  border-radius: 5px 28px 6px 28px;
  background:
    radial-gradient(circle, rgba(16, 35, 65, .065) 1px, transparent 1.5px) right top / 15px 15px,
    var(--comic-paper);
  box-shadow: 12px 13px 0 var(--comic-shadow);
  transform: rotate(-1deg);
}

body[data-rti-theme="banks"] .bank-game-hero .page-hero-copy::after {
  position: absolute;
  right: -25px;
  top: 42%;
  width: 33px;
  height: 33px;
  border-top: 5px solid var(--comic-ink);
  border-right: 5px solid var(--comic-ink);
  background: var(--comic-paper);
  transform: rotate(45deg);
  content: "";
}

body[data-rti-theme="banks"] .bank-game-hero .back-home {
  color: #164e75;
  font-size: .95rem;
  font-weight: 900;
}

body[data-rti-theme="banks"] .bank-game-hero .eyebrow {
  display: inline-block;
  margin: 16px 0 0;
  padding: 7px 13px;
  color: var(--comic-ink);
  background: var(--comic-cyan);
  border: 3px solid var(--comic-ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--comic-ink);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body[data-rti-theme="banks"] .bank-game-hero h1 {
  max-width: 690px;
  margin: 24px 0 15px;
  color: var(--comic-ink) !important;
  font-size: clamp(2.5rem, 4vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: none;
}

body[data-rti-theme="banks"] .bank-game-hero h1 em {
  display: block;
  color: #bd3049 !important;
  font-style: normal;
  text-shadow: 2px 2px 0 #ffd680;
}

body[data-rti-theme="banks"] .bank-game-hero .page-hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  color: #30405a;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-rti-theme="banks"] .bank-game-statusbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

body[data-rti-theme="banks"] .bank-game-statusbar span {
  min-height: 57px;
  display: grid;
  align-content: center;
  padding: 8px 10px;
  color: var(--comic-ink);
  border: 2px solid var(--comic-ink);
  background: #fff;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

body[data-rti-theme="banks"] .bank-game-statusbar span:nth-child(2) { background: #fff0b3; }
body[data-rti-theme="banks"] .bank-game-statusbar span:nth-child(3) { background: #d8faf1; }
body[data-rti-theme="banks"] .bank-game-statusbar b { color: #bb3444; font-size: 1.04rem; }

body[data-rti-theme="banks"] .bank-game-hero .main-button {
  min-height: 53px;
  padding: 11px 18px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  border-radius: 5px;
  background: var(--comic-gold);
  box-shadow: 5px 5px 0 var(--comic-ink);
  font-weight: 950;
  transition: transform .18s ease, box-shadow .18s ease;
}

body[data-rti-theme="banks"] .bank-game-hero .main-button:hover,
body[data-rti-theme="banks"] .bank-game-hero .main-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--comic-ink);
}

body[data-rti-theme="banks"] .bank-game-hero .scene-frame {
  position: relative;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 8px;
  border: 6px solid #fff;
  border-radius: 6px 28px 6px 28px;
  background: var(--comic-ink);
  box-shadow: 11px 13px 0 var(--comic-shadow), 0 0 0 5px var(--comic-ink);
  transform: rotate(1deg);
}

body[data-rti-theme="banks"] .bank-game-hero .scene-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 2px 18px 2px 18px;
}

body[data-rti-theme="banks"] .bank-game-hero .scene-frame::before {
  position: absolute;
  top: -22px;
  left: 18px;
  z-index: 2;
  padding: 8px 15px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  background: var(--comic-cyan);
  box-shadow: 4px 4px 0 var(--comic-ink);
  content: "VIÑETA 01 · ENTRA A LA UNT";
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
}

body[data-rti-theme="banks"] .bank-game-hero .scene-frame::after {
  position: absolute;
  right: -13px;
  bottom: -16px;
  z-index: 2;
  padding: 9px 15px;
  color: var(--comic-ink);
  border: 4px solid var(--comic-ink);
  background: var(--comic-gold);
  box-shadow: 4px 4px 0 var(--comic-shadow);
  content: "¡COMIENZA LA MISIÓN!";
  font-size: clamp(.75rem, 1.2vw, 1rem);
  font-weight: 950;
  transform: rotate(-4deg);
}

body[data-rti-theme="banks"] .bank-game-hero .scene-tape,
body[data-rti-theme="banks"] .bank-game-hero .scene-sticker { display: none; }

/* Viñeta 02 · cuatro portales, con sus portadas completas y controles a la vista. */
body[data-rti-theme="banks"] #bancos-disponibles {
  width: min(1340px, calc(100% - 42px));
  padding-block: clamp(52px, 6vw, 90px);
}

body[data-rti-theme="banks"] #bancos-disponibles::before { display: none; }

body[data-rti-theme="banks"] #bancos-disponibles > .section-heading {
  position: relative;
  max-width: none;
  margin: 0 0 35px;
  padding: 32px clamp(25px, 4vw, 56px);
  color: #fff;
  border: 5px solid var(--comic-ink);
  border-radius: 5px 27px 5px 27px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 2px) right top / 16px 16px,
    #12335b;
  box-shadow: 9px 10px 0 #bfcbd0;
}

body[data-rti-theme="banks"] #bancos-disponibles > .section-heading::after {
  position: absolute;
  top: -17px;
  right: 24px;
  padding: 7px 13px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  background: #ffdc69;
  content: "VIÑETA 02 · ELIGE UN MUNDO";
  font-size: .75rem;
  font-weight: 950;
  transform: rotate(2deg);
}

body[data-rti-theme="banks"] #bancos-disponibles > .section-heading .eyebrow { color: var(--comic-cyan); }
body[data-rti-theme="banks"] #bancos-disponibles > .section-heading h2 {
  max-width: 900px;
  margin: 9px 0 11px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -.05em;
}
body[data-rti-theme="banks"] #bancos-disponibles > .section-heading > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #e0eff7;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-rti-theme="banks"] .online-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 38px);
  padding: 10px 4px 15px;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body[data-rti-theme="banks"] .online-bank-grid::before,
body[data-rti-theme="banks"] .online-bank-grid::after { display: none; }

body[data-rti-theme="banks"] .online-bank-card {
  --portal: #6fdde4;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: var(--comic-ink);
  border: 5px solid var(--comic-ink);
  border-radius: 6px 26px 6px 26px;
  background: var(--comic-paper);
  box-shadow: 9px 10px 0 var(--comic-shadow);
  transform: rotate(-.55deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

body[data-rti-theme="banks"] .online-bank-card:nth-child(even) { transform: rotate(.55deg); }
body[data-rti-theme="banks"] .online-bank-card.civics { --portal: #f29ac3; }
body[data-rti-theme="banks"] .online-bank-card.chemistry { --portal: #ffbf70; }
body[data-rti-theme="banks"] .online-bank-card.biology { --portal: #a6e49e; }
body[data-rti-theme="banks"] :where(.online-bank-card.language, .online-bank-card.civics, .online-bank-card.chemistry, .online-bank-card.biology) {
  background: var(--comic-paper) !important;
}

body[data-rti-theme="banks"] .online-bank-card::before {
  position: absolute;
  top: -16px;
  left: 20px;
  z-index: 3;
  padding: 6px 12px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  background: var(--portal);
  box-shadow: 3px 3px 0 var(--comic-ink);
  content: "CAPÍTULO 01";
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .08em;
}
body[data-rti-theme="banks"] .online-bank-card:nth-child(2)::before { content: "CAPÍTULO 02"; }
body[data-rti-theme="banks"] .online-bank-card:nth-child(3)::before { content: "CAPÍTULO 03"; }
body[data-rti-theme="banks"] .online-bank-card:nth-child(4)::before { content: "CAPÍTULO 04"; }
body[data-rti-theme="banks"] .online-bank-card::after { display: none; }

body[data-rti-theme="banks"] .online-bank-card:hover,
body[data-rti-theme="banks"] .online-bank-card:focus-within {
  transform: translateY(-7px) rotate(0);
  box-shadow: 12px 15px 0 var(--comic-shadow);
}

body[data-rti-theme="banks"] .online-bank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-bottom: 5px solid var(--comic-ink);
  border-radius: 1px 20px 0 0;
  background:
    radial-gradient(circle, rgba(16, 35, 65, .1) 1px, transparent 1.6px) 0 0 / 14px 14px,
    color-mix(in srgb, var(--portal) 42%, #fff);
}
body[data-rti-theme="banks"] .online-bank-cover::before,
body[data-rti-theme="banks"] .online-bank-cover::after { display: none; }

body[data-rti-theme="banks"] .online-bank-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: transform .22s ease;
}
body[data-rti-theme="banks"] .online-bank-card:hover .online-bank-photo { transform: scale(1.025); }

body[data-rti-theme="banks"] .online-bank-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 30px);
  color: var(--comic-ink) !important;
  background: var(--comic-paper) !important;
  border-radius: 0 0 1px 20px;
}
body[data-rti-theme="banks"] .online-bank-copy::before { display: none; }
body[data-rti-theme="banks"] .online-bank-title-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}
body[data-rti-theme="banks"] .online-bank-course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  border-radius: 5px;
  background: var(--portal);
  box-shadow: 3px 3px 0 var(--comic-ink);
  font-size: .8rem;
  font-weight: 950;
}
body[data-rti-theme="banks"] .online-bank-title-row .eyebrow {
  margin: 0 0 3px;
  color: #555c65;
  font-size: .73rem;
  font-weight: 950;
}
body[data-rti-theme="banks"] .online-bank-copy h3 {
  margin: 0;
  color: var(--comic-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
body[data-rti-theme="banks"] .online-bank-count {
  min-width: 69px;
  padding: 6px 9px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  border-radius: 50%;
  background: #ffdb63;
  text-align: center;
  transform: rotate(8deg);
}
body[data-rti-theme="banks"] .online-bank-count b,
body[data-rti-theme="banks"] .online-bank-count small { display: block; }
body[data-rti-theme="banks"] .online-bank-count b { font-size: 1.05rem; }
body[data-rti-theme="banks"] .online-bank-count small { font-size: .6rem; font-weight: 900; }
body[data-rti-theme="banks"] .online-bank-count :where(b, small) { color: var(--comic-ink) !important; }

body[data-rti-theme="banks"] .online-bank-copy > p {
  min-height: 0;
  margin: 18px 0;
  color: #31425a;
  font-size: .98rem;
  line-height: 1.5;
}
body[data-rti-theme="banks"] .online-bank-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}
body[data-rti-theme="banks"] .online-bank-features span {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  color: var(--comic-ink);
  border: 2px solid var(--comic-ink);
  border-radius: 5px;
  background: #fff;
  font-size: .77rem;
  font-weight: 850;
}
body[data-rti-theme="banks"] .online-bank-features span:nth-child(2) { background: #fff2c7; }
body[data-rti-theme="banks"] .online-bank-features span:nth-child(3) { background: #ddf7ed; }

body[data-rti-theme="banks"] .bank-enter-button {
  width: 100%;
  min-height: 51px;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 14px;
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  border-radius: 5px;
  background: var(--portal);
  box-shadow: 4px 4px 0 var(--comic-ink);
  font-weight: 950;
}
body[data-rti-theme="banks"] .bank-enter-button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--comic-ink);
}
body[data-rti-theme="banks"] .bank-enter-button:focus-visible { outline: 4px solid #c6344f; outline-offset: 4px; }

body[data-rti-theme="banks"] .more-banks-coming {
  position: relative;
  margin-top: 42px;
  padding: 25px 30px;
  color: var(--comic-ink);
  border: 5px solid var(--comic-ink);
  border-radius: 5px 23px 5px 23px;
  background: #fff9e9;
  box-shadow: 8px 9px 0 var(--comic-shadow);
}
body[data-rti-theme="banks"] .more-banks-plus,
body[data-rti-theme="banks"] .more-banks-status {
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  background: #ffda63;
}
body[data-rti-theme="banks"] .more-banks-coming .eyebrow { color: #b2374b; }
body[data-rti-theme="banks"] .more-banks-coming h2 { color: var(--comic-ink); }
body[data-rti-theme="banks"] .more-banks-coming p { color: #34445c; }

/* Viñeta 03 · ranking y siguiente misión. */
body[data-rti-theme="banks"] .ranking-explain {
  position: relative;
  padding: clamp(55px, 6vw, 85px) 0;
  color: #fff;
  border-block: 8px solid var(--comic-ink);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1.6px) 0 0 / 17px 17px,
    #143b67;
}
body[data-rti-theme="banks"] .ranking-explain > .shell {
  width: min(1250px, calc(100% - 42px));
  align-items: center;
}
body[data-rti-theme="banks"] .ranking-explain .eyebrow { color: #86ece9; }
body[data-rti-theme="banks"] .ranking-explain h2 { color: #fff; }
body[data-rti-theme="banks"] .ranking-explain p { color: #deedf6; }
body[data-rti-theme="banks"] .ranking-rules span {
  color: var(--comic-ink);
  border: 3px solid var(--comic-ink);
  border-radius: 5px;
  background: #fff9e9;
}
body[data-rti-theme="banks"] .ranking-rules b { color: var(--comic-ink); background: #ffda63; }
body[data-rti-theme="banks"] .rank-podium span {
  color: var(--comic-ink);
  border: 4px solid var(--comic-ink);
  box-shadow: 6px 7px 0 var(--comic-shadow);
}

body[data-rti-theme="banks"] .mascot-ribbon {
  padding-block: 50px;
  background: #f4eddc;
}
body[data-rti-theme="banks"] .mascot-ribbon-grid {
  border: 5px solid var(--comic-ink);
  border-radius: 5px 25px 5px 25px;
  background: var(--comic-paper);
  box-shadow: 9px 10px 0 var(--comic-shadow);
}

@media (max-width: 1080px) {
  body[data-rti-theme="banks"] .bank-game-hero .page-hero-grid { grid-template-columns: 1fr; max-width: 820px; }
  body[data-rti-theme="banks"] .bank-game-hero .page-hero-copy::after { display: none; }
  body[data-rti-theme="banks"] .bank-game-hero .scene-frame { max-width: 820px; }
}

@media (max-width: 760px) {
  body[data-rti-theme="banks"] .bank-game-hero { padding: 30px 0 43px; }
  body[data-rti-theme="banks"] .bank-game-hero .page-hero-grid { width: calc(100% - 26px); gap: 34px; }
  body[data-rti-theme="banks"] .bank-game-hero .page-hero-copy { padding: 21px; transform: none; }
  body[data-rti-theme="banks"] .bank-game-hero h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  body[data-rti-theme="banks"] .bank-game-hero .scene-frame { transform: none; }
  body[data-rti-theme="banks"] #bancos-disponibles { width: calc(100% - 26px); }
  body[data-rti-theme="banks"] .online-bank-grid { grid-template-columns: 1fr; gap: 30px; }
  body[data-rti-theme="banks"] .online-bank-card:nth-child(n) { transform: none; }
  body[data-rti-theme="banks"] .online-bank-card:hover,
  body[data-rti-theme="banks"] .online-bank-card:focus-within { transform: translateY(-5px); }
  body[data-rti-theme="banks"] .more-banks-coming { grid-template-columns: 50px minmax(0, 1fr); }
  body[data-rti-theme="banks"] .more-banks-status { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 430px) {
  body[data-rti-theme="banks"] .bank-game-statusbar { grid-template-columns: 1fr; }
  body[data-rti-theme="banks"] .bank-game-statusbar span { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; }
  body[data-rti-theme="banks"] .bank-game-hero .main-button { width: 100%; justify-content: center; }
  body[data-rti-theme="banks"] .bank-game-hero .scene-frame::before { font-size: .62rem; }
  body[data-rti-theme="banks"] .bank-game-hero .scene-frame::after { font-size: .62rem; right: -7px; }
  body[data-rti-theme="banks"] #bancos-disponibles > .section-heading { padding: 32px 20px 23px; }
  body[data-rti-theme="banks"] #bancos-disponibles > .section-heading::after { right: 8px; font-size: .62rem; }
  body[data-rti-theme="banks"] .online-bank-title-row { grid-template-columns: 42px minmax(0, 1fr); }
  body[data-rti-theme="banks"] .online-bank-course-icon { width: 42px; height: 42px; }
  body[data-rti-theme="banks"] .online-bank-count { grid-column: 1 / -1; justify-self: start; border-radius: 5px; transform: none; }
  body[data-rti-theme="banks"] .online-bank-count b,
  body[data-rti-theme="banks"] .online-bank-count small { display: inline; }
  body[data-rti-theme="banks"] .online-bank-features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-rti-theme="banks"] :where(.online-bank-card, .online-bank-photo, .bank-game-hero .main-button) { transition: none; }
}
