/**
 * Wallet page — GNB는 로비와 동일(전폭). 본문만 스크롤·중앙 컬럼.
 */

/* 로비 fullscreen 셸과 동일: 헤더 고정 + 아래 스크롤 */
.wallet-wrap .lobby {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wallet-wrap .lobby-header {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.wallet-wrap .wallet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wallet-wrap .wallet-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 28px) 48px;
  box-sizing: border-box;
}

.wallet-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4b87a;
  margin: 0 0 16px;
}

.wallet-panel {
  background: linear-gradient(165deg, rgba(28, 22, 16, 0.92) 0%, rgba(12, 10, 8, 0.95) 100%);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.wallet-panel--balance {
  text-align: center;
  margin-top: 4px;
}

.wallet-panel__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(201, 169, 110, 0.75);
  margin-bottom: 6px;
}

.wallet-panel__balance {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 700;
  color: #e8d4a8;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.wallet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.wallet-stat {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.wallet-stat__k {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(201, 169, 110, 0.65);
  margin-bottom: 4px;
}

.wallet-stat__v {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f0e6cc;
}

.wallet-stat--wd .wallet-stat__v {
  color: #d4a574;
}

.wallet-panel__h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #c9a96e;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.wallet-panel__h--wd {
  color: #b87878;
}

.wallet-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  opacity: 0.85;
}

.wallet-field {
  margin-bottom: 14px;
}

.wallet-field__k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 169, 110, 0.7);
  margin-bottom: 6px;
}

.wallet-field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f0e6cc;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
}

.wallet-field input:focus {
  outline: none;
  border-color: rgba(201, 169, 110, 0.65);
}

.wallet-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-row input {
  flex: 1;
  min-width: 140px;
}

.wallet-dep-ask {
  width: 100%;
  padding: 12px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px dashed rgba(201, 169, 110, 0.45);
  border-radius: 8px;
  color: #c9a96e;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.wallet-dep-ask:hover {
  background: rgba(201, 169, 110, 0.22);
}

.wallet-hint {
  font-size: 11px;
  color: rgba(200, 180, 140, 0.55);
  margin: 8px 0 0;
  line-height: 1.45;
}

.wallet-notice {
  font-size: 11px;
  color: rgba(180, 140, 140, 0.75);
  margin: 0 0 12px;
}

.wallet-btn {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.wallet-btn:active {
  transform: scale(0.98);
}

.wallet-btn--gold {
  background: linear-gradient(180deg, #c9a96e 0%, #9a7b4a 100%);
  color: #1a1408;
}

.wallet-btn--wine {
  width: 100%;
  background: linear-gradient(180deg, #6b3030 0%, #4a2020 100%);
  color: #f0e0e0;
}

.wallet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wallet-tx-list {
  max-height: 280px;
  overflow-y: auto;
}

.wallet-tx {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.wallet-tx:last-child {
  border-bottom: none;
}

.wallet-tx__type {
  font-weight: 600;
  letter-spacing: 0.05em;
  grid-column: 1;
  grid-row: 1;
}

.wallet-tx__type--dep {
  color: #7ec97e;
}

.wallet-tx__type--wd {
  color: #d4a0a0;
}

.wallet-tx__amt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  color: #e8dcc8;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.wallet-tx__meta {
  grid-column: 1 / -1;
  color: rgba(200, 180, 150, 0.5);
  font-size: 10px;
}

.wallet-tx-empty {
  text-align: center;
  color: rgba(200, 180, 150, 0.45);
  padding: 24px;
  font-size: 13px;
}

.wallet-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 120px));
  z-index: 9999;
  max-width: 90vw;
  padding: 12px 20px;
  background: rgba(20, 16, 12, 0.95);
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 10px;
  color: #f0e6cc;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    visibility 0s linear 0.25s;
}

.wallet-toast.is-show,
.wallet-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    visibility 0s linear 0s;
}
