/* HAVES sub pages — charge / pay / POWER / MEGA */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --vp-ink: #1a2433;
  --vp-muted: #6b7788;
  --vp-paper: #f6f3ee;
  --vp-surface: #fffdf9;
  --vp-line: rgba(42, 36, 28, 0.09);
  --vp-power: #d9773a;
  --vp-power-deep: #b4531a;
  --vp-mega: #1d6fd8;
  --vp-mega-deep: #0f3d7a;
  --vp-accent: #1a5fb4;
  --vp-accent-deep: #0d3d7a;
  --vp-gold: #e0a21a;
  --vp-warm: #f3e7d4;
  --vp-radius: 22px;
  --vp-shadow: 0 16px 40px rgba(42, 36, 28, 0.08);
  --vp-font: 'Outfit', 'Noto Sans KR', sans-serif;
  --vp-body: 'Noto Sans KR', sans-serif;
}

.vp-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 64px;
  font-family: var(--vp-body);
  color: var(--vp-ink);
  width: 100%;
  max-width: min(1100px, 100%);
  box-sizing: border-box;
  overflow-x: visible;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 그누보드 기본 p{word-break:break-all} 덮기 — 한글 중간 끊김 방지 */
.vp-page p,
.vp-page li,
.vp-page h1,
.vp-page h2,
.vp-page h3,
.vp-page h4,
.vp-page strong,
.vp-page span,
.vp-page label,
.vp-page a,
.vp-page em,
.vp-page small,
.vp-page button,
.vp-page td,
.vp-page th,
.vp-page .vp-card,
.vp-page .vp-hero {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.vp-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--vp-radius) + 4px);
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--vp-shadow);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.vp-hero__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.vp-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.vp-hero__logo {
  width: min(42%, 220px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.28));
  flex: 0 0 auto;
}

.vp-game-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  min-width: 0;
  width: 100%;
}

.vp-game-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px 14px 14px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--vp-ink);
  border: 1px solid var(--vp-line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,248,239,.95), transparent 46%),
    linear-gradient(135deg, #fff8f1 0%, #fffdf9 48%, #f7ebe0 100%);
  box-shadow: 0 10px 24px rgba(42, 36, 28, 0.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.vp-game-card--mega {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.9), transparent 46%),
    linear-gradient(135deg, #eef6ff 0%, #f7fbff 48%, #e4eefc 100%);
}

.vp-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vp-shadow);
}

.vp-game-card img {
  width: clamp(72px, 18vw, 110px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(11, 26, 46, 0.14));
}

.vp-game-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vp-game-card__copy strong {
  font-family: var(--vp-font);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.vp-game-card__copy span {
  color: #243447;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.vp-game-card__go {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #314854;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(11, 26, 46, 0.1);
}

.vp-game-card.is-active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 26, 46, 0.16);
}

.vp-game-card--power.is-active {
  background: linear-gradient(135deg, #e08948 0%, #d9773a 55%, #b4531a 100%);
}

.vp-game-card--mega.is-active {
  background: linear-gradient(135deg, #4da3ff 0%, #1d6fd8 55%, #0d3d7a 100%);
}

.vp-game-card.is-active .vp-game-card__copy span {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.vp-game-card.is-active .vp-game-card__go {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}

.vp-game-banner {
  display: none;
}

.vp-hero--charge {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(224, 162, 26, 0.22), transparent 50%),
    linear-gradient(135deg, #0d3d7a 0%, #1a5fb4 55%, #3b82f6 100%);
}
.vp-hero--pay {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(224, 162, 26, 0.18), transparent 50%),
    linear-gradient(135deg, #071f4a 0%, #0f3d7a 55%, #1a5fb4 100%);
}
.vp-hero--power {
  background: linear-gradient(135deg, #e08948 0%, #d9773a 40%, #b4531a 100%);
}
.vp-hero--mega {
  background: linear-gradient(135deg, #2a7de0 0%, #1d6fd8 45%, #0d3d7a 100%);
}

.vp-hero::after {
  content: attr(data-mark);
  position: absolute;
  right: -1%;
  bottom: -18%;
  font-family: var(--vp-font);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.08);
  line-height: 1;
  pointer-events: none;
}

.vp-hero__kicker {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .9;
}

.vp-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--vp-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.vp-hero p,
.vp-hero__lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(36rem, 100%);
  opacity: .92;
  line-height: 1.55;
  color: #fff !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 긴 · 나열 대신 칩으로 감싸 중간 끊김 방지 */
.vp-hero__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  max-width: 100%;
}
.vp-hero__tags span,
.vp-hero__tags a,
.vp-hero__tag {
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  word-break: keep-all;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vp-hero__tags a:hover,
.vp-hero__tags a:focus-visible,
.vp-hero__tag:hover,
.vp-hero__tag:focus-visible {
  background: rgba(255,255,255,.28) !important;
  border-color: rgba(255,255,255,.45) !important;
  color: #fff !important;
  outline: none;
}
.vp-hero__tags a[aria-current="page"],
.vp-hero__tag[aria-current="page"] {
  background: rgba(255,255,255,.32) !important;
  border-color: rgba(255,255,255,.55) !important;
}

.vp-balance {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,248,239,.18);
  border: 1px solid rgba(255,255,255,.22);
  width: fit-content;
  font-weight: 700;
}

.vp-balance strong {
  font-family: var(--vp-font);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.vp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.vp-grid > * {
  min-width: 0;
  max-width: 100%;
}

.vp-card {
  background: var(--vp-surface);
  border: 1px solid var(--vp-line);
  border-radius: var(--vp-radius);
  padding: 22px;
  box-shadow: var(--vp-shadow);
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vp-card h2,
.vp-card h3 {
  margin: 0 0 14px;
  font-family: var(--vp-font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.vp-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  background: #f4f7fc;
  border: 1px solid var(--vp-line);
}

.vp-steps span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vp-font);
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  background: var(--vp-accent);
}

.vp-hero--power ~ * .vp-steps span,
.vp-page--power .vp-steps span { background: var(--vp-power); }
.vp-page--mega .vp-steps span { background: var(--vp-mega); }
.vp-page--pay .vp-steps span { background: #1e3a4a; }

.vp-steps p {
  margin: 0;
  color: var(--vp-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.vp-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.vp-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.vp-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--vp-line);
  background: #f6f9fd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vp-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.vp-input:focus {
  border-color: var(--vp-accent);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, .12);
  background: #fff;
}

.vp-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.vp-chip {
  border: 1px solid var(--vp-line);
  background: #fff;
  color: var(--vp-ink);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.vp-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(26,95,180,.35);
}

.vp-page--power .vp-chip:hover { border-color: rgba(196,92,38,.4); }
.vp-page--mega .vp-chip:hover { border-color: rgba(29,111,216,.4); }

.vp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.vp-btn:hover { transform: translateY(-2px); }

.vp-btn--primary {
  background: linear-gradient(135deg, var(--vp-accent), #0d3d7a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 95, 180, .22);
}

.vp-btn--power {
  background: linear-gradient(135deg, var(--vp-power), var(--vp-power-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 58, .28);
}

.vp-btn--mega {
  background: linear-gradient(135deg, var(--vp-mega), var(--vp-mega-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 111, 216, .25);
}

.vp-btn--dark {
  background: linear-gradient(135deg, #1e3a4a, #0b1a2e);
  color: #fff;
}

.vp-btn--soft {
  background: #eef3fb;
  color: var(--vp-ink);
}

.vp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--vp-line);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.vp-table th,
.vp-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--vp-line);
  font-size: .9rem;
}

.vp-table th {
  background: #f3f6fb;
  font-weight: 800;
}

.vp-table tr:last-child td { border-bottom: 0; }

.vp-status-pending { color: #c48a00; font-weight: 800; }
.vp-status-complete { color: #1d6fd8; font-weight: 800; }
.vp-status-cancelled { color: #c44526; font-weight: 800; }

.vp-mini-btn {
  border: 0;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  background: #e4eef9;
  color: var(--vp-ink);
}

.vp-mini-btn:hover { background: #d7ebe2; }

/* ===== Lottery buy ===== */
.vp-buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.vp-buy-layout > * {
  min-width: 0;
  max-width: 100%;
}

.vp-panel {
  background: #fff;
  border: 1px solid var(--vp-line);
  border-radius: var(--vp-radius);
  padding: 20px;
  box-shadow: var(--vp-shadow);
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vp-panel h3 {
  margin: 0 0 12px;
  font-family: var(--vp-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.vp-btn-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vp-btn-row.vp-btn-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vp-seg {
  border: 1px solid var(--vp-line);
  background: #fff;
  color: var(--vp-ink);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  transition: .15s ease;
}

.vp-seg:hover { transform: translateY(-1px); }

.vp-seg.active,
.vp-page--power .vp-seg.active {
  background: var(--vp-power);
  border-color: var(--vp-power);
  color: #fff;
}

.vp-page--mega .vp-seg.active {
  background: var(--vp-mega);
  border-color: var(--vp-mega);
  color: #fff;
}

.vp-numbers {
  display: none;
  margin-top: 8px;
}

.vp-numbers.is-open { display: block; }

.vp-numbers-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f7fc;
  border: 1px solid var(--vp-line);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.vp-numbers-grid input { display: none; }

.vp-numbers-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d7e4dd;
  font-family: var(--vp-font);
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  transition: .15s ease;
  user-select: none;
}

.vp-page--power .vp-numbers-grid input:checked + label {
  background: linear-gradient(160deg, #ef7a3d, #c04512);
  border-color: transparent;
  color: #fff;
}

.vp-page--mega .vp-numbers-grid input:checked + label {
  background: linear-gradient(160deg, #4da3ff, #1d6fd8);
  border-color: transparent;
  color: #fff;
}

.vp-add-pick {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.vp-cart {
  position: sticky;
  top: 92px;
}

.vp-cart-panel {
  padding: 18px 16px 16px;
}

.vp-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vp-cart-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.vp-cart-sub {
  margin: 4px 0 0;
  color: var(--vp-muted);
  font-size: .82rem;
  font-weight: 500;
}

.vp-cart-count {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vp-font);
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  background: var(--vp-accent);
  box-shadow: 0 8px 18px rgba(26, 95, 180, 0.28);
}

.vp-page--power .vp-cart-count {
  background: var(--vp-power);
  box-shadow: 0 8px 18px rgba(196, 92, 38, 0.28);
}

.vp-page--mega .vp-cart-count {
  background: var(--vp-mega);
  box-shadow: 0 8px 18px rgba(29, 111, 216, 0.28);
}

.vp-cart-list,
.vp-cart ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
}

.vp-cart-empty {
  display: block !important;
  text-align: center;
  padding: 28px 14px !important;
  border: 1px dashed rgba(11, 26, 46, 0.16) !important;
  background: #f6f9fd !important;
  color: var(--vp-muted);
  font-size: .88rem;
  line-height: 1.55;
  font-weight: 500 !important;
  border-radius: 16px;
}

.vp-cart-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 10px 8px;
  padding: 12px 12px 14px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%) !important;
  border: 1px solid var(--vp-line) !important;
  box-shadow: 0 8px 18px rgba(11, 26, 46, 0.04);
  align-items: start !important;
  animation: vpCartIn .28s ease;
}

@keyframes vpCartIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.vp-cart-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / 2;
}

.vp-cart-item__idx {
  font-family: var(--vp-font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--vp-muted);
}

.vp-cart-item__price {
  font-size: .78rem;
  font-weight: 800;
  color: var(--vp-ink);
  background: #eef4f1;
  padding: 3px 8px;
  border-radius: 999px;
}

.vp-cart-balls {
  grid-column: 1 / 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vp-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--vp-font);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 4px 10px rgba(11, 26, 46, 0.12);
}

.vp-ball--1 { background: linear-gradient(160deg, #ffb020, #e08900); }
.vp-ball--2 { background: linear-gradient(160deg, #4da3ff, #1f6fd6); }
.vp-ball--3 { background: linear-gradient(160deg, #ff6b6b, #d94444); }
.vp-ball--4 { background: linear-gradient(160deg, #8b8f98, #5c616b); }
.vp-ball--5 { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.vp-ball--6 { background: linear-gradient(160deg, #a78bfa, #6d4fd6); }
.vp-ball--bonus {
  background: linear-gradient(160deg, #fbbf24, #d97706);
  color: #1f1400 !important;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.1), 0 0 0 2px rgba(217, 119, 6, 0.28), 0 4px 10px rgba(11, 26, 46, 0.12);
}

.vp-cart-remove {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #f1f4f6;
  color: #5a6b75;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.vp-cart-remove:hover {
  background: #ffe8e4;
  color: #c0392b;
  transform: scale(1.05);
}

.vp-cart-summary {
  margin: 14px 0 12px;
  padding: 14px;
  border-radius: 16px;
  background: #0b1a2e;
  color: #fff;
  display: grid;
  gap: 8px;
}

.vp-cart-summary__row,
.vp-cart-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vp-cart-summary__row span,
.vp-cart-summary__total span {
  opacity: .82;
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,.88) !important;
}

.vp-cart-summary__row strong {
  font-size: .95rem;
  font-weight: 800;
  color: #fff !important;
}

.vp-cart-summary__total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.vp-cart-summary__total strong {
  font-family: var(--vp-font);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.vp-page--power .vp-cart-summary {
  background: linear-gradient(145deg, #8f3a12, #c45c26);
}

.vp-page--mega .vp-cart-summary {
  background: linear-gradient(145deg, #0d3d7a, #1d6fd8);
}

.vp-cart .purchase-btn {
  margin-top: 0;
}

.vp-total {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #0b1a2e;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.vp-empty {
  color: var(--vp-muted);
  text-align: center;
  padding: 24px 8px;
  font-size: .92rem;
  margin: 0;
}

.vp-history {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vp-history__item {
  border: 1px solid var(--vp-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #f7fafc;
  min-width: 0;
}

.vp-history__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vp-history__top strong {
  font-family: var(--vp-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.vp-history__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--vp-muted);
  font-size: .82rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.vp-history__sub {
  margin-top: 4px;
  color: var(--vp-muted);
  font-size: .8rem;
  word-break: break-all;
}

.vp-history__actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== Compact page head / ticket rows ===== */
.vp-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.vp-page-head__kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vp-muted);
  margin-bottom: 4px;
}

.vp-page-head h1 {
  margin: 0;
  font-family: var(--vp-font);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vp-page-head__side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--vp-muted);
  font-size: .86rem;
  font-weight: 700;
}

.vp-page-head__side strong {
  font-family: var(--vp-font);
  color: var(--vp-accent);
  font-size: 1rem;
}

.vp-card--tight {
  padding: 14px;
}

.vp-card--tight .vp-card__head {
  margin-bottom: 10px;
}

.vp-card--tight .vp-card__head h2 {
  font-size: 1rem;
  margin: 0;
}

.vp-draw-strip__hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7fc;
  border: 1px solid rgba(26, 95, 180, .12);
  color: #4a5d75;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
}

.vl-result-notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}
.vl-result-notice.is-lagging {
  background: #fff7ed;
  border-color: rgba(194, 65, 12, 0.22);
}
.vl-result-notice__title {
  display: block;
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 800;
  color: #0f172a;
}
.vl-result-notice.is-lagging .vl-result-notice__title {
  color: #9a3412;
}
.vl-result-notice__body {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.55;
  color: #475569;
}
.vl-result-notice__body strong {
  color: #0f172a;
  font-weight: 800;
}
.vl-result-notice__foot {
  margin: 8px 0 0;
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
}
.vl-result-notice__foot a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
}
.vl-result-notice--page {
  margin-bottom: 14px;
}
.vp-draw-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.vp-draw-strip--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vp-draw-strip__item {
  background: #fff;
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(11, 26, 46, 0.04);
  min-width: 0;
}

.vp-draw-strip__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.vp-draw-strip__top img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  border-radius: 10px;
  background: #f6f8fb;
}

.vp-draw-strip__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vp-draw-strip__label strong {
  font-family: var(--vp-font);
  font-size: .95rem;
}

.vp-draw-strip__label span {
  color: var(--vp-muted);
  font-size: .78rem;
  font-weight: 700;
}

.vp-draw-strip .vl-balls,
.vp-draw-strip .vp-mini-balls {
  justify-content: flex-start;
  gap: 4px;
  min-height: 0;
}

.vp-draw-strip .vl-ball,
.vp-draw-strip .vp-ball {
  width: 28px;
  height: 28px;
  font-size: .72rem;
}

.vp-draw-strip .vl-countdown {
  margin-top: 10px;
  padding: 10px 8px 8px;
}

.vp-draw-strip .vl-countdown__grid > div {
  min-height: 46px;
  padding: 5px 2px;
  border-radius: 10px;
}

.vp-draw-strip .vl-countdown__grid b {
  font-size: 1.05rem;
}

.vp-draw-strip .vl-countdown__meta {
  font-size: .68rem;
}

.vp-ticket-list--compact {
  gap: 6px;
}

.vp-ticket-photos {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(13, 61, 122, 0.12);
}
.vp-ticket-photos__label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6573;
  margin-bottom: 8px;
}
.vp-ticket-photos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vp-ticket-photos__item {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(13, 61, 122, 0.12);
  background: #f3f5f8;
}
.vp-ticket-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .vp-ticket-photos__item {
    width: 76px;
    height: 76px;
  }
}

.vp-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--vp-line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}
.vp-row--pending { border-color: rgba(217, 119, 58, .28); background: linear-gradient(180deg, #fffaf4, #fff); }
.vp-row--buying { border-color: rgba(26, 95, 180, .28); background: linear-gradient(180deg, #f5f9ff, #fff); }
.vp-row--checked.vp-row--hit,
.vp-row--ocrline { }
.vp-row--auto { border-style: dashed; }
.vp-row__pill--buying { background: #e8eef6; color: #1a5fb4; }
.vp-row-lines-wrap {
  margin: -2px 0 10px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid rgba(26, 95, 180, .12);
}
.vp-row-lines__tog {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 800;
  color: #0d3d7a;
  user-select: none;
}
.vp-row-lines__tog::-webkit-details-marker { display: none; }
.vp-row-lines__tog::before {
  content: '▸';
  display: inline-block;
  transition: transform .15s ease;
}
.vp-row-lines-wrap[open] > .vp-row-lines__tog::before { transform: rotate(90deg); }
.vp-row-lines-wrap[open] > .vp-row-lines__tog { border-bottom: 1px solid rgba(26, 95, 180, .1); }
.vp-row-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px 10px 10px 12px;
  border-left: 3px solid rgba(26, 95, 180, .18);
}
.vp-row-lines .vp-row {
  box-shadow: none;
  padding: 10px 12px;
}
.vp-row__brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.vp-row__logo {
  width: auto;
  height: 36px;
  max-width: 118px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(11, 26, 46, 0.12));
}
.vp-row__logo--mega { max-width: 132px; height: 34px; }
.vp-row__logo--lotto535 { max-width: 110px; height: 36px; }
.vp-row .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.vp-row__brand-text { min-width: 0; }
.vp-row__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vp-row__titleline .vp-tag {
  padding: 3px 8px;
  font-size: .7rem;
}
.vp-row__round {
  color: var(--vp-ink);
  font-family: var(--vp-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: .92rem;
}
.vp-row__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8eef6;
  color: #1a5fb4;
  font-size: .68rem;
  font-weight: 800;
}
.vp-row__pill--auto { background: #fff3df; color: #9a5b00; }
.vp-row__when,
.vp-row__buy {
  color: var(--vp-muted);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}
.vp-row__when { color: #0d3d7a; font-weight: 700; }
.vp-row__note {
  grid-column: 1 / -1;
  color: #6b7c8f;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}
.vp-row__ocrhint {
  color: var(--vp-muted);
  font-size: .74rem;
  font-weight: 700;
}

.vp-row__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.vp-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--vp-font);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  flex: 0 0 auto;
}
/* Vietlott POWER: 본번호 빨간공 */
.vp-dot--power {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 42%),
    linear-gradient(160deg, #ff6b5a 0%, #e53935 48%, #b71c1c 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(183, 28, 28, 0.28);
}
/* Vietlott MEGA: 흰공 + 검정 숫자 */
.vp-dot--mega {
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0%, #f4f6f8 42%, #dfe5ec 100%);
  color: #0b1a2e;
  -webkit-text-fill-color: #0b1a2e;
  border: 1px solid rgba(11, 26, 46, 0.12);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(11, 26, 46, 0.12);
}
/* Vietlott LOTTO 5/35: 초록공 */
.vp-dot--lotto535 {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 42%),
    linear-gradient(160deg, #8fd94a 0%, #43a047 52%, #1b5e20 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.14),
    0 4px 10px rgba(27, 94, 32, 0.26);
}
.vp-dot.is-hit {
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 0 0 2px rgba(224, 162, 26, 0.55),
    0 5px 14px rgba(11, 26, 46, 0.22);
  transform: translateY(-1px);
}
/* POWER 보너스(Jackpot2) = 노란공 */
.vp-dot.is-bonus,
.vp-dot.is-special {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 42%),
    linear-gradient(160deg, #ffe082 0%, #f5c542 48%, #e0a21a 100%) !important;
  color: #2a1d00 !important;
  -webkit-text-fill-color: #2a1d00 !important;
  border-color: transparent;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(224, 162, 26, 0.32);
}

.vp-row__right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vp-row__right em {
  font-style: normal;
  font-family: var(--vp-font);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.vp-row .vp-win {
  min-width: 0;
  align-items: flex-end;
}

.vp-row .vp-win strong {
  padding: 3px 8px;
  font-size: .7rem;
}

.vp-row .vp-win span {
  font-size: .68rem;
}

.vp-row .vp-auto-badge {
  padding: 4px 8px;
  font-size: .72rem;
}

@media (max-width: 980px) {
  .vp-draw-strip--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .vp-draw-strip {
    grid-template-columns: 1fr;
  }
  .vp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vp-row__right {
    justify-content: space-between;
    width: 100%;
  }
  .vp-row-lines {
    padding-left: 8px;
  }
  .vp-row__logo {
    height: 30px;
    max-width: 104px;
  }
  .vp-row__logo--mega { max-width: 118px; height: 28px; }
}

.vp-paging {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--vp-line);
  text-align: center;
}

.vp-paging .pg_wrap {
  display: inline-block;
}

.vp-paging .pg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.vp-paging .pg_page,
.vp-paging .pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--vp-line);
  background: #fff;
  color: var(--vp-ink);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}

.vp-paging .pg_current {
  background: var(--vp-accent);
  border-color: var(--vp-accent);
  color: #fff;
}

.vp-paging .pg_page:hover {
  border-color: rgba(26, 95, 180, .45);
  color: var(--vp-accent);
}

.vp-paging .pg_start,
.vp-paging .pg_end,
.vp-paging .pg_prev,
.vp-paging .pg_next {
  font-size: .78rem;
}

.vp-ticket-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vp-ticket {
  border: 1px solid var(--vp-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #f7fafc;
  min-width: 0;
}

.vp-ticket__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vp-ticket__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vp-ticket__id {
  color: var(--vp-muted);
  font-size: .8rem;
  font-weight: 600;
}

.vp-ticket__body {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vp-ticket__amt {
  font-family: var(--vp-font);
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .vp-ticket__top {
    flex-direction: column;
  }
  .vp-ticket .vp-win {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .vp-grid,
  .vp-buy-layout { grid-template-columns: minmax(0, 1fr); }
  .vp-cart { position: static; }
  .vp-form-row { grid-template-columns: minmax(0, 1fr); }
  .vp-btn-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-btn-row.vp-btn-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vp-numbers-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
  .vp-page { padding: 12px 12px 96px; }
  .vp-hero {
    min-height: auto;
    padding: 20px 16px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .vp-hero__main {
    flex-direction: column;
    align-items: flex-start;
  }
  .vp-hero__logo {
    width: min(58%, 160px);
    align-self: flex-end;
    margin-top: -8px;
  }
  .vp-game-switch {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vp-game-card {
    min-height: 76px;
    padding: 12px 12px 12px 10px;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .vp-game-card img { width: clamp(52px, 18vw, 72px); flex-shrink: 0; }
  .vp-game-card__copy {
    min-width: 0;
    overflow: hidden;
  }
  .vp-game-card__copy strong {
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp-game-card__copy span {
    display: block;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp-game-card__go { width: 32px; height: 32px; font-size: .9rem; flex-shrink: 0; }
  .vp-panel { padding: 14px; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .vp-card { padding: 16px; border-radius: 18px; }
  .vp-seg { padding: 11px 4px; font-size: .78rem; line-height: 1.25; }
  .vp-cart-list,
  .vp-cart ul { max-height: none; }
  .vp-table { min-width: 480px; }
  .vp-hero__actions .vp-btn {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }
  .vp-buy-layout { min-width: 0; }
  .vp-buy-layout > * { min-width: 0; max-width: 100%; }
}

@media (max-width: 560px) {
  .vp-numbers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .vp-numbers-grid label {
    font-size: .78rem;
    min-height: 40px;
    touch-action: manipulation;
  }
  .vp-add-pick .vp-btn { width: 100% !important; min-width: 0 !important; }
  .vp-cart-balls { gap: 5px; }
  .vp-ball { width: 28px; height: 28px; font-size: .72rem; }
  .vp-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vp-chip {
    padding: 11px 4px;
    font-size: .82rem;
  }
  .vp-hero h1 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .vp-balance {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .vp-info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .vp-mode .vp-seg {
    min-height: 44px;
    padding: 10px 2px;
    font-size: .74rem;
  }
  .vp-qty .vp-seg {
    min-height: 44px;
  }
  .vp-cart-panel .purchase-btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
  .vp-custom-qty {
    width: 100%;
  }
  .vp-custom-qty .vp-input {
    flex: 1 1 auto;
    max-width: none !important;
    min-width: 0;
  }
  .vp-custom-qty .vp-btn {
    flex: 0 0 auto;
  }
  .vp-info-list strong { text-align: left; }
  .vp-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vp-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 4px;
}

.vp-hero__actions .vp-btn {
  width: auto;
  min-width: 120px;
  padding: 10px 16px;
  font-size: .9rem;
}

.vp-btn--ghost {
  background: rgba(255,255,255,.16);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}

.vp-btn--ghost:hover {
  background: rgba(255,255,255,.24);
}

.vp-btn--on-dark {
  background: #fff;
  color: #0b1a2e !important;
}

.vp-btn--on-dark:hover {
  background: #f2f5fa;
}

.vp-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.vp-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--vp-ink);
  background: #fff;
  border: 1px solid var(--vp-line);
  border-radius: 18px;
  padding: 16px 10px;
  box-shadow: 0 8px 22px rgba(11, 26, 46, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
  font-weight: 800;
  font-size: .9rem;
}

.vp-quick__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--vp-shadow);
}

.vp-quick__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.vp-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vp-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fc;
  border: 1px solid var(--vp-line);
}

.vp-info-list span {
  color: var(--vp-muted);
  font-size: .88rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.vp-info-list strong {
  text-align: right;
  font-size: .95rem;
  word-break: break-all;
}

.vp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vp-card__head h2 { margin: 0; }

.vp-link {
  color: var(--vp-accent);
  font-weight: 800;
  text-decoration: none;
  font-size: .9rem;
}

.vp-link:hover { text-decoration: underline; }

.vp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.vp-tag--power { background: var(--vp-power); }
.vp-tag--mega { background: var(--vp-mega); }

.vp-mini-balls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.vp-mini-balls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e4eef9;
  color: var(--vp-ink);
  font-family: var(--vp-font);
  font-size: .75rem;
  font-weight: 800;
}

.vp-page--mypage .vp-table td {
  vertical-align: middle;
}

.vp-auto-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf2fb;
  color: var(--vp-accent);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .vp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-hero__actions { justify-content: flex-start; width: 100%; }
  .vp-win-stats { grid-template-columns: 1fr 1fr; }
  .vp-win-item__top { flex-direction: column; }
  .vp-win { align-items: flex-start; }
}

@media (max-width: 560px) {
  .vp-win-stats { grid-template-columns: 1fr; }
  .vp-quick { gap: 8px; }
  .vp-quick__item {
    padding: 14px 8px;
    font-size: .82rem;
    border-radius: 14px;
  }
}

.vp-muted {
  color: var(--vp-muted);
  font-size: .9rem;
  margin: 0 0 12px;
}

.vp-win-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.vp-win-stat {
  background: #fff;
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(11, 26, 46, 0.04);
}

.vp-win-stat span {
  color: var(--vp-muted);
  font-size: .82rem;
  font-weight: 700;
}

.vp-win-stat strong {
  font-family: var(--vp-font);
  font-size: 1.25rem;
  font-weight: 800;
}

.vp-win-jp {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.vp-win-jp > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7fc;
  border: 1px solid var(--vp-line);
}

.vp-win-jp span {
  color: var(--vp-muted);
  font-size: .86rem;
  font-weight: 700;
}

.vp-win-jp strong {
  font-size: .92rem;
  text-align: right;
}

.vp-win-list {
  display: grid;
  gap: 12px;
}

.vp-win-item {
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f6f9fd);
}

.vp-win-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vp-win-item__meta {
  display: inline-block;
  margin-left: 8px;
  color: var(--vp-muted);
  font-size: .82rem;
  font-weight: 600;
}

.vp-win-item__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vp-win-item__note {
  margin: 10px 0 0;
  color: var(--vp-muted);
  font-size: .84rem;
  font-weight: 600;
}

.vp-win {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 96px;
}

.vp-win strong {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  background: #eef2f4;
  color: #51636e;
  white-space: nowrap;
}

.vp-win span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--vp-muted);
  text-align: right;
}

.vp-win__match {
  font-size: .76rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.vp-win--lose .vp-win__match {
  color: #64748b !important;
}

.vp-win--hit .vp-win__match {
  color: #1d4ed8 !important;
}

.vp-win--hit strong {
  background: #e8f1fc;
  color: #1d6fd8;
}

.vp-win--jp1 strong,
.vp-win--jp2 strong {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #5a3200;
}

.vp-win--1 strong {
  background: #ffe8d8;
  color: #c45c26;
}

.vp-win--2 strong,
.vp-win--3 strong {
  background: #e8f1fc;
  color: #1d6fd8;
}

.vp-win--lose strong {
  background: #eef2f4;
  color: #6a7b86;
}

.vp-win--pending strong {
  background: #fff4d8;
  color: #9a6b00;
}

.vp-win--buying strong {
  background: #e3eefc;
  color: #1a5fb4;
}

.vp-win--auto strong,
.vp-win--old strong,
.vp-win--nodata strong {
  background: #eef2f4;
  color: #51636e;
}

.vp-ball--hit {
  background: linear-gradient(160deg, #3b82f6, #1d4ed8) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.28), 0 4px 10px rgba(11, 26, 46, 0.12);
}

.vp-ball--bonus-hit {
  background: linear-gradient(160deg, #f0c14b, #c99112) !important;
  color: #2a1d00 !important;
  box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.35), 0 4px 10px rgba(11, 26, 46, 0.12);
}

.vp-page--wincheck .vl-balls {
  margin-top: 8px;
}
.vp-draw-strip .vl-balls__bonus--spacer {
  /* 보너스 라벨(≈28px) + 볼(28px) 줄 높이만 확보, 문구/볼 없음 */
  min-height: 28px;
  pointer-events: none;
}


.vp-game-card--lotto535 {
  border-color: rgba(88,184,26,.28);
  background: linear-gradient(135deg, #f3fce8, #fff);
}
.vp-game-card.is-soon {
  opacity: 1;
  filter: none;
}
.vp-game-card.is-soon .vp-game-card__copy span {
  color: #0d6b18 !important;
  font-weight: 800;
}
.vp-game-card--lotto535.is-active {
  box-shadow: 0 10px 24px rgba(13,107,24,.18);
  border-color: #0d6b18;
}
.vp-hero--lotto535 {
  background: linear-gradient(135deg, #3fa012, #0d6b18 55%, #084d12);
  color: #fff;
}
.vp-btn--lotto535 {
  background: linear-gradient(135deg, #58b81a, #0d6b18);
  color: #fff;
}
.vp-tag--lotto535 { background: #0d6b18; color: #fff; }
.vp-draw-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vp-draw-strip__item--lotto535 {
  border-color: rgba(88,184,26,.22);
  background: #f3fce8;
}
.vp-page--lotto535 .vp-balance,
.vp-page--lotto535 .vp-balance strong,
.vp-hero--lotto535 .vp-hero__kicker,
.vp-hero--lotto535 h1,
.vp-hero--lotto535 p {
  color: #fff !important;
}
.vp-page--lotto535 .vp-balance strong {
  color: #fde68a !important;
}
.vp-page--lotto535 .vp-seg.active {
  background: linear-gradient(135deg, #58b81a, #0d6b18);
  color: #fff;
  border-color: transparent;
}
.vp-page--lotto535 .vp-numbers-grid input:checked + label,
.vp-page--lotto535 .vp-numbers-grid input:checked + label {
  background: linear-gradient(160deg, #b8e832, #0d6b18);
  color: #fff;
  border-color: transparent;
}
.vp-page--lotto535 .vp-numbers-grid--special input:checked + label {
  background: linear-gradient(160deg, #fbbf24, #d97706);
  color: #1f1400;
}
.vp-page--lotto535 .vp-cart-count {
  background: #0d6b18;
}
.vp-page--lotto535 .vp-cart-summary {
  border-color: rgba(88, 184, 26, 0.28);
}
.vp-page--lotto535 .vp-chip:hover { border-color: rgba(13, 107, 24, 0.4); }
.vp-page--lotto535 .vp-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vp-muted);
}
.vp-page--lotto535 .vp-special-block h3 { color: #0d6b18; }
.vp-ball-sep {
  display: inline-block;
  width: 8px;
  height: 2px;
  margin: 0 2px;
  background: rgba(42,36,28,.25);
  border-radius: 2px;
  align-self: center;
}
.vp-dot-sep {
  display: inline-flex;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  border-radius: 50%;
  background: rgba(42, 36, 28, 0.22);
  vertical-align: middle;
  align-self: center;
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .vp-row__nums { gap: 5px; }
  .vp-dot {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: .86rem;
  }
}
@media (max-width: 900px) {
  .vp-draw-strip { grid-template-columns: 1fr; }
  .vp-game-switch {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
}
@media (min-width: 901px) {
  .vp-game-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Buy page schedule board */
.vp-buy-board {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--vp-line);
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(26,95,180,.08), transparent 55%),
    linear-gradient(180deg, #fffdf9, #f7f3ec);
  box-shadow: var(--vp-shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.vp-buy-countdown-draw {
  min-width: 0;
  max-width: 100%;
}
.vp-buy-countdown-draw .vl-countdown {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}
.vp-buy-board--mega {
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(29,111,216,.1), transparent 55%),
    linear-gradient(180deg, #fffdf9, #f3f7fc);
}
.vp-buy-board--power {
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(217,119,58,.1), transparent 55%),
    linear-gradient(180deg, #fffdf9, #faf4ee);
}
.vp-buy-board--lotto535 {
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(88,184,26,.1), transparent 55%),
    linear-gradient(180deg, #fffdf9, #f3f9ef);
}
.vp-buy-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.vp-buy-board__kicker {
  font-family: var(--vp-font);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vp-accent-deep);
}
.vp-buy-board__head h2 {
  margin: 4px 0 6px;
  font-family: var(--vp-font);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--vp-ink);
}
.vp-buy-board__head p {
  margin: 0;
  color: var(--vp-muted);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 58ch;
}
.vp-buy-board__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.vp-buy-board.is-open .vp-buy-board__badge {
  background: rgba(29,111,216,.12);
  color: #0d3d7a;
}
.vp-buy-board.is-closed .vp-buy-board__badge {
  background: rgba(196,69,38,.12);
  color: #9a3412;
}
.vp-buy-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.vp-buy-board__card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
}
.vp-buy-board__label {
  color: var(--vp-muted);
  font-size: .75rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.vp-buy-board__value {
  font-family: var(--vp-font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--vp-ink);
  line-height: 1.2;
  word-break: keep-all;
}
.vp-buy-board__value--sm { font-size: 1.02rem; }
.vp-buy-board__unit {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--vp-muted);
}
.vp-buy-board__meta {
  margin-top: 6px;
  color: var(--vp-muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}
.vp-buy-board__hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(224,162,26,.12);
  color: #7a4e00;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
}
.vp-buy-board__timers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vp-buy-board__timers .vl-countdown {
  margin: 0;
}
.vp-buy-timers-round {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--vp-line);
  background: rgba(255,255,255,.82);
  color: var(--vp-muted);
  font-size: .84rem;
  font-weight: 700;
}
.vp-buy-timers-round strong {
  color: var(--vp-ink);
  font-family: var(--vp-font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.vp-buy-board__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vp-buy-board__timers:not(.has-two){grid-template-columns:1fr}

.vp-buy-jackpot {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(224,162,26,.28);
  background: linear-gradient(135deg, rgba(255,248,230,.95), rgba(255,255,255,.9));
  min-width: 0;
}
.vp-jp-guide {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(224,162,26,.35);
}
.vp-jp-guide__title {
  margin: 0 0 10px;
  font-family: var(--vp-font);
  font-size: .9rem;
  font-weight: 800;
  color: #8a5a00;
}
.vp-jp-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.vp-jp-guide__card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(224,162,26,.16);
  min-width: 0;
}
.vp-jp-guide__card--1 {
  border-color: rgba(217,119,58,.28);
  background: linear-gradient(180deg, rgba(255,244,232,.95), #fff);
}
.vp-jp-guide__card--2 {
  border-color: rgba(224,162,26,.28);
  background: linear-gradient(180deg, rgba(255,250,230,.95), #fff);
}
.vp-jp-guide__label {
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--vp-ink);
  line-height: 1.3;
}
.vp-jp-guide__label em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--vp-muted);
}
.vp-jp-guide__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.vp-jp-guide__card li {
  font-size: .78rem;
  font-weight: 600;
  color: var(--vp-ink-soft, #5a6573);
  line-height: 1.4;
}
.vp-jp-guide__card li strong {
  color: var(--vp-ink);
  font-weight: 800;
  margin-right: 4px;
}
.vp-jp-guide__note {
  margin: 10px 0 0;
  font-size: .76rem;
  font-weight: 600;
  color: #7a4e00;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .vp-jp-guide__grid {
    grid-template-columns: 1fr;
  }
}
.vp-buy-jackpot__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.vp-buy-jackpot__head strong {
  font-family: var(--vp-font);
  font-size: .95rem;
  color: #8a5a00;
}
.vp-buy-jackpot__head span {
  color: var(--vp-muted);
  font-size: .75rem;
  font-weight: 700;
}
.vp-buy-jackpot__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.vp-buy-board--mega .vp-buy-jackpot__rows,
.vp-buy-board--lotto535 .vp-buy-jackpot__rows {
  grid-template-columns: 1fr;
}
.vp-buy-jackpot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(224,162,26,.18);
  min-width: 0;
}
.vp-buy-jackpot__row span {
  font-size: .82rem;
  font-weight: 800;
  color: #7a4e00;
  flex: 0 0 auto;
}
.vp-buy-jackpot__row strong {
  font-family: var(--vp-font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vp-ink);
  letter-spacing: -.01em;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .vp-buy-board {
    padding: 14px 12px;
    border-radius: 18px;
  }
  .vp-buy-board__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vp-buy-board__head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vp-buy-board__badge {
    align-self: flex-start;
  }
  .vp-buy-board__head h2 {
    font-size: 1.08rem;
  }
  .vp-buy-board__head p {
    font-size: .84rem;
    max-width: none;
  }
  .vp-buy-board__value {
    font-size: 1.15rem;
  }
  .vp-buy-board__value--sm {
    font-size: .95rem;
  }
  /* 좁은 화면에서도 마감/추첨 타이머를 나란히 비교 */
  .vp-buy-board__timers.has-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vp-buy-board__timers:not(.has-two) {
    grid-template-columns: 1fr;
  }
  .vp-buy-timers-round {
    flex-wrap: wrap;
    padding: 9px 12px;
    font-size: .78rem;
  }
  .vp-buy-timers-round strong {
    font-size: .98rem;
  }
  .vp-buy-board__timers .vl-countdown,
  .vp-buy-countdown-draw .vl-countdown {
    padding: 10px 8px 8px;
    border-radius: 14px;
  }
  .vp-buy-board__timers .vl-countdown__grid > div,
  .vp-buy-countdown-draw .vl-countdown__grid > div {
    min-height: 48px;
    padding: 5px 2px;
    border-radius: 10px;
  }
  .vp-buy-board__timers .vl-countdown__grid b,
  .vp-buy-countdown-draw .vl-countdown__grid b {
    font-size: clamp(.95rem, 3.8vw, 1.2rem);
  }
  .vp-buy-board__timers .vl-countdown__meta,
  .vp-buy-countdown-draw .vl-countdown__meta {
    font-size: .66rem;
    line-height: 1.35;
  }
  .vp-buy-board__actions .vp-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .vp-buy-jackpot__rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .vp-buy-board__timers.has-two {
    grid-template-columns: 1fr;
  }
  .vp-buy-board__timers .vl-countdown__grid > div,
  .vp-buy-countdown-draw .vl-countdown__grid > div {
    min-height: 52px;
  }
  .vp-buy-board__timers .vl-countdown__grid b,
  .vp-buy-countdown-draw .vl-countdown__grid b {
    font-size: 1.15rem;
  }
}

/* ===== Money pages (charge / pay) ===== */
.vp-money-switch{
  display:inline-flex;gap:6px;margin:0 0 16px;padding:4px;border-radius:14px;
  background:#efeae3;border:1px solid rgba(42,36,28,.08);
}
.vp-money-switch a{
  display:inline-flex;align-items:center;justify-content:center;min-width:120px;
  padding:10px 16px;border-radius:11px;text-decoration:none;font-weight:800;font-size:.9rem;
  color:#5a6573;
}
.vp-money-switch a.is-active{
  background:linear-gradient(135deg,#2a7de0,#0d3d7a);color:#fff;box-shadow:0 8px 18px rgba(13,61,122,.2);
}
.vp-page--pay .vp-money-switch a.is-active{
  background:linear-gradient(135deg,#2a4a5c,#1e3a4a);
  box-shadow:0 8px 18px rgba(30,58,74,.22);
}
.vp-money-label{
  display:block;margin:0 0 6px;font-size:.84rem;font-weight:800;color:#2a3545;
}
.vp-money-label em{font-style:normal;font-weight:600;color:#8a94a3;}
.vp-money-input{
  display:flex;align-items:center;gap:0;border:1px solid var(--vp-line);border-radius:14px;overflow:hidden;background:#fff;
  margin-bottom:10px;
}
.vp-money-input span{
  flex:0 0 auto;padding:0 14px;font-weight:800;color:#0d3d7a;background:#f3efe8;align-self:stretch;
  display:inline-flex;align-items:center;
}
.vp-money-input .vp-input{
  border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;
}
.vp-chip--ghost{
  background:transparent;border:1px dashed rgba(42,36,28,.2);color:#6a7380;
}
.vp-money-addr__head{
  display:flex;align-items:center;gap:10px;margin-bottom:12px;
}
.vp-money-addr__head strong{font-size:1.05rem;}
.vp-money-badge{
  display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;
  background:rgba(38,161,123,.12);color:#0f6b4c;font-size:.72rem;font-weight:800;
}
.vp-money-addr__box{
  display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:14px;
  background:#0d2438;color:#e8f7f1;
}
.vp-money-addr__box code{
  flex:1;min-width:0;font-size:.86rem;word-break:break-all;white-space:pre-wrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:#fff!important;background:transparent!important;
}
.vp-money-addr__box .vp-mini-btn{
  flex:0 0 auto;background:#26a17b;color:#fff;border:0;font-weight:800;
}
.vp-money-hint{
  margin:10px 0 0;font-size:.84rem;line-height:1.55;color:#5a6573;
}
.vp-money-hint.is-warn{color:#9a4a12;}
.vp-money-hint a{color:#1a5fb4;font-weight:700;}
.vp-money-callouts{
  display:grid;gap:8px;margin-top:14px;
}
.vp-money-callouts div{
  display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;
  background:#f4f7fc;font-size:.84rem;font-weight:700;color:#2a3545;
}
.vp-money-callouts i{color:#1a5fb4;}
.vp-card h2 small{
  margin-left:8px;font-size:.78rem;font-weight:700;color:#8a94a3;
}
.vp-form .vp-money-label + .vp-input{margin-bottom:4px;}
@media (max-width:640px){
  .vp-money-switch{width:100%;display:grid;grid-template-columns:1fr 1fr;}
  .vp-money-switch a{min-width:0;padding:11px 10px;font-size:.86rem;}
  .vp-money-addr__box{
    flex-direction:column;align-items:stretch;gap:10px;
  }
  .vp-money-addr__box code{font-size:.82rem;line-height:1.45;}
  .vp-money-addr__box .vp-mini-btn{width:100%;min-height:40px;}
  .vp-money-input span{padding:0 12px;font-size:.9rem;}
  .vp-page--charge .vp-chips,
  .vp-page--pay .vp-chips{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }
  .vp-page--charge .vp-chip,
  .vp-page--pay .vp-chip{
    padding:10px 4px;font-size:.78rem;border-radius:10px;
  }
  .vp-history__meta{
    flex-direction:column;align-items:flex-start;gap:4px;
  }
  .vp-history__sub{
    max-width:100%;overflow-wrap:anywhere;
  }
}

/* ===== Readable hierarchy: body crisp, helper soft ===== */
.vp-page {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}
.vp-muted,
.vp-help,
.vp-note,
.vp-cart-sub,
.vp-cart-empty,
.vp-buy-hint,
.vp-history__sub,
.vp-history__meta,
.vp-buy-board__meta,
.vp-buy-board__label,
.vp-money-hint,
.vp-money-label em,
.vp-empty,
.ha-auth-inline {
  color: var(--vp-muted) !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}
/* game switch labels need high contrast on tinted cards */
.vp-game-card__copy span {
  color: #243447 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}
.vp-game-card.is-active .vp-game-card__copy span {
  color: #ffffff !important;
}
.vp-game-card.is-soon .vp-game-card__copy span {
  color: #0d6b18 !important;
}
.vp-buy-hint {
  font-size: .84rem !important;
  line-height: 1.5 !important;
}
.ha-auth-inline {
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ha-auth-links {
  display: flex;
  gap: 12px;
  font-size: .9rem;
  font-weight: 700;
}
.ha-auth-links a {
  color: #0d3d7a;
  text-decoration: none;
}
.ha-nowrap {
  white-space: nowrap;
}
/* cart summary is on colored bg — keep light text */
.vp-cart-summary,
.vp-cart-summary span,
.vp-cart-summary strong,
.vp-cart-summary__row span,
.vp-cart-summary__row strong,
.vp-cart-summary__total span,
.vp-cart-summary__total strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}
.vp-cart-summary__row span,
.vp-cart-summary__total span {
  color: rgba(255,255,255,.88) !important;
  -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  font-weight: 600 !important;
}

@media (min-width: 901px) {
  .vp-page {
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--vp-ink);
  }
  .vp-page h2 {
    font-size: 1.34rem;
    color: #0a1624;
    font-weight: 800;
  }
  .vp-page h3 {
    font-size: 1.12rem;
    color: #0a1624;
    font-weight: 800;
  }
  .vp-hero__lead,
  .vp-hero p {
    font-size: 1.04rem !important;
    line-height: 1.65 !important;
    max-width: min(46rem, 100%);
    color: #fff !important;
    opacity: .95 !important;
  }
  .vp-card {
    padding: 22px 24px;
  }
  /* 본문만 또렷하게 — 부가설명(.vp-muted 등)은 위에서 soft 유지 */
  .vp-card > p,
  .vp-card > ul > li,
  .ha-guide-lead,
  .ha-guide-intro__text > p,
  .ha-guide-note-card p,
  .ha-usdt-steps p,
  .ha-usdt-board p,
  .ha-game-full__notes,
  .vp-buy-board__head > p {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--vp-ink);
    font-weight: 500;
  }
  .vp-buy-board__head h2 {
    font-size: 1.28rem;
    color: #0a1624;
  }
  .vp-btn,
  .vp-chip,
  .vp-money-label,
  .vp-money-switch a,
  .ha-guide-tab {
    font-size: 0.95rem;
    font-weight: 800;
  }
  .vp-table,
  .vp-history,
  .ha-prize-table,
  .ha-prize-table td,
  .ha-prize-table th {
    font-size: .98rem;
    color: var(--vp-ink);
  }
  label,
  .form-label,
  .vp-field label {
    font-size: .98rem;
    color: #2a3544;
    font-weight: 700;
  }
  input.form-control,
  select.form-control,
  textarea.form-control,
  .vp-page input,
  .vp-page select,
  .vp-page textarea {
    font-size: 1.02rem;
    color: var(--vp-ink);
  }
}
