:root {
  color-scheme: light;
  --page: #f2f6f4;
  --surface: #fff;
  --ink: #182b24;
  --muted: #536560;
  --pine: #142e26;
  --green: #23624b;
  --mint: #d7ecdf;
  --line: #dce6e0;
  --soft: #f5f8f6;
  --radius: 12px;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { letter-spacing: -.043em; line-height: 1.25; }

a { color: var(--green); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #347d61; outline-offset: 3px; }
[id] { scroll-margin-top: 1.125rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  z-index: 5;
  top: .625rem;
  left: .625rem;
  padding: .45rem .9rem;
  background: var(--surface);
  transform: translateY(-160%);
}

.skip:focus { transform: translateY(0); }

.frame { width: min(calc(100% - 56px), 1168px); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 65px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 790;
  letter-spacing: -.06em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--brand-mark) center / contain no-repeat;
}

[data-brand-mark="slot"] { --brand-mark: url("./marks/slot-96.png"); }
[data-brand-mark="cards"] { --brand-mark: url("./marks/cards-96.png"); }
[data-brand-mark="chip"] { --brand-mark: url("./marks/chip-96.png"); }
[data-brand-mark="roulette"] { --brand-mark: url("./marks/roulette-96.png"); }

.mast nav { display: flex; flex-wrap: wrap; gap: .2rem .35rem; }

.mast nav a {
  padding: .36rem .7rem;
  color: var(--muted);
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.mast nav a:hover, .mast nav a[aria-current="page"] {
  background: #e8f1eb;
  color: var(--pine);
}

.directory { padding-top: 28px; }

.directory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: clamp(22px, 3.3vw, 42px);
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--pine);
  color: #f4fbf7;
}

.directory-heading h1 {
  font-size: clamp(1.9rem, 3.55vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.065em;
  max-width: 27ch;
  text-wrap: balance;
}

.directory-heading p {
  margin-top: .55rem;
  max-width: 37em;
  color: #c2d6cd;
  font-size: 1.02rem;
}

.dataset { display: flex; align-items: flex-start; gap: 1.25rem; }
.dataset > div + div { padding-left: 1.25rem; border-left: 1px solid #406155; }
.dataset dt { color: #bdd4c8; font-size: .78rem; }
.dataset dd { color: #f9fcfa; font-size: .94rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.comparison {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.25rem;
  padding: .875rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.comparison-heading { display: flex; align-items: center; gap: .65rem; }
.comparison-heading h2 { font-size: 1.18rem; }

#registry-count {
  padding: .12rem .47rem;
  color: var(--green);
  border-radius: 4px;
  background: var(--mint);
  font-size: .8rem;
  font-weight: 720;
  white-space: nowrap;
}

.registry-search { position: relative; width: min(100%, 340px); }

.registry-search::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.registry-search::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 21px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  background: var(--muted);
  pointer-events: none;
}

.registry-search input {
  width: 100%;
  min-height: 39px;
  border: 1px solid #cfdcd5;
  border-radius: 6px;
  padding: .49rem .63rem .49rem 2.1rem;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}

.registry-search input::placeholder { color: #5d6c66; }

.registry table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.45;
}

.registry :is(th, td) {
  padding: .71rem 1.2rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.registry thead th {
  background: var(--soft);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
}

.directory-table tbody th { width: 23%; }
.directory-table tbody td:last-child { width: 17%; }

.directory-table :is(thead th, tbody td):last-child { text-align: right; }
.directory-table tbody th a { color: var(--ink); text-decoration-color: #9ab1a4; font-weight: 760; }
.directory-table tbody th a:hover { color: var(--green); text-decoration-color: currentColor; }
.directory-table tbody tr:hover { background: var(--soft); }
.directory-table tbody th { overflow-wrap: normal; }

.operator { font-weight: 560; }

code {
  color: #3d5e50;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .85em;
  overflow-wrap: anywhere;
}

.compact-domain { display: none; }

.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .23rem .6rem;
  border: 1px solid #cde0d5;
  border-radius: 5px;
  background: #f6faf7;
  font-size: .86em;
  font-variant-numeric: tabular-nums;
  font-weight: 690;
  text-decoration: none;
  white-space: nowrap;
}

.register-link:hover { background: var(--mint); }

.registry-empty {
  border-bottom: 1px solid var(--line);
  padding: 1.65rem 1.2rem;
  color: var(--muted);
  text-align: center;
}

.comparison-scope { padding: .64rem 1.2rem; color: var(--muted); font-size: .87rem; }
.comparison-scope summary { width: fit-content; cursor: pointer; font-weight: 660; color: var(--green); }
.comparison-scope p { max-width: 62em; padding: .35rem 0 .25rem 1em; }

.directory-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 2.75rem;
}

.directory-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem .5rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.directory-links a:hover { border-color: #a0c4af; }
.directory-links a strong { line-height: 1.5; }
.directory-links a span { color: var(--muted); font-size: .83rem; }
.directory-links a::after {
  content: "→" / "";
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--green);
}

.content { max-width: 820px; font-size: 1.025rem; }
.article-body { padding: 1.8rem 0 3rem; border-top: 1px solid #cddcd4; }
.content > section + section { margin-top: 2.3rem; }
.content h2 { margin-bottom: .66rem; font-size: clamp(1.46rem, 3.1vw, 1.98rem); }
.content h3 { margin: 1.35rem 0 .42rem; font-size: clamp(1.12rem, 2.3vw, 1.3rem); }
.content p + p { margin-top: .72rem; }
.source { font-size: .88em; }

.brand-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}

.brand-reviews section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .8rem .9rem;
  background: var(--surface);
  font-size: .93rem;
}

.brand-reviews section:target { border-color: #4f9674; box-shadow: 0 0 0 2px #c6dfcf; }
.brand-reviews h3 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .68rem .2rem; font-weight: 700; }
.faq details p { padding: 0 .9rem .75rem; }

.guide { padding-bottom: 2.6rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: 1.5rem 0 1rem; color: var(--muted); font-size: .85rem; }
.guide-heading { padding: clamp(1rem, 3vw, 1.65rem); margin-bottom: 1.8rem; border-radius: var(--radius); background: var(--pine); color: #f4fbf7; }
.guide-heading h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); }
.guide-heading .deck { max-width: 41em; margin-top: .55rem; color: #deeee6; }
.guide-heading .checked { margin-top: .55rem; color: #bed6c9; font-size: .83rem; }
.calculation { margin: .7rem 0 .85rem; background: var(--surface); }
.registry caption { padding-bottom: .45rem; background: var(--page); color: var(--muted); font-size: .82rem; text-align: left; }
.readings { margin: .8rem 0; }
.readings dt { padding-top: .62rem; border-top: 1px solid var(--line); font-weight: 730; }
.readings dd { margin: .08rem 0 .55rem; }
.related { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; padding-top: .7rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 60px; font-size: .9rem; }

@media (max-width: 740px) {
  .frame { width: calc(100% - 34px); }
  .mast { gap: .6rem; }
  .mast nav a { padding-inline: .44rem; font-size: .83rem; }
  .registry :is(th, td) { padding-inline: .72rem; }
  .wide-domain { display: none; }
  span.compact-domain { display: inline; }
  code.compact-domain { display: block; margin-top: .14rem; }
  .directory-table tbody th { width: 26%; }
  .directory-table tbody td:last-child { width: 23%; }
  .directory-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .frame { width: calc(100% - 24px); }
  .mast { flex-direction: column; align-items: flex-start; gap: .38rem; padding: .56rem 0 .44rem; }
  .brand { font-size: 1.02rem; }
  .brand::before { width: 26px; height: 26px; }
  .mast nav { width: 100%; justify-content: space-between; gap: .18rem; }
  .mast nav a { padding: .2rem .12rem; font-size: .73rem; }
  .directory { padding-top: 12px; }
  .directory-heading { gap: .63rem; padding: 15px 12px; margin-bottom: 12px; }
  .directory-heading h1 { font-size: clamp(1.5rem, 6.2vw, 2rem); }
  .directory-heading p { margin-top: .32rem; font-size: .91rem; line-height: 1.5; }
  .dataset { gap: .52rem; flex-wrap: wrap; }
  .dataset > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .32rem; }
  .dataset > div + div { padding-left: .52rem; }
  .dataset dt { font-size: .67rem; }
  .dataset dd { font-size: .76rem; }
  .comparison-toolbar { gap: .45rem; padding: .62rem .65rem; }
  .comparison-heading h2 { font-size: 1.04rem; }
  .registry-search input { min-height: 38px; font-size: 1rem; }
  .registry-search input::placeholder { font-size: .83rem; }
  .registry table { font-size: .84rem; }
  .registry :is(th, td) { padding: .54rem .42rem; }
  .registry thead th { font-size: .75rem; }
  .directory-table tbody th { width: 30%; }
  .register-link { padding: .16rem .29rem; gap: .2rem; font-size: .9em; }
  .comparison-scope { padding-inline: .7rem; }
  .directory-links { grid-template-columns: 1fr; gap: .45rem; margin: .72rem 0 1.45rem; }
  .directory-links a { padding: .58rem .7rem; }
  .article-body { padding-top: 1.35rem; }
  .brand-reviews { grid-template-columns: 1fr; }
}
