/* CCSA Natal Midlands v55.12.64 — member raffles and secure Admin workspace. */

.raffles-page {
  display: grid;
  gap: 18px;
  padding: 18px 16px 104px;
}

.raffles-page-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 30%, var(--surface)), var(--surface));
}

.raffles-intro {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 13%, var(--surface-raised)), var(--surface));
  box-shadow: var(--card-shadow);
}

.raffles-intro.compact { grid-template-columns: 82px 1fr; }
.raffles-intro img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.raffles-intro span,
.raffle-card-top span,
.raffle-detail-copy > span,
.raffle-section-heading span,
.raffle-entry-heading span,
.raffle-admin-panel header span,
.raffle-admin-card > div:first-child > span,
.raffle-admin-form-heading span,
.raffle-admin-entry-heading > span,
.raffle-admin-entry-main > span {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.raffles-intro h3,
.raffle-card h3,
.raffle-detail-card h3,
.raffle-section-heading h3,
.raffle-entry-card h3,
.raffle-admin-card h3,
.raffle-admin-form h3,
.raffle-admin-entry h3 {
  margin: 4px 0 7px;
  font-family: var(--font-display);
}

.raffles-intro p,
.raffle-card p,
.raffle-detail-card p,
.raffles-empty p,
.raffle-admin-card p,
.raffle-admin-entry p { margin: 0; color: var(--muted); line-height: 1.5; }

.raffles-view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.raffles-view-tabs button,
.raffles-inline-back,
.raffle-section-heading button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.raffles-view-tabs button.active { background: var(--gold); color: var(--ink); }
.raffles-view-tabs button:last-child,
.raffle-section-heading button { padding: 0 12px; background: var(--surface-raised); }
.raffles-inline-back { justify-self: start; padding: 0 12px; background: var(--surface-raised); }

.raffles-message {
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--blue) 50%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
  line-height: 1.45;
}
.raffles-message.success { border-color: color-mix(in srgb, var(--green) 65%, var(--border)); background: color-mix(in srgb, var(--green) 17%, var(--surface)); }
.raffles-message.warning { border-color: color-mix(in srgb, var(--amber) 70%, var(--border)); background: color-mix(in srgb, var(--amber) 16%, var(--surface)); }
.raffles-message.error { border-color: color-mix(in srgb, var(--rust) 70%, var(--border)); background: color-mix(in srgb, var(--rust) 17%, var(--surface)); }

.raffle-card-list,
.raffle-entry-list,
.raffle-admin-list,
.raffle-admin-entry-list { display: grid; gap: 14px; }

.raffle-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.raffle-card-image,
.raffle-detail-image {
  display: block;
  width: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: color-mix(in srgb, var(--gold) 10%, var(--surface-raised));
}
.raffle-card-image { height: clamp(260px, 30vw, 400px); }
.raffle-detail-image { height: clamp(300px, 42vw, 520px); }

.raffle-image-placeholder { display: grid; place-items: center; }
.raffle-image-placeholder img { width: 52%; height: 80%; object-fit: contain; }
.raffle-card-body { display: grid; gap: 12px; padding: 16px; }
.raffle-card-top,
.raffle-entry-heading,
.raffle-admin-entry-heading,
.raffle-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.raffle-card-top strong,
.raffle-entry-heading > strong {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 11px;
}
.raffle-card-top strong.status-open,
.raffle-entry-heading > strong.is-paid { background: color-mix(in srgb, var(--green) 24%, var(--surface)); color: color-mix(in srgb, var(--green) 35%, white); }
.raffle-entry-heading > strong.is-pending { background: color-mix(in srgb, var(--amber) 22%, var(--surface)); color: var(--gold-light); }
.raffle-entry-heading > strong.is-expired { background: var(--surface-raised); color: var(--muted); }

.raffle-card-facts,
.raffle-detail-stats,
.raffle-entry-facts,
.raffle-admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.raffle-card-facts span,
.raffle-entry-facts span,
.raffle-admin-metrics span {
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 12px;
}
.raffle-card-facts strong,
.raffle-admin-metrics strong { display: block; color: var(--cream); font-size: 16px; }

.raffle-progress { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-raised); }
.raffle-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--amber)); }

.raffles-primary,
.raffle-admin-actions button,
.raffle-admin-toolbar button,
.raffle-admin-form-actions button,
.raffle-admin-entry-actions button,
.raffle-admin-list .raffles-primary {
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--cream);
  font-weight: 800;
}
.raffles-primary,
.raffle-admin-actions button.primary,
.raffle-admin-form-actions button.primary,
.raffle-admin-entry-actions button.primary,
.raffle-admin-toolbar button:first-child { border-color: transparent; background: var(--gold); color: var(--ink); }
.raffles-primary:disabled { cursor: not-allowed; opacity: .45; }
.raffle-admin-actions button.danger,
.raffle-admin-form-actions button.danger,
.raffle-admin-entry-actions button.danger { border-color: color-mix(in srgb, var(--rust) 65%, var(--border)); color: color-mix(in srgb, var(--rust-light) 65%, white); }

.raffles-privacy-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.raffles-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); text-align: center; }
.raffles-empty img { width: 110px; }
.raffles-empty h3 { margin: 0; font-family: var(--font-display); }

.raffle-detail-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.raffle-detail-copy { display: grid; gap: 9px; padding: 17px; }
.raffle-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raffle-detail-stats div { padding: 10px; border-radius: 12px; background: var(--surface-raised); text-align: center; }
.raffle-detail-stats span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.raffle-detail-stats strong { display: block; margin-top: 4px; font-size: 14px; }

.raffle-winner { display: grid; justify-items: center; gap: 4px; padding: 20px; border: 1px solid var(--gold); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
.raffle-winner span { color: var(--gold-light); font-weight: 800; text-transform: uppercase; }
.raffle-winner strong { font-family: var(--font-display); font-size: 56px; color: var(--gold-light); }
.raffle-winner p { margin: 0; color: var(--muted); }

.raffle-number-section,
.raffle-selection-summary,
.raffle-rules,
.raffle-entry-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.raffle-number-legend { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 12px 0; color: var(--muted); font-size: 11px; }
.raffle-number-legend span { display: inline-flex; align-items: center; gap: 5px; }
.raffle-number-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--surface-raised); }
.raffle-number-legend i.available { border: 1px solid var(--border-strong); }
.raffle-number-legend i.selected { background: var(--gold); }
.raffle-number-legend i.mine { background: var(--green); }
.raffle-number-legend i.unavailable { background: color-mix(in srgb, var(--surface-raised) 70%, transparent); opacity: .45; }

.raffle-number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 7px; }
.raffle-number {
  min-width: 44px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface-raised);
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
}
.raffle-number.is-selected { border-color: var(--gold-light); background: var(--gold); color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 13px color-mix(in srgb, var(--gold) 25%, transparent); }
.raffle-number.is-mine { border-color: var(--green); background: color-mix(in srgb, var(--green) 55%, var(--surface)); color: white; opacity: 1; }
.raffle-number.is-unavailable { border-color: transparent; background: color-mix(in srgb, var(--surface-raised) 55%, transparent); color: color-mix(in srgb, var(--muted) 65%, transparent); opacity: .6; }

.raffle-selection-summary { display: grid; gap: 13px; position: sticky; bottom: 84px; z-index: 4; box-shadow: var(--shadow); }
.raffle-selection-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.raffle-selection-summary span { color: var(--muted); font-size: 12px; }
.raffle-selection-summary strong { overflow-wrap: anywhere; text-align: right; }
.raffle-hold-notice { margin: 0; color: var(--gold-light); font-size: 12px; line-height: 1.45; }
.raffle-rules summary { cursor: pointer; color: var(--gold-light); font-weight: 800; }
.raffle-rules p { white-space: pre-line; color: var(--muted); line-height: 1.55; }

.raffle-entry-card.is-winner { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.raffle-entry-card p { margin: 10px 0; }

.raffles-loading { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 180px; color: var(--muted); font-weight: 700; }
.raffles-loading span { width: 22px; height: 22px; border: 3px solid var(--border-strong); border-top-color: var(--gold); border-radius: 50%; animation: raffle-spin .8s linear infinite; }
@keyframes raffle-spin { to { transform: rotate(360deg); } }

body.raffle-admin-open { overflow: hidden; }
.raffle-admin-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 14px; }
.raffle-admin-modal[hidden] { display: none; }
.raffle-admin-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 4, 3, .76); backdrop-filter: blur(5px); }
.raffle-admin-panel { position: relative; width: min(100%, 1040px); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--bg); box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.raffle-admin-panel > header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(15px); }
.raffle-admin-panel > header h2 { margin: 3px 0 0; font-family: var(--font-display); }
.raffle-admin-panel > header button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 25px; }
.raffle-admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
#raffleAdminMessage { padding: 14px 20px 0; }
#raffleAdminRoot { padding: 16px 20px 28px; }

.raffle-admin-card,
.raffle-admin-entry,
.raffle-admin-form > section,
.raffle-admin-entry-heading {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.raffle-admin-card { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, .75fr); gap: 14px; align-items: center; }
.raffle-admin-metrics { grid-template-columns: repeat(3, 1fr); }
.raffle-admin-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.raffle-admin-winner { grid-column: 1 / -1; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--surface-raised)); }

.raffle-admin-form { display: grid; gap: 14px; margin-top: 12px; }
.raffle-admin-form-heading { margin-bottom: 13px; }
.raffle-admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.raffle-admin-form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raffle-admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.raffle-admin-form label.full { grid-column: 1 / -1; }
.raffle-admin-form input,
.raffle-admin-form select,
.raffle-admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--cream);
  font: inherit;
}
.raffle-admin-form textarea { resize: vertical; }
.raffle-admin-image-preview { width: min(100%, 460px); max-height: 280px; margin-bottom: 12px; border-radius: 14px; object-fit: contain; background: var(--surface-raised); }
.raffle-file-field { padding: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; }
.raffle-file-field small { color: var(--muted); }
.raffle-check { grid-template-columns: auto 1fr !important; align-items: start; margin-bottom: 12px; padding: 13px; border-radius: 13px; background: color-mix(in srgb, var(--amber) 12%, var(--surface-raised)); }
.raffle-check input { width: 21px; min-height: 21px; }
.raffle-admin-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }

.raffle-admin-entry { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.raffle-admin-entry.is-winner { border-color: var(--gold); }
.raffle-admin-entry-main small { color: var(--muted); }
.raffle-admin-entry-actions { display: flex; flex-direction: column; gap: 7px; min-width: 145px; }

body.raffle-wheel-open { overflow: hidden; }
.raffle-wheel-modal { position: fixed; inset: 0; z-index: 1120; display: grid; place-items: center; padding: 14px; }
.raffle-wheel-modal[hidden] { display: none; }
.raffle-wheel-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2, 8, 5, .9); backdrop-filter: blur(8px); }
.raffle-wheel-panel { position: relative; width: min(1180px, 100%); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--border-strong); border-radius: 25px; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--gold) 11%, var(--bg)), var(--bg) 60%); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.raffle-wheel-panel:fullscreen { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
.raffle-wheel-panel > header { position: sticky; top: 0; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); }
.raffle-wheel-panel > header span,
.raffle-wheel-overline,
.raffle-wheel-title span { color: var(--gold-light); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.raffle-wheel-panel > header h2,
.raffle-wheel-title h2 { margin: 3px 0 0; font-family: var(--font-display); }
.raffle-wheel-panel > header > button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--cream); font-size: 25px; }
.raffle-wheel-layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); min-height: 680px; }
.raffle-wheel-controls { display: grid; align-content: start; gap: 15px; padding: 20px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.raffle-wheel-controls h3 { margin: 4px 0 7px; font-family: var(--font-display); }
.raffle-wheel-controls p { margin: 0; color: var(--muted); line-height: 1.5; }
.raffle-wheel-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.raffle-wheel-controls select,
.raffle-wheel-controls input,
.raffle-wheel-controls textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); color: var(--cream); font: inherit; }
.raffle-wheel-controls textarea { resize: vertical; }
.raffle-wheel-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.raffle-wheel-metrics div { padding: 10px; border-radius: 12px; background: var(--surface-raised); }
.raffle-wheel-metrics span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.raffle-wheel-metrics strong { display: block; margin-top: 4px; color: var(--cream); font-size: 17px; }
.raffle-wheel-control-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.raffle-wheel-control-actions button { min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface-raised); color: var(--cream); font-weight: 800; }
.raffle-wheel-control-actions button:disabled { opacity: .5; }
.raffle-wheel-controls details { padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 12px; }
.raffle-wheel-controls summary { cursor: pointer; color: var(--gold-light); font-weight: 800; }
.raffle-wheel-controls details p { margin-top: 9px; }
.raffle-wheel-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 14px; min-width: 0; padding: 20px; overflow: hidden; }
.raffle-wheel-title { text-align: center; }
.raffle-wheel-title h2 { max-width: 720px; }
.raffle-wheel-canvas-wrap { position: relative; display: grid; place-items: center; width: min(720px, 100%); aspect-ratio: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
#raffleWheelCanvas { display: block; max-width: 100%; border-radius: 50%; }
.raffle-wheel-pointer { position: absolute; top: -4px; left: 50%; z-index: 5; width: 0; height: 0; border-left: 21px solid transparent; border-right: 21px solid transparent; border-top: 0; border-bottom: 48px solid var(--cream); transform: translateX(-50%); filter: drop-shadow(0 4px 3px rgba(0,0,0,.45)); }
.raffle-wheel-pointer::after { content: ""; position: absolute; left: -10px; top: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); }
.raffle-wheel-centre { position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; place-items: center; width: clamp(70px, 16%, 112px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.raffle-wheel-centre img { width: 74%; height: 74%; object-fit: contain; }
.raffle-wheel-spin { min-width: min(360px, 92%); min-height: 56px; padding: 12px 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 10px 28px color-mix(in srgb, var(--gold) 28%, transparent); font-size: 17px; font-weight: 900; }
.raffle-wheel-spin:disabled { opacity: .55; box-shadow: none; }
.raffle-wheel-proof { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.raffle-wheel-winner { display: grid; justify-items: center; gap: 3px; width: min(560px, 100%); padding: 15px 18px; border: 1px solid var(--gold); border-radius: 18px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); text-align: center; animation: raffle-winner-in .55s ease-out both; }
.raffle-wheel-winner span { color: var(--gold-light); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.raffle-wheel-winner > strong { color: var(--gold-light); font-family: var(--font-display); font-size: clamp(44px, 8vw, 76px); line-height: 1; }
.raffle-wheel-winner h3 { margin: 2px 0; }
.raffle-wheel-winner p,
.raffle-wheel-winner small { margin: 0; color: var(--muted); }
.raffle-wheel-winner-admin { display: grid; justify-items: center; gap: 3px; }
.raffle-wheel-panel:fullscreen .raffle-wheel-winner-admin { display: none; }
.raffle-wheel-loading { grid-column: 1 / -1; min-height: 640px; }
.raffle-wheel-confetti { position: absolute; inset: -20px; z-index: 7; overflow: hidden; pointer-events: none; }
.raffle-wheel-confetti i { --x: 50%; --delay: 0s; --drift: 0px; position: absolute; left: var(--x); top: -24px; width: 9px; height: 18px; border-radius: 2px; background: var(--gold); animation: raffle-confetti 4.8s var(--delay) ease-in both; }
.raffle-wheel-confetti i.confetti-1 { background: #2f8b55; }
.raffle-wheel-confetti i.confetti-2 { background: #d7653d; }
.raffle-wheel-confetti i.confetti-3 { background: #4e86b5; }
.raffle-wheel-confetti i.confetti-4 { background: #f4e5ad; }
@keyframes raffle-winner-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
@keyframes raffle-confetti { 0% { opacity: 0; transform: translate3d(0,-20px,0) rotate(0); } 8% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--drift),760px,0) rotate(820deg); } }

@media (max-width: 720px) {
  .raffle-admin-modal { padding: 0; }
  .raffle-admin-panel { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .raffle-admin-card,
  .raffle-admin-entry { grid-template-columns: 1fr; }
  .raffle-admin-form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raffle-admin-entry-actions { flex-direction: row; flex-wrap: wrap; }
  .raffle-wheel-modal { padding: 0; }
  .raffle-wheel-panel { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .raffle-wheel-layout { grid-template-columns: 1fr; }
  .raffle-wheel-controls { border-right: 0; border-bottom: 1px solid var(--border); }
  .raffle-wheel-stage { padding: 16px 12px 28px; }
}

@media (max-width: 420px) {
  .raffles-intro { grid-template-columns: 82px 1fr; }
  .raffle-card-image,
  .raffle-detail-image { height: min(78vw, 320px); padding: 8px; }
  .raffle-number-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .raffle-number { min-width: 0; min-height: 44px; font-size: 13px; }
  .raffle-detail-stats { grid-template-columns: 1fr; }
  .raffle-admin-form-grid,
  .raffle-admin-form-grid.four { grid-template-columns: 1fr; }
  .raffle-admin-form label.full { grid-column: auto; }
}
