:root {
  --ink: #151817;
  --muted: #65706b;
  --panel: #ffffff;
  --line: #d8ded9;
  --green: #27a866;
  --green-dark: #126f42;
  --red: #d84040;
  --red-dark: #942c34;
  --gold: #f2bd43;
  --blue: #2469bb;
  --shadow: 0 18px 55px rgba(21, 24, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(39, 168, 102, 0.22), transparent 34%),
    linear-gradient(145deg, #eef4f1 0%, #f8f1e7 55%, #edf2f9 100%);
  overscroll-behavior: none;
}

body.playing {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
}

body.playing * {
  -webkit-user-select: none;
  user-select: none;
}

body.danger .game-panel {
  animation: cameraShake 0.18s linear 4;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

.game-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  align-items: start;
}

.intro-panel,
.login-panel,
.tutorial-panel,
.game-panel,
.victory-clip,
.stat-panel,
.upgrade-panel,
.result-panel {
  width: 100%;
  border: 1px solid rgba(21, 24, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.intro-panel,
.login-panel,
.tutorial-panel,
.victory-clip,
.stat-panel,
.upgrade-panel,
.result-panel {
  padding: 18px;
}

.intro-panel h1,
.login-panel h2,
.tutorial-panel h2,
.victory-clip h2,
.stat-panel h2,
.upgrade-panel h2,
.result-panel h2 {
  margin: 14px 0 12px;
  font-size: 33px;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-panel p,
.login-panel p,
.tutorial-panel p,
.victory-clip p,
.stat-panel p,
.upgrade-panel p,
.result-panel p {
  margin: 0 0 13px;
  color: #3d4a43;
  font-size: 16px;
  line-height: 1.48;
}

.victory-clip {
  position: relative;
  min-height: calc(100svh - 20px);
  display: grid;
  align-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 183, 255, 0.25), transparent 34%),
    linear-gradient(180deg, #f7fbff, #e8f3ff 54%, #f7fbf8);
}

.victory-clip h2 {
  max-width: 360px;
  color: #082b68;
  animation: clipSolution 4.2s ease both;
}

.victory-clip p {
  color: #082b68;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 1000;
  animation: clipSolution 4.2s ease both;
}

.victory-clip p a {
  color: #0b4f96;
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 79, 150, 0.34);
}

.consult-cta {
  margin: 14px 0 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 183, 255, 0.14), transparent 38%),
    linear-gradient(160deg, #f7fbff, #eaf3fb);
  color: #082b68;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
  border: 1px solid rgba(11, 79, 150, 0.16);
  box-shadow: 0 8px 18px rgba(8, 43, 104, 0.1);
}

.stat-panel .consult-cta,
.result-panel .consult-cta {
  margin: 14px 0 12px;
  color: #082b68;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 900;
}

.consult-cta a {
  color: #0b4f96;
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 79, 150, 0.22);
}

.clip-close-button {
  position: absolute;
  z-index: 12;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 43, 104, 0.95);
  color: white;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(8, 43, 104, 0.25);
}

.panel-logo {
  width: min(214px, 64vw);
  height: auto;
  display: block;
  margin-bottom: 4px;
}

.stat-panel {
  position: relative;
  min-height: calc(100svh - 20px);
  display: grid;
  align-content: stretch;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 11%, transparent 11% 23%, rgba(255, 255, 255, 0.06) 23% 34%, transparent 34%),
    linear-gradient(180deg, #071b45 0%, #0b4f96 42%, #eef6ff 42%, #f8fbf7 100%);
}

.stat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0 44%, transparent 64%);
  pointer-events: none;
}

.stat-panel > * {
  position: relative;
}

.stat-brand {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.stat-brand .panel-logo {
  width: min(260px, 72vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.stat-brand span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.stat-card {
  position: relative;
  min-height: 330px;
  padding: 20px;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98)),
    linear-gradient(135deg, rgba(11, 79, 150, 0.12) 0 22%, transparent 22% 100%);
  border: 1px solid rgba(8, 43, 104, 0.14);
  box-shadow: 0 24px 60px rgba(8, 43, 104, 0.22);
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -22px;
  width: 160px;
  height: 160px;
  border: 22px solid rgba(11, 79, 150, 0.08);
  border-radius: 50%;
}

.stat-card > * {
  position: relative;
}

.stat-card strong {
  width: 100%;
  display: block;
  margin: 16px 0 16px;
  padding: 18px 14px 16px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 230, 163, 0.94), rgba(255, 246, 213, 0.92)),
    linear-gradient(160deg, #082b68, #0b4f96);
  color: #082b68;
  font-size: clamp(58px, 17vw, 88px);
  line-height: 0.88;
  font-weight: 1000;
  box-shadow: inset 0 -8px 0 rgba(8, 43, 104, 0.08), 0 16px 28px rgba(8, 43, 104, 0.14);
}

.stat-card h2 {
  margin: 0 0 14px;
  color: #082b68;
  font-size: 24px;
  line-height: 1.04;
}

.stat-card p {
  margin: 0 0 18px;
  color: #2f3e39;
  font-size: 16px;
  line-height: 1.38;
}

.stat-card small {
  width: fit-content;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b4f96;
  font-size: 12px;
  font-weight: 900;
}

.stat-panel .consult-cta {
  margin: 0;
  box-shadow: 0 8px 18px rgba(8, 43, 104, 0.1);
}

.stat-panel .primary-button {
  margin-top: 0;
  background:
    linear-gradient(160deg, #151817, #082b68);
  box-shadow: 0 14px 30px rgba(8, 43, 104, 0.24);
}

.upgrade-panel {
  min-height: calc(100svh - 20px);
  display: grid;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(242, 189, 67, 0.3), transparent 26%),
    radial-gradient(circle at 100% 18%, rgba(96, 183, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #ffffff, #eef6ff 56%, #f8fbf7);
}

.upgrade-panel .panel-logo {
  width: min(238px, 70vw);
}

.upgrade-panel h2 {
  margin-top: 6px;
  color: #082b68;
}

.upgrade-list {
  display: grid;
  gap: 10px;
}

.upgrade-choice {
  width: 100%;
  min-height: 82px;
  padding: 13px 14px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(96, 183, 255, 0.2), transparent 38%);
  color: #082b68;
  border: 1px solid rgba(8, 43, 104, 0.13);
  text-align: left;
  box-shadow: 0 12px 28px rgba(8, 43, 104, 0.12);
}

.upgrade-choice strong {
  font-size: 17px;
  line-height: 1.05;
}

.upgrade-choice span {
  color: #425148;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 800;
}

.clip-stage {
  position: relative;
  height: 330px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(160deg, #0d1b35, #082b68);
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.28), 0 18px 45px rgba(8, 43, 104, 0.22);
}

.clip-debts {
  position: absolute;
  inset: 0;
}

.clip-debts span {
  position: absolute;
  min-width: 76px;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
  animation: clipDebtBreak 4.2s ease both;
}

.clip-debts span:nth-child(1) {
  left: 8%;
  top: 18%;
  background: linear-gradient(160deg, #20a45f, #0b6f3e);
  animation-delay: 0s;
}

.clip-debts span:nth-child(2) {
  right: 9%;
  top: 21%;
  background: linear-gradient(160deg, #ff4d4d, #9b101b);
  animation-delay: 0.12s;
}

.clip-debts span:nth-child(3) {
  left: 13%;
  bottom: 25%;
  background: linear-gradient(160deg, #367ee8, #103a93);
  animation-delay: 0.22s;
}

.clip-debts span:nth-child(4) {
  right: 13%;
  bottom: 21%;
  background: linear-gradient(180deg, #ffdd2d 0 52%, #161616 52% 100%);
  animation-delay: 0.32s;
}

.clip-nssd {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 118px;
  height: 78px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: white;
  color: #082b68;
  font-size: 30px;
  font-weight: 1000;
  box-shadow: 0 0 0 8px rgba(96, 183, 255, 0.18), 0 20px 46px rgba(0, 0, 0, 0.34);
  animation: clipNssdArrive 4.2s ease both;
}

.clip-nssd img {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
}

.clip-shield {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b4f96, #60b7ff);
  color: white;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: 0;
  animation: clipShield 4.2s ease both;
}

.clip-burst {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, rgba(96, 183, 255, 0.35) 9% 24%, transparent 25%),
    conic-gradient(from 20deg, transparent 0 8%, rgba(242, 189, 67, 0.95) 8% 10%, transparent 10% 18%, rgba(96, 183, 255, 0.95) 18% 20%, transparent 20% 100%);
  opacity: 0;
  animation: clipBurst 4.2s ease both;
}

.tutorial-panel {
  min-height: calc(100svh - 20px);
  display: grid;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(96, 183, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #ffffff, #eef6ff 58%, #f8fbf7);
}

.tutorial-panel h2 {
  margin-bottom: 0;
  color: #082b68;
}

.tutorial-panel p {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
}

.tutorial-card {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 30%, rgba(39, 168, 102, 0.18), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(216, 64, 64, 0.18), transparent 30%),
    linear-gradient(160deg, #0d1b35, #082b68);
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.24), 0 18px 45px rgba(8, 43, 104, 0.2);
}

.tutorial-token {
  min-height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 8px;
  color: white;
  text-align: center;
  font-weight: 1000;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.tutorial-token span {
  font-size: 15px;
  text-transform: uppercase;
}

.tutorial-token--nssd {
  background:
    radial-gradient(circle at 30% 20%, #9ed2ff, transparent 34%),
    linear-gradient(160deg, #2f82d8, #082b68);
  animation: nssdFloat 1.1s ease-in-out infinite alternate;
}

.tutorial-token--nssd img {
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 18px;
  background: white;
  object-fit: contain;
}

.tutorial-token--debt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(160deg, #e05b5b, #9b2633);
}

.tutorial-token--debt strong {
  font-size: 30px;
}

.tutorial-slash {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, white, var(--gold), transparent);
  transform: translate(-50%, -50%) rotate(-25deg);
  box-shadow: 0 0 18px rgba(242, 189, 67, 0.55);
}

.nick-label {
  display: block;
  margin: 16px 0 7px;
  color: #425148;
  font-size: 13px;
  font-weight: 900;
}

.nick-input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

.nick-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 105, 187, 0.15);
}

.login-error {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(216, 64, 64, 0.1);
  color: #942c34;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.intro-art {
  position: relative;
  height: 285px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #16201d;
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.3);
}

.result-art {
  height: 238px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #16201d;
}

.result-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.intro-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.56) 100%),
    radial-gradient(circle at 50% 28%, transparent 30%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.intro-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-mark {
  display: inline-grid;
  min-width: 64px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--green-dark);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.brand-logo-chip {
  width: 42px;
  height: 42px;
  padding: 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: white;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(8, 43, 104, 0.16);
}

.tiny-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.secondary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 8px;
  background: #edf2ef;
  color: #334139;
  font-size: 15px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.game-panel {
  height: calc(100svh - 12px);
  min-height: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 247, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(36, 105, 187, 0.18), transparent 32%);
}

.top-hud {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.hud-item {
  min-height: 50px;
  padding: 8px 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.96));
  border: 1px solid rgba(8, 43, 104, 0.12);
  box-shadow: 0 8px 18px rgba(8, 43, 104, 0.1);
}

.hud-item span {
  color: #65706b;
  font-size: 9px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.hud-item strong {
  color: #082b68;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 1000;
}

.battle-arena {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(21, 24, 23, 0.14);
  background:
    radial-gradient(circle at 50% 106%, rgba(36, 105, 187, 0.5), transparent 19%),
    linear-gradient(180deg, transparent 0%, transparent 78%, rgba(36, 105, 187, 0.16) 100%),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 35% 18%, rgba(39, 168, 102, 0.3), transparent 30%),
    radial-gradient(circle at 74% 0%, rgba(216, 64, 64, 0.28), transparent 34%),
    linear-gradient(165deg, #263430 0%, #151c1a 100%);
  background-size: auto, auto, 38px 38px, 38px 38px, auto, auto, auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.battle-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 39% 41%, transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(142, 230, 255, 0.18), transparent 34%);
  pointer-events: none;
}

.arena-flash,
.slice-layer,
.debt-layer {
  position: absolute;
  inset: 0;
}

.arena-flash {
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: rgba(242, 189, 67, 0.46);
}

.arena-flash.good {
  background:
    radial-gradient(circle at 50% 50%, rgba(142, 230, 255, 0.62), transparent 46%),
    rgba(47, 130, 216, 0.28);
}

.arena-flash.active {
  animation: flash 0.42s ease;
}

.arena-status {
  position: absolute;
  z-index: 11;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.arena-status span,
.arena-status strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 999px;
  color: white;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.arena-status span {
  background: rgba(8, 43, 104, 0.82);
}

.arena-status strong {
  background: linear-gradient(160deg, #f2bd43, #e7643a);
  color: #23170c;
  opacity: 0.76;
}

.arena-status strong.pop {
  opacity: 1;
  animation: comboPop 0.34s ease;
}

.lawyer-avatar-card {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 7;
  width: 116px;
  min-height: 148px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 7px 7px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 230, 255, 0.2), transparent 46%),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.lawyer-avatar-card > span,
.lawyer-profile strong {
  color: #082b68;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.lawyer-avatar-card > span {
  width: 100%;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 14px rgba(8, 43, 104, 0.14);
}

.lawyer-profile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 189, 67, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 43, 104, 0.12);
  box-shadow: 0 14px 28px rgba(8, 43, 104, 0.12);
}

.lawyer-profile .lawyer-avatar {
  justify-self: center;
  margin: 10px 0 8px;
  transform: scale(1.16);
  transform-origin: center bottom;
}

.lawyer-profile strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  text-align: left;
}

.lawyer-avatar {
  --suit: #677181;
  --tie: #aeb7c2;
  --hair: #5a3a22;
  --accent: #9aa8bc;
  --glow: rgba(255, 255, 255, 0.18);
  --shine: 0.05;
  --detail: 0;
  position: relative;
  width: 92px;
  height: 112px;
  filter:
    saturate(calc(0.9 + var(--shine) * 0.25))
    drop-shadow(0 14px 14px rgba(0, 0, 0, 0.18));
}

.avatar-glow,
.avatar-hair,
.avatar-head,
.avatar-ear,
.avatar-glasses,
.avatar-body,
.avatar-shirt,
.avatar-tie,
.avatar-badge,
.avatar-watch,
.avatar-briefcase {
  position: absolute;
  display: block;
}

.avatar-glow {
  inset: 4px 2px 0;
  border-radius: 34px 34px 18px 18px;
  background:
    radial-gradient(circle at 50% 12%, var(--glow), transparent 42%),
    radial-gradient(circle at 50% 64%, rgba(255, 255, 255, calc(0.08 + var(--shine) * 0.2)), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  opacity: calc(0.74 + var(--shine) * 0.26);
}

.lawyer-avatar::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  z-index: 2;
  height: 55px;
  border-radius: 26px 26px 15px 15px;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(255, 255, 255, 0.14) 0 12%, transparent 13%),
    radial-gradient(ellipse at 82% 42%, rgba(0, 0, 0, 0.16) 0 13%, transparent 14%),
    linear-gradient(90deg, transparent 0 43%, rgba(255, 255, 255, 0.16) 43% 57%, transparent 57%),
    linear-gradient(160deg, var(--suit), #101827);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.lawyer-avatar::after {
  content: "";
  position: absolute;
  left: 37px;
  bottom: 7px;
  z-index: 4;
  width: 18px;
  height: 45px;
  clip-path: polygon(50% 0, 100% 18%, 70% 100%, 30% 100%, 0 18%);
  background: linear-gradient(180deg, var(--tie), #082b68);
  opacity: 0.32;
}

.avatar-body {
  left: 7px;
  right: 7px;
  bottom: 2px;
  z-index: 1;
  height: 61px;
  border-radius: 28px 28px 14px 14px;
  background:
    linear-gradient(180deg, transparent 0 4px, rgba(224, 148, 104, 0.88) 5px 18px, transparent 19px) 50% 0 / 18px 24px no-repeat,
    linear-gradient(128deg, transparent 0 28%, rgba(255, 255, 255, 0.78) 29% 39%, transparent 40%),
    linear-gradient(232deg, transparent 0 28%, rgba(255, 255, 255, 0.78) 29% 39%, transparent 40%),
    radial-gradient(circle at calc(16% + var(--detail) * 7%) 10%, rgba(255, 255, 255, calc(0.1 + var(--shine) * 0.2)), transparent 13%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 46%, rgba(255, 255, 255, 0.14) 46% 54%, rgba(0, 0, 0, 0.08) 54%),
    linear-gradient(160deg, var(--suit), #202a38);
  box-shadow:
    inset 0 -9px 0 rgba(0, 0, 0, 0.15),
    0 10px 16px rgba(0, 0, 0, 0.12);
}

.avatar-body::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 12px;
  height: 9px;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 78%);
  background: rgba(255, 255, 255, 0.78);
  opacity: 0;
}

.avatar-body::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #f2bd43;
  opacity: 0;
}

.avatar-shirt {
  left: 35px;
  bottom: 8px;
  z-index: 2;
  width: 22px;
  height: 50px;
  clip-path: polygon(8% 0, 92% 0, 82% 100%, 18% 100%);
  background: linear-gradient(180deg, #ffffff, #dfe8f2);
}

.avatar-tie {
  left: 42px;
  bottom: 8px;
  z-index: 4;
  width: 8px;
  height: 42px;
  clip-path: polygon(50% 0, 100% 22%, 68% 100%, 32% 100%, 0 22%);
  background: linear-gradient(180deg, var(--tie), #082b68);
  opacity: 0.42;
}

.avatar-head {
  left: 25px;
  top: 10px;
  width: 43px;
  height: 50px;
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 34% 45%, #2b211a 0 2.3px, transparent 3.1px),
    radial-gradient(circle at 66% 45%, #2b211a 0 2.3px, transparent 3.1px),
    radial-gradient(ellipse at 50% 59%, rgba(117, 55, 36, 0.42) 0 2px, transparent 3px),
    radial-gradient(ellipse at 27% 36%, rgba(255, 236, 211, 0.75) 0 12%, transparent 13%),
    linear-gradient(180deg, #ffe0bc, #d18a63);
  box-shadow: inset 0 -5px 0 rgba(142, 71, 45, 0.14);
}

.avatar-head::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 35px;
  width: 15px;
  height: 6px;
  border-bottom: 2px solid rgba(98, 34, 30, 0.68);
  border-radius: 0 0 999px 999px;
  transform: rotate(-2deg);
}

.avatar-ear {
  left: 20px;
  top: 31px;
  z-index: 1;
  width: 53px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d18a63 0 14%, transparent 14% 86%, #d18a63 86%);
}

.avatar-hair {
  left: 21px;
  top: 2px;
  width: 52px;
  height: 35px;
  border-radius: 24px 24px 12px 12px;
  background:
    radial-gradient(circle at 14% 82%, transparent 0 8px, var(--hair) 9px 18px, transparent 19px),
    radial-gradient(circle at 39% 94%, transparent 0 5px, rgba(0, 0, 0, 0.16) 6px 12px, transparent 13px),
    radial-gradient(circle at 48% 14%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 70% 7%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(150deg, #8a5a32, var(--hair));
  z-index: 1;
}

.avatar-head {
  z-index: 2;
}

.avatar-glasses {
  left: 28px;
  top: 33px;
  z-index: 3;
  width: 38px;
  height: 12px;
  opacity: 0;
  background:
    radial-gradient(circle at 10px 6px, transparent 0 5px, #082b68 5px 6px, transparent 7px),
    radial-gradient(circle at 28px 6px, transparent 0 5px, #082b68 5px 6px, transparent 7px),
    linear-gradient(#082b68, #082b68) 16px 6px / 6px 2px no-repeat;
}

.avatar-badge {
  right: 19px;
  bottom: 42px;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    url("assets/nssd-mark.png") center / 10px 10px no-repeat,
    white;
  box-shadow: 0 3px 8px rgba(8, 43, 104, 0.2);
  opacity: 0;
}

.avatar-watch {
  right: 7px;
  bottom: 35px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 35%, transparent 36%),
    linear-gradient(160deg, #f2bd43, #8a5a16);
  opacity: 0;
}

.avatar-briefcase {
  right: -5px;
  bottom: 0;
  z-index: 5;
  width: 29px;
  height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(#f2bd43, #f2bd43) 9px -1px / 8px 5px no-repeat,
    linear-gradient(160deg, #5c3519, #1b1110);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
}

.lawyer-avatar.rank-2 {
  --suit: #37506d;
  --tie: #0b4f96;
}

.lawyer-avatar.rank-2 .avatar-tie {
  opacity: 1;
}

.lawyer-avatar.rank-2::after {
  opacity: 1;
}

.lawyer-avatar.rank-3 {
  --suit: #0b4f96;
  --tie: #f2bd43;
  --accent: #60b7ff;
  --glow: rgba(96, 183, 255, 0.3);
}

.lawyer-avatar.rank-3 .avatar-tie,
.lawyer-avatar.rank-3 .avatar-badge,
.lawyer-avatar.rank-3 .avatar-body::before {
  opacity: 1;
}

.lawyer-avatar.rank-3::after {
  opacity: 1;
}

.lawyer-avatar.rank-4 {
  --suit: #082b68;
  --tie: #f2bd43;
  --hair: #2c1d16;
  --glow: rgba(96, 183, 255, 0.38);
}

.lawyer-avatar.rank-4 .avatar-tie,
.lawyer-avatar.rank-4 .avatar-badge,
.lawyer-avatar.rank-4 .avatar-glasses,
.lawyer-avatar.rank-4 .avatar-body::before {
  opacity: 1;
}

.lawyer-avatar.rank-4::after {
  opacity: 1;
}

.lawyer-avatar.rank-5 {
  --suit: #071b45;
  --tie: #ffe6a3;
  --glow: rgba(242, 189, 67, 0.42);
}

.lawyer-avatar.rank-5 .avatar-tie,
.lawyer-avatar.rank-5 .avatar-badge,
.lawyer-avatar.rank-5 .avatar-glasses,
.lawyer-avatar.rank-5 .avatar-watch,
.lawyer-avatar.rank-5 .avatar-body::before,
.lawyer-avatar.rank-5 .avatar-body::after {
  opacity: 1;
}

.lawyer-avatar.rank-5::after {
  opacity: 1;
}

.lawyer-avatar.rank-6 {
  --suit: #050b18;
  --tie: #f2bd43;
  --glow: rgba(242, 189, 67, 0.56);
}

.lawyer-avatar.rank-6 .avatar-tie,
.lawyer-avatar.rank-6 .avatar-badge,
.lawyer-avatar.rank-6 .avatar-glasses,
.lawyer-avatar.rank-6 .avatar-watch,
.lawyer-avatar.rank-6 .avatar-briefcase,
.lawyer-avatar.rank-6 .avatar-body::before,
.lawyer-avatar.rank-6 .avatar-body::after {
  opacity: 1;
}

.lawyer-avatar.rank-6::after {
  opacity: 1;
}

.lawyer-avatar.rank-6 .avatar-glow {
  box-shadow: 0 0 26px rgba(242, 189, 67, 0.34);
}

.boss-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.boss {
  position: absolute;
  width: 164px;
  min-height: 174px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  text-align: center;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.36));
  animation: bossEnter 0.34s ease both, bossWalk 0.58s ease-in-out infinite alternate;
}

.boss.reverse {
  transform: none;
}

.boss-shadow {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 6px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(3px);
}

.boss-body {
  position: absolute;
  left: 43px;
  top: 62px;
  width: 78px;
  height: 82px;
  border-radius: 22px 22px 12px 12px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.24) 48% 52%, transparent 53%),
    linear-gradient(160deg, #2f1420, #7f1d2a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.boss-tie {
  position: absolute;
  left: 75px;
  top: 70px;
  z-index: 4;
  width: 14px;
  height: 48px;
  clip-path: polygon(50% 0, 100% 22%, 70% 100%, 30% 100%, 0 22%);
  background: linear-gradient(180deg, #f2bd43, #d84040);
}

.boss-arm {
  position: absolute;
  top: 78px;
  width: 25px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(160deg, #2f1420, #7f1d2a);
  transform-origin: top center;
}

.boss-arm--left {
  left: 31px;
  transform: rotate(18deg);
}

.boss-arm--right {
  right: 31px;
  transform: rotate(-22deg);
}

.boss-leg {
  position: absolute;
  top: 132px;
  z-index: 1;
  width: 25px;
  height: 38px;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(180deg, #171b24, #06080e);
}

.boss-leg--left {
  left: 55px;
  transform: rotate(5deg);
}

.boss-leg--right {
  right: 55px;
  transform: rotate(-5deg);
}

.boss-hat {
  position: absolute;
  left: 42px;
  top: 1px;
  z-index: 5;
  width: 80px;
  height: 22px;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(160deg, #171b24, #05060a);
  box-shadow: 0 11px 0 -5px #05060a;
}

.boss-face {
  position: absolute;
  left: 45px;
  top: 10px;
  width: 74px;
  height: 64px;
  display: block;
  border-radius: 42% 42% 46% 46%;
  background:
    linear-gradient(160deg, #ffd2a3, #cc6f48);
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.boss-eye {
  position: absolute;
  top: 35px;
  z-index: 6;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111823;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.boss-eye--left {
  left: 68px;
}

.boss-eye--right {
  right: 68px;
}

.boss-mouth {
  position: absolute;
  left: 72px;
  top: 53px;
  z-index: 6;
  width: 22px;
  height: 10px;
  border-bottom: 4px solid #111823;
  border-radius: 0 0 999px 999px;
}

.boss-phone {
  position: absolute;
  right: 24px;
  top: 90px;
  z-index: 3;
  width: 16px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(160deg, #161616, #4c5667);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.boss-case {
  position: absolute;
  left: 20px;
  top: 112px;
  z-index: 4;
  width: 36px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(160deg, #10131a, #3c4656);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.08);
}

.boss-case::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -6px;
  width: 14px;
  height: 8px;
  border: 3px solid #10131a;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.boss.collector-b .boss-body,
.boss.collector-b .boss-arm {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.22) 48% 52%, transparent 53%),
    linear-gradient(160deg, #1b355f, #081a38);
}

.boss.collector-b .boss-face {
  background: linear-gradient(160deg, #ffe0bc, #b45e3d);
}

.boss.collector-b .boss-hat {
  background: linear-gradient(160deg, #e9edf5, #9aa8bc);
  box-shadow: 0 11px 0 -5px #9aa8bc;
}

.boss.collector-c .boss-body,
.boss.collector-c .boss-arm {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 53%),
    linear-gradient(160deg, #384151, #090b10);
}

.boss.collector-c .boss-face {
  background: linear-gradient(160deg, #627087, #1a2130);
}

.boss.collector-c .boss-eye,
.boss.collector-c .boss-mouth {
  background: #fff;
  border-color: #fff;
}

.boss.collector-c .boss-hat {
  background: linear-gradient(160deg, #10131a, #000);
  box-shadow: 0 11px 0 -5px #000;
}

.boss.collector-c .boss-tie {
  background: linear-gradient(180deg, #8ee6ff, #2a72b0);
}

.boss strong {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 130px;
  z-index: 4;
  font-size: 13px;
  line-height: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.boss small {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 148px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.boss i {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  width: auto;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2bd43, #d84040);
  box-shadow: 0 0 16px rgba(242, 189, 67, 0.4);
}

.boss.hit {
  animation: bossHit 0.18s ease;
}

.boss.defeated {
  animation: debtCut 0.32s ease forwards;
}

.writeoff-burst {
  position: absolute;
  inset: 0;
  z-index: 13;
  display: grid;
  place-items: center;
  align-content: center;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.97), rgba(96, 183, 255, 0.38) 30%, rgba(8, 43, 104, 0.82) 74%);
  color: white;
  pointer-events: none;
  text-align: center;
}

.writeoff-burst img {
  width: 106px;
  height: 106px;
  padding: 18px;
  border-radius: 32px;
  background: white;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
}

.writeoff-burst strong {
  width: min(92%, 340px);
  display: block;
  padding: 12px 14px 14px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 43, 104, 0.92), rgba(11, 79, 150, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 0.95;
  font-weight: 1000;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 18px 36px rgba(8, 43, 104, 0.28);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.writeoff-burst.active img,
.writeoff-burst.active strong {
  animation: writeoffBurst 1.1s ease both;
}

.lawyer-pop {
  position: absolute;
  right: -8px;
  bottom: 8px;
  z-index: 10;
  width: 112px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
}

.lawyer-pop img {
  display: block;
  width: 100%;
  height: auto;
}

.lawyer-pop span {
  position: absolute;
  right: 56px;
  bottom: 106px;
  width: 120px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #082b68;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 10px 20px rgba(8, 43, 104, 0.2);
}

.lawyer-pop span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  border: 8px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.94);
}

.lawyer-pop.active {
  animation: lawyerPop 3.2s ease both;
}

.slice-layer {
  z-index: 8;
  pointer-events: none;
}

.slice-mark {
  position: absolute;
  width: 86px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffffff, var(--gold), transparent);
  transform-origin: left center;
  animation: sliceFade 0.22s ease forwards;
}

.debt {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: center;
  place-items: center;
  gap: 2px;
  padding: 5px 4px 4px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(160deg, #e05b5b, #9b2633);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -9px 16px rgba(0, 0, 0, 0.16),
    0 14px 26px rgba(0, 0, 0, 0.28);
  font-weight: 1000;
  text-align: center;
  line-height: 1;
  overflow: visible;
  will-change: transform;
}

.debt::before {
  content: attr(data-icon);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
  color: rgba(151, 38, 51, 0.95);
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.18);
  font-size: 17px;
  line-height: 1;
}

.debt:not(.nssd-token)::after {
  content: "";
  position: absolute;
  inset: 3px 4px auto;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent);
  pointer-events: none;
}

.debt-label {
  display: block;
  max-width: 100%;
  color: inherit;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.debt-car {
  position: absolute;
  z-index: 7;
  width: 154px;
  height: 64px;
  padding: 0;
  border-radius: 19px 26px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(160deg, #384151, #111823);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(0, 0, 0, 0.34);
  font-weight: 1000;
  text-transform: uppercase;
  will-change: left;
}

.debt-car::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 24px;
  border-radius: 12px 20px 10px 10px;
  background:
    linear-gradient(90deg, #d84040 0 48%, #7c61c7 48% 100%);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.16);
}

.debt-car.reverse {
  transform: scaleX(-1);
}

.debt-car.reverse strong,
.debt-car.reverse small {
  transform: scaleX(-1);
}

.car-roof {
  position: absolute;
  left: 38px;
  top: 8px;
  width: 66px;
  height: 30px;
  border-radius: 18px 22px 6px 6px;
  background: linear-gradient(160deg, #59657a, #202a38);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.car-window {
  position: absolute;
  top: 13px;
  width: 25px;
  height: 16px;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(160deg, #bfe3ff, #2f82d8);
  z-index: 2;
  box-shadow: inset 0 -5px 0 rgba(8, 43, 104, 0.22);
}

.car-window--front {
  left: 70px;
}

.car-window--back {
  left: 43px;
}

.car-light {
  position: absolute;
  right: 7px;
  bottom: 28px;
  width: 10px;
  height: 8px;
  border-radius: 999px;
  background: #ffe6a3;
  box-shadow: 0 0 12px rgba(255, 230, 163, 0.65);
  z-index: 2;
}

.car-monkey {
  position: absolute;
  top: 2px;
  z-index: 3;
  width: 30px;
  height: 34px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.car-monkey--front {
  left: 67px;
}

.car-monkey--back {
  left: 39px;
  width: 27px;
  height: 31px;
}

.debt-car.reverse .car-monkey {
  transform: scaleX(-1);
}

.car-wheel {
  position: absolute;
  bottom: 4px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #9aa3b6 0 4px, #151817 5px 9px, #050607 10px);
  z-index: 2;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1);
}

.car-wheel--front {
  right: 24px;
}

.car-wheel--back {
  left: 24px;
}

.debt-car strong {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 32px;
  z-index: 3;
  display: block;
  font-size: 8px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.debt-car small {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: -16px;
  z-index: 3;
  display: block;
  color: #ffe6a3;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.debt-car.cut {
  animation: vehicleBreak 0.38s ease forwards;
}

.debt-car.hit {
  animation: bossHit 0.16s ease;
}

.debt-car.cut .car-roof {
  transform: translate(-22px, -20px) rotate(-28deg);
}

.debt-car.cut .car-wheel--front {
  transform: translate(30px, 18px) rotate(240deg);
}

.debt-car.cut .car-wheel--back {
  transform: translate(-28px, 17px) rotate(-220deg);
}

.debt-car.cut .car-monkey {
  opacity: 0;
  transform: translateY(-22px) rotate(18deg);
}

.debt-plane {
  position: absolute;
  z-index: 8;
  width: 118px;
  height: 62px;
  color: white;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32));
  will-change: left, top;
}

.debt-plane.reverse {
  transform: scaleX(-1);
}

.debt-plane.reverse strong,
.debt-plane.reverse small {
  transform: scaleX(-1);
}

.plane-body {
  position: absolute;
  left: 18px;
  top: 24px;
  width: 78px;
  height: 18px;
  border-radius: 999px 42px 42px 999px;
  background:
    linear-gradient(90deg, #ffe6a3 0 16%, transparent 16%),
    linear-gradient(160deg, #d84040, #7a1f31);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.2);
}

.plane-body::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 4px;
  border: 5px solid transparent;
  border-left: 16px solid #7a1f31;
}

.plane-wing {
  position: absolute;
  left: 48px;
  width: 42px;
  height: 20px;
  border-radius: 6px 22px 6px 18px;
  background: linear-gradient(160deg, #ff9a76, #9f2f13);
}

.plane-wing--top {
  top: 11px;
  transform: rotate(-18deg);
}

.plane-wing--bottom {
  top: 36px;
  transform: rotate(18deg);
}

.plane-tail {
  position: absolute;
  left: 10px;
  top: 17px;
  width: 24px;
  height: 24px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(160deg, #d84040, #6f1d2c);
}

.debt-plane strong {
  position: absolute;
  left: 7px;
  right: 7px;
  top: -7px;
  z-index: 3;
  font-size: 8px;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.58);
}

.debt-plane small {
  position: absolute;
  left: 30px;
  right: 14px;
  bottom: -14px;
  color: #ffe6a3;
  font-size: 11px;
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.68);
}

.debt-plane--tax .plane-body,
.debt-plane--tax .plane-tail {
  background: linear-gradient(160deg, #7c61c7, #351457);
}

.debt-plane--tax .plane-wing {
  background: linear-gradient(160deg, #bfa8ff, #5f43a8);
}

.debt-plane--court .plane-body,
.debt-plane--court .plane-tail {
  background: linear-gradient(160deg, #384151, #090b10);
}

.debt-plane--court .plane-wing {
  background: linear-gradient(160deg, #9aa3b6, #30343f);
}

.debt-plane.maneuver .plane-body {
  filter: brightness(1.18);
  box-shadow:
    inset 0 5px 0 rgba(255, 255, 255, 0.24),
    -14px 0 18px rgba(255, 230, 163, 0.45);
}

.debt-plane.cut {
  animation: planeBreak 0.38s ease forwards;
}

.debt-plane.cut .plane-body {
  transform: translate(18px, 2px) rotate(14deg);
}

.debt-plane.cut .plane-wing--top {
  transform: translate(30px, -22px) rotate(40deg);
}

.debt-plane.cut .plane-wing--bottom {
  transform: translate(-28px, 24px) rotate(-42deg);
}

.debt-plane.cut .plane-tail {
  transform: translate(-34px, -8px) rotate(-38deg);
}

.debt-plane.hit {
  animation: bossHit 0.16s ease;
}

.debt.sber {
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #20a45f 0 74%, #f2bd43 74% 82%, #41a3e8 82% 91%, #20a45f 91% 100%);
  border: 2px solid rgba(255, 255, 255, 0.44);
}

.debt.sber::before {
  color: #11814a;
  border-radius: 50%;
}

.debt.alfa {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(160deg, #ff4d4d, #9b101b);
}

.debt.alfa::before {
  color: #b81522;
  font-family: Georgia, serif;
  font-weight: 1000;
}

.debt.vtb {
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.24) 16% 22%, transparent 22% 38%, rgba(255, 255, 255, 0.22) 38% 44%, transparent 44% 100%),
    linear-gradient(160deg, #367ee8, #103a93);
}

.debt.vtb::before {
  color: #163f9c;
}

.debt.tbank {
  border-radius: 50% 50% 16px 16px;
  background:
    linear-gradient(180deg, #ffdd2d 0 52%, #161616 52% 100%);
  color: white;
}

.debt.tbank::before {
  background: #161616;
  color: #ffdd2d;
  border-radius: 8px;
}

.debt.sms {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 40%),
    linear-gradient(160deg, #4f98e9, #245ca0);
  border-radius: 14px;
}

.debt.sms::before {
  color: #245ca0;
}

.debt.fast {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 40%),
    linear-gradient(160deg, #4f98e9, #245ca0);
  border-radius: 50%;
}

.debt.fast::before {
  color: #245ca0;
  border-radius: 50%;
}

.debt.tiny {
  width: 44px;
  height: 40px;
  font-size: 9px;
  border-radius: 14px;
}

.debt.tiny::before {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 13px;
}

.debt.claim,
.debt.heavy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(160deg, #7c61c7, #3c2c73);
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.debt.claim::before,
.debt.heavy::before {
  color: #3c2c73;
}

.debt.tricky {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 40%),
    linear-gradient(160deg, #e7649a, #8a255c);
  animation: trickyPulse 0.75s ease-in-out infinite alternate;
}

.debt.tricky::before {
  color: #8a255c;
}

.debt.splitter,
.debt.fragment {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(160deg, #ef9d3d, #9f431c);
}

.debt.splitter::before,
.debt.fragment::before {
  color: #9f431c;
}

.debt.chaos {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.24), transparent 26%),
    repeating-conic-gradient(from 12deg, rgba(255, 255, 255, 0.12) 0 16deg, transparent 16deg 32deg),
    linear-gradient(160deg, #8e1f66, #351457 54%, #121d45);
  border: 2px solid rgba(255, 214, 92, 0.38);
  box-shadow:
    0 14px 28px rgba(30, 14, 59, 0.34),
    0 0 24px rgba(255, 214, 92, 0.18);
}

.debt.chaos::before {
  color: #5f154d;
}

.debt.freeze {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 42%),
    radial-gradient(circle at 35% 22%, #e4fbff, transparent 34%),
    linear-gradient(160deg, #8ee6ff, #266ea6);
  color: #073147;
  border: 2px solid rgba(210, 245, 255, 0.72);
}

.debt.freeze::before {
  color: #266ea6;
  border-radius: 50%;
}

.debt.penalty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(160deg, #d84040, #6f1d2c);
}

.debt.penalty::before {
  color: #6f1d2c;
}

.debt.bank-call {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 40%),
    linear-gradient(160deg, #6aa6ff, #174983);
}

.debt.bank-call::before {
  color: #174983;
}

.debt.collector {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(160deg, #3b4556, #111823);
}

.debt.collector::before {
  color: #111823;
}

.debt.order {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(160deg, #b08857, #5f351a);
}

.debt.order::before {
  color: #5f351a;
}

.debt.story-debt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 7px, transparent 7px 14px),
    linear-gradient(160deg, #9a314a, #35172d);
  border: 1px solid rgba(255, 230, 163, 0.34);
}

.debt.story-debt::before {
  color: #6a2340;
}

.debt.story-debt .debt-label {
  max-width: 96%;
  white-space: normal;
  font-size: 9px;
  line-height: 0.95;
}

.debt.story-debt.medium .debt-label {
  font-size: 10px;
}

.debt.story-debt.large .debt-label {
  font-size: 11px;
}

.debt.mfo {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(160deg, #ff7a3d, #9f2f13);
}

.debt.mfo::before {
  color: #9f2f13;
}

.debt.arrest {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 7px, transparent 7px 14px),
    linear-gradient(160deg, #30343f, #090b10);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.debt.arrest::before {
  color: #10131a;
}

.debt.nssd-token {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  grid-template-rows: 1fr;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 42%),
    radial-gradient(circle at 30% 20%, #9ed2ff, transparent 34%),
    linear-gradient(160deg, #2f82d8, #082b68);
  color: white;
  border: 2px solid rgba(210, 235, 255, 0.72);
  box-shadow:
    0 0 0 4px rgba(96, 183, 255, 0.14),
    0 16px 30px rgba(0, 0, 0, 0.3);
  animation: nssdFloat 1.1s ease-in-out infinite alternate;
}

.debt.nssd-token::before {
  content: "";
  display: none;
}

.nssd-token-logo {
  width: 46px;
  height: 46px;
  padding: 6px;
  display: block;
  border-radius: 13px;
  background: white;
  object-fit: contain;
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.18);
}

.debt.nssd-token .debt-label {
  display: none;
}

.debt.nssd-token::after {
  content: none;
}

.debt.wounded {
  box-shadow:
    0 0 0 4px rgba(242, 189, 67, 0.36),
    0 0 24px rgba(242, 189, 67, 0.32),
    0 14px 26px rgba(0, 0, 0, 0.28);
  filter: brightness(1.18);
}

.debt.wounded .debt-label::after {
  content: " 1/2";
  color: #ffe6a3;
}

.debt.frozen {
  filter: saturate(0.55) brightness(1.25);
  box-shadow: 0 0 0 4px rgba(142, 230, 255, 0.26), 0 14px 26px rgba(0, 0, 0, 0.28);
}

.debt.small {
  width: 58px;
  height: 48px;
  font-size: 10px;
}

.debt.medium {
  width: 78px;
  height: 60px;
  font-size: 12px;
}

.debt.large {
  width: 104px;
  height: 78px;
  font-size: 13px;
}

.debt.cut {
  animation: debtSmash 0.34s ease forwards;
}

.debt.cut::before {
  transform: translate(-16px, -14px) rotate(-26deg);
}

.debt.cut .debt-label {
  transform: translate(16px, 10px) rotate(12deg);
}

.debris {
  position: absolute;
  z-index: 18;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  pointer-events: none;
  background: var(--spark);
  box-shadow:
    0 0 10px var(--spark),
    0 2px 8px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  animation: debrisFly 0.62s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

.debris--plane,
.debris--plane-hit {
  border-radius: 999px 4px 999px 4px;
}

.debris--car {
  width: 11px;
  height: 7px;
  border-radius: 2px;
}

.bottom-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  margin-top: 6px;
}

.writeoff-card {
  border: 1px solid rgba(21, 24, 23, 0.1);
  border-radius: 8px;
  background: white;
  box-shadow: 0 9px 20px rgba(21, 24, 23, 0.09);
}

.writeoff-card {
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
}

.writeoff-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.writeoff-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.05;
  color: #082b68;
}

.writeoff-card small {
  display: block;
  grid-column: 1 / -1;
  margin-top: -2px;
  color: #425148;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.writeoff-meter {
  position: relative;
  height: 12px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9f5;
}

.writeoff-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b4f96, #60b7ff);
  box-shadow: 0 0 18px rgba(96, 183, 255, 0.5);
  transition: width 0.2s ease;
}

.lawyer-button {
  min-height: 58px;
  border-radius: 8px;
  padding: 8px 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.38), transparent 44%),
    linear-gradient(160deg, #0b4f96, #082b68);
  color: white;
  box-shadow: 0 9px 20px rgba(8, 43, 104, 0.24);
  text-align: left;
  font-weight: 1000;
}

.lawyer-button span,
.lawyer-button strong {
  display: block;
}

.lawyer-button span {
  font-size: 12px;
  line-height: 1.1;
}

.lawyer-button strong {
  margin-top: 6px;
  font-size: 15px;
}

.lawyer-button.super-ready {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.55), transparent 44%),
    linear-gradient(160deg, #f2bd43, #d84040);
  color: #201307;
  box-shadow:
    0 0 0 4px rgba(242, 189, 67, 0.22),
    0 12px 28px rgba(216, 64, 64, 0.28);
  animation: lawyerPulse 0.72s ease-in-out infinite alternate;
}

.lawyer-button.super-fired {
  animation: lawyerFire 0.48s ease;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.58;
}

.message {
  min-height: 34px;
  margin: 7px 2px 0;
  color: #425148;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.leaderboard {
  margin: 16px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.personal-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.personal-progress span {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f4f8fb;
  border: 1px solid rgba(11, 79, 150, 0.12);
}

.personal-progress b,
.personal-progress small {
  display: block;
}

.personal-progress b {
  color: #082b68;
  font-size: 15px;
  line-height: 1.1;
}

.personal-progress small {
  margin-top: 3px;
  color: #6d756f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.badge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.badge-medal {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: 1fr auto;
  gap: 6px 10px;
  align-items: end;
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(160deg, #eff3f7, #d8dee5);
  color: #7d8790;
  border: 1px solid rgba(66, 81, 72, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(8, 43, 104, 0.08);
}

.badge-medal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 44%, rgba(255, 255, 255, 0.44) 45% 47%, transparent 48%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.72), transparent 14%);
  pointer-events: none;
}

.badge-medal::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 32px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  background: rgba(114, 126, 139, 0.2);
}

.badge-medal i {
  position: relative;
  z-index: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.84), transparent 27%),
    linear-gradient(160deg, #cfd7e0, #75808d);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.14),
    0 8px 14px rgba(8, 43, 104, 0.18);
}

.badge-medal i::after {
  content: "★";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.badge-medal b {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 16px;
  color: currentColor;
  font-size: 12px;
  line-height: 1.06;
  font-weight: 1000;
}

.badge-medal a,
.badge-medal button,
.badge-medal small {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: inherit;
  font-size: 9px;
  font-weight: 1000;
  text-decoration: none;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.58);
  opacity: 0.92;
}

.badge-medal button {
  cursor: pointer;
}

.badge-medal.unlocked {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 183, 255, 0.42), transparent 42%),
    radial-gradient(circle at 10% 92%, rgba(242, 189, 67, 0.26), transparent 34%),
    linear-gradient(160deg, #f9fbff, #dceeff);
  color: #082b68;
  border-color: rgba(11, 79, 150, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(8, 43, 104, 0.12);
}

.badge-medal.unlocked::after {
  background: linear-gradient(180deg, #f2bd43, #d98b25);
}

.badge-medal.unlocked i {
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.88), transparent 27%),
    linear-gradient(160deg, #f8dd73, #f2bd43 42%, #0b4f96);
  outline: 3px solid rgba(255, 255, 255, 0.8);
}

.badge-medal.fresh {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(160deg, #fff0b7, #e8f3ff 62%, #d9ecff);
  color: #082b68;
  border-color: rgba(242, 189, 67, 0.56);
  box-shadow:
    0 0 0 3px rgba(242, 189, 67, 0.13),
    0 14px 28px rgba(242, 189, 67, 0.24);
}

.badge-medal.fresh a,
.badge-medal.fresh button {
  background: #082b68;
  color: white;
  border-color: #082b68;
}

.badge-share-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 38, 0.72);
  backdrop-filter: blur(12px);
}

.badge-share-panel.hidden {
  display: none;
}

.badge-share-card {
  position: relative;
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(4, 18, 42, 0.36);
  text-align: center;
}

.badge-share-card h2 {
  margin: 4px 42px 12px;
  color: #082b68;
  font-size: 22px;
  line-height: 1.05;
}

.badge-share-card img {
  display: block;
  width: min(100%, 330px);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 12px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(8, 43, 104, 0.18);
}

.badge-share-card p {
  margin: 0 0 14px;
  color: #41524a;
  font-size: 13px;
  line-height: 1.35;
}

.badge-share-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4fb;
  color: #082b68;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.badge-share-actions {
  display: grid;
  gap: 9px;
}

.secondary-button {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(8, 43, 104, 0.18);
  background: #eef4fb;
  color: #082b68;
  font-size: 14px;
  font-weight: 1000;
  text-decoration: none;
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 38, 0.68);
  backdrop-filter: blur(14px);
}

.contact-panel.hidden {
  display: none;
}

.contact-card {
  position: relative;
  width: min(440px, 100%);
  padding: 22px 18px 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 183, 255, 0.22), transparent 34%),
    #ffffff;
  border: 1px solid rgba(8, 43, 104, 0.12);
  box-shadow: 0 24px 74px rgba(4, 18, 42, 0.34);
}

.contact-card .panel-logo {
  width: min(230px, 72%);
  margin: 0 auto 10px;
}

.contact-card h2 {
  margin: 7px 42px 8px 0;
  color: #082b68;
  font-size: 25px;
  line-height: 1.02;
}

.contact-card p {
  margin: 0 0 14px;
  color: #41524a;
  font-size: 14px;
  line-height: 1.38;
}

.contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4fb;
  color: #082b68;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.contact-label {
  display: block;
  margin: 0 0 6px;
  color: #082b68;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.contact-input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 11px;
  padding: 12px 13px;
  border: 1px solid rgba(8, 43, 104, 0.18);
  border-radius: 12px;
  background: #f7fbff;
  color: #082b68;
  font-size: 17px;
  font-weight: 800;
  outline: none;
}

.contact-input:focus {
  border-color: #0b4f96;
  box-shadow: 0 0 0 3px rgba(11, 79, 150, 0.12);
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  margin: 0 0 11px;
  color: #41524a;
  font-size: 11px;
  line-height: 1.28;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #082b68;
}

.contact-error {
  margin: 0 0 10px !important;
  color: #b3262e !important;
  font-size: 12px !important;
  font-weight: 900;
}

.contact-card .primary-button {
  width: 100%;
  margin-bottom: 9px;
}

.leaderboard h3 {
  margin: 0 0 9px;
  font-size: 16px;
}

.leaderboard-cats {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.leaderboard-cats span {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  background: white;
  color: #082b68;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(8, 43, 104, 0.08);
}

.leaderboard ol {
  margin: 0;
  padding-left: 24px;
  color: #425148;
  font-weight: 800;
}

.leaderboard li + li {
  margin-top: 6px;
}

.shake {
  animation: cameraShake 0.22s ease;
}

@keyframes nssdFloat {
  100% {
    filter: brightness(1.16);
    box-shadow:
      0 0 0 6px rgba(96, 183, 255, 0.18),
      0 18px 34px rgba(0, 0, 0, 0.32);
  }
}

@keyframes flash {
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes trickyPulse {
  100% {
    filter: brightness(1.18) saturate(1.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -9px 16px rgba(0, 0, 0, 0.16),
      0 0 0 4px rgba(231, 100, 154, 0.22),
      0 14px 28px rgba(0, 0, 0, 0.3);
  }
}

@keyframes sliceFade {
  100% {
    opacity: 0;
    transform: scaleX(1.4);
  }
}

@keyframes debtCut {
  100% {
    opacity: 0;
    transform: scale(1.55) rotate(18deg);
  }
}

@keyframes debtSmash {
  38% {
    opacity: 1;
    filter: brightness(1.35) saturate(1.35);
    transform: scale(1.16) rotate(-8deg);
  }
  100% {
    opacity: 0;
    filter: brightness(1.8) saturate(0.7);
    transform: scale(0.5) rotate(36deg);
  }
}

@keyframes vehicleBreak {
  35% {
    opacity: 1;
    filter: brightness(1.28) saturate(1.35);
    transform: translateY(-7px) scale(1.05) rotate(-3deg);
  }
  100% {
    opacity: 0;
    filter: brightness(1.5) saturate(0.65);
    transform: translateY(18px) scale(0.54) rotate(22deg);
  }
}

@keyframes planeBreak {
  30% {
    opacity: 1;
    filter: brightness(1.35) saturate(1.35) drop-shadow(0 0 18px rgba(255, 209, 102, 0.7));
    transform: scale(1.08) rotate(-8deg);
  }
  100% {
    opacity: 0;
    filter: brightness(1.8) saturate(0.7) drop-shadow(0 0 4px rgba(255, 209, 102, 0));
    transform: translateY(16px) scale(0.48) rotate(30deg);
  }
}

@keyframes debrisFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2) rotate(var(--rot));
  }
}

@keyframes comboPop {
  50% {
    transform: scale(1.14);
    filter: brightness(1.16);
  }
}

@keyframes bossEnter {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bossWalk {
  100% {
    margin-top: 5px;
  }
}

@keyframes bossHit {
  35% {
    transform: translateX(-8px) rotate(-2deg);
  }
  70% {
    transform: translateX(8px) rotate(2deg);
  }
}

@keyframes writeoffBurst {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.82);
  }
  45%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lawyerPulse {
  100% {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.08);
  }
}

@keyframes lawyerFire {
  45% {
    transform: scale(1.08);
    filter: brightness(1.22);
  }
}

@keyframes lawyerPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.88);
  }
  16%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

@keyframes clipNssdArrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -180%) scale(0.58) rotate(-8deg);
  }
  26% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
  }
  48%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes clipDebtBreak {
  0%,
  34% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1);
  }
  58% {
    opacity: 1;
    transform: translateY(-8px) rotate(8deg) scale(1.05);
    filter: brightness(1.25);
  }
  100% {
    opacity: 0;
    transform: translateY(105px) rotate(34deg) scale(0.35);
    filter: brightness(1.4);
  }
}

@keyframes clipShield {
  0%,
  42% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.82);
  }
  62%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes clipBurst {
  0%,
  45% {
    opacity: 0;
    transform: scale(0.28) rotate(0deg);
  }
  62% {
    opacity: 1;
    transform: scale(1) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.35) rotate(42deg);
  }
}

@keyframes clipTitleSwap {
  0%,
  56% {
    color: #942c34;
    transform: translateY(0);
  }
  76%,
  100% {
    color: #082b68;
    transform: translateY(-2px);
  }
}

@keyframes clipSolution {
  0%,
  50% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  70%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cameraShake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media (max-width: 380px) {
  .game-shell {
    padding: 6px;
  }

  .game-panel {
    height: calc(100svh - 12px);
    min-height: 0;
    padding: 8px;
  }

  .intro-art {
    height: 235px;
  }

  .result-art {
    height: 205px;
  }

  .battle-arena {
    min-height: 0;
  }
}
