:root {
  --gold: #f6c744;
  --gold-d: #b98a14;
  --gold-l: #ffe9a3;
  --red: #d7131d;
  --bg: #050505;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, #3a2b08 0%, #0a0804 45%, #030303 100%) fixed;
  display: flex;
  justify-content: center;
  padding: 14px 12px 40px;
}

.wrap {
  width: 100%;
  max-width: 460px
}

body.admin .wrap {
  max-width: 720px
}

.hidden {
  display: none !important
}

a {
  color: inherit
}

/* ---------- Ticket (gold border card) ---------- */
.ticket {
  position: relative;
  padding: 3px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe58a, #b8860b 30%, #fff1b8 55%, #8a640a 80%, #ffe58a);
  box-shadow: 0 20px 70px rgba(246, 199, 68, .18), 0 0 0 1px rgba(0, 0, 0, .6);
}

.ticket-in {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  padding: 22px 16px 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(246, 199, 68, .13), transparent 55%),
    linear-gradient(180deg, #0e0b05 0%, #080705 70%, #030303 100%);
}

.ticket-in.center {
  text-align: center
}

.ticket-in::before,
.ticket-in::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 199, 68, .16), transparent 70%);
  pointer-events: none;
}

.ticket-in::before {
  left: -60px;
  bottom: 90px
}

.ticket-in::after {
  right: -60px;
  top: 140px
}

/* ---------- Brand ---------- */
.brand {
  text-align: center
}

.crown {
  width: 54px;
  height: 34px;
  filter: drop-shadow(0 2px 6px rgba(246, 199, 68, .5))
}

.logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff3bd, #f6c744 45%, #a77a10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6));
}

.logo2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 11px;
  margin-top: 2px;
  padding-left: 11px
}

.tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 6px;
  border-top: 1px solid rgba(246, 199, 68, .35);
  padding-top: 6px;
  display: inline-block
}

.tag i {
  opacity: .5;
  font-style: normal;
  margin: 0 3px
}

/* ---------- Scratch & Win brush title ---------- */
.brush {
  margin: 14px -4px 0;
  text-align: center;
  line-height: .95;
  transform: rotate(-3deg);
  font-family: 'Anton', Impact, sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.brush .s {
  display: inline-block;
  font-size: 50px;
  padding: 2px 16px 4px;
  color: #111;
  background: linear-gradient(100deg, transparent 0, var(--gold) 6%, #ffe48a 50%, var(--gold) 94%, transparent 100%);
  clip-path: polygon(2% 12%, 99% 0, 96% 100%, 0 92%);
}

.brush .w {
  display: block;
  font-size: 56px;
  margin-top: -4px;
  color: #fff;
  text-shadow: 0 3px 0 var(--red), 0 0 18px rgba(215, 19, 29, .7);
}

.ribbon {
  margin: 12px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 4px 18px;
  font-family: 'Anton', sans-serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 1px;
  color: #111;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-d));
  clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 94%);
}

.lead {
  text-align: center;
  margin: 14px 6px 4px;
  font-size: 14px;
  color: #ddd;
  line-height: 1.7
}

.lead b {
  color: var(--gold);
  font-size: 17px
}

.redtag {
  display: inline-block;
  background: var(--red);
  padding: 1px 10px;
  transform: rotate(-2deg);
  font-family: 'Anton', sans-serif;
  font-style: italic;
  letter-spacing: .5px;
  color: #fff;
}

/* ---------- Home prize grid ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 4px
}

.pcell {
  position: relative;
  text-align: center;
  padding: 16px 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(246, 199, 68, .55);
  background: linear-gradient(180deg, rgba(246, 199, 68, .1), rgba(0, 0, 0, .4));
}

.pcell em {
  position: absolute;
  top: -8px;
  left: -6px;
  font-style: normal;
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  background: linear-gradient(135deg, #ffe48a, var(--gold-d));
  color: #111;
  border-radius: 10px;
  padding: 1px 8px;
}

.pcell span {
  display: block;
  font-size: 30px;
  line-height: 1.2
}

.pcell b {
  display: block;
  font-size: 10.5px;
  color: var(--gold-l);
  margin-top: 4px;
  line-height: 1.25;
  font-weight: 600
}

.notice {
  margin: 14px 0 2px;
  text-align: center;
  font-size: 13px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(246, 199, 68, .09);
  border: 1px dashed rgba(246, 199, 68, .5);
}

/* ---------- Customer strip ---------- */
.cust {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 6px;
  margin: 16px 0 12px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(246, 199, 68, .25);
}

.cust small {
  display: block;
  font-size: 9.5px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px
}

.cust b {
  font-size: 13px;
  color: var(--gold-l);
  word-break: break-word
}

/* ---------- Scratch area ---------- */
.scratch-wrap {
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px #000, 0 0 28px rgba(246, 199, 68, .35);
  background: #0b0905;
  user-select: none;
  -webkit-user-select: none;
}

.prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(246, 199, 68, .07) 0 10deg, transparent 10deg 20deg),
    radial-gradient(circle, #2a2108, #070502 75%);
}

.p-won {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600
}

.p-icon {
  font-size: 52px;
  line-height: 1.15;
  filter: drop-shadow(0 4px 10px rgba(246, 199, 68, .5))
}

.p-title {
  font-family: 'Anton', sans-serif;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c9, var(--gold) 55%, var(--gold-d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-sub {
  font-size: 12px;
  color: #ccc;
  margin-top: 4px
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity .8s ease;
}

#scratchCanvas.gone {
  opacity: 0;
  pointer-events: none
}

.scratch-wrap.won .prize {
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1)
}

@keyframes pop {
  from {
    transform: scale(.6);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--gold);
  margin: 10px 0 2px;
  animation: blink 1.6s infinite
}

@keyframes blink {
  50% {
    opacity: .45
  }
}

.claim {
  margin-top: 12px;
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 199, 68, .16), rgba(246, 199, 68, .04));
  border: 1px solid var(--gold);
}

.claim-t {
  font-size: 12px;
  color: #ddd
}

.claim-code {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 2px 0
}

.claim-d {
  font-size: 11px;
  color: #999
}

/* ---------- Footer pieces ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 16px 0 10px;
  text-align: center;
  font-size: 20px
}

.strip div {
  border-right: 1px solid rgba(246, 199, 68, .25)
}

.strip div:last-child {
  border: 0
}

.strip small {
  display: block;
  font-size: 9px;
  line-height: 1.25;
  color: #ccc;
  letter-spacing: .5px
}

.foot {
  text-align: center;
  font-size: 12px;
  color: #ddd;
  line-height: 1.7
}

.foot em {
  font-family: 'Cinzel', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 13px
}

.terms {
  font-size: 9.5px;
  color: #777;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5
}

.adminlink {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #666;
  margin-top: 14px;
  text-decoration: none
}

.bad {
  font-size: 19px;
  font-weight: 700;
  margin-top: 16px;
  color: #ff6b6b
}

/* ---------- Buttons & forms (admin) ---------- */
.panel {
  background: linear-gradient(180deg, #14100a, #0a0805);
  border: 1px solid rgba(246, 199, 68, .4);
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.panel.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px
}

.logo-s {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px
}

.logo-s span {
  color: #fff;
  font-weight: 700;
  margin-left: 4px
}

.panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--gold-l)
}

.count {
  font-size: 11px;
  color: #888;
  font-weight: 400
}

label {
  display: block;
  font-size: 11.5px;
  color: #bbb;
  margin-bottom: 12px
}

input,
select {
  width: 100%;
  margin-top: 5px;
  padding: 12px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  background: #050402;
  color: #fff;
  border: 1px solid rgba(246, 199, 68, .35);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 199, 68, .18)
}

select option,
select optgroup {
  background: #111;
  color: #fff
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media(max-width:520px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0
  }
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: 700 14px 'Poppins', sans-serif;
  color: #111;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #ffe58a, var(--gold) 50%, var(--gold-d));
  box-shadow: 0 6px 18px rgba(246, 199, 68, .25);
  transition: transform .15s;
}

.btn:active {
  transform: scale(.97)
}

.btn.small {
  width: auto;
  padding: 9px 14px;
  font-size: 12.5px;
  border-radius: 10px
}

.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none
}

.btn.danger {
  color: #ff7a7a;
  border-color: #ff7a7a
}

.btn.wa {
  background: #25d366;
  color: #04210f;
  box-shadow: none
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.muted {
  font-size: 11.5px;
  color: #888;
  margin: 10px 0
}

.rules {
  margin-top: 14px;
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.6;
  display: flex;
  flex-direction: column
}

.rules b {
  color: var(--gold)
}

.chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(246, 199, 68, .14);
  border: 1px solid var(--gold);
  color: var(--gold-l);
}

.linkbox {
  font-size: 11px;
  color: #999
}

.tablewrap {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px
}

th {
  color: var(--gold);
  text-align: left;
  font-weight: 600;
  padding: 7px 6px;
  border-bottom: 1px solid rgba(246, 199, 68, .4);
  white-space: nowrap
}

td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  vertical-align: middle
}

td button {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 5px
}

td input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold)
}

/* ---------- Printable coupon card ---------- */
#printCard {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0e0b05, #000);
  border: 3px solid var(--gold);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pc-crown {
  font-size: 22px;
  line-height: 1
}

.pc-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: 2px
}

.pc-sub {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 8px;
  padding-left: 8px
}

.pc-title {
  font-family: 'Anton', sans-serif;
  font-style: italic;
  font-size: 25px;
  margin: 8px 0;
  color: #111;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-d));
  padding: 2px 0;
  transform: rotate(-2deg)
}

.pc-qr {
  display: inline-block;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  margin: 6px 0 4px;
  line-height: 0
}

.pc-qr img,
.pc-qr canvas {
  max-width: 100%
}

.pc-scan {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600
}

.pc-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px dashed rgba(246, 199, 68, .6);
  border-radius: 8px;
  font-size: 12px
}

.pc-info b {
  color: var(--gold)
}

.pc-foot {
  font-size: 9px;
  color: #aaa;
  margin-top: 8px
}

/* ---------- Toast & confetti ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 40px);
  opacity: 0;
  z-index: 50;
  background: #fff;
  color: #111;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  transition: .3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

#toast.show {
  transform: translate(-50%, 0);
  opacity: 1
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40
}

/* ---------- Print: sirf coupon card ---------- */
@media print {
  body {
    background: #fff !important;
    display: block;
    padding: 0
  }

  body * {
    visibility: hidden
  }

  #printCard,
  #printCard * {
    visibility: visible
  }

  #printCard {
    position: absolute;
    left: 50%;
    top: 12mm;
    transform: translateX(-50%);
    width: 90mm
  }
}

/* ================= Kiosk flow additions ================= */
.btn.big {
  font-size: 16px;
  padding: 16px 18px;
  margin-top: 16px;
  border-radius: 14px;
  letter-spacing: .3px
}

.pulse {
  animation: pulse 1.8s infinite
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 199, 68, .6)
  }

  70% {
    box-shadow: 0 0 0 16px rgba(246, 199, 68, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(246, 199, 68, 0)
  }
}

#custForm {
  margin-top: 16px
}

.err {
  background: rgba(215, 19, 29, .15);
  border: 1px solid #d7131d;
  color: #ff9a9a;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 10px
}

.repeat {
  font-size: 12px;
  text-align: center;
  color: #ffd27a;
  background: rgba(246, 199, 68, .1);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px
}

.claim-d {
  margin-top: 1px
}

.headbtns {
  display: flex;
  gap: 8px
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px
}

.stats div {
  background: linear-gradient(180deg, #14100a, #0a0805);
  border: 1px solid rgba(246, 199, 68, .4);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center
}

.stats b {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: var(--gold);
  font-weight: 400
}

.stats small {
  display: block;
  font-size: 9.5px;
  color: #aaa;
  line-height: 1.3;
  margin-top: 2px
}

@media(max-width:420px) {
  .stats {
    grid-template-columns: repeat(2, 1fr)
  }
}

.divider {
  height: 1px;
  background: rgba(246, 199, 68, .25);
  margin: 18px 0
}

.panel h3 {
  font-size: 13.5px;
  color: var(--gold-l);
  margin-bottom: 10px
}

.qrbox {
  display: inline-block;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  line-height: 0
}

.tag-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600
}

.tag-pill.ok {
  background: rgba(70, 200, 110, .15);
  color: #6fe39a
}

.tag-pill.wait {
  background: rgba(246, 199, 68, .15);
  color: var(--gold)
}

@media print {
  #viewAdmin {
    display: none
  }
}

/* ================= Download card + Admin page additions ================= */
.btnrow.center {
  justify-content: center
}

.claim .btn.small {
  min-width: 140px
}

body.admin .wrap {
  max-width: 1000px
}

.panel.narrow {
  max-width: 420px;
  margin: 40px auto 0
}

.stats.six {
  grid-template-columns: repeat(6, 1fr)
}

@media(max-width:760px) {
  .stats.six {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:420px) {
  .stats.six {
    grid-template-columns: repeat(2, 1fr)
  }
}

.stats.six b {
  font-size: 22px;
  word-break: break-all
}

.vrow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.vrow input,
.vrow select {
  flex: 1 1 200px;
  margin: 0
}

.vrow .btn {
  flex: 0 0 auto
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 8px
}

.filters input,
.filters select {
  margin: 0;
  padding: 10px;
  font-size: 13px
}

@media(max-width:680px) {
  .filters {
    grid-template-columns: 1fr 1fr
  }
}

.row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.row6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px
}

@media(max-width:680px) {
  .row3 {
    grid-template-columns: 1fr 1fr
  }

  .row6 {
    grid-template-columns: repeat(3, 1fr)
  }
}

.tag-pill.gold {
  background: rgba(246, 199, 68, .2);
  color: var(--gold-l)
}

.tag-pill.bad {
  background: rgba(215, 19, 29, .2);
  color: #ff8f8f
}

.tag-pill {
  white-space: nowrap
}

.acts {
  white-space: nowrap
}

table.big {
  min-width: 760px
}

.filebtn {
  cursor: pointer;
  display: inline-block
}

.vcard {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--gold);
  background: rgba(246, 199, 68, .07)
}

.vcard.ok {
  border-color: #46c86e;
  background: rgba(70, 200, 110, .09)
}

.vcard.bad {
  border-color: #d7131d;
  background: rgba(215, 19, 29, .1)
}

.vcard.warn {
  border-color: #f6a344;
  background: rgba(246, 163, 68, .09)
}

.vcard>b {
  font-size: 15px
}

.vprize {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  letter-spacing: .5px;
  margin: 10px 0;
  color: var(--gold)
}

.vgrid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 10px;
  font-size: 13px;
  margin-bottom: 14px
}

.vgrid span {
  color: #9a9a9a
}

.vgrid b {
  color: #fff;
  font-weight: 600;
  word-break: break-word
}

.vgrid small {
  color: #e8a;
  font-weight: 400
}

.vmeta {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 8px
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  font-size: 12.5px
}

.bar span {
  flex: 0 0 150px;
  color: #ddd
}

.bar i {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold))
}

.bar b {
  color: var(--gold)
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px
}

.modal-in {
  width: 100%;
  max-width: 420px;
  background: #0e0b05;
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 14px
}

.modal video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 60vh;
  object-fit: cover
}

/* ================= DIWALI FESTIVE THEME ================= */
:root {
  --diwali-maroon: #4b101b;
  --diwali-red: #8f1726;
  --diwali-gold: #ffd978;
}
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 25, 42, .48), transparent 48%),
    radial-gradient(circle at 8% 28%, rgba(246, 199, 68, .09), transparent 20%),
    radial-gradient(circle at 92% 58%, rgba(246, 199, 68, .08), transparent 22%),
    linear-gradient(155deg, #17070b 0%, #080506 48%, #1d080d 100%) fixed;
}
.ticket {
  background: linear-gradient(135deg, #fff0b5 0%, #c18b25 18%, #7d1827 42%, #f6d27a 62%, #8b6015 82%, #fff0b5 100%);
  box-shadow: 0 22px 70px rgba(120, 15, 32, .28), 0 0 34px rgba(246, 199, 68, .13);
}
.ticket-in {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(143, 23, 38, .30), transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(246, 199, 68, .07), transparent 32%),
    linear-gradient(180deg, #16090c 0%, #090607 72%, #16070b 100%);
}
.diwali-heading {
  text-align: center;
  margin: 20px 0 14px;
  position: relative;
}
.diwali-kicker {
  display: inline-block;
  color: #2b090d;
  background: linear-gradient(90deg, #f5c65e, #fff0b4, #e5a936);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 3px 18px rgba(246,199,68,.18);
}
.diwali-heading h2 {
  margin-top: 10px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1;
  letter-spacing: 1px;
  color: #fff3d0;
  text-shadow: 0 3px 18px rgba(246,199,68,.2);
}
.diwali-heading h2 i {
  color: var(--gold);
  font-style: normal;
}
.diwali-heading p {
  color: #d8b9a7;
  font-size: 10px;
  margin-top: 7px;
}
.pgrid.diwali-prizes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.diwali-prizes .pcell {
  min-width: 0;
  min-height: 155px;
  padding: 10px 8px 11px;
  border: 1px solid rgba(246,199,68,.36);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(108,20,34,.46), rgba(17,10,10,.94) 65%);
  box-shadow: inset 0 1px 0 rgba(255,238,187,.07), 0 8px 20px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}
.diwali-prizes .pcell em {
  position: static;
  align-self: flex-start;
  background: rgba(246,199,68,.13);
  color: #ffdc83;
  border: 1px solid rgba(246,199,68,.28);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 8px;
  letter-spacing: .8px;
  font-style: normal;
  font-weight: 800;
}
.diwali-prizes .pcell b {
  color: #fff2d4;
  font-size: 11px;
  line-height: 1.35;
  min-height: 29px;
}
.prize-image {
  height: 82px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #f7f5f0;
}
.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cash-art, .discount-art, .gift-art {
  height: 82px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 9px;
  background: radial-gradient(circle, rgba(255,223,139,.22), rgba(89,24,27,.2));
  color: #ffdf8d;
}
.cash-art span { font-size: 22px; line-height: 1; }
.cash-art strong { font-family: 'Anton', sans-serif; font-size: 25px; letter-spacing: .5px; }
.cash-art small, .discount-art span { font-size: 8px; letter-spacing: 2px; font-weight: 800; }
.gift-art { position: relative; font-size: 43px; line-height: 1; }
.gift-art span {
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 2px 5px #6c0b19;
}
.discount-art strong { font-family: 'Anton', sans-serif; font-size: 38px; line-height: 1; }
.discount-art strong small { font-size: 19px; }
.btn.big {
  background: linear-gradient(100deg, #f2bf4e, #fff0b0 48%, #d99a2e);
  color: #2a090d;
  box-shadow: 0 8px 24px rgba(208,139,35,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
.ribbon {
  background: linear-gradient(90deg, #671321, #a91e31, #671321);
  border-color: rgba(255,220,145,.55);
}
@media(max-width:360px) {
  .pgrid.diwali-prizes { gap: 7px; }
  .diwali-prizes .pcell { min-height: 145px; padding: 8px 6px; }
  .prize-image, .cash-art, .discount-art, .gift-art { height: 74px; }
  .cash-art strong { font-size: 22px; }
}

/* ================= RESPONSIVE DESKTOP + MOBILE POLISH ================= */
:root {
  --surface: rgba(255,255,255,.045);
  --line: rgba(255,220,145,.22);
}

body:not(.admin) {
  padding: clamp(18px, 3vw, 42px) 18px 48px;
}

body:not(.admin) .wrap {
  width: min(100%, 900px);
}

body:not(.admin) .ticket {
  border-radius: 28px;
  padding: 4px;
}

body:not(.admin) .ticket-in {
  border-radius: 25px;
  padding: clamp(22px, 3.5vw, 42px) clamp(16px, 4vw, 42px) 28px;
}

body:not(.admin) .brand .logo {
  font-size: clamp(48px, 6vw, 66px);
}

body:not(.admin) .brush {
  margin-top: 22px;
}

body:not(.admin) .brush .s {
  font-size: clamp(48px, 6vw, 66px);
}

body:not(.admin) .brush .w {
  font-size: clamp(54px, 6.5vw, 72px);
}

body:not(.admin) .lead {
  font-size: clamp(14px, 1.8vw, 17px);
  margin-top: 20px;
}

.diwali-heading {
  margin: clamp(22px, 3vw, 34px) 0 18px;
}

.diwali-heading h2 {
  font-size: clamp(30px, 4.5vw, 44px);
}

.pgrid.diwali-prizes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.diwali-prizes .pcell {
  min-height: 205px;
  padding: 14px 12px;
  border-radius: 17px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.diwali-prizes .pcell:hover {
  transform: translateY(-4px);
  border-color: rgba(255,220,145,.75);
  box-shadow: 0 14px 28px rgba(0,0,0,.3), 0 0 22px rgba(246,199,68,.1);
}

.prize-image,
.cash-art,
.discount-art,
.gift-art {
  height: clamp(92px, 10vw, 124px);
}

.diwali-prizes .pcell b {
  font-size: clamp(12px, 1.3vw, 14px);
}

.diwali-prizes .pcell em {
  font-size: 9px;
}

.btn.big {
  min-height: 54px;
  border-radius: 14px;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: .2px;
}

.strip {
  margin: 24px 0 18px;
  gap: 10px;
}

.strip div {
  padding: 8px 4px;
}

.strip small {
  font-size: 10px;
}

/* Form and scratch pages */
#custForm {
  max-width: 620px;
  margin: 24px auto 0;
}

#custForm label {
  display: block;
  margin: 0 0 16px;
  color: #f6dfae;
  font-size: 13px;
  font-weight: 600;
}

#custForm input,
#adminLogin input,
body.admin input,
body.admin select,
body.admin textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,220,145,.25);
  color: #fff;
  font: 500 14px 'Poppins', sans-serif;
  outline: none;
}

#custForm input:focus,
body.admin input:focus,
body.admin select:focus,
body.admin textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246,199,68,.1);
}

#custForm input::placeholder,
body.admin input::placeholder {
  color: #9c8d80;
}

.cust {
  gap: 10px;
  padding: 13px;
}

.cust > div {
  min-width: 0;
}

.cust b {
  display: block;
  overflow-wrap: anywhere;
}

.scratch-wrap {
  height: clamp(210px, 30vw, 280px);
}

/* Admin dashboard desktop width and layout */
body.admin {
  padding: 24px clamp(12px, 2vw, 28px) 44px;
}

body.admin .wrap {
  width: min(100%, 1180px);
}

body.admin .panel,
body.admin .modal-in {
  border-radius: 18px;
}

body.admin .panel {
  padding: clamp(14px, 2vw, 22px);
}

body.admin .panel.narrow {
  max-width: 440px;
  padding: 26px;
}

body.admin .stats {
  gap: 10px;
}

body.admin .filters {
  align-items: end;
}

/* Tablet */
@media (max-width: 760px) {
  body:not(.admin) .wrap {
    max-width: 620px;
  }

  .pgrid.diwali-prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diwali-prizes .pcell {
    min-height: 185px;
  }

  body.admin .wrap {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 520px) {
  body:not(.admin) {
    padding: 10px 8px 26px;
  }

  body:not(.admin) .wrap {
    max-width: 440px;
  }

  body:not(.admin) .ticket {
    border-radius: 21px;
    padding: 3px;
  }

  body:not(.admin) .ticket-in {
    border-radius: 18px;
    padding: 20px 13px 18px;
  }

  .crown {
    width: 48px;
    height: 30px;
  }

  body:not(.admin) .brand .logo {
    font-size: clamp(43px, 13vw, 54px);
  }

  .logo2 {
    font-size: 21px;
    letter-spacing: 8px;
    padding-left: 8px;
  }

  .tag {
    font-size: 8px;
    letter-spacing: 2px;
  }

  body:not(.admin) .brush {
    margin: 17px -3px 0;
  }

  body:not(.admin) .brush .s {
    font-size: clamp(39px, 12vw, 50px);
    padding: 3px 12px 5px;
  }

  body:not(.admin) .brush .w {
    font-size: clamp(46px, 13vw, 56px);
  }

  .ribbon {
    font-size: 13px;
    padding: 5px 15px;
  }

  .lead {
    font-size: 12px;
    line-height: 1.6;
    margin: 13px 2px 5px;
  }

  .lead b {
    font-size: 15px;
  }

  .diwali-heading {
    margin: 19px 0 13px;
  }

  .diwali-kicker {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .diwali-heading h2 {
    font-size: clamp(25px, 7.7vw, 34px);
  }

  .diwali-heading p {
    font-size: 10px;
  }

  .pgrid.diwali-prizes {
    gap: 9px;
    margin: 14px 0 18px;
  }

  .diwali-prizes .pcell {
    min-height: 160px;
    padding: 9px 7px 10px;
    border-radius: 13px;
    gap: 5px;
  }

  .diwali-prizes .pcell em {
    font-size: 7px;
    padding: 3px 7px;
  }

  .prize-image,
  .cash-art,
  .discount-art,
  .gift-art {
    height: clamp(72px, 22vw, 92px);
  }

  .cash-art strong {
    font-size: clamp(20px, 6vw, 25px);
  }

  .discount-art strong {
    font-size: 34px;
  }

  .diwali-prizes .pcell b {
    font-size: 10px;
    min-height: 26px;
  }

  .btn.big {
    min-height: 50px;
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .strip {
    margin: 17px 0 13px;
    gap: 3px;
  }

  .strip div {
    font-size: 18px;
  }

  .strip small {
    font-size: 8px;
  }

  .foot {
    font-size: 10px;
  }

  .foot em {
    font-size: 11px;
  }

  .cust {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 11px;
  }

  .cust > div:first-child {
    grid-column: 1 / -1;
  }

  .cust small {
    font-size: 8px;
  }

  .cust b {
    font-size: 12px;
  }

  .scratch-wrap {
    height: 220px;
  }

  .p-title {
    font-size: 24px;
  }

  .claim {
    padding: 11px 9px;
  }

  .claim .btn.small {
    min-width: 0;
    flex: 1 1 130px;
  }

  #custForm {
    margin-top: 20px;
  }

  #custForm label {
    font-size: 12px;
    margin-bottom: 13px;
  }

  #custForm input {
    min-height: 47px;
    font-size: 16px; /* avoids iOS zoom on focus */
  }

  body.admin {
    padding: 10px 8px 28px;
  }

  body.admin .panel.narrow {
    margin-top: 18px;
    padding: 18px 14px;
  }

  body.admin .panel {
    padding: 13px 11px;
    overflow-x: auto;
  }

  body.admin .filters {
    grid-template-columns: 1fr;
  }

  body.admin .row3 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.admin .row6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin .stats.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin .stats.six b {
    font-size: 19px;
  }

  body.admin table {
    min-width: 620px;
  }
}

@media (max-width: 360px) {
  body:not(.admin) .ticket-in {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pgrid.diwali-prizes {
    gap: 7px;
  }

  .diwali-prizes .pcell {
    min-height: 148px;
    padding: 8px 5px;
  }

  .diwali-prizes .pcell b {
    font-size: 9px;
  }

  .prize-image,
  .cash-art,
  .discount-art,
  .gift-art {
    height: 68px;
  }

  .cash-art strong {
    font-size: 19px;
  }

  .strip small {
    font-size: 7px;
  }
}

/* ===== FULL-WIDTH LAPTOP / DESKTOP + MOBILE RESPONSIVE FINAL ===== */
@media (min-width: 1024px) {
  html, body { min-height: 100%; }
  body:not(.admin) {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(18px, 2.2vh, 30px) clamp(20px, 2.5vw, 42px);
    align-items: stretch;
  }
  body:not(.admin) .wrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body:not(.admin) #viewStart {
    width: 100%;
  }
  body:not(.admin) #viewStart .ticket {
    width: 100%;
    min-height: calc(100vh - 44px);
    min-height: calc(100svh - 44px);
  }
  body:not(.admin) #viewStart .ticket-in {
    min-height: calc(100vh - 52px);
    min-height: calc(100svh - 52px);
    padding: clamp(24px, 3vh, 42px) clamp(28px, 4vw, 64px) 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body:not(.admin) #viewStart .pgrid.diwali-prizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
    gap: clamp(14px, 1.5vw, 22px);
  }
  body:not(.admin) #viewStart .diwali-prizes .pcell {
    min-height: clamp(190px, 23vh, 245px);
  }
  body:not(.admin) #viewStart .btn.big {
    width: min(100%, 620px);
    align-self: center;
  }
  body:not(.admin) #viewStart .strip {
    width: min(100%, 760px);
    align-self: center;
  }
  /* Form and scratch views remain comfortably readable on wide screens. */
  body:not(.admin):has(#viewForm:not(.hidden)) .wrap,
  body:not(.admin):has(#viewCard:not(.hidden)) .wrap {
    max-width: 900px;
  }
}

@media (min-width: 1440px) {
  body:not(.admin) #viewStart .pgrid.diwali-prizes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1460px;
  }
  body:not(.admin) #viewStart .diwali-prizes .pcell {
    min-height: 220px;
  }
}

@media (max-width: 1023px) {
  body:not(.admin) .wrap { width: 100%; }
}

@media (max-width: 520px) {
  body:not(.admin) { min-height: 100svh; }
  body:not(.admin) .wrap { width: 100%; max-width: 440px; }
  body:not(.admin) .ticket { width: 100%; }
  body:not(.admin) .ticket-in { width: 100%; }
}


/* ===== Diwali hero banner + reliable local prize imagery ===== */
body:not(.admin) #viewStart .diwali-hero-banner {
  width: 100%;
  margin: 18px auto 12px;
  overflow: hidden;
  border: 1px solid rgba(246,199,68,.72);
  border-radius: 18px;
  background: #21070d;
  box-shadow: 0 10px 30px rgba(0,0,0,.38), 0 0 18px rgba(246,199,68,.12);
  aspect-ratio: 5.15 / 1;
}
body:not(.admin) #viewStart .diwali-hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
body:not(.admin) #viewStart .prize-image {
  min-width: 0;
  flex: 0 0 auto;
  background: #180b0b;
}
body:not(.admin) #viewStart .prize-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 1024px) {
  body:not(.admin) #viewStart .diwali-hero-banner { aspect-ratio: 5.15 / 1; }
}
@media (max-width: 760px) {
  body:not(.admin) #viewStart .diwali-hero-banner {
    aspect-ratio: 1.9 / 1;
    margin: 14px auto 12px;
    border-radius: 13px;
  }
  body:not(.admin) #viewStart .diwali-hero-banner img {
    object-position: center center;
  }
  body:not(.admin) #viewStart .prize-image {
    height: clamp(88px, 27vw, 126px);
    width: 100%;
  }
  body:not(.admin) #viewStart .prize-image img {
    object-fit: contain;
  }
}
@media (max-width: 380px) {
  body:not(.admin) #viewStart .diwali-hero-banner { aspect-ratio: 1.65 / 1; }
  body:not(.admin) #viewStart .prize-image { height: 86px; }
}
/* The banner carries the campaign headline, so avoid repeating it below. */
body:not(.admin) #viewStart .brush,
body:not(.admin) #viewStart > .ticket .ticket-in > .ribbon,
body:not(.admin) #viewStart .diwali-heading { display: none; }
