:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #111318;
  color: #eef1f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(39, 84, 117, 0.34), transparent 38%),
    linear-gradient(320deg, rgba(143, 82, 58, 0.26), transparent 42%),
    #111318;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.search-panel {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #91c7d9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  margin: 18px 0 0;
  max-width: 680px;
  color: #c8ced6;
  font-size: 17px;
  line-height: 1.7;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 360px) 112px;
  gap: 10px;
}

input,
button {
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font: inherit;
}

input {
  min-width: 0;
  padding: 0 14px;
  color: #f7f9fb;
  background: rgba(255, 255, 255, 0.08);
}

button {
  color: #101318;
  background: #a7d7e2;
  font-weight: 700;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.turnstile-slot {
  grid-column: 1 / -1;
  min-height: 68px;
}

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

article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

article span,
article strong {
  display: block;
}

article span {
  color: #9ba5af;
  font-size: 13px;
}

article strong {
  margin-top: 8px;
  font-size: 20px;
}

.result {
  margin-top: 24px;
}

.notice {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.78);
  color: #dce3ea;
}

.notice small {
  display: inline-block;
  margin-top: 8px;
  color: #9faab5;
  line-height: 1.5;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-band span,
.section-head p,
.character-head span,
.skill-list p,
dt {
  color: #aab4bf;
}

.profile-band h2 {
  margin: 6px 0 10px;
  font-size: 44px;
  line-height: 1.05;
}

.profile-band p {
  margin: 0;
  color: #dbe1e8;
}

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

dt,
dd {
  margin: 0;
}

dd {
  margin-top: 4px;
  font-weight: 700;
}

.section-head {
  margin: 26px 0 14px;
}

.section-head h3 {
  margin: 0;
  font-size: 28px;
}

.section-head p {
  margin: 8px 0 0;
}

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

.character-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding-top: 220px;
}

.character-art {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62%, 340px);
  height: 240px;
  object-fit: contain;
  object-position: top right;
  opacity: 0.98;
  pointer-events: none;
}

.tiny-icon,
.fork-icon,
.chip-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: -4px;
}

.vehicle-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  float: right;
}

.character-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.character-head strong {
  margin-top: 4px;
}

.character-head em {
  flex: 0 0 auto;
  color: #9fd1dc;
  font-style: normal;
  font-weight: 700;
}

.stat-line,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-block {
  margin-top: 14px;
}

.detail-block b {
  display: block;
  margin-bottom: 6px;
  color: #dfe7ef;
  font-size: 13px;
}

.detail-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-line span,
.chip-row span,
.detail-block span {
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe4ec;
  font-size: 13px;
}

.detail-block small {
  display: block;
  margin-top: 3px;
  color: #99a8b6;
  font-size: 11px;
  line-height: 1.35;
}

.skill-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  min-width: 0;
}

.skill-list b,
.skill-list span {
  display: inline-block;
  margin-right: 8px;
}

.skill-list p {
  margin: 4px 0 0;
  line-height: 1.55;
}

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

@media (max-width: 680px) {
  .search-form,
  .status-grid,
  .profile-band,
  .character-grid,
  .asset-grid,
  dl {
    grid-template-columns: 1fr;
  }
}
