/* Unveiled — Copyright (c) 2026 Andre Prior // PushingPandas // a.prior@pushingpandas.io
   All rights reserved. No distribution, modification, or sale without written consent. */

/* Account / sign-in surface for unveiled-thegame.com.
   Visual brief from Andre: "mega geil aussehen … frozen glass design,
   dass im Hintergrund die Sterne und der Planet zu sehen ist."
   So: every interactive surface is a frosted-glass card stacked over
   the existing parallax sky canvas + a planet image bottom-right.
   The chrome itself stays restrained (cyan accent matches the rest of
   the marketing palette); the visual juice is the backdrop and the
   orbiting Sign-in pill glow at the top right. */

/* The body class swaps the homepage's hero-centred layout for a
   left-justified scrolling column. Sticky topbar sits above
   everything, planet floats behind. */
.account-body {
  min-height: 100vh;
  scroll-behavior: smooth;
  /* The default body had `text-align: center` set by main; we don't
     want that on account pages. */
}

/* Big planet image — fixed, occupies bottom-right so the cards'
   backdrop-filter has something interesting to blur over. We don't
   pre-blur the image itself any more — the cards' 28 px blur does
   that AND only where the cards sit, so the parts of the planet
   between cards stay sharp and the glass reads as glass over a
   real-world thing rather than over a mush. */
.account-planet {
  position: fixed;
  inset: auto -10vmin -25vmin auto;
  width: clamp(480px, 70vmin, 980px);
  height: clamp(480px, 70vmin, 980px);
  margin: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.78;
}
.account-planet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* The starfield (sky.js) is already painted via #sky at z=10, screen-
   blend; we leave it alone. The planet sits at z=5, behind the stars,
   so the stars look like they orbit it. */

/* ---- Layout shells ------------------------------------------------- */

.account-main {
  position: relative;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px 80px;
  text-align: left;
  color: #f6f8fc;
}
@media (min-width: 980px) {
  .account-main--dashboard {
    max-width: 880px;
  }
}

.account-hero {
  margin: 8px 0 32px;
}
.account-hero__eyebrow {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(207, 231, 255, 0.55);
  margin: 0 0 10px;
}
.account-hero__title {
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 4px;
  margin: 0 0 14px;
  color: #f6f8fc;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18),
    0 0 48px rgba(180, 200, 255, 0.08);
}
.account-hero__sub {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: rgba(207, 231, 255, 0.7);
  margin: 0;
}

/* ---- Frosted-glass card ------------------------------------------- */

/* Single canonical card. Brings the old <dialog id="login-dialog">
   glass aesthetic from style.css forward into the multi-section
   account UI. Specifically: heavy backdrop-filter (28px blur +
   1.4 saturate so the planet-blue tint bleeds through richly), a
   diagonal sheen pseudo-element that reads as light hitting a real
   pane of glass, generous 18 px corner radius, and a 220 ms
   entry-animation on first paint. Border + shadow stack:
     · 1 px white-12 hairline border (the visible ring)
     · 1 px white-06 inset highlight (subtle bevel on the top edge)
     · 24 px / 64 px outer drop-shadow for depth
     · 1 px cyan-08 outer ring (faint signature glow). */
.account-card {
  position: relative;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 28px 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 185, 255, 0.08);
  animation: account-card-in 220ms ease-out both;
}
.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}
@keyframes account-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Stagger sibling cards on the dashboard so they cascade in instead
   of all popping at once. Auth-card stays at zero — single card
   above the fold needs no stagger. */
.account-main--dashboard .account-card:nth-of-type(2) {
  animation-delay: 60ms;
}
.account-main--dashboard .account-card:nth-of-type(3) {
  animation-delay: 120ms;
}
.account-main--dashboard .account-card:nth-of-type(4) {
  animation-delay: 180ms;
}
.account-main--dashboard .account-card:nth-of-type(5) {
  animation-delay: 240ms;
}
@media (min-width: 720px) {
  .account-card {
    padding: 32px 34px 28px;
  }
}
/* Inner z layering: text + form children sit above the sheen. */
.account-card > * {
  position: relative;
  z-index: 1;
}
.account-card__head {
  margin-bottom: 18px;
}
.account-card__eyebrow {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(246, 248, 252, 0.5);
  margin: 0 0 6px 4px;
}
.account-card__title {
  /* Mirrors the old .login-card__title — GeistPixel Circle, big
     letter-spacing, white + soft glow. The old dialog hit hard with
     a 24 px title so the modal felt focused; here we let it scale a
     little bigger on wider viewports so the dashboard hero card
     reads with the same authority. */
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: 3px;
  margin: 0 0 0 4px;
  color: #f6f8fc;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 0 48px rgba(180, 200, 255, 0.08);
}
.account-card__title--small {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(246, 248, 252, 0.85);
  text-shadow: none;
  margin-left: 4px;
}
.account-card__lede {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(207, 231, 255, 0.6);
}
.account-card__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 248, 252, 0.08);
}
.account-card__foot-line {
  margin: 0;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(207, 231, 255, 0.55);
  line-height: 1.55;
}
.account-card__foot-line a {
  color: #5ab9ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(90, 185, 255, 0.5);
}
.account-card__foot-line a:hover {
  color: #cfe7ff;
  border-bottom-color: #cfe7ff;
}

/* ---- Auth form (sign-in / register) ------------------------------- */

/* Match the old login-modal width — min(420px, 92vw). The old
   modal centred itself on the viewport; we centre on the column
   instead so the topbar + footer still flow normally. */
.account-card--auth {
  width: min(420px, 92vw);
  margin: 8vh auto 18px;
  padding: 36px 32px 28px;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.auth-tab {
  appearance: none;
  flex: 1;
  background: transparent;
  border: 0;
  color: rgba(246, 248, 252, 0.55);
  font: inherit;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.auth-tab:hover {
  color: #cfe7ff;
}
.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #f6f8fc;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form--inline {
  margin-top: 12px;
  gap: 10px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field__label {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(246, 248, 252, 0.6);
  margin-left: 4px;
}
/* Inputs lifted from the old .login-card__field input — rounded
   10 px corners, generous 12/14 padding, the cyan-blue focus ring
   the old modal had. Bigger letter-spacing on the value reads as
   a console terminal entry, not a vanilla form field. */
.auth-field input {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f6f8fc;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  letter-spacing: 1.5px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.auth-field input::placeholder {
  color: rgba(246, 248, 252, 0.3);
}
.auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.auth-field__hint {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: rgba(246, 248, 252, 0.4);
  margin-left: 4px;
}

/* Submit button = pill-shape, white-92 background, dark-navy text.
   Identical to the old .login-card__submit so the muscle memory of
   "click the bright pill" carries forward. */
.auth-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.92);
  color: #061427;
  border: 0;
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.auth-submit:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}
.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-submit--small {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 2px;
  align-self: flex-start;
}
.auth-submit__arrow {
  font-size: 14px;
  transition: transform 120ms ease;
}
.auth-submit:hover .auth-submit__arrow {
  transform: translateX(3px);
}
.auth-status {
  min-height: 1.4em;
  margin: 0 0 0 4px;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(246, 248, 252, 0.6);
}
.auth-status.is-error {
  color: #ff8a96;
}
.auth-status.is-ok {
  color: #7be0a0;
}

/* ---- Profile row -------------------------------------------------- */

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 32%,
    rgba(168, 216, 255, 0.95),
    rgba(31, 109, 186, 0.92)
  );
  color: #04060b;
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-size: 22px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(64, 169, 255, 0.32);
  font-weight: 600;
  text-transform: uppercase;
}
.profile-meta {
  flex: 1 1 200px;
  min-width: 0;
}
.profile-meta__name {
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: #f0f7ff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}
.profile-meta__email {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(207, 231, 255, 0.6);
  margin-top: 2px;
  word-break: break-all;
}
.profile-meta__verify {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240, 198, 116, 0.85);
}
.profile-meta__verify.is-verified {
  color: rgba(123, 224, 160, 0.85);
}

/* ---- Shop grid ---------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.shop-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(20, 32, 56, 0.62),
    rgba(8, 14, 22, 0.62)
  );
  border: 1px solid rgba(90, 185, 255, 0.18);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 185, 255, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}
.shop-card__kind {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(90, 185, 255, 0.75);
}
.shop-card__title {
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-size: 16px;
  letter-spacing: 1px;
  margin: 0;
  color: #f0f7ff;
}
.shop-card__blurb {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(207, 231, 255, 0.7);
  margin: 0;
}
.shop-card__row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.shop-card__price {
  font-family: "GeistPixel Circle", ui-monospace, "JetBrains Mono", Consolas,
    monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: #cfe7ff;
}
.shop-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(90, 185, 255, 0.18);
  border: 1px solid rgba(90, 185, 255, 0.55);
  color: #cfe7ff;
}
.shop-card__badge--free {
  background: rgba(123, 224, 160, 0.15);
  border-color: rgba(123, 224, 160, 0.55);
  color: #7be0a0;
}

/* ---- Owned list --------------------------------------------------- */

.owned-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.owned-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(90, 185, 255, 0.16);
  border-radius: 4px;
}
.owned-row__glyph {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(123, 224, 160, 0.85);
}
.owned-row__title {
  flex: 1;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: #f0f7ff;
}
.owned-empty {
  margin: 0;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(207, 231, 255, 0.5);
  font-style: italic;
}

/* ---- Buttons ------------------------------------------------------ */

.account-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(90, 185, 255, 0.18);
  border: 1px solid rgba(90, 185, 255, 0.55);
  color: #cfe7ff;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.account-btn:hover {
  background: rgba(90, 185, 255, 0.32);
  color: #f6f8fc;
}
.account-btn--ghost {
  background: transparent;
  border-color: rgba(207, 231, 255, 0.32);
  color: rgba(207, 231, 255, 0.78);
}
.account-btn--ghost:hover {
  background: rgba(207, 231, 255, 0.08);
  border-color: rgba(207, 231, 255, 0.55);
  color: #f6f8fc;
}
.account-btn--danger {
  background: rgba(255, 138, 150, 0.14);
  border-color: rgba(255, 138, 150, 0.55);
  color: #ff8a96;
}
.account-btn--danger:hover {
  background: rgba(255, 138, 150, 0.28);
  color: #ffd0d6;
}

/* ---- Settings disclosure ------------------------------------------ */

.settings-detail {
  border-top: 1px solid rgba(246, 248, 252, 0.06);
  padding: 12px 0;
}
.settings-detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.settings-detail summary {
  cursor: pointer;
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(207, 231, 255, 0.78);
  list-style: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-detail summary::-webkit-details-marker {
  display: none;
}
.settings-detail summary::before {
  content: "+";
  font-size: 14px;
  color: rgba(90, 185, 255, 0.85);
  width: 14px;
  text-align: center;
}
.settings-detail[open] summary::before {
  content: "−";
}
.settings-detail--danger summary {
  color: rgba(255, 138, 150, 0.85);
}
.settings-warning {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: rgba(255, 138, 150, 0.08);
  border-left: 2px solid rgba(255, 138, 150, 0.55);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 220, 224, 0.8);
}
