html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(8, 18, 35, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --text: #eff6ff;
  --muted: #cbd5e1;

  --Base:  #0f172a;
  --Text2:      #e5e7eb;
  --Accent:    #f59e0b;
  --Altaccent:#fb923c;
  --Border:    #1e293b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #040816 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}

header {
  background: var(--Base);
  color: var(--Text2);
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 14px 50px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.b-text-muted {
  color: var(--muted);
}

.lede {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 980px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(30, 41, 59, 0.96));
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 18px rgba(8, 15, 32, 0.30);
}

.btn:hover {
  border-color: rgba(125, 211, 252, 0.45);
}

.category {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px 14px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.35);
  margin-bottom: 14px;
}

.category h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #bae6fd;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: stretch;
  padding-bottom: 6px;
  flex-direction: row-reverse;
  scroll-behavior: smooth;
  cursor: ew-resize;
}

.row::-webkit-scrollbar { height: 9px; }
.row::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.22); border-radius: 999px; }

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px;
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  box-shadow: 0 12px 18px rgba(8, 15, 32, 0.35);
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  user-select: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.4);
}

.thumb-wrap {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #172554, #111827);
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-name {
  font-size: 1rem;
  line-height: 1.12;
  font-weight: 700;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.card-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #22d3ee;
  margin: 0 0 6px 0;
}

.meta {
  font-size: 0.82rem;
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .card { width: 190px; min-width: 190px; }
}

@media (max-width: 640px) {
  main { padding: 18px 12px 36px; }
  .card { width: 160px; min-width: 160px; }
  .thumb-wrap { height: 96px; }
}