@font-face{font-family:'Neue Frutiger';src:url(/assets/fonts/NeueFrutiger-Light.woff) format('woff');font-weight:300;font-display:swap}
@font-face{font-family:'Neue Frutiger';src:url(/assets/fonts/NeueFrutiger-Regular.woff) format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'Neue Frutiger';src:url(/assets/fonts/NeueFrutiger-Bold.woff) format('woff');font-weight:700;font-display:swap}
html,body{margin:0;height:100%;background:#07090c;overflow:hidden;overscroll-behavior:none}
#bg{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
#stage{position:fixed;inset:0;display:grid;place-items:center;padding:2vmin}
#frame{position:relative;height:calc(100vh - 4vmin);height:calc(100dvh - 4vmin);width:min(100%,calc((100vh - 4vmin) * 9 / 16));aspect-ratio:9/16;background:#000;border:4px solid #e6f0ff;box-shadow:0 0 0 4px #07090c,0 0 0 8px #35e0ff,0 12px 0 8px rgba(0,0,0,.5)}
#game{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
#fs{position:fixed;right:10px;bottom:10px;width:40px;height:40px;font:20px/1 monospace;color:#e6f0ff;background:rgba(7,9,12,.8);border:3px solid #35e0ff;cursor:pointer}
#fs:hover,#fs:focus-visible{background:#35e0ff;color:#07090c;outline:none}
@media (max-width:700px),(max-height:480px){#stage{padding:0}#frame{width:100%;height:100%;aspect-ratio:auto;border:0;box-shadow:none}}

/* ===== AdSense a los costados (solo pantallas anchas y con ads.json configurado) ===== */
.adcol{display:none}
@media (min-aspect-ratio:4/3) and (min-height:600px){
  body.ads-on .adcol{display:block;position:fixed;top:50%;width:160px;height:600px;margin-top:-300px;z-index:2;overflow:hidden}
  body.ads-on{--fw:calc((100vh - 4vmin) * 9 / 16)}
  body.ads-on .adl{left:calc(50% - var(--fw) / 2 - 184px)}
  body.ads-on .adr{left:calc(50% + var(--fw) / 2 + 24px)}   /* 24px de separación: evita clics accidentales */
}

.adtest{width:160px;height:600px;display:grid;place-items:center;text-align:center;padding:12px;box-sizing:border-box;font:700 13px/1.4 "Neue Frutiger",system-ui,sans-serif;color:#9fb8b3;background:repeating-linear-gradient(135deg,rgba(220,249,244,.05) 0 12px,rgba(220,249,244,.1) 12px 24px);border:1px dashed rgba(220,249,244,.35)}

/* ===== Acerca del juego + consentimiento de anuncios ===== */
#abt{position:fixed;right:10px;top:10px;z-index:5;width:40px;height:40px;font:700 20px/1 Georgia,serif;font-style:italic;color:#e6f0ff;background:rgba(7,9,12,.8);border:3px solid #35e0ff;cursor:pointer}
#abt:hover,#abt:focus-visible{background:#35e0ff;color:#07090c;outline:none}
#about{position:fixed;inset:0;z-index:50;background:rgba(7,9,12,.94);overflow:auto;padding:24px 16px;color:#dcf9f4;font:300 16px/1.65 "Neue Frutiger",system-ui,-apple-system,"Segoe UI",sans-serif}
#about[hidden],#consent[hidden],#adprefs[hidden]{display:none}
.about-in{max-width:560px;margin:4vh auto;position:relative}
.about-x{position:absolute;right:0;top:-6px;width:40px;height:40px;font-size:26px;line-height:1;color:#dcf9f4;background:transparent;border:1px solid rgba(220,249,244,.3);border-radius:50%;cursor:pointer}
.about-x:hover,.about-x:focus-visible{background:#dcf9f4;color:#07090c;outline:none}
#about h1{font-size:1.9rem;line-height:1.2;margin:0 48px .6rem 0}
#about h2{font-size:1rem;margin:1.3rem 0 .3rem;color:#7cc4ff}
#about p{margin:0 0 .8rem;color:#bfd6d1}
#about ul{margin:0 0 .8rem;padding-left:1.2rem;color:#bfd6d1}
#about a{color:#7cc4ff}
.stores{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.2rem 0}
.store{font-weight:700;font-size:.9rem;padding:.55em 1.2em;border-radius:999px;border:1px solid rgba(220,249,244,.35);color:#dcf9f4!important;text-decoration:none}
a.store{background:#dcf9f4;color:#07090c!important}
.store.soon{opacity:.7}
.more{margin-top:1.4rem!important;font-size:.9rem}
#adprefs{font:inherit;color:#7cc4ff;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
#consent{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;padding:14px 16px;background:rgba(7,9,12,.96);border-top:1px solid rgba(220,249,244,.25);color:#dcf9f4;font:300 14px/1.5 "Neue Frutiger",system-ui,-apple-system,"Segoe UI",sans-serif}
#consent p{margin:0;max-width:560px}
#consent div{display:flex;gap:8px;flex-wrap:wrap}
#consent button{font:700 13px "Neue Frutiger",system-ui,sans-serif;padding:.6em 1.2em;border-radius:999px;border:1px solid #dcf9f4;cursor:pointer;color:#dcf9f4;background:transparent}
#consent button[data-c=all]{background:#dcf9f4;color:#07090c}
