/* SMART FIGHT v2 · identidad ICHIBAN + gráficas de referencia + operación funcional. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/barlow-condensed-latin-800-italic.woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
:root {
  --bg: #f3f1e9;
  --panel: #fffefa;
  --soft: #eae8df;
  --line: #d8d5c9;
  --ink: #171816;
  --muted: #4f524c;
  --third: #62655d;
  --side: #10110f;
  --side2: #1c1e1b;
  --side-tx: #faf9f2;
  --side-sub: #b8bab0;
  --hero: #171a17;
  --hero-tx: #fafaf3;
  --hero-sub: #c9cec3;
  --brand-light: #edc443;
  --kanji: "Yu Mincho", "MS Mincho", "Noto Serif JP", serif;
  --acento: #876600;
  --acento-tx: #fff;
  --acento-2: #876600;
  --destello: #f8e8a8;
  --tinta: rgba(83, 75, 40, 0.065);
  --texture: rgba(70, 66, 42, 0.025);
  --bjj: #357fe6;
  --mt: #d65a27;
  --judo: #178d68;
  --s4: #aa7600;
  --s5: #a254ba;
  --seq-0: #e8e8df;
  --seq-1: #d1e1f5;
  --seq-2: #9abbeb;
  --seq-3: #5e94d8;
  --seq-4: #3873bb;
  --seq-5: #1f4c8a;
  --sup-1: var(--panel);
  --sup-3: var(--soft);
  --tx-1: var(--ink);
  --tx-2: var(--muted);
  --tx-3: var(--third);
  --borde-fuerte: var(--line);
  --rejilla: var(--line);
  --f-texto: var(--body);
}
:root[data-mode="oscuro"] {
  --bg: #0b0d0c;
  --panel: #141714;
  --soft: #20241f;
  --line: #30352e;
  --ink: #f5f6ef;
  --muted: #c2c7bc;
  --third: #a9b09f;
  --tinta: rgba(210, 221, 190, 0.045);
  --texture: rgba(205, 219, 188, 0.018);
  --bjj: #5b98ff;
  --mt: #f48c4e;
  --judo: #37c495;
  --s4: #e8bc4a;
  --s5: #cd8de2;
  --seq-0: #222a25;
  --seq-1: #1b3658;
  --seq-2: #254e7d;
  --seq-3: #3776b9;
  --seq-4: #5b9cda;
  --seq-5: #acd4f5;
}
:root[data-theme="ICHIBAN"] {
  --acento: #856300;
  --acento-tx: #fff;
  --acento-2: #856300;
  --destello: #f9ebad;
  --brand-light: #edc443;
}
:root[data-theme="ICHIBAN"][data-mode="oscuro"] {
  --acento: #e8be36;
  --acento-tx: #18190f;
  --acento-2: #e8be36;
  --destello: #3a341f;
  --brand-light: #edc443;
}
body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    var(--texture) 3px 4px
  );
  font-size: 16px;
}
.workspace {
  position: relative;
  isolation: isolate;
}
.main {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: auto;
  padding: 25px 30px 60px;
}
.dojo-art {
  position: fixed;
  right: -82px;
  bottom: -100px;
  width: 630px;
  height: 630px;
  color: var(--tinta);
  z-index: -1;
  pointer-events: none;
}
.dojo-art svg {
  width: 100%;
  height: 100%;
}
.dojo-art > span {
  position: absolute;
  right: 175px;
  top: 160px;
  writing-mode: vertical-rl;
  font: 145px/1 var(--kanji);
  letter-spacing: 10px;
}
.sidebar {
  background:
    linear-gradient(145deg, rgba(232, 190, 54, 0.035), transparent 37%),
    var(--side);
  padding-top: 23px;
}
.sidebar:after {
  content: "武道";
  position: absolute;
  bottom: 140px;
  right: 12px;
  writing-mode: vertical-rl;
  font: 64px var(--kanji);
  color: #ffffff06;
  pointer-events: none;
}
.product-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 10px 21px;
  text-decoration: none;
}
.product-brand img {
  width: 200px;
  max-width: 100%;
  height: auto;
}
.product-brand > span {
  color: var(--side-sub);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin: 1px 0 0 54px;
}
.academy {
  margin: 0 0 12px;
  padding: 14px 11px;
  border: 1px solid #ffffff15;
  border-radius: 11px;
  background: linear-gradient(120deg, #ffffff08, transparent), var(--side2);
  gap: 12px;
}
.academy strong {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
}
.academy small {
  font-size: 11px;
  letter-spacing: 0.15em;
  margin-top: 5px;
}
.sitecard {
  border: 0;
  background: none;
  padding: 0 12px 10px;
  font-size: 13px;
}
.sidebar nav h3 {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.sidebar nav a {
  font-size: 15px;
  min-height: 44px;
}
.sidebar footer > img {
  display: none;
}
.topbar {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px);
  border-color: var(--line);
  z-index: 20;
}
.themebutton .sample {
  background: linear-gradient(
    90deg,
    var(--acento) 0 33%,
    #fff 33% 66%,
    #111 66%
  );
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.crumb {
  font-size: 13px;
  margin-bottom: 22px;
}
.hero {
  background: linear-gradient(110deg, #181c18 45%, #20251d);
  min-height: 265px;
  border-color: #e8be3626;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 12px 38px #00000012;
}
.hero:after {
  height: 3px;
  width: 140px;
  background: var(--brand-light);
}
.hero-copy {
  max-width: 73%;
  padding: 28px 30px 28px;
}
.hero-date {
  font-size: 13px;
  color: #ced3c6;
}
.hero .title-signature {
  margin: 16px 0 12px;
  gap: 15px;
  align-items: center;
}
.title-signature {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.title-signature > div {
  min-width: 0;
}
.hanko {
  display: grid;
  place-items: center;
  flex: none;
  width: 51px;
  height: 55px;
  border-radius: 7px;
  writing-mode: vertical-rl;
  font: 700 23px/1.05 var(--kanji);
  letter-spacing: 1px;
  background: var(--acento);
  color: var(--acento-tx);
  box-shadow:
    inset 0 0 0 2px currentColor,
    inset 0 0 0 5px var(--acento),
    0 6px 14px #00000020;
  transform: rotate(-5deg);
}
.hero .hanko {
  background: var(--brand-light);
  color: #171911;
  box-shadow:
    inset 0 0 0 2px #faf0bd,
    inset 0 0 0 5px var(--brand-light),
    0 6px 14px #00000020;
}
.hero h1,
.pagehead h1 {
  font: italic 800 clamp(32px, 3vw, 45px)/1.03 var(--sports);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
}
.hero h1 {
  color: var(--hero-tx);
  max-width: 600px;
}
.brush-line {
  display: block;
  width: 165px;
  height: 9px;
  margin-top: 10px;
  background: var(--acento);
  clip-path: polygon(
    0 48%,
    12% 23%,
    47% 12%,
    76% 24%,
    100% 50%,
    85% 74%,
    48% 94%,
    3% 88%
  );
}
.hero .brush-line {
  background: var(--brand-light);
  width: 220px;
}
.hero p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 20px;
}
.hero-art {
  inset: 0 0 0 73%;
  opacity: 1;
  display: grid;
  mask-image: none;
}
.performance-mark {
  width: 225px;
}
.performance-mark:before {
  background: #e8be3609;
}
.performance-mark:after {
  background: #e8be3608;
  border-left-color: #e8be3620;
}
.performance-mark img {
  box-shadow:
    0 0 0 1px #f5e7ac,
    0 15px 35px #0009;
}
.combat-belt {
  background: #0d100e;
  border-color: #454b40;
}
.combat-belt.belt-back {
  background: #191d19;
}
.combat-belt b {
  border-inline: 7px solid #121510;
  background: repeating-linear-gradient(
    90deg,
    #121510 0 10px,
    #eeeedd 10px 15px
  );
}
.pagehead {
  margin: 7px 0 25px;
}
.pagehead p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 840px;
}
.sectionhead h2 {
  font: 700 25px var(--sports);
  letter-spacing: 0.2px;
}
.stats {
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  position: relative;
  min-height: 180px;
  padding: 21px;
  background: linear-gradient(145deg, #ffffff03, transparent 65%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 8px 16px #00000008;
  overflow: hidden;
}
.stat:first-child {
  border-color: color-mix(in srgb, var(--acento) 38%, var(--line));
}
.stat:first-child:before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--acento) 0 73%,
    #151814 73% 82%,
    #faf8ed 82% 83%,
    #151814 83% 85%,
    #faf8ed 85% 86%,
    #151814 86% 88%,
    #faf8ed 88% 89%,
    #151814 89%
  );
}
.stat-top {
  font-size: 14px;
  gap: 8px;
  align-items: center;
}
.stat-top > i {
  color: var(--acento);
  background: color-mix(in srgb, var(--acento) 12%, var(--panel));
  width: 38px;
  height: 38px;
  box-shadow: inset 0 1px #ffffff0b;
}
.stat-top i svg {
  width: 20px;
  height: 20px;
}
.stat-number {
  font: italic 800 clamp(34px, 3vw, 46px)/1.08 var(--sports);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 12px;
  white-space: nowrap;
}
.stat-foot {
  font-size: 14px;
  line-height: 1.5;
  min-height: 26px;
  display: block;
}
.stat-foot .chip {
  font-size: 13px;
}
.spark {
  display: inline-block;
  color: var(--acento);
  width: 100px;
  max-width: 40%;
  height: auto;
  flex-shrink: 0;
}
.spark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.grid {
  gap: 18px;
}
[data-view="panel"] .main > .grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
[data-view="panel"] .main > .grid > .card {
  grid-column: span 6;
}
[data-view="panel"] .main > .grid > .card:nth-child(2),
[data-view="panel"] .main > .grid > .card:nth-child(3) {
  grid-column: span 3;
}
.card {
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px #ffffff06,
    0 10px 26px #00000006;
  padding: 21px;
  min-width: 0;
}
.cardhead {
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.cardhead h2 {
  font: 700 23px/1.15 var(--sports);
  letter-spacing: 0.1px;
}
.cardhead small {
  font-size: 14px;
  margin-top: 5px;
  line-height: 1.4;
}
.cardhead select {
  font-size: 14px;
  min-height: 36px;
  max-width: 130px;
}
.cardhead .textlink {
  font-size: 14px;
  white-space: nowrap;
}
.btn.primary {
  box-shadow:
    inset 0 1px #ffffff40,
    0 4px 12px color-mix(in srgb, var(--acento) 17%, transparent);
}
.btn.primary:hover {
  box-shadow:
    inset 0 1px #ffffff70,
    0 6px 20px color-mix(in srgb, var(--acento) 29%, transparent);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}
.chip {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.3;
  flex-shrink: 0;
}
.score-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
}
.score-row .chip {
  font-size: 12px;
  max-width: 120px;
}
.score-row .person {
  min-width: 0;
}
.score-row .person strong {
  font-size: 15px;
}
.row {
  gap: 14px;
}
.row > span,
.row > strong {
  min-width: 0;
  overflow-wrap: break-word;
}
.row > strong {
  text-align: right;
}
.person small,
.belt-text > span {
  font-size: 13px;
}
.agenda .session {
  gap: 10px;
  padding: 14px 0;
}
.agenda .session time {
  font-size: 15px;
}
.session small {
  font-size: 13px;
}
.session .chip {
  font-size: 12px;
  max-width: 85px;
}
.avatar {
  border-radius: 50%;
  box-shadow: inset 0 1px #ffffff33;
}
.avatar.c0 {
  background: #264c83;
  color: #d9eaff;
}
.avatar.c1 {
  background: #6b3e86;
  color: #f4ddff;
}
.avatar.c2 {
  background: #24634f;
  color: #dcfff1;
}
.avatar.c3 {
  background: #735022;
  color: #ffe8bb;
}
.avatar.c4 {
  background: #803941;
  color: #ffe1e5;
}
.avatar.c5 {
  background: #2e6572;
  color: #d7f7ff;
}
.meter,
.barra {
  box-shadow: inset 0 2px 3px #0002;
}
.meter > i,
.barra > span {
  background-image: linear-gradient(
    180deg,
    #ffffff26,
    transparent 50%,
    #00000013
  );
  box-shadow:
    inset 0 1px #ffffff30,
    0 1px 8px color-mix(in srgb, var(--acento) 15%, transparent);
}
.ring .fill {
  filter: drop-shadow(
    0 0 3px color-mix(in srgb, var(--acento) 25%, transparent)
  );
}
/* Gráficas de Claude: brillo y bisel sutiles, valores y geometría sin distorsión. */
.premium-chart {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 4px 1px 9px;
  scrollbar-width: thin;
}
.grafica {
  display: block;
  width: 100%;
  min-width: 420px;
  overflow: visible;
}
.grafica text {
  font-family: var(--body);
  font-size: 14px;
  fill: var(--third);
}
.grafica .rejilla {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.grafica .eje {
  stroke: var(--line);
}
.grafica path[stroke-width="2.2"] {
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px #0002);
}
.grafica .guia {
  stroke: var(--muted);
  stroke-dasharray: 3 4;
  opacity: 0;
}
.grafica .marcador {
  opacity: 0;
}
.grafica .columna:hover .guia,
.grafica .columna:hover .marcador,
.grafica .columna:focus-within .guia,
.grafica .columna:focus-within .marcador {
  opacity: 1;
}
.grafica .hit {
  fill: transparent;
  cursor: crosshair;
}
.grafica .barra-g {
  filter: drop-shadow(0 3px 2px #0002);
  transition: opacity 140ms;
}
.grafica:hover .barra-g {
  opacity: 0.6;
}
.grafica .barra-g:hover {
  opacity: 1;
}
.leyenda {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
.leyenda > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.leyenda i,
.donut-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.anillo {
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 4px #0002);
}
.anillo svg {
  display: block;
  overflow: visible;
}
.anillo .centro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.anillo .centro b {
  font: italic 800 40px var(--sports);
}
.anillo .centro small {
  font-size: 14px;
  color: var(--third);
}
.donut-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.donut-key {
  width: 100%;
  font-size: 14px;
}
.donut-key > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.donut-key span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.heat-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mapa-calor {
  display: grid;
  gap: 7px;
  min-width: 310px;
  align-items: center;
}
.mapa-calor .lbl {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  min-height: 26px;
}
.mapa-calor .celda {
  display: block;
  height: 26px;
  border-radius: 4px;
  box-shadow:
    inset 0 1px #ffffff26,
    0 2px 3px #0002;
  transition: filter 140ms;
}
.mapa-calor .celda:hover {
  filter: brightness(1.3);
}
.fila {
  display: flex;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
}
.trunca {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.barra {
  height: 10px;
  background: var(--soft);
  border-radius: 5px;
  overflow: hidden;
}
.barra > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  max-width: 100%;
}
.col > [data-tip] {
  grid-template-columns: minmax(92px, 1.1fr) minmax(40px, 1fr) 28px !important;
  gap: 9px !important;
}
.col .fila {
  min-width: 0;
  flex-wrap: wrap;
}
.col .belt-text {
  flex-wrap: wrap;
  gap: 5px;
}
.podium {
  gap: 18px;
  align-items: end;
  margin: 0 0 22px;
}
.podium article {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 245px;
  padding-top: 34px;
}
.podium article:first-child {
  border-color: color-mix(in srgb, var(--acento) 48%, var(--line));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--acento) 12%, var(--panel)),
    var(--panel) 70%
  );
  min-height: 265px;
}
.podium .place {
  font: italic 800 64px var(--sports);
  color: var(--acento);
  opacity: 0.2;
  position: absolute;
  left: 16px;
  top: 8px;
}
.podium h2 {
  font: 700 26px var(--sports);
  margin: 13px 0 6px;
}
.podium strong {
  font: italic 800 30px var(--sports);
  display: block;
  margin-top: 14px;
}
.student-tile {
  border-radius: 10px;
  min-height: 79px;
  padding: 15px;
  background: var(--panel);
  box-shadow: inset 0 1px #ffffff05;
}
.student-tile.marked {
  border-color: color-mix(in srgb, var(--acento) 58%, var(--line));
  background: color-mix(in srgb, var(--acento) 9%, var(--panel));
}
.student-tile small {
  font-size: 13px;
}
.attendance-summary {
  padding-bottom: 17px;
}
.kiosk {
  background: var(--bg);
}
.kleft {
  background: linear-gradient(145deg, #23281a, #0e120e);
  color: #f6f5ec;
}
.kright {
  background: var(--bg);
}
.kiosk .keypad .btn {
  min-height: 65px;
  font-size: 22px;
}
.pindots {
  font-size: 28px;
  letter-spacing: 0.15em;
}
.mode-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--acento) 30%, var(--line));
  background: color-mix(in srgb, var(--acento) 6%, var(--panel));
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.mode-note p {
  margin: 4px 0 0;
  color: var(--muted);
}
.mode-note > .ico {
  color: var(--acento);
  flex-shrink: 0;
  margin-top: 3px;
}
.mode-note .btn {
  margin-left: auto;
  flex-shrink: 0;
}
.code-demo {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.13em;
  font-size: 21px;
  color: var(--acento);
}
.audit-thread {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin: 20px 0;
}
.audit-thread p {
  padding: 10px 0;
  font-size: 14px;
}
.chat-preview {
  background: var(--soft);
  padding: 16px;
  border-radius: 12px;
  line-height: 1.65;
  font-size: 15px;
}
.demo-ribbon {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: var(--third);
  font-size: 12px;
  margin-top: 28px;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0b0d0b;
  border: 1px solid #d9ae3f45;
  border-radius: 24px;
  padding: 7px 11px;
  color: #cdd0c6;
  font-size: 12px;
  max-width: 100%;
  flex-wrap: wrap;
}
.wordmark-mini {
  font: italic 800 16px var(--sports);
  color: #fff;
  white-space: nowrap;
}
.wordmark-mini i {
  color: var(--sf-oro);
}
.kiosk {
  position: relative;
  isolation: isolate;
}
.kiosk .dojo-art {
  z-index: 0;
  right: 5%;
  bottom: -120px;
  color: #ffffff05;
}
.kleft,
.kright {
  position: relative;
  z-index: 1;
}
.kleft {
  background: linear-gradient(140deg, #e8be361b 0, transparent 48%);
  padding: 50px;
}
.kleft .kclock {
  font: italic 800 clamp(66px, 8vw, 116px)/1 var(--sports);
  margin: 25px 0 8px;
}
.kleft > p {
  color: #c1c6b9;
}
.kleft h2 {
  font-family: var(--sports);
  font-size: 30px;
}
.kiosk-class {
  padding: 20px 23px;
  border: 1px solid #ffffff15;
  background: #141714cc;
  border-radius: 12px;
  position: relative;
  margin-top: 16px;
}
.kiosk-class.current {
  border-color: #e8be3655;
  background: #e8be3614;
  box-shadow: 0 0 40px #e8be3605;
}
.kiosk-class small {
  font: 600 15px var(--sports);
  letter-spacing: 1px;
  color: #d9bf66;
}
.kiosk-class h3 {
  font: 700 25px var(--sports);
  color: #fafaf2;
  margin: 8px 0;
}
.kiosk-class p {
  font-size: 15px;
  margin: 0;
  color: #bbc3b2;
}
.kiosk-class .chip {
  position: absolute;
  right: 18px;
  top: 20px;
}
.kleft footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.kright {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
}
.manual-kiosk .hanko {
  margin-bottom: 25px;
}
.manual-kiosk h1 {
  font: italic 800 50px/1.05 var(--sports);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.kbody > small {
  margin-bottom: 12px;
}
.request-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.request-card .btn {
  margin-top: 13px;
}
.request-card .person {
  margin-top: 12px;
}
.request-card p {
  font-size: 15px;
}
.ranking-filters {
  margin: 0 0 22px;
  align-items: end;
}
.ranking-filters label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.codes-list {
  max-height: 48vh;
  overflow: auto;
  margin-top: 18px;
}
.ranking-filters .btn {
  margin-left: auto;
}
@media (max-width: 760px) {
  .kleft {
    padding: 25px;
  }
  .kiosk-class {
    padding: 18px;
  }
  .kiosk-class .chip {
    position: static;
    margin-top: 9px;
  }
  .manual-kiosk h1 {
    font-size: 38px;
  }
  .ranking-filters .btn {
    margin-left: 0;
  }
  .ranking-filters > label {
    flex: 1;
  }
  .powered {
    font-size: 11px;
  }
}
[data-mode="claro"] .hanko {
  box-shadow:
    inset 0 0 0 2px #fff3c5,
    inset 0 0 0 5px var(--acento);
}
@media (min-width: 1500px) {
  [data-view="panel"] .main > .grid > .card:nth-child(n + 6) {
    grid-column: span 4;
  }
}
@media (max-width: 1240px) {
  .hero-copy {
    max-width: 76%;
  }
  .hero-art {
    inset: 0 0 0 78%;
    opacity: 0.75;
  }
  .performance-mark {
    width: 175px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    min-height: 162px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  [data-view="panel"] .main > .grid > .card:nth-child(n) {
    grid-column: span 6;
  }
  .stat-number {
    font-size: 42px;
  }
}
@media (max-width: 1000px) {
  .hero-copy {
    max-width: 80%;
  }
  .hero-art {
    opacity: 0.36;
    inset: 0 0 0 81%;
  }
  .main {
    padding: 21px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .score-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  .topbar .search {
    min-width: 36px;
  }
  .hero h1 {
    font-size: 35px;
  }
}
@media (max-width: 760px) {
  .main {
    padding: 19px 16px 40px;
  }
  .topbar {
    gap: 8px;
    padding: 12px 15px;
  }
  .toptools {
    gap: 7px;
  }
  .hero {
    min-height: 0;
  }
  .hero-copy {
    max-width: 100%;
    padding: 24px 22px 25px;
    position: relative;
    z-index: 1;
  }
  .hero-art {
    inset: 0 0 0 66%;
    opacity: 0.13;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero .title-signature {
    align-items: flex-start;
    gap: 12px;
  }
  .hero .hanko {
    width: 43px;
    height: 48px;
    font-size: 21px;
  }
  .hero p {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-date {
    font-size: 12px;
  }
  .hero .actions {
    gap: 9px;
    flex-wrap: wrap;
  }
  .hero .actions > .btn {
    min-height: 44px;
    font-size: 14px;
  }
  .hero .hero-primary {
    width: 100%;
    justify-content: center;
  }
  .hero .hero-alt,
  .hero .hero-link {
    flex: 1;
    justify-content: center;
  }
  .hero .brush-line {
    width: 160px;
  }
  .pagehead h1 {
    font-size: 36px;
  }
  .hanko {
    width: 43px;
    height: 48px;
    font-size: 21px;
  }
  .pagehead {
    gap: 15px;
    margin-top: 0;
  }
  .pagehead p {
    font-size: 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .stat {
    padding: 16px 14px;
    min-height: 160px;
  }
  .stat-top {
    font-size: 13px;
    align-items: flex-start;
  }
  .stat-top > i {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .stat-top i svg {
    width: 16px;
    height: 16px;
  }
  .stat-number {
    font-size: 32px;
    flex-wrap: wrap;
    margin: 12px 0 10px;
    gap: 6px;
  }
  .stat-number .spark {
    width: 80px;
    max-width: 100%;
    height: 24px;
  }
  .stat-number .spark svg {
    height: 24px;
  }
  .stat-foot {
    font-size: 13px;
  }
  .card {
    padding: 18px;
  }
  .cardhead h2 {
    font-size: 23px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  [data-view="panel"] .main > .grid {
    display: flex;
    flex-direction: column;
  }
  .cardhead {
    gap: 9px;
  }
  .grafica {
    min-width: 480px;
  }
  .donut-premium {
    gap: 22px;
    flex-wrap: nowrap;
  }
  .donut-key {
    min-width: 92px;
  }
  .anillo {
    width: 150px !important;
    height: 150px !important;
  }
  .anillo svg {
    width: 150px;
    height: 150px;
  }
  .anillo .centro b {
    font-size: 34px;
  }
  .dojo-art {
    width: 430px;
    height: 430px;
    right: -95px;
    bottom: 10px;
  }
  .dojo-art > span {
    right: 115px;
    top: 112px;
    font-size: 95px;
  }
  .podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .podium article,
  .podium article:first-child {
    min-height: 150px;
    padding: 23px;
  }
  .podium .place {
    font-size: 70px;
  }
  .score-row .chip {
    max-width: 90px;
    font-size: 11px;
  }
  .score-row {
    gap: 8px;
  }
  .score-row .person strong {
    font-size: 14px;
  }
  .score-row .avatar {
    display: none;
  }
  .score-row .belt-text {
    flex-wrap: wrap;
  }
  .row > strong {
    font-size: 14px;
  }
  .mode-note {
    flex-wrap: wrap;
  }
  .mode-note .btn {
    margin-left: 0;
  }
  .kiosk .keypad {
    gap: 10px;
  }
  .kleft {
    padding: 24px;
  }
  .title-signature {
    gap: 12px;
  }
  .session .chip {
    max-width: 70px;
  }
  .legend,
  .leyenda {
    font-size: 13px;
    gap: 12px;
  }
}
@media (max-width: 380px) {
  .main {
    padding-inline: 12px;
  }
  .hero-copy {
    padding: 22px 17px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 40px;
    flex-wrap: nowrap;
  }
  .stat {
    min-height: 145px;
  }
  .donut-premium {
    flex-wrap: wrap;
  }
  .donut-key {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Decisiones explícitas del cliente: sello rojo siempre y logo sin veladuras. */
.hanko,
.hero .hanko,
[data-mode="claro"] .hanko {
  background: #b72b25;
  color: #fff5e7;
  box-shadow:
    inset 0 0 0 2px #ffb0a0,
    inset 0 0 0 5px #b72b25,
    0 5px 14px #0003;
}
.hero-art {
  opacity: 1 !important;
  filter: none !important;
}
.performance-mark img {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
}
.discipline-eyebrow {
  font: 600 11px var(--sports);
  letter-spacing: 0.18em;
  color: var(--brand-light);
  margin-top: 8px;
}
.khan-belt .mongkol {
  width: 45px;
  height: 42px;
  flex-shrink: 0;
}
.khan-belt small {
  font-size: 11px;
  line-height: 1.3;
}
.judo-kohaku {
  background: repeating-linear-gradient(
    90deg,
    #d32835 0 14px,
    #f7f3e9 14px 28px
  ) !important;
}
.judo-kohaku > b {
  display: none;
}
.mongkol-hero {
  width: 250px;
  height: 270px;
  position: relative;
}
.mongkol-hero > .mongkol {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 8px #0005);
}
.mongkol-hero > img {
  position: absolute;
  width: 48%;
  height: 48%;
  object-fit: contain;
  border-radius: 50%;
  left: 26%;
  top: 17%;
  box-shadow: 0 0 0 2px #e3bf7144;
}
.mongkol-hero > span {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font: 600 13px var(--sports);
  letter-spacing: 2px;
  color: #e6ce9b;
}
.judo-hero {
  width: 240px;
  height: 260px;
  position: relative;
}
.judo-calligraphy {
  font: 70px var(--kanji);
  position: absolute;
  inset: -4px auto auto -20px;
  color: #ffffff0e;
  writing-mode: vertical-rl;
}
.judogi {
  position: absolute;
  inset: 20px 8px 32px;
  background: repeating-linear-gradient(45deg, #d5dce1 0 2px, #edf0f2 2px 5px);
  clip-path: polygon(
    30% 0,
    40% 12%,
    60% 12%,
    70% 0,
    100% 24%,
    85% 52%,
    74% 37%,
    76% 100%,
    24% 100%,
    26% 37%,
    15% 52%,
    0 24%
  );
}
.judogi i,
.judogi b {
  position: absolute;
  left: 37%;
  top: 3%;
  width: 18%;
  height: 77%;
  background: #c8d2df;
  border: 3px solid #a9b7c7;
  transform: rotate(32deg);
  box-shadow: 3px 0 4px #0003;
}
.judogi b {
  left: 48%;
  transform: rotate(-30deg);
}
.judo-hero > img {
  position: absolute;
  width: 78px;
  height: 78px;
  left: calc(50% - 39px);
  top: 65px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f8f8f0;
}
.judo-obi {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 25px;
  top: 161px;
  background: #121612;
  border: 1px solid #5d6758;
  transform: rotate(-5deg);
  box-shadow: 0 5px 7px #0004;
}
.judo-obi:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 45%;
  height: 57px;
  width: 20px;
  background: inherit;
  transform: rotate(15deg);
  border: inherit;
}
.judo-obi i {
  position: absolute;
  left: 45%;
  top: -7px;
  width: 32px;
  height: 34px;
  background: inherit;
  transform: rotate(40deg);
  border: inherit;
  z-index: 1;
}
.judo-obi.kohaku {
  background: repeating-linear-gradient(
    90deg,
    #c52c36 0 27px,
    #f6efe0 27px 54px
  );
}
.judo-obi.rojo {
  background: #b51e2e;
}
.judo-hero > small {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #d3deea;
  font: 600 12px var(--sports);
  letter-spacing: 1px;
}
@media (max-width: 1000px) {
  .mongkol-hero {
    width: 190px;
    height: 220px;
  }
  .judo-hero {
    transform: scale(0.8);
  }
}
@media (max-width: 760px) {
  .mongkol-hero {
    width: 170px;
    height: 175px;
  }
  .mongkol-hero > span {
    display: none;
  }
  .judo-hero {
    transform: scale(0.67);
    margin-top: -10px;
  }
}
.combat-belt b {
  background: #151713;
  border: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 4px;
  width: auto;
  min-width: 30px;
  right: 8%;
}
.combat-belt b:empty {
  display: block;
}
.combat-belt b {
  background: #c8102e;
  border-inline: 7px solid #c8102e;
  min-width: 54px;
  right: 7%;
  padding: 0 7px;
  gap: 7px;
}
.combat-belt b u {
  width: 5px;
  background: #fff8ef;
  display: block;
  height: 100%;
  box-shadow: 0 0 1px #fff;
}
.combat-belt.coral7 {
  background: repeating-linear-gradient(
    90deg,
    #b9172b 0 36px,
    #111410 36px 72px
  );
}
.combat-belt.coral8 {
  background: repeating-linear-gradient(
    90deg,
    #b9172b 0 36px,
    #f4f0e6 36px 72px
  );
}
.combat-belt.coral7 b,
.combat-belt.coral8 b {
  display: none;
}
.performance-mark:before {
  background: color-mix(in srgb, var(--brand-light) 10%, transparent);
}
.performance-mark:after {
  background: color-mix(in srgb, var(--brand-light) 9%, transparent);
  border-color: color-mix(in srgb, var(--brand-light) 23%, transparent);
}
:root[data-theme="SOL NACIENTE JAPÓN"] {
  --acento: #ac1b2b;
  --acento-tx: #fff;
  --acento-2: #ac1b2b;
  --brand-light: #ff6262;
  --bg: #f7efec;
  --panel: #fffaf7;
  --soft: #f0ded9;
  --line: #dfc5c1;
  --tinta: #981f2a0b;
  --hero: #290e14;
  --side: #150b0d;
  --side2: #2b1419;
  --bjj: #c5293c;
  --mt: #9d2438;
  --judo: #d96565;
  --destello: #f8dcda;
}
:root[data-theme="SOL NACIENTE JAPÓN"][data-mode="oscuro"] {
  --acento: #ff5f61;
  --acento-tx: #23080d;
  --acento-2: #ff5f61;
  --bg: #11090b;
  --panel: #1b0f12;
  --soft: #2a151a;
  --line: #4b252d;
  --bjj: #ff7a7d;
  --mt: #ffb1a0;
  --judo: #e74561;
  --tinta: #ff99990a;
  --destello: #481c22;
}
:root[data-theme="SOL NACIENTE JAPÓN"] .hero {
  background:
    radial-gradient(circle at 85% 55%, #c3263429, transparent 38%),
    linear-gradient(120deg, #250f14, #120a0d);
  border-color: #b72b2550;
}
.hannya-art {
  width: 245px;
  position: relative;
  filter: drop-shadow(0 9px 25px #b72b2520);
}
.hannya-art svg {
  width: 100%;
  display: block;
}
.hannya-art > span {
  display: block;
  text-align: center;
  font: 18px var(--kanji);
  letter-spacing: 8px;
  color: #e7a5a0;
  margin-top: -9px;
}
:root[data-theme="SOL NACIENTE JAPÓN"] .sidebar {
  background: linear-gradient(155deg, #b72b251b, transparent 45%), var(--side);
}
@media (max-width: 1000px) and (min-width: 761px) {
  .hero-copy {
    max-width: 72%;
  }
  .hero-art {
    inset: 0 0 0 75%;
  }
  .performance-mark {
    width: 165px;
  }
  .hannya-art {
    width: 185px;
  }
}
@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    order: 1;
    max-width: 100%;
  }
  .hero-art {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: 170px;
    border-top: 1px solid #ffffff0c;
    overflow: hidden;
    background: linear-gradient(
      110deg,
      transparent,
      color-mix(in srgb, var(--brand-light) 8%, transparent),
      transparent
    );
  }
  .hero-art .performance-mark {
    width: 160px;
  }
  .hero-art .hannya-art {
    width: 150px;
  }
  .hero-art .hannya-art svg {
    height: 165px;
  }
  .hero-art .hannya-art > span {
    display: none;
  }
}
.demo-badge {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  padding: 6px 14px;
  border: 1px solid #e1b9344d;
  border-radius: 999px;
  background: #111111ed;
  color: #d7d4ca;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
body:has(#app[data-view="tablet"]) .demo-badge,
body:has(.timer-stage:fullscreen) .demo-badge {
  display: none;
}
[data-tip]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
