:root {
  --blue-900: #061237;
  --blue-800: #081a4a;
  --blue-700: #0b2c6c;
  --blue-600: #0f4a9a;
  --blue-500: #1d73c7;
  --blue-400: #3c8ed6;
  --steel-100: #e7eef7;
  --steel-200: #c9d8e8;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
  --base-w: 738;
  --base-h: 1600;
  --scale: 1;
  --view-w: 738;
  --view-h: 1600;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100dvh;
  display: block;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(180deg, #1a62b5 0%, #0b3a86 38%, #061237 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.viewport {
  width: 100vw;
  height: calc(var(--view-h) * 1px);
  margin: 0;
  position: relative;
  overflow: hidden;
}

.screen {
  width: calc(var(--base-w) * 1px);
  height: calc(var(--base-h) * 1px);
  padding: 0;
  border-radius: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%) scale(var(--scale));
  transform-origin: top center;
  background:
    radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(180deg, #1a62b5 0%, #0b3a86 38%, #061237 100%);
  box-shadow: 0 30px 60px rgba(2, 8, 28, 0.7);
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
}

.screen::before {
  background:
    radial-gradient(140px 140px at 72% 36%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(120px 120px at 62% 46%, rgba(255, 255, 255, 0.15), transparent 65%),
    radial-gradient(220px 220px at 15% 55%, rgba(255, 255, 255, 0.05), transparent 70%);
  opacity: 0.9;
}

.screen::after {
  background:
    radial-gradient(200px 200px at 70% 38%, rgba(255, 255, 255, 0.15), transparent 60%),
    conic-gradient(from 200deg at 60% 50%, rgba(255, 255, 255, 0.08), transparent 30%, rgba(255, 255, 255, 0.05), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.info {
  position: absolute;
  top: 93px;
  left: 658px;
  width: 43px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.info-ring {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
}

.brand {
  position: absolute;
  left: 157px;
  top: 209px;
  width: 396px;
  height: 71px;
  font-family: "Montserrat", sans-serif;
  font-size: 58px;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  line-height: 1;
  display: flex;
  align-items: center;
}

.brand-strong {
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
  transform: skewX(-10deg);
  font-size: 60px;
}

.brand-light {
  font-weight: 400;
  opacity: 0.9;
  font-style: italic;
  font-size: 52px;
}

.card {
  position: absolute;
  left: 37px;
  top: 356px;
  width: 664px;
  height: 474px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 98, 182, 0.98), rgba(8, 52, 114, 0.98));
  box-shadow: 0 18px 26px rgba(5, 18, 45, 0.4);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.card-row {
  display: grid;
  grid-template-columns: 122px 1fr;
  align-items: center;
  gap: 28px;
  padding-left: 25px;
  height: 158px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.card-button {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card-button:active {
  filter: brightness(0.95);
}

.card-row:last-child {
  border-bottom: none;
}

.app-icon {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
}

.app-icon img {
  width: 122px;
  height: 122px;
  display: block;
}

.card-title {
  font-size: 26px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.action {
  position: absolute;
  left: 41px;
  width: 654px;
  height: 63px;
  border-radius: 24px;
  border: none;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, #2f8ee0 0%, #0f53a6 55%, #0a3f8c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 8px 14px rgba(3, 18, 44, 0.5);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
}

.action-1 { top: 865px; }
.action-2 { top: 983px; }
.action-3 { top: 1102px; }

.action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%);
  opacity: 0.8;
}

.action:active {
  transform: translateY(1px);
}

.footnote {
  position: absolute;
  left: 147px;
  top: 1397px;
  width: 438px;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  z-index: 55;
}

.loading-backdrop[hidden] {
  display: none;
}

.loading-card {
  width: 240px;
  height: 140px;
  background: #ffffff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(10, 90, 170, 0.2);
  border-top-color: #1a7ac6;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 16px;
  color: #2b2b2b;
  letter-spacing: 0.4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
}

.pin-backdrop[hidden] {
  display: none;
}

.pin-card {
  width: min(420px, 90vw);
  background: #f3f1e7;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 16px 18px;
  display: grid;
  gap: 12px;
}

.pin-title {
  text-align: center;
  font-weight: 700;
  color: #6a6a6a;
  font-size: 22px;
}

.pin-input {
  height: 42px;
  border: 1px solid #cfc7b6;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 16px;
  background: #f8f6ee;
  color: #7a7a7a;
}

.pin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pin-btn {
  height: 40px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  color: #e9f4ff;
  background: linear-gradient(180deg, #49b2ef 0%, #2283c9 55%, #0f59a8 100%);
  cursor: pointer;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pin-btn:active {
  transform: translateY(1px);
}

.pin-cancel {
  background: linear-gradient(180deg, #46a7e0 0%, #1f71b6 100%);
}

.modal {
  width: 520px;
  min-height: 520px;
  background: #d9d9d9;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
  color: #1a5a8a;
}

.modal-header {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.modal-body {
  font-size: 22px;
  line-height: 1.35;
  white-space: pre-line;
  flex: 1;
}

.modal-ok {
  margin-top: 16px;
  height: 52px;
  border-radius: 14px;
  border: none;
  font-size: 22px;
  font-weight: 600;
  color: #e8f3ff;
  background: linear-gradient(180deg, #2f8ee0 0%, #0f53a6 55%, #0a3f8c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 6px 12px rgba(3, 18, 44, 0.35);
  cursor: pointer;
}

.modal-ok:active {
  transform: translateY(1px);
}
