/* ============================================================
   WHALE — Prototype shell + animations
   ============================================================ */

body {
  margin: 0;
  background: #1A1714;
  color: #F1ECE0;
  font-family: "Geist", "PingFang SC", -apple-system, system-ui, sans-serif;
  overflow: hidden;
  height: 100vh;
}

#root { height: 100vh; }

.pf-stage {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
}

/* ─── controls panel ─── */
.pf-controls {
  height: 100vh;
  padding: 32px 28px;
  background: linear-gradient(180deg, #1A1714 0%, #14110E 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
  overflow-y: auto;
  font-family: "Geist", system-ui;
}
.pf-controls-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #67655E;
  margin-bottom: 10px;
}
.pf-controls-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.pf-step {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.03);
  color: #67655E;
  display: flex; align-items: center; gap: 10px;
  transition: all .25s;
  position: relative;
}
.pf-step::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #34322E;
  flex-shrink: 0;
  transition: all .25s;
}
.pf-step.on {
  background: rgba(212,153,104,0.12);
  color: #D49968;
  box-shadow: inset 0 0 0 0.5px rgba(212,153,104,0.3);
}
.pf-step.on::before {
  background: #D49968;
  box-shadow: 0 0 8px rgba(212,153,104,0.6);
}

.pf-reset {
  margin-top: 8px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #97948A;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  width: 100%;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.08);
  transition: all .15s;
}
.pf-reset:hover {
  background: rgba(255,255,255,0.04);
  color: #F1ECE0;
}

.pf-jumps {
  display: flex; flex-direction: column; gap: 4px;
}
.pf-jumps button {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #97948A;
  font-family: "Geist", system-ui;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.pf-jumps button.on {
  background: rgba(212,153,104,0.14);
  color: #D49968;
  box-shadow: inset 0 0 0 0.5px rgba(212,153,104,0.4);
}
.pf-jumps button:hover {
  background: rgba(255,255,255,0.04);
  color: #F1ECE0;
}

.pf-state {
  display: flex; flex-direction: column; gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}
.pf-state > div {
  display: flex; justify-content: space-between;
  padding: 4px 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.pf-state .k { color: #67655E; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-state .v { color: #D8CFB8; }

.pf-controls-foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: "Noto Sans SC", system-ui;
  font-size: 11px;
  line-height: 1.7;
  color: #56534A;
}

/* ─── phone bezel (centered in right column) ─── */
.pf-stage > .pf-bezel {
  margin: 0 auto;
}
.pf-bezel {
  width: 390px; height: 844px; border-radius: 48px;
  background: #0B0B0C;
  box-shadow: 0 60px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 0 6px #1A1A1C;
  position: relative; overflow: hidden;
  font-family: "Geist", "PingFang SC", -apple-system, system-ui, sans-serif;
}
.pf-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px; border-radius: 24px; background: #000; z-index: 50;
}
.pf-statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 50px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 0; z-index: 30;
  font-family: -apple-system, "SF Pro", system-ui;
  font-weight: 600; font-size: 14px;
}
.pf-home {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; pointer-events: none;
}
.pf-home > div {
  width: 130px; height: 4px; border-radius: 100px;
  background: rgba(255,255,255,0.65);
}

/* dock click overlay */
.pf-dock-overlay {
  position: absolute; left: 0; right: 0; bottom: 18px;
  height: 60px; z-index: 40;
  display: flex;
  padding: 0 14px;
  pointer-events: none;
}
.pf-dock-overlay button {
  flex: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

/* ─── animations ─── */
@keyframes pf-rot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pf-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pf-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pf-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes pf-scrim-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pf-cursor-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes pf-tab-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pf-fade-in { animation: pf-fade-in .35s ease both; }
.pf-toast { animation: pf-toast-in .28s cubic-bezier(.34, 1.56, .64, 1) both; }
.pf-tab-fade { animation: pf-tab-in .35s ease both; }

.pf-cursor {
  display: inline-block;
  width: 1px; height: 14px;
  background: #0B0B0C;
  vertical-align: -2px;
  margin-left: 2px;
  animation: pf-cursor-blink 1s steps(1) infinite;
}

/* connect button pulse */
@keyframes pf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,107,49,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(196,107,49,0); }
}

/* spinner */
.pf-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(241,236,224,0.3);
  border-top-color: rgba(241,236,224,0.95);
  animation: pf-rot 0.8s linear infinite;
  display: inline-block;
}
.pf-spin-lg {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(11,11,12,0.15);
  border-top-color: #0B0B0C;
  animation: pf-rot 0.9s linear infinite;
}

/* wallet card hover */
.pf-wallet-card:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25);
}
.pf-wallet-card:not(:disabled):active {
  transform: translateY(0);
}

/* bind cta hover */
.pf-bind-cta:hover {
  background: #1A1A1C !important;
}

/* sheet */
.pf-sheet-wrap {
  position: absolute; inset: 0; z-index: 100;
}
.pf-sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(11,11,12,0.5);
  backdrop-filter: blur(2px);
  animation: pf-scrim-in .25s ease both;
}
.pf-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #F1ECE0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 48px -12px rgba(0,0,0,0.5), 0 0 0 0.5px rgba(11,11,12,0.13);
  padding: 10px 0 22px;
  animation: pf-sheet-up .38s cubic-bezier(.32, .72, 0, 1) both;
  max-height: 90%;
  overflow-y: auto;
}
.pf-sheet-handle {
  width: 38px; height: 4px; border-radius: 999px;
  background: rgba(11,11,12,0.13);
  margin: 0 auto 14px;
}

.pf-quick-btn {
  flex: 1; border: 0; background: transparent;
  box-shadow: 0 0 0 0.5px rgba(11,11,12,0.13);
  border-radius: 8px; padding: 9px 0;
  font-family: "Noto Sans SC", system-ui;
  font-size: 11px; color: #67655E;
  cursor: pointer;
  display: inline-flex; justify-content: center; gap: 6px;
  transition: all .15s;
}
.pf-quick-btn:hover {
  background: rgba(11,11,12,0.04);
  color: #0B0B0C;
}

/* responsive: stack on small */
@media (max-width: 880px) {
  .pf-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pf-controls { height: auto; max-height: 40vh; }
}
