:root {
  --ink: #291514;
  --muted: #79635d;
  --wine: #671716;
  --wine-dark: #3d0a0b;
  --saffron: #dc7e20;
  --gold: #f3c66f;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --line: rgba(83, 36, 24, .13);
  --shadow: 0 24px 60px rgba(75, 24, 13, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
body:has(.verify-dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }

.page-glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(4px); pointer-events: none; z-index: -1; }
.page-glow-one { top: -260px; right: -150px; background: radial-gradient(circle, rgba(240, 175, 79, .28), transparent 68%); }
.page-glow-two { top: 660px; left: -310px; background: radial-gradient(circle, rgba(142, 39, 29, .1), transparent 68%); }

.site-header { max-width: 1180px; margin: auto; height: 92px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 11px; align-items: center; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff1cf; background: var(--wine); border-radius: 50% 50% 46% 46%; font: 700 22px "Fraunces", serif; box-shadow: 0 7px 20px rgba(80, 14, 14, .2); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Fraunces", serif; font-size: 19px; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.participant-pill { display: flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--wine); background: rgba(255, 255, 255, .65); border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8b8ad; }
.participant-pill.verified .status-dot { background: #2f9e5a; box-shadow: 0 0 0 4px rgba(47, 158, 90, .13); }

main { max-width: 1180px; margin: auto; padding: 36px 24px 80px; }
.hero { min-height: 610px; display: grid; grid-template-columns: 1.05fr .85fr; gap: 92px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--saffron); display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 24px; font: 700 clamp(47px, 6.3vw, 78px)/.98 "Fraunces", serif; letter-spacing: -.045em; }
h1 em { display: block; color: var(--wine); font-style: normal; }
.hero-text { max-width: 590px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 26px; }
.primary-button { border: 0; color: #fffaf1; background: linear-gradient(135deg, #861d1a, #58100f); padding: 15px 22px; border-radius: 12px; font-weight: 700; box-shadow: 0 12px 28px rgba(103, 23, 22, .24); transition: transform .18s, box-shadow .18s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(103, 23, 22, .29); }
.primary-button:disabled { opacity: .62; cursor: wait; transform: none; }
.wide { width: 100%; }
.text-link, .text-button { color: var(--wine); font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 5px; }
.text-button { padding: 12px 0 0; background: none; border: 0; }
.trust-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 12px; }
.trust-row span::first-letter { color: #2f9e5a; }

.auction-card { position: relative; overflow: hidden; min-height: 540px; padding: 28px 34px 30px; color: #fff4da; background: radial-gradient(circle at 50% 36%, #8f2c1e 0, #661514 44%, #3c090a 100%); border: 1px solid rgba(255,255,255,.12); border-radius: 150px 150px 26px 26px; text-align: center; box-shadow: 0 34px 75px rgba(83, 15, 12, .28); }
.auction-card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(244, 205, 122, .19); border-radius: inherit; pointer-events: none; }
.live-badge { position: relative; z-index: 2; width: max-content; margin: 2px auto 2px; display: flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 99px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.live-badge span, .pulse { width: 7px; height: 7px; border-radius: 50%; background: #ffb14e; box-shadow: 0 0 0 5px rgba(255, 177, 78, .11); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,177,78,0); } }
.deity-photo { position: relative; z-index: 1; width: 100%; height: 242px; margin: 16px 0 20px; overflow: hidden; border: 1px solid rgba(255, 222, 151, .32); border-radius: 112px 112px 16px 16px; background: #44100e; box-shadow: 0 14px 32px rgba(21, 3, 3, .32); }
.deity-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(39, 5, 5, .78) 100%); pointer-events: none; }
.deity-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 35%; }
.deity-photo figcaption { position: absolute; right: 0; bottom: 12px; left: 0; z-index: 1; margin: 0; color: rgba(255, 244, 218, .9); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.laddu-art { position: relative; width: 260px; height: 240px; margin: 2px auto -2px; }
.halo { position: absolute; width: 195px; height: 195px; left: 32px; top: 20px; border-radius: 50%; border: 1px solid rgba(244, 204, 116, .3); box-shadow: inset 0 0 38px rgba(255, 201, 95, .1), 0 0 40px rgba(255, 196, 78, .09); }
.laddu { position: absolute; z-index: 2; border-radius: 50%; background: radial-gradient(circle at 34% 27%, #ffdf78 0 4%, #efa32e 24%, #c66313 72%, #8b320e); box-shadow: inset -10px -12px 18px rgba(100, 30, 4, .24), 0 14px 20px rgba(27, 4, 4, .25); }
.laddu::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; opacity: .33; background-image: radial-gradient(#fff1ab 1px, transparent 1.8px); background-size: 9px 10px; }
.laddu-one { width: 112px; height: 112px; left: 72px; top: 55px; }
.laddu-two { width: 88px; height: 88px; left: 36px; top: 124px; }
.laddu-three { width: 88px; height: 88px; right: 37px; top: 124px; }
.plate { position: absolute; z-index: 1; bottom: 19px; left: 26px; width: 210px; height: 44px; border-radius: 50%; background: linear-gradient(#f5d77b, #a85b18 68%, #70310d); box-shadow: 0 12px 18px rgba(22,4,3,.34); }
.leaf { position: absolute; z-index: 3; width: 35px; height: 12px; top: 113px; background: #4c7228; border-radius: 100% 0 100% 0; }
.leaf-left { left: 85px; transform: rotate(-25deg); }
.leaf-right { right: 83px; transform: scaleX(-1) rotate(-25deg); }
.amount-label { margin-bottom: 3px; color: rgba(255, 239, 209, .69); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.highest-amount { margin: 0 0 3px; color: var(--gold); font: 700 49px "Fraunces", serif; letter-spacing: -.03em; }
.leader { min-height: 21px; color: rgba(255, 242, 219, .75); font-size: 13px; }
.card-stats { position: relative; margin-top: 22px; padding-top: 21px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.card-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.card-stats strong, .card-stats span { display: block; }
.card-stats strong { margin-bottom: 3px; color: #fff5df; font-size: 17px; }
.card-stats span { color: rgba(255, 240, 214, .58); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.bid-section { padding: 105px 0 90px; }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading h2, .steps h2, .terms-card h2 { margin-bottom: 0; font: 700 40px "Fraunces", serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 330px; margin-bottom: 6px; color: var(--muted); text-align: right; }
.bid-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.bid-panel, .history-panel { min-height: 410px; padding: 30px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 45px rgba(69, 31, 17, .06); }
.locked-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lock-icon { width: 62px; height: 62px; margin-bottom: 17px; display: grid; place-items: center; color: var(--wine); background: #faead1; border-radius: 50%; font-size: 36px; transform: rotate(-28deg); }
.locked-state h3 { margin-bottom: 9px; font: 700 24px "Fraunces", serif; }
.locked-state p { max-width: 340px; color: var(--muted); line-height: 1.65; }
.locked-state .wide { max-width: 350px; margin-top: 9px; }
.bid-form > label { display: block; margin-bottom: 9px; font-weight: 700; font-size: 13px; }
.amount-input { display: flex; align-items: center; overflow: hidden; height: 82px; border: 1px solid rgba(103,23,22,.2); border-radius: 14px; background: #fff; }
.amount-input span { padding-left: 20px; color: var(--wine); font: 600 34px "Fraunces", serif; }
.amount-input input { width: 100%; height: 100%; padding: 0 18px 0 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 700 38px "Fraunces", serif; }
.quick-bids { margin: 16px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-bids button { padding: 10px 6px; color: var(--wine); background: #fff7e8; border: 1px solid rgba(103,23,22,.14); border-radius: 9px; font-weight: 700; font-size: 12px; }
.form-note { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; }
.panel-heading, .panel-heading > div { display: flex; align-items: center; }
.panel-heading { padding-bottom: 19px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading > div { gap: 11px; }
.panel-heading h3 { margin: 0; font: 700 22px "Fraunces", serif; }
.panel-heading .pulse { background: #38a765; box-shadow: 0 0 0 5px rgba(56,167,101,.1); }
.refresh-button { width: 34px; height: 34px; color: var(--wine); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; }
.bid-history { margin: 0; padding: 4px 0 0; list-style: none; }
.bid-history li { min-height: 62px; padding: 14px 4px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.bid-history li:last-child { border-bottom: 0; }
.bid-rank { width: 32px; height: 32px; display: grid; place-items: center; color: var(--wine); background: #faead1; border-radius: 50%; font-size: 12px; font-weight: 800; }
.bidder strong, .bidder span { display: block; }
.bidder strong { font-size: 13px; }
.bidder span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.history-amount { color: var(--wine); font: 700 18px "Fraunces", serif; }
.bid-history .empty-history { display: flex; min-height: 245px; justify-content: center; color: var(--muted); text-align: center; border: 0; }

.steps { padding: 80px 0 90px; text-align: center; }
.eyebrow.centered { justify-content: center; }
.steps h2 { margin-bottom: 42px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.step-grid article { position: relative; overflow: hidden; min-height: 235px; padding: 31px; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; }
.step-grid article > span { position: absolute; top: 15px; right: 23px; color: rgba(103, 23, 22, .08); font: 700 62px "Fraunces", serif; }
.step-grid h3 { position: relative; margin: 70px 0 11px; font: 700 21px "Fraunces", serif; }
.step-grid p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.terms-card { margin-top: 10px; padding: 34px 40px; display: flex; gap: 25px; align-items: center; color: #fff4dd; background: var(--wine-dark); border-radius: 20px; }
.terms-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(243,198,111,.3); border-radius: 50%; font-size: 25px; }
.terms-card h2 { margin-bottom: 8px; font-size: 25px; }
.terms-card p { margin: 0; color: rgba(255,242,218,.68); font-size: 13px; line-height: 1.65; }
footer { max-width: 1180px; margin: auto; padding: 25px 24px 38px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

.verify-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 24px); padding: 34px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: #fffdf8; border: 0; border-radius: 22px; box-shadow: 0 30px 100px rgba(43, 9, 8, .35); }
.verify-dialog::backdrop { background: rgba(41, 12, 11, .68); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; color: var(--muted); background: #f7eee2; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.dialog-mark { width: 48px; height: 48px; margin-bottom: 21px; display: grid; place-items: center; color: #fff3d7; background: var(--wine); border-radius: 50%; font: 700 23px "Fraunces", serif; }
.dialog-kicker { margin-bottom: 7px; color: var(--saffron); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.verify-dialog h2 { margin-bottom: 9px; font: 700 31px "Fraunces", serif; }
.dialog-copy { margin-bottom: 23px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.verify-dialog label { display: block; margin: 15px 0 7px; font-size: 12px; font-weight: 700; }
.verify-dialog input { width: 100%; min-height: 48px; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid rgba(78,33,22,.2); border-radius: 10px; outline: none; font-size: 16px; }
.verify-dialog input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(220,126,32,.1); }
.phone-input { display: flex; align-items: center; background: #fff; border: 1px solid rgba(78,33,22,.2); border-radius: 10px; }
.phone-input:focus-within { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(220,126,32,.1); }
.phone-input span { padding-left: 14px; color: var(--muted); font-weight: 700; }
.phone-input input { border: 0; box-shadow: none !important; }
.verify-dialog .consent { margin: 17px 0; display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-weight: 500; line-height: 1.4; }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--wine); }
.otp-input { padding: 16px !important; font-size: 25px !important; letter-spacing: .35em; text-align: center; }
.dialog-message { min-height: 19px; margin: 13px 0 0; color: #a52720; text-align: center; font-size: 12px; line-height: 1.4; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; max-width: calc(100% - 32px); padding: 13px 18px; color: #fff; background: #291514; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; transform: translate(-50%, 120px); opacity: 0; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.success { background: #17623a; }
.toast.error { background: #8b221d; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 45px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .auction-card { width: min(450px, 100%); margin: auto; }
  .bid-layout { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid article { min-height: 190px; }
  .step-grid h3 { margin-top: 45px; }
}

@media (max-width: 560px) {
  .site-header { height: 70px; padding: max(8px, env(safe-area-inset-top)) 14px 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; font-size: 20px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; }
  .participant-pill { max-width: 148px; min-height: 42px; padding: 8px 10px; font-size: 11px; }
  #participantLabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main { padding: 8px 14px calc(48px + env(safe-area-inset-bottom)); }
  .hero { min-height: auto; gap: 40px; padding-top: 34px; }
  .hero .eyebrow { margin-bottom: 13px; font-size: 10px; }
  h1 { margin-bottom: 18px; font-size: clamp(39px, 12.5vw, 46px); line-height: 1.01; }
  .hero-text { font-size: 15px; line-height: 1.65; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .primary-button { width: 100%; min-height: 50px; }
  .trust-row { display: grid; gap: 8px; }
  .auction-card { min-height: 500px; padding: 22px 14px 20px; border-radius: 100px 100px 24px 24px; }
  .deity-photo { height: 235px; margin: 14px 0 17px; border-radius: 88px 88px 14px 14px; }
  .highest-amount { font-size: 43px; }
  .card-stats { margin-top: 17px; padding-top: 17px; }
  .card-stats strong { font-size: 15px; }
  .card-stats span { font-size: 8px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .section-heading h2, .steps h2 { font-size: 34px; }
  .bid-section { padding: 72px 0 45px; }
  .bid-panel, .history-panel { min-height: 360px; padding: 20px; border-radius: 16px; }
  .amount-input { height: 72px; }
  .amount-input input { min-width: 0; font-size: 33px; }
  .quick-bids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-bids button { min-width: 0; padding: 10px 3px; font-size: 10px; }
  .bid-history li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; }
  .bidder { min-width: 0; }
  .bidder strong, .bidder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .history-amount { font-size: 16px; }
  .steps { padding: 60px 0; }
  .step-grid { gap: 14px; }
  .step-grid article { min-height: 170px; padding: 24px; }
  .terms-card { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
  footer { padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); gap: 10px; flex-direction: column; }
  .verify-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 16px); margin: auto; padding: 24px 18px max(20px, env(safe-area-inset-bottom)); border-radius: 18px; }
  .dialog-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .dialog-mark { width: 42px; height: 42px; margin-bottom: 15px; font-size: 20px; }
  .dialog-kicker { margin-bottom: 5px; font-size: 9px; }
  .verify-dialog h2 { margin-bottom: 7px; font-size: 28px; }
  .dialog-copy { margin-bottom: 16px; font-size: 13px; }
  .verify-dialog label { margin-top: 12px; }
  .verify-dialog .consent { margin: 14px 0; }
  .verify-dialog .primary-button { min-height: 50px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 28px); text-align: center; }
}

@media (max-width: 370px) {
  .brand small { display: none; }
  .participant-pill { max-width: 132px; }
  h1 { font-size: 38px; }
  .auction-card { min-height: 480px; }
  .deity-photo { height: 220px; }
  .verify-dialog { width: calc(100% - 12px); padding-left: 16px; padding-right: 16px; }
}

@media (max-height: 680px) {
  .verify-dialog { max-height: calc(100dvh - 8px); padding-top: 18px; padding-bottom: 16px; }
  .dialog-mark { width: 36px; height: 36px; margin-bottom: 10px; font-size: 18px; }
  .dialog-kicker { margin-bottom: 3px; }
  .verify-dialog h2 { margin-bottom: 5px; font-size: 26px; }
  .dialog-copy { margin-bottom: 10px; font-size: 12px; line-height: 1.4; }
  .verify-dialog label { margin-top: 9px; margin-bottom: 5px; }
  .verify-dialog input { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .verify-dialog .consent { margin: 11px 0; }
  .verify-dialog .primary-button { min-height: 46px; padding-top: 12px; padding-bottom: 12px; }
  .dialog-message { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
