/* ¡Vamos! – Styles nach Styleguide v3 (Nachtblau + Orange) */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/roboto-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 900; font-display: swap; src: url(../assets/fonts/roboto-latin-900-normal.woff2) format('woff2'); }
:root {
  --bg: #020124;
  --s1: #0B1A6E;
  --s2: #18288A;
  --ln: #2B3DA3;
  --o: #FA6D1E;
  --cr: #C2185B;
  --t: #FFFFFF;
  --g: #A9B4E8;
  --gr: #3DDC84;
  --rd: #FF6B6B;
  --slant: polygon(0 12%, 100% 0, 97% 100%, 2% 90%);
  --slant-btn: polygon(0 0, 100% 6%, 98% 100%, 1% 92%);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--t); font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; }
a { color: var(--o); }
button, input { font-family: inherit; }
button { -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 3px solid var(--t); outline-offset: 2px; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
#screen { flex: 1; padding-bottom: 96px; }

/* Header */
.hdr { padding: 14px 20px 8px; display: flex; flex-direction: column; gap: 8px; }
.hdr-row { display: flex; align-items: center; gap: 10px; }
.hdr-logo { width: 56px; height: 50px; object-fit: contain; }
.hdr-time { flex: 1; display: flex; flex-direction: column; }
.hdr-date { font-size: 12px; color: var(--g); }
.hdr-clock { font-weight: 700; font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.coin { display: flex; align-items: center; gap: 6px; background: var(--s1); border: 1px solid var(--ln); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 15px; color: var(--t); }
.coin i { width: 16px; height: 16px; border-radius: 50%; background: var(--o); display: inline-block; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slant { align-self: flex-start; background: var(--o); color: var(--bg); padding: 9px 26px 11px 18px; clip-path: var(--slant); }
.slant h1 { margin: 0; font-weight: 900; letter-spacing: -.5px; font-size: 32px; line-height: 1; }
.back { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; color: var(--g); text-decoration: none; font-size: 14px; font-weight: 700; }

.content { padding: 6px 20px 16px; display: flex; flex-direction: column; gap: 16px; }

/* Nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--s1); border-top: 1px solid var(--ln); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
.nav-in { display: flex; width: 100%; max-width: 480px; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; border-top: 3px solid transparent; color: var(--g); text-decoration: none; font-size: 11px; font-weight: 500; }
.nav a.on { border-top-color: var(--o); color: var(--o); font-weight: 700; }

/* Typo helpers */
.h { font-weight: 900; letter-spacing: -.5px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.muted { color: var(--g); }
.or { color: var(--o); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }

/* Cards */
.card { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; }
.pad { padding: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bar { height: 6px; background: var(--s2); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--o); transition: width .3s; }

/* Buttons */
.btn { min-height: 56px; border: none; background: var(--o); color: var(--bg); clip-path: var(--slant-btn); font-weight: 900; font-size: 18px; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; width: 100%; padding: 0 12px; }
.btn[disabled], .btn.off { background: var(--s2); color: var(--g); cursor: default; }
.btn2 { min-height: 52px; border: 2px solid var(--t); border-radius: 12px; background: transparent; color: var(--t); font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; padding: 0 12px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; background: transparent; color: var(--t); border: 2px solid var(--ln); }
.chip.on { background: var(--o); color: var(--bg); border-color: var(--o); }
.icbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ln); background: var(--s1); color: var(--t); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* Quiz */
.opt { min-height: 56px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: 12px; font-size: 18px; font-weight: 700; color: var(--t); cursor: pointer; text-align: left; background: var(--s1); border: 2px solid var(--ln); }
.opt.ok { border-color: var(--gr); }
.opt.bad { border-color: var(--rd); }
.opt .m { font-size: 13px; }
.opt.ok .m { color: var(--gr); }
.opt.bad .m { color: var(--rd); }
.combo { background: var(--cr); color: var(--t); padding: 5px 14px 6px 10px; clip-path: var(--slant); font-weight: 900; font-size: 14px; }
.inp { height: 52px; border-radius: 12px; border: 2px solid var(--ln); background: var(--bg); color: var(--t); padding: 0 14px; font-size: 18px; font-weight: 700; width: 100%; }
.inp.small { height: 40px; font-size: 14px; border-width: 1px; border-radius: 8px; padding: 0 8px; }
.inp.unsure { border: 2px solid var(--o); }
.acc { display: flex; gap: 6px; flex-wrap: wrap; }
.acc button { min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--ln); background: var(--s1); color: var(--t); font-size: 17px; font-weight: 700; cursor: pointer; }

/* José */
.jose { display: flex; align-items: flex-end; gap: 12px; }
.jose img { width: 64px; height: auto; flex-shrink: 0; }
.bubble { position: relative; flex: 1; background: var(--t); color: var(--bg); border-radius: 16px; padding: 10px 14px; box-shadow: inset 0 -3px 0 var(--o); }
.bubble b { display: block; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--cr); }
.bubble span { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; }
.bubble { padding-right: 46px; }
.say-btn { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #F1F2FA; color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.say-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bubble::after { content: ""; position: absolute; left: -9px; bottom: 14px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 10px solid var(--t); }
.jose-bob { animation: joseBob 2.4s ease-in-out infinite; }
@keyframes joseBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.cheer { animation: pop .6s ease-out both; }
@keyframes pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); opacity: 1; } 80% { transform: scale(.95) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }

/* Overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(2, 1, 36, .92); display: flex; justify-content: center; overflow-y: auto; }
.overlay-in { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; padding: 70px 22px 30px; position: relative; }
.big-bubble { position: relative; width: 100%; background: var(--t); color: var(--bg); border-radius: 22px; padding: 18px; min-height: 120px; }
.big-bubble b { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cr); }
.big-bubble p { margin: 6px 0 0; font-size: 18px; font-weight: 700; line-height: 1.4; white-space: pre-line; }
.big-bubble::after { content: ""; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 18px solid var(--t); }
.fab-jose { position: fixed; right: 16px; bottom: 96px; z-index: 15; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--o); background: var(--t); padding: 0; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fab-jose img { width: 58px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 60; background: var(--t); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: 90vw; text-align: center; animation: pop .4s ease-out both; }

/* Map */
.map { position: relative; }
.map img.base { width: 100%; height: auto; display: block; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pin .c { width: 52px; height: 52px; border-radius: 50%; background: var(--t); border: 3px solid var(--o); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pin .c img { width: 46px; }
.pin .tip { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--o); margin-top: -2px; }
.boss-tag { position: absolute; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.boss-tag span:first-child { align-self: flex-start; background: var(--cr); color: var(--t); padding: 3px 12px 4px 8px; clip-path: var(--slant); font-weight: 900; font-size: 12px; letter-spacing: 1px; }
.boss-tag span:last-child { font-weight: 900; font-size: 13px; text-shadow: 0 0 4px var(--bg), 0 0 4px var(--bg); }

/* Games tiles */
.tile { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--t); text-decoration: none; transition: background-color .15s, transform .15s; }
.tile .ic { color: var(--o); display: flex; }
.tile:hover, .tile:active, .tile:focus-visible { background: var(--o); border-color: var(--o); color: var(--bg); transform: translateY(-2px); }
.tile:hover .ic, .tile:hover .muted, .tile:active .ic, .tile:active .muted, .tile:focus-visible .ic, .tile:focus-visible .muted { color: var(--bg); }

/* Cards collection */
.scards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; padding-right: 20px; }
.scard { flex: 0 0 132px; height: 190px; border-radius: 14px 14px 40px 40px; position: relative; }
.card-back { width: 132px; height: 190px; border-radius: 14px 14px 40px 40px; border: 3px solid var(--o); background: var(--bg); color: var(--o); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0; animation: cardPulse 1.6s ease-in-out infinite; }
@keyframes cardPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250,109,30,.5); } 50% { box-shadow: 0 0 18px 4px rgba(250,109,30,.85); } }
.card-reveal { animation: cardFlip .75s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes cardFlip { 0% { transform: perspective(600px) rotateY(90deg) scale(.8); } 60% { transform: perspective(600px) rotateY(-12deg) scale(1.08); } 100% { transform: perspective(600px) rotateY(0) scale(1); } }
.card-burst { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(250,109,30,.8) 0%, rgba(250,109,30,0) 65%); animation: burst .9s ease-out both; pointer-events: none; }
@keyframes burst { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.holo { position: relative; overflow: hidden; }
.holo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); animation: holo 2.6s ease-in-out .7s infinite; pointer-events: none; }
@keyframes holo { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
.spark { position: absolute; width: 9px; height: 9px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.3); opacity: .2; } 50% { transform: scale(1.3); opacity: 1; } }

/* Wheel */
.wheel-g { transition: transform 3.2s cubic-bezier(.17,.67,.21,1); transform-origin: 0 0; }

/* Details/accordion */
details.city { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; }
details.city[open] { border-width: 2px; }
details.city summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; cursor: pointer; }
details.city summary::-webkit-details-marker { display: none; }
details.city .chev { transition: transform .2s; display: flex; }
details.city[open] .chev { transform: rotate(180deg); }
.num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Splash */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; transition: opacity .45s, transform .45s; cursor: pointer; }
#splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(250,109,30,.35) 0%, rgba(250,109,30,0) 70%); top: 50%; left: 50%; transform: translate(-50%, -62%); animation: spGlow 2.2s ease-in-out infinite; }
@keyframes spGlow { 0%, 100% { transform: translate(-50%, -62%) scale(.9); } 50% { transform: translate(-50%, -62%) scale(1.08); } }
.sp-logo { position: relative; width: min(72vw, 300px); height: auto; animation: spPop .8s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes spPop { 0% { transform: scale(.2) rotate(-14deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.sp-title { position: relative; background: var(--o); color: var(--bg); padding: 10px 34px 14px 22px; clip-path: var(--slant); animation: spIn .5s .5s ease-out both; }
.sp-title span { font-weight: 900; font-size: 36px; letter-spacing: -1px; line-height: 1; display: block; }
@keyframes spIn { 0% { transform: translateY(24px) skewX(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.sp-sub { position: relative; margin: 0; color: var(--g); font-weight: 700; font-size: 16px; animation: spIn .5s .8s ease-out both; }
.sp-bar { position: relative; width: 160px; height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; margin-top: 10px; }
.sp-bar div { height: 100%; width: 0; background: var(--o); animation: spLoad 1.9s .2s ease-in-out forwards; }
@keyframes spLoad { to { width: 100%; } }
