.adventure-launch{flex:none;background:linear-gradient(135deg,#132e54,#241947);color:#a9faff;border:1px solid #62dfff;border-radius:8px;padding:10px 13px;min-height:42px;font-weight:800;cursor:pointer}
.adventure-dialog{width:min(1060px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:28px;border:1px solid #64e5ff;border-radius:24px;color:#e8f8ff;background:radial-gradient(ellipse at 0 0,#173a6277,transparent 55%),linear-gradient(140deg,#071326f7,#100a24fa);box-shadow:0 0 0 5px #14457144,0 0 90px #3d4ffc44,0 35px 100px #000b;overflow:auto;scrollbar-width:thin;font-family:inherit}
.adventure-dialog::backdrop{background:#010713c9;backdrop-filter:blur(9px)}
.adv-header{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:22px}.adv-kicker{font-size:10px;letter-spacing:.22em;color:#7bdfff;font-weight:900}.adv-header h2{font-size:clamp(24px,3.4vw,38px);margin:8px 0;color:#fff;letter-spacing:-.03em}.adv-header p{font-size:12px;color:#96adcf;margin:6px 0}.adv-close{border:1px solid #466487;background:#0a1c34;color:#c0e7ff;border-radius:50%;width:38px;height:38px;flex:none;cursor:pointer}
.adv-worlds{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.world-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:17px 7px 13px;background:linear-gradient(165deg,#173049bb,#091223);border:1px solid #293e5b;color:#d6e5f5;border-radius:14px;cursor:pointer;overflow:hidden;transition:transform .2s,border-color .2s}.world-card:hover{transform:translateY(-4px);border-color:var(--world)}.world-card.selected{border-color:var(--world);box-shadow:inset 0 0 25px color-mix(in srgb,var(--world) 14%,transparent),0 0 18px color-mix(in srgb,var(--world) 18%,transparent)}.world-orb{display:grid;place-items:center;width:58px;height:58px;color:var(--world);font-size:39px;border-radius:50%;background:radial-gradient(circle,#263154,transparent 70%);text-shadow:0 0 16px var(--world);border:1px solid color-mix(in srgb,var(--world) 45%,transparent);box-shadow:inset -8px -10px 14px #0006,0 0 17px color-mix(in srgb,var(--world) 20%,transparent)}.world-card small{font-size:8px;letter-spacing:.14em;color:var(--world)}.world-card b{font-size:11px;min-height:29px}.world-count{font-size:8px;color:#98aac2}
.adv-route{margin:20px 0;padding:18px;border:1px solid #294869;border-radius:16px;background:linear-gradient(120deg,#0a1d33e8,#0c1026f2),url('../assets/cyber-city.png') center/cover}.route-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.route-title h3{margin:0 0 15px;font-size:17px;color:var(--world)}.route-title span{font-size:11px;color:#90a8c6}.level-nodes{display:grid;grid-template-columns:repeat(10,1fr);gap:10px;position:relative}.level-node{min-height:60px;border:1px solid #36557e;border-radius:12px;background:linear-gradient(150deg,#162c48,#0a152b);color:#c0dbf6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer}.level-node b{font-size:17px}.level-node small{font-size:9px;letter-spacing:.05em;color:#627791}.level-node.completed{border-color:#6ce9c788;background:linear-gradient(135deg,#164b48,#112b3d)}.level-node.completed small{color:#ffd979}.level-node.current{border:2px solid var(--world);box-shadow:0 0 16px color-mix(in srgb,var(--world) 35%,transparent);color:white}.level-node:disabled{opacity:.38;cursor:not-allowed}.level-node.boss{border-color:#bf76ff;background:linear-gradient(130deg,#372254,#141e39)}
.adv-footer{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.save-state{margin-right:auto;color:#8fb6b5;font-size:10px}.adv-button{min-height:44px;padding:11px 20px;border:1px solid #415f87;border-radius:10px;background:#101e36;color:#d4e8ff;cursor:pointer;font-weight:750}.adv-button.primary{border-color:#80f5ff;color:#032134;background:linear-gradient(115deg,#72fff0,#49b9ff);box-shadow:0 0 20px #16b8e02a}.adv-button:hover{filter:brightness(1.15)}
.result-hero{display:flex;align-items:center;justify-content:center;gap:32px;margin:0 0 18px;background:radial-gradient(ellipse,#29509a30,transparent 70%)}.result-cat{width:160px;height:160px;background-image:url('../assets/cat-reactions.png');background-size:200% 200%;border-radius:35px;filter:drop-shadow(0 0 14px #674eff44)}.result-copy{display:flex;flex-direction:column}.result-score{font-size:clamp(32px,5vw,54px);line-height:1.3;color:white}.result-copy>span:not(.adv-kicker){font-size:10px;letter-spacing:.2em;color:#758fb2}.result-copy p{font-size:12px;color:#b2c8e3;max-width:270px;line-height:1.5}
.core-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:10px 0 24px}.core-reward{text-align:center;padding:18px 14px;background:#0b172c;border:1px solid #2a3c57;border-radius:16px;color:#7c91ad}.core-reward.earned{border-color:#c999ed;background:linear-gradient(145deg,#243259,#251338);box-shadow:inset 0 0 28px #6c40ad28;animation:core-arrival .6s ease-out both;animation-delay:var(--delay)}.core-gem{font-size:46px;line-height:1.3;color:#4b5d7c}.earned .core-gem{color:#f6c7ff;text-shadow:0 0 9px #f88eff,0 0 30px #a450ff}.core-reward:nth-child(2).earned .core-gem{color:#90fcff;text-shadow:0 0 22px #4fcfff}.core-reward:nth-child(3).earned .core-gem{color:#ffe098;text-shadow:0 0 22px #ffbc49}.core-reward b{display:block;font-size:11px;letter-spacing:.13em;margin:10px 0}.core-reward.earned b{color:#e5dcfa}.core-reward p{font-size:12px;line-height:1.5;min-height:38px;margin:8px 0 12px}.core-reward small{font-size:8px;letter-spacing:.13em}.earned small{color:#8afadd}.defeat{border-color:#d6759b}.defeat .adv-kicker{color:#f4a2c4}.auto-next{display:block;margin:15px auto 0;color:#8fb4d6;font-size:11px;text-decoration:underline;background:none;border:0;cursor:pointer;padding:8px}@keyframes core-arrival{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
@media(max-width:700px){.adventure-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.adv-header{margin-bottom:15px}.adv-worlds{display:flex;overflow-x:auto;padding:4px 0 10px;scroll-snap-type:x proximity}.world-card{flex:0 0 104px;scroll-snap-align:start}.level-nodes{grid-template-columns:repeat(5,1fr);gap:7px}.adv-route{padding:12px;margin:10px 0 15px}.level-node{min-height:49px}.route-title{align-items:start}.route-title h3{font-size:14px}.route-title span{font-size:9px;white-space:nowrap}.adv-footer .save-state{width:100%;text-align:center;margin:0 0 4px}.adv-footer .adv-button{flex:1;padding:10px;font-size:11px}.core-rewards{gap:7px}.core-reward{padding:12px 5px}.core-reward p{font-size:10px;min-height:62px}.core-reward b{font-size:9px}.core-reward small{font-size:7px;letter-spacing:0}.core-gem{font-size:34px}.result-hero{gap:14px}.result-cat{width:112px;height:112px;flex:none}.result-copy p{font-size:10px}.result-copy .adv-kicker{font-size:8px}.adventure-launch{font-size:9px;padding:6px;min-height:40px}.topbar{gap:5px}.topbar .audio-toggle{max-width:44px;font-size:8px!important}.topbar .eyebrow{font-size:13px}.topbar .stat{min-width:48px}}
@media(prefers-reduced-motion:reduce){.core-reward.earned{animation:none}.world-card{transition:none}}
.adventure-dialog,.adventure-dialog *{box-sizing:border-box}
.adventure-dialog{overflow-x:hidden;scrollbar-color:#34546d #081327}.adv-worlds{scrollbar-width:thin;scrollbar-color:#34546d #081327}.level-node{min-width:0}.level-node small{max-width:100%;font-size:8px;letter-spacing:0}.level-nodes{grid-template-columns:repeat(10,minmax(0,1fr))}@media(max-width:700px){.level-nodes{grid-template-columns:repeat(5,minmax(0,1fr))}.level-node small{font-size:6px}.adv-route{min-width:0}.route-title span{font-size:8px}}

/* ==========================================================
   R16 · ADVENTURE COMPLETO · pantalla de resultado responsive
   Usa el panel suministrado por el usuario como marco, sin texto horneado.
   ========================================================== */
.adventure-dialog.result-mode{
  width:min(94vw,720px);
  max-height:min(96dvh,980px);
  padding:clamp(20px,3vw,34px);
  border:0;
  background:
    url('../assets/adventure/result-panel.png') center/100% 100% no-repeat,
    transparent;
  box-shadow:none;
  overflow:auto;
  scrollbar-width:thin;
}
.adventure-dialog.result-mode::backdrop{background:rgba(0,4,14,.82);backdrop-filter:blur(5px)}
.adventure-dialog.result-mode .adv-header{
  margin:0 auto clamp(12px,2vh,22px);
  padding:clamp(18px,3vw,28px) clamp(18px,4vw,34px) 8px;
  min-height:120px;
  background:transparent;
  border:0;
}
.adventure-dialog.result-mode .adv-header h2{font-size:clamp(24px,5vw,46px);text-shadow:0 0 18px #17eaff80}
.adventure-dialog.result-mode .adv-header p{font-size:clamp(12px,2.2vw,17px)}
.adventure-dialog.result-mode .adv-close{position:absolute;right:6.5%;top:5.8%;z-index:4}
.adventure-dialog.result-mode .result-hero,
.adventure-dialog.result-mode .result-event-strip,
.adventure-dialog.result-mode .result-economy,
.adventure-dialog.result-mode .core-rewards,
.adventure-dialog.result-mode .adv-footer,
.adventure-dialog.result-mode .auto-next{position:relative;z-index:2}
.adventure-dialog.result-mode .result-hero{
  min-height:clamp(180px,28vh,300px);
  display:grid;place-items:center;
  margin:0 7% 8px;
  background:transparent;border:0;box-shadow:none;
}
.adventure-dialog.result-mode .result-cat{display:none}
.adventure-dialog.result-mode .result-copy{text-align:center;max-width:520px}
.adventure-dialog.result-mode .result-score{font-size:clamp(36px,9vw,72px)}
.adventure-dialog.result-mode .core-rewards{
  margin:8px 8% 12px;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1.5vw,12px);
}
.adventure-dialog.result-mode .core-reward{
  min-height:clamp(116px,17vh,160px);
  padding:10px 7px;
  background:linear-gradient(180deg,rgba(2,31,55,.74),rgba(1,11,29,.88));
  border:1px solid #22dfff80;
  border-radius:14px;
}
.adventure-dialog.result-mode .core-gem{font-size:clamp(34px,7vw,58px);line-height:1;color:#1edfff;filter:drop-shadow(0 0 12px #00cfff)}
.adventure-dialog.result-mode .core-reward.earned .core-gem{color:#ffd51f;filter:drop-shadow(0 0 14px #ffab00)}
.adventure-dialog.result-mode .core-reward p{font-size:clamp(9px,1.6vw,12px);line-height:1.22}
.adventure-dialog.result-mode .result-economy{margin:8px 10%;}
.adventure-dialog.result-mode .adv-footer{margin:12px 8% 4%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.adventure-dialog.result-mode .adv-footer .save-state{grid-column:1/-1;text-align:center}
.adventure-dialog.result-mode .auto-next{margin:8px auto 4%;width:min(84%,520px)}
.world-card.locked{filter:saturate(.25) brightness(.62);opacity:.72}
.world-card.locked .world-orb{filter:grayscale(1)}
.boss-tag{display:block;margin-top:3px;font-size:8px;letter-spacing:.12em;color:#ffd65b;font-style:normal;text-shadow:0 0 8px #ffb100}
@media(max-width:560px){
  .adventure-dialog.result-mode{width:96vw;max-height:98dvh;padding:16px 12px}
  .adventure-dialog.result-mode .adv-header{min-height:96px;margin-bottom:4px;padding-top:18px}
  .adventure-dialog.result-mode .result-hero{min-height:145px;margin:0 5% 4px}
  .adventure-dialog.result-mode .core-rewards{margin:4px 5% 8px;gap:5px}
  .adventure-dialog.result-mode .core-reward{min-height:104px;padding:8px 4px}
  .adventure-dialog.result-mode .core-reward b{font-size:10px}
  .adventure-dialog.result-mode .core-reward small{font-size:8px}
  .adventure-dialog.result-mode .adv-footer{margin:8px 5% 3%;grid-template-columns:1fr}
  .adventure-dialog.result-mode .adv-footer .save-state{grid-column:auto}
}
@media(max-height:700px) and (orientation:landscape){
  .adventure-dialog.result-mode{width:min(88vw,860px);max-height:96dvh;padding:12px 22px}
  .adventure-dialog.result-mode .adv-header{min-height:70px;padding:8px 30px 2px;margin-bottom:0}
  .adventure-dialog.result-mode .result-hero{min-height:95px;margin:0 10%}
  .adventure-dialog.result-mode .core-rewards{min-height:92px;margin:4px 10%}
  .adventure-dialog.result-mode .core-reward{min-height:80px}
  .adventure-dialog.result-mode .result-economy{margin:4px 12%}
  .adventure-dialog.result-mode .adv-footer{margin:5px 10% 1%;}
  .adventure-dialog.result-mode .auto-next{margin:4px auto 1%}
}

/* R16 Adventure completo: resultado sobre panel aportado por el usuario. */
.adventure-dialog.result-mode{width:min(94vw,720px);max-height:min(96dvh,980px);padding:clamp(20px,3vw,34px);border:0;background:url('../assets/adventure/result-panel.png') center/100% 100% no-repeat,transparent;box-shadow:none;overflow:auto;scrollbar-width:thin}
.adventure-dialog.result-mode::backdrop{background:rgba(0,4,14,.82);backdrop-filter:blur(5px)}
.adventure-dialog.result-mode .adv-header{margin:0 auto clamp(12px,2vh,22px);padding:clamp(18px,3vw,28px) clamp(18px,4vw,34px) 8px;min-height:120px;background:transparent;border:0}
.adventure-dialog.result-mode .adv-header h2{font-size:clamp(24px,5vw,46px);text-shadow:0 0 18px #17eaff80}
.adventure-dialog.result-mode .adv-header p{font-size:clamp(12px,2.2vw,17px)}
.adventure-dialog.result-mode .adv-close{position:absolute;right:6.5%;top:5.8%;z-index:4}
.adventure-dialog.result-mode .result-hero,.adventure-dialog.result-mode .result-event-strip,.adventure-dialog.result-mode .result-economy,.adventure-dialog.result-mode .core-rewards,.adventure-dialog.result-mode .adv-footer,.adventure-dialog.result-mode .auto-next{position:relative;z-index:2}
.adventure-dialog.result-mode .result-hero{min-height:clamp(180px,28vh,300px);display:grid;place-items:center;margin:0 7% 8px;background:transparent;border:0;box-shadow:none}
.adventure-dialog.result-mode .result-cat{display:none}
.adventure-dialog.result-mode .result-copy{text-align:center;max-width:520px}
.adventure-dialog.result-mode .result-score{font-size:clamp(36px,9vw,72px)}
.adventure-dialog.result-mode .core-rewards{margin:8px 8% 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1.5vw,12px)}
.adventure-dialog.result-mode .core-reward{min-height:clamp(116px,17vh,160px);padding:10px 7px;background:linear-gradient(180deg,rgba(2,31,55,.74),rgba(1,11,29,.88));border:1px solid #22dfff80;border-radius:14px}
.adventure-dialog.result-mode .core-gem{font-size:clamp(34px,7vw,58px);line-height:1;color:#1edfff;filter:drop-shadow(0 0 12px #00cfff)}
.adventure-dialog.result-mode .core-reward.earned .core-gem{color:#ffd51f;filter:drop-shadow(0 0 14px #ffab00)}
.adventure-dialog.result-mode .core-reward p{font-size:clamp(9px,1.6vw,12px);line-height:1.22}
.adventure-dialog.result-mode .result-economy{margin:8px 10%}
.adventure-dialog.result-mode .adv-footer{margin:12px 8% 4%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.adventure-dialog.result-mode .adv-footer .save-state{grid-column:1/-1;text-align:center}
.adventure-dialog.result-mode .auto-next{margin:8px auto 4%;width:min(84%,520px)}
.world-card.locked{filter:saturate(.25) brightness(.62);opacity:.72}
.world-card.locked .world-orb{filter:grayscale(1)}
.boss-tag{display:block;margin-top:3px;font-size:8px;letter-spacing:.12em;color:#ffd65b;font-style:normal;text-shadow:0 0 8px #ffb100}
@media(max-width:560px){.adventure-dialog.result-mode{width:96vw;max-height:98dvh;padding:16px 12px}.adventure-dialog.result-mode .adv-header{min-height:96px;margin-bottom:4px;padding-top:18px}.adventure-dialog.result-mode .result-hero{min-height:145px;margin:0 5% 4px}.adventure-dialog.result-mode .core-rewards{margin:4px 5% 8px;gap:5px}.adventure-dialog.result-mode .core-reward{min-height:104px;padding:8px 4px}.adventure-dialog.result-mode .core-reward b{font-size:10px}.adventure-dialog.result-mode .core-reward small{font-size:8px}.adventure-dialog.result-mode .adv-footer{margin:8px 5% 3%;grid-template-columns:1fr}.adventure-dialog.result-mode .adv-footer .save-state{grid-column:auto}}
@media(max-height:700px) and (orientation:landscape){.adventure-dialog.result-mode{width:min(88vw,860px);max-height:96dvh;padding:12px 22px}.adventure-dialog.result-mode .adv-header{min-height:70px;padding:8px 30px 2px;margin-bottom:0}.adventure-dialog.result-mode .result-hero{min-height:95px;margin:0 10%}.adventure-dialog.result-mode .core-rewards{min-height:92px;margin:4px 10%}.adventure-dialog.result-mode .core-reward{min-height:80px}.adventure-dialog.result-mode .result-economy{margin:4px 12%}.adventure-dialog.result-mode .adv-footer{margin:5px 10% 1%}.adventure-dialog.result-mode .auto-next{margin:4px auto 1%}}
.adventure-dialog.result-mode .core-gem{width:clamp(42px,8vw,70px);height:clamp(42px,8vw,70px);font-size:0;background:url('../assets/adventure/star-empty.png') center/contain no-repeat;filter:drop-shadow(0 0 12px #00cfff)}
.adventure-dialog.result-mode .core-reward.earned .core-gem{background-image:url('../assets/adventure/star-earned.png');filter:drop-shadow(0 0 14px #ffab00)}

/* R21 · Arena 1v1 online. Funcional, sin alterar la identidad visual aprobada. */
.arena-online-panel{display:grid;gap:12px;margin:0 0 20px;padding:18px;border:1px solid #294869;border-radius:16px;background:linear-gradient(145deg,#0a1d33e8,#0c1026f2)}
.arena-online-copy,.arena-status{margin:0;color:#a9bed9;font-size:12px;line-height:1.5}.arena-status{text-align:center;color:#8df7ff;min-height:20px}
.arena-field{display:grid;gap:7px}.arena-input{width:100%;min-height:46px;border:1px solid #365f86;border-radius:10px;background:#071427;color:#eafaff;padding:10px 12px;font:700 16px/1.2 inherit;letter-spacing:.04em;outline:none}.arena-input:focus{border-color:#72fff0;box-shadow:0 0 0 3px #38e5ff20}.arena-input:disabled{opacity:.55}
.arena-separator{text-align:center;color:#69839f;font-size:9px;letter-spacing:.18em;font-weight:900;margin:3px 0}
@media(max-width:700px){.arena-online-panel{padding:13px}.arena-input{min-height:44px;font-size:14px}}
