:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #22193d;
  background: #fcfaff;
  --muted: #554b67;
  --purple: #5225a6;
  --mint: #bbf6d9;
}

*, *::before, *::after {
  box-sizing: border-box;
}
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
}
main {
  flex: 1;
}
a {
  color: inherit;
}
a:focus-visible, summary:focus-visible {
  outline: 3px solid #8f57e4;
  outline-offset: 5px;
}
h1, h2, h3, p {
  margin: 0;
}

.wrap {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  transform: translateY(-200%);
  background: white;
  padding: .75rem 1rem;
}
.skip:focus {
  transform: none;
}
.site-header {
  background: #fcfaff;
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner {
  min-height: 4.5rem;
  padding-block: .65rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand-icon {
  position: relative;
  flex: none;
  width: 3rem;
  height: 2.2rem;
  margin-inline-end: .45rem;
}
.brand-icon > span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid #6846ad;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 23%, #aa7aee, #7036b8 55%, #442074);
  color: white;
  font-size: .8rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand-icon > span:first-child {
  top: 0;
  left: 0;
}
.brand-icon > span:last-child {
  right: 0;
  bottom: 0;
  border-color: #27725f;
  background: radial-gradient(circle at 35% 23%, #58bfa0, #227d66 55%, #145142);
  box-shadow: 0 0 0 1.5px #fcfaff;
}
.domain {
  color: var(--purple);
}
.language-menu {
  position: relative;
  z-index: 4;
  flex: none;
}
.language-menu summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border: 1px solid #d6cbe6;
  border-radius: .65rem;
  color: #432576;
  background: white;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 650;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu summary::after {
  content: "";
  width: .36rem;
  height: .36rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.language-menu[open] summary::after {
  transform: translateY(.1rem) rotate(225deg);
}
.language-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  display: grid;
  gap: 0;
  min-width: 9rem;
  max-height: 60vh;
  overflow: auto;
  padding: .25rem;
  border: 1px solid #d6cbe6;
  border-radius: .65rem;
  background: white;
  box-shadow: 0 .35rem 1rem #26174325;
}
.language-menu nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem .75rem;
  border-radius: .4rem;
}
.language-menu nav a:hover, .language-menu nav a:focus-visible {
  background: #f2edf8;
}
html:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem clamp(.85rem, 3vw, 2.25rem);
}
nav a {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
nav a:hover, .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}
nav a[aria-current="page"], .site-header nav a[aria-current="location"] {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.25rem;
  border-radius: .7rem;
  font-size: .98rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.button-outline {
  border: 1px solid #c6b4e8;
  color: var(--purple);
}
.button-outline:hover {
  background: #f2e9fc;
}

.section {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 4.35vw, 3rem);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.052em;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}
.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid #e3d9ef;
  background: white;
}
.game-90 {
  --art-light: #e6cbff;
  --art-dark: #c8a5ee;
  --art-text: #482365;
}
.game-75 {
  --art-light: #d6fae6;
  --art-dark: #a5e4c9;
  --art-text: #164e3c;
}
.home-ticket {
  display: block;
  width: min(100%, 19.25rem);
  height: auto;
  border: 4px solid white;
  border-radius: .3rem;
  box-shadow: 0 .2rem .65rem #21113526;
}
.home-pattern {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 6.5rem;
  gap: 2px;
  padding: .28rem;
  border-radius: .35rem;
  background: white;
  box-shadow: 0 .2rem .65rem #17371f26;
}
.home-pattern i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #bdcdc2;
  border-radius: 2px;
  background: #eef6f1;
  font: .78rem/1 "Segoe UI Symbol", sans-serif;
}
.home-pattern i.on {
  border-color: #21654f;
  background: #21654f;
  color: white;
}
.game-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.game-heading img {
  border-radius: 23%;
}
.game-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 1.6rem);
}
.game h3 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -.045em;
}
.game p, .section-intro, .rule-list p, .support p {
  color: var(--muted);
  line-height: 1.6;
}
.game p {
  margin-block: .45rem 1.25rem;
}
.game-links {
  display: grid;
  justify-items: start;
  gap: .4rem;
  margin-top: auto;
}
.game-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.15rem;
}
.game-sublinks a {
  padding-block: .65rem;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: .2em;
  white-space: normal;
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
}
.store-links a {
  border-radius: .55rem;
  background: #2b1f44;
  color: white;
  padding: .7rem .95rem;
  font-size: .92rem;
  font-weight: 720;
  text-decoration: none;
}
.store-links a:hover {
  background: #522b83;
}
.game-copy .store-links {
  margin-top: .85rem;
  padding-top: 1rem;
  border-top: 1px solid #e6dff0;
}
.game-copy .store-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.rules {
  background: #f2eafa;
}
.rules-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.5rem 3rem;
}
.section-intro {
  margin-top: .8rem;
  max-width: 32ch;
}
.rule-list {
  border-top: 1px solid #cdbbdf;
}
:where(main) details {
  border-bottom: 1px solid #cdbbdf;
}
:where(main) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.75rem;
  cursor: pointer;
  font-weight: 700;
  padding-block: .6rem;
  list-style: none;
}
:where(main) summary::-webkit-details-marker {
  display: none;
}
:where(main) summary::after {
  content: "";
  width: .65rem;
  height: .65rem;
  flex: 0 0 .65rem;
  margin-right: .3rem;
  border-bottom: 2px solid var(--purple);
  border-right: 2px solid var(--purple);
  transform: translateY(-.15rem) rotate(45deg);
}
:where(main) details[open] summary::after {
  transform: translateY(.15rem) rotate(225deg);
}
.rule-list p {
  padding: 0 1.2rem .9rem 0;
}
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem 2rem;
}
.support p {
  margin-top: .65rem;
}
.site-footer {
  border-top: 1px solid #e6daef;
  background: #f8f2fc;
  color: var(--muted);
}
.footer-inner {
  flex-wrap: wrap;
  min-height: 5rem;
  padding-block: 1rem;
  font-size: .9rem;
}
.site-footer a {
  text-underline-offset: .2em;
}
.footer-links {
  gap: .5rem 1.35rem;
}

.page-hero {
  color: white;
  background: radial-gradient(ellipse at 78% 25%, #503182, #251a49 70%);
}
.page-hero.game-75 {
  background: radial-gradient(ellipse at 78% 25%, #275e57, #152e33 72%);
}
.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.4rem, 6vw, 4.75rem);
}
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 6.2vw, 4.85rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.page-hero p {
  max-width: 48ch;
  margin-top: .95rem;
  color: #f4eefc;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}
.page-hero .store-links {
  margin-top: 1.35rem;
}
.page-hero .store-links a {
  background: var(--mint);
  color: #202137;
}
.page-hero .store-links a:hover {
  background: #e1fff1;
}
.page-hero .store-links a:focus-visible {
  outline-color: white;
}
.page-icon {
  width: clamp(6rem, 16vw, 10rem);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 .7rem 2rem #12061b55;
}

.guide-body, .support-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 4rem);
}
.guide-body h2, .support-layout h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
}
.guide-steps {
  display: grid;
  gap: 1.1rem;
  padding-inline-start: 1.6rem;
  margin-block: 1.35rem 0;
}
.guide-step {
  padding-inline-start: .3rem;
}
.guide-step::marker {
  color: var(--purple);
  font-weight: 800;
}
.guide-step h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}
.guide-step p, .support-layout p {
  margin-top: .4rem;
  color: var(--muted);
  line-height: 1.6;
}
.guide-shot, .guide-example {
  margin: 1.15rem 0 0;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .95rem;
}
.guide-shot figcaption, .guide-example figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}
.guide-example {
  padding: clamp(.65rem, 2.8vw, 1.3rem);
  border: 1px solid #e1d4ed;
  border-radius: .95rem;
  background: #f6edfe;
}
.card-demo {
  width: 100%;
  border-spacing: .15rem;
  table-layout: fixed;
  color: #35274e;
  text-align: center;
  font-size: clamp(.81rem, 2vw, 1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card-demo td, .card-demo th {
  height: 2rem;
  padding: .1rem 0;
  border-radius: .25rem;
}
.card-demo td {
  background: white;
}
.card-demo td:empty {
  background: #e7dcef;
}
.card-demo .marked {
  background: #582995;
  color: white;
}
.card-demo-75 .marked {
  background: #24674f;
}
.manual-nav {
  padding-block: 1.1rem;
  border-bottom: 1px solid #dfd8e7;
  gap: .55rem 1.5rem;
}
.manual-nav a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.manual-body {
  padding-top: clamp(1.8rem, 4vw, 3.25rem);
}
.manual-body section[id] {
  scroll-margin-top: 1rem;
}
.line-examples {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.line-examples figure, .playing-card {
  margin: 0;
}
.line-examples img, .playing-card img {
  display: block;
  max-width: 100%;
  height: auto;
}
.line-examples figcaption, .playing-card figcaption {
  margin-top: .5rem;
  color: var(--muted);
  line-height: 1.5;
}
.line-examples figcaption strong {
  color: #35274e;
  margin-right: .55em;
}
.manual-tips {
  grid-column: 1 / -1;
  border-top: 1px solid #dfd8e7;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}
.manual-tips dl {
  max-width: 72ch;
  margin: 1.1rem 0 0;
}
.manual-tips dt {
  font-weight: 700;
  font-size: 1.08rem;
}
.manual-tips dd {
  margin: .25rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}
.manual-tips dd:last-child {
  margin-bottom: 0;
}
.tips-and-card {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
  margin-top: 1.25rem;
}
.playing-card {
  max-width: 17rem;
}
.tips-and-card dl {
  margin-top: 0;
}
.support-card {
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #e1d4ed;
  border-radius: .95rem;
  background: white;
}
.support-card .button {
  margin-top: 1.2rem;
}
.support-card .support-address {
  overflow-wrap: anywhere;
  font-size: .91rem;
}
.support-links {
  display: grid;
  gap: 1.6rem;
}
.support-links ul {
  display: grid;
  gap: .5rem;
  margin-block: .75rem 0;
  padding-inline-start: 1.2rem;
}
.support-links a, .guide-shot a, .policy-article a {
  color: var(--purple);
  text-underline-offset: .16em;
}
.policy-article {
  max-width: 50rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.policy-article h2 {
  margin-top: 1.85rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.policy-article h3 {
  margin-top: 1.2rem;
  font-size: 1.15rem;
}
.policy-article p, .policy-article li + li {
  margin-top: .7em;
}
.policy-article ul, .policy-article ol {
  padding-inline-start: 1.5em;
}
.policy-article .policy-scope {
  margin: 0 0 1.3rem;
  padding: .85rem 1.05rem;
  border-inline-start: .25rem solid #6c34b2;
  border-radius: .35rem;
  background: #f2e9fc;
}
.policy-article .policy-source {
  margin-block: 2.25rem 0;
  padding-block-start: 1rem;
  border-top: 1px solid #dfd8e7;
  font-size: .95rem;
}

@media (max-width: 52rem) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .15rem .75rem;
  }
  .header-inner > nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .language-menu {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 44rem) {
  .wrap {
    width: min(100% - 2rem, 70rem);
  }
  .rules-inner, .guide-body, .support-layout, .tips-and-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 1.32rem;
  }
  nav {
    gap: .25rem .7rem;
  }
  nav a {
    font-size: .85rem;
    white-space: nowrap;
  }
}

@media (max-width: 32rem) {
  .page-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-icon {
    order: -1;
    width: 5rem;
  }
}

