@import url("./tokens.css");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: var(--purple);
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 48px;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -1.3px;
}
.mark {
  display: inline-block;
  width: 39px;
  height: 28px;
  position: relative;
}
.mark:before,
.mark:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 2px;
  border: 5px solid var(--purple);
  border-radius: 50%;
}
.mark:before {
  left: 0;
}
.mark:after {
  right: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.free {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.language {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 10px;
  font-size: 14px;
}
.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0 50px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow:before {
  content: "";
  width: 25px;
  height: 2px;
  background: currentColor;
}
h1 {
  font-size: clamp(42px, 4.8vw, 60px);
  line-height: 1.06;
  letter-spacing: -2.8px;
  font-weight: 850;
  margin: 0 0 24px;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--purple);
  letter-spacing: -2px;
}
p {
  margin: 0 0 20px;
}
.intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 370px;
}
.mini-steps {
  display: flex;
  gap: 18px;
  margin: 34px 0;
  flex-wrap: wrap;
}
.mini-steps span {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mini-steps b {
  border: 1px solid #d4d0dc;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
}
.game-sample {
  position: relative;
  margin-top: 32px;
  max-width: 355px;
  padding: 27px;
  background: var(--purple);
  color: white;
  border-radius: 25px;
  transform: rotate(-3deg);
  box-shadow: 8px 9px 0 #d8caef;
}
.game-sample .sample-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}
.game-sample h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 24px 0;
  max-width: 250px;
  letter-spacing: -0.6px;
}
.sample-options {
  display: flex;
  gap: 10px;
}
.sample-options span {
  padding: 10px 15px;
  border: 1px solid #a478ee;
  border-radius: 12px;
  font-size: 14px;
}
.sample-options .chosen {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.sample-stamp {
  position: absolute;
  right: -17px;
  top: 60px;
  transform: rotate(11deg);
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: grid;
  place-content: center;
  font-size: 25px;
  font-weight: 850;
  text-align: center;
  line-height: 1;
}
.sample-stamp small {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 5px;
}
.setup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 8px 35px #20143c06;
}
.setup h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}
.subtle {
  color: var(--muted);
  font-size: 14px;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 25px 0 8px;
}
input {
  width: 100%;
  border: 1px solid #d5d2dc;
  background: var(--input);
  border-radius: 13px;
  min-height: 52px;
  padding: 12px 15px;
  font-size: 16px;
  color: var(--ink);
}
input::placeholder {
  color: #817989;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.category {
  position: relative;
  cursor: pointer;
}
.category input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.category .tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 17px 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  transition: 0.18s;
}
.category .emoji {
  font-size: 27px;
  line-height: 1.2;
}
.category input:checked + .tile {
  border: 2px solid var(--purple);
  padding: 16px 3px;
  background: #f4edff;
  color: #5921b9;
}
.category input:focus-visible + .tile {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 14px 20px;
  background: var(--purple);
  color: white;
  font-weight: 750;
  transition:
    transform 0.16s,
    background 0.16s;
  text-decoration: none;
}
.button:hover {
  background: #5e20d0;
  transform: translateY(-1px);
}
.button.secondary {
  background: #eee8f7;
  color: #5820b7;
}
.button.outline {
  background: transparent;
  border: 1px solid #d6d0e0;
  color: var(--ink);
}
.button.lime {
  background: var(--lime);
  color: var(--ink);
}
.button.small {
  min-height: 44px;
  font-size: 14px;
}
.quiet {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.center {
  text-align: center;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 14px;
  margin-bottom: 0;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 12px;
  color: var(--muted);
}
.footer p {
  margin: 0;
  max-width: 450px;
}
.footer button {
  font-size: 12px;
}
.local-banner {
  padding: 9px 16px;
  text-align: center;
  background: #eae4f2;
  font-size: 12px;
  color: #51475f;
}
.play {
  width: 100%;
  max-width: 570px;
  margin: 42px auto 60px;
  animation: arrive 0.24s ease-out;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}
.back {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.progress {
  display: flex;
  gap: 7px;
  margin: 0 0 32px;
}
.progress span {
  height: 6px;
  background: #e1dce9;
  border-radius: 6px;
  flex: 1;
}
.progress span.done {
  background: var(--purple);
}
.question-meta {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 14px;
}
.play h1 {
  font-size: 37px;
  letter-spacing: -1.3px;
  line-height: 1.16;
}
.question-note {
  color: var(--muted);
  margin: 0 0 26px;
}
.options {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.option {
  cursor: pointer;
  position: relative;
}
.option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.option span {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 17px;
  min-height: 65px;
  transition: 0.18s;
}
.option b {
  display: grid;
  place-items: center;
  border: 1px solid #ded8e7;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.option input:checked + span {
  border-color: var(--purple);
  background: #efe5ff;
  box-shadow: 0 0 0 1px var(--purple);
}
.option input:checked + span b {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.option input:focus-visible + span {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.success-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--lime);
  font-size: 34px;
  margin: 0 auto 25px;
  transform: rotate(-7deg);
}
.panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  margin: 24px 0;
}
.panel h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.actions {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.link-field {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.notice {
  background: #eee8f7;
  padding: 16px;
  border-radius: 14px;
  font-size: 13px;
  color: #544862;
  line-height: 1.65;
}
.notice p:last-child {
  margin: 0;
}
.notice summary {
  cursor: pointer;
  font-weight: 700;
}
.notice details p {
  margin: 12px 0 0;
}
.result-card {
  background: var(--purple);
  color: white;
  padding: 32px;
  border-radius: 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 24px 0;
}
.result-card:before,
.result-card:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #ffffff29;
  border-radius: 50%;
  right: -120px;
  top: 30px;
}
.result-card:after {
  width: 250px;
  height: 250px;
  right: -140px;
  top: 10px;
}
.result-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.result-card .score {
  font-size: 104px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -8px;
  color: var(--lime);
  margin: 20px 0 5px;
}
.score small {
  font-size: 44px;
  letter-spacing: -2px;
  color: #dac6ff;
}
.result-card h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 18px 0 12px;
  letter-spacing: -0.7px;
}
.result-card p {
  font-size: 14px;
  max-width: 340px;
  margin: 0 auto 22px;
  color: #efe4ff;
  overflow-wrap: anywhere;
}
.card-tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-top: 1px solid #ffffff35;
  padding-top: 18px;
}
.review {
  padding: 0;
  list-style: none;
}
.review li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.review li:last-child {
  border: 0;
}
.review h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.review p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0;
}
.review .correct {
  color: #317023;
}
.review .miss {
  color: #93531b;
}
.result-details summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 700;
}
.guest-tag {
  display: inline-block;
  padding: 7px 14px;
  background: #e7ddf7;
  border-radius: 30px;
  color: #5922b3;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}
.guest-name {
  overflow-wrap: anywhere;
}
.error-text {
  font-size: 14px;
  color: #ae2828;
  margin: 8px 0;
}
.resume {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
}
.resume button {
  font-size: 14px;
}
.about p {
  font-size: 15px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  border-radius: 13px;
  padding: 13px 20px;
  max-width: 90vw;
  width: max-content;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.form-error {
  min-height: 20px;
}
.two-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1400px) {
  .home {
    padding-top: 80px;
    padding-bottom: 75px;
  }
}
@media (max-width: 800px) {
  .shell {
    padding: 0 24px;
  }
  .home {
    gap: 35px;
    padding: 42px 0;
  }
  .header {
    height: 80px;
  }
  h1 {
    font-size: 46px;
  }
  .setup {
    padding: 24px;
  }
  .free {
    display: none;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 22px;
  }
  .home {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0;
  }
  .header {
    height: 75px;
  }
  .brand {
    font-size: 26px;
  }
  .eyebrow {
    margin-bottom: 15px;
    font-size: 11px;
  }
  h1 {
    font-size: 45px;
    letter-spacing: -2.1px;
    margin-bottom: 16px;
  }
  .intro {
    font-size: 16px;
    max-width: 320px;
    margin-bottom: 0;
  }
  .mini-steps {
    margin: 20px 0 0;
    gap: 15px;
  }
  .mini-steps span {
    font-size: 12px;
  }
  .game-sample {
    display: none;
  }
  .setup {
    padding: 24px;
    border-radius: 24px;
  }
  .setup h2 {
    font-size: 23px;
  }
  .field {
    margin-top: 20px;
  }
  fieldset {
    margin: 20px 0;
  }
  .category .tile {
    padding: 13px 4px;
  }
  .category input:checked + .tile {
    padding: 12px 3px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
  }
  .footer p {
    max-width: 320px;
  }
  .footer button {
    padding-left: 0;
  }
  .play {
    margin: 24px auto 40px;
  }
  .play h1 {
    font-size: 32px;
  }
  .progress {
    margin-bottom: 25px;
  }
  .panel {
    padding: 20px;
  }
  .result-card {
    padding: 27px 20px;
  }
  .local-banner {
    font-size: 11px;
  }
  .two-buttons {
    grid-template-columns: 1fr;
  }
  .option span {
    font-size: 16px;
  }
  .sample-stamp {
    right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.inline-notice {
  position: static;
  background: #eae4f2;
  border-left: 4px solid var(--purple);
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.inline-notice[hidden] {
  display: none;
}
.owned-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.owned-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 14px;
}
.owned-list li span {
  overflow-wrap: anywhere;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ranking-table th,
.ranking-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}
.ranking-table thead th {
  font-size: 13px;
  color: var(--muted);
}
.ranking-table tbody th {
  overflow-wrap: anywhere;
  max-width: 190px;
  font-weight: 600;
}
.ranking-table tr:first-child td:last-child {
  color: var(--purple);
}
.private-access {
  border-style: dashed;
}
.result-delivery {
  font-size: 14px;
  color: #3b6724;
  background: #eef7e9;
  border-radius: 12px;
  padding: 12px 16px;
}
.mark:before,
.mark:after {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  top: 0;
}
.brand {
  gap: 11px;
}
.brand > span:last-child {
  margin-left: -9px;
}
.rank-note {
  font-size: 13px;
}
.result-card .score {
  line-height: 1.22;
}
.result-card .score + span {
  display: block;
  margin-top: 8px;
}

.length-options {
  display: grid;
  gap: 10px;
  margin: 10px 0 24px;
}
.length-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  cursor: pointer;
}
.length-options label:has(input:checked) {
  border-color: var(--purple);
  background: #f4edff;
}
.length-options input {
  width: auto;
  accent-color: var(--purple);
}
.language {
  color: var(--ink);
}
.button.lime,
.sample-stamp,
.sample-options .chosen,
.success-symbol {
  color: #251c35;
}
[data-theme="black"] .category input:checked + .tile,
[data-theme="black"] .option input:checked + span,
[data-theme="black"] .length-options label:has(input:checked) {
  background: #302042;
  color: #f5f2fa;
}
[data-theme="black"] .notice,
[data-theme="black"] .guest-tag,
[data-theme="black"] .inline-notice,
[data-theme="black"] .local-banner {
  background: #251c32;
  color: #e5d4ff;
}
[data-theme="black"] .button.secondary {
  background: #302042;
  color: #e5d4ff;
}
[data-theme="black"] .result-delivery {
  background: #172518;
  color: #bfe6aa;
}
[data-theme="black"] .correct {
  color: #bfe6aa;
}
[data-theme="black"] .miss {
  color: #f0bc83;
}
[data-theme="black"] .error-text {
  color: #ffa5a5;
}
[data-theme="black"] .guest-name,
[data-theme="black"] h1 em,
[data-theme="black"] .question-meta,
[data-theme="black"] .ranking-table strong,
[data-theme="black"] a {
  color: #b994ff;
}
[data-theme="black"] .mini-steps b,
[data-theme="black"] .option b {
  border-color: var(--line);
}
[data-theme="black"] .game-sample {
  box-shadow: 8px 9px 0 #302042;
}
@media (max-width: 600px) {
  .header-right {
    gap: 8px;
  }
  .language {
    padding: 8px 5px;
  }
}
