/* Account — Grower Command Deck (card stack hub + ledger rows + split auth gate) */

.page-account-deck .page-main {
  padding-top: 0;
}

.a55-deck-shell {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 10vw, 120px);
  min-height: 70vh;
  background: linear-gradient(180deg, #f7f2ea 0%, #eef4f8 48%, #f7f2ea 100%);
  overflow: clip;
}

/* Backdrop */
.a55-deck-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.a55-deck-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(10, 61, 98, 0.08);
}

.a55-deck-ring-a {
  width: min(90vw, 680px);
  height: min(90vw, 680px);
  top: -18%;
  right: -12%;
  animation: a55-deck-spin 48s linear infinite;
}

.a55-deck-ring-b {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  bottom: -22%;
  left: -8%;
  animation: a55-deck-spin 64s linear infinite reverse;
}

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

.a55-deck-thread {
  position: absolute;
  inset: 12% 8%;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 28px,
    rgba(166, 124, 82, 0.05) 28px,
    rgba(166, 124, 82, 0.05) 29px
  );
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 70%);
}

.a55-deck-wrap {
  position: relative;
  z-index: 1;
}

/* Intro */
.a55-deck-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.a55-deck-crumb a {
  color: #0a3d62;
  text-decoration: none;
}

.a55-deck-crumb a:hover { color: #c81d25; }

.a55-deck-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.a55-deck-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f3f22;
}

.a55-deck-tag span {
  padding: 4px 10px;
  border-radius: 8px;
  background: #1a3d32;
  color: #d4c4a0;
  font-size: 0.62rem;
}

.a55-deck-tag-dark { color: #64748b; }
.a55-deck-tag-dark span { background: #c81d25; color: #fff; }

.a55-deck-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.a55-deck-intro h1 strong {
  display: block;
  color: #1f6b4a;
  font-weight: 800;
}

.a55-deck-tagline {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: #475569;
  max-width: 42ch;
}

/* Loader */
.a55-deck-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
}

.a55-deck-loader-orbit {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(10, 61, 98, 0.12);
  border-top-color: #c81d25;
  animation: a55-deck-orbit 0.9s linear infinite;
}

@keyframes a55-deck-orbit {
  to { transform: rotate(360deg); }
}

.a55-deck-loader p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

/* Command strip */
.a55-deck-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: clamp(18px, 3vw, 24px) clamp(20px, 3vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: #1a3d32;
  color: #f4efe4;
  box-shadow: 0 20px 50px rgba(26, 61, 50, 0.28);
}

.a55-deck-command-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.a55-deck-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #c81d25, #9e151c);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 29, 37, 0.35);
}

.a55-deck-command-main p {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
}

.a55-deck-command-main h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.a55-deck-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.a55-deck-command-actions a,
.a55-deck-command-actions button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 228, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s, background 0.22s, border-color 0.22s;
}

.a55-deck-command-actions a:hover,
.a55-deck-command-actions button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 239, 228, 0.4);
}

.a55-deck-command-actions button:last-child:hover {
  border-color: rgba(200, 29, 37, 0.55);
  background: rgba(200, 29, 37, 0.2);
}

/* Card stack */
.a55-deck-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  margin-bottom: -28px;
  position: relative;
  z-index: 2;
  padding-inline: clamp(0px, 2vw, 12px);
}

.a55-deck-card {
  --lift: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 18px 22px;
  border: 0;
  border-radius: 20px 20px 12px 12px;
  background: #fff;
  box-shadow:
    0 calc(8px + var(--lift) * 6px) calc(24px + var(--lift) * 8px) rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  transform: translateY(calc(var(--lift) * -10px)) rotate(calc((var(--lift) - 0.5) * -1.5deg));
  transition: transform 0.38s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.38s, background 0.28s;
}

.a55-deck-card:nth-child(1) { transform: translateY(calc(var(--lift) * -10px)) rotate(-2deg); }
.a55-deck-card:nth-child(2) { transform: translateY(calc(var(--lift) * -12px)) rotate(0deg); }
.a55-deck-card:nth-child(3) { transform: translateY(calc(var(--lift) * -10px)) rotate(2deg); }

.a55-deck-card.is-active {
  --lift: 1;
  background: linear-gradient(165deg, #fff 0%, #f0fdf4 100%);
  z-index: 2;
}

.a55-deck-card-num {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c81d25;
}

.a55-deck-card strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.a55-deck-card em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
}

.a55-deck-card.is-active strong { color: #1a3d32; }

/* Stage */
.a55-deck-stage {
  position: relative;
  z-index: 1;
  padding-top: 36px;
}

.a55-deck-scenes {
  position: relative;
  min-height: 320px;
}

.a55-deck-scene {
  display: none;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  animation: a55-deck-scene-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.a55-deck-scene.is-active {
  display: block;
}

@keyframes a55-deck-scene-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.a55-deck-scene-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(26, 61, 50, 0.08);
}

.a55-deck-scene-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
}

.a55-deck-scene-head p {
  margin: 6px 0 0;
  flex: 1 1 100%;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

.a55-deck-link {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(10, 61, 98, 0.08);
  color: #0a3d62;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.a55-deck-link:hover {
  background: rgba(10, 61, 98, 0.14);
  transform: translateY(-1px);
}

/* Notice */
.a55-deck-notice .notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
  animation: a55-deck-scene-in 0.4s ease;
}

.a55-deck-notice .notice.success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.a55-deck-notice .notice.warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Ledger rows (profile) */
.a55-deck-ledger {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.a55-deck-ledger .profile-item {
  display: grid;
  grid-template-columns: minmax(120px, 28%) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
  transition: background 0.25s, padding-inline 0.25s;
}

.a55-deck-ledger .profile-item:last-child {
  border-bottom: 0;
}

.a55-deck-ledger .profile-item:hover {
  padding-inline: 10px;
  background: rgba(240, 253, 244, 0.65);
  border-radius: 12px;
}

.a55-deck-ledger .profile-item .k {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a67c52;
}

.a55-deck-ledger .profile-item .v {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.a55-deck-ledger .profile-item .v.mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  color: #334155;
}

/* Order tickets */
.a55-deck-tickets {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.a55-deck-tickets .mini-copy {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  width: 100%;
  color: #64748b;
  font-size: 0.92rem;
  border-radius: 16px;
  background: #f8fafc;
}

.a55-deck-tickets .order-row {
  flex: 0 0 auto;
  width: min(300px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf6f0 0%, #fff 100%);
  border: 1.5px dashed rgba(166, 124, 82, 0.35);
  transition: transform 0.28s, box-shadow 0.28s;
}

.a55-deck-tickets .order-row:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.a55-deck-tickets .order-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.a55-deck-tickets .order-row .mini-copy {
  padding: 0;
  background: none;
  text-align: left;
  width: auto;
  font-size: 0.78rem;
  color: #64748b;
}

.a55-deck-tickets .order-row .btn-soft,
.a55-deck-tickets .order-row a.btn-soft {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a3d32;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.a55-deck-tickets .order-row .btn-soft:hover {
  transform: scale(1.04);
  background: #0f2918;
}

/* Forms */
.a55-deck-demo-hint {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(26, 61, 46, 0.08);
  border: 1px solid rgba(26, 61, 46, 0.14);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.a55-deck-demo-hint strong {
  color: #0f2918;
  font-weight: 700;
}

.a55-deck-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.a55-form-narrow { max-width: 400px; }

.a55-deck-input {
  position: relative;
  display: block;
}

.a55-deck-input span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  transition: color 0.22s;
}

.a55-deck-input input {
  width: 100%;
  padding: 14px 0 10px;
  border: 0;
  border-bottom: 2px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.25s;
}

.a55-deck-input i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #1f6b4a, #c81d25);
  transition: width 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.a55-deck-input.is-live span,
.a55-deck-input:focus-within span {
  color: #1a3d32;
}

.a55-deck-input:focus-within input {
  border-bottom-color: transparent;
}

.a55-deck-input:focus-within i,
.a55-deck-input.is-live i {
  width: 100%;
}

.a55-deck-meter {
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.a55-deck-meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #f87171, #fbbf24, #1f6b4a);
  transition: width 0.35s ease;
}

.a55-deck-meter[data-level="low"]::after { width: 33%; }
.a55-deck-meter[data-level="mid"]::after { width: 66%; }
.a55-deck-meter[data-level="high"]::after { width: 100%; }

.a55-deck-cta {
  align-self: flex-start;
  padding: 14px 26px;
  border: 0;
  border-radius: 14px;
  background: #1a3d32;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 61, 50, 0.25);
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
}

.a55-deck-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 61, 50, 0.32);
  background: #0f2918;
}

.a55-deck-cta:active {
  transform: translateY(0) scale(0.98);
}

.a55-deck-cta-soft {
  background: rgba(10, 61, 98, 0.1);
  color: #0a3d62;
  box-shadow: none;
}

.a55-deck-cta-soft:hover {
  background: rgba(10, 61, 98, 0.16);
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.12);
}

/* Compass quick switch */
.a55-deck-compass {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.35);
}

.a55-deck-compass .dash-nav-link {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(248, 250, 252, 0.65);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}

.a55-deck-compass .dash-nav-link.is-active {
  background: #c81d25;
  color: #fff;
  transform: scale(1.08);
}

.a55-deck-compass .dash-nav-link:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Logged-out gate */
.a55-deck-gate-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.a55-deck-gate-story {
  padding: clamp(28px, 4vw, 40px);
  background:
    linear-gradient(145deg, #d4c4a0 0%, #e8dcc8 40%, #f7f2ea 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.a55-deck-gate-story h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.a55-deck-story-lede {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  max-width: 38ch;
}

.a55-deck-story-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.a55-deck-story-scroll::-webkit-scrollbar { display: none; }

.a55-deck-story-chip {
  flex: 0 0 auto;
  max-width: 240px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 61, 50, 0.12);
  font-size: 0.82rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.4;
  scroll-snap-align: start;
  animation: a55-deck-chip-in 0.5s ease both;
  animation-delay: calc(var(--ci) * 0.08s);
}

@keyframes a55-deck-chip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.a55-deck-story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.a55-deck-story-links a {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0a3d62;
  text-decoration: none;
  border-bottom: 2px solid rgba(10, 61, 98, 0.25);
}

.a55-deck-gate-auth {
  padding: clamp(24px, 4vw, 36px);
  background: #fff;
  margin-left: -8%;
}

.a55-deck-auth {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 28px);
  min-height: 100%;
}

.a55-deck-auth-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.a55-deck-auth-rail .auth-split-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 18px 10px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s, color 0.28s, transform 0.28s;
}

.a55-deck-auth-rail .auth-split-tab.is-active {
  background: #1a3d32;
  color: #fff;
  transform: rotate(180deg) scale(1.04);
}

.a55-deck-auth-panels {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.a55-deck-auth-panels h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-split-panel {
  display: none;
}

.auth-split-panel.is-active {
  display: block;
  animation: a55-deck-auth-slide 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes a55-deck-auth-slide {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.a55-deck-recover {
  margin-top: 20px;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.a55-deck-recover summary {
  padding: 14px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a3d62;
  cursor: pointer;
  list-style: none;
}

.a55-deck-recover summary::-webkit-details-marker { display: none; }

.a55-deck-recover .a55-deck-form {
  padding-bottom: 8px;
}

/* Toast */
.page-account-deck .toast,
.page-account-deck .a55-deck-toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0));
  right: 24px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s;
}

.page-account-deck .toast.is-visible,
.page-account-deck .toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-account-deck .toast.success { background: #166534; }
.page-account-deck .toast.error { background: #9e151c; }
.page-account-deck .toast.warning { background: #92400e; color: #fff8e8; }

/* Animate in */
.a55-deck-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.a55-deck-animate.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Always show sign-in gate + intro without waiting for JS */
.a55-deck-intro.a55-deck-animate,
.a55-deck-gate .a55-deck-animate {
  opacity: 1;
  transform: none;
}

.a55-deck-gate {
  margin-top: clamp(8px, 2vw, 16px);
}

.a55-deck-loader[hidden] {
  display: none !important;
}

.a55-deck-hub[hidden],
.a55-deck-gate[hidden] {
  display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
  .a55-deck-intro-grid { grid-template-columns: 1fr; }
  .a55-deck-gate-split { grid-template-columns: 1fr; }
  .a55-deck-gate-story { clip-path: none; }
  .a55-deck-gate-auth { margin-left: 0; }
  .a55-deck-auth { grid-template-columns: 1fr; }
  .a55-deck-auth-rail {
    flex-direction: row;
    writing-mode: horizontal-tb;
  }
  .a55-deck-auth-rail .auth-split-tab {
    writing-mode: horizontal-tb;
    transform: none;
    flex: 1;
    padding: 12px;
  }
  .a55-deck-auth-rail .auth-split-tab.is-active {
    transform: none;
  }
  .a55-deck-stack { grid-template-columns: 1fr; margin-bottom: 16px; }
  .a55-deck-card,
  .a55-deck-card:nth-child(n) {
    transform: none !important;
  }
  .a55-deck-ledger .profile-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .a55-deck-command-actions { width: 100%; }
  .a55-deck-command-actions a,
  .a55-deck-command-actions button { flex: 1; text-align: center; }
}

@media (max-width: 1080px) {
  .a55-deck-compass {
    bottom: calc(96px + env(safe-area-inset-bottom, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .a55-deck-ring,
  .a55-deck-loader-orbit,
  .a55-deck-scene,
  .a55-deck-story-chip,
  .auth-split-panel.is-active {
    animation: none !important;
  }
  .a55-deck-card,
  .a55-deck-animate {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
