* {
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
}

.text-brand-100 {
  color: #ccfbf1;
}

.text-brand-700,
.hover\:text-brand-700:hover {
  color: #0f766e;
}

.text-brand-900 {
  color: #134e4a;
}

.bg-brand-50,
.hover\:bg-brand-50:hover {
  background-color: #f0fdfa;
}

.bg-brand-500 {
  background-color: #0f766e;
}

.hover\:bg-brand-600:hover {
  background-color: #115e59;
}

.hover\:bg-brand-700:hover {
  background-color: #134e4a;
}

.border-brand-100 {
  border-color: #ccfbf1;
}

.border-brand-200,
.hover\:border-brand-200:hover {
  border-color: #99f6e4;
}

.hover\:border-brand-300:hover {
  border-color: #5eead4;
}

.hover\:bg-brand-50\/60:hover {
  background-color: rgb(240 253 250 / .6);
}

.focus\:border-brand-500:focus {
  border-color: #0f766e;
}

.focus\:ring-brand-100:focus {
  --tw-ring-color: #ccfbf1;
}

.bg-ember-600 {
  background-color: #c2410c;
}

.hover\:bg-ember-500:hover,
.bg-ember-500 {
  background-color: #9a3412;
}

.shadow-soft {
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

img {
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.min-w-0 {
  min-width: 0;
}

.break-words {
  overflow-wrap: break-word;
  word-break: normal;
}

.game-card[hidden] {
  display: none;
}

.payment-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
}

.payment-step-current {
  display: none;
}

.payment-step-current span {
  display: block;
}

.payment-step-current [data-step-current-kicker] {
  color: #0f766e;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-step-current strong {
  display: block;
  margin-top: .2rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}

.payment-step-progress {
  grid-column: 1 / -1;
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.payment-step-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
  transform-origin: left center;
  transition: transform .2s ease;
}

.payment-step-indicator {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .45rem;
  border-bottom: 2px solid #e4e4e7;
  padding-bottom: .65rem;
  color: #71717a;
  font-size: .78rem;
  font-weight: 700;
}

.payment-step-indicator span {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: .78rem;
}

.payment-step-indicator strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-step-indicator.is-active {
  border-color: #0f766e;
  color: #0f766e;
}

.payment-step-indicator.is-active span {
  background: #0f766e;
  color: #fff;
}

.payment-step-indicator.is-complete {
  border-color: #99f6e4;
  color: #0f766e;
}

.payment-step-indicator.is-complete span {
  background: #ccfbf1;
  color: #134e4a;
}

.payment-step-panel[hidden] {
  display: none !important;
}

.payment-wizard,
.payment-step-panel {
  min-width: 0;
}

.payment-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px #fee2e2;
}

.is-saved-uid-input {
  background: #f8fafc;
  color: #0f172a;
  cursor: default;
}

.saved-uid-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: #f0fdfa;
  padding: .8rem .9rem;
}

.saved-uid-card.hidden {
  display: none;
}

.saved-uid-card span {
  display: block;
  color: #0f766e;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.saved-uid-card strong {
  display: block;
  margin-top: .2rem;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: .98rem;
  line-height: 1.3;
}

.saved-uid-card button {
  min-height: 2.5rem;
  flex: 0 0 auto;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #fff;
  padding: .55rem .8rem;
  color: #0f766e;
  font-size: .82rem;
  font-weight: 800;
  transition: background-color .18s ease, color .18s ease;
}

.saved-uid-card button:hover {
  background: #0f766e;
  color: #fff;
}

.payment-card-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: .75rem;
}

.payment-card-option {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  gap: .75rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  padding: .75rem;
  color: #27272a;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.payment-card-option:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.payment-card-option.is-selected {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px #ccfbf1;
  color: #134e4a;
}

.payment-card-option img {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.payment-card-option span {
  min-width: 0;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.payment-card-options-error .payment-card-option {
  border-color: #fecaca;
}

.payment-denomination-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
  gap: .75rem;
}

.payment-denomination-option {
  display: grid;
  min-height: 5rem;
  align-content: center;
  gap: .35rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  padding: .85rem;
  color: #27272a;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.payment-denomination-option:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.payment-denomination-option.is-selected {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px #ccfbf1;
  color: #134e4a;
}

.payment-denomination-amount {
  display: block;
  color: #111827;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.2;
}

.payment-denomination-reward {
  display: block;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

.payment-denomination-option.is-selected .payment-denomination-reward {
  color: #0f766e;
}

.payment-denomination-options-error .payment-denomination-option {
  border-color: #fecaca;
}

.prose-game {
  color: #3f3f46;
  line-height: 1.75;
}

.prose-game h2 {
  margin-top: 1.8rem;
  margin-bottom: .75rem;
  color: #09090b;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.prose-game h2:first-child {
  margin-top: 0;
}

.prose-game p {
  margin-top: .85rem;
  font-size: .95rem;
}

.prose-game ul {
  margin-top: .8rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose-game li {
  margin-top: .4rem;
  font-size: .95rem;
}

.internal-link-box {
  margin-top: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 1rem;
}

.internal-link-box h2 {
  margin-top: 0;
}

.internal-link-grid {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.internal-link-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  padding: .7rem;
  text-decoration: none;
}

.internal-link-card:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.internal-link-card img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.internal-link-card strong {
  display: block;
  color: #0f172a;
  font-size: .92rem;
  line-height: 1.35;
}

.internal-link-card small {
  display: block;
  margin-top: .15rem;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.4;
}

.uid-guide-box {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: #f0fdfa;
  padding: 1rem;
}

.uid-guide-box h2 {
  margin-top: 0;
}

.uid-guide-box ol {
  margin-top: .9rem;
  padding-left: 1.25rem;
  list-style: decimal;
}

.uid-guide-box li {
  margin-top: .45rem;
}

.uid-guide-box img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #99f6e4;
  background: #fff;
}

.uid-guide-gallery,
.uid-guide-inline-gallery {
  display: grid;
  gap: .75rem;
}

.uid-guide-image-card {
  margin: 0;
}

.uid-guide-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.uid-guide-image-card figcaption {
  margin-top: .35rem;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.45;
}

.uid-guide-inline {
  display: block;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0f766e;
  border-radius: 8px;
  background: #f8fafc;
  color: #3f3f46;
}

.uid-guide-inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.uid-guide-inline summary::-webkit-details-marker {
  display: none;
}

.uid-guide-inline-title {
  display: block;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
}

.uid-guide-inline-hint {
  display: block;
  margin-top: .25rem;
  color: #64748b;
  font-size: .8125rem;
  line-height: 1.45;
}

.uid-guide-inline-icon {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f766e;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease;
}

.uid-guide-inline[open] .uid-guide-inline-icon {
  transform: rotate(180deg);
  background: #ccfbf1;
}

.uid-guide-inline-content {
  display: grid;
  gap: .9rem;
  border-top: 1px solid #e2e8f0;
  padding: .9rem 1rem 1rem;
}

.uid-guide-inline-content p {
  margin-top: .4rem;
  font-size: .875rem;
  line-height: 1.6;
}

.uid-guide-inline-content ol {
  margin-top: .65rem;
  padding-left: 1.15rem;
  list-style: decimal;
}

.uid-guide-inline-content li {
  margin-top: .35rem;
  font-size: .875rem;
  line-height: 1.55;
}

.uid-guide-inline-gallery {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

[data-form-result].is-error {
  display: block;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

[data-form-result].is-info {
  display: block;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

[data-form-result].is-success {
  display: block;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

@media (min-width: 768px) {
  .uid-guide-box {
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    align-items: center;
  }

  .uid-guide-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .game-card a {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .payment-steps {
    display: block;
  }

  .payment-step-current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    background: #f0fdfa;
    padding: .85rem;
  }

  .payment-step-indicator {
    display: none;
  }

  .payment-card-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .payment-card-option {
    min-height: 5.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .65rem;
  }

  .payment-card-option img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .payment-card-option span {
    font-size: .8rem;
  }

  .payment-denomination-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .payment-denomination-option {
    min-height: 4.65rem;
    padding: .7rem;
  }

  .payment-denomination-amount {
    font-size: .86rem;
  }

  .payment-denomination-reward {
    font-size: .74rem;
  }

  .saved-uid-card {
    align-items: flex-start;
    padding: .75rem;
  }

  .saved-uid-card button {
    min-height: 2.35rem;
    padding-inline: .7rem;
  }

  .uid-guide-inline summary {
    align-items: flex-start;
    padding: .8rem;
  }

  .uid-guide-inline-content {
    padding: .85rem;
  }

  .uid-guide-inline-gallery {
    grid-template-columns: 1fr;
  }

  .prose-game {
    line-height: 1.7;
  }

  .prose-game h2 {
    font-size: 1.125rem;
  }

  .prose-game p,
  .prose-game li {
    font-size: .9375rem;
  }
}
