/* ChristKeys Memory Palace — App Styles */
/* Design tokens from ChristKeys_App_Design_Tokens.md */

:root {
  --bg: #1a1a1a;
  --bg-dark: #0c0c0c;
  --copper: #b87333;
  --copper-btn: #b85c2b;
  --ignite: #f48015;
  --gold: #c5a059;
  --tan: #d2b48c;
  --cream: #e6d5c3;
  --silver: #bcc6cc;
  --deep-copper: #8a5022;
  --light-copper: #f3d2b3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-dark);
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* View transition — every screen fades up into place */
.view-anim { animation: viewfade 0.45s ease-out; }

/* Desktop: hold the app to a phone-width column so 9:16 images keep their frame */
@media (min-width: 540px) {
  body { background: #060505; }
  .view-anim {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    border-left: 1px solid #2a221b;
    border-right: 1px solid #2a221b;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
  }
}
@keyframes viewfade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gradient text — the metals */
.grad, .grad-copper {
  background: linear-gradient(145deg, #b87333, #f3d2b3, #8a5022);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(145deg, #c5a059, #f6e7bd, #8a6a22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-silver {
  background: linear-gradient(145deg, #9aa6ad, #eef2f4, #5f6b72);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Red letters — the words of Christ */
.red-letter { color: #d8544a !important; -webkit-text-fill-color: #d8544a; }
.red-dot { color: #d8544a; font-size: 8px; vertical-align: middle; }
.red-letter-note {
  font-size: 11px;
  color: #6b6258;
  padding: 4px 2px 8px;
  letter-spacing: 0.04em;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.08s, box-shadow 0.08s;
  user-select: none;
}

.btn + .btn { margin-top: 10px; }

.btn-primary {
  background: var(--copper-btn);
  color: var(--ignite);
  border: 3px solid var(--copper);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.55);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--copper);
}

.btn-ghost:active {
  background: rgba(184, 115, 51, 0.1);
}

.btn-dim {
  background: transparent;
  color: #6b6258;
  border: 1px solid #3a3028;
  font-size: 13px;
  padding: 10px;
}

/* ============================================================
   HOME VIEW
   ============================================================ */

.home-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.home-header {
  padding: 52px 24px 22px;
  background: linear-gradient(to bottom, #0c0c0c 60%, transparent);
}

.home-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.home-medallion {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(184, 115, 51, 0.35);
}

.home-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}

.home-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 4px;
}

.home-tagline {
  font-size: 11px;
  color: #8a7a6a;
  letter-spacing: 0.04em;
}

/* Home tabs — The Street / By Book */
.home-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.home-tab {
  flex: 1;
  background: transparent;
  border: 2px solid #3a3028;
  color: #8a7a6a;
  padding: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.home-tab.active {
  border-color: var(--copper);
  color: var(--gold);
  background: rgba(184, 115, 51, 0.07);
}

/* Book headers with section metals */
.book-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.book-name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.book-section {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a5048;
}

.metal-gold   .book-name { color: var(--gold);   text-shadow: 0 0 8px rgba(197,160,89,0.35); }
.metal-copper .book-name { color: var(--copper); text-shadow: 0 0 8px rgba(184,115,51,0.35); }
.metal-silver .book-name { color: var(--silver); text-shadow: 0 0 8px rgba(188,198,204,0.3); }
.metal-bronze .book-name { color: #a06a3a;       text-shadow: 0 0 8px rgba(160,106,58,0.35); }
.metal-iron   .book-name { color: #8d9499;       text-shadow: 0 0 8px rgba(141,148,153,0.3); }
.metal-steel  .book-name { color: #7e97a8;       text-shadow: 0 0 8px rgba(126,151,168,0.3); }

.streak-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 115, 51, 0.08);
  border: 1px solid rgba(184, 115, 51, 0.25);
  padding: 12px 16px;
}

.streak-flame { font-size: 18px; line-height: 1; }
.streak-num {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}
.streak-label {
  font-size: 12px;
  color: var(--tan);
  letter-spacing: 0.04em;
}
.streak-reviews {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ignite);
}

.keys-count {
  margin-left: auto;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-right: 10px;
}
.keys-count + .streak-reviews { margin-left: 0; }

.sparks-count {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: var(--ignite);
  letter-spacing: 0.04em;
  padding-right: 10px;
}

.section-pad { padding: 0 24px; margin-bottom: 28px; }
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

/* Today card */
.today-card {
  background: var(--bg);
  border: 1px solid rgba(184, 115, 51, 0.2);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.today-card::after {
  content: '→';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--copper);
  opacity: 0.6;
}
.today-card:active { border-color: var(--copper); }

.today-ref {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.today-preview {
  font-size: 13px;
  color: var(--tan);
  line-height: 1.55;
  margin-bottom: 12px;
  padding-right: 20px;
}
.mode-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--copper);
  color: var(--copper);
}
.mode-badge.review { border-color: var(--ignite); color: var(--ignite); }

.no-today {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 24px 20px;
  text-align: center;
}
.no-today p { font-size: 13px; color: #6b6258; line-height: 1.65; }

/* Progress map */
.campaign-block { margin-bottom: 28px; }

.campaign-name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.campaign-theme {
  font-size: 12px;
  color: #5a5048;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.verse-nodes { display: flex; flex-direction: column; gap: 8px; }

.vnode {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color 0.2s;
}
.vnode:active { border-color: rgba(184, 115, 51, 0.4); }
.vnode.learned { border-color: rgba(184, 115, 51, 0.3); }
.vnode.due { border-color: rgba(244, 128, 21, 0.35); }

.node-icon {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  flex-shrink: 0;
  color: #5a5048;
}
.vnode.learned .node-icon { border-color: var(--copper); color: var(--gold); }
.vnode.due .node-icon { border-color: var(--ignite); color: var(--ignite); }

/* Mastery tiers — the forged-metal ladder */
.vnode.tier-copper .node-icon { border-color: var(--copper); color: var(--copper); }
.vnode.tier-silver .node-icon { border-color: var(--silver); color: var(--silver); box-shadow: 0 0 8px rgba(188,198,204,0.25); }
.vnode.tier-gold   .node-icon { border-color: var(--gold);   color: var(--gold);   box-shadow: 0 0 10px rgba(197,160,89,0.4); }
.vnode.tier-silver .node-status { color: var(--silver); }
.vnode.tier-gold   .node-status { color: var(--gold); }

/* Locked campaign */
.locked-card {
  background: var(--bg);
  border: 1px dashed rgba(184, 115, 51, 0.35);
  padding: 20px;
  text-align: center;
}
.locked-icon { font-size: 22px; margin-bottom: 8px; opacity: 0.7; }
.locked-note {
  font-size: 12px;
  color: #8a7a6a;
  line-height: 1.6;
  margin-bottom: 16px;
}
.unlock-row { display: flex; gap: 8px; }
.unlock-input {
  flex: 1;
  background: #111;
  border: 1px solid #3a3028;
  color: var(--cream);
  padding: 10px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 40px;
  text-align: center;
  outline: none;
  min-width: 0;
}
.unlock-input:focus { border-color: var(--copper); }
.unlock-input.shake { animation: shake 0.35s ease; border-color: #a03020; }
.unlock-btn { width: auto; padding: 10px 20px; margin: 0; }
.unlock-row .btn + .btn { margin-top: 0; }
.unlock-msg {
  font-size: 11px;
  color: #c08a5a;
  line-height: 1.5;
  margin-top: 10px;
  min-height: 1em;
}
.coming-soon-card { opacity: 0.72; }
.coming-soon-card .locked-note { margin-bottom: 0; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   THE METHOD — onboarding
   ============================================================ */

.method-view {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 10%, #241a10 0%, #0a0908 60%);
  position: relative;
}

.method-body {
  max-width: 460px;
  margin: 0 auto;
  padding: 90px 26px 50px;
}

.method-title {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 30px;
}

.method-card {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(184, 115, 51, 0.18);
}

.method-num {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--copper);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 2px;
}

.method-head {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.method-text {
  font-size: 13px;
  color: var(--tan);
  line-height: 1.65;
}

.method-note {
  border: 1px dashed rgba(184, 115, 51, 0.3);
  padding: 14px 16px;
  font-size: 12px;
  color: #9c8a72;
  line-height: 1.65;
  margin: 24px 0 28px;
  font-style: italic;
}

.method-echo {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-bottom: 10px;
}

/* Watchman audio */
.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}
.play-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audio-row:active .play-icon { background: rgba(184,115,51,0.15); }
.audio-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
}

.sparks-earned {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ignite);
  margin-bottom: 14px;
}

.node-ref {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 2px;
}
.node-status { font-size: 11px; color: #5a5048; }
.vnode.learned .node-status { color: var(--copper); }
.vnode.due .node-status { color: var(--ignite); }

/* ============================================================
   INTRO VIEW
   ============================================================ */

.intro-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0908;
  position: relative;
}

.back-btn {
  position: absolute;
  top: 46px;
  left: 16px;
  z-index: 30;
  background: rgba(10,9,8,0.7);
  border: 1px solid rgba(184,115,51,0.3);
  color: var(--tan);
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.back-btn:active { background: rgba(184,115,51,0.15); }

.intro-image {
  flex: 0 0 48vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #2a1f14 0%, #0a0908 70%);
}

.intro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.intro-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #0a0908 100%);
}

.intro-content {
  padding: 20px 24px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intro-campaign-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 6px;
}

.intro-ref {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
}

.intro-text {
  font-size: 15px;
  color: var(--tan);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.spot-pips { display: flex; gap: 6px; margin-bottom: 24px; }
.pip { flex: 1; height: 2px; background: rgba(255,255,255,0.1); }
.pip.done { background: var(--copper); }

/* ============================================================
   PALACE WALK VIEW
   ============================================================ */

.palace-view {
  min-height: 100vh;
  position: relative;
  background: #0a0908;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.palace-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.palace-bg.visible {
  opacity: 1;
  animation: kenburns 18s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.palace-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #241a10 0%, #0a0908 65%);
  z-index: 1;
}

.fallback-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184,115,51,0.35);
  text-align: center;
  padding: 0 40px;
  line-height: 2;
}

.palace-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 46px 20px 14px;
  background: linear-gradient(to bottom, rgba(10,9,8,0.92) 0%, transparent 100%);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.spot-counter {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.verse-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.progress-track { height: 2px; background: rgba(255,255,255,0.12); }
.progress-fill { height: 2px; background: var(--copper); transition: width 0.4s ease; }

.palace-room-label {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
}

.palace-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 28px 22px 44px;
  background: linear-gradient(to top, rgba(10,9,8,0.97) 62%, transparent 100%);
}

.picture-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-bottom: 5px;
}

.picture-text {
  font-size: 13px;
  color: var(--tan);
  line-height: 1.55;
  margin-bottom: 14px;
}

.words-display {
  font-weight: 300;
  font-size: 26px;
  line-height: 1.38;
  color: var(--cream);
  margin-bottom: 20px;
  min-height: 38px;
}

.hidden-slot {
  border: 1px dashed rgba(90, 74, 57, 0.7);
  padding: 16px;
  text-align: center;
  color: rgba(90, 74, 57, 0.7);
  font-size: 22px;
  letter-spacing: 10px;
  margin-bottom: 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INTERSTITIAL VIEW (learn -> recall)
   ============================================================ */

.interstitial-view {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, #241a10 0%, #0a0908 70%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.interstitial-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 28px 44px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.interstitial-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a7a6a;
  margin-bottom: 14px;
}

.interstitial-title {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 18px;
}

.interstitial-text {
  font-size: 14px;
  color: var(--tan);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================================
   WALK IT BACK — ORDER TEST
   ============================================================ */

.order-view {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 15%, #241a10 0%, #0a0908 60%);
  display: flex;
  flex-direction: column;
  padding: 90px 22px 40px;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.order-header { margin-bottom: 22px; }

.order-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}

.order-sub {
  font-size: 13px;
  color: var(--tan);
  line-height: 1.6;
}

.placed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 70px;
}

.placed-empty {
  font-size: 12px;
  color: #5a5048;
  font-style: italic;
  padding: 14px 4px;
}

.placed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(184, 115, 51, 0.07);
  border: 1px solid rgba(184, 115, 51, 0.3);
  padding: 10px 14px 10px 10px;
  animation: viewfade 0.3s ease-out;
}

.placed-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(184, 115, 51, 0.4);
  flex-shrink: 0;
}

.placed-room {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 2px;
}

.placed-frag {
  font-size: 14px;
  color: var(--cream);
  font-weight: 300;
}

.chip-pool {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frag-chip {
  background: var(--bg);
  border: 2px solid #5a4634;
  color: var(--cream);
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.15s;
}
.frag-chip:active { border-color: var(--copper); }

.frag-chip.shake {
  animation: shake 0.35s ease;
  border-color: #a03020;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.order-done { animation: viewfade 0.5s ease-out; }

.order-verse {
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ============================================================
   COMPLETE VIEW
   ============================================================ */

.complete-view {
  min-height: 100vh;
  background: #0a0908;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}

.complete-emblem {
  font-size: 44px;
  margin-bottom: 22px;
  line-height: 1;
}

.complete-title {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 10px;
}

.flawless-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(188, 198, 204, 0.35);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 14px;
}

.complete-ref {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.complete-verse {
  font-size: 14px;
  color: var(--tan);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto 26px;
  font-style: italic;
}

.next-review-note {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a5048;
  margin-bottom: 32px;
}

.complete-actions { width: 100%; max-width: 320px; }
