.ninja-assistant,
.ninja-assistant button,
.ninja-assistant input {
  font-family: 'Poppins', sans-serif;
}

.ninja-assistant {
  --guide-navy: #062f55;
  --guide-blue: #0077ad;
  --guide-orange: #f15a24;
  --guide-orange-action: #FF6500;
  --guide-orange-action-hover: #bd3b10;
  --guide-ink: #202c39;
  --guide-muted: #586676;
  --guide-line: #d7dee7;
  position: fixed;
  z-index: 40;
  left: 24px;
  bottom: 96px;
  color: var(--guide-ink);
}

.ninja-assistant.is-open {
  top: var(--ninja-panel-top, 72px);
  bottom: 12px;
}

.ninja-assistant-greeting {
  position: absolute;
  bottom: 66px;
  left: 18px;
  z-index: 2;
  width: 224px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #c4d0dc;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(6, 47, 85, .16);
  color: var(--guide-navy);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(.98);
  transform-origin: 20px bottom;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-assistant-greeting[hidden] {
  display: none;
}

.ninja-assistant-greeting::after {
  position: absolute;
  bottom: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #c4d0dc;
  border-bottom: 1px solid #c4d0dc;
  background: #fff;
  content: '';
  transform: rotate(45deg);
}

.ninja-assistant-greeting.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ninja-assistant-greeting > span {
  display: inline-block;
  transition: opacity 150ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-assistant-greeting.is-switching > span {
  opacity: 0;
  transform: translateY(2px);
}

.ninja-assistant-greeting.is-typing > span::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: var(--guide-orange);
  content: '';
  vertical-align: -2px;
  animation: guide-greeting-cursor 720ms step-end infinite;
}

@keyframes guide-greeting-cursor {
  50% { opacity: 0; }
}

.ninja-assistant-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 78px;
  overflow: visible;
  border: 1px solid #0a426f;
  border-radius: 11px;
  background: #0a426f;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 3px 8px rgba(6, 47, 85, .24);
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-assistant-launcher svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 7px;
  background: var(--guide-orange);
  color: #fff;
}

.ninja-assistant-mascot {
  display: block;
  position: absolute;
  bottom: -13px;
  left: -8px;
  z-index: 1;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(6, 47, 85, .18));
  pointer-events: none;
}

.ninja-assistant-launcher-arrow {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 1px solid var(--guide-orange);
  border-radius: 50%;
  background: var(--guide-orange);
}

.ninja-assistant-launcher-arrow::after {
  position: absolute;
  top: 50%;
  left: 48%;
  width: 7px;
  height: 7px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  content: '';
  transform: translate(-60%, -50%) rotate(45deg);
}

.ninja-assistant-launcher > span {
  line-height: 1.2;
  white-space: nowrap;
}

.ninja-assistant-launcher:hover {
  border-color: #0d568c;
  background: #0d568c;
  box-shadow: 0 4px 8px rgba(6, 47, 85, .28);
  transform: translateY(-1px);
}

.ninja-assistant-launcher:focus-visible {
  outline: 3px solid rgba(0, 119, 173, .22);
  outline-offset: 2px;
}

.ninja-assistant-launcher:active {
  box-shadow: 0 1px 3px rgba(6, 47, 85, .16);
  transform: translateY(0);
}

@media (min-width: 521px) and (hover: hover) and (pointer: fine) {
  .ninja-assistant-launcher {
    width: 66px;
    padding: 0;
    box-sizing: border-box;
    transition:
      width 420ms cubic-bezier(.34, 1.18, .64, 1),
      border-color 170ms ease,
      background-color 170ms ease,
      box-shadow 170ms ease,
      transform 170ms cubic-bezier(.22, 1, .36, 1);
  }

  .ninja-assistant-launcher > span:not(.ninja-assistant-launcher-arrow) {
    position: absolute;
    top: 50%;
    left: 80px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-6px, -50%);
    transition:
      opacity 160ms ease,
      transform 220ms cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 160ms;
  }

  .ninja-assistant-launcher > .ninja-assistant-launcher-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.92);
    transition:
      opacity 160ms ease,
      transform 220ms cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 160ms;
  }

  .ninja-assistant-launcher:hover,
  .ninja-assistant-launcher:focus-visible {
    width: 272px;
  }

  .ninja-assistant-launcher:hover > span:not(.ninja-assistant-launcher-arrow),
  .ninja-assistant-launcher:focus-visible > span:not(.ninja-assistant-launcher-arrow) {
    visibility: visible;
    opacity: 1;
    transform: translate(0, -50%);
    transition-delay: 110ms, 90ms, 0s;
  }

  .ninja-assistant-launcher:hover > .ninja-assistant-launcher-arrow,
  .ninja-assistant-launcher:focus-visible > .ninja-assistant-launcher-arrow {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition-delay: 130ms, 100ms, 0s;
  }
}

.ninja-assistant.is-open .ninja-assistant-launcher {
  display: none;
}

.ninja-assistant-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 32px));
  height: calc(100dvh - var(--ninja-panel-top, 72px) - 24px);
  max-height: 650px;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #b8c4d0;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(6, 47, 85, .10),
    0 4px 8px rgba(6, 47, 85, .12);
  transform-origin: left bottom;
  animation: guide-panel-in 220ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-assistant-panel[hidden] {
  display: none;
}

.ninja-assistant-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--guide-line);
  background: #fff;
}

.ninja-assistant-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--guide-orange);
  color: #fff;
}

.ninja-assistant-avatar svg {
  width: 26px;
  height: 26px;
}

.ninja-assistant-head h2 {
  margin: 0;
  color: var(--guide-navy);
  font-size: .94rem;
  line-height: 1.25;
}

.ninja-assistant-head div > span {
  display: block;
  margin-top: 2px;
  color: #586676;
  font-size: .66rem;
  font-weight: 500;
}

.ninja-assistant-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #455363;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.ninja-assistant-close:hover,
.ninja-assistant-close:focus-visible {
  background: #eef2f6;
  outline: 2px solid rgba(0, 119, 173, .22);
}

.ninja-assistant-progress {
  display: grid;
  grid-template-columns: repeat(var(--ninja-progress-steps, 3), 1fr);
  gap: 6px;
  padding: 13px 16px 0;
  background: #fff;
}

.ninja-assistant-progress span {
  height: 4px;
  border-radius: 2px;
  background: #dce2e9;
}

.ninja-assistant-progress span.is-current {
  background: var(--guide-orange);
}

.ninja-assistant-progress span.is-complete {
  background: var(--guide-blue);
}

.ninja-assistant-body {
  min-height: 0;
  overflow: hidden;
}

.ninja-assistant-body,
.ninja-assistant-chat,
.ninja-assistant-results-pane {
  scrollbar-width: none;
}

.ninja-assistant-body::-webkit-scrollbar,
.ninja-assistant-chat::-webkit-scrollbar,
.ninja-assistant-results-pane::-webkit-scrollbar {
  display: none;
}

.ninja-assistant-chat {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 22px 20px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scroll-behavior: smooth;
}

.ninja-assistant-results-pane[hidden] {
  display: none;
}

.ninja-assistant-results-pane {
  min-width: 0;
  min-height: 0;
}

.ninja-message {
  width: 100%;
  max-width: 100%;
  animation: guide-content-in 180ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-message > p {
  max-width: 58ch;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #354250;
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

.ninja-message--user {
  display: flex;
  justify-content: flex-end;
}

.ninja-message--user > p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  padding: 8px 10px;
  border: 1px solid #b9d5e4;
  border-radius: 7px;
  background: #eef7fb;
  color: #07557d;
  font-size: .68rem;
  font-weight: 700;
}

.ninja-message--user > p::before {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-blue);
  color: #fff;
  content: '✓';
  font-size: .55rem;
}

.ninja-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ninja-options button,
.ninja-action,
.ninja-budget-form button,
.ninja-result-card {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c7d0da;
  border-radius: 8px;
  background: #fff;
  color: #344252;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.ninja-options button {
  min-height: 48px;
  padding: 11px 13px;
  font-size: .76rem;
}

.ninja-options button:first-child:last-child,
.ninja-options button:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.ninja-options button:hover,
.ninja-options button:focus-visible,
.ninja-options button[aria-pressed="true"],
.ninja-action:hover,
.ninja-action:focus-visible {
  border-color: var(--guide-orange);
  background: #fff7f2;
  color: #963609;
  outline: none;
}

.ninja-options button:disabled,
.ninja-action:disabled,
.ninja-budget-form button:disabled {
  opacity: .5;
  cursor: default;
}

.ninja-message > [data-ninja-target-change] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  border-color: #bccbda;
  background: #f2f7fb;
  color: var(--guide-navy);
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}

.ninja-message > [data-ninja-target-change]:hover:not(:disabled),
.ninja-message > [data-ninja-target-change]:focus-visible {
  border-color: var(--guide-blue);
  background: #e9f3fa;
}

.ninja-message > [data-ninja-target-change]:focus-visible {
  outline: 2px solid var(--guide-blue);
  outline-offset: 2px;
}

.ninja-game-picker {
  width: 100%;
  margin-top: 13px;
}

.ninja-game-search,
.ninja-budget-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #b9c5d1;
  border-radius: 7px;
  background: #fff;
  color: #263441;
  font-size: .7rem;
}

.ninja-game-search::placeholder,
.ninja-budget-form input::placeholder {
  color: #596675;
  opacity: 1;
}

.ninja-game-search:focus,
.ninja-budget-form input:focus {
  border-color: var(--guide-blue);
  outline: 3px solid rgba(0, 119, 173, .14);
}

.ninja-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ninja-game-card {
  position: relative;
  min-width: 0;
}

.ninja-game-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ninja-game-card > span {
  display: grid;
  position: relative;
  grid-template-rows: 64px auto;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid #d1d8e0;
  border-radius: 7px;
  background: #fff;
  color: #364352;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.ninja-game-card > span::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  content: '';
  pointer-events: none;
  transition: border-color 160ms ease;
}

.ninja-game-card > span::before {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-orange);
  color: #fff;
  content: '✓';
  font-size: .62rem;
  line-height: 1;
  opacity: 0;
  transform: scale(.82);
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.22, 1, .36, 1);
}

.ninja-game-card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  background: #e5e9ee;
}

.ninja-game-card b {
  align-self: center;
  padding: 5px 7px;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ninja-game-card input:checked + span {
  border-color: transparent;
  background: #fff7f2;
  color: #8d350d;
}

.ninja-game-card input:checked + span::after {
  border-color: var(--guide-orange);
}

.ninja-game-card input:checked + span::before {
  opacity: 1;
  transform: scale(1);
}

.ninja-game-card input:focus-visible + span {
  outline: 3px solid rgba(241, 90, 36, .22);
  outline-offset: 2px;
}

.ninja-game-card.is-hidden {
  display: none;
}

.ninja-games-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.ninja-games-more[hidden],
.ninja-games-empty[hidden] {
  display: none;
}

.ninja-games-more.is-loading {
  opacity: 1;
  cursor: wait;
}

.ninja-games-more-arrow {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ninja-games-more.is-loading [data-ninja-more-label],
.ninja-games-more.is-loading .ninja-games-more-arrow {
  display: none;
}

.ninja-games-spinner {
  display: none;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ninja-games-spin 700ms linear infinite;
}

.ninja-games-more.is-loading .ninja-games-spinner {
  display: inline-block;
}

.ninja-games-empty {
  color: #344252;
  font-size: .7rem;
}

@keyframes ninja-games-spin {
  to { transform: rotate(360deg); }
}

.ninja-picker-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}

.ninja-budget-form {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.ninja-budget-label {
  color: #263441;
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.35;
}

.ninja-budget-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ninja-budget-input-shell {
  position: relative;
  flex: 1;
  min-width: 0;
}

.ninja-budget-prefix {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  color: #344454;
  font-size: .7rem;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(-50%);
}

.ninja-budget-help {
  color: #596675;
  font-size: .59rem;
  line-height: 1.45;
}

.ninja-picker-actions span {
  margin-right: auto;
  color: var(--guide-muted);
  font-size: .62rem;
}

.ninja-action.is-primary,
.ninja-budget-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  gap: 8px;
  min-width: 112px;
  border-color: var(--guide-orange);
  background: var(--guide-orange);
  color: #fff !important;
  font-size: .90rem;
  text-align: center;
}

.ninja-action.is-primary > span,
.ninja-budget-form button > span {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.ninja-action.is-primary > span:not(.ninja-continue-icon),
.ninja-budget-form button > span:not(.ninja-continue-icon) {
  font-size: .70rem !important;
}

.ninja-continue-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff !important;
}

.ninja-continue-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ninja-budget-warning .ninja-action {
  width: 100%;
  margin-top: 12px;
}

.ninja-action.is-primary:hover,
.ninja-action.is-primary:focus-visible,
.ninja-budget-form button:hover,
.ninja-budget-form button:focus-visible {
  border-color: #d84b18;
  background: #d84b18;
  color: #fff;
  outline: 3px solid rgba(241, 90, 36, .18);
}

.ninja-budget-form input {
  min-width: 0;
  padding-left: 34px;
}

.ninja-thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}

.ninja-message--typing {
  width: fit-content;
  min-width: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f4f7;
}

.ninja-message--typing .ninja-thinking {
  padding: 0;
}

.ninja-thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--guide-orange);
  animation: guide-thinking 900ms infinite ease-in-out;
}

.ninja-message--typing .ninja-thinking i {
  background: #a8b2bd;
}

.ninja-thinking i:nth-child(2) { animation-delay: 120ms; }
.ninja-thinking i:nth-child(3) { animation-delay: 240ms; }

.ninja-results {
  display: grid;
  width: 100%;
  gap: 8px;
}

.ninja-result-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 0;
  padding: 12px;
  box-sizing: border-box;
  cursor: default;
  text-align: left;
}

.ninja-result-card.is-selected {
  border: 2px solid var(--guide-orange);
  background: #fff9f5;
}

.ninja-result-card strong,
.ninja-result-card small {
  display: block;
}

.ninja-result-card strong {
  color: var(--guide-navy);
  font-size: .76rem;
  line-height: 1.35;
}

.ninja-result-card small {
  margin-top: 2px;
  color: #5a6877;
  font-size: .59rem;
  font-weight: 500;
}

.ninja-result-card b {
  display: block;
  margin-top: 0;
  color: #ff0000;
  font-size: clamp(.85rem, 7.6cqw, 1.10rem);
  font-weight: 700;
  white-space: nowrap;
}

.ninja-pc-summary,
.ninja-pc-head,
.ninja-pc-specs {
  display: block;
}

.ninja-pc-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  container-type: inline-size;
  white-space: nowrap;
}

.ninja-pc-payment {
  color: #565c69;
  font-size: clamp(.625rem, 5.4cqw, .75rem);
  font-weight: 400;
  line-height: normal;
}

.ninja-pc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ninja-game-fit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #176647;
  font-size: .59rem;
  font-weight: 700;
  line-height: 1.35;
}

.ninja-game-fit > span:first-child {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #dcefe6;
  color: #176647;
  font-size: .65rem;
}

.ninja-pc-image {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ninja-pc-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 84px;
  max-height: 84px;
  object-fit: contain;
  object-position: center;
}

.ninja-pc-parts {
  display: none;
}

.ninja-pc-summary {
  min-width: 0;
}

.ninja-pc-difference {
  display: block;
  margin-top: 9px;
  color: var(--guide-muted);
  font-size: .65rem;
  font-weight: 500;
  line-height: 1.5;
}

.ninja-technical-notes {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--guide-line);
  color: #455363;
  font-size: .68rem;
  line-height: 1.6;
}

.ninja-technical-notes summary {
  padding: 5px 0;
  color: var(--guide-navy);
  cursor: pointer;
  font-weight: 600;
}

.ninja-technical-notes summary:focus-visible {
  outline: 2px solid var(--guide-blue);
  outline-offset: 3px;
}

.ninja-result-card .ninja-pc-specs {
  display: grid;
  gap: 0;
  margin-top: 10px;
  padding: 7px 0;
  border-top: 1px solid #e6ebf0;
  border-bottom: 1px solid #e6ebf0;
}

.ninja-pc-spec {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 1px 0;
  line-height: 1.4;
}

.ninja-pc-spec-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #eef4f8;
  color: var(--guide-navy);
  font-style: normal;
}

.ninja-pc-spec-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ninja-pc-spec > span {
  min-width: 0;
  color: #263746;
  font-size: .72rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ninja-pc-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--guide-orange);
  box-shadow: 0 3px 8px rgba(196, 65, 17, .22);
  color: #fff;
  font-size: .68rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ninja-pc-tag svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ninja-pc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--guide-orange-action);
  border-radius: 8px;
  background: var(--guide-orange-action);
  color: #fff;
  font-size: .80rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 160ms cubic-bezier(.25, 1, .5, 1), background-color 160ms cubic-bezier(.25, 1, .5, 1), color 160ms cubic-bezier(.25, 1, .5, 1);
}

.ninja-pc-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ninja-pc-action:hover,
.ninja-pc-action:focus-visible {
  border-color: var(--guide-orange-action-hover);
  background: var(--guide-orange-action-hover);
  color: #fff;
}

.ninja-pc-action:focus-visible {
  outline: 3px solid rgba(212, 69, 20, .28);
  outline-offset: 2px;
}

.ninja-pc-action:disabled {
  cursor: wait;
  opacity: .65;
}

.ninja-pc-action:active:not(:disabled) {
  border-color: #a7330d;
  background: #a7330d;
}

.ninja-result-card.is-selected .ninja-pc-action {
  border-color: var(--guide-orange-action);
  background: var(--guide-orange-action);
  color: #fff;
}

.ninja-result-card.is-selected .ninja-pc-action:hover,
.ninja-result-card.is-selected .ninja-pc-action:focus-visible {
  border-color: var(--guide-orange-action-hover);
  background: var(--guide-orange-action-hover);
}

.ninja-prototype-note {
  margin: 2px 0 0;
  padding: 10px 11px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #f6f8fa;
  color: #52606f;
  font-size: .62rem;
  line-height: 1.5;
}

.ninja-assistant-foot {
  display: flex;
  position: relative;
  z-index: 3;
  align-items: center;
  gap: 10px;
  height: 46px;
  min-height: 46px;
  padding: 8px 15px;
  box-sizing: border-box;
  border-top: 1px solid var(--guide-line);
  background: #f7f9fb;
}

.ninja-assistant-foot button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--guide-blue);
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 700;
}

.ninja-assistant-foot button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ninja-assistant-foot button:focus-visible {
  outline: 2px solid rgba(0, 119, 173, .28);
  outline-offset: 2px;
}

.ninja-assistant-foot button:disabled {
  color: #7b8794;
  cursor: default;
}

@keyframes guide-panel-in {
  from { opacity: .3; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes guide-content-in {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes guide-thinking {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (min-width: 960px) {
  .ninja-assistant-panel.has-results {
    width: min(1180px, calc(100vw - 48px));
  }

  .ninja-assistant-panel.has-results .ninja-assistant-body {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .ninja-assistant-panel.has-results .ninja-assistant-chat {
    min-height: 0;
    border-right: 1px solid var(--guide-line);
  }

  .ninja-assistant-results-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 4px 20px;
    container-type: size;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f4f7fa;
  }

  .ninja-assistant-panel.has-results .ninja-results {
    flex: 0 0 auto;
    margin-block: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
  }

  .ninja-assistant-panel.has-results .ninja-results[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ninja-assistant-panel.has-results .ninja-results[data-count="1"] {
    grid-template-columns: minmax(0, 420px);
  }

  .ninja-assistant-panel.has-results .ninja-result-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    padding: 16px;
  }

  .ninja-assistant-panel.has-results .ninja-pc-image {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .ninja-assistant-panel.has-results .ninja-pc-image img {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-width: calc(100% - 28px);
    max-height: min(148px, 100%);
    object-fit: contain;
    object-position: center;
    transform: none;
    clip-path: none;
  }

  .ninja-assistant-panel.has-results .ninja-pc-parts {
    display: flex;
    gap: 6px;
    min-height: 38px;
    margin-top: -6px;
  }

  .ninja-pc-parts > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
  }

  .ninja-pc-parts img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .ninja-assistant-panel.has-results .ninja-pc-summary {
    width: 100%;
  }

  .ninja-assistant-panel.has-results .ninja-pc-action {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .ninja-assistant-panel.has-results .ninja-pc-parts > span {
    flex: 1 1 0;
    min-width: 0;
    max-width: 38px;
  }

}

@media (max-width: 959px) {
  .ninja-assistant-panel.has-results .ninja-assistant-body {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ninja-assistant-panel.has-results .ninja-assistant-chat {
    height: auto;
    overflow: visible;
  }

  .ninja-assistant-results-pane {
    padding: 0 20px 24px;
    background: #fff;
  }
}

@media (max-width: 520px) {
  .ninja-assistant,
  .ninja-assistant.is-open {
    inset: auto 0 0 0;
  }

  .ninja-assistant.is-open {
    z-index: 1800;
  }

  .ninja-assistant-launcher {
    margin: 0 auto 84px 12px;
  }

  .ninja-assistant-greeting {
    position: fixed;
    right: auto;
    bottom: 148px;
    left: 16px;
    width: min(224px, calc(100vw - 32px));
  }

  .ninja-assistant-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .ninja-assistant-chat {
    padding: 20px 15px 24px;
  }

  .ninja-assistant-results-pane {
    padding: 0 15px 24px;
  }

  .ninja-options {
    grid-template-columns: 1fr;
  }

  .ninja-options button {
    grid-column: auto !important;
  }

  .ninja-results {
    gap: 18px;
  }

  .ninja-result-card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 0;
    margin-top: 0;
    padding: 14px;
    border-radius: 10px;
  }

  .ninja-result-card .ninja-pc-summary {
    display: contents;
  }

  .ninja-result-card .ninja-pc-head {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 9px;
  }

  .ninja-result-card strong {
    font-size: .84rem;
  }

  .ninja-result-card b {
    margin-top: 3px;
    font-size: 1.10rem;
  }

  .ninja-result-card .ninja-pc-difference {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 0 10px;
    font-size: .67rem;
    line-height: 1.45;
  }

  .ninja-result-card .ninja-pc-image {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    width: 92px;
    height: 124px;
    border-radius: 7px;
  }

  .ninja-result-card .ninja-pc-image img {
    max-width: 92px;
    max-height: 118px;
  }

  .ninja-result-card .ninja-pc-specs {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    margin-top: 0;
    padding: 3px 0;
  }

  .ninja-result-card .ninja-pc-spec {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 30px;
    padding: 1px 0;
    box-sizing: border-box;
  }

  .ninja-result-card .ninja-pc-spec > span {
    font-size: .7rem;
    line-height: 1.35;
  }

  .ninja-result-card .ninja-pc-action {
    grid-column: 1 / -1;
    grid-row: 4;
    min-height: 44px;
    margin-top: 12px;
    font-size: .77rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ninja-games-spinner {
    animation: none;
  }

  .ninja-assistant-launcher,
  .ninja-assistant-panel,
  .ninja-message,
  .ninja-thinking i {
    animation: none;
    transition: none;
  }

  .ninja-assistant-greeting,
  .ninja-assistant-greeting > span {
    animation: none;
    transition: none;
  }

  .ninja-assistant-chat {
    scroll-behavior: auto;
  }

  .ninja-pc-action {
    transition: none;
  }
}
