:root {
  --bg: #1b1026;
  --panel: #2a1838;
  --panel-light: #3b2550;
  --gold: #fbbf24;
  --gold-soft: #fde68a;
  --cream: #fff7d6;
  --muted: #d8c7a3;
  --green: #86efac;
  --red: #fca5a5;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(251,191,36,0.22), transparent 34%),
    linear-gradient(180deg, #241235 0%, #100817 100%);
  color: var(--cream);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 20px;
}

header {
  text-align: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 16px;
  color: var(--gold-soft);
  box-shadow: 0 0 26px rgba(251,191,36,0.35);
  font-size: 1.6rem;
}

h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
}

.tagline {
  margin: 8px 0 0;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.intro {
  margin: 14px auto 0;
  max-width: 360px;
  color: var(--muted);
}

#game {
  margin-top: 30px;
  padding: 24px;
  background: rgba(42, 24, 56, 0.94);
  border: 2px solid rgba(251,191,36,0.45);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

#clue-title {
  margin: 0 0 14px;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.clue-card {
  margin-bottom: 22px;
  padding: 36px 18px;
  background:
    linear-gradient(135deg, rgba(251,191,36,0.18), rgba(59,37,80,0.98)),
    var(--panel-light);
  border: 2px solid var(--gold);
  border-radius: 22px;
  box-shadow:
    inset 0 0 30px rgba(255,247,214,0.05),
    0 0 30px rgba(251,191,36,0.24);
}

#clue-text {
  margin: 0;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

form {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  padding: 15px;
  font-size: 1rem;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #fff7d6;
  color: #1b1026;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

button {
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #321500;
  box-shadow: 0 6px 0 #92400e;
}

button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #92400e;
}

#message {
  min-height: 24px;
  margin: 20px 0 0;
  text-align: center;
  font-weight: 900;
  color: var(--gold-soft);
}

#history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 9px 10px;
  margin-bottom: 7px;
  background: rgba(255,247,214,0.08);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 12px;
  color: var(--cream);
}

#guess-list li:last-child {
  border-color: rgba(251,191,36,0.55);
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.2rem;
  }

  #clue-text {
    font-size: 2.1rem;
  }

  form {
    flex-direction: column;
  }

  #history-grid {
    grid-template-columns: 1fr;
  }
}


#account-panel {
  margin-top: 24px;
  padding: 16px;
  background: rgba(42, 24, 56, 0.88);
  border: 1px solid rgba(251,191,36,0.32);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

#account-panel h2 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.account-muted {
  margin: 0 0 12px;
  color: var(--muted);
  text-align: center;
}

#account-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.account-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-form[hidden] {
  display: none;
}

.forgot-password-link,
.text-link {
  color: var(--gold-soft);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.forgot-password-link {
  font-size: 0.9rem;
  margin: -2px 0 4px;
}

.forgot-password-link:hover,
.text-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.simple-panel {
  margin-top: 30px;
  padding: 24px;
  background: rgba(42, 24, 56, 0.94);
  border: 2px solid rgba(251,191,36,0.45);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

.simple-panel h2 {
  margin: 0 0 14px;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.success-message,
.error-message {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 800;
}

.success-message {
  color: var(--green);
}

.error-message {
  color: var(--red);
}

.account-email {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 900;
  color: var(--gold-soft);
  word-break: break-word;
}

.account-status {
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(255,247,214,0.08);
  border-radius: 14px;
}

.account-status p {
  margin: 6px 0;
}

#verification-panel {
  margin-top: 16px;
  padding: 14px;
  background: rgba(134,239,172,0.10);
  border: 1px solid rgba(134,239,172,0.45);
  border-radius: 14px;
}

#verification-panel a {
  color: var(--green);
  font-weight: 900;
  word-break: break-word;
}

#account-message {
  min-height: 22px;
  margin: 14px 0 0;
  text-align: center;
  color: var(--gold-soft);
  font-weight: 800;
}
@media (max-width: 520px) {
  #account-actions {
    flex-direction: column;
  }
}

.footer {
  max-width: 640px;
  margin: 0.75rem auto 2rem;
  padding: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 247, 210, 0.65);
}

.footer a {
  color: rgba(255, 247, 210, 0.75);
  text-decoration: none;
  margin: 0 0.35rem;
}

.footer a:hover {
  color: #ffd34d;
  text-decoration: underline;
}

.footer span {
  color: rgba(255, 247, 210, 0.35);
}


.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700;
  color: #ffd34d;
}

.admin-form input {
  width: 100%;
}

.admin-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 247, 210, 0.15);
}

.admin-table th {
  color: #ffd34d;
}

.profile-card {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 198, 41, 0.28);
  border-radius: 1.4rem;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.profile-header .account-muted {
  margin: 0 0 0.25rem;
}

.account-email {
  margin: 0;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 800;
  word-break: break-word;
}

.status-pill {
  background: rgba(255, 198, 41, 0.16);
  border: 1px solid rgba(255, 198, 41, 0.5);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.access-box {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.access-box span {
  color: var(--muted);
  font-size: 0.85rem;
}

.access-box strong {
  color: var(--cream);
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-tile {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.8rem;
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-tile strong {
  display: block;
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
}

.stat-wide {
  grid-column: 1 / -1;
}

.profile-card #logout-button {
  width: 100%;
}

.profile-header {
  align-items: center;
  margin-bottom: 0.75rem;
}

.profile-header .account-muted {
  font-size: 0.85rem;
  color: var(--muted);
}

.account-email {
  font-size: 1rem;
}

.access-box {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  padding: 0.75rem 0 0;
  margin: 0 0 1rem;
}

.access-box span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.access-box strong {
  color: var(--cream);
  font-size: 0.95rem;
}

.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}

.trial-info-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem 0 1rem;
  background: rgba(212, 175, 55, 0.08);
}

.trial-info-card p {
  margin: 0.45rem 0;
  line-height: 1.45;
}

.trial-badge {
  display: inline-block;
  margin: 0 0 0.4rem !important;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: #f3d26b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expired-trial-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
}

.expired-trial-box strong {
  display: block;
  color: #f3d26b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.expired-trial-box p {
  margin: 0.4rem 0;
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

#history-grid.no-guesses {
  grid-template-columns: 1fr;
}

#history-grid.no-guesses > div {
  max-width: 280px;
}

#message {
  text-align: center;
  margin-top: 1rem;
}

#share-button {
  display: block;
  margin: 1rem auto 0;
}


.supporter-box {
  margin-top: 1rem;
  border: 1px solid rgba(245, 197, 107, 0.35);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(245, 197, 107, 0.08);
}

.supporter-box strong {
  color: #f5c56b;
}

.supporter-box p {
  margin: 0.45rem 0 0.8rem;
  color: #d8c7a2;
}

.supporter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.supporter-actions button {
  flex: 1 1 160px;
}

#support-banner {
  margin: 1.25rem auto;
  max-width: 728px;
}

#support-banner-link {
  display: block;
}

#support-banner img {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
  border-radius: 16px;
}

#support-banner {
  margin: 1.25rem auto;
  max-width: 728px;
}

#support-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.launch-offer-banner {
  background: linear-gradient(180deg, #26200f 0%, #17130a 100%);
  border: 2px solid #b8943a;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 0 18px rgba(184, 148, 58, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

#support-banner-link:hover .launch-offer-banner {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(184, 148, 58, 0.45);
}

.launch-title {
  color: #f4d06f;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.launch-offer {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.launch-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: #f4d06f;
}

.launch-price-original {
  color: #aaa;
  font-size: 1.2rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.launch-price strong {
  font-size: 2rem;
  line-height: 1;
}

.launch-code {
  color: #f4d06f;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.launch-code strong {
  background: #f4d06f;
  color: #111;
  padding: .15rem .5rem;
  border-radius: 6px;
  letter-spacing: .08em;
}

.launch-text {
  color: #ddd;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.launch-button {
  display: inline-block;
  background: #b8943a;
  color: #111;
  font-weight: 700;
  padding: .7rem 1.4rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .launch-title {
    font-size: 1.1rem;
  }

  .launch-offer {
    font-size: 1rem;
  }

  .launch-code {
    font-size: 1.3rem;
  }

  .launch-text {
    font-size: .95rem;
  }
}

.launch-offer {
  font-size: 1.25rem;
}

.launch-code {
  font-size: 1.65rem;
}

.launch-button {
  padding: .85rem 1.7rem;
  font-size: 1rem;
}


#manage-subscription-button {
  color: inherit;
  text-decoration: none;
}

#manage-subscription-button:hover {
  color: #f5c56b;
  text-decoration: underline;
}

/* Automated 1080x1080 social card */
.social-card-body {
  width: 1080px;
  height: 1080px;
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(251,191,36,0.34), transparent 25%),
    radial-gradient(circle at 18% 24%, rgba(255,247,214,0.10), transparent 18%),
    radial-gradient(circle at 82% 78%, rgba(251,191,36,0.12), transparent 20%),
    linear-gradient(135deg, rgba(251,191,36,0.10) 0 2px, transparent 2px 130px),
    linear-gradient(180deg, #241235 0%, #100817 100%);
}

.social-card-frame {
  width: 1080px;
  height: 1080px;
  max-width: none;
  margin: 0;
  padding: 70px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.social-card {
  width: 940px;
  height: 940px;
  box-sizing: border-box;
  padding: 52px 72px 64px;
  text-align: center;
  border: 3px solid rgba(251,191,36,0.42);
  border-radius: 54px;
  background:
    radial-gradient(circle at 50% 16%, rgba(251,191,36,0.16), transparent 28%),
    linear-gradient(135deg, rgba(251,191,36,0.12), rgba(42,24,56,0.96) 42%, rgba(16,8,23,0.98)),
    rgba(42, 24, 56, 0.96);
  box-shadow:
    0 36px 100px rgba(0,0,0,0.52),
    inset 0 0 80px rgba(255,247,214,0.06);
}

.social-card-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 28px;
  color: var(--gold-soft);
  font-size: 3.2rem;
  line-height: 1;
  box-shadow:
    0 0 30px rgba(251,191,36,0.42),
    0 0 80px rgba(251,191,36,0.20);
}

.social-card-brand {
  margin: 0;
  color: var(--gold-soft);
  font-size: 7.4rem;
  line-height: 0.92;
  letter-spacing: 0.055em;
  font-weight: 950;
  text-shadow: 0 0 32px rgba(251,191,36,0.16);
}

.social-card-tagline {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.social-card-puzzle {
  display: inline-block;
  margin: 48px 0 34px;
  padding: 14px 30px;
  border: 2px solid rgba(251,191,36,0.55);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(16,8,23,0.34);
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.social-card-clue-box {
  min-height: 258px;
  padding: 34px 36px;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  border: 5px solid var(--gold);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,247,214,0.16), transparent 36%),
    linear-gradient(135deg, rgba(251,191,36,0.26), rgba(59,37,80,0.98) 48%, rgba(33,18,46,0.98)),
    var(--panel-light);
  box-shadow:
    inset 0 0 48px rgba(255,247,214,0.08),
    0 0 32px rgba(251,191,36,0.34),
    0 22px 58px rgba(0,0,0,0.42);
}

.social-card-clue-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.social-card-clue {
  margin: 0;
  color: var(--cream);
  font-size: 5.35rem;
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  text-shadow: 0 0 24px rgba(255,247,214,0.12);
}

.social-card-clue-xl {
  font-size: 5.35rem;
}

.social-card-clue-lg {
  font-size: 4.55rem;
  letter-spacing: 0.055em;
}

.social-card-clue-md {
  font-size: 3.85rem;
  letter-spacing: 0.045em;
}

.social-card-clue-sm {
  font-size: 3.25rem;
  letter-spacing: 0.035em;
  white-space: normal;
}

.social-card-question {
  margin: 42px 0 0;
  color: var(--cream);
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 900;
}

.social-card-url {
  margin: 18px 0 0;
  color: var(--gold-soft);
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}


/* Keep guess and clue history rows the same height on all browsers */
#guess-list li,
#clue-list li {
  height: 43px;
  line-height: 23px;
  box-sizing: border-box;
}
