/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #171717;
  --muted: #6b7280;
  --panel: #ffffff;
  --line: #d7dce2;
  --mat: #e8edf1;
  --player: #166534;
  --ai: #9f1239;
  --atb: #0284c7;
  --atb-ready: #16a34a;
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f5f6f2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(203 213 225 / 80%);
  background: rgb(245 246 242 / 90%);
  backdrop-filter: blur(14px);
}

.app-navbar-inner {
  display: flex;
  width: min(1180px, calc(100vw - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #0f172a;
  border-radius: 8px;
  color: #ffffff;
  background: #0f172a;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #334155;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.nav-link--primary,
.nav-link--button {
  border-color: #0f172a;
  color: #ffffff;
  background: #0f172a;
}

.nav-link--primary:hover,
.nav-link--button:hover {
  background: #111827;
}

.nav-user {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #14532d;
  background: #f0fdf4;
  font-size: 0.78rem;
  font-weight: 900;
}

.nav-logout-form {
  margin: 0;
}

.app-flash {
  width: min(1180px, calc(100vw - 32px));
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.app-flash--notice {
  border-color: #86efac;
  color: #14532d;
  background: #dcfce7;
}

.app-flash--alert {
  border-color: #fca5a5;
  color: #7f1d1d;
  background: #fee2e2;
}

.home-screen {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.home-panel {
  width: min(520px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgb(23 23 23 / 8%);
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 28px;
}

.about-screen {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}

.about-hero,
.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 16px 40px rgb(15 23 42 / 7%);
}

.about-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.about-panel--intro {
  border-left: 5px solid #0f172a;
}

.about-panel h2 {
  color: #0f172a;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.about-panel p,
.about-list,
.about-steps,
.about-stats {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}

.about-list,
.about-steps {
  padding-left: 1.1rem;
}

.about-list li,
.about-steps li {
  margin: 6px 0;
}

.about-stats {
  display: grid;
  gap: 10px;
}

.about-stats div {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.about-stats dt {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.about-stats dd {
  margin: 4px 0 0;
}

.changelog-screen {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}

.changelog-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(15 23 42 / 95%), rgb(30 41 59 / 95%)),
    #0f172a;
  color: #f8fafc;
  box-shadow: 0 16px 40px rgb(15 23 42 / 12%);
}

.changelog-hero .kicker {
  color: #cbd5e1;
}

.changelog-hero h1 {
  font-size: 3.4rem;
}

.changelog-hero p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #dbe3ee;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.changelog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.changelog-summary div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.changelog-summary strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
}

.changelog-summary span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.changelog-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-entry {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.changelog-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -22px;
  left: 10px;
  width: 2px;
  background: #cbd5e1;
}

.changelog-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 28px auto 0;
  border: 3px solid #0f172a;
  border-radius: 999px;
  background: #ffffff;
}

.changelog-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 14px 34px rgb(15 23 42 / 7%);
}

.changelog-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.changelog-card-header h2 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.changelog-card-header p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.changelog-card-header time {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
}

.changelog-version {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.changelog-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.changelog-changes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-changes li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.changelog-changes strong {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.changelog-changes span {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-screen {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(920px, 100%);
}

.auth-panel--login {
  width: min(820px, 100%);
}

.auth-copy {
  display: grid;
  gap: 12px;
  padding: 24px 0;
}

.auth-copy h1 {
  color: #0f172a;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.auth-copy p:not(.kicker) {
  max-width: 440px;
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.55;
}

.auth-form-shell {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(248 250 252 / 96%)),
    #ffffff;
  box-shadow: 0 20px 60px rgb(15 23 42 / 12%);
}

.auth-form-shell h2 {
  color: #0f172a;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span,
.auth-check span {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-field input:focus {
  border-color: #0f172a;
  outline: 3px solid rgb(15 23 42 / 12%);
}

.auth-field small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.auth-links a,
.auth-links button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.auth-errors {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fee2e2;
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-errors ul {
  margin: 0;
  padding-left: 18px;
}

.home-start-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.difficulty-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.difficulty-field select {
  min-height: 44px;
  min-width: 150px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  border: 1px solid #0f172a;
  color: #ffffff;
  background: #0f172a;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.techniques-screen {
  display: grid;
  gap: 16px;
}

.techniques-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.techniques-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.technique-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.technique-filter {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.technique-filter--active {
  border-color: #0f172a;
  color: #ffffff;
  background: #0f172a;
}

.technique-sections {
  display: grid;
  gap: 16px;
}

.technique-section {
  display: grid;
  gap: 10px;
}

.technique-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.technique-section-heading h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.technique-section-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.technique-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.technique-card {
  --technique-accent: #64748b;
  display: grid;
  min-height: 388px;
  align-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #1f2937;
  border-top: 6px solid var(--technique-accent);
  border-radius: 8px;
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgb(15 23 42 / 95%), rgb(17 24 39 / 96%)),
    radial-gradient(circle at center, rgb(255 255 255 / 14%), transparent 58%);
  box-shadow: 0 14px 24px rgb(15 23 42 / 14%);
}

.technique-card--interactive {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.technique-card--interactive:hover,
.technique-card--interactive:focus-visible {
  border-color: var(--technique-accent);
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgb(15 23 42 / 18%);
}

.technique-card--grip { --technique-accent: #2563eb; }
.technique-card--break-grip { --technique-accent: #0891b2; }
.technique-card--takedown { --technique-accent: #f97316; }
.technique-card--pull-guard { --technique-accent: #8b5cf6; }
.technique-card--guard-pass { --technique-accent: #16a34a; }
.technique-card--sweep { --technique-accent: #eab308; }
.technique-card--submission { --technique-accent: #ef4444; }
.technique-card--escape { --technique-accent: #14b8a6; }
.technique-card--posture { --technique-accent: #94a3b8; }
.technique-card--pressure { --technique-accent: #a855f7; }
.technique-card--defense { --technique-accent: #0ea5e9; }
.technique-card--transition { --technique-accent: #22c55e; }

.technique-card-topline,
.technique-card-context,
.technique-card-metrics {
  display: flex;
  gap: 8px;
}

.technique-card-context {
  display: none !important;
}

.technique-card-topline {
  align-items: center;
  justify-content: space-between;
}

.technique-card-category,
.technique-card-belt,
.technique-card-context span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.technique-card-category svg {
  width: 15px;
  height: 15px;
  color: var(--technique-accent);
}

.technique-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.1;
}

.technique-card-media {
  display: grid;
  width: min(64%, 154px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: rgb(255 255 255 / 6%);
}

.technique-card-media img {
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
}

.technique-card-context {
  flex-wrap: wrap;
}

.technique-card-context span {
  padding: 4px 7px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
}

.technique-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.technique-card-metric {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 7px;
  background: rgb(255 255 255 / 7%);
  text-align: center;
}

.technique-card-metric svg {
  width: 17px;
  height: 17px;
}

.technique-card-metric--atb svg {
  color: #38bdf8;
}

.technique-card-metric--fatigue svg {
  color: #facc15;
}

.technique-card-metric--target svg {
  color: #ef4444;
}

.technique-card-metric span {
  color: #cbd5e1;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.technique-card-metric strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.belt-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: #ffffff;
}

.belt-dot--white {
  background: #ffffff;
}

.belt-dot--blue {
  background: #2563eb;
}

.belt-dot--purple {
  background: #7e22ce;
}

.belt-dot--brown {
  background: #92400e;
}

.belt-dot--black {
  background: #020617;
}

.technique-empty {
  display: grid;
  min-height: 96px;
  margin: 0;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
}

.technique-empty--modal {
  color: #cbd5e1;
  background: rgb(255 255 255 / 6%);
}

.technique-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  color: #f8fafc;
  background: transparent;
}

.technique-modal::backdrop {
  background: rgb(2 6 23 / 74%);
  backdrop-filter: blur(3px);
}

.technique-modal-panel {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 32px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: linear-gradient(180deg, #303030, #171717);
  box-shadow: 0 28px 80px rgb(0 0 0 / 48%);
}

.technique-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #fb923c;
  border-radius: 7px;
  color: #ffffff;
  background: #f97316;
  cursor: pointer;
}

.technique-modal-close svg {
  width: 20px;
  height: 20px;
}

.technique-modal-heading,
.technique-modal-content,
.technique-outcomes-heading,
.technique-outcome-row {
  display: grid;
}

.technique-modal-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding-right: 40px;
}

.technique-modal-heading h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.technique-modal-heading > span {
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.technique-modal-content {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}

.technique-modal-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.technique-outcomes-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.technique-outcomes-heading {
  grid-template-columns: 135px minmax(135px, 170px) minmax(0, 1fr);
  gap: 10px;
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.technique-outcomes-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technique-outcome-row {
  grid-template-columns: 135px minmax(135px, 170px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-left: 5px solid #64748b;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
}

.technique-outcome-row--normal {
  border-left-color: #38bdf8;
}

.technique-outcome-row--good {
  border-left-color: #facc15;
}

.technique-outcome-row--critical {
  border-left-color: #22c55e;
}

.technique-outcome-badge {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.technique-outcome-badge strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.technique-outcome-badge span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.15;
}

.technique-outcome-position,
.technique-outcome-effects {
  align-self: center;
  color: #d1d5db;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.technique-outcome-position {
  overflow-wrap: anywhere;
}

.technique-outcome-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.technique-outcome-effects span {
  display: inline-flex;
  align-items: center;
}

.technique-outcome-submission {
  width: 24px;
  height: 24px;
  justify-content: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #fecaca;
  background: rgb(239 68 68 / 14%);
  cursor: help;
}

.technique-outcome-submission svg {
  width: 15px;
  height: 15px;
}

.technique-modal-card .technique-card {
  min-height: 420px;
}

.technique-modal-card .technique-card-media {
  width: min(68%, 180px);
}

.technique-description-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
}

.technique-description-panel h3 {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.technique-description-panel p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.fight-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: calc(100vh - 32px);
  gap: 8px;
  min-height: 0;
}

.fight-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.fighter-summary,
.scoreboard,
.resource-panel,
.combat-log,
.fight-position-visual,
.action-deck {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
}

.fighter-summary {
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 8px 10px;
}

.fighter-summary--player {
  border-left: 5px solid var(--player);
}

.fighter-summary--ai {
  grid-template-columns: 1fr auto;
  border-right: 5px solid var(--ai);
  text-align: right;
}

.fighter-summary--ai > div:not(.fight-controls),
.fighter-summary--ai .fighter-meta {
  grid-column: 1 / -1;
}

.fight-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 6px;
}

.fight-controls form {
  margin: 0;
}

.ai-initiative-toggle label {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-initiative-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.side-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fighter-summary h2 {
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fighter-meta {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fighter-summary--ai .fighter-meta {
  justify-content: end;
}

.secondary-action--compact {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.scoreboard {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 8px;
  text-align: center;
}

.score-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
}

.score-breakdown {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.score-breakdown div {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1px;
  padding: 3px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.score-breakdown span {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 900;
}

.score-breakdown strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1;
}

.score-breakdown .points {
  width: 24px;
  height: 24px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-breakdown .left {
  margin-right: 4px;
}

.score-breakdown .right {
  margin-left: 4px;
}

.fight-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: #0f172a;
  font-variant-numeric: tabular-nums;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
}

.fight-position {
  color: #111827;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fight-flash {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.fight-flash--alert {
  border: 1px solid #fda4af;
  color: #881337;
  background: #ffe4e6;
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #f0fdf4;
}

.result-panel h2 {
  font-size: 1rem;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.result-stats div {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #ffffff;
}

.result-stats dt {
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-stats dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-stage {
  position: relative;
  display: grid;
  grid-template:
    "player visual ai" minmax(128px, 180px)
    "player log ai" minmax(0, 1fr)
    "actions actions actions" auto / minmax(220px, 285px) minmax(280px, 1fr) minmax(220px, 285px);
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 10px;
  border: 1px solid #c8d1d8;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 36%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 36%) 1px, transparent 1px),
    var(--mat);
  background-size: 44px 44px;
}

.countdown-overlay {
  position: absolute;
  inset: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgb(15 23 42 / 62%);
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.countdown-overlay[hidden] {
  display: none;
}

.submission-check-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 18px 22px;
  color: #ffffff;
  background: rgb(15 23 42 / 76%);
}

.submission-check-card {
  justify-self: center;
  align-self: center;
  display: grid;
  min-width: 220px;
  justify-items: center;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 84%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 30%);
}

.submission-check-card h2 {
  max-width: 320px;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.submission-countdown {
  display: grid;
  min-width: 72px;
  min-height: 56px;
  place-items: center;
  border-radius: 8px;
  color: #facc15;
  background: #111827;
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.submission-check-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.submission-lane {
  display: grid;
  gap: 8px;
}

.submission-lane-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.submission-lane-heading strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-lane-heading span,
.submission-lane output {
  color: #e5e7eb;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submission-lane output {
  justify-self: center;
  min-width: 42px;
  min-height: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.submission-track {
  position: relative;
  height: 26px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 4px;
  background:
    linear-gradient(
      90deg,
      #dc2626 0%,
      #dc2626 calc(50% - var(--zone-half) - 8%),
      #f59e0b calc(50% - var(--zone-half)),
      #22c55e 50%,
      #f59e0b calc(50% + var(--zone-half)),
      #dc2626 calc(50% + var(--zone-half) + 8%),
      #dc2626 100%
    );
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 16%);
}

.submission-track::after {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 50%;
  width: 2px;
  background: #ffffff;
  content: "";
  transform: translateX(-50%);
}

.submission-cursor {
  position: absolute;
  top: -11px;
  bottom: -11px;
  width: 0;
  transform: translateX(-50%);
}

.submission-cursor::before,
.submission-cursor::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.submission-cursor::before {
  top: 0;
  border-top: 0;
  border-bottom: 10px solid #ffffff;
}

.submission-cursor::after {
  bottom: 0;
  border-top: 10px solid #ffffff;
  border-bottom: 0;
}

.submission-push-button {
  min-width: 112px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #65a30d;
  border-radius: 6px;
  color: #1f2937;
  background: #84cc16;
  box-shadow: 0 8px 0 #3f6212;
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.submission-push-button:active {
  box-shadow: 0 3px 0 #3f6212;
  transform: translateY(5px);
}

.submission-push-button:disabled {
  color: #365314;
  background: #a3e635;
  cursor: default;
  opacity: 0.8;
}

.player-control {
  display: contents;
}

.resource-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.resource-panel--player {
  grid-area: player;
  border-top: 5px solid var(--player);
}

.resource-panel--ai {
  grid-area: ai;
  border-top: 5px solid var(--ai);
}

.fight-position-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  background:
    radial-gradient(circle at center, rgb(255 255 255 / 14%), transparent 62%),
    #0f172a;
}

.fight-position-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #ffffff;
  background: rgb(55 65 81 / 88%);
  box-shadow: 0 6px 18px rgb(15 23 42 / 22%);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.fight-position-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 164px;
  object-fit: contain;
  object-position: center;
}

.fight-position-visual-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-align: center;
}

.fight-position-visual-empty strong {
  color: #ffffff;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.fight-position-visual-empty span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
}

.fight-opposition-board {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(240px, 280px) minmax(180px, 220px);
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: min(820px, calc(100% - 28px));
  padding: 16px;
  border: 1px solid rgb(15 23 42 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 82%);
  box-shadow: 0 24px 70px rgb(15 23 42 / 38%);
  transform: translate(-50%, -50%);
  animation: opposition-board-in 180ms ease-out both;
}

.fight-opposition-board[hidden] {
  display: none;
}

.fight-opposition-board--pending {
  border-color: rgb(245 158 11 / 60%);
}

.fight-opposition-board--resolved {
  border-color: rgb(255 255 255 / 20%);
}

.fight-opposition-slot {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
}

.fight-opposition-slot::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  content: "";
}

.fight-opposition-slot--player {
  animation: opposition-slide-player 360ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.fight-opposition-slot--ai {
  animation: opposition-slide-ai 360ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.fight-opposition-slot--winner {
  border-color: #86efac;
  background: rgb(22 101 52 / 26%);
}

.fight-opposition-slot--loser {
  border-color: #fca5a5;
  background: rgb(127 29 29 / 26%);
  opacity: 0.72;
}

.fight-opposition-slot--pending {
  border-color: #fbbf24;
}

.fight-opposition-slot--draw {
  border-color: #cbd5e1;
}

.fight-opposition-board--resolved .fight-opposition-slot--winner::after {
  background: rgb(34 197 94 / 30%);
  animation: opposition-state-flash 820ms ease-out 420ms both;
}

.fight-opposition-board--resolved .fight-opposition-slot--loser::after {
  background: rgb(239 68 68 / 28%);
  animation: opposition-state-flash 820ms ease-out 420ms both;
}

.fight-opposition-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.fight-opposition-label span,
.fight-opposition-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-opposition-label span {
  color: #cbd5e1;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fight-opposition-label strong {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fight-opposition-outcome {
  display: grid;
  min-height: 28px;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  color: #ffffff;
  background: rgb(15 23 42 / 76%);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.fight-opposition-card .technique-card {
  min-height: 236px;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: none;
}

.fight-opposition-card .technique-card-topline {
  gap: 4px;
}

.fight-opposition-card .technique-card-category,
.fight-opposition-card .technique-card-belt {
  font-size: 0.56rem;
}

.fight-opposition-card .technique-card-category svg {
  width: 12px;
  height: 12px;
}

.fight-opposition-card .technique-card h3 {
  font-size: 0.92rem;
}

.fight-opposition-card .technique-card-media {
  width: min(68%, 104px);
}

.fight-opposition-card .technique-card-metrics {
  gap: 4px;
}

.fight-opposition-card .technique-card-metric {
  gap: 2px;
  padding: 5px 3px;
}

.fight-opposition-card .technique-card-metric svg {
  width: 13px;
  height: 13px;
}

.fight-opposition-card .technique-card-metric span {
  font-size: 0.52rem;
}

.fight-opposition-card .technique-card-metric strong {
  font-size: 0.78rem;
}

.fight-opposition-empty {
  display: grid;
  min-height: 236px;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgb(255 255 255 / 20%);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgb(15 23 42 / 62%);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.fight-opposition-center {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #ffffff;
  text-align: center;
}

.fight-opposition-vs {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 10px 30px rgb(0 0 0 / 24%);
  font-size: 1.25rem;
  font-weight: 950;
  animation: opposition-vs-pulse 900ms ease-in-out 2;
}

.fight-opposition-center p {
  max-width: 260px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  font-weight: 900;
  line-height: 1.25;
}

.fight-opposition-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 260px);
}

.fight-opposition-score-chip {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  color: #ffffff;
  background: rgb(255 255 255 / 12%);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  animation: opposition-value-rise 460ms ease-out both;
}

.fight-opposition-score-chip:nth-child(2) {
  animation-delay: 120ms;
}

.fight-opposition-score-chip svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.fight-opposition-score-chip strong {
  overflow: visible;
  white-space: nowrap;
}

.fight-opposition-score-chip--attack svg {
  color: #f97316;
}

.fight-opposition-score-chip--defense svg {
  color: #60a5fa;
}

.fight-opposition-board--resolved .fight-opposition-score-chip.log-metric--winner {
  border-color: #86efac;
  color: #dcfce7;
  background: rgb(22 101 52 / 42%);
}

.fight-opposition-board--resolved .fight-opposition-score-chip.log-metric--loser {
  border-color: #fca5a5;
  color: #fee2e2;
  background: rgb(127 29 29 / 42%);
}

.fight-opposition-matchup {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgb(15 23 42 / 70%);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.fight-opposition-matchup--hard-counter {
  border-color: #86efac;
  color: #bbf7d0;
  background: rgb(22 101 52 / 34%);
}

.fight-opposition-matchup--soft-counter {
  border-color: #67e8f9;
  color: #cffafe;
  background: rgb(8 145 178 / 34%);
}

.fight-opposition-matchup--neutral,
.fight-opposition-matchup--none,
.fight-opposition-matchup--pending {
  border-color: #cbd5e1;
  color: #e5e7eb;
  background: rgb(100 116 139 / 34%);
}

.fight-opposition-matchup--bad-counter {
  border-color: #fed7aa;
  color: #ffedd5;
  background: rgb(194 65 12 / 34%);
}

.fight-opposition-matchup--terrible-counter {
  border-color: #fca5a5;
  color: #fee2e2;
  background: rgb(185 28 28 / 36%);
}

.fight-opposition-player-position {
  display: grid;
  gap: 4px;
  width: min(100%, 260px);
  padding: 9px 10px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  background: rgb(17 24 39 / 82%);
}

.fight-opposition-player-position span {
  color: #cbd5e1;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fight-opposition-player-position strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.fight-opposition-center p {
  color: #ffffff;
  font-size: 0.88rem;
}

@keyframes opposition-board-in {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes opposition-slide-player {
  from {
    opacity: 0;
    transform: translateX(-26px) rotate(-1deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes opposition-slide-ai {
  from {
    opacity: 0;
    transform: translateX(26px) rotate(1deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes opposition-vs-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes opposition-value-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes opposition-state-flash {
  0% {
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fight-opposition-board,
  .fight-opposition-slot--player,
  .fight-opposition-slot--ai,
  .fight-opposition-vs,
  .fight-opposition-score-chip,
  .fight-opposition-board--resolved .fight-opposition-slot::after {
    animation: none;
  }
}

.resource-heading,
.combat-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.atb-meter {
  display: grid;
  gap: 6px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 900;
}

.meter-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid #b8c4ce;
  border-radius: 999px;
  background: #dbe3ea;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--atb), var(--atb-ready));
}

.compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.compact-stats div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.compact-stats dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-stats dd {
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 950;
}

.combat-log {
  grid-area: log;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.combat-log-heading strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-size: 0.75rem;
}

.log-mode-controls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.log-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: none;
  cursor: pointer;
}

.log-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0f172a;
}

.log-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.log-entry {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.log-entry--state-pending {
  border-color: #f59e0b;
  background: #fffbeb;
}

.log-entry--state-success {
  border-color: #86efac;
  background: #f0fdf4;
}

.log-entry--state-failed {
  border-color: #fda4af;
  background: #fff1f2;
}

.log-entry--player {
  box-shadow: inset 4px 0 0 var(--player);
}

.log-entry--ai {
  box-shadow: inset -4px 0 0 var(--ai);
}

.log-entry--missed-reaction {
  background: #fff1f2;
}

.log-entry time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 900;
}

.log-body {
  min-width: 0;
}

.log-action-name,
.log-summary,
.log-gameplay-summary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-action-name {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.log-summary {
  line-height: 1.3;
}

.log-summary,
.log-effects,
.log-gameplay-costs,
.log-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.log-effects,
.log-gameplay-costs {
  max-width: 220px;
  line-height: 1.3;
  text-align: right;
}

.log-gameplay-summary,
.log-gameplay-costs {
  display: none;
}

.log-gameplay-summary {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.combat-log--gameplay .log-entry {
  grid-template-columns: 42px minmax(0, 1fr) minmax(240px, auto);
  gap: 8px;
  padding: 7px 8px;
}

.combat-log--gameplay .log-action-name,
.combat-log--gameplay .log-summary,
.combat-log--gameplay .log-effects {
  display: none;
}

.combat-log--gameplay .log-gameplay-summary,
.combat-log--gameplay .log-gameplay-costs {
  display: block;
}

.combat-log--gameplay .log-gameplay-costs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.log-gameplay-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.log-gameplay-cost svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.log-gameplay-cost[title="ATB"] svg {
  color: #0284c7;
}

.log-gameplay-cost[title="fatigue"] svg {
  color: #ca8a04;
}

.log-gameplay-cost[title="cible"] svg {
  color: #dc2626;
}

.log-gameplay-cost[title="score"] svg {
  color: #7c3aed;
}

.log-gameplay-cost[title="bonus defense"] svg,
.log-gameplay-cost--neutral svg {
  color: #64748b;
}

.log-gameplay-cost--positive svg {
  color: #16a34a;
}

.log-gameplay-cost--negative svg {
  color: #dc2626;
}

.log-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.log-metric-chip,
.log-delta {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.log-metric--winner {
  border-color: #86efac;
  color: #166534;
  background: #dcfce7;
}

.log-metric--loser {
  border-color: #fecaca;
  color: #991b1b;
  background: #fee2e2;
}

.log-metric--neutral,
.log-delta--draw,
.log-delta--neutral {
  border-color: #cbd5e1;
  color: #475569;
  background: #f8fafc;
}

.log-delta {
  border-width: 2px;
  font-size: 0.74rem;
}

.log-delta--offense {
  border-color: #22c55e;
  color: #14532d;
  background: #bbf7d0;
}

.log-delta--defense {
  border-color: #ef4444;
  color: #7f1d1d;
  background: #fecaca;
}

.log-debug,
.log-raw-details {
  grid-column: 1 / -1;
  display: none;
}

.log-debug {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.combat-log--full .log-debug {
  display: grid;
}

.combat-log--full .log-raw-details {
  display: block;
}

.log-debug-section {
  min-width: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.log-debug-section h4 {
  margin: 0 0 4px;
  color: #334155;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.log-debug-section table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-debug-section th,
.log-debug-section td {
  padding: 2px 0;
  vertical-align: top;
  color: #475569;
  font-size: 0.64rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.log-debug-section th {
  width: 38%;
  padding-right: 6px;
  color: #64748b;
  font-weight: 900;
  text-align: left;
}

.log-debug-section td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.log-raw-details {
  color: #475569;
  font-size: 0.66rem;
  font-weight: 800;
}

.log-raw-details summary {
  cursor: pointer;
}

.log-raw-details pre {
  max-height: 180px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  background: #ffffff;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.log-empty {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.action-deck {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.action-deck--reaction {
  border-color: #f59e0b;
  background: #fff7ed;
}

.action-deck--opponent-reaction {
  border-color: #64748b;
  background: #f8fafc;
}

.action-deck--locked {
  opacity: 0.96;
}

.reaction-window-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #111827;
  background: #fffbeb;
}

.reaction-window-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reaction-window-copy span,
.reaction-window-copy small {
  overflow: hidden;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.reaction-window-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-window-clock {
  display: grid;
  min-width: 68px;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 950;
}

.reaction-window-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #fed7aa;
}

.reaction-window-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #facc15);
}

.reaction-window-panel--opponent {
  border-color: #64748b;
  color: #e5e7eb;
  background: #334155;
}

.reaction-window-panel--opponent .reaction-window-copy span,
.reaction-window-panel--opponent .reaction-window-copy small {
  color: #cbd5e1;
}

.reaction-window-panel--opponent .reaction-window-copy strong {
  color: #ffffff;
}

.reaction-window-panel--opponent .reaction-window-clock {
  color: #111827;
  background: #e5e7eb;
}

.reaction-window-panel--opponent .reaction-window-track {
  background: rgb(255 255 255 / 20%);
}

.reaction-window-panel--opponent .reaction-window-fill {
  background: linear-gradient(90deg, #94a3b8, #e5e7eb);
}

.reaction-window-panel--urgent {
  border-color: #dc2626;
  background: #fef2f2;
}

.reaction-window-panel--urgent .reaction-window-copy span,
.reaction-window-panel--urgent .reaction-window-copy small {
  color: #991b1b;
}

.reaction-window-panel--urgent .reaction-window-clock {
  background: #991b1b;
}

.reaction-window-panel--urgent .reaction-window-track {
  background: #fecaca;
}

.reaction-window-panel--urgent .reaction-window-fill {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.action-deck-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-deck-heading strong {
  color: #111827;
}

.action-deck form {
  display: contents;
}

.action-intention {
  position: relative;
  min-width: 0;
}

.action-intention .action-button {
  width: 100%;
  height: 100%;
}

.action-empty {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 800;
}

.action-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
}

.action-type-grip {
  color: #2563eb;
}

.action-type-break-grip {
  color: #0891b2;
}

.action-type-takedown {
  color: #f98649;
}

.action-type-pull-guard {
  color: #7c3aed;
}

.action-type-guard-pass {
  color: #16a34a;
}

.action-type-sweep {
  color: #ca8a04;
}

.action-type-submission {
  color: #dc2626;
}

.action-type-escape {
  color: #0d9488;
}

.action-type-posture {
  color: #475569;
}

.action-type-pressure {
  color: #9333ea;
}

.action-type-defense {
  color: #0369a1;
}

.action-button-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.action-name {
  min-width: 0;
  font-weight: 900;
  line-height: 1.25;
}

.action-category-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.action-category-icon svg,
.action-metric svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.action-metrics {
  display: grid;
  gap: 3px;
  min-width: 92px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.action-metric {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  text-align: left;
  white-space: nowrap;
}

.action-metric svg {
  color: currentcolor;
}

.action-button:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: default;
}

.action-deck--reaction .action-button:not(:disabled) {
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgb(245 158 11 / 24%);
}

.action-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e5e7eb;
  background: #111827;
  box-shadow: 0 18px 36px rgb(15 23 42 / 30%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.action-intention:hover .action-tooltip,
.action-intention:focus-within .action-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.action-tooltip-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.action-tooltip-heading strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-tooltip-heading span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgb(255 255 255 / 7%);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.action-tooltip-outcomes {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-tooltip-outcome {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 6px;
  background: rgb(255 255 255 / 5%);
}

.action-tooltip-outcome--critical {
  border-left: 3px solid #22c55e;
}

.action-tooltip-outcome--good {
  border-left: 3px solid #facc15;
}

.action-tooltip-outcome--normal {
  border-left: 3px solid #38bdf8;
}

.action-tooltip-level {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-size: 0.68rem;
  font-weight: 950;
}

.action-tooltip-outcome strong,
.action-tooltip-outcome small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-tooltip-outcome strong {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 950;
}

.action-tooltip-outcome small {
  color: #cbd5e1;
  font-size: 0.62rem;
  font-weight: 800;
}

.action-tooltip-effects {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  color: #e5e7eb;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.action-tooltip-effects span {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.action-tooltip-submission {
  display: inline-grid;
  place-items: center;
}

.action-tooltip-submission svg {
  width: 12px;
  height: 12px;
  color: #f87171;
}

.action-tooltip-empty {
  margin: 0;
  padding: 8px;
  border: 1px dashed rgb(255 255 255 / 18%);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
}

.ai-intent {
  display: grid;
  min-height: 42px;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
}

.ai-debug-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-debug-heading span,
.ai-option span,
.ai-option-empty,
.ai-pending-action,
.ai-position-debug {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.ai-debug-heading strong,
.ai-pending-action strong,
.ai-position-debug strong {
  color: #111827;
}

.ai-pending-action,
.ai-option-empty,
.ai-position-debug {
  margin: 0;
}

.ai-option-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.ai-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #ffffff;
}

.ai-option--locked {
  opacity: 0.55;
}

.ai-option div {
  min-width: 0;
}

.ai-option strong,
.ai-option span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-option strong {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
}

.ai-option small {
  color: #111827;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.fighter-profile-screen {
  display: grid;
  gap: 16px;
}

.fighter-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 230px;
  align-items: start;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgb(15 23 42 / 96%), rgb(17 24 39 / 92%) 48%, rgb(127 29 29 / 88%)),
    #111827;
  box-shadow: 0 24px 70px rgb(15 23 42 / 20%);
}

.fighter-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 0%) 38px, rgb(255 255 255 / 5%) 39px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 0%) 58px, rgb(255 255 255 / 6%) 59px);
  opacity: 0.75;
}

.fighter-profile-hero::after {
  content: "BJJ";
  position: absolute;
  right: 28px;
  bottom: -18px;
  color: rgb(255 255 255 / 6%);
  font-size: 8rem;
  font-weight: 950;
  line-height: 1;
}

.fighter-profile-hero-main,
.fighter-profile-actions {
  position: relative;
  z-index: 1;
}

.fighter-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: end;
  gap: 8px;
}

.fighter-profile-actions form {
  margin: 0;
}

.fighter-back-action,
.danger-action {
  gap: 7px;
}

.fighter-back-action svg,
.fighter-edit-action svg,
.danger-action svg,
.fighter-hero-badges svg,
.fighter-profile-eyebrow svg,
.fighter-card-icon svg,
.fighter-dojo-mark svg,
.fighter-stat-card svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.danger-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #991b1b;
  border-radius: 8px;
  color: #ffffff;
  background: #991b1b;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.danger-action:hover {
  background: #7f1d1d;
}

.fighter-name-frame {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.fighter-profile-hero .fighter-name-frame {
  max-width: 720px;
}

.fighter-name-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fighter-name-title {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
}

.fighter-profile-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #facc15;
  background: rgb(15 23 42 / 72%);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fighter-name-frame h1 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 0.95;
}

.fighter-edit-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #f8fafc;
  background: rgb(15 23 42 / 70%);
  text-decoration: none;
}

.fighter-edit-action:hover {
  border-color: rgb(250 204 21 / 70%);
  color: #facc15;
  background: rgb(15 23 42 / 92%);
}

.fighter-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fighter-hero-badges span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  color: #e5e7eb;
  background: rgb(15 23 42 / 70%);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fighter-profile-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.fighter-profile-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 97%), rgb(248 250 252 / 96%)),
    #ffffff;
  box-shadow: 0 16px 42px rgb(15 23 42 / 10%);
}

.fighter-profile-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.fighter-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fighter-card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
}

.fighter-card-icon--rank {
  color: #854d0e;
  background: #fef3c7;
}

.fighter-card-icon--stats {
  color: #075985;
  background: #e0f2fe;
}

.fighter-card-icon--record {
  color: #9a3412;
  background: #ffedd5;
}

.fighter-belt-display {
  --fighter-belt-base: #f8fafc;
  --fighter-belt-highlight: color-mix(in srgb, var(--fighter-belt-base) 45%, #ffffff);
  --fighter-belt-shadow: color-mix(in srgb, var(--fighter-belt-base) 82%, #020617);
  --fighter-belt-border: color-mix(in srgb, var(--fighter-belt-base) 70%, #020617);
  --fighter-belt-zone-highlight: #1f2937;
  --fighter-belt-zone-base: #020617;
  --fighter-belt-zone-border: rgb(255 255 255 / 12%);
  position: relative;
  display: grid;
  align-items: center;
  min-height: 78px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(241 245 249 / 90%)),
    #ffffff;
}

.fighter-belt-display--black {
  --fighter-belt-zone-highlight: #b91c1c;
  --fighter-belt-zone-base: #7f1d1d;
  --fighter-belt-zone-border: rgb(248 113 113 / 34%);
}

.fighter-belt-main {
  display: block;
  height: 34px;
  border: 1px solid var(--fighter-belt-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--fighter-belt-highlight), var(--fighter-belt-base) 52%, var(--fighter-belt-shadow)),
    var(--fighter-belt-base);
  box-shadow:
    inset 0 0 0 4px rgb(255 255 255 / 16%),
    0 8px 20px rgb(15 23 42 / 10%);
}

.fighter-belt-black-zone {
  position: absolute;
  top: 50%;
  right: 42px;
  display: grid;
  width: 108px;
  height: 34px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid var(--fighter-belt-zone-border);
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--fighter-belt-zone-highlight), var(--fighter-belt-zone-base)),
    var(--fighter-belt-zone-base);
  box-shadow: 0 10px 24px rgb(15 23 42 / 28%);
  transform: translateY(-50%);
}

.fighter-belt-stripes {
  display: grid;
  grid-template-columns: repeat(4, 14px);
  gap: 6px;
}

.fighter-belt-stripe {
  height: 22px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 8%)),
    #334155;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.fighter-belt-stripe--active {
  background:
    linear-gradient(180deg, #ffffff, #e2e8f0),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 0 14px rgb(255 255 255 / 28%);
}

.fighter-card-note {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.fighter-profile-card--dojo {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: #e5e7eb;
  background:
    linear-gradient(135deg, rgb(15 23 42 / 96%), rgb(12 74 110 / 86%)),
    #0f172a;
}

.fighter-profile-card--dojo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 0%) 28px, rgb(255 255 255 / 5%) 29px),
    linear-gradient(90deg, rgb(22 101 52 / 0%) 0 20%, rgb(22 101 52 / 55%) 20% 24%, rgb(22 101 52 / 0%) 24% 76%, rgb(127 29 29 / 55%) 76% 80%, rgb(127 29 29 / 0%) 80%);
  opacity: 0.8;
}

.fighter-profile-card--dojo > * {
  position: relative;
  z-index: 1;
}

.fighter-profile-card--dojo h2 {
  color: #ffffff;
}

.fighter-profile-card--dojo p:not(.kicker) {
  max-width: 420px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.55;
}

.fighter-dojo-mark {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgb(250 204 21 / 45%);
  border-radius: 999px;
  color: #facc15;
  background: rgb(15 23 42 / 70%);
  box-shadow: inset 0 0 0 8px rgb(255 255 255 / 5%);
}

.fighter-dojo-mark span {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
}

.fighter-profile-card--record {
  grid-column: 1 / -1;
}

.fighter-record-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fighter-record-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #f8fafc;
}

.fighter-record-main {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
}

.fighter-record-grid dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fighter-record-grid dd {
  margin: 0;
  color: #111827;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1;
}

.fighter-record-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fighter-record-breakdown span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  color: #475569;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.fighter-record-breakdown svg {
  width: 15px;
  height: 15px;
}

.fighter-record-breakdown strong {
  color: #111827;
}

.fighter-profile-card--stats {
  grid-column: 1 / -1;
}

.fighter-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fighter-stat-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7dce2;
  border-top: 4px solid var(--stat-tone, #0f172a);
  border-radius: 8px;
  background: #f8fafc;
}

.fighter-stat-card dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fighter-stat-card dt span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--stat-tone, #0f172a);
  background: rgb(255 255 255 / 80%);
}

.fighter-stat-card dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: #111827;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.fighter-stat-card dd small {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
}

.fighter-stat-track {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.fighter-stat-track span {
  display: block;
  width: var(--stat-fill);
  height: 100%;
  border-radius: inherit;
  background: var(--stat-tone, #0f172a);
}

.fighter-stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.fighter-stat-card--power {
  --stat-tone: #b91c1c;
}

.fighter-stat-card--speed {
  --stat-tone: #0284c7;
}

.fighter-stat-card--endurance {
  --stat-tone: #ca8a04;
}

.fighter-stat-card--flexibility {
  --stat-tone: #16a34a;
}

.fighter-name-frame--editing {
  display: block;
  width: min(520px, 100%);
}

.fighter-name-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(15 23 42 / 78%);
}

.fighter-name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fighters-index-screen {
  display: grid;
  gap: 16px;
}

.fighters-index-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 250 252 / 94%)),
    #ffffff;
}

.fighters-index-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 2.5rem;
  font-weight: 950;
  line-height: 1;
}

.fighters-index-header p:not(.kicker) {
  max-width: 560px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.fighters-index-header .secondary-action,
.fighter-index-action {
  gap: 7px;
}

.fighters-index-header svg,
.fighter-index-action svg,
.fighter-index-card svg {
  width: 16px;
  height: 16px;
}

.fighters-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fighter-index-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgb(15 23 42 / 8%);
}

.fighter-index-card-header {
  display: grid;
  gap: 12px;
}

.fighter-index-card h2 {
  margin: 8px 0 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fighter-index-belt {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fighter-index-belt span {
  width: 28px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--fighter-belt-base) 72%, #020617);
  border-radius: 4px;
  background: var(--fighter-belt-base);
}

.fighter-index-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.fighter-index-stats div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fighter-index-stats dt {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fighter-index-stats dd {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .app-navbar-inner {
    display: grid;
    width: min(100% - 20px, 1180px);
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links {
    justify-content: start;
  }

  .home-panel {
    padding: 28px;
  }

  .about-hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero,
  .changelog-hero {
    display: grid;
    padding: 22px;
  }

  .about-actions {
    justify-content: start;
  }

  .changelog-hero h1 {
    font-size: 2.4rem;
  }

  .changelog-summary,
  .changelog-card-header,
  .changelog-changes li {
    grid-template-columns: 1fr;
  }

  .changelog-card-header {
    display: grid;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-copy {
    padding: 8px 0;
  }

  .fighter-profile-hero,
  .fighter-profile-grid,
  .fighters-index-grid,
  .fighter-record-grid,
  .fighter-stat-grid {
    grid-template-columns: 1fr;
  }

  .fighters-index-header {
    display: grid;
  }

  .fighter-profile-hero {
    min-height: auto;
    padding: 20px;
  }

  .fighter-profile-hero::after {
    right: 12px;
    bottom: -8px;
    font-size: 5rem;
  }

  .fighter-profile-actions {
    justify-content: start;
  }

  .fighter-name-frame h1 {
    font-size: 2.45rem;
  }

  .fighter-profile-card--stats {
    grid-column: auto;
  }

  .fight-screen {
    min-height: auto;
  }

  .fight-hud,
  .fight-stage {
    grid-template-columns: 1fr;
  }

  .fight-hud {
    grid-template-areas:
      "score"
      "player"
      "ai";
  }

  .fighter-summary--player {
    grid-area: player;
  }

  .fighter-summary--ai {
    grid-area: ai;
    text-align: left;
  }

  .fight-controls,
  .fighter-summary--ai .fighter-meta {
    justify-content: start;
  }

  .scoreboard {
    grid-area: score;
  }

  .result-panel,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .fight-stage {
    grid-template:
      "player" auto
      "ai" auto
      "visual" minmax(150px, auto)
      "log" minmax(220px, auto)
      "actions" auto / 1fr;
  }

  .submission-check-overlay {
    padding: 14px;
  }

  .submission-check-lanes {
    grid-template-columns: 1fr;
  }

  .submission-push-button {
    justify-self: center;
    order: 3;
  }

  .fight-opposition-board {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: auto;
    transform: none;
  }

  .fight-opposition-center {
    order: -1;
  }

  .action-deck {
    grid-template-columns: 1fr 1fr;
  }

  .technique-modal-content,
  .technique-outcome-row,
  .technique-outcomes-heading {
    grid-template-columns: 1fr;
  }

  .technique-modal-panel {
    padding: 18px;
  }

  .technique-modal-card {
    order: -1;
  }

  .log-debug {
    grid-template-columns: 1fr;
  }
}
