/* ==========================================================================
   DUCKCORP CLONE - STYLE SHEET (style.css)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #080a0d;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151a24 0%, #080a0d 100%);
  --panel-bg: rgba(18, 22, 28, 0.7);
  --panel-bg-solid: #12161c;
  --panel-border: 1px solid rgba(255, 255, 255, 0.08);
  --accent-color: #f3ba2f;
  --accent-hover: #ffca43;
  --accent-gradient: linear-gradient(135deg, #f5c225 0%, #f3ba2f 100%);
  --accent-glow: rgba(243, 186, 47, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #909aa6;
  --text-muted: #57626e;
  --green-color: #0ecb81;
  --green-glow: rgba(14, 203, 129, 0.2);
  --red-color: #f6465d;
  --red-glow: rgba(246, 70, 93, 0.2);
  --card-radius: 20px;
  --button-radius: 14px;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.03);
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(243, 186, 47, 0.3);
  border-radius: 10px;
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Background floating ducks decoration */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  opacity: 0.05;
  filter: blur(1px);
  animation: float-around 20s infinite linear;
}

.decor-item.duck-1 {
  top: 15%;
  left: 10%;
  width: 120px;
  animation-duration: 25s;
}

.decor-item.duck-2 {
  bottom: 20%;
  right: 10%;
  width: 160px;
  animation-duration: 35s;
  animation-delay: -5s;
}

.decor-item.bubble-1 {
  top: 40%;
  right: 30%;
  width: 40px;
  animation-duration: 15s;
}

.decor-item.bubble-2 {
  bottom: 40%;
  left: 25%;
  width: 60px;
  animation-duration: 18s;
  animation-delay: -3s;
}

/* ==========================================================================
   LANDING PAGE LAYOUT
   ========================================================================== */
#landing-view {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  transition: var(--transition-smooth);
}

header.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
  z-index: 10;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-logo img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand-logo span {
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.header-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.header-social-btn:hover {
  background: var(--accent-gradient);
  color: #080a0d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.landing-connect-btn {
  background: var(--accent-gradient);
  color: #080a0d;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 750;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 186, 47, 0.25);
  transition: var(--transition-bounce);
}

.landing-connect-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 186, 47, 0.45);
}

.social-btn:hover {
  background: var(--accent-gradient);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 140px;
  flex: 1;
  position: relative;
  z-index: 5;
}

.hero-left h1 {
  font-size: 58px;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero-left h1 span.highlight {
  color: var(--accent-color);
  background: linear-gradient(135deg, #ffd966 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent-gradient);
  color: #080a0d;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(243, 186, 47, 0.3);
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(243, 186, 47, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  border: var(--panel-border);
  border-radius: var(--button-radius);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-cta-play {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.04) !important;
}

.landing-cta-play:hover {
  background: #0d1117 !important;
  border-color: #fff !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15) !important;
}

.landing-cta-join {
  background: var(--accent-gradient) !important;
  color: #080a0d !important;
  border: none !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.landing-cta-join:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 6px 20px rgba(243, 186, 47, 0.45) !important;
}

.coming-soon-badge {
  font-size: 8px;
  background: var(--accent-color);
  color: #080a0d;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.app-coming-soon-badge {
  font-size: 7px;
  background: var(--accent-color);
  color: #080a0d;
  padding: 2px 5px;
  border-radius: 6px;
  margin-left: 5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--panel-bg);
  border: var(--panel-border);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--card-radius);
  max-width: 620px;
  width: 100%;
  margin: 20px auto 0 auto;
}

.stat-card {
  text-align: center;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-color);
  white-space: nowrap;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Hero Right: Device Frame Simulator Wrapper */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-right::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(243, 186, 47, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   PHONE MOCKUP FRAME
   ========================================================================== */
.phone-mockup {
  position: relative;
  width: 380px;
  height: 760px;
  background: #0f1319;
  border: 12px solid #232a35;
  border-radius: 48px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 
              0 0 0 2px rgba(255, 255, 255, 0.05),
              0 0 40px var(--accent-glow);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  animation: phone-slide-up 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes phone-slide-up {
  from { transform: translateY(80px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Notch & Status Bar */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: #232a35;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

.phone-notch::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.phone-notch::after {
  content: '';
  position: absolute;
  right: 40px;
  top: 8px;
  width: 25px;
  height: 5px;
  border-radius: 3px;
  background: #111;
}

.phone-status-bar {
  height: 40px;
  background: #0d1117;
  padding: 12px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 90;
  user-select: none;
}

.phone-status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==========================================================================
   MINI APP CONTAINER & ENGINE
   ========================================================================== */
.mini-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #0b0d10;
  overflow: hidden;
  position: relative;
}

/* Mini App Header */
.app-header {
  padding: 12px 16px;
  background: #0d1117;
  border-bottom: var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.app-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
}

.app-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-user-info {
  display: flex;
  flex-direction: column;
}

.app-username {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.premium-badge {
  color: #3897f0;
  font-size: 11px;
}

.app-level {
  font-size: 10px;
  color: var(--accent-color);
  font-weight: 600;
}

.app-wallet-btn {
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.app-wallet-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
}

.app-wallet-btn.connected {
  border-color: var(--green-color);
  color: var(--green-color);
  background: rgba(14, 203, 129, 0.05);
}

/* Page Views System */
.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.app-page {
  display: none;
  flex-direction: column;
  animation: fade-in 0.3s ease-out forwards;
  height: 100%;
}

.app-page.active {
  display: flex;
}

/* Navigation Tab Bar */
.app-nav {
  height: 64px;
  background: #0d1117;
  border-top: var(--panel-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.nav-item i {
  font-size: 18px;
}

.nav-item.active {
  color: var(--accent-color);
}

.nav-item:hover {
  color: #fff;
}

/* ==========================================================================
   TAB: EARN PAGE
   ========================================================================== */
.balance-card {
  background: linear-gradient(180deg, #13171e 0%, #0d1014 100%);
  border: var(--panel-border);
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(243, 186, 47, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.balance-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-val {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.balance-val img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.balance-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Clicker Coin Animation */
.coin-clicker-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 180px;
  margin: 10px 0;
}

.big-duck-coin {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe266 0%, #f3ba2f 70%, #b8860b 100%);
  border: 5px solid #ffda50;
  box-shadow: 0 8px 30px rgba(243, 186, 47, 0.4), 
              inset 0 4px 10px rgba(255, 255, 255, 0.5),
              inset 0 -4px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.big-duck-coin img {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.big-duck-coin:active {
  transform: scale(0.9);
}

.big-duck-coin:active img {
  transform: scale(0.95);
}

.click-floating-text {
  position: absolute;
  color: var(--accent-color);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  pointer-events: none;
  animation: float-up-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 100;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Daily checkin card */
.checkin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.checkin-box {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.checkin-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.checkin-box.completed {
  border-color: var(--green-color);
  background: rgba(14, 203, 129, 0.03);
}

.checkin-box.premium-checkin {
  background: linear-gradient(180deg, rgba(56, 151, 240, 0.05) 0%, rgba(20, 26, 32, 0.5) 100%);
  border: 1px solid rgba(56, 151, 240, 0.3);
}

.checkin-box.premium-checkin:hover {
  border-color: #3897f0;
}

.checkin-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.checkin-reward {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  margin: 6px 0 2px;
}

.checkin-fee {
  font-size: 9px;
  color: var(--text-muted);
}

.checkin-status {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-color);
}

.checkin-box.completed .checkin-status {
  color: var(--green-color);
}

/* Telegram age card */
.age-calculator-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--card-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.age-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.age-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.age-input-group {
  display: flex;
  gap: 8px;
}

.age-input {
  flex: 1;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--button-radius);
  outline: none;
  transition: var(--transition-smooth);
}

.age-input:focus {
  border-color: var(--accent-color);
}

.age-btn {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: var(--button-radius);
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.age-btn:hover {
  transform: translateY(-2px);
}

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

/* ==========================================================================
   TAB: GAMES PAGE
   ========================================================================== */
.games-header {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.game-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-item-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.game-item-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  background: rgba(243, 186, 47, 0.02);
}

.game-item-card.disabled-card:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: var(--panel-bg) !important;
  box-shadow: none !important;
}

.game-item-card.disabled-card::after {
  content: none !important;
}

.game-item-card::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition-smooth);
}

.game-item-card:hover::after {
  color: var(--accent-color);
  transform: translateX(3px);
}

.game-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
}

.game-icon-box.spin {
  background: linear-gradient(135deg, #f76b1c 0%, #fad961 100%);
}

.game-icon-box.crash {
  background: linear-gradient(135deg, #f2135e 0%, #ff6a88 100%);
}

.game-icon-box.lottery {
  background: linear-gradient(135deg, #2b86c5 0%, #ff3cac 100%);
}

.game-info {
  flex: 1;
}

.game-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.game-description {
  font-size: 10px;
  color: var(--text-secondary);
  max-width: 200px;
  line-height: 1.3;
}

/* ==========================================================================
   GAME MODAL POPUPS (FULLSCREEN IN PHONE)
   ========================================================================== */
.game-overlay-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0d10;
  z-index: 150;
  display: none;
  flex-direction: column;
  animation: slide-up 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.game-overlay-header {
  height: 50px;
  padding: 0 16px;
  background: #0d1117;
  border-bottom: var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-overlay-title {
  font-size: 14px;
  font-weight: 700;
}

.game-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.game-close-btn:hover {
  color: #fff;
}

.game-overlay-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* LUCKY SPIN INTERFACE */
.spin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
}

.wheel-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
}

.wheel-indicator {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--accent-color);
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #232a35;
  background: #141822;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
  transition: transform 5s cubic-bezier(0.15, 0.95, 0.3, 1);
}

.wheel-canvas {
  width: 100%;
  height: 100%;
}

.wheel-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3ba2f;
  border: 4px solid #fff;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-center-pin img {
  width: 60%;
  height: 60%;
}

.spin-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.spin-wager-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wager-btn {
  background: var(--panel-bg);
  border: var(--panel-border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wager-btn.active {
  background: var(--accent-gradient);
  color: #000;
  border-color: var(--accent-color);
}

.spin-btn-action {
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: var(--button-radius);
  padding: 12px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 15px var(--accent-glow);
  transition: var(--transition-bounce);
}

.spin-btn-action:hover {
  transform: translateY(-2px);
}

.spin-btn-action:disabled {
  background: #333;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* CRASH GAME INTERFACE */
.crash-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.crash-chart-area {
  flex: 1;
  background: #090c10;
  border: var(--panel-border);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.crash-multiplier-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  z-index: 10;
  color: #fff;
  transition: color 0.15s ease;
}

.crash-multiplier-text.crashed {
  color: var(--red-color);
  animation: shake 0.3s ease;
}

.crash-multiplier-text.success {
  color: var(--green-color);
}

.crash-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crash-status-lbl {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 10;
}

.crash-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel-bg-solid);
  padding: 12px;
  border-radius: var(--card-radius);
  border: var(--panel-border);
}

.crash-bet-input-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b0d10;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--button-radius);
  padding: 6px 12px;
}

.crash-bet-input-box span {
  font-size: 11px;
  color: var(--text-secondary);
}

.crash-bet-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  width: 100px;
  text-align: right;
  outline: none;
}

.crash-quick-bets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.crash-btn-action {
  width: 100%;
  padding: 14px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.crash-btn-action.bet {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 6px 15px var(--accent-glow);
}

.crash-btn-action.cashout {
  background: linear-gradient(135deg, #0ecb81 0%, #0ab270 100%);
  color: #fff;
  box-shadow: 0 6px 15px var(--green-glow);
}

.crash-btn-action.waiting {
  background: #3a424e;
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* LUCKY NUMBER LOTTERY INTERFACE */
.lottery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.lottery-pool-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(43, 134, 197, 0.15) 0%, rgba(255, 60, 172, 0.1) 100%);
  border: 1px solid rgba(255, 60, 172, 0.2);
  border-radius: var(--card-radius);
  padding: 16px;
  text-align: center;
}

.lottery-pool-title {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lottery-pool-value {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0;
  color: #ff3cac;
  text-shadow: 0 0 10px rgba(255, 60, 172, 0.3);
}

.lottery-balls-row {
  display: flex;
  gap: 12px;
  margin: 15px 0;
  justify-content: center;
}

.lottery-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #e2e2e2 50%, #8c8c8c 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: roll-in 0.5s ease-out;
}

.lottery-ball.active-pick {
  background: radial-gradient(circle at 30% 30%, #ffd0ff 0%, #ff3cac 70%, #8c0c4c 100%);
  color: #fff;
}

.lottery-numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.number-picker-btn {
  background: var(--panel-bg);
  border: var(--panel-border);
  color: var(--text-primary);
  border-radius: 10px;
  aspect-ratio: 1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.number-picker-btn.selected {
  background: #ff3cac;
  color: #fff;
  border-color: #ff3cac;
  box-shadow: 0 0 10px rgba(255, 60, 172, 0.4);
}

.lottery-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2b86c5 0%, #ff3cac 100%);
  color: #fff;
  border: none;
  border-radius: var(--button-radius);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(255, 60, 172, 0.3);
  transition: var(--transition-bounce);
}

.lottery-submit-btn:disabled {
  background: #333;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}

/* ==========================================================================
   TAB: MISSIONS PAGE
   ========================================================================== */
.missions-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mission-tab-btn {
  background: var(--panel-bg);
  border: var(--panel-border);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mission-tab-btn.active {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-color);
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-item {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.mission-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mission-name {
  font-size: 12px;
  font-weight: 600;
}

.mission-reward {
  font-size: 10px;
  color: var(--accent-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mission-btn {
  background: var(--panel-bg-solid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.mission-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mission-btn.verifying {
  background: rgba(243, 186, 47, 0.05);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.mission-btn.completed {
  border-color: var(--green-color);
  background: rgba(14, 203, 129, 0.05);
  color: var(--green-color);
  cursor: default;
}

/* ==========================================================================
   TAB: LEADERBOARD PAGE
   ========================================================================== */
.leaderboard-search {
  margin-bottom: 12px;
  position: relative;
}

.leaderboard-search-input {
  width: 100%;
  background: var(--panel-bg);
  border: var(--panel-border);
  color: #fff;
  border-radius: var(--button-radius);
  padding: 10px 14px 10px 36px;
  font-size: 12px;
  outline: none;
  font-family: var(--font-body);
}

.leaderboard-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 12px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-rank {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  width: 24px;
  text-align: center;
  color: var(--text-secondary);
}

.leaderboard-row.rank-1 .leaderboard-rank { color: #ffd700; font-size: 16px; }
.leaderboard-row.rank-2 .leaderboard-rank { color: #c0c0c0; font-size: 16px; }
.leaderboard-row.rank-3 .leaderboard-rank { color: #cd7f32; font-size: 16px; }

.leaderboard-row.my-rank {
  border-color: var(--accent-color);
  background: rgba(243, 186, 47, 0.04);
}

.leaderboard-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-bg-solid);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-user {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.leaderboard-score {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-color);
}

/* ==========================================================================
   WEB3 WALLET MODAL
   ========================================================================== */
.wallet-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.wallet-modal {
  width: 100%;
  background: #0d1117;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  border-top: var(--panel-border);
  padding: 20px;
  animation: slide-up 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-modal-title {
  font-size: 14px;
  font-weight: 700;
}

.wallet-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.wallet-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-option-item {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wallet-option-item:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
}

.wallet-option-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.wallet-option-name {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

/* Simulated QR Modal */
.qr-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  width: 100%;
  height: 100%;
}

.qr-status-text {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* UI Alert Toast */
.ui-toast {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 22, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.ui-toast.success { border-color: var(--green-color); }
.ui-toast.error { border-color: var(--red-color); }

/* ==========================================================================
   TRANSITION AND ZOOM STATES
   ========================================================================== */
body.app-mode {
  overflow: hidden;
}

body.app-mode #landing-view {
  display: none !important;
}

/* Sunburst Ray Background */
.sunburst-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 250vmax;
  height: 250vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    #080a0d 0deg 6deg,
    #11151c 6deg 12deg
  );
  z-index: -2;
  animation: rotate-sunburst 240s linear infinite;
  pointer-events: none;
  opacity: 0.95;
}

@keyframes rotate-sunburst {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Background Coins Pile */
.landing-coins-pile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

body.app-mode .landing-coins-pile {
  opacity: 0.12;
}

.bg-coin {
  position: absolute;
  background-image: url('duck_mascot.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 3px solid #000;
  outline: 1.5px solid #ffd250;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  will-change: transform;
}

.float-coin {
  animation: float-drift 25s infinite ease-in-out alternate;
}

@keyframes float-drift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) translateX(12px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.pile-coin {
  animation: slide-up-coin 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  transform: translateY(180px) rotate(var(--rot)) scale(0.6);
  opacity: 0;
}

@keyframes slide-up-coin {
  to { transform: translateY(0) rotate(var(--rot)) scale(1); opacity: 1; }
}

/* Simulator Overlay Wrapper */
.simulator-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  animation: sim-fade-in 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

body.app-mode .simulator-wrapper {
  display: flex;
}

@keyframes sim-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.back-to-landing-btn {
  display: none;
}

body.app-mode .back-to-landing-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1005;
  background: var(--panel-bg);
  border: var(--panel-border);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.app-mode .back-to-landing-btn:hover {
  background: var(--accent-gradient);
  color: #000;
  border-color: var(--accent-color);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float-around {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, 20px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-up-fade {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes roll-in {
  from { transform: translateY(-40px) rotate(-180deg); opacity: 0; }
  to { transform: translateY(0) rotate(0deg); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  20%, 60% { transform: translate(-54%, -50%); }
  40%, 80% { transform: translate(-46%, -50%); }
}

/* ==========================================================================
   RESPONSIVE DESIGN RULES
   ========================================================================== */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-left h1 {
    font-size: 40px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .live-stats {
    margin-left: auto;
    margin-right: auto;
  }
}

/* When App Mode is activated on Mobile Viewport, make it fill the screen completely (no frame) */
@media (max-width: 480px) {
  /* Landing Header Mobile Adjustments */
  header.landing-header {
    margin-bottom: 24px;
    padding: 0 4px;
  }
  
  .brand-logo {
    gap: 6px;
  }
  
  .brand-logo img {
    height: 32px;
    width: 32px;
  }
  
  .brand-logo span {
    font-size: 16px;
  }
  
  .header-right {
    gap: 6px;
  }
  
  .header-social-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  
  .landing-connect-btn {
    padding: 8px 12px;
    font-size: 10.5px;
    border-radius: 16px;
  }

  /* Landing Hero Mobile Adjustments */
  .hero-content {
    padding: 20px 10px 110px 10px;
  }

  .hero-left h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 5px;
  }

  /* Stack CTA Buttons Vertically */
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 10px;
    margin: 0 auto 24px auto;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
  }

  /* Centered Stats Container Mobile Adjustments */
  .live-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px 12px;
    margin: 10px auto 0 auto;
    max-width: 100%;
  }

  .stat-val {
    font-size: 14px;
  }

  .stat-lbl {
    font-size: 9px;
    margin-top: 2px;
  }

  /* Simulator Phone Mobile Styling */
  .simulator-wrapper {
    background: #0b0d10;
  }
  
  .phone-mockup {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }

  .phone-notch {
    display: none;
  }

  .phone-status-bar {
    padding-top: 18px;
    height: 44px;
  }

  body.app-mode .back-to-landing-btn {
    top: auto;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }
}
