@font-face {
  font-family: Riichi Sans;
  src: url(/fonts/interface.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family:
    "Riichi Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input[type="checkbox"] {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  background: transparent;
}
a {
  color: var(--accent);
}
button:hover,
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
button,
select {
  -webkit-tap-highlight-color: color-mix(in srgb,var(--accent) 20%,transparent);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.wrap {
  width: min(1216px, calc(100% - 80px));
  margin-inline: auto;
}
.skip,
.sr {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  background: var(--panel);
  z-index: 10;
  padding: 12px;
}
.mast {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.bar,
.brand,
nav,
.intro,
.exchange,
.fx-line,
.section-head,
.toolbar,
.find,
.list-info,
.list-info > div,
footer .wrap,
.dialog-head {
  display: flex;
  align-items: center;
}
.bar {
  height: 65px;
  gap: 52px;
}
.brand {
  gap: 8px;
  font-size: 24px;
  letter-spacing: -0.08em;
  font-weight: 870;
  text-decoration: none;
  color: var(--ink);
}
.flower {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  font-size: 36px;
  font-style: normal;
  line-height: 1;
  transform: rotate(-13deg);
}
nav {
  align-self: stretch;
  gap: 22px;
}
nav a,
nav button {
  display: grid;
  place-items: center;
  padding: 0;
  font-weight: 680;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
nav .current {
  border-bottom: 3px solid var(--accent);
  padding-top: 3px;
  color: var(--accent);
}
.intro {
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 20px;
}
.intro h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 860;
}
.intro p {
  font-size: 15px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}
.exchange {
  gap: 10px;
}
.jp {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 6px;
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
}
.jp:before {
  content: "";
  border-radius: 50%;
  background: #cc4264;
  width: 11px;
  height: 11px;
}
.fx-line {
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.fx-line strong {
  font-weight: 800;
}
.fx-line button {
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  padding: 4px;
  color: var(--accent);
}
.exchange small {
  color: var(--muted);
  font-size: 12px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric {
  min-width: 0;
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.metric-art {
  height: clamp(135px, 14vw, 177px);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--raised);
  background-image: url(/art/soul.webp);
  background-position: right center;
  background-size: cover;
}
.rc .metric-art {
  background-color: var(--raised);
  background-image: url(/art/city.webp);
}
.metric-copy {
  z-index: 1;
  margin: 0 25px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  color: var(--ink);
}
.rc .metric-copy {
  color: var(--ink);
}
.metric-copy h2 {
  grid-column: 1/-1;
  font-size: 22px;
  font-weight: 820;
  margin: 0 0 12px;
  letter-spacing: -0.06em;
}
.metric-copy > span {
  font-size: 14px;
  font-weight: 700;
  grid-column: 1;
  grid-row: 2;
}
.metric-copy strong {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
  grid-column: 1/-1;
  grid-row: 3;
  font-variant-numeric: tabular-nums;
}
.metric-copy em {
  font-style: normal;
  font-size: 0.46em;
  margin-left: 4px;
  font-weight: 650;
}
.metric small {
  display: block;
  padding: 9px 15px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  min-height: 36px;
}
.metric small:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--control);
  margin-right: 7px;
}
.rc small:before {
  background: var(--control);
}
#compare {
  margin: 26px 0 30px;
  scroll-margin-top: 16px;
}
.section-head,
.toolbar,
.list-info,
.dialog-head {
  justify-content: space-between;
}
.section-head {
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 24px;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.preferences {
  display: flex;
  align-items: center;
  gap: 5px;
}
.preferences label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 620;
}
.preferences label:not(:first-child) {
  margin-left: 7px;
}
select {
  min-height: 33px;
  max-width: 100%;
  background-color: #fff;
  border: 1px solid var(--control);
  border-radius: 6px;
  padding: 5px 24px 5px 9px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 51%,
    calc(100% - 8px) 51%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.catalog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.toolbar {
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.seg {
  display: flex;
  gap: 3px;
}
.seg button {
  padding: 7px 13px;
  font-size: 15px;
  border-radius: 6px;
  font-weight: 720;
  color: var(--muted);
  white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  background: var(--selected);
  color: #fff;
}
.seg button:hover:not([aria-pressed="true"]) {
  background: var(--raised);
}
.find {
  gap: 8px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 0 10px;
}
.search input {
  width: 155px;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  height: 34px;
  font-size: 14px;
}
.search:focus-within {
  outline: 2px solid var(--accent);
}
.search-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--control);
  border-radius: 50%;
  position: relative;
}
.search-icon:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: var(--control);
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg);
}
#toggle-filters {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  min-height: 35px;
  padding: 5px 10px;
  font-weight: 680;
  font-size: 14px;
}
#toggle-filters[aria-expanded="true"] {
  background: var(--raised);
}
.sliders {
  font-style: normal;
  color: var(--muted);
}
#more-filters {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}
#more-filters > label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
#more-filters .method {
  display: flex;
  align-items: center;
  align-self: center;
  color: var(--ink);
}
.method input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
#clear-filters {
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
}
.list-info {
  padding: 6px 15px 6px 18px;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.list-info > div {
  gap: 6px;
}
.list-info select {
  border: 0;
  font-weight: 600;
  background-color: transparent;
  font-size: 13px;
}
.table-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-box th,
.table-box td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.table-box th {
  background: var(--raised);
  font-weight: 660;
  color: var(--muted);
  font-size: 13px;
  padding-block: 9px;
}
.table-box th:first-child,
.table-box td:first-child {
  padding-left: 20px;
}
.table-box td:first-child {
  width: 29%;
}
.table-box td:nth-child(3),
.table-box td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  white-space: nowrap;
}
.table-box td:nth-child(5) {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.table-box td:nth-child(4) {
  font-size: 14px;
}
.table-box td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 3px;
}
.table-box tbody tr:hover {
  background: var(--raised);
}
.product {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 710;
}
.chip,
.discount {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 730;
  white-space: nowrap;
}
.chip.ms {
  background: var(--selected);
  color: var(--accent);
}
.chip.rc {
  background: var(--raised);
  color: var(--ink);
}
.discount {
  background: var(--selected);
  color: var(--accent);
}
.pagination button:hover {
  background: var(--raised);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}
.pagination:empty {
  display: none;
}
.pagination button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 11px;
}
.footnote,
.hint,
footer {
  line-height: 1.6;
  font-size: 13px;
  color: var(--muted);
}
#coverage,
.footnote {
  margin: 8px 3px 0;
}
#coverage:empty {
  display: none;
}
.catalog-feedback:has(> :not([hidden])) {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 16px;
  text-align: center;
}
#empty {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
}
#recover {
  padding: 6px 10px;
  min-height: 36px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 6px;
}
#recover:hover {background:var(--selected);}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
footer .wrap {
  gap: 12px;
}
footer b {
  font-size: 17px;
  color: var(--ink);
}
footer button {
  margin-left: auto;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  padding: 22px;
  width: min(640px, calc(100% - 24px));
  max-height: 86dvh;
  overscroll-behavior: contain;
  box-shadow: 0 16px 60px #0003;
}
dialog::backdrop {
  background: #0007;
}
.dialog-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-head button {
  font-size: 26px;
  background: var(--raised);
  width: 34px;
  height: 34px;
  border-radius: 7px;
  line-height: 1;
}
#dialog-body p {
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0;
}
#dialog-body h3 {
  font-size: 17px;
  margin-top: 20px;
}
.detail-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.detail-grid > div {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.75fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-grid > div:last-child {
  border: 0;
}
.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.detail-grid .dg-head {
  background: var(--raised);
  color: var(--muted);
}
.detail-grid b:last-child {
  text-align: right;
}
.detail-card {
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.detail-card summary {
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.detail-card a {
  font-size: 14px;
}
[hidden],
#more-filters[hidden] {
  display: none;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .table-box td,
  .table-box th {
    padding-inline: 8px;
  }
  .table-box td:first-child {
    width: auto;
  }
  .product {
    gap: 5px;
    flex-wrap: wrap;
  }
  .metric-copy {
    margin: 0 18px;
  }
  .bar {
    gap: 30px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .bar {
    height: 52px;
    gap: 17px;
  }
  .brand {
    font-size: 21px;
    gap: 4px;
  }
  .flower {
    font-size: 28px;
    width: 25px;
  }
  nav {
    gap: 13px;
  }
  nav a,
  nav button {
    font-size: 13px;
  }
  .intro {
    display: block;
    margin: 19px 0 10px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro p {
    font-size: 13px;
    margin-top: 4px;
  }
  .exchange {
    gap: 5px;
    margin-top: 8px;
  }
  .exchange > div {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
  }
  .fx-line {
    gap: 3px;
    font-size: 12px;
  }
  .fx-line button {
    padding: 2px;
    font-size: 15px;
  }
  .exchange small {
    font-size: 12px;
  }
  .jp {
    width: 21px;
    height: 15px;
    border-radius: 3px;
  }
  .jp:before {
    width: 6px;
    height: 6px;
  }
  .summary {
    gap: 8px;
  }
  .metric {
    border-radius: 10px;
  }
  .metric-art {
    height: 98px;
    background-size: auto 100%;
    background-position: 75% center;
  }
  .metric-copy {
    margin-left: 10px;
  }
  .metric-copy h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .metric-copy > span {
    font-size: 12px;
  }
  .metric-copy strong {
    font-size: 29px;
  }
  .metric small {
    font-size: 12px;
    padding: 6px 8px;
    min-height: 39px;
    line-height: 1.3;
  }
  .metric small:before {
    display: none;
  }
  #compare {
    margin: 18px 0;
  }
  .section-head {
    margin-bottom: 8px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .preferences label {
    display: none;
  }
  .preferences select {
    font-size: 12px;
    min-height: 30px;
    padding-left: 7px;
  }
  .toolbar {
    padding: 8px 9px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .seg {
    gap: 1px;
  }
  .seg button {
    font-size: 13px;
    padding: 6px 8px;
  }
  .find {
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
    min-width: 112px;
  }
  .search {
    min-width: 0;
    max-width: 150px;
    flex: 1;
    padding: 0 6px;
    gap: 6px;
  }
  .search input {
    width: 100%;
    height: 29px;
    font-size: 12px;
  }
  .search-icon {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
  }
  #toggle-filters {
    font-size: 12px;
    padding: 3px 5px;
    min-height: 30px;
    white-space: nowrap;
  }
  .sliders {
    display: none;
  }
  .list-info {
    padding: 5px 9px;
    font-size: 12px;
  }
  .list-info > div {
    gap: 0;
  }
  .list-info select {
    font-size: 12px;
    padding-left: 3px;
    min-height: 27px;
  }
  .table-box table,
  .table-box tbody {
    display: block;
  }
  .table-box thead {
    display: none;
  }
  .table-box tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 5px;
    border-top: 1px solid var(--line);
    padding: 9px 11px;
  }
  .table-box td,
  .table-box td:first-child {
    border: 0;
    padding: 0;
    width: auto;
  }
  .table-box td:first-child {
    grid-row: 1;
    grid-column: 1;
  }
  .product {
    font-size: 14px;
  }
  .chip {
    font-size: 12px;
    padding: 1px 4px;
  }
  .table-box td:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
    font-size: 12px;
    color: var(--muted);
  }
  .table-box td:nth-child(3) {
    grid-row: 3;
    grid-column: 1;
    font-size: 13px;
  }
  .table-box td:nth-child(3):before {
    content: "판매가 ";
    font-weight: 500;
    color: var(--muted);
  }
  .table-box td:nth-child(4) {
    grid-row: 4;
    grid-column: 1;
    font-size: 12px;
  }
  .table-box td:nth-child(5) {
    grid-row: 1/3;
    grid-column: 2;
    text-align: right;
    font-size: 17px;
  }
  .table-box td:nth-child(5):before {
    content: "1뽑당 가격";
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
  }
  .table-box td:last-child {
    grid-row: 3/5;
    grid-column: 2;
    text-align: right;
    align-self: end;
  }
  .table-box td small {
    display: inline;
    margin-left: 4px;
    font-size: 12px;
  }
  .discount {
    font-size: 12px;
  }
  #more-filters {
    gap: 8px;
    padding: 9px;
  }
  #more-filters > label {
    font-size: 12px;
  }
  #more-filters select {
    font-size: 13px;
  }
  footer .wrap {
    gap: 6px;
    flex-wrap: wrap;
  }
  footer span {
    font-size: 12px;
  }
  dialog {
    padding: 16px;
  }
  .detail-grid > div {
    padding: 9px;
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  nav {
    gap: 8px;
  }
  .bar {
    gap: 10px;
  }
  .metric-copy strong {
    font-size: 26px;
  }
  .toolbar {
    gap: 5px;
  }
  .seg button {
    padding-inline: 5px;
  }
  .intro p {
    font-size: 12px;
  }
  .find {
    min-width: 92px;
  }
  .search-icon {
    display: none;
  }
  .list-info {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      background-color 0.12s,
      color 0.12s;
  }
}

nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  padding-top: 3px;
}
.game-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 0;
  padding: 22px 30px;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  display: flex;
  align-items: center;
}
.game-banner.rc {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
.game-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(62%, 710px);
  background: url(/art/soul.webp) right 42% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 16%);
}
.game-banner.rc::before {
  background-image: url(/art/city.webp);
}
.banner-copy {
  width: 57%;
}
.game-banner h1 {
  font-weight: 830;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 17px;
}
.benchmarks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 570px;
  gap: 18px;
}
.benchmarks > div {
  min-width: 0;
}
.benchmarks > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.benchmarks span,
.benchmarks small,
.benchmarks strong {
  display: block;
}
.benchmarks span {
  font-size: 13px;
  font-weight: 720;
}
.benchmarks strong {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  margin: 3px 0;
}
.benchmarks em {
  font-size: 0.48em;
  font-weight: 660;
  font-style: normal;
  margin-left: 3px;
}
.benchmarks small {
  font-size: 12px;
  line-height: 1.4;
  word-break: keep-all;
}
#fxbar {
  padding: 7px 0 0;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
#fxbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
#fxbar .jp {
  width: 24px;
  height: 17px;
  border-radius: 3px;
}
#fxbar .jp:before {
  width: 7px;
  height: 7px;
}
#fxbar[hidden],
#more-filters > label[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .game-banner {
    padding: 14px 15px;
    min-height: 152px;
    margin-top: 12px;
    border-radius: 10px;
  }
  .game-banner h1 {
    font-size: 28px;
    margin-bottom: 13px;
  }
  .game-banner::before {
    width: 39%;
    background-size: auto 100%;
    background-position: 85% center;
    mask-image: linear-gradient(to right, transparent, #000 14%);
  }
  .banner-copy {
    width: 68%;
  }
  .benchmarks {
    gap: 6px;
    grid-template-columns: 1fr 1fr;
  }
  .benchmarks > div + div {
    padding-left: 6px;
  }
  .benchmarks span {
    font-size: 12px;
  }
  .benchmarks strong {
    font-size: 25px;
  }
  .benchmarks small {
    font-size: 12px;
    line-height: 1.35;
  }
  #fxbar {
    margin: 0;
    justify-content: flex-start;
  }
  #fxbar > div {
    gap: 4px;
  }
  #fxbar .fx-line {
    font-size: 12px;
  }
}
.game-banner h1,
.benchmarks span,
.section-head h2 {
  word-break: keep-all;
}
@media (max-width: 650px) {
  .game-banner h1 {
    font-size: clamp(21px, 5.8vw, 28px);
    overflow-wrap: anywhere;
  }
  #count {
    word-break: keep-all;
    line-height: 1.4;
  }
}
.mode-nav { display: flex; gap: 24px; margin: 22px 0 14px; border-bottom: 1px solid var(--line); }
.mode-nav a { padding: 10px 2px; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.mode-nav a[aria-current] { color: var(--accent); border-color: currentColor; }
#compare, #skins { scroll-margin-top: 12px; }
.skin-panel { padding: clamp(16px,3vw,32px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin: 0 0 44px; }
.skin-choices { display:flex; gap:6px; flex-wrap:wrap; }
.skin-choices button { border-radius: 18px; padding: 7px 15px; border: 1px solid var(--line); }
.skin-choices button[aria-pressed="true"] { background:var(--selected); border-color:var(--selected); color:white; }
#skin-description { line-height:1.65; color:var(--muted); }
.skin-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 20px; padding-bottom: 16px; }
.skin-form label { display:grid; gap:6px; font-size:14px; font-weight:650; }
.skin-form input[type="number"], .skin-form select { width:150px; max-width:100%; border:1px solid var(--line); background:var(--panel); color:var(--ink); border-radius:7px; padding:8px 10px; }
#skin-method-label {display:flex; align-items:center; min-height:36px;}
.skin-demand {color:var(--muted); margin: 8px 0; }
.skin-demand b {color:var(--ink);}
.skin-plans {list-style:none; padding:0; margin:12px 0;}
.skin-plans li {display:flex; gap:12px; justify-content:space-between; padding:14px 12px; border-bottom:1px solid var(--line); align-items:center;}
.skin-plans li:first-child,.skin-free {background:var(--raised); border-radius:8px;}
.skin-free {padding:16px;}
.skin-plans strong {white-space:nowrap; font-size:clamp(18px,2vw,24px);color:var(--accent);}
.skin-plans small {display:block; margin-top:4px; font-size:13px; color:var(--muted); line-height:1.5;}
.skin-plans li > div:last-child {text-align:right;}
#skin-sources {line-height:1.75;}
#skin-sources a {color:var(--accent);}
.skin-form [hidden], #compare[hidden], #skins[hidden] { display:none !important; }
@media(max-width:520px) {
  .skin-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
  .skin-form label {min-width:0;}
  .skin-form input[type="number"],.skin-form select {width:100%;}
  #skin-method-label {grid-column:1/-1;}
  .skin-plans li {padding:12px 8px;}
}
#bundles[hidden] {display:none !important;}
#bundle-product,#bundle-store {width: auto; max-width:100%;}
#bundle-method-label {display:flex; align-items:center; min-height:36px;}
#bundle-method-label[hidden] {display:none;}
.part-line {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:12px 0; border-top:1px solid var(--line);}
.part-line small {color:var(--muted);}
.part-line small input {max-width:90px;}
#bundle-total {display:flex; flex-wrap:wrap; gap:10px 28px; background:var(--raised); padding:16px; border-radius:9px; margin:16px 0;}
#bundle-total small,#bundle-total strong {display:block;}
#bundle-total strong {color:var(--accent);font-size:20px;}
#bundle-total p {width:100%;margin:0;}
.outfit-details {border-top:1px solid var(--line);margin-top:22px;padding-top:16px;}
.outfit-details summary {font-weight:700;cursor:pointer;}
.mode-nav a[aria-current="page"] {padding-top:10px;}
@media(max-width:520px) {.mode-nav {gap:14px;}.mode-nav a {font-size:14px;}.skin-plans li {align-items:flex-start;}}
.benchmarks[hidden] {display:none !important;}

.skin-plans, .skin-demand, .part-line, #bundle-total, .detail-grid, .skin-form input {
  font-variant-numeric: tabular-nums;
}
.skin-panel :is(p, li, label), .part-line, .product, .footnote, .hint {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.skin-panel > .hint, #skin-description, #dialog-body p { max-inline-size: 72ch; }
.skin-plans li > div, .part-line > * { min-width: 0; }
#skin-sources a, summary { text-underline-offset: 0.16em; }
@media (min-width: 651px) {
  .table-box :is(th, td):is(:nth-child(3), :nth-child(5)) { text-align: right; }
}
@media (max-width: 520px) {
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .seg { justify-self: start; }
  .find { width: 100%; min-width: 0; }
  .search { max-width: none; }
  .search input, .skin-form input[type="number"], .part-line input[type="number"] { font-size: 16px; }
  .search input, #toggle-filters, .skin-choices button { min-height: 36px; }
  .table-box td:nth-child(5):has([data-bundle])::before { content: none; }
  .skin-form select { min-width: 0; }
}

/* A price always reads as one figure, with the charge in yen directly underneath. */
.best-price {
  display: table; width: max-content; max-width: 100%; margin: 3px 0 0 auto;
  border-radius: 5px; padding: 1px 6px; color: var(--accent); background: var(--selected);
  font-size: 12px; font-weight: 720; letter-spacing: 0; line-height: 1.55;
}
.detail-grid .best-price { margin-left: 0; }
.skin-plans .best-price { margin-left: auto; }
#bundles { margin: 22px 0 50px; }
.bundle-layout {
  display: grid; grid-template-columns: minmax(230px, .43fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 15px; background: var(--panel); overflow: clip;
}
.bundle-picker { padding: 22px 16px; background: var(--raised); border-right: 1px solid var(--line); }
.bundle-sheet { padding: clamp(18px,3vw,36px); min-width: 0; }
.bundle-sheet h2 { font-size: clamp(22px,2.3vw,30px); letter-spacing: -.035em; margin-bottom: 20px; }
.bundle-sheet h3 { font-size: 17px; letter-spacing: -.02em; }
.offer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: center; margin-bottom: 9px; }
#bundle-stores { padding: 0; border: 0; margin: 0; min-inline-size: 0; }
#bundle-options { display: grid; gap: 6px; }
.bundle-offer {
  display: grid; grid-template-columns: 18px minmax(0,1fr) auto minmax(100px,auto);
  gap: 10px; align-items: center; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; font-weight: 650; font-size: 15px; cursor: pointer; word-break: keep-all;
}
.bundle-offer:has(:checked) { border-color: var(--accent); background: var(--selected); }
.bundle-offer:hover { border-color: var(--accent); }
.bundle-offer input[type="radio"] {
  appearance: none; margin: 0; border: 1.5px solid var(--control); width: 17px; height: 17px; border-radius: 50%; background: var(--panel);
}
.bundle-offer input:checked { border: 5px solid var(--accent); }
.offer-amount,.part-price { text-align:right; font-variant-numeric:tabular-nums; }
.offer-amount strong { font-size: clamp(17px,1.5vw,22px); white-space:nowrap; }
.offer-amount small,.part-price small { display:block; font-size:12px; color:var(--muted); font-weight:500; }
.offer-delta { font-size:13px; font-weight:560; color:var(--muted); font-variant-numeric:tabular-nums; }
.bundle-offer .best-price { margin: 0; }
.parts-title { margin: 24px 0 8px; }
.part-line label,.toggle-label { display:inline-flex; align-items:center; gap:9px; cursor:pointer; font-size:14px; font-weight:640; }
.part-line input[type="checkbox"], .toggle-label input, .skin-form input[type="checkbox"], .method input[type="checkbox"] {
  appearance:none; box-sizing:border-box; position:relative; flex:none; width:19px; height:19px;
  margin:0; border:1.5px solid var(--control); border-radius:5px; background:var(--panel); cursor:pointer;
}
:is(.part-line,.toggle-label,.skin-form,.method) input[type="checkbox"]:checked { background:var(--accent); border-color:var(--accent); }
:is(.part-line,.toggle-label,.skin-form,.method) input[type="checkbox"]:checked::after {
  content:""; position:absolute; left:5px; top:2px; width:4px; height:8px; border:solid white;
  border-width:0 2px 2px 0; transform:rotate(45deg);
}
#bundle-total { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; padding:16px 20px; }
#bundle-total div + div {padding-left:16px;border-left:1px solid var(--line);}
#bundle-total small {color:var(--muted); font-size:13px; font-weight:620;}
#bundle-total strong {font-size:clamp(19px,1.9vw,26px);font-variant-numeric:tabular-nums;}
.bundle-help {font-size:13px;color:var(--muted);}
.bundle-help summary {cursor:pointer;width:fit-content; padding:5px 0;}
.bundle-help p {max-width:66ch;line-height:1.7;}
.amount-field,.skin-form input[type="number"] {
  border:1px solid var(--control); border-radius:8px; padding:8px 10px; background:var(--panel); font-variant-numeric:tabular-nums;
}
.amount-field:focus-within {outline:2px solid var(--accent);outline-offset:2px;}
.amount-field input {border:0; background:transparent; text-align:right; width:6em; font-size:16px;}
.amount-field input:focus {outline:0;}
@media(max-width:760px) {
  .bundle-layout {grid-template-columns:minmax(0,1fr);}
  .bundle-picker {border:0;border-bottom:1px solid var(--line);padding:12px;}
  .bundle-sheet {padding:16px 12px;}
  .bundle-sheet h2 {margin-bottom:14px;}
}
@media(max-width:520px) {
  .bundle-offer {grid-template-columns:16px minmax(0,1fr) auto; gap:1px 8px; padding:9px 10px;}
  .bundle-offer input {grid-row:1/3;}
  .bundle-offer .offer-amount {grid-column:3; grid-row:1/3;}
  .bundle-offer > .best-price,.bundle-offer > .offer-delta {grid-column:2; justify-self:start;}
  .bundle-offer > .offer-delta:empty {display:none;}
  .table-box td:nth-child(3) .best-price {margin-left:0;}
  #bundle-total {padding:12px;}
}
@media(forced-colors:active) {
  .bundle-offer input[type="radio"],:is(.part-line,.toggle-label,.skin-form,.method) input[type="checkbox"] {appearance:auto;}
  :is(.part-line,.toggle-label,.skin-form,.method) input[type="checkbox"]:checked::after {display:none;}
}

.server-switch { display:flex; gap:6px; margin:16px 0 10px; }
.server-switch[hidden] { display:none; }
.server-switch { width:fit-content; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:4px; }
.server-switch a { display:flex; align-items:center; gap:7px; min-height:40px; padding:0 15px; color:var(--muted); border-radius:8px; text-decoration:none; font-weight:720; }
.server-switch small { font-size:12px; }
.server-switch a[aria-current] { background:var(--panel); color:var(--ink); box-shadow:0 1px 4px #0002; }
#compare, #bundles, #skins { scroll-margin-top:105px; }
#compare .section-head { margin-bottom:3px; }
.first-switch { display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:6px 12px; color:var(--ink); background:var(--panel); border:1px solid var(--control); border-radius:12px; font-size:15px; cursor:pointer; }
.first-switch:hover { border-color:var(--accent); }
.first-switch[aria-checked="true"] { background:var(--accent); border-color:var(--accent); color:white; }
.switch-track { display:inline-flex; align-items:center; width:32px; height:20px; border-radius:12px; background:var(--control); padding:3px; }
.switch-track::after { content:""; width:14px; height:14px; background:var(--panel); border-radius:50%; }
.first-switch[aria-checked="true"] .switch-track { background:var(--selected); }
.first-switch[aria-checked="true"] .switch-track::after { background:var(--accent); transform:translateX(12px); }
.first-note { margin:4px 0 10px; text-align:right; color:var(--muted); font-size:13px; }
.first-reward { color:var(--accent); }
@media (max-width:520px) {
  .server-switch a { padding:0 10px; }
  #compare .section-head { flex-wrap:wrap; gap:6px; }
  .first-switch { font-size:14px; padding:5px 9px; gap:6px; }
  .part-line { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .part-line label { min-width:0; word-break:keep-all; overflow-wrap:anywhere; }
  .part-price small { overflow-wrap:anywhere; }
  .amount-field { max-width:100%; }
}

.payment-setting {
  display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; width:fit-content;
  max-width:100%; margin:8px 0; color:var(--ink); font-size:14px;
}
.payment-setting[hidden] {display:none;}
.pay-currency,.discount-controls,.pay-method {display:inline-flex;align-items:center;}
.pay-currency {gap:8px;color:var(--muted);}
.pay-currency select {min-height:40px;font-weight:650;}
.discount-controls {gap:10px;min-height:40px;}
.pay-method {gap:7px;min-height:40px;cursor:pointer;white-space:nowrap;}
.pay-method input {
  appearance:none;inline-size:32px;block-size:20px;flex:none;display:grid;align-items:center;
  border:1px solid var(--control);border-radius:15px;background:var(--control);margin:0;padding:2px;cursor:pointer;
}
.pay-method input::before {content:"";width:14px;height:14px;border-radius:50%;background:var(--panel);}
.pay-method input:checked {border-color:var(--accent);background:var(--accent);}
.pay-method input:checked::before {transform:translateX(12px);}
.pay-method b {color:var(--accent);}
.card-list-button {font-size:13px;font-weight:620;min-height:40px;padding:4px 6px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;}
.card-brands {display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:10px;padding:0;list-style:none;margin:16px 0;}
.card-brands li {display:grid;align-content:start;justify-items:center;gap:6px;text-align:center;}
.card-brands li > span {display:grid;place-items:center;width:100%;height:54px;}
.card-brands img {width:100%;height:50px;object-fit:contain;}
.card-brands b,.card-brands small {font-size:13px;}
.card-example {padding:12px 14px;border-left:3px solid var(--accent);background:var(--canvas);}
.discount-line {display:block;color:var(--accent);font-size:12px;font-weight:600;line-height:1.5;}
.detail-grid .offer-detail {align-items:start;row-gap:3px;}
.offer-seller {grid-row:1/3;align-self:center;}
.offer-paid,.offer-unit {text-align:right;font-variant-numeric:tabular-nums;}
.detail-grid .dg-head > b:nth-child(2) {text-align:right;}
.detail-grid .offer-terms {grid-column:2/-1;text-align:right;margin:0;}
.offer-terms .discount-line {display:inline-block;margin-inline-start:8px;}
.detail-grid .best-price {width:fit-content;}
@media(max-width:520px) {
  .payment-setting {column-gap:12px;}
  .pay-currency select {max-width:104px;}
  .detail-grid .offer-detail,.detail-grid .dg-head {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.88fr);}
  .detail-grid .offer-terms {grid-column:1/-1;}
  .offer-seller {grid-row:1;align-self:start;}
  .card-brands {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(forced-colors:active) {.pay-method input {appearance:auto;}}
@media(max-width:520px) {
  .game-banner { padding:0; display:block; min-height:0; }
  .banner-copy { width:100%; }
  .game-banner h1 { display:flex; align-items:center; min-height:76px; width:70%; margin:0; padding:14px; }
  .game-banner::before { inset:0 0 auto auto; width:40%; height:76px; background-size:cover; background-position:center 35%; }
  .benchmarks { background:var(--panel); border-top:1px solid var(--line); padding:12px 14px; gap:12px; }
  .game-banner.rc .benchmarks { background:var(--panel); border-color:var(--line); }
  .benchmarks > div + div { padding-left:12px; }
  .list-info { align-items:flex-start; flex-direction:column; gap:4px; }
  .list-info > div { width:100%; justify-content:space-between; }

}
.ticket-limit { color:var(--warn); font-weight:650; line-height:1.5; }
#bundle-limit { margin:-8px 0 15px; font-size:14px; }
#bundle-total[hidden] { display:none; }
@media(max-width:650px) { .table-box tr:has(.ticket-limit) td:nth-child(5):before { content:none; } }

@media(min-width:651px) { html { scrollbar-gutter:stable; } }
.price-basis { display:flex; flex-wrap:wrap; justify-content:space-between; gap:3px 16px; margin:5px 0 12px; color:var(--muted); font-size:13px; }
.game-banner { min-height:115px; }
.game-banner h1 { margin-bottom:0; }
#compare .benchmarks {
  max-width:none; margin:0 0 18px; padding:15px 20px; border:1px solid var(--line);
  border-radius:12px; background:var(--panel); color:var(--ink);
}
#compare .benchmarks strong { font-size:clamp(22px,2vw,30px); }
#compare .benchmarks small { color:var(--muted); }
.table-box td:nth-child(5) > small { display:block; font-size:12px; font-weight:500; color:var(--muted); }
@media(max-width:520px) {
  .game-banner { min-height:76px; }
  #compare .benchmarks { padding:12px; }
  .table-box td:nth-child(5) > small { margin-top:3px; }
}
:where(.mode-nav a,#days-label)[hidden] { display:none !important; }
#summary-scope { margin:4px 0; font-size:13px; font-weight:650; color:var(--muted); }
#days-label { display:inline-flex; align-items:center; gap:5px; font-size:13px; margin-top:4px; }
#days { font:inherit; width:4em; padding:3px 5px; border:1px solid var(--line); border-radius:6px; }
#compare .benchmarks small {font-size:14px;}
#theme { font-size:13px; min-height:36px; }
.bar { gap:clamp(8px,2vw,32px); }
.preferences #pull { min-height:44px; }
#compare .count-tools { display:flex; gap:12px; flex-wrap:wrap; }
.count-tools details { margin:0; }
.count-tools ul {max-width:36em;}
.fx-help {color:var(--accent);text-decoration:underline;text-underline-offset:3px;}
.detail-grid span {word-break:keep-all;overflow-wrap:anywhere;}
#bundle-total {grid-template-columns:repeat(3,minmax(0,1fr));}
.price-basis details { max-width:34em; }
#fxbar > div { flex-wrap:wrap; }
@media(max-width:650px) {
  .bar {height:auto; min-height:50px; gap:5px; flex-wrap:wrap; padding-block:4px;}
  .bar nav { gap:8px; align-self:center; }
  #theme { font-size:12px; padding-left:4px; padding-right:21px; }
  .game-banner { margin-top:5px; min-height:54px; }
  .game-banner h1 {min-height:54px;padding:7px 12px; margin:0;font-size:21px;}
  .game-banner::before {height:100%;background-position:82% 35%;background-size:auto 190%;}
  .mode-nav { margin:3px 0; gap:13px; }
  .mode-nav a,.mode-nav a[aria-current="page"] {padding:8px 2px;}
  .server-switch {margin:3px 0; padding:2px;}
  .server-switch a {min-height:32px;}
  #compare {margin:6px 0 18px;}
  #compare .benchmarks { margin-bottom:6px; padding:8px 10px; }
  #compare .benchmarks strong {font-size:25px; margin:0;}
  #compare .benchmarks small {font-size:14px;}
  #compare .section-head h2 {font-size:18px;}
  .price-basis { margin:2px 0 5px; }
  .seg button,#toggle-filters,.list-info select { min-height:40px; }
  .list-info {gap:0; padding-block:1px;}
  .toolbar {padding:3px 8px;gap:3px;}
  .table-box tr {align-items:center;grid-template-columns:minmax(0,1fr) auto; padding:7px 10px;gap:1px 5px;}
  .table-box td:first-child {grid-row:1;grid-column:1;}
  .table-box td:nth-child(5) {grid-row:1;grid-column:2;font-size:17px;}
  .table-box td:nth-child(3) {grid-row:2;grid-column:1;font-size:14px;white-space:normal;}
  .table-box td:nth-child(4) {grid-row:2;grid-column:2;text-align:right;font-size:13px;}
  .table-box td:nth-child(2) {grid-row:3;grid-column:1;}
  .table-box td:last-child {grid-row:3;grid-column:2;}
  .table-box td:nth-child(4) b {display:block;font-size:14px;}
  .product {font-weight:650;}
  #compare .count-tools {width:100%;justify-content:space-between;gap:4px;}
  .detail-grid > div { grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,.85fr);gap:4px;}
  #bundle-total {grid-template-columns:1fr;}
  #bundle-total div + div {border:0;padding:0;}
}
#budget {width:9em;min-height:36px;border:1px solid var(--line);padding:5px 9px;border-radius:6px;background:var(--panel);}
.skin-plans li > div:last-child {flex:none;max-width:52%;}
#days-label {white-space:nowrap;}
#days {width:3.3em;}
@media(max-width:650px) {
  .bar .brand {font-size:19px;}
  .skin-plans li {display:grid;grid-template-columns:minmax(0,1fr) auto;}
  .skin-plans li > div:last-child {max-width:none;}
  .skin-plans strong {font-size:17px;}
  .table-box td:nth-child(5) {line-height:1.22;}
  .table-box td:nth-child(4) {line-height:1.25;}
  .table-box td:nth-child(2) {word-break:keep-all;}
}
@media(max-width:365px) {
  .bar .flower {display:none;}
  .bar {flex-wrap:nowrap;}
  .bar .brand {white-space:nowrap;}
  .bar nav {white-space:nowrap;}
}
.seg { flex-wrap:wrap; }
#more-filters > label[hidden],.seg button[hidden] { display:none; }
@media (max-width:650px) {
  #toggle-filters,.seg button { min-width:40px; }
}
