/* Account area: sign in, register, recovery, overview, security, Moonstones. */

.acc-main {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 180px);
  padding: calc(var(--nav-h) + 56px) 0 96px;
}

.acc-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  z-index: -2;
  background: url("../assets/hero-iberia.webp?v=1") center 34% / cover no-repeat;
  opacity: 0.32;
  filter: saturate(0.8);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

.acc-main::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 16, 0.35), transparent 60%);
}

.acc-col {
  width: min(480px, calc(100% - 32px));
  margin: 0 auto;
}

.acc-col-md {
  width: min(680px, calc(100% - 32px));
}

.acc-col-lg {
  width: min(980px, calc(100% - 32px));
}

.acc-col-xl {
  width: min(1120px, calc(100% - 32px));
}

/* Sign in, create account, password reset: full-screen scene behind the card. The picture sits fixed,
   so the card scrolls over it; the shade keeps the nav, the heading and the links readable. */

.acc-main.acc-scene::before {
  position: fixed;
  inset: 0;
  height: auto;
  background: #0a0f1e url("../assets/login-bg.webp?v=1") center 42% / cover no-repeat;
  opacity: 1;
  filter: saturate(0.92) brightness(0.86);
  -webkit-mask-image: none;
  mask-image: none;
}

.acc-main.acc-scene::after {
  position: fixed;
  inset: 0;
  height: auto;
  background:
    radial-gradient(ellipse 560px 70% at 50% 52%, rgba(7, 10, 20, 0.62), rgba(7, 10, 20, 0.2) 70%, transparent),
    linear-gradient(180deg, rgba(7, 10, 20, 0.86) 0%, rgba(7, 10, 20, 0.35) 24%, rgba(7, 10, 20, 0.28) 62%, rgba(7, 10, 20, 0.9) 100%);
}

.acc-scene .acc-sub,
.acc-scene .acc-after {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 0, 0, 0.6);
}

.acc-scene .acc-after {
  color: var(--cream-2);
}

@media (max-width: 720px) {
  .acc-main.acc-scene::before {
    background-position: 47% 40%;
  }
}

/* Heading block */

.acc-head {
  margin-bottom: 36px;
  text-align: center;
  animation: acc-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.acc-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
}

.acc-orn::before,
.acc-orn::after {
  content: "";
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--gold));
}

.acc-orn::after {
  background: linear-gradient(90deg, var(--gold), var(--cyan) 60%, transparent);
}

.acc-orn i,
.acc-orn b {
  display: block;
  transform: rotate(45deg);
  background: currentColor;
}

.acc-orn i {
  width: 5px;
  height: 5px;
  opacity: 0.75;
}

.acc-orn b {
  width: 11px;
  height: 11px;
  background: var(--gold);
}

.acc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--cream);
  text-wrap: balance;
}

.acc-sub {
  margin: 12px auto 0;
  max-width: 44ch;
  color: var(--cream-2);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.86;
  text-wrap: pretty;
}

.acc-sub b {
  color: var(--gold-3);
  font-weight: 600;
}

/* Card */

.acc-stack {
  display: grid;
  gap: 20px;
}

.acc-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 22, 38, 0.94);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: acc-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.08s;
}

.acc-stack > .acc-card:nth-child(2) { animation-delay: 0.14s; }
.acc-stack > .acc-card:nth-child(3) { animation-delay: 0.2s; }
.acc-stack > .acc-card:nth-child(4) { animation-delay: 0.26s; }

.acc-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: rgba(255, 216, 106, 0.5);
  border-style: solid;
  border-width: 0;
}

.acc-corner.tl {
  top: 8px;
  left: 8px;
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-left-radius: 4px;
}

.acc-corner.br {
  right: 8px;
  bottom: 8px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-bottom-right-radius: 4px;
}

.acc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.acc-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold-3);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.acc-card-meta {
  color: var(--muted-2);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acc-card-body {
  padding: 26px 26px 28px;
}

.acc-card-body > p:not(.acc-card-foot) {
  margin: 0 0 18px;
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.6;
}

.acc-card-foot {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Fields */

.acc-form {
  display: grid;
  gap: 18px;
}

.acc-field {
  display: grid;
  gap: 8px;
}

.acc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream-2);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acc-label a {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color 0.2s ease;
}

.acc-label a:hover {
  color: var(--gold-3);
}

.acc-input {
  position: relative;
}

.acc-input input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(186, 204, 255, 0.14);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.72);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.acc-input input::placeholder {
  color: var(--muted-2);
}

.acc-input input:hover {
  border-color: rgba(186, 204, 255, 0.24);
}

.acc-input input:focus {
  border-color: rgba(255, 216, 106, 0.7);
  background: rgba(7, 10, 20, 0.9);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(139, 124, 255, 0.16);
}

.acc-input.has-toggle input {
  padding-right: 64px;
}

.acc-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.acc-toggle:hover,
.acc-toggle:focus-visible {
  color: var(--gold-3);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.acc-toggle svg {
  width: 18px;
  height: 18px;
}

.acc-toggle .eye-off,
.acc-toggle.is-on .eye-on {
  display: none;
}

.acc-toggle.is-on .eye-off {
  display: block;
}

.acc-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.acc-hint.is-warn {
  color: #ffb36b;
}

.acc-field.is-invalid .acc-input input {
  border-color: rgba(255, 106, 74, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 106, 74, 0.12);
}

.acc-field.is-invalid .acc-hint {
  color: #ff8a70;
}

.acc-field.is-valid .acc-input input {
  border-color: rgba(74, 222, 128, 0.45);
}

.acc-field.is-valid .acc-hint {
  color: #86efac;
}

/* Strength meter */

.acc-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 2px;
}

.acc-strength i {
  height: 3px;
  border-radius: 3px;
  background: rgba(186, 204, 255, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.acc-strength[data-level="1"] i:nth-child(-n + 1) { background: #ff6a4a; }
.acc-strength[data-level="2"] i:nth-child(-n + 2) { background: #ffb36b; }
.acc-strength[data-level="3"] i:nth-child(-n + 3) { background: var(--gold-2); }
.acc-strength[data-level="4"] i {
  background: var(--live);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.acc-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-size: 12.5px;
}

.acc-rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.acc-rules li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.acc-rules li.is-ok {
  color: #86efac;
}

.acc-rules li.is-ok::before {
  background: currentColor;
}

/* Checkbox */

.acc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--cream-2);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  user-select: none;
}

.acc-check.is-plain {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
}

.acc-check.is-plain a {
  color: var(--gold-3);
  text-decoration: underline;
  text-decoration-color: rgba(255, 233, 168, 0.35);
  text-underline-offset: 3px;
}

.acc-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.acc-check-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: -1px;
  border: 1px solid rgba(186, 204, 255, 0.3);
  border-radius: 5px;
  background: rgba(5, 8, 16, 0.72);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-check-box svg {
  width: 12px;
  height: 12px;
  color: #1a1206;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.acc-check:hover .acc-check-box {
  border-color: rgba(255, 216, 106, 0.6);
}

.acc-check input:focus-visible + .acc-check-box {
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.22);
}

.acc-check input:checked + .acc-check-box {
  border-color: #6d4808;
  background: linear-gradient(180deg, #f3d06a, #d4a017);
}

.acc-check input:checked + .acc-check-box svg {
  opacity: 1;
  transform: none;
}

/* Buttons */

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.6);
  box-shadow: none;
}

.btn {
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-gold:not([disabled]):active {
  transform: translateY(1px);
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 18, 6, 0.3);
  border-top-color: #1a1206;
  border-radius: 50%;
  animation: acc-spin 0.7s linear infinite;
}

.btn-ghost.is-loading::after {
  border-color: rgba(255, 233, 168, 0.25);
  border-top-color: var(--gold-3);
}

.acc-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.acc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-3);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease, gap 0.2s ease;
}

.acc-link:hover {
  color: var(--cream);
  gap: 11px;
}

.acc-link svg {
  width: 12px;
  height: 12px;
}

/* Below-card links */

.acc-after {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 18px;
  animation: acc-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.22s;
}

.acc-after p {
  margin: 0;
}

.acc-after a,
.acc-u {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(255, 216, 106, 0.4);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.acc-after a:hover,
.acc-u:hover {
  color: var(--gold-3);
  text-decoration-color: var(--gold-2);
}

/* Alerts */

.acc-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 216, 106, 0.28);
  border-radius: 10px;
  background: rgba(240, 193, 75, 0.07);
  color: var(--cream-2);
  font-size: 14px;
  line-height: 1.5;
}

.acc-alert svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--gold-2);
}

.acc-alert.is-ok {
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(74, 222, 128, 0.07);
}

.acc-alert.is-ok svg {
  color: var(--live);
}

.acc-alert.is-err {
  border-color: rgba(255, 106, 74, 0.38);
  background: rgba(255, 106, 74, 0.08);
}

.acc-alert.is-err svg {
  color: var(--danger);
}

.acc-alert b {
  color: var(--cream);
}

.acc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 15, 30, 0.7);
  color: var(--cream-2);
  font-size: 14.5px;
  animation: acc-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.05s;
}

.acc-banner b {
  color: var(--gold-3);
}

/* Header user chip (signed-in mock) */

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(186, 204, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 22, 38, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.user-chip:hover {
  border-color: rgba(255, 216, 106, 0.5);
  background: rgba(139, 124, 255, 0.1);
}

.user-chip-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), #9a6a0c);
  box-shadow: 0 0 0 2px rgba(7, 9, 16, 0.9), 0 0 0 3px rgba(255, 216, 106, 0.45);
  color: #1a1206;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.user-chip-copy {
  display: grid;
  line-height: 1.15;
}

.user-chip-copy b {
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

.user-chip-copy small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.user-chip-copy small i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f6f3ff, var(--accent));
}

/* Overview */

.acc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.acc-span {
  grid-column: 1 / -1;
}

.acc-balance {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.acc-balance-icon {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 10px 24px rgba(139, 124, 255, 0.45));
  animation: acc-float 5s ease-in-out infinite;
}

.acc-balance-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 55%, #c98a1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acc-balance-num small {
  margin-left: 10px;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--muted);
}

.acc-balance p:not(.acc-balance-num) {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.acc-balance-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.acc-dl {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.5);
}

.acc-dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
}

.acc-dl > div + div {
  border-top: 1px solid rgba(186, 204, 255, 0.08);
}

.acc-dl dt {
  color: var(--muted-2);
  font-family: var(--font-cond);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acc-dl dd {
  margin: 0;
  color: var(--cream);
  font-size: 14.5px;
  text-align: right;
  overflow-wrap: anywhere;
}

.acc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 216, 106, 0.35);
  border-radius: 999px;
  color: var(--gold-3);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.acc-pill.is-ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.acc-pill.is-err {
  border-color: rgba(255, 106, 74, 0.4);
  color: #ff9a82;
}

.acc-pill.is-muted {
  border-color: rgba(186, 204, 255, 0.2);
  color: var(--muted);
}

.acc-pill.is-accent {
  border-color: rgba(139, 124, 255, 0.45);
  color: #c4bcff;
}

.acc-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(186, 204, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.4);
  color: var(--muted);
  font-size: 13.5px;
}

.acc-mini svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(139, 124, 255, 0.12);
  color: #c4bcff;
}

.acc-mini b {
  display: block;
  color: var(--cream);
  font-weight: 500;
}

.acc-play {
  overflow: hidden;
}

.acc-play-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.55) 0%, transparent 30%, transparent 70%, rgba(8, 12, 24, 0.6) 100%),
    url("../assets/play-iberia.webp?v=2") 60% 52% / cover no-repeat;
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 62%);
  mask-image: linear-gradient(90deg, transparent, #000 62%);
  pointer-events: none;
}

.acc-play .acc-card-head,
.acc-play .acc-card-body {
  position: relative;
}

.acc-play-copy {
  max-width: 420px;
}

.acc-play-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.acc-play-copy p {
  margin: 0 0 22px;
  color: var(--cream-2);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

/* Tables */

.acc-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.acc-table th {
  padding: 0 12px 12px;
  color: var(--muted-2);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.acc-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(186, 204, 255, 0.08);
  color: var(--cream);
  vertical-align: middle;
  white-space: nowrap;
}

.acc-table tbody tr {
  transition: background 0.2s ease;
}

.acc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.acc-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.acc-table .num {
  font-variant-numeric: tabular-nums;
}

.acc-table .mono {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
}

.acc-table .mono small {
  font-family: var(--font-ui);
}

.acc-table tr.is-current td:first-child {
  box-shadow: inset 2px 0 0 var(--gold-2);
}

.acc-tag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(139, 124, 255, 0.16);
  color: #c4bcff;
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.acc-table tr.is-revoked td {
  opacity: 0.45;
}

.acc-empty-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.acc-stat {
  flex: 1 1 160px;
  padding: 14px 16px;
  border: 1px solid rgba(186, 204, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.45);
}

.acc-stat span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acc-stat b {
  display: block;
  margin-top: 4px;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.acc-back {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Moonstones */

.ms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.ms-packs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ms-pack {
  position: relative;
  cursor: pointer;
}

.ms-pack input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ms-pack-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  height: 100%;
  padding: 26px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(186, 204, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.9);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ms-pack:hover .ms-pack-card {
  border-color: rgba(255, 216, 106, 0.4);
}

.ms-pack input:focus-visible + .ms-pack-card {
  outline: 2px solid var(--gold-3);
  outline-offset: 2px;
}

.ms-pack input:checked + .ms-pack-card {
  border-color: var(--gold-2);
  background: rgba(30, 30, 34, 0.95);
  box-shadow: inset 0 0 0 1px var(--gold-2);
}

.ms-radio {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(186, 204, 255, 0.3);
  border-radius: 50%;
  background: rgba(5, 8, 16, 0.6);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ms-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1206;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.ms-pack input:checked + .ms-pack-card .ms-radio {
  border-color: var(--gold-2);
  background: var(--gold);
}

.ms-pack input:checked + .ms-pack-card .ms-radio::after {
  transform: scale(1);
}

.ms-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 124, 255, 0.2);
  color: #d4ceff;
  font-family: var(--font-cond);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-flag.is-gold {
  background: linear-gradient(180deg, #f3d06a, #d4a017);
  color: #1a1206;
}

.ms-pack-icon {
  height: 54px;
  display: grid;
  place-items: end center;
  margin-bottom: 12px;
}

.ms-pack-icon img {
  width: var(--s, 36px);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.ms-amount,
.ms-amount-label {
  display: block;
}

.ms-amount {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ms-amount-label {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ms-rate {
  margin: 10px 0 16px;
  align-self: start;
  color: var(--muted-2);
  font-size: 12.5px;
}

.ms-rate b {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-weight: 600;
}

.ms-price {
  width: calc(100% + 20px);
  padding: 13px 0;
  border-top: 1px solid rgba(186, 204, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--gold-3);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ms-pack input:checked + .ms-pack-card .ms-price {
  background: rgba(240, 193, 75, 0.12);
  color: var(--gold-2);
}

.ms-order {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.ms-lines {
  margin: 0 0 18px;
}

.ms-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(186, 204, 255, 0.08);
}

.ms-lines dt {
  color: var(--muted-2);
  font-family: var(--font-cond);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ms-lines dd {
  margin: 0;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ms-lines .is-total {
  border-bottom: 0;
  padding-top: 16px;
}

.ms-lines .is-total dt {
  color: var(--cream-2);
}

.ms-lines .is-total dd {
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.ms-lines .is-bonus dd {
  color: var(--cyan);
}

.ms-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.ms-method {
  cursor: pointer;
}

.ms-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ms-method span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid rgba(186, 204, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.5);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ms-method svg {
  width: 18px;
  height: 18px;
}

.ms-method:hover span {
  border-color: rgba(255, 216, 106, 0.35);
  color: var(--cream);
}

.ms-method input:checked + span {
  border-color: var(--gold-2);
  background: rgba(240, 193, 75, 0.08);
  color: var(--gold-3);
}

.ms-method input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.3);
}

/* Moonstones page heading: title and intro on the left, the create-account link on the right. */

.ms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  text-align: left;
}

.ms-head .acc-sub {
  margin-left: 0;
  max-width: 52ch;
}

.ms-head .acc-link {
  padding-bottom: 6px;
}

/* What happens after paying. Plain lines under the packs: no boxes, no icons. */

.ms-notes {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ms-notes h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.ms-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.ms-notes li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(186, 204, 255, 0.08);
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.55;
}

.ms-notes li:first-child {
  padding-top: 2px;
}

.ms-notes li:last-child {
  border-bottom: 0;
}

/* Modal */

.acc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: acc-fade 0.25s ease both;
}

.acc-modal .acc-card {
  width: min(440px, 100%);
  text-align: center;
  animation: acc-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.acc-modal .acc-card-body {
  padding: 36px 30px 30px;
}

.acc-modal h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.acc-modal p {
  margin: 0 auto 24px;
  max-width: 36ch;
  color: var(--cream-2);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

.acc-modal .acc-btn-row {
  justify-content: center;
}

.acc-seal {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 216, 106, 0.22), transparent 70%),
    rgba(10, 15, 30, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 216, 106, 0.4), 0 0 40px rgba(255, 216, 106, 0.2);
  color: var(--gold-2);
}

.acc-seal svg,
.acc-seal img {
  width: 36px;
  height: 36px;
}

.acc-seal img {
  width: 46px;
  height: 46px;
}

/* Recovery steps */

.acc-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-steps i {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(186, 204, 255, 0.16);
  transition: background 0.3s ease, width 0.3s ease;
}

.acc-steps i.is-on {
  width: 30px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.acc-step {
  animation: acc-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.acc-step-center {
  text-align: center;
}

.acc-step-center h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.acc-step-center > p {
  margin: 0 auto 22px;
  max-width: 34ch;
  color: var(--cream-2);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

.acc-step-center > p b {
  color: var(--gold-3);
  font-weight: 600;
}

.acc-step-center .acc-form {
  text-align: left;
}

.acc-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed rgba(139, 124, 255, 0.4);
  border-radius: 10px;
  background: rgba(139, 124, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.acc-demo button {
  margin-left: auto;
  color: #c4bcff;
  font-weight: 600;
  white-space: nowrap;
}

.acc-demo button:hover {
  color: var(--cream);
}

/* Slim footer */

.slim-footer {
  position: relative;
  z-index: 2;
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.6), #070910);
  text-align: center;
}

.slim-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-dim);
}

.slim-orn::before,
.slim-orn::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.slim-orn::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.slim-orn i,
.slim-orn b {
  display: block;
  transform: rotate(45deg);
  background: currentColor;
}

.slim-orn i {
  width: 4px;
  height: 4px;
}

.slim-orn b {
  width: 9px;
  height: 9px;
  background: var(--gold);
}

.slim-footer p {
  margin: 0 auto 16px;
  max-width: 60ch;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.slim-footer nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.slim-footer nav a {
  color: var(--cream-2);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.slim-footer nav a:hover {
  color: var(--gold-2);
}

/* Motion */

@keyframes acc-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes acc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes acc-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes acc-spin {
  to { transform: rotate(360deg); }
}

@keyframes acc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes acc-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.is-shaking {
  animation: acc-shake 0.4s ease both !important;
}

/* Responsive */

@media (max-width: 1200px) {
  .nav-cta .user-chip-copy small {
    display: none;
  }
}

@media (max-width: 980px) {
  .ms-layout {
    grid-template-columns: 1fr;
  }

  .ms-order {
    position: static;
  }

  /* Five packs never divide evenly into 3 or 2 columns, so below the desktop layout each pack
     is one row: marker, icon, amount with its rate, price. */
  .ms-packs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ms-pack-card {
    grid-template-columns: 20px 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: start;
    column-gap: 14px;
    padding: 12px 16px;
    text-align: left;
  }

  .ms-radio {
    position: static;
    grid-row: 1 / 3;
  }

  .ms-pack-icon {
    grid-row: 1 / 3;
    width: 48px;
    height: auto;
    place-items: center;
    margin: 0;
  }

  .ms-pack-icon img {
    width: calc(var(--s, 36px) * 0.62);
  }

  .ms-pack-card > span:nth-child(3) {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 0;
    min-width: 0;
    align-self: end;
  }

  .ms-amount-label {
    margin-top: 0;
  }

  .ms-rate {
    grid-column: 3;
    grid-row: 2;
    margin: 2px 0 0;
  }

  .ms-price {
    grid-column: 4;
    grid-row: 1 / 3;
    width: auto;
    padding: 0;
    border-top: 0;
    background: none;
    font-size: 22px;
  }

  .ms-pack input:checked + .ms-pack-card .ms-price {
    background: none;
  }

  .ms-notes {
    grid-template-columns: 1fr;
  }

  .nav-cta [data-signout] {
    display: none;
  }

  .user-chip {
    padding-right: 5px;
  }

  .user-chip-copy {
    display: none;
  }
}

@media (max-width: 720px) {
  .acc-main {
    padding-top: calc(var(--nav-h) + 36px);
  }

  .acc-grid-2 {
    grid-template-columns: 1fr;
  }

  .acc-balance {
    grid-template-columns: auto 1fr;
  }

  .acc-balance-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .acc-balance-icon {
    width: 64px;
    height: 64px;
  }

  .acc-card-head,
  .acc-card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .acc-play-art {
    width: 100%;
    opacity: 0.18;
  }

  .acc-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Visitors who ask for less motion get the finished page with no entrance or hover movement. */

@media (prefers-reduced-motion: reduce) {
  .acc-head,
  .acc-card,
  .acc-banner,
  .acc-step,
  .acc-modal,
  .acc-modal .acc-card {
    animation: none;
  }

  .ms-pack-card,
  .ms-radio,
  .ms-radio::after,
  .ms-price,
  .acc-link {
    transition: none;
  }
}
