/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0a0015;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-purple: #b06aff;
  --accent-rose: #ff9ecd;
  --accent-gold: #f0c060;
  --text-primary: #e8d5ff;
  --text-secondary: rgba(232, 213, 255, 0.6);
  --text-muted: rgba(232, 213, 255, 0.35);
  --glow-purple: rgba(176, 106, 255, 0.4);
  --glow-strong: rgba(176, 106, 255, 0.7);
  --radius-card: 16px;
  --radius-btn: 12px;
}

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

body {
  background: radial-gradient(ellipse at 50% 0%, #1a0035 0%, var(--bg-deep) 65%);
  min-height: 100vh;
  color: var(--text-primary);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== Stars Canvas ===== */
#starsCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== View System ===== */
.view {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

.view.active {
  opacity: 1;
  pointer-events: all;
}

.view-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Site Header ===== */
.site-header {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 20px;
}

.crystal-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px var(--glow-purple));
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8d5ff 0%, var(--accent-purple) 50%, var(--accent-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ===== Upload Main ===== */
.upload-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ===== Drop Zone ===== */
.drop-zone {
  width: 100%;
  border: 2px dashed rgba(176, 106, 255, 0.4);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.drop-zone:hover,
.drop-zone:focus {
  border-color: var(--accent-purple);
  background: rgba(176, 106, 255, 0.06);
  outline: none;
}

.drop-zone.dragover {
  border-color: var(--accent-purple);
  background: rgba(176, 106, 255, 0.1);
  transform: scale(1.01);
}

.drop-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px var(--glow-purple));
}

.drop-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.drop-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

/* ===== Buttons ===== */
.button-group {
  display: flex;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  flex: 1;
  min-width: 140px;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #8b3fff, var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 63, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(139, 63, 255, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 158, 205, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 158, 205, 0.3);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 158, 205, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
}

.btn-glow {
  animation: btnGlow 2.5s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 63, 255, 0.4); }
  50% { box-shadow: 0 6px 36px rgba(139, 63, 255, 0.75), 0 0 60px rgba(176,106,255,0.2); }
}

.btn-full {
  width: 100%;
  flex: none;
}

.btn-capture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #8b3fff, var(--accent-purple));
  color: #fff;
  box-shadow: 0 0 24px var(--glow-purple);
  flex: none;
  min-width: unset;
  padding: 0;
}

.btn-icon {
  font-size: 1rem;
}

/* ===== View Title ===== */
.view-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

/* ===== Preview View ===== */
#view-preview .view-inner {
  gap: 20px;
}

.image-frame {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(176, 106, 255, 0.3);
  box-shadow: 0 0 30px rgba(176, 106, 255, 0.2), 0 8px 32px rgba(0,0,0,0.4);
}

.image-frame img {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

.image-frame-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(176,106,255,0.08));
  pointer-events: none;
}

.preview-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ===== Loading View ===== */
.loading-inner {
  justify-content: center;
  gap: 28px;
}

.crystal-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4aaff 0%, #8b3fff 40%, #3d0080 100%);
  box-shadow: 0 0 40px var(--glow-purple);
  animation: orbPulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.orb-shine {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 35%;
  height: 28%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.55) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(-30deg);
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px var(--glow-purple);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 70px var(--glow-strong), 0 0 120px rgba(176,106,255,0.2);
  }
}

.loading-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-align: center;
}

.loading-subtext {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
  margin-top: -16px;
}

.loading-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* ===== Results View ===== */
.results-inner {
  gap: 16px;
}

.results-header {
  text-align: center;
  margin-bottom: 8px;
}

.results-header .crystal-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.results-header h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8d5ff, var(--accent-purple), var(--accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Cards ===== */
.card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent-gold);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.overall-text,
.fortune-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== Line Cards ===== */
.lines-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}

.line-card:hover {
  border-color: rgba(176, 106, 255, 0.25);
}

.line-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.line-emoji {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px var(--glow-purple));
}

.line-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
}

.line-score {
  font-size: 0.82rem;
  color: var(--accent-gold);
  background: rgba(240, 192, 96, 0.1);
  border: 1px solid rgba(240, 192, 96, 0.2);
  border-radius: 20px;
  padding: 2px 10px;
}

.score-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-rose));
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-interpretation {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.75;
}

/* ===== Lucky Items ===== */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lucky-item {
  background: rgba(240, 192, 96, 0.06);
  border: 1px solid rgba(240, 192, 96, 0.15);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lucky-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lucky-value {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: var(--accent-gold);
  font-weight: 400;
}

/* ===== Lotto ===== */
.lotto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lotto-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.lotto-balls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 52px;
  align-items: center;
}

.lotto-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #5a3acc, #8e5aff);
  box-shadow: 0 2px 10px rgba(138, 90, 255, 0.45);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: ballPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lotto-ball.lucky {
  background: linear-gradient(135deg, #c47a00, #f0c060);
  box-shadow: 0 2px 14px rgba(240, 192, 96, 0.65);
  color: #1a0800;
}

@keyframes ballPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.btn-lotto {
  background: linear-gradient(135deg, #b85c00, #f0c060);
  color: #1a0800;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-lotto:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-lotto:active {
  transform: translateY(0);
}

.share-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-share {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-share {
  background: linear-gradient(135deg, #1a3a1a, #2a6a2a);
  color: #d5ffd5;
  border: 1px solid rgba(106, 220, 106, 0.4);
}

.btn-share:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-share:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-tonggye {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-tonggye img {
  display: block;
  width: 100%;
  height: 51px;
  object-fit: contain;
}

.btn-tonggye:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-tonggye:active {
  transform: translateY(0);
}

/* ===== Camera Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #12002a;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(176, 106, 255, 0.25);
  padding: 20px 20px 40px;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}

#videoFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-guide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0,0,0,0.2);
  opacity: 0.7;
}

.guide-hand {
  font-size: 60px;
  opacity: 0.4;
}

.video-guide p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* ===== Reaction Buttons ===== */
.reaction-section {
  width: 100%;
  text-align: center;
}

.reaction-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.reaction-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.reaction-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 0;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(176, 106, 255, 0.3);
}

.reaction-btn:active {
  transform: scale(0.93);
}

.reaction-btn.selected {
  background: rgba(176, 106, 255, 0.12);
  border-color: var(--accent-purple);
}

.reaction-btn.selected .reaction-count {
  color: var(--accent-purple);
}

.reaction-emoji {
  font-size: 1.6rem;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reaction-btn.pop .reaction-emoji {
  animation: reactionPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reactionPop {
  0% { scale: 1; }
  50% { scale: 1.45; }
  100% { scale: 1; }
}

.reaction-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.reaction-count {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

/* ===== Info Section ===== */
.info-section {
  width: 100%;
  margin-top: 8px;
}

.info-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 32px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.info-sep::before,
.info-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,106,255,0.25), transparent);
}

.info-block {
  width: 100%;
  margin-bottom: 36px;
}

.info-heading {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-heading-deco {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px var(--glow-purple));
}

.info-intro {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
}

.tl-item {
  display: flex;
  gap: 14px;
}

.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--glow-purple);
  flex-shrink: 0;
}

.tl-line {
  flex: 1;
  width: 1px;
  min-height: 16px;
  background: linear-gradient(to bottom, rgba(176,106,255,0.3), rgba(176,106,255,0.05));
  margin-top: 5px;
  margin-bottom: 2px;
}

.tl-item:last-child .tl-line {
  display: none;
}

.tl-right {
  padding-bottom: 20px;
  flex: 1;
  min-width: 0;
}

.tl-item:last-child .tl-right {
  padding-bottom: 0;
}

.tl-period {
  display: block;
  font-size: 0.76rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.tl-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== Guide Cards ===== */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}

.guide-card:hover {
  border-color: rgba(176, 106, 255, 0.2);
}

.guide-palm {
  width: 90px;
  flex-shrink: 0;
}

.palm-photo-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.palm-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.guide-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-emoji {
  font-size: 1rem;
}

.guide-loc {
  font-size: 0.74rem;
  color: var(--accent-gold);
  line-height: 1.5;
}

.guide-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.info-footer {
  font-size: 0.71rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding-bottom: 8px;
}

.copy-link-section {
  padding: 24px 0 8px;
  text-align: center;
}

.btn-copy-link {
  background: transparent;
  border: 1px solid rgba(176, 106, 255, 0.4);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-link:hover {
  border-color: rgba(176, 106, 255, 0.8);
  color: var(--text-primary);
  background: rgba(176, 106, 255, 0.08);
}

.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(40, 20, 60, 0.95);
  border: 1px solid rgba(176, 106, 255, 0.4);
  color: var(--text-primary);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Scrollbar ===== */
.view::-webkit-scrollbar {
  width: 4px;
}

.view::-webkit-scrollbar-track {
  background: transparent;
}

.view::-webkit-scrollbar-thumb {
  background: rgba(176, 106, 255, 0.3);
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  .crystal-icon { font-size: 44px; }
  .drop-icon { font-size: 40px; }
  .btn { padding: 12px 16px; font-size: 0.88rem; }
  .lucky-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

@media (min-width: 480px) {
  .view-inner { padding: 40px 24px 80px; }
}
