:root {
  --seal-start-header: var(--se-header-height, 84px);
  --machine-frame-width: min(85vw, 1500px);
}

.view-start {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #07100f;
}

.view-start .app-footer {
  display: none;
}

.seal-start {
  box-sizing: border-box;
  height: calc(100dvh - var(--seal-start-header));
  display: block;
  overflow: hidden;
  color: #f5f0e6;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    #07100f;
  background-size: 80px 80px, 80px 80px, auto;
}

.seal-start-rail {
  display: none;
}

.seal-start-rail span,
.seal-start-kicker,
.seal-start-code,
.seal-start-boundary > span {
  color: #59dce8;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .19em;
}

.seal-start-rail strong {
  display: block;
  margin-top: 14px;
  font: 300 clamp(48px, 4.6vw, 72px)/.9 Inter, sans-serif;
}

.seal-start-rail strong small {
  color: #76827f;
  font-size: .28em;
}

.seal-start-rail div > i {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.seal-start-rail div > i b {
  width: 22px;
  height: 4px;
  background: #1d2b2a;
}

.seal-start-rail div > i b:nth-child(-n+5) {
  background: linear-gradient(90deg, #f1bf56, #59dce8);
  box-shadow: 0 0 12px rgba(89,220,232,.28);
}

.seal-start-rail dl {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-top: 20px;
  border-top: 0;
}

.seal-start-rail dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.seal-start-rail dt,
.seal-start-rail dd,
.seal-start-rail p {
  margin: 0;
  color: #8d9996;
  font-size: 11px;
}

.seal-start-rail dd {
  color: #d8d0bd;
}

.seal-start-main {
  width: var(--machine-frame-width);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px, 2.4vh, 28px) 0 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vh, 18px);
  overflow: hidden;
}

.seal-start-main > header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .5fr);
  gap: clamp(26px, 3vw, 50px);
  align-items: start;
}

.seal-start-main h1 {
  grid-column: 1;
  margin: 8px 0 0;
  max-width: 900px;
  color: #f5f0e6;
  font: 430 clamp(38px, 3.5vw, 56px)/.94 Inter, sans-serif;
  letter-spacing: -.055em;
}

.seal-start-account {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  color: #dce3dd;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.seal-start-account > span:first-child {
  width: 4px;
  height: 28px;
  background: #142120;
  border-radius: 2px;
}

.seal-start-account.is-connected > span:first-child {
  background: #b7ff2a;
}

.seal-start-account > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.seal-start-account small {
  color: #59dce8;
  font: 700 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}

.seal-start-account b,
.seal-start-account em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seal-start-account b {
  font-size: 13px;
  font-weight: 670;
}

.seal-start-account em {
  color: #7f8b88;
  font-size: 10px;
  font-style: normal;
}

.seal-start-account > i {
  color: #8d9996;
  font-size: 16px;
  font-style: normal;
  transition: color 160ms ease, transform 160ms ease;
}

.seal-start-account:hover > i,
.seal-start-account:focus-visible > i {
  color: #b7ff2a;
  transform: translateX(3px);
}

.seal-start-account:focus-visible {
  outline: 2px solid #59dce8;
  outline-offset: 8px;
}

.seal-start-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
  align-items: center;
}

.seal-start-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #f5f0e6;
  text-align: left;
  background: #0c1717;
  cursor: pointer;
  isolation: isolate;
}

.seal-start-card:focus-visible {
  outline: 3px solid #59dce8;
  outline-offset: 3px;
}

.seal-start-code {
  position: absolute;
  top: clamp(16px, 1.6vw, 22px);
  left: clamp(18px, 1.8vw, 26px);
  color: rgba(225,235,229,.62);
}

.seal-start-copy {
  position: absolute;
  inset: auto clamp(18px, 1.8vw, 26px) clamp(16px, 1.6vw, 22px);
  display: block;
}

.seal-start-copy > strong {
  display: block;
  max-width: 16ch;
  font-size: clamp(25px, 2vw, 35px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.seal-start-copy > p {
  max-width: 48ch;
  margin: 7px 0 12px;
  color: rgba(239,244,239,.72);
  font-size: clamp(11px, .9vw, 14px);
  line-height: 1.4;
}

.seal-start-copy footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seal-start-copy footer span {
  display: grid;
  gap: 3px;
}

.seal-start-copy footer small {
  color: rgba(239,244,239,.48);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seal-start-copy footer span b,
.seal-start-copy footer > i {
  color: #d8d0bd;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.seal-start-copy footer > i {
  color: #b7ff2a;
  margin-left: auto;
}

.seal-start-copy footer > i b {
  font-size: 18px;
}

.seal-start-user-data {
  min-width: 0;
}

.seal-start-user-data b {
  overflow: hidden;
  color: #d8d0bd !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seal-start-boundary {
  padding-top: 8px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  border-top: 0;
}

.seal-start-boundary p {
  margin: 0;
  max-width: 900px;
  color: #697572;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-height: 780px) and (min-width: 981px) {
  .seal-start-main {
    padding-top: 16px;
    gap: 10px;
  }

  .seal-start-main h1 {
    font-size: clamp(35px, 3.5vw, 54px);
  }

  .seal-start-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 980px) {
  :root {
    --machine-frame-width: calc(100% - 28px);
  }

  .view-start {
    height: auto;
    overflow: visible;
  }

  .seal-start {
    height: auto;
    min-height: calc(100dvh - var(--seal-start-header));
    overflow: visible;
  }

  .seal-start-rail {
    display: none;
  }

  .seal-start-main {
    overflow: visible;
  }

  .seal-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    overflow-x: visible;
  }

  .seal-start-card {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .seal-start-grid {
    grid-template-columns: 1fr;
  }

  .seal-start-main {
    width: calc(100% - 28px);
    padding: 28px 0 36px;
    display: block;
  }

  .seal-start-main > header {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .seal-start-account {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }

  .seal-start-main h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .seal-start-card {
    min-height: 200px;
  }

  .seal-start-boundary {
    margin-top: 22px;
    grid-template-columns: 1fr;
  }
}
