/* ── Çark ── */
.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 4px; }
.wheel { position: relative; width: min(360px, 84vw); aspect-ratio: 1; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.wheel-svg { width: 100%; height: 100%; display: block; }
.wheel-disc { transform-origin: 100px 100px; transform-box: view-box; will-change: transform; }
.wheel-text { font-family: var(--font-display); font-size: 9.5px; fill: #fff; letter-spacing: 0.03em; paint-order: stroke; stroke: rgba(0, 0, 0, 0.35); stroke-width: 0.8px; }
.wheel-text.big { fill: #fde68a; font-size: 10.5px; }
.wheel-pointer {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fbbf24;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}
.wheel-btn { min-width: 220px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2a1a00; font-weight: 800; }
.wheel-btn:disabled { background: var(--surface-2); color: var(--muted); }
.wheel-stage.won .wheel { animation: wheel-win 0.9s ease-in-out 2; }
@keyframes wheel-win { 50% { filter: drop-shadow(0 0 34px rgba(251, 191, 36, 0.85)); } }
.wheel-info { text-align: center; margin: 4px 0 16px; }
.wheel-left { margin: 0; color: var(--muted); font-size: 14px; }
.wheel-left b { color: #fff; }
.wheel-row { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wheel-row:last-child { border-bottom: 0; }
.num.plus { color: #86efac; font-weight: 700; }

/* ── Kod gir ── */
.promo-form { max-width: 520px; margin: 0 auto 14px; display: flex; flex-direction: column; gap: 10px; }
.promo-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.promo-input { height: 58px; text-align: center; font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.promo-input::placeholder { letter-spacing: 0.08em; font-size: 16px; font-weight: 500; }
.promo-ok { padding: 10px 12px; border-radius: 12px; background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.4); color: #bbf7d0; font-weight: 700; text-align: center; }
.promo-ok[hidden] { display: none; }

/* ── Ana sayfa kısayolları ── */
.hub-quick { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; }
.hub-quick a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); color: #fff; font-weight: 700; font-size: 14px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.hub-quick a:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.hub-quick a svg { width: 18px; height: 18px; color: var(--gold); }
.hub-quick a.hot { background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.14)); border-color: rgba(251, 191, 36, 0.55); }
@media (prefers-reduced-motion: reduce) { .wheel-stage.won .wheel { animation: none; } }

/* ── Görevler ── */
.task-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.task-summary:empty { display: none; }
.ts-cell { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ts-cell b { font-size: 26px; line-height: 1.1; color: var(--gold); }
.ts-cell span { font-size: 12.5px; color: var(--muted); }
.task-group { margin-bottom: 22px; }
.task-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.task-group-head h2 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.task-group-head span { font-size: 12px; color: var(--muted-2); }
.task-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .task-list { grid-template-columns: 1fr 1fr; } }
.task-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.task-card.ready { border-color: rgba(251, 191, 36, 0.6); background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), var(--surface) 60%); }
.task-card.claimed { opacity: 0.62; }
.task-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.22); color: var(--accent-2); }
.task-icon svg { width: 22px; height: 22px; }
.task-card.ready .task-icon { background: rgba(251, 191, 36, 0.22); color: var(--gold); }
.task-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.task-title { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: #fff; }
.task-desc { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.task-progress { height: 6px; margin-top: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.task-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s var(--ease); }
.task-card.ready .task-progress i, .task-card.claimed .task-progress i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.task-count { margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-points { font-size: 16px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.task-side .btn { height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.task-claim { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2a1a00; font-weight: 800; }
.task-done, .task-wait { display: inline-flex; align-items: center; gap: 5px; height: 36px; font-size: 13px; font-weight: 700; color: #86efac; }
.task-done svg { width: 16px; height: 16px; }
.task-wait { color: var(--muted-2); }

/* ── Biletler (çekilişler) ── */
.raffle-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rf-section { margin: 26px 0 12px; font-size: 16px; font-weight: 800; color: #fff; }
.raffle-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; transition: transform 0.2s var(--ease), border-color 0.2s; }
.raffle-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.raffle-card.drawn .rf-art { filter: saturate(0.5); }
.rf-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #7c3aed, #db2777 55%, #f59e0b); overflow: hidden; }
.rf-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-art-ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.rf-art-ph svg { width: 34%; height: auto; max-width: 96px; }
.rf-badge { position: absolute; top: 10px; left: 10px; background: rgba(10, 4, 24, 0.78); color: #fde047; backdrop-filter: blur(6px); }
.rf-badge.done { color: #d4d4d8; }
.rf-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.rf-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
.rf-prize { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--gold); font-weight: 600; }
.rf-prize.big { font-size: 16px; }
.rf-sold { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.rf-sold .task-progress { margin-top: 0; }
.rf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rf-cost b { font-size: 16px; color: #fff; }
.rf-mine { font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.rf-mine.won { color: #86efac; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.back-link:hover { color: #fff; }
.back-link svg { width: 18px; height: 18px; }
.raffle-detail { display: grid; gap: 14px; max-width: 880px; }
.raffle-detail .panel { margin: 0; }
.rf-hero { display: grid; gap: 16px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.rf-hero-text { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 18px; min-width: 0; }
.rf-hero-text .display { margin: 0; font-size: 32px; line-height: 1.15; color: #fff; }
@media (min-width: 760px) {
  .rf-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .rf-hero .rf-art { height: 100%; min-height: 240px; aspect-ratio: auto; }
  .rf-hero-text { padding: 20px 20px 20px 4px; }
}
.rf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rf-facts div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.rf-facts span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.rf-facts b { font-size: 13.5px; color: #fff; overflow-wrap: anywhere; }
.rf-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.rf-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.rf-step { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.1); }
.rf-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.rf-step:disabled { opacity: 0.35; }
.rf-qty { min-width: 46px; text-align: center; font-size: 22px; color: #fff; }
.rf-total { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; color: var(--muted); }
.rf-total b { font-size: 22px; color: var(--gold); }
.rf-buy-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.rf-buy-note.warn { color: #fca5a5; }
.rf-buy-btn { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2a1a00; font-weight: 800; }
.rf-buy-btn:disabled { background: var(--surface-2); color: var(--muted); }
.rf-earn { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-2); }
.rf-tickets { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-ticket { padding: 5px 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.08); border: 1px dashed var(--line-strong); color: #fff; }
.rf-ticket.won { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.6); color: #bbf7d0; }
.rf-rank { color: var(--gold); }
.rf-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); white-space: pre-line; }
.rf-note { margin: 0; }
/* Dar ekranda puan ve düğme kartın altına iner, başlık sıkışmaz */
@media (max-width: 520px) {
  .task-card { grid-template-columns: 44px minmax(0, 1fr); }
  .task-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
}
