.capitan-pandoro-game{
  --ink: #10142e;
  --ink-2: #20234d;
  --paper: #fff8df;
  --paper-2: #e9dfc6;
  --gold: #ffd044;
  --orange: #ed8b2e;
  --red: #e6474f;
  --violet: #744ed2;
  --cyan: #54cfda;
  --green: #5bc78f;
  --pixel: 4px;
}

.capitan-pandoro-game, .capitan-pandoro-game *{ box-sizing: border-box; }
.capitan-pandoro-game{ min-height: 100%; }

.capitan-pandoro-game{
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,208,68,.18) 0 3px, transparent 4px),
    linear-gradient(145deg, #151532, #39246d 52%, #0d3445);
  background-size: 56px 56px, auto;
}

.capitan-pandoro-game button{ font: inherit; }
.capitan-pandoro-game button:focus-visible{ outline: 4px solid #fff; outline-offset: 3px; }

.capitan-pandoro-game .page-shell{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.capitan-pandoro-game .console{
  width: min(1180px, 100%);
  overflow: hidden;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 14px 0 rgba(8,9,24,.48), 0 30px 80px rgba(0,0,0,.42);
}

.capitan-pandoro-game .topbar{
  min-height: 78px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #17183a, #422879 64%, #20495c);
  border-bottom: 4px solid var(--ink);
}

.capitan-pandoro-game .mini-logo{ line-height: .93; }
.capitan-pandoro-game .mini-logo span{
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .22em;
}
.capitan-pandoro-game .mini-logo strong{
  display: block;
  font-size: clamp(22px, 3.2vw, 37px);
  font-weight: 1000;
  letter-spacing: -.055em;
  text-shadow: 3px 3px 0 #08091c;
}
.capitan-pandoro-game .mini-logo i{ color: var(--gold); font-style: normal; }

.capitan-pandoro-game .chapter-status{
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 2px solid rgba(255,255,255,.18);
}
.capitan-pandoro-game .chapter-status span{ color: #aef1f5; font-size: 9px; font-weight: 1000; letter-spacing: .15em; }
.capitan-pandoro-game .chapter-status b{ margin-top: 3px; font-size: 15px; }

.capitan-pandoro-game .top-actions{ display: flex; gap: 8px; }
.capitan-pandoro-game .top-actions button, .capitan-pandoro-game .helpbar button{
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid #08091c;
  border-radius: 7px;
  box-shadow: 0 4px 0 #08091c;
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
}
.capitan-pandoro-game .top-actions button:first-child{ width: 42px; padding: 0; font-size: 21px; }
.capitan-pandoro-game .top-actions button.is-off{ color: #595c70; background: #aaa6b6; }

.capitan-pandoro-game .questbar{
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(75px, .42fr));
  color: #fff;
  background: #0b0e27;
  border-bottom: 4px solid var(--ink);
}
.capitan-pandoro-game .questbar > div{
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 13px;
  background: var(--ink-2);
  border-right: 1px solid #0b0e27;
}
.capitan-pandoro-game .questbar span{ color: #a9a0d0; font-size: 8px; font-weight: 1000; letter-spacing: .14em; }
.capitan-pandoro-game .questbar strong{ overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.capitan-pandoro-game .quest-copy strong{ color: var(--gold); }

.capitan-pandoro-game .game-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: #47755e;
}

.capitan-pandoro-game #gameCanvas{
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.capitan-pandoro-game .title-screen{
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10,10,30,.22), rgba(14,13,40,.84) 55%, rgba(14,13,40,.96)),
    url("images/capitan-pandoro-cover.png") 64% center / cover no-repeat,
    linear-gradient(135deg, #5f318e, #12798a);
}
.capitan-pandoro-game .title-screen[hidden]{ display: none; }
.capitan-pandoro-game .title-screen::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.2) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.capitan-pandoro-game .title-hero{
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: min(41vw, 455px);
  height: 95%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(10px 8px 0 rgba(9,9,28,.64));
}

.capitan-pandoro-game .title-copy{
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 24px 38px 24px 8px;
  text-align: center;
}
.capitan-pandoro-game .cartridge{
  display: inline-block;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .13em;
}
.capitan-pandoro-game .title-copy h1{
  margin: 15px 0 0;
  color: var(--gold);
  font-size: clamp(49px, 8vw, 92px);
  font-weight: 1000;
  line-height: .72;
  letter-spacing: -.085em;
  text-shadow: 5px 5px 0 #090a20, -2px -2px 0 #090a20;
}
.capitan-pandoro-game .title-copy h1 small{
  display: block;
  color: #fff8df;
  font-size: .35em;
  letter-spacing: .18em;
}
.capitan-pandoro-game .title-sub{
  display: inline-block;
  margin: 13px 0 6px;
  padding: 6px 13px;
  color: #fff;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(13px, 2vw, 22px);
  font-weight: 1000;
  letter-spacing: .06em;
  transform: rotate(-1deg);
}
.capitan-pandoro-game .title-tagline{ margin: 9px 0 15px; font-size: 15px; font-weight: 800; line-height: 1.35; text-shadow: 2px 2px 0 var(--ink); }
.capitan-pandoro-game .menu-stack{ display: grid; justify-content: center; gap: 8px; }

.capitan-pandoro-game .main-button, .capitan-pandoro-game .alt-button{
  min-width: 210px;
  padding: 11px 17px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 1000;
  letter-spacing: .04em;
  cursor: pointer;
}
.capitan-pandoro-game .main-button{ color: var(--ink); background: var(--gold); }
.capitan-pandoro-game .alt-button{ color: #fff; background: var(--violet); }
.capitan-pandoro-game .key-hint{ margin: 14px 0 0; color: #d9d2f3; font-size: 8px; font-weight: 900; letter-spacing: .08em; }

.capitan-pandoro-game .dialogue-box{
  position: absolute;
  z-index: 6;
  right: 3%;
  bottom: 4%;
  left: 3%;
  min-height: 128px;
  display: grid;
  grid-template-columns: 1fr 38px;
  grid-template-rows: auto 1fr;
  padding: 22px 18px 14px;
  color: var(--ink);
  background: rgba(255,248,223,.98);
  border: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 7px 0 rgba(8,9,28,.48);
}
.capitan-pandoro-game .dialogue-box[hidden]{ display: none; }
.capitan-pandoro-game .name-tab{
  position: absolute;
  top: -23px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  padding: 7px 12px;
  color: #fff;
  background: var(--violet);
  border: 4px solid var(--ink);
  border-radius: 7px 7px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
}
.capitan-pandoro-game .name-tab span{ color: var(--gold); font-size: 18px; }
.capitan-pandoro-game .dialogue-box p{
  grid-column: 1;
  align-self: center;
  margin: 8px 0 0;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.35;
}
.capitan-pandoro-game .dialogue-box > button{
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  animation: bob .75s steps(2) infinite;
}

.capitan-pandoro-game .prebattle{
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  pointer-events: none;
  color: #fff;
  text-align: center;
  background: rgba(11,10,35,.12);
}
.capitan-pandoro-game .prebattle[hidden]{ display: none; }
.capitan-pandoro-game .vs-burst{
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  color: var(--gold);
  background: var(--red);
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 43px;
  font-weight: 1000;
  transform: rotate(-8deg);
}
.capitan-pandoro-game .prebattle p{
  margin: 14px 0 5px;
  padding: 8px 14px;
  background: var(--ink);
  border: 3px solid #fff;
  font-size: 15px;
  font-weight: 1000;
}
.capitan-pandoro-game .prebattle > span{ font-size: 10px; font-weight: 900; letter-spacing: .12em; text-shadow: 2px 2px 0 var(--ink); }

.capitan-pandoro-game .battle-panel{
  position: absolute;
  z-index: 6;
  right: 2%;
  bottom: 2.5%;
  left: 2%;
  display: grid;
  grid-template-columns: .85fr 1.7fr;
  gap: 9px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255,248,223,.98);
  border: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 7px 0 rgba(8,9,28,.48);
}
.capitan-pandoro-game .battle-panel[hidden]{ display: none; }
.capitan-pandoro-game .battle-copy{
  padding: 9px 11px;
  background: #e4dcf6;
  border: 3px solid var(--ink);
  border-radius: 5px;
}
.capitan-pandoro-game .battle-copy span{ color: var(--violet); font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.capitan-pandoro-game .battle-copy p{ margin: 7px 0 0; font-size: 14px; font-weight: 850; line-height: 1.3; }
.capitan-pandoro-game .battle-actions{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.capitan-pandoro-game .battle-actions button{
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  min-height: 58px;
  padding: 6px 8px;
  color: var(--ink);
  background: #fffdf4;
  border: 3px solid var(--ink);
  border-radius: 5px;
  box-shadow: 0 3px 0 var(--ink);
  text-align: left;
  cursor: pointer;
}
.capitan-pandoro-game .battle-actions button:hover{ background: #fff1b8; }
.capitan-pandoro-game .battle-actions button:disabled{ opacity: .45; cursor: not-allowed; }
.capitan-pandoro-game .battle-actions kbd{ grid-row: 1/3; color: var(--red); font-family: inherit; font-size: 18px; font-weight: 1000; }
.capitan-pandoro-game .battle-actions b{ align-self: end; font-size: 11px; }
.capitan-pandoro-game .battle-actions small{ align-self: start; color: #676078; font-size: 9px; }

.capitan-pandoro-game .chapter-card{
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 35px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(13,14,39,.97), rgba(80,42,126,.97));
}
.capitan-pandoro-game .chapter-card[hidden]{ display: none; }
.capitan-pandoro-game .chapter-card::before{ content: ""; position: absolute; inset: 18px; border: 2px solid rgba(255,208,68,.4); }
.capitan-pandoro-game .chapter-card span{ color: var(--gold); font-size: 11px; font-weight: 1000; letter-spacing: .22em; }
.capitan-pandoro-game .chapter-card h2{ max-width: 720px; margin: 9px 0; font-size: clamp(34px, 6vw, 68px); font-weight: 1000; line-height: .92; letter-spacing: -.055em; text-shadow: 5px 5px 0 #08091c; }
.capitan-pandoro-game .chapter-card p{ margin: 6px 0 0; color: #ddd6fa; font-size: 16px; font-weight: 800; }

.capitan-pandoro-game .ending-screen{
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 25% 30%, #5a418e, transparent 42%), linear-gradient(135deg, #11142e, #3a225f);
}
.capitan-pandoro-game .ending-screen[hidden]{ display: none; }
.capitan-pandoro-game .ending-screen img{ align-self: end; width: 100%; height: 95%; object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(9px 7px 0 rgba(0,0,0,.45)); }
.capitan-pandoro-game .ending-screen > div{ padding: 25px 35px 25px 5px; text-align: center; }
.capitan-pandoro-game .ending-screen > div > span{ color: var(--gold); font-size: 10px; font-weight: 1000; letter-spacing: .2em; }
.capitan-pandoro-game .ending-screen h2{ margin: 9px 0; color: var(--gold); font-size: clamp(30px, 5vw, 58px); font-weight: 1000; line-height: .9; letter-spacing: -.055em; text-shadow: 4px 4px 0 #08091c; }
.capitan-pandoro-game .ending-screen p{ font-size: 15px; font-weight: 750; line-height: 1.4; }
.capitan-pandoro-game .ending-actions{ display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }

.capitan-pandoro-game .cinematic-screen{
  position: absolute;
  z-index: 11;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #08091c;
}
.capitan-pandoro-game .cinematic-screen[hidden]{ display: none; }
.capitan-pandoro-game .cinematic-visual{
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent 42%, rgba(6,7,24,.94) 88%), var(--cinematic-image, url("images/invasion-cinematic.png"));
  background-repeat: no-repeat;
  background-size: 100% 100%, 300% 100%;
  background-position: center, left center;
  image-rendering: pixelated;
  transition: filter .35s steps(5);
  animation: cinematic-pulse 4s steps(8) infinite;
}
.capitan-pandoro-game .cinematic-visual[data-scene="1"]{ background-position: center, center; }
.capitan-pandoro-game .cinematic-visual[data-scene="2"]{ background-position: center, right center; }
.capitan-pandoro-game .cinematic-visual[data-kind="opening"]{ animation: opening-drift 5s steps(10) infinite; }
.capitan-pandoro-game .cinematic-caption{
  position: absolute;
  right: 7%;
  bottom: 7%;
  left: 7%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 24px;
  padding: 18px 20px;
  color: #fff;
  background: rgba(12,13,37,.92);
  border: 4px solid #fff8df;
  box-shadow: 7px 7px 0 #10142e;
}
.capitan-pandoro-game .cinematic-caption span{ grid-column: 1; color: var(--gold); font-size: 10px; font-weight: 1000; letter-spacing: .2em; }
.capitan-pandoro-game .cinematic-caption p{ grid-column: 1; margin: 0; max-width: 760px; font-size: clamp(15px,2vw,20px); font-weight: 850; line-height: 1.35; }
.capitan-pandoro-game .cinematic-caption button{ grid-column: 2; grid-row: 1 / 3; align-self: center; }

.capitan-pandoro-game .final-screen{
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  grid-template-columns: 53% 47%;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 22% 35%, #6c427b, transparent 42%), linear-gradient(135deg, #0d1730, #3b193b 58%, #7b3035);
}
.capitan-pandoro-game .final-screen[hidden]{ display: none; }
.capitan-pandoro-game .final-screen::before{ content:""; position:absolute; inset:0; opacity:.16; background:repeating-linear-gradient(0deg,#fff 0 1px,transparent 1px 5px); }
.capitan-pandoro-game .final-screen img{ position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(9px 8px 0 rgba(0,0,0,.42)); }
.capitan-pandoro-game .final-screen > div{ position: relative; z-index: 2; padding: 26px 34px 26px 0; text-align: center; }
.capitan-pandoro-game .final-screen span{ color: var(--gold); font-size: 11px; font-weight: 1000; letter-spacing: .25em; }
.capitan-pandoro-game .final-screen h2{ margin: 10px 0; color: var(--gold); font-size: clamp(28px,4.4vw,54px); font-weight: 1000; line-height: .92; letter-spacing: -.05em; text-shadow: 4px 4px 0 #08091c; }
.capitan-pandoro-game .final-screen p{ font-size: 15px; font-weight: 800; line-height: 1.4; }

.capitan-pandoro-game .toast{
  position: absolute;
  z-index: 12;
  top: 16px;
  left: 50%;
  max-width: 80%;
  padding: 8px 14px;
  color: #fff;
  background: var(--ink);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(8,9,28,.4);
  font-size: 11px;
  font-weight: 1000;
  text-align: center;
  transform: translate(-50%, -90px);
  transition: transform .22s steps(4);
  pointer-events: none;
}
.capitan-pandoro-game .toast.show{ transform: translate(-50%, 0); }

.capitan-pandoro-game .mobile-controls{
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 20px;
  background: var(--paper-2);
  border-top: 4px solid var(--ink);
}
.capitan-pandoro-game .dpad{ display: grid; grid-template-columns: repeat(3,44px); grid-template-rows: repeat(2,38px); }
.capitan-pandoro-game .dpad button, .capitan-pandoro-game .interact-button{
  color: #fff;
  background: var(--ink-2);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 1000;
  cursor: pointer;
  touch-action: manipulation;
}
.capitan-pandoro-game .dpad button[data-dir="up"]{ grid-column: 2; border-radius: 7px 7px 2px 2px; }
.capitan-pandoro-game .dpad button[data-dir="left"]{ grid-column: 1; grid-row: 2; border-radius: 7px 2px 2px 7px; }
.capitan-pandoro-game .dpad button[data-dir="down"]{ grid-column: 2; grid-row: 2; }
.capitan-pandoro-game .dpad button[data-dir="right"]{ grid-column: 3; grid-row: 2; border-radius: 2px 7px 7px 2px; }
.capitan-pandoro-game .interact-button{ display: grid; place-items: center; width: 88px; height: 58px; color: var(--ink); background: var(--gold); border-radius: 50%; font-size: 9px; }
.capitan-pandoro-game .interact-button span{ display: block; font-size: 21px; line-height: .8; }

.capitan-pandoro-game .helpbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 16px;
  background: var(--paper);
  border-top: 4px solid var(--ink);
  font-size: 11px;
}
.capitan-pandoro-game .helpbar p{ margin: 0; }
.capitan-pandoro-game .helpbar button{ min-height: 30px; color: var(--ink); background: transparent; box-shadow: none; }

.capitan-pandoro-game button:active{ transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes cinematic-pulse { 50% { filter: brightness(1.12) saturate(1.08); } }
@keyframes opening-drift { 50% { filter: brightness(1.1) contrast(1.04); } }

@media (max-width: 760px) {
  .capitan-pandoro-game .page-shell{ padding: 0; place-items: start center; }
  .capitan-pandoro-game .console{ min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .capitan-pandoro-game .topbar{ min-height: 64px; grid-template-columns: 1fr auto; padding: 8px 11px; }
  .capitan-pandoro-game .chapter-status{ display: none; }
  .capitan-pandoro-game .mini-logo span{ font-size: 7px; }
  .capitan-pandoro-game .mini-logo strong{ font-size: 23px; }
  .capitan-pandoro-game .top-actions button:last-child{ display: none; }
  .capitan-pandoro-game .questbar{ grid-template-columns: 1fr 90px; }
  .capitan-pandoro-game .questbar .stat:nth-last-child(-n+2){ display: none; }
  .capitan-pandoro-game .questbar > div{ padding: 7px 9px; }
  .capitan-pandoro-game .questbar strong{ font-size: 9px; }
  .capitan-pandoro-game .game-frame{ aspect-ratio: 12 / 8; }
  .capitan-pandoro-game .title-screen{ grid-template-columns: 46% 54%; }
  .capitan-pandoro-game .title-hero{ width: 50vw; height: 93%; transform: translateX(-5%); }
  .capitan-pandoro-game .title-copy{ padding: 14px 12px 14px 0; }
  .capitan-pandoro-game .title-copy h1{ font-size: clamp(41px, 12vw, 62px); }
  .capitan-pandoro-game .title-sub{ font-size: 11px; }
  .capitan-pandoro-game .title-tagline{ font-size: 11px; }
  .capitan-pandoro-game .main-button, .capitan-pandoro-game .alt-button{ min-width: 170px; padding: 9px; font-size: 11px; }
  .capitan-pandoro-game .key-hint{ display: none; }
  .capitan-pandoro-game .dialogue-box{ right: 2%; bottom: 2%; left: 2%; min-height: 98px; padding: 18px 10px 8px; }
  .capitan-pandoro-game .name-tab{ top: -18px; left: 8px; min-width: 130px; padding: 4px 8px; font-size: 8px; }
  .capitan-pandoro-game .name-tab span{ font-size: 14px; }
  .capitan-pandoro-game .dialogue-box p{ font-size: 11px; }
  .capitan-pandoro-game .battle-panel{ grid-template-columns: 1fr; padding: 7px; }
  .capitan-pandoro-game .battle-copy{ display: none; }
  .capitan-pandoro-game .battle-actions button{ min-height: 46px; grid-template-columns: 21px 1fr; padding: 4px 5px; }
  .capitan-pandoro-game .battle-actions kbd{ font-size: 14px; }
  .capitan-pandoro-game .battle-actions b{ font-size: 9px; }
  .capitan-pandoro-game .battle-actions small{ font-size: 7px; }
  .capitan-pandoro-game .mobile-controls{ display: flex; }
  .capitan-pandoro-game .helpbar{ padding: 8px 10px; }
  .capitan-pandoro-game .helpbar p{ font-size: 8px; }
  .capitan-pandoro-game .helpbar button{ font-size: 9px; }
  .capitan-pandoro-game .ending-screen{ grid-template-columns: 40% 60%; }
  .capitan-pandoro-game .ending-screen > div{ padding: 15px 12px 15px 0; }
  .capitan-pandoro-game .ending-screen p{ font-size: 10px; }
  .capitan-pandoro-game .cinematic-caption{ right: 3%; bottom: 4%; left: 3%; grid-template-columns: 1fr; padding: 12px; }
  .capitan-pandoro-game .cinematic-caption button{ grid-column: 1; grid-row: auto; justify-self: end; min-width: 150px; }
  .capitan-pandoro-game .cinematic-caption p{ font-size: 11px; }
  .capitan-pandoro-game .final-screen{ grid-template-columns: 48% 52%; }
  .capitan-pandoro-game .final-screen > div{ padding: 15px 12px 15px 0; }
  .capitan-pandoro-game .final-screen p{ font-size: 10px; }
}

@media (max-width: 430px) {
  .capitan-pandoro-game .title-screen{ grid-template-columns: 42% 58%; }
  .capitan-pandoro-game .title-hero{ width: 56vw; transform: translateX(-9%); }
  .capitan-pandoro-game .title-copy h1{ font-size: 43px; }
  .capitan-pandoro-game .cartridge{ font-size: 7px; }
  .capitan-pandoro-game .title-tagline{ margin-bottom: 8px; }
  .capitan-pandoro-game .prebattle p{ font-size: 11px; }
  .capitan-pandoro-game .vs-burst{ width: 70px; height: 70px; font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .capitan-pandoro-game, .capitan-pandoro-game *, .capitan-pandoro-game *::before, .capitan-pandoro-game *::after{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Integrazione WordPress/Avada: il gioco occupa il contenitore, non l'intera pagina. */
.capitan-pandoro-game {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
}
.capitan-pandoro-game .page-shell { min-height: 0; padding: 0; }

@media (max-width: 760px) {
  .capitan-pandoro-game { padding: 0; border-radius: 0; }
}
