/* The social development page provides the two-column composition and phone geometry. */
.project-intro.wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  align-items: center;
  width: 100%;
  min-height: 100svh;
  padding: 112px 0 50px;
  overflow: clip;
}
.wallet-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 0 24px 0 max(56px, calc((100vw - 1328px) / 2));
}
.wallet-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.15vw, 64px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.wallet-hero h1 > span { display: block; }
.wallet-title-break { display: none; }
.wallet-hero .project-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 24px 0 0;
  color: #686868;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}
.wallet-network { white-space: nowrap; }
.wallet-hero .intro-aside {
  display: block;
  min-width: 0;
  margin-top: 12px;
  padding: 0;
}
.wallet-hero .intro-aside p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  letter-spacing: 0;
  color: #555;
}
.wallet-entry { width: 100%; max-width: 340px; margin-top: 28px; }
.wallet-launch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff;
  background: #111;
  font-size: 15px;
  white-space: nowrap;
}
.wallet-launch:hover { background: #333; }
.wallet-launch svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wallet-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  color: #707070;
  font-size: 12px;
  line-height: 1.6;
}
.wallet-connection > span { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.wallet-connection button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  color: #707070;
}
.wallet-connection button:hover { color: #111; background: #f3f3f3; }
.wallet-connection button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wallet-phone-scene {
  position: relative;
  min-width: 0;
  width: 100%;
  height: calc(100svh - 162px);
  min-height: 480px;
  max-height: 850px;
}
.wallet-phone-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
.wallet-phone-display,
.wallet-phone-fallback {
  position: fixed;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
}
.wallet-phone-fallback {
  z-index: 1;
  pointer-events: none;
  background: #18191a;
  border: 5px solid #9b9b96;
  box-shadow: inset 0 0 0 2px #171819, 4px 1px 0 #63635e;
}
.wallet-phone-display {
  z-index: 2;
  overflow: hidden;
  background: #111;
  color: #eee;
  isolation: isolate;
  backface-visibility: hidden;
}
.wallet-phone-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform-origin: 0 0;
}
.wallet-phone-content #wallet-app {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.wallet-phone-content .load-panel {
  color: #ddd;
  overflow-wrap: anywhere;
}
.wallet-phone-content .load-panel.is-error .loading-mark { display: none; }

.wallet-hero-overview { min-width: 0; }
.wallet-capability-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; max-width: 340px; margin-top: 16px; border-top: 1px solid #ddd; }
.wallet-risk-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 12px 0; border-bottom: 1px solid #ddd; color: #333; font-size: 14px; text-align: left; }
.wallet-risk-trigger svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #777; stroke-width: 1.4; stroke-linecap: round; }
.wallet-risk-trigger:hover { color: #000; border-color: #777; }
.wallet-risk-coach-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; margin-top: 24px; padding: 12px 18px; border-radius: 10px; background: #111; color: #fff; font-size: 14px; }
.wallet-risk-dialog { width: min(640px, calc(100% - 36px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dedede; border-radius: 20px; overflow-y: auto; overscroll-behavior: contain; }
.wallet-risk-dialog::backdrop { background: rgb(0 0 0 / .4); }
.wallet-risk-dialog[data-motion] { transform-origin: 50% 45%; }
.wallet-risk-dialog[data-motion="open"]::backdrop { animation: capability-backdrop-in 280ms ease-out both; }
.wallet-risk-dialog[data-motion="closing"]::backdrop { animation: capability-backdrop-out 180ms ease-in both; }
@keyframes capability-backdrop-in {
  from { opacity: var(--capability-backdrop-start, 0); }
  to { opacity: 1; }
}
@keyframes capability-backdrop-out {
  from { opacity: var(--capability-backdrop-start, 1); }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-risk-dialog[data-motion]::backdrop { animation-duration: 80ms; }
}
.wallet-risk-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px 20px; border-bottom: 1px solid #e6e6e6; background: #fff; }
.wallet-risk-label { margin: 0 0 8px; color: #777; font-size: 12px; line-height: 1.5; }
.wallet-risk-dialog-head h2 { margin: 0; color: #111; font-size: 30px; font-weight: 500; line-height: 1.35; letter-spacing: -.03em; }
#close-wallet-risk, #close-wallet-security { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #f3f3f3; color: #222; font-size: 28px; line-height: 1; }
#close-wallet-risk:hover, #close-wallet-security:hover { background: #e8e8e8; }
.wallet-risk-dialog-content { padding: 22px 32px 30px; }
#wallet-risk-intro, #wallet-security-intro { margin: 0 0 12px; color: #666; font-size: 14px; line-height: 1.8; }
.wallet-risk-list { margin: 0; padding: 0; list-style: none; counter-reset: risk; }
.wallet-risk-list li { position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid #e6e6e6; counter-increment: risk; }
.wallet-risk-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.wallet-risk-list li::before { content: "0" counter(risk); position: absolute; top: 22px; left: 0; color: #888; font-size: 11px; line-height: 1.8; }
.wallet-risk-list h3 { margin: 0 0 8px; color: #222; font-size: 16px; font-weight: 500; line-height: 1.6; }
.wallet-risk-list small { display: inline-block; margin-left: 8px; color: #777; font-size: 11px; white-space: nowrap; }
.wallet-risk-list p { margin: 0; color: #666; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }

.wallet-security-group { margin-top: 28px; }
.wallet-security-group-label { margin: 0; padding-bottom: 8px; border-bottom: 1px solid #dedede; color: #222; font-size: 13px; font-weight: 600; line-height: 1.6; }
.wallet-security-advanced { margin-top: 34px; }
.wallet-security-advanced .wallet-security-group-label { color: #777; font-size: 12px; font-weight: 400; }
.wallet-security-advanced .wallet-risk-list h3 { color: #555; font-size: 14px; }
.wallet-security-note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid #e6e6e6; color: #777; font-size: 12px; line-height: 1.8; }

@media (max-width: 1100px) and (min-width: 701px) {
  .wallet-hero-copy { padding-left: 38px; padding-right: 18px; }
}
@media (max-width: 900px) {
  .wallet-title-break { display: inline; }
  .wallet-capability-actions { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) {
  .project-intro.wallet-hero { min-height: 100svh; padding: 90px 0 64px; }
  .wallet-hero-copy { padding: 0 8px 0 18px; }
  .wallet-hero h1 { font-size: clamp(24px, 7.3vw, 48px); letter-spacing: -.035em; line-height: 1.18; }
  .wallet-hero .project-label { align-items: flex-start; flex-direction: column; gap: 2px; margin-top: 16px; font-size: 11px; line-height: 1.6; }
  .wallet-hero .intro-aside { margin-top: 12px; }
  .wallet-hero .intro-aside p { font-size: clamp(11px, 2.9vw, 17px); line-height: 1.7; }
  .wallet-entry { margin-top: 20px; }
  .wallet-launch { gap: 8px; min-height: 48px; padding: 12px; border-radius: 10px; font-size: clamp(11px, 3vw, 14px); }
  .wallet-launch svg { width: 16px; height: 16px; }
  .wallet-connection { margin-top: 0; gap: 4px; font-size: 11px; }
  .wallet-capability-actions { margin-top: 12px; }
  .wallet-risk-trigger { min-height: 48px; padding-block: 12px; gap: 8px; font-size: 12px; }
  .wallet-risk-trigger svg { width: 16px; height: 16px; }
  .wallet-phone-scene { height: calc(100svh - 174px); min-height: 400px; max-height: 586px; }
  .wallet-risk-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); border-radius: 16px; }
  .wallet-risk-dialog-head { padding: 20px; }
  .wallet-risk-dialog-head h2 { font-size: 26px; }
  .wallet-risk-dialog-content { padding: 18px 20px 24px; }
  .wallet-risk-list li { padding-left: 28px; }
  .wallet-risk-list h3 { font-size: 15px; }
  .wallet-risk-list small { margin-left: 4px; }
}
@media (max-width: 359px) {
  .wallet-hero-copy { padding-left: 14px; padding-right: 6px; }
  .wallet-hero h1 { font-size: 24px; }
  .wallet-risk-trigger { font-size: 11px; }
  .wallet-risk-dialog-head h2 { font-size: 23px; }
}
