/* =============================================================================
   SLOTAVATAR — 프론트엔드 스타일
   · 다크 모드 고정 (Telegram 테마는 아래에서 필요시 나중에 대응)
   · 라디우스 2px 고정
   · 글래스/그라디언트텍스트/bounce 금지
   · Impact + Gothic A1 + IBM Plex Mono
   ============================================================================= */

:root {
  --font-display: Impact, 'Anton', 'Gothic A1', sans-serif;
  --font-body: 'Gothic A1', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* DARK palette (기본) */
  --bg: #0A0A0A;
  --bg-elevated: #171717;
  --bg-hover: #1F1F1F;
  --bg-input: #050505;
  --bg-card: #141414;
  --text: #FFFFFF;
  --text-2: #EAEAEA;
  --text-muted: #BFBFBF;
  --text-disabled: #8A8A8A;
  --border: #262626;
  --border-strong: #404040;
  --accent: #5288C1;
  --accent-hover: #4070A0;
  --accent-on: #FFFFFF;
  --bronze: #988057;
  --forest: #3F6543;
  --danger: #E25C4E;

  /* 레이아웃 상수 */
  --tab-bar-h: 60px;
  --header-h: 60px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* ============ App Header (slim) ============ */
.app-header {
  padding: 10px 16px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.6px;
  color: var(--text);
  line-height: 1;
}
.app-logo .accent { color: var(--accent); }

/* ============ Main Page Container ============ */
.app-main {
  padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px) + 20px);
  max-width: 560px;
  margin: 0 auto;
}
.tab-page { display: block; }
.tab-page[hidden] { display: none; }

/* ============ Section ============ */
.section {
  padding: 14px 8px;
  position: relative;
}
.section-divider { border-top: 8px solid var(--bg-elevated); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 1.2px;
}
.section-title .ko {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-disabled);
  letter-spacing: 0.4px;
}

/* ============ Search Input ============ */
.search-row {
  position: relative;
  margin-bottom: 10px;
}
.search-row .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
}
.search-row input {
  width: 100%;
  padding: 11px 38px 11px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
}
.search-row input::placeholder { color: var(--text-disabled); }
.search-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(82, 136, 193, 0.15);
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.search-clear svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============ Filter Chips ============ */
.chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.chip.active {
  background: linear-gradient(180deg, #5d97cf 0%, #3e6e9e 100%);
  border-color: #2c5680;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

/* ============ Games Grid ============ */
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);
}
.game-card:active { transform: translateY(1px); }
.game-thumb {
  aspect-ratio: 339 / 180;
  background:
    repeating-linear-gradient(45deg, var(--bg-hover) 0 10px, var(--bg-elevated) 10px 20px);
  display: block;
  overflow: hidden;
  position: relative;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-info { padding: 9px 11px 11px; }
.game-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.game-provider {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ============ Skeleton ============ */
.skel {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-hover) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: skel 1.6s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skel-card .skel-thumb { aspect-ratio: 339 / 180; }
.skel-card .skel-line  { height: 11px; margin: 10px 11px 0; }
.skel-card .skel-line.short { width: 50%; height: 9px; margin-top: 5px; margin-bottom: 10px; }

/* ============ Sentinel (infinite scroll trigger) ============ */
.games-sentinel {
  height: 1px;
  margin: 20px 0;
}
.games-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ Buttons ============ */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.3px;
  padding: 11px 18px;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #5d97cf 0%, #3e6e9e 100%);
  border: 1px solid #2c5680;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Verifier ============ */
.verifier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.verifier-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.verifier-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.verifier-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.verifier-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.verifier-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.url-input {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 8px;
}
.url-input::placeholder { color: var(--text-disabled); }
.url-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============ Verify Progress (3단계 연출) ============ */
.verify-progress {
  margin-top: 12px;
  padding: 12px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.verify-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}
.verify-step:last-child { border-bottom: none; }
.verify-step.active { opacity: 1; }
.verify-step.complete { opacity: 0.8; }

.step-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.step-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.verify-step.active .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  animation: stepPulse 1.3s ease-in-out infinite;
}
.verify-step.complete .step-icon {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
  animation: none;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82, 136, 193, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(82, 136, 193, 0.18); }
}

.step-body {
  flex: 1;
  min-width: 0;
}
.step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.2;
}
.step-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  margin-top: 3px;
  min-height: 12px;
}
.verify-step.active .step-label::after {
  content: '';
  display: inline-block;
  animation: dots 1.4s steps(4, end) infinite;
  color: var(--accent);
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ============ Verify Result ============ */
.verify-result {
  margin-top: 12px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-input);
}
.verify-result.verified { border-color: var(--forest); background: rgba(63, 101, 67, 0.08); }
.verify-result.suspicious { border-color: var(--danger); background: rgba(226, 92, 78, 0.08); }
.verify-result.error { border-color: var(--danger); background: rgba(226, 92, 78, 0.08); }

.verify-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.verify-status svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; }
.verify-result.verified .verify-status { color: #7FBE83; }
.verify-result.suspicious .verify-status,
.verify-result.error .verify-status { color: var(--danger); }
.verify-message {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.verify-game {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.verify-game img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.verify-game-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.verify-game-provider {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.4px;
}
.verify-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.verify-meta dt { color: var(--text-muted); font-family: var(--font-mono); }
.verify-meta dd { color: var(--text); font-family: var(--font-mono); word-break: break-all; }

/* ============ Verify Checklist ============ */
.verify-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.verify-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.3;
}
.verify-checklist svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  flex-shrink: 0;
}
.verify-checklist li.ok   { color: #7FBE83; }
.verify-checklist li.bad  { color: var(--danger); }
.verify-checklist li.warn { color: #D8A84E; }
.verify-checklist li span { color: var(--text-2); }
.verify-checklist li.ok span   { color: var(--text); }
.verify-checklist li.bad span  { color: var(--text); }
.verify-checklist li.warn span { color: var(--text); }

/* =============================================================================
   Verify Result — PAPER CERTIFICATE VARIANT
   종이 질감 배경 + grain noise + 볼록 내부요소 + 드롭인/스태거드 등장
   정품/가품 최종 판정에만 적용 (error 는 기본 카드 유지)
   ============================================================================= */

.verify-result.paper {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 20px 12px 16px;
  border: 1px solid #b9a576;
  border-radius: 2px;
  background: #f3e9d2;
  color: #2a2418;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.58),
    0 4px 12px rgba(0, 0, 0, 0.32);
  animation: paperDrop 0.85s cubic-bezier(0.22, 0.7, 0.28, 1) both;
}

/* grain texture overlay */
.verify-result.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
/* subtle vignette for depth */
.verify-result.paper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(65,50,25,0.18) 100%);
  pointer-events: none;
}
.verify-result.paper > * { position: relative; z-index: 1; }

/* ── 드롭인 (overshoot 약간 있지만 bounce 아님) */
@keyframes paperDrop {
  0% {
    opacity: 0;
    transform: scale(0.90) translateY(-20px) rotate(-0.6deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.015) translateY(3px) rotate(0.25deg);
  }
  80% {
    transform: scale(0.998) translateY(-1px) rotate(-0.05deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

/* ── 내부 요소 스태거드 등장 */
@keyframes paperReveal {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 상단 판정 배너 — 이중선으로 둘러싼 서예 느낌 */
.verify-result.paper .verify-status {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  justify-content: flex-start;
  padding: 8px 0;
  margin-bottom: 8px;
  border-top: 3px double rgba(65, 50, 25, 0.45);
  border-bottom: 3px double rgba(65, 50, 25, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: paperReveal 0.55s ease-out 0.45s both;
}
.verify-result.paper .verify-status svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
  flex-shrink: 0;
}
.verify-result.paper.verified   .verify-status { color: #2d5a30; }
.verify-result.paper.suspicious .verify-status { color: #7a2617; }

.verify-result.paper .verify-message {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #5a4a2e;
  line-height: 1.45;
  margin-bottom: 14px;
  padding-right: 72px;
  animation: paperReveal 0.55s ease-out 0.55s both;
}

/* 게임 카드 — 종이에 붙은 폴라로이드처럼 볼록 */
.verify-result.paper .verify-game {
  background: #fffaef;
  border: 1px solid rgba(65, 50, 25, 0.3);
  border-radius: 2px;
  padding: 10px;
  margin-top: 0;
  margin-bottom: 12px;
  gap: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.12);
  border-top: none;
  padding-top: 10px;
  animation: paperReveal 0.55s ease-out 0.65s both;
}
.verify-result.paper .verify-game img {
  width: 96px;
  height: 54px;
  background: #e8dfc8;
  border: 1px solid rgba(65, 50, 25, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.verify-result.paper .verify-game-name {
  font-size: 14px;
  font-weight: 800;
  color: #2a2418;
  line-height: 1.25;
}
.verify-result.paper .verify-game-provider {
  font-size: 10px;
  color: #6a5a3a;
  margin-top: 4px;
  letter-spacing: 0.6px;
}

/* 체크리스트 — 종이에 도장 찍은 듯한 느낌 */
.verify-result.paper .verify-checklist {
  border-top: 2px dashed rgba(65, 50, 25, 0.35);
  padding: 12px 0 2px;
  margin-top: 0;
  animation: paperReveal 0.55s ease-out 0.75s both;
}
.verify-result.paper .verify-checklist li {
  font-size: 12px;
  padding: 6px 0;
  color: #2a2418;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.verify-result.paper .verify-checklist svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}
.verify-result.paper .verify-checklist li.ok   { color: #2d5a30; }
.verify-result.paper .verify-checklist li.bad  { color: #7a2617; }
.verify-result.paper .verify-checklist li.warn { color: #8a6a1a; }
.verify-result.paper .verify-checklist li.ok span,
.verify-result.paper .verify-checklist li.bad span,
.verify-result.paper .verify-checklist li.warn span { color: #2a2418; }

/* 메타 정보 — 종이 아래쪽에 도장 메모처럼 */
.verify-result.paper .verify-meta {
  border-top: 2px dashed rgba(65, 50, 25, 0.35);
  padding-top: 10px;
  margin-top: 12px;
  animation: paperReveal 0.55s ease-out 0.85s both;
}
.verify-result.paper .verify-meta dt {
  color: #6a5a3a;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.verify-result.paper .verify-meta dd {
  color: #2a2418;
  font-weight: 600;
  font-size: 12px;
}

/* ── 붉은 도장 (합격 도장 스타일) ─────────────────────── */
.verify-result.paper .stamp {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 138px;
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 5px double #8a2c1c;
  background: rgba(138, 44, 28, 0.06);
  color: #8a2c1c;
  transform: rotate(-8deg);
  z-index: 5;
  opacity: 0.92;
  box-shadow:
    inset 0 0 0 2px rgba(138, 44, 28, 0.25),
    inset 0 0 18px rgba(138, 44, 28, 0.10);
  animation: stampIn 0.55s cubic-bezier(0.25, 0.75, 0.3, 1) 1.0s both;
  pointer-events: none;
}

/* 도장 내 노이즈 (찍힘 자국 불균일성) */
.verify-result.paper .stamp::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.54 0 0 0 0 0.17 0 0 0 0 0.11 0 0 0 0.85 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  -webkit-mask: radial-gradient(circle at center, #000 62%, transparent 82%);
  mask: radial-gradient(circle at center, #000 62%, transparent 82%);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}

.verify-result.paper .stamp-main {
  font-family: Impact, 'Noto Sans KR', 'Gothic A1', sans-serif;
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 0 1px currentColor,
    1px 1px 0 rgba(138, 44, 28, 0.3);
  position: relative;
  z-index: 1;
}
.verify-result.paper .stamp-sub {
  font-family: Impact, sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin-top: 3px;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

/* 가품 — 더 진한 벽돌색 */
.verify-result.paper.suspicious .stamp {
  border-color: #5e1a10;
  background: rgba(94, 26, 16, 0.08);
  color: #5e1a10;
  box-shadow:
    inset 0 0 0 2px rgba(94, 26, 16, 0.28),
    inset 0 0 18px rgba(94, 26, 16, 0.10);
}
.verify-result.paper.suspicious .stamp-main {
  text-shadow:
    0 0 1px currentColor,
    1px 1px 0 rgba(94, 26, 16, 0.3);
}

/* 도장 찍히는 모션 — 3.5배에서 급락 → 눌림 → 살짝 반동 → 정착 (bounce 아님) */
@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(3.5) rotate(-14deg);
  }
  45% {
    opacity: 1;
    transform: scale(0.82) rotate(-8deg);
  }
  68% {
    opacity: 0.96;
    transform: scale(1.08) rotate(-8.4deg);
  }
  85% {
    transform: scale(0.985) rotate(-8deg);
  }
  100% {
    opacity: 0.92;
    transform: scale(1) rotate(-8deg);
  }
}

/* 상단 판정 배너는 스탬프에 공간 양보 — 오른쪽 패딩 확보 */
.verify-result.paper .verify-status {
  padding-right: 100px;
}

/* ============ Region Tabs (탭2 placeholder) ============ */
.region-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.region-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
}
.region-tab.active {
  background: linear-gradient(180deg, #5d97cf 0%, #3e6e9e 100%);
  border-color: #2c5680;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

/* ============ Placeholder Card ============ */
.placeholder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 20px;
  text-align: center;
}
.placeholder-icon {
  width: 36px;
  height: 36px;
  stroke: var(--text-disabled);
  fill: none;
  stroke-width: 1.8;
  display: inline-block;
  margin-bottom: 12px;
}
.placeholder-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: 1.2px;
}
.placeholder-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ Play Modal — Launcher Pad UX ============ */
.play-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.play-modal-bar {
  height: 48px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  flex-shrink: 0;
}
.play-modal-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  flex-shrink: 0;
}
.play-modal-btn:active { background: var(--bg-hover); }
.play-modal-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.play-modal-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  text-align: center;
}
.play-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: var(--bg);
  overflow-y: auto;
}

/* Launcher Card */
.launcher-card {
  max-width: 380px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 18px 16px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 4px 8px rgba(0, 0, 0, 0.3);
  animation: launcherDrop 0.55s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
@keyframes launcherDrop {
  0%   { opacity: 0; transform: scale(0.94) translateY(-12px); }
  60%  { opacity: 1; transform: scale(1.01) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.launcher-thumb {
  aspect-ratio: 339 / 180;
  background:
    repeating-linear-gradient(45deg, var(--bg-hover) 0 10px, var(--bg-elevated) 10px 20px);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.45);
}
.launcher-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.launcher-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  padding: 0 4px;
}
.launcher-provider {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.launcher-play {
  margin-top: 20px;
  padding: 15px 22px;
  font-size: 14px;
  width: 100%;
}
.launcher-play svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: currentColor;
}

.launcher-note {
  text-align: center;
  font-size: 10px;
  color: var(--text-disabled);
  margin-top: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* ============ Bottom Tab Bar (fixed) ============ */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  display: flex;
  align-items: stretch;
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.tab-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab-item.active { color: var(--accent); }
.tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.tab-item.active .label { font-weight: 700; }

/* ============================================================================
   AVATAR TAB — 현지 카지노 리스트
   · 도시 칩 (MANILA / CLARK / DA NANG) — 기존 .chips 재사용
   · 카지노 카드: 1열 리스트, 첫 카드는 .featured 로 강조 (Bronze 글로우)
   ============================================================================ */

/* 도시 칩은 .chips.chips-cities 로 오버라이드 — 영문 + 한글 병기 */
.chips-cities .chip {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.chips-cities .chip .ko {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: inherit;
  opacity: 0.8;
  letter-spacing: 0;
}

/* ── 카지노 리스트 컨테이너 */
.casinos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.casinos-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── 카지노 카드 (일반) */
.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Featured (첫 번째) — Bronze glow border */
.casino-card.featured {
  border-color: var(--bronze);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 179, 0.14),
    0 0 0 1px rgba(152, 128, 87, 0.40),
    0 6px 20px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(152, 128, 87, 0.15);
}

/* 썸네일 */
.casino-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, var(--bg-hover) 0 12px, var(--bg-elevated) 12px 24px);
  overflow: hidden;
}
.casino-card.featured .casino-thumb {
  aspect-ratio: 21 / 9;
}
.casino-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 이미지 없을 때: 영문 이름 크게 표시 (Impact) */
.casino-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(152, 128, 87, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}
.casino-card.featured .casino-thumb-fallback {
  font-size: 28px;
}
.casino-card.no-image .casino-thumb {
  background: none;
}

/* 카드 본문 */
.casino-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.casino-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.1px;
}
.casino-card.featured .casino-name {
  font-size: 18px;
}
.casino-name-en {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.1px;
  color: var(--bronze);
  margin-top: -2px;
}
.casino-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 2px;
}
.casino-address {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}
.casino-address svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  stroke: var(--text-disabled);
  fill: none;
  stroke-width: 2;
  margin-top: 2px;
}
.casino-address span {
  flex: 1;
  min-width: 0;
}

/* 특징 태그 */
.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.casino-feature {
  padding: 3px 8px;
  background: rgba(152, 128, 87, 0.10);
  border: 1px solid rgba(152, 128, 87, 0.30);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 0.2px;
}

/* ── CTA 버튼: 호스트 연결 (Floating 스타일 — 글로우 그림자) */
.btn-floating {
  background: linear-gradient(180deg, #5d97cf 0%, #3e6e9e 100%);
  border: 1px solid #2c5680;
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 3px 10px rgba(82, 136, 193, 0.40),
    0 0 16px rgba(82, 136, 193, 0.25);
}
.btn-floating:active { transform: translateY(1px); }
.btn-floating svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.casino-cta {
  align-self: stretch;
  margin-top: 8px;
  font-size: 12px;
  padding: 11px 18px;
}

/* ── 스켈레톤 (로딩 중) */
.casino-skeleton .casino-thumb {
  background: var(--bg-elevated);
  /* @keyframes skel 재사용 */
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-hover) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: skel 1.6s ease-in-out infinite;
}
.casino-skeleton .casino-body {
  padding: 14px;
  gap: 8px;
}
.casino-skeleton .skel-line {
  height: 11px;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-hover) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: skel 1.6s ease-in-out infinite;
  border-radius: 2px;
}
