:root{
  /* Theme tokens (Phase 1 local) */
  --bg: #0b0b0d;            /* near-black */
  --fg: #f2f2f7;            /* light text */
  --muted: #a1a1aa;         /* subdued text */
  --purple: #6A0DAD;        /* brand primary */
  --gold: #FFD700;          /* accent */
  --card: #121217;          /* card surface */
  --error: #ff4d4f;         /* error text */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1000px 400px at 50% -10%, rgba(106,13,173,0.20), transparent 60%),
              var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.view { display: grid; place-items: center; min-height: 100vh; }
.hidden { display: none !important; }

.lock-card{
  width: min(420px, calc(100% - 32px));
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,215,0,0.55); /* thin gold outline */
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
}

.lock-logo{
  width: 64px; height: 64px; display:block; margin: 0 auto 8px auto;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.25));
}

.lock-title{
  text-align: center; margin: 4px 0 12px 0; font-weight: 700; letter-spacing: 0.2px;
}

.lock-instructions{
  margin: 0 0 14px 0; text-align: center; color: var(--muted); min-height: 1.5em;
}

.pin-dots{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  width: 80%; margin: 0 auto 18px auto;
}
.pin-dots span{
  height: 12px; border-radius: 999px; border: 1px solid rgba(255,215,0,.55);
  background: transparent;
}
.pin-dots span.filled{ background: var(--gold); }

.keypad{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.key{
  font-size: 18px; font-weight: 600; padding: 16px 0;
  background: #16161c; color: var(--fg);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  cursor: pointer; user-select: none;
  transition: transform .06s ease, background .15s ease, border-color .2s ease;
}
.key:active{ transform: translateY(1px) scale(0.995); }
.key:hover{ background: #1b1b23; }
.key.key-action{ background: #131319; }

.lock-status{
  text-align:center; min-height: 1.25em; margin: 12px 0 0 0; color: var(--error);
}

.shake{
  animation: shake .35s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* App stub (Phase 1 only) */
.app-stub{
  width: min(800px, calc(100% - 32px));
  margin: 40px auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,215,0,.55);
  box-shadow: var(--shadow);
  padding: 24px;
}
