* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 0, #ffe5b8, transparent 50%),
    radial-gradient(ellipse at 100% 80%, #ffe0ed, transparent 50%), #fff9f0;
  color: #303952;
  font-family:
    system-ui,
    -apple-system,
    "Microsoft YaHei",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 5%;
}

.brand {
  font-size: 28px;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #ee657d;
}

.brand span {
  font-style: normal;
  font-size: 14px;
  color: #717889;
  margin-left: 16px;
}

header small {
  font-size: 14px;
  color: #64768a;
}

main {
  max-width: 1400px;
  margin: auto;
  padding: 12px 5% 30px;
}

.eyebrow {
  font-size: 14px;
  color: #cb5877;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 15px 0;
}

h1 em {
  font-style: normal;
  color: #ed7187;
}

.intro {
  font-size: 18px;
  color: #70788b;
  margin: 15px 0 30px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  border: 2px solid white;
  border-radius: 28px;
  overflow: hidden;
  background: #fffffff0;
  box-shadow: 0 15px 50px #bc899325;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.cover {
  height: clamp(185px, 24vw, 320px);
  position: relative;
  overflow: hidden;
}

.cover svg,
.cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tag {
  position: absolute;
  left: 20px;
  top: 18px;
  background: #ffffffdc;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.card-copy {
  padding: 22px 28px;
}

.card h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.card p {
  color: #69798c;
  margin: 10px 0;
  font-size: 15px;
}

.card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.go {
  background: linear-gradient(110deg, #ff698b, #ff9655);
  color: white;
  border-radius: 16px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 800;
}

.glide .go {
  background: linear-gradient(110deg, #7263d9, #b67ddd);
}

.meta {
  font-size: 13px;
  color: #6c798a;
}

.bottom {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: 22px;
  background: #ffffffb9;
}

.bottom h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.bottom p {
  margin: 7px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #68758b;
}

.settings {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

input,
select {
  font: inherit;
  border: 1px solid #ebdce2;
  border-radius: 10px;
  padding: 8px;
  background: white;
  color: #344561;
}

input {
  width: 75px;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #9594a3;
  padding: 0 15px 24px;
}

.status {
  color: #20856a !important;
}

a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid #2f8cff;
}

@media (max-width: 650px) {
  header {
    padding: 20px;
  }

  .brand {
    font-size: 23px;
  }

  .brand span {
    font-size: 11px;
    margin-left: 8px;
  }

  header small {
    display: none;
  }

  main {
    padding: 0 18px 22px;
  }

  h1 {
    font-size: 32px;
    margin: 12px 0;
  }

  .intro {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cover {
    height: 175px;
  }

  .card {
    border-radius: 22px;
  }

  .card-copy {
    padding: 17px 20px;
  }

  .card h2 {
    font-size: 22px;
  }

  .card p {
    font-size: 12px;
  }

  .card .actions {
    margin-top: 12px;
  }

  .go {
    font-size: 13px;
    padding: 10px 15px;
  }

  .meta {
    font-size: 11px;
  }

  .bottom {
    grid-template-columns: 1fr;
    padding: 19px;
    gap: 15px;
  }

  .tag {
    font-size: 11px;
    left: 14px;
    top: 13px;
  }

  .bottom p {
    font-size: 12px;
  }

  footer {
    font-size: 10px;
  }
}

@media (min-width: 651px) and (max-height: 850px) {
  header {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  main {
    padding-top: 0;
    padding-bottom: 15px;
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    font-size: 43px;
    margin: 10px 0;
  }

  .intro {
    font-size: 16px;
    margin: 10px 0 20px;
  }

  .cover {
    height: 185px;
  }

  .card-copy {
    padding: 15px 23px;
  }

  .card h2 {
    font-size: 24px;
  }

  .card p {
    font-size: 13px;
    margin: 8px 0;
  }

  .card .actions {
    margin-top: 12px;
  }

  .bottom {
    margin-top: 18px;
    padding: 15px 23px;
  }

  .bottom p {
    font-size: 12px;
  }

  .go {
    font-size: 14px;
    padding: 10px 18px;
  }

  footer {
    padding-bottom: 15px;
  }
}

@media (max-width: 650px) {
  .cover {
    height: 130px;
  }

  .card-copy {
    padding: 14px 17px;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    margin: 8px 0;
  }

  .card .actions {
    margin-top: 10px;
  }

  .go {
    font-size: 12px;
    padding: 10px 13px;
  }

  .intro {
    margin-bottom: 17px;
  }
}

.pulse-back {
  color: #176b68;
  font-weight: 750;
  text-decoration: none;
  padding: 10px 14px;
  background: #ffffffdb;
  border-radius: 15px;
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pulse-back {
    font-size: 13px;
  }
}
.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-copy h2 {
  font-size: clamp(22px, 2vw, 32px);
}
.card-copy .actions {
  flex-wrap: wrap;
  gap: 12px;
}
.near-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.near-options a {
  color: #205b70;
  background: #fff9;
  padding: 10px 15px;
  border-radius: 16px;
  text-decoration: none;
}
@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .cards .neck { order: -1; border-width: 2px; box-shadow: 0 8px 24px #459a9140; }
  .near-options {
    font-size: 14px;
  }
}

.card { --theme: #e77862; display: flex; flex-direction: column; min-width: 0; }
.glide { --theme: #9380cf; }
.fingers { --theme: #e77698; }
.neck { --theme: #459a91; }
.team { --theme: #ad526d; }
.team .go { background: linear-gradient(110deg, #bf4b6d, #ba6475); }
.team .team-new { background: #fff7dc; color: #914459; }
.neck .go { background: linear-gradient(110deg, #358d87, #61b091); }
.card-copy { flex: 1; }
.card.recommended { border-color: var(--theme); }
.card.less-suited { opacity: .72; filter: saturate(.55); }
.card.less-suited:hover, .card.less-suited:focus-visible { opacity: 1; filter: none; }
.recommendation { position: absolute; bottom: 12px; right: 14px; background: #fff9f0;
  color: #344561; border-radius: 20px; padding: 7px 12px; font-size: 13px; font-weight: 750; }
.recommended .recommendation { background: var(--theme); color: white; }
.tier-note { color: #286e69; font-weight: 650; }
#last-neck-mode, #last-finger-preset { padding: 0 18px; color: #286e69; font-weight: 650; }
#last-neck-mode { padding: 0; }

/* 2026-10-18 readability pass: no 11px metadata on phones. */
@media (max-width: 650px) {
  .brand span { font-size: 12px; }
  .eyebrow { font-size: 12px; }
  .meta { font-size: 12px; }
  .tag { font-size: 12px; }
  .card p { font-size: 13px; }
  .bottom p { font-size: 13px; }
}

.pulse-back { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 650px) {
  footer { font-size: 12px; }
  .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .near-options a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
