@font-face {
  font-family: 'OneUI Sans GUI';
  src: url('https://d1nwcwsdvx7ar2.cloudfront.net/ncms/ssw_prd/fonts/OneUISansGUI-300Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneUI Sans GUI';
  src: url('https://d1nwcwsdvx7ar2.cloudfront.net/ncms/ssw_prd/fonts/OneUISansGUI-400Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneUI Sans GUI';
  src: url('https://d1nwcwsdvx7ar2.cloudfront.net/ncms/ssw_prd/fonts/OneUISansGUI-600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OneUI Sans GUI';
  src: url('https://d1nwcwsdvx7ar2.cloudfront.net/ncms/ssw_prd/fonts/OneUISansGUI-700Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #677085;
  --accent: #2563eb;
  --accent-weak: rgba(37, 99, 235, 0.2);
  --success: #16a34a;
  --border: rgba(2, 6, 23, 0.08);
  --shadow: 0 8px 26px rgba(2, 6, 23, 0.06);
  --blue: #377AFE;
  --gray: #d9d9d9;
  --gray-text: #8C8C91;
  --black: #000000;
  --progress-border: #e2e8f0;
  --visual-shift: -2vh;
  --header-height-landscape: 60px;
}

html.dark,
html[data-theme="dark"] {
  --bg: #0b1220;
  --panel: #0b1220;
  --text: #ffffff;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-weak: rgba(59, 130, 246, 0.2);
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  --blue: #377AFE;
  --gray: #374151;
  --gray-text: #9ca3af;
  --black: #ffffff;
  --progress-border: rgba(255, 255, 255, 0.1);
}

html.dark .tips-list,
html[data-theme="dark"] .tips-list {
  color: #FCFCFF;
}

html.dark .tips-bold,
html[data-theme="dark"] .tips-bold {
  color: #E9E9EC;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  font-family: "OneUI Sans GUI", "One UI Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.waiting-container {
  width: 100%;
  height: 100%;
  max-width: 920px;
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0 auto;
  padding: 16px 30px 0 30px;
  box-sizing: border-box;
  overflow: hidden;
}

@supports (padding: max(0px)) {
  .waiting-container {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-right: max(30px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(30px, env(safe-area-inset-left));
  }
}

.waiting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin: 0 -40px 0 -36px;
  padding-left: 30px;
  padding-right: 30px;
}

.waiting-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.waiting-header img {
  width: 24px;
  height: 24px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-section {
  background: var(--bg);
  padding: 24px 0;
}

.status-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-cards.single {
  gap: 24px;
  flex-direction: column;
  align-items: center;
  grid-template-columns: 1fr;
}

.card-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-image img {
  width: 100%;
  max-width: 72px;
}

.card-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  padding: 0px 16px;
}

.card-label {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.card-value {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.progress {
  position: relative;
  margin: 16px 0 6px;
  height: 28px;
  background: var(--gray);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--progress-border);
}

.progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(2, 6, 23, 0.04), transparent);
  animation: shimmer 1.8s infinite;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-weak), var(--accent));
  transition: width 0.4s ease;
}

.progress-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Center the primary info section */
.status-section {
  display: grid;
  align-content: center;
  gap: 24px;
  padding-top: var(--visual-shift-y);
  transform: translateY(calc(-1 * var(--visual-shift-y)));
}

.tips {
  color: var(--black);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tips ul {
  margin: 0;
  padding-left: 0px;
  line-height: 1.8;
  list-style: none;
}

.tips-list {
  color: var(--gray-text);
}

.tips-bold {
  font-weight: 600;
}

.tips-bold img {
  width: 16px;
  height: 16px;
}

.tips-bold-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.waiting-footer {
  color: var(--muted);
}

.fa-xmark {
  color: #d32f2f;
  font-size: 24px;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 600px) {
  :root { --visual-shift: -3vh; }
  .status-cards { grid-template-columns: 1fr; }
  .card-value { font-size: 24px; }
  .waiting-header h1 { font-size: 16px; }
  .subtitle { font-size: 14px; }
}

/* 웹뷰 가로모드 대응 */
@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --header-height-landscape: 70px;
  }

  .waiting-container {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr);
  }

  .waiting-header {
    padding-bottom: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
    min-height: 40px;
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    background: var(--bg);
    z-index: 10;
    margin-top: calc(-1 * max(8px, env(safe-area-inset-top)));
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .waiting-header h1 {
    font-size: 16px;
    line-height: 1.2;
  }

  .status-section {
    gap: 8px;
    padding: 0;
    transform: none;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .status-section > *:first-child {
    margin-top: 0;
  }

  .status-cards {
    gap: 8px;
  }

  .card-image img {
    max-width: 36px;
  }

  .card-title {
    font-size: 18px;
    gap: 2px;
    line-height: 1.2;
  }

  .card-label {
    font-size: 16px;
  }

  .card-value {
    font-size: 20px;
  }

  .progress {
    margin: 4px 0 2px;
    height: 16px;
    max-width: 80%;
    width: 100%;
  }

  .progress-hint {
    margin: 2px 0 0;
    font-size: 12px;
    display: none;
  }

  .tips {
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .tips ul {
    line-height: 1.4;
    margin: 0;
  }

  .tips li {
    margin: 0;
  }

  .card {
    gap: 4px;
    padding: 0px 8px;
  }

  .card-image {
    gap: 4px;
  }
}

/* 웹뷰 가로모드 - 매우 낮은 높이 대응 */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height-landscape: 40px;
  }

  .waiting-container {
    padding-top: max(4px, env(safe-area-inset-top));
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .waiting-header {
    flex-shrink: 0;
    min-height: 32px;
    padding-bottom: 4px;
    position: sticky;
    top: max(4px, env(safe-area-inset-top));
    background: var(--bg);
    z-index: 10;
    margin-top: calc(-1 * max(4px, env(safe-area-inset-top)));
    padding-top: max(4px, env(safe-area-inset-top));
    margin-bottom: 0;
  }

  .waiting-header h1 {
    font-size: 14px;
  }

  .status-section {
    gap: 4px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .status-section > *:first-child {
    margin-top: 0;
  }

  .status-cards {
    gap: 4px;
  }

  .card-image img {
    max-width: 28px;
  }

  .card-title {
    font-size: 16px;
    gap: 1px;
    line-height: 1.1;
  }

  .card-label {
    font-size: 14px;
  }

  .card-value {
    font-size: 18px;
  }

  .progress {
    margin: 2px 0 1px;
    height: 12px;
    max-width: 50%;
    width: 100%;
  }

  .progress-hint {
    display: none;
  }

  .tips {
    gap: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .tips ul {
    line-height: 1.3;
    margin: 0;
  }

  .tips li {
    margin: 0;
  }

  .card {
    gap: 2px;
    padding: 0px 4px;
  }

  .card-image {
    gap: 2px;
  }
}


