/* Fogón · Batuta (06): móvil primero, fondo sol. Tokens y componentes base en style.css. */
@import url('./style.css');

html,body{background:var(--sun);color:var(--ink)}
main{position:relative;max-width:560px;margin:auto;padding:24px 22px 40px}

/* Navegación de producto */
.product-nav{display:flex;flex-wrap:wrap;align-items:center;gap:20px;max-width:560px;margin:0 auto;padding:18px 22px 0;font-weight:800}
.product-nav a{color:var(--ink);text-decoration:none}
.product-nav a:hover{text-decoration:underline}
.product-nav .home{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:20px;letter-spacing:-.03em}
.product-nav button{margin-left:auto;min-height:44px;padding:8px 16px;font-size:14px;background:transparent;white-space:nowrap}
.product-nav .language-switch{margin-left:0}
.logo{display:grid;grid-template-columns:10px 10px;gap:3px}
.logo i{width:10px;height:10px;border-radius:50%;background:var(--tomato)}
.logo i:nth-child(2){background:var(--white)}.logo i:nth-child(3){background:var(--blue)}.logo i:nth-child(4){background:var(--hotpink)}

/* Cabecera: "batuta" + insignia de estado */
header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.wordmark{font-family:var(--font-display);font-weight:800;font-size:34px;letter-spacing:-.04em;line-height:1;display:flex;align-items:baseline;gap:12px}
.label{font-family:var(--font-body);font-size:11px;font-weight:900;letter-spacing:.1em}
.badge{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:var(--lime);border-radius:var(--r-pill);padding:9px 16px;font-weight:900;font-size:14px;white-space:nowrap}
.badge::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--lime)}

.intro{margin:22px 0 18px}
h1{font-size:clamp(40px,11vw,56px);letter-spacing:-.045em;line-height:.95;max-width:9.5em}
.intro p{margin-top:10px;font-size:15px;font-weight:700;line-height:1.4}
.intro .hand{font-size:24px;transform:none;margin-bottom:4px}

/* Superficie de juego */
.surface{position:relative;display:flex;flex-direction:column;gap:14px}
.surface>.ribbon{z-index:0}
.surface>:not(.ribbon){position:relative;z-index:1}
.stage-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.palette-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chips{flex:1;min-width:0}
.chips button{background:rgba(255,255,255,.6);color:var(--ink)}
.chips button[aria-checked=true]{background:var(--ink);color:var(--white)}
#calibrate{min-height:44px;padding:8px 16px;font-size:14px;border-width:2px}

/* Brújula: anillo punteado, centro tinta y 8 pastillas de colores */
.compass{position:relative;aspect-ratio:1;width:100%;max-width:400px;margin:6px auto 0}
.orbit{position:absolute;border-radius:50%;pointer-events:none}
.orbit.outer{inset:9.3%;border:3px dashed rgba(27,20,51,.35)}
.orbit.inner{display:none}
.hub{position:absolute;z-index:4;inset:25%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;border-radius:50%;background:var(--ink);color:var(--white);padding:10px;pointer-events:none}
#hubLabel{font-weight:900;font-size:11px;letter-spacing:.1em;color:var(--sun)}
#lastInstrument{font-family:var(--font-display);font-weight:800;font-size:clamp(20px,6.5vw,30px);letter-spacing:-.03em;line-height:1.05}
#lastNotes{font-size:13px;font-weight:700;color:#C9C2DE;line-height:1.3}
.trail{position:absolute;left:50%;top:50%;z-index:3;width:12px;height:12px;border-radius:50%;background:var(--tomato);border:2px solid var(--white);transform:translate(-50%,-50%);pointer-events:none;transition:left .08s,top .08s}
.direction{--pad:var(--white);--pad-ink:var(--ink);position:absolute;z-index:2;transform:translate(-50%,-50%);width:22.7%;height:22.7%;min-height:0;padding:4px;border:0;border-radius:50%;background:var(--pad);color:var(--pad-ink);display:grid;place-items:center;text-align:center;box-shadow:0 4px 0 rgba(27,20,51,.25);transition:transform var(--t-fast),box-shadow var(--t-fast),opacity var(--t-fast)}
.direction:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.05)}
.direction .arrow,.direction .key{display:none}
.direction strong{font-weight:900;font-size:clamp(11px,3.1vw,14px);line-height:1.05;max-width:100%;overflow-wrap:anywhere;hyphens:auto}
.direction:nth-child(1){--pad:var(--tomato)}
.direction:nth-child(2){--pad:var(--blue);--pad-ink:var(--white)}
.direction:nth-child(3){--pad:var(--hotpink)}
.direction:nth-child(4){--pad:var(--green)}
.direction:nth-child(5){--pad:var(--white)}
.direction:nth-child(6){--pad:var(--ink);--pad-ink:var(--sun)}
.direction:nth-child(7){--pad:var(--cyan)}
.direction:nth-child(8){--pad:var(--lime)}
.direction:nth-child(6){--focus:var(--white)}
.direction.target{box-shadow:0 0 0 4px var(--white),0 4px 0 rgba(27,20,51,.25)}
.direction.hit{transform:translate(-50%,-50%) scale(1.12);box-shadow:0 0 0 6px var(--white),0 0 0 10px var(--ink)}
.direction.loading{opacity:.45}

/* Energía */
.energy{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border-radius:20px;padding:12px 14px}
.energy>span{font-weight:900;font-size:13px;letter-spacing:.06em}
.energy-track{flex:1;height:12px;border-radius:var(--r-pill);background:rgba(27,20,51,.15);overflow:hidden}
.energy-track i{display:block;height:100%;width:0;border-radius:var(--r-pill);background:var(--tomato);transition:width .4s}
.calibration-track{height:10px;max-width:220px;width:100%;margin:0 auto;border-radius:var(--r-pill);background:rgba(27,20,51,.15);overflow:hidden}
.calibration-track>div{height:100%;width:0;background:var(--ink);transition:width .08s}
.session-status{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:40px;font-size:14px;font-weight:800;text-align:center}
#loadStatus{font-size:13px;font-weight:700;color:var(--muted-2)}
#start{width:100%;min-height:64px;padding:20px;font-size:19px;background:var(--ink);color:var(--white);border:0;box-shadow:0 5px 0 var(--tomato)}
#start:hover:not(:disabled){box-shadow:0 7px 0 var(--tomato)}
.start-hint{font-size:13px;font-weight:800;text-align:center}

/* Error y ayuda de sensores */
.error{margin-top:18px;background:var(--white);border:3px solid var(--tomato);border-radius:24px;padding:16px 18px;font-size:15px}
.error #errorMessage{font-weight:900}
.error #sensorHelp p{margin-top:12px;line-height:1.5}
.help-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.help-actions button{font-size:15px;min-height:44px;padding:8px 16px}
#copyStatus{display:block;font-size:13px;margin-top:10px;overflow-wrap:anywhere}

/* Ajustes en tarjetas blancas, bajo la línea de flotación */
.settings{display:block;margin-top:36px;background:var(--white);border-radius:var(--r-card);padding:24px 22px}
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:18px}
.section-heading h2{font-size:26px;letter-spacing:-.03em}
.section-heading span{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--muted)}
.setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
.setting-grid label{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-weight:900;font-size:15px}
.setting-grid select{width:100%;font-size:14px;padding:10px 12px}
.range{display:flex;gap:10px;align-items:center;height:48px}
output{min-width:42px;font-weight:900;font-size:14px;text-align:right}
.check{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;padding-top:18px;border-top:2px dashed var(--line-soft);font-weight:900;font-size:15px}
.check input{order:2}
.instruments{margin-top:16px;background:var(--white);border-radius:var(--r-card);padding:8px 22px}
.instruments details{margin:0}
summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;cursor:pointer;font-weight:800;font-size:16px}
summary span{font-size:13px;font-weight:900;color:var(--muted)}
details>p{font-size:14px;margin:4px 0 16px;color:var(--muted-2)}
#assignments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:18px}
#assignments label{display:flex;flex-direction:column;gap:8px;font-weight:800;font-size:14px}
#assignments select{width:100%;font-size:13px;padding:9px 10px}
footer{margin-top:24px;font-size:14px;line-height:1.55}
footer p{margin-bottom:12px}
footer details{margin-top:8px}
footer summary{font-size:15px;min-height:44px}
footer a{font-weight:800}

body.compact .intro,body.compact footer,body.compact .settings,body.compact .instruments{display:none}

@media(min-width:700px){
  main{padding-top:32px}
  .compass{max-width:420px}
}
@media(max-width:380px){
  main{padding:16px 14px 30px}
  .label{display:none}
  .product-nav{gap:10px;padding:14px 14px 0;font-size:14px}
  .product-nav button{font-size:12px;padding:6px 10px}
  .setting-grid{grid-template-columns:1fr}
}
@media(max-width:500px){.label{display:none}.product-nav{gap:12px}.product-nav a:not(.home){display:none}.product-nav .home{font-size:18px}.product-nav button{padding:8px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){
  .direction.hit,.direction:hover:not(:disabled){transform:translate(-50%,-50%)}
}

.support{margin-top:16px;background:var(--white);border-radius:var(--r-card);padding:18px 22px;display:grid;gap:12px;justify-items:start}
.support p{margin:0;font-weight:700;line-height:1.5}
.support strong{color:var(--tomato-text)}
body.compact .support{display:none}
