/* صفحه‌های اعضا: خانه، هاب (گردونه بالا، بازی‌ها پایین)، گردونه، تورنمنت، مسابقه، ورودی و لیگ.
   رنگ‌ها فقط از متغیرهای base.css تا تم‌های برند همه‌جا اعمال شوند. */

.pname { unicode-bidi: plaintext; }
.chev { color: var(--accent); font-size: 22px; line-height: 1; flex: 0 0 auto; opacity: .8; }

/* ---------- چیپ‌ها ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px;
  font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip.gold { color: var(--accent); border-color: var(--line-strong); background: rgba(212, 175, 55, .08); }
.chip.ok { color: #b9dcae; border-color: rgba(127, 174, 108, .45); background: rgba(127, 174, 108, .08); }
.chip.pulse { animation: chip-pulse 1.6s ease-in-out infinite; }
@keyframes chip-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .0); } 50% { box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); } }

/* ---------- خانه ---------- */
.home-hero { text-align: center; padding: 10px 0 2px; }
.crest {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff3c8, var(--accent) 45%, var(--accent-2) 75%, #5e4614);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-strong), 0 10px 26px rgba(0, 0, 0, .5);
  color: var(--accent-ink); font-size: 28px; font-weight: 900;
}
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .12s, transform .1s;
}
.chat-card:hover { border-color: var(--line-strong); }
.chat-card:active { transform: scale(.985); }
.home-tools { margin-top: 18px; }

/* ---------- هاب ---------- */
.hub-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.hub-head .h2 { line-height: 1.35; }
.wheels-more { margin: 10px 0 0; }
.wheels-more .chip { text-decoration: none; }

/* ---------- صحنه‌ی گردونه ---------- */
.wheel-stage {
  position: relative; border-radius: 22px; padding: 18px 16px 16px; overflow: hidden;
  background:
    radial-gradient(420px 260px at 50% 30%, rgba(212, 175, 55, .13), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.wheel-stage::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 17px; pointer-events: none;
}
.wheel-wrap { position: relative; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 1; }
.wheel-stage.big .wheel-wrap { width: min(100%, 440px); }
.wheel-canvas { position: relative; width: 100%; height: 100%; display: block; z-index: 1; }
.wheel-halo {
  position: absolute; inset: -8%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, .22), rgba(212, 175, 55, 0) 62%);
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.02); } }
.wheel-sound {
  position: absolute; z-index: 3; bottom: 2%; left: 2%; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .55); cursor: pointer; font-size: 16px; line-height: 1;
}
.wheel-banner {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 62%; max-width: 92%;
  text-align: center; padding: 12px 18px; border-radius: 16px;
  background: rgba(11, 10, 8, .9); border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, .15), var(--shadow);
}
.wheel-banner .lbl { color: var(--accent); font-weight: 800; font-size: 13px; }
.wheel-banner .who { font-size: 20px; font-weight: 900; color: var(--accent-3); unicode-bidi: plaintext; }
.wheel-banner.pop { animation: banner-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes banner-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.wheel-info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.wi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wi-title { font-size: 19px; font-weight: 900; min-width: 0; }
.wi-count { color: var(--muted); font-size: 14px; }
.wi-count b { color: var(--text); }
.wi-count .dot { margin: 0 6px; color: var(--faint); }
.wi-me {
  padding: 9px 12px; border-radius: 12px; background: rgba(127, 174, 108, .1); border: 1px solid rgba(127, 174, 108, .4);
  color: #cfe6c6; font-weight: 600; font-size: 14px;
}
.wi-me b { color: var(--accent-3); font-size: 16px; }
.wi-link { align-self: center; font-size: 13px; font-weight: 700; color: var(--accent); padding: 2px 6px; }
.winners { display: flex; flex-direction: column; gap: 6px; }
.winner {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--line-strong); animation: winner-in .35s ease-out;
}
.winner.me { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.winner .medal { font-size: 20px; }
@keyframes winner-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
canvas.confetti { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }

/* ---------- کاشیِ بازی‌ها ---------- */
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius); position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tile.tap { cursor: pointer; transition: border-color .12s, transform .1s; }
.tile.tap:hover { border-color: var(--line-strong); }
.tile.tap:active { transform: scale(.985); }
.tile.mine { border-color: var(--line-strong); }
.tile.turn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12), var(--shadow); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 35% 30%, var(--surface-3), var(--bg-2)); border: 1px solid var(--line-strong);
}
.tile-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tile-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tile-title { font-weight: 800; font-size: 15px; min-width: 0; }
.tile-sub { color: var(--muted); font-size: 12.5px; }
.w-inline { font-size: 13px; color: var(--accent-3); }

/* ---------- لیگ ---------- */
.league-card { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-row.me { background: rgba(212, 175, 55, .07); border-radius: 10px; padding-inline: 8px; }
.rank-row .rk { width: 30px; text-align: center; font-weight: 900; color: var(--accent); flex: 0 0 auto; font-size: 16px; }
.rank-row .st { font-weight: 800; white-space: nowrap; }
.delta { font-size: 11.5px; font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 6px 0 14px; }
.pod { text-align: center; min-width: 0; }
.pod .medal { font-size: 30px; line-height: 1.2; }
.pod.r1 .medal { font-size: 40px; }
.pod-name { font-weight: 800; font-size: 14px; }
.pod-base {
  margin-top: 6px; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-weight: 900; font-size: 22px;
  color: var(--accent-ink); background: var(--gold-grad); height: 54px;
}
.pod.r1 .pod-base { height: 78px; font-size: 28px; }
.pod.r3 .pod-base { height: 40px; }
.pod.me .pod-name { color: var(--accent); }

/* ---------- شرکت‌کننده‌ها ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.pchip {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line); min-width: 0; font-size: 13.5px;
}
.pchip.me { border-color: var(--accent); color: var(--accent-3); }

/* ---------- کارتِ اصلیِ تورنمنت/ورودی ---------- */
.hero-card { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.emblem {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 36px;
  background: radial-gradient(circle at 35% 30%, var(--surface-3), var(--bg)); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, .1), 0 10px 26px rgba(0, 0, 0, .5);
}
.hero-kind { font-weight: 800; color: var(--accent-3); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hstat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px; }
.hstat .v { font-size: 18px; font-weight: 900; }
.hstat .k { color: var(--muted); font-size: 11.5px; }
.cta-done {
  padding: 11px 14px; border-radius: 12px; background: rgba(127, 174, 108, .1); border: 1px solid rgba(127, 174, 108, .4);
  color: #cfe6c6; font-weight: 700;
}
.play-box {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px dashed var(--line-strong);
}
.pb-icon { font-size: 26px; flex: 0 0 auto; }
.admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px;
  padding: 10px 12px; border-radius: var(--radius); background: rgba(224, 166, 74, .06); border: 1px solid rgba(224, 166, 74, .35);
}

/* ---------- مسابقه‌های راندِ جاری ---------- */
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer;
}
.mrow.live { border-color: rgba(224, 166, 74, .45); }
.mrow.mine { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.mrow .ms { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mrow .ms:last-child { justify-content: flex-end; }
.mrow .ms.win { color: var(--accent-3); font-weight: 800; }
.mrow .ms.lose { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .15); }
.mrow .tick { color: var(--ok); font-weight: 900; font-size: 13px; }
.mscore { font-weight: 900; color: var(--accent); min-width: 54px; text-align: center; }
.score { display: inline-flex; align-items: center; gap: 6px; }
.score i { font-style: normal; opacity: .5; font-weight: 400; }
.round-sub { margin: -6px 0 10px; }

/* ---------- قهرمان ---------- */
.champion { text-align: center; margin-top: 12px; }
.champion .crown { font-size: 44px; animation: crown 2.4s ease-in-out infinite; }
@keyframes crown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- جدولِ حذفی ---------- */
.bracket { display: flex; gap: 22px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.bcol { flex: 0 0 180px; scroll-snap-align: start; display: flex; flex-direction: column; }
.bhead { height: 28px; text-align: center; color: var(--accent); font-weight: 800; font-size: 13px; white-space: nowrap; }
.bslots { display: flex; flex-direction: column; }
.bpair { position: relative; display: flex; flex-direction: column; }
.bpair::after {
  content: ""; position: absolute; left: -11px; width: 11px; top: 25%; bottom: 25%;
  border: 1px solid var(--line-strong); border-right: 0; border-radius: 8px 0 0 8px; pointer-events: none;
}
.bcell { position: relative; height: calc(var(--u, 1) * 84px); display: flex; align-items: center; }
.bcol.fed .bcell::before {
  content: ""; position: absolute; right: -11px; width: 11px; top: 50%; border-top: 1px solid var(--line-strong);
}
.bm {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px;
}
.bm[role="button"] { cursor: pointer; }
.bm.mine { border-color: var(--accent); }
.bm.live { border-color: rgba(224, 166, 74, .55); }
.bm.bye { opacity: .7; }
.bs { display: flex; justify-content: space-between; gap: 6px; padding: 4px 9px; min-width: 0; }
.bs + .bs { border-top: 1px solid var(--line); }
.bs.win { background: rgba(212, 175, 55, .12); color: var(--accent-3); font-weight: 800; }
.bs.lose { color: var(--faint); }

/* ---------- مسابقه ---------- */
.arena.live { border-color: rgba(224, 166, 74, .45); }
.arena-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fighter { text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.f-avatar {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  font-weight: 900; color: var(--accent); background: radial-gradient(circle at 35% 30%, var(--surface-3), var(--bg));
  border: 2px solid var(--line-strong);
}
.fighter.me .f-avatar { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, .14); }
.fighter.win .f-avatar { border-color: var(--accent); background: var(--gold-grad); color: var(--accent-ink); }
.fighter.lose { opacity: .55; }
.f-crown { position: absolute; top: -18px; font-size: 20px; }
.f-name { font-weight: 800; max-width: 100%; font-size: 14px; }
.f-you { font-size: 11px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 0 8px; }
.f-state { font-size: 11.5px; color: var(--muted); }
.f-state.ok { color: var(--ok); font-weight: 700; }
.arena-mid { text-align: center; }
.a-score { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 38px; font-weight: 900; line-height: 1.1; }
.a-score span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-score i { font-style: normal; color: var(--faint); font-size: 28px; font-weight: 400; }
.a-pips { display: flex; justify-content: center; gap: 12px; margin: 6px 0 4px; }
.pips { display: flex; gap: 4px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-2); }
.pips i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px rgba(212, 175, 55, .6); }
.a-timer { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.a-timer .num { color: var(--warn); font-weight: 800; }
.spect { color: var(--muted); }
.chosen { text-align: center; }
.chosen-move { font-size: 64px; line-height: 1.2; animation: chosen-in .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes chosen-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); margin-top: 8px; }
.waiting .spinner { width: 16px; height: 16px; border-width: 2px; }
.pick .h3 { margin-bottom: 2px; }
.rps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.rps-btn {
  border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, var(--surface-3), var(--bg-2));
  color: var(--text); border-radius: 18px; padding: 14px 6px 10px; cursor: pointer; font-weight: 800;
  transition: transform .1s, border-color .12s, box-shadow .12s;
}
.rps-btn .e { font-size: 42px; line-height: 1.15; }
.rps-btn .l { font-size: 13.5px; color: var(--muted); }
.rps-btn:hover { border-color: var(--accent); }
.rps-btn:active { transform: scale(.94); box-shadow: 0 0 0 4px rgba(212, 175, 55, .2); }
.throw { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.throw-emoji { font-size: 52px; line-height: 1.2; }
.result { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.result .r-icon { font-size: 48px; }
.result.won { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, .12), var(--shadow); }
.hands { display: flex; flex-direction: column; }
.hand {
  display: grid; grid-template-columns: 26px 1fr auto 1fr minmax(0, 96px); gap: 8px; align-items: center; padding: 8px 2px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.hand:last-child { border-bottom: 0; }
.hn { color: var(--faint); text-align: center; }
.hm { text-align: center; color: var(--muted); }
.hm.w { color: var(--accent-3); font-weight: 800; }
.hvs { color: var(--faint); }
.hr { color: var(--accent); font-weight: 700; text-align: left; }
.note { margin-top: 12px; }

/* ---------- رونمایی از دست ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); animation: fade-in .18s ease-out; padding: 16px;
}
.reveal.out { opacity: 0; transition: opacity .35s; }
.rv-row { display: flex; align-items: center; gap: 12px; }
.rv-card {
  position: relative; width: 128px; padding: 14px 8px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); transition: transform .3s, opacity .3s, box-shadow .3s, border-color .3s;
}
.rv-card.a { animation: slide-a .35s ease-out backwards; }
.rv-card.b { animation: slide-b .35s ease-out backwards; }
.rv-card.shake .rv-move { animation: pump .36s ease-in-out 3; transform-origin: 50% 80%; }
.rv-card.shown .rv-move { animation: flip-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.rv-card.w { border-color: var(--accent); transform: scale(1.06); box-shadow: 0 0 0 4px rgba(212, 175, 55, .22), 0 0 34px rgba(212, 175, 55, .35); }
.rv-card.l { opacity: .5; transform: scale(.94); }
.rv-move { font-size: 58px; line-height: 1.15; min-height: 67px; }
.rv-label { font-weight: 800; color: var(--accent-3); min-height: 1.5em; }
.rv-name { color: var(--muted); font-size: 13px; }
.rv-plus {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); opacity: 0; font-weight: 900; font-size: 22px;
  color: var(--accent-ink); background: var(--gold-grad); border-radius: 99px; padding: 0 10px;
}
.rv-card.w .rv-plus { animation: plus-up 1s .25s ease-out both; }
.rv-vs { font-size: 22px; }
.rv-chant { font-size: 18px; font-weight: 900; color: var(--accent-3); transition: opacity .2s; min-height: 1.6em; }
.rv-chant.gone { opacity: 0; }
.rv-res { font-size: 20px; font-weight: 900; text-align: center; min-height: 1.6em; opacity: 0; }
.rv-res.in { animation: rise .4s ease-out both; }
.a-score span.pop { display: inline-block; animation: score-pop .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pump { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-12deg); } }
@keyframes slide-a { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-b { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flip-in { from { transform: perspective(600px) rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plus-up { 0% { opacity: 0; transform: translate(-50%, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes score-pop {
  0% { transform: scale(1); filter: none; } 40% { transform: scale(1.7); filter: drop-shadow(0 0 12px rgba(212, 175, 55, .9)); }
  100% { transform: scale(1); filter: none; }
}

@media (max-width: 380px) {
  .a-score { font-size: 32px; }
  .f-avatar { width: 52px; height: 52px; font-size: 20px; }
  .rv-card { width: 112px; }
  .hand { grid-template-columns: 22px 1fr auto 1fr minmax(0, 76px); gap: 6px; }
}

/* ---------- خانه ---------- */
.home-hero2 {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 18px 20px; margin-bottom: 4px; min-height: 190px;
  background: radial-gradient(420px 220px at 15% 0%, rgba(212, 175, 55, .22), transparent 70%),
    linear-gradient(160deg, #1f1a10, #0e0c08 70%);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.hh-glow { position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .25), transparent 65%); }
.hh-cards { position: absolute; left: 10px; top: 34px; width: 130px; height: 130px; }
.hh-cards .hc { position: absolute; width: 60px; border-radius: 7px; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); transform-origin: 50% 110%; }
.hh-cards .hc0 { left: 8px; top: 18px; transform: rotate(-16deg); }
.hh-cards .hc1 { left: 30px; top: 6px; transform: rotate(-2deg); z-index: 1; }
.hh-cards .hc2 { left: 54px; top: 18px; transform: rotate(13deg); z-index: 2; animation: hc-float 4s ease-in-out infinite; }
@keyframes hc-float { 0%, 100% { transform: rotate(13deg) translateY(0); } 50% { transform: rotate(15deg) translateY(-6px); } }
.hh-text { position: relative; z-index: 3; max-width: 60%; margin-inline-start: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-text .h1 { font-size: 22px; line-height: 1.4; }
.make-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.make-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer;
  padding: 16px 10px 14px; border-radius: 18px; border: 1px solid var(--line-strong);
  background: radial-gradient(160px 120px at 50% 0%, rgba(212, 175, 55, .16), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); transition: transform .12s, border-color .12s;
}
.make-card:active { transform: scale(.97); }
.make-card:hover { border-color: var(--accent); }
.mk-card { width: 54px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); margin-bottom: 6px; transform: rotate(-6deg); }
.mk-title { font-weight: 900; font-size: 16px; color: var(--accent-3); }
.mk-sub { color: var(--muted); font-size: 12px; }
.mk-go { margin-top: 8px; padding: 4px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; color: var(--accent-ink); background: var(--gold-grad); }
.home-tools { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.tool-link { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- خانه (طرحِ داشبورد) ---------- */
.app-page { padding-bottom: 86px; }
.hm-top { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 12px; }
.hm-name { font-weight: 900; font-size: 19px; }
.hm-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--accent-ink); background: var(--gold-grad); }
.hm-cont { position: relative; overflow: hidden; cursor: pointer; border-radius: 22px; padding: 18px; margin-bottom: 6px;
  background: linear-gradient(135deg, #3a2c0f, #17130c 70%); border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, .1), var(--shadow); }
.hm-cc { position: absolute; left: 14px; top: 20px; width: 110px; height: 110px; }
.hm-cc img { position: absolute; width: 58px; border-radius: 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .6); }
.hm-cc img:first-child { transform: rotate(-12deg); } .hm-cc img:last-child { left: 34px; top: 8px; transform: rotate(9deg); }
.hm-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #f1c98a; }
.hm-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s infinite; }
.hm-ct { font-size: 21px; font-weight: 900; margin: 6px 0 2px; }
.hm-sc { font-size: 28px; font-weight: 900; margin: 4px 0; }
.hm-go { display: inline-block; margin-top: 8px; padding: 9px 22px; border-radius: 12px; font-weight: 900; color: var(--accent-ink); background: var(--gold-grad); }
.hm-h { margin: 20px 2px 10px; font-weight: 900; font-size: 16px; }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-g { position: relative; min-height: 148px; border-radius: 18px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(180deg, #221d14, #15120d); border: 1px solid rgba(212, 175, 55, .3); transition: transform .1s, border-color .12s; }
.hm-g:active { transform: scale(.97); } .hm-g:hover { border-color: var(--accent); }
.hm-g b { font-size: 16px; }
.hm-gi { position: absolute; top: 12px; right: 14px; width: 44px; border-radius: 5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.hm-ge { position: absolute; top: 8px; right: 12px; font-size: 40px; }
.hm-tag { position: absolute; top: 12px; left: 12px; font-size: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(212, 175, 55, .15); color: var(--accent); }
.hm-hist { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.hm-r { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.hm-r:last-child { border-bottom: 0; }
.hm-r .w { color: var(--ok); font-weight: 900; white-space: nowrap; } .hm-r .l { color: var(--danger); font-weight: 900; white-space: nowrap; }
.bnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-around;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 10px); background: rgba(14, 12, 9, .97); border-top: 1px solid var(--line); }
.bn { text-align: center; font-size: 11px; color: var(--faint); min-width: 64px; }
.bn b { display: block; font-size: 20px; line-height: 1.3; filter: grayscale(.6); }
.bn.on { color: var(--accent); } .bn.on b { filter: none; }
/* گردونه‌ی من */
.wm-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.wm-row { display: grid; grid-template-columns: 1fr auto 42px 30px; gap: 6px; align-items: center; }
.wm-row .input { min-height: 42px; padding: 8px 10px; }
.wm-w { display: flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.wm-w button { width: 30px; height: 34px; border: 0; background: var(--surface-3); border-radius: 8px; color: var(--accent); font-weight: 900; cursor: pointer; }
.wm-w span { min-width: 32px; text-align: center; font-weight: 800; font-size: 13px; }
.wm-p { color: var(--muted); font-size: 12px; text-align: center; }
.wm-x { border: 0; background: transparent; color: var(--faint); font-size: 16px; cursor: pointer; }
