/* ==========================================================================
   FS LUMINA HEX - GAME DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Theme Definitions */
:root {
  /* Fonts */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Default Theme: Cyber Neon */
  --bg-dark: #090b10;
  --bg-card: rgba(22, 26, 42, 0.7);
  --bg-card-border: rgba(0, 243, 255, 0.2);
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  
  --primary-glow: #00f3ff;
  --secondary-glow: #b000ff;
  --accent-glow: #ffb700;
  --node-off: #202738;
  --path-off: #2e3850;

  --tile-bg: rgba(22, 28, 45, 0.85);
  --tile-stroke: rgba(0, 243, 255, 0.25);
  --tile-hover: rgba(0, 243, 255, 0.15);
  
  --shadow-color: rgba(0, 243, 255, 0.15);
  --blob-1: rgba(0, 243, 255, 0.18);
  --blob-2: rgba(176, 0, 255, 0.18);
  --blob-3: rgba(255, 183, 0, 0.12);
}

/* Theme 2: Soft Pastel */
[data-theme="soft-pastel"] {
  --bg-dark: #f2f0f9;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-border: rgba(131, 56, 236, 0.2);
  --text-main: #2b2638;
  --text-muted: #6e677e;
  
  --primary-glow: #8338ec;
  --secondary-glow: #06d6a0;
  --accent-glow: #ff006e;
  --node-off: #e2dedf;
  --path-off: #c6c0d6;

  --tile-bg: rgba(255, 255, 255, 0.9);
  --tile-stroke: rgba(131, 56, 236, 0.2);
  --tile-hover: rgba(131, 56, 236, 0.1);
  
  --shadow-color: rgba(131, 56, 236, 0.1);
  --blob-1: rgba(131, 56, 236, 0.15);
  --blob-2: rgba(6, 214, 160, 0.15);
  --blob-3: rgba(255, 0, 110, 0.1);
}

/* Theme 3: Deep Ocean */
[data-theme="deep-ocean"] {
  --bg-dark: #07131e;
  --bg-card: rgba(14, 39, 60, 0.7);
  --bg-card-border: rgba(0, 229, 163, 0.25);
  --text-main: #e2f9f1;
  --text-muted: #6a95a8;
  
  --primary-glow: #00e5a3;
  --secondary-glow: #0077b6;
  --accent-glow: #70e000;
  --node-off: #142f44;
  --path-off: #1d4563;

  --tile-bg: rgba(14, 39, 60, 0.85);
  --tile-stroke: rgba(0, 229, 163, 0.25);
  --tile-hover: rgba(0, 229, 163, 0.15);
  
  --shadow-color: rgba(0, 229, 163, 0.15);
  --blob-1: rgba(0, 229, 163, 0.15);
  --blob-2: rgba(0, 119, 182, 0.2);
  --blob-3: rgba(112, 224, 0, 0.1);
}

/* Theme 4: Sunset Glow */
[data-theme="sunset-glow"] {
  --bg-dark: #160e18;
  --bg-card: rgba(39, 24, 41, 0.7);
  --bg-card-border: rgba(255, 77, 109, 0.25);
  --text-main: #fde8ed;
  --text-muted: #a67c87;
  
  --primary-glow: #ff4d6d;
  --secondary-glow: #ff8531;
  --accent-glow: #ffc300;
  --node-off: #2c1a2e;
  --path-off: #422946;

  --tile-bg: rgba(39, 27, 41, 0.85);
  --tile-stroke: rgba(255, 77, 109, 0.25);
  --tile-hover: rgba(255, 77, 109, 0.15);
  
  --shadow-color: rgba(255, 77, 109, 0.15);
  --blob-1: rgba(255, 77, 109, 0.18);
  --blob-2: rgba(255, 133, 49, 0.18);
  --blob-3: rgba(255, 195, 0, 0.12);
}

/* Reset & Global Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Animated Background Blobs */
.background-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  animation: floatBlob 20s infinite alternate ease-in-out;
  transition: background 0.5s ease;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--blob-1);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--blob-2);
  bottom: -15%;
  right: -10%;
  animation-delay: -7s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--blob-3);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Main Container Layout */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  min-height: 90vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

/* Header UI */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-btn {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}

.logo-icon {
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.title-group h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Stats Display */
.game-stats {
  display: flex;
  gap: 0.75rem;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-glow);
}

/* Controls / Toolbar */
.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow-color);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.glass-select {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.glass-select:hover {
  border-color: var(--primary-glow);
}

.glass-select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glass Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

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

.icon-btn {
  padding: 0.5rem;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.icon-btn.active {
  color: var(--primary-glow);
  border-color: var(--primary-glow);
  background: rgba(0, 243, 255, 0.1);
}

/* Stage & Canvas Area */
.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px var(--shadow-color);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

canvas {
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-glow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hint Banner */
.hint-banner {
  margin-top: 0.75rem;
  background: rgba(255, 183, 0, 0.12);
  border: 1px solid var(--accent-glow);
  color: var(--accent-glow);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.game-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modals */
.glass-modal {
  border: none;
  border-radius: 24px;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.glass-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 1.75rem;
  color: var(--text-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.win-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 243, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
  margin-bottom: 1rem;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--primary-glow)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 22px var(--primary-glow)); }
}

.win-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-main), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.win-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.win-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.win-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.win-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.win-stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #000;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* Help & Share Modal Specifics */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-main);
}

.help-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  width: 100%;
}

.help-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: rgba(0, 243, 255, 0.15);
  color: var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-desc strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-desc p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Toast Notification */
.global-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #00f3ff, #00e5a3);
  color: #000;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 243, 255, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

/* QR Code & Share UI */
.qr-code-wrapper {
  background: #0d0f18;
  border: 1px solid var(--primary-glow);
  padding: 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  box-shadow: 0 0 20px var(--shadow-color);
}

.qr-canvas {
  border-radius: 12px;
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
}

.share-url-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.btn-copy {
  background: var(--primary-glow);
  color: #000;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* PromptPay & Donate Styling */
.donate-btn {
  background: rgba(0, 229, 163, 0.12) !important;
  border: 1px solid rgba(0, 229, 163, 0.4) !important;
  color: #00e5a3 !important;
  border-radius: 30px !important;
  font-weight: 600;
}

.donate-btn:hover {
  background: rgba(0, 229, 163, 0.25) !important;
  border-color: #00e5a3 !important;
  box-shadow: 0 4px 16px rgba(0, 229, 163, 0.4) !important;
}

.promptpay-badge {
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.4), rgba(0, 229, 163, 0.2));
  border: 1px solid #00e5a3;
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  width: 100%;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.pp-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e5a3;
  letter-spacing: 1px;
}

.pp-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Dynamic Amount Chips & Inputs */
.amount-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0.6rem 0 0.4rem;
  justify-content: center;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: #00e5a3;
  color: #00e5a3;
  background: rgba(0, 229, 163, 0.1);
}

.chip-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 163, 0.25), rgba(0, 243, 255, 0.25));
  border-color: #00e5a3;
  color: #00e5a3;
  box-shadow: 0 0 12px rgba(0, 229, 163, 0.3);
}

.custom-amount-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.amount-display-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.amount-display-badge span {
  color: #00e5a3;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .app-container {
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .game-header {
    padding: 0.75rem 1rem;
  }

  .title-group h1 {
    font-size: 1.25rem;
  }

  .stat-badge {
    min-width: 48px;
    padding: 0.3rem 0.5rem;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .game-controls {
    justify-content: center;
    gap: 0.6rem;
  }

  .canvas-wrapper {
    height: 380px;
  }
}

/* Payment Channel Selector Tabs */
.channel-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  width: 100%;
}

.channel-btn {
  flex: 1;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tab-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.channel-btn.active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.channel-btn[data-channel="promptpay"].active {
  border-color: rgba(0, 229, 163, 0.5);
  color: #00e5a3;
  background: rgba(0, 229, 163, 0.12);
}

.channel-btn[data-channel="binance"].active {
  border-color: rgba(240, 185, 11, 0.5);
  color: #F0B90B;
  background: rgba(240, 185, 11, 0.12);
}

.channel-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Step-by-Step Donate Timeline */
.donate-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0.4rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.9;
}

.step-num {
  width: 18px;
  height: 18px;
  background: rgba(0, 229, 163, 0.2);
  border: 1px solid #00e5a3;
  color: #00e5a3;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
}

.timeline-arrow {
  color: #00e5a3;
  font-size: 0.75rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.channel-view.hidden {
  display: none !important;
}

/* Binance Pay Styling */
.binance-badge {
  background: linear-gradient(135deg, rgba(30, 32, 38, 0.9), rgba(240, 185, 11, 0.15));
  border: 1px solid #F0B90B;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  width: 100%;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.binance-logo {
  font-size: 0.75rem;
  font-weight: 800;
  color: #F0B90B;
  letter-spacing: 1px;
}

.binance-id {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.binance-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 0.4rem;
  box-shadow: 0 0 25px rgba(240, 185, 11, 0.35);
  border: 1px solid rgba(240, 185, 11, 0.4);
  max-width: 100%;
}

.binance-qr-img {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* Mobile & Tablet Responsive Optimization */
@media (max-width: 650px) {
  .app-container {
    padding: 0.6rem;
    gap: 0.65rem;
  }
  .game-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
  }
  .brand {
    justify-content: space-between;
    width: 100%;
  }
  .title-group h1 { font-size: 1.05rem; }
  .title-group .subtitle { font-size: 0.7rem; }
  .game-stats { width: 100%; gap: 0.4rem; }
  .stat-badge { flex: 1; min-width: 0; padding: 0.3rem 0.25rem; }
  .stat-value { font-size: 0.95rem; }
  .game-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }
  .control-group { width: 100%; justify-content: space-between; }
  .glass-select { flex: 1; min-width: 0; height: 38px; font-size: 0.8rem; }
  .action-buttons { width: 100%; justify-content: space-between; gap: 0.35rem; }
  .glass-btn { height: 38px; padding: 0 0.6rem; font-size: 0.8rem; }
  .icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
  .canvas-wrapper { height: 380px; max-height: 55vh; border-radius: 18px; }
  .glass-modal { width: 94%; max-height: 90vh; }
  .modal-content { padding: 1.15rem; gap: 0.75rem; }
}

@media (min-width: 651px) and (max-width: 900px) {
  .app-container { max-width: 760px; padding: 1rem; }
  .canvas-wrapper { height: 420px; }
}
