/* =====================================================================
   Base: reset, tipografía y utilidades
   ===================================================================== */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg) var(--grain);color:var(--text);font:14px/1.5 var(--f-ui);-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01"}
[hidden]{display:none !important}
a{color:var(--accent-deep);text-underline-offset:2px}
button{font:inherit;color:inherit}
input,select,textarea{font:inherit;color:var(--text)}
::selection{background:var(--copper-3);color:var(--ink-0)}
h1,h2,h3,h4{color:var(--text)}

/* utilidades */
.muted{color:var(--muted)}
.spacer{flex:1}
.mono{font-family:var(--f-mono)}
.screen{position:fixed;inset:0;display:flex;flex-direction:column}
.hide-sm{}
.mobile-only{display:none;margin-bottom:24px}
kbd,.statusbar kbd,.hint kbd,.note kbd{background:var(--surface);border:1px solid var(--line-2);border-bottom-width:2px;border-radius:4px;padding:0 5px;font:500 11px var(--f-mono);color:var(--text)}

/* barras de desplazamiento finas, color grafito */
*{scrollbar-width:thin;scrollbar-color:var(--graphite-2) transparent}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:var(--graphite-2);border-radius:9px;border:2px solid var(--surface)}
::-webkit-scrollbar-track{background:transparent}

@media (prefers-reduced-motion: reduce){
  *,*:before,*:after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
}

/* ---------- esquinas biseladas (sello de la marca) ----------
   Todo border-radius se dibuja como un corte a 45° (corner-shape: bevel): borde y sombra siguen el corte.
   Navegadores sin soporte: esquinas rectas, nunca redondeadas. */
*,*::before,*::after{corner-shape:bevel}
@supports not (corner-shape: bevel){ *,*::before,*::after{border-radius:0 !important} }
