/* === Hani brand theme (honey + cocoa) === */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
}
:root {
  --bg: #FFF4D2;      /* پس‌زمینه عسلی روشن */
  --card: #FFEAB2;    /* کارت کرمی */
  --text: #4A2E1A;    /* قهوه‌ای تیره (متن) */
  --muted: #7A5A3C;
  --stroke: #D9C08B;  /* خط دور کارت */
  --accent: #8B5D2B;  /* دکمه TAP (کاکائویی) */
  --accent-2: #F0B84D;/* های‌لایت عسلی */
  --track: #EFD899;   /* زمینه نوار انرژی */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
.wrap {
  width: min(560px, 94vw);
  padding: 24px;
}

/* هدر فقط عنوان داشته باشه، لوگو رو مخفی کن */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 12px;
}
.header h1 {
  margin: 0;
  font-size: 28px;
  text-align: center;
}
.header img.brand-logo {
  display: none !important;  /* دیگه لوگو در هدر نمی‌خوایم */
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(139, 93, 43, .10);
}

.stats {
  display: flex;
  gap: 18px;
  margin: 6px 0 14px 0;
  opacity: .95;
}

.energy {
  height: 12px;
  background: var(--track);
  border: 1px solid rgba(122, 90, 60, .35);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
#energyBar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F6D56B, var(--accent-2));
}

button {
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

/* دکمه TAP به شکل لوگو */
#tapBtn {
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  padding: 6px 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#tapBtn img {
  height: clamp(140px, 32vw, 240px);
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(139, 93, 43, .20));
  transition: transform .08s ease, filter .12s ease, opacity .12s ease;
}
#tapBtn:not(.disabled):hover img { transform: translateY(-1px) scale(1.01); }
#tapBtn:not(.disabled):active img { transform: scale(.97); }
#tapBtn.disabled { cursor: default; }
#tapBtn.disabled img {
  opacity: .45;
  filter: grayscale(15%) drop-shadow(0 4px 12px rgba(0,0,0,.06));
}

/* کمی فاصله تا دکمه‌های پایین */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.actions button {
  background: #EFD9A8;
  color: var(--text);
  flex: 1;
  border: 1px solid rgba(122,90,60,.25);
}
.actions button:disabled {
  opacity: .45;
  filter: saturate(.7);
}

.small { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* وقتی انرژی صفر است ولی می‌خوای clickable بمونه */
#tapBtn.disabled img {
  opacity: .45;
  filter: grayscale(12%) drop-shadow(0 4px 12px rgba(0,0,0,.06));
}

/* انیمیشن خطای انرژی */
@keyframes tap-shake {
  0% { transform: translateY(0) }
  25% { transform: translateY(-2px) }
  50% { transform: translateY(0) }
  75% { transform: translateY(-1px) }
  100% { transform: translateY(0) }
}
#tapBtn.shake img { animation: tap-shake .25s ease; }

/* --- TAP must-click overrides --- */
#tapBtn,
#tapBtn * {
  pointer-events: auto !important;  /* خود دکمه و محتواش کلیک‌پذیر */
  touch-action: manipulation;       /* تاخیر 300ms موبایل حذف شود */
}

#tapBtn {
  position: relative;
  z-index: 9999;                    /* بالای هر چیزی */
}

.fx-layer, .cover, .intro, .modal-backdrop, #overlay {
  pointer-events: none !important;  /* لایه‌های تمام‌صفحه کلیک نخورند */
}

/* اگر قبلاً از :disabled برای استایل استفاده می‌کردی، به کلاس تغییر بده */

#tapBtn.disabled img {
  opacity: .45;
  filter: grayscale(12%) drop-shadow(0 4px 12px rgba(0,0,0,.06));
}
