/* NRI Surprise Gift page. Self-contained, prefixed .sg-, no hero banner. */
.sg {
  --sg-wine: #3b0a17;
  --sg-wine-2: #5c1122;
  --sg-red: #b3122e;
  --sg-red-hi: #d6223f;
  --sg-gold: #e8b64a;
  --sg-gold-hi: #ffe08a;
  --sg-gold-lo: #b3812a;
  --sg-cream: #fff7e6;
  --sg-ink: #2a0d14;
  --sg-s: 190px; /* gift box edge */
  position: relative;
  padding: 138px 0 70px;
  background:
    radial-gradient(1000px 520px at 50% -80px, rgba(214, 34, 63, .28), transparent 70%),
    linear-gradient(180deg, #2a0710 0%, #3b0a17 38%, #230610 100%);
  color: #f6e9ea;
  overflow: hidden;
  font-family: inherit;
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg-wrap { width: min(100% - 32px, 980px); margin: 0 auto; }
.sg a { color: var(--sg-gold-hi); }
.sg a:hover { color: #fff; }

.sg-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; opacity: .8; margin-bottom: 18px; }
.sg-crumbs a { text-decoration: none; }

/* ---------- Intro ---------- */
.sg-intro { text-align: center; max-width: 780px; margin: 0 auto 8px; }
.sg-eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-gold); margin: 0 0 12px; font-weight: 700; }
.sg-intro h1 { font-size: clamp(26px, 5.4vw, 42px); line-height: 1.12; margin: 0 0 14px; color: #fff; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.sg-lead { font-size: clamp(17px, 2.6vw, 21px); color: var(--sg-gold-hi); margin: 0 0 12px; }
.sg-intro p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; color: #f0dede; }
.sg-chips { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sg-chips li { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--sg-cream); background: rgba(255, 255, 255, .07); border: 1px solid rgba(232, 182, 74, .45); }
.sg-tagline { font-weight: 800; font-size: clamp(17px, 3vw, 22px) !important; color: var(--sg-gold-hi) !important; margin-top: 14px !important; }

/* ---------- Stage ---------- */
.sg-stage-wrap { text-align: center; margin: 18px 0 40px; }
.sg-stage-title { font-size: clamp(24px, 4.4vw, 34px); margin: 0 0 6px; color: #fff; font-weight: 800; }
.sg-stage-sub { margin: 0 0 6px; color: #f0dede; font-size: 16px; }

.sg-stage { position: relative; height: calc(var(--sg-s) * 2.05); max-width: 560px; margin: 0 auto; display: grid; place-items: center; }
.sg-aura { position: absolute; width: calc(var(--sg-s) * 2.3); height: calc(var(--sg-s) * 2.3); border-radius: 50%; background: radial-gradient(circle, rgba(255, 207, 90, .38), rgba(214, 34, 63, .16) 45%, transparent 70%); animation: sg-aura 3.6s ease-in-out infinite; pointer-events: none; }
.sg-sparks { position: absolute; inset: 0; pointer-events: none; }
.sg-sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--z); height: var(--z); background: var(--sg-gold-hi); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: sg-twinkle var(--d) ease-in-out var(--o) infinite; filter: drop-shadow(0 0 4px rgba(255, 224, 138, .9)); }
.sg-beam { position: absolute; bottom: 36%; width: calc(var(--sg-s) * .9); height: calc(var(--sg-s) * 1.5); background: linear-gradient(to top, rgba(255, 224, 138, .85), rgba(255, 224, 138, 0)); clip-path: polygon(20% 100%, 80% 100%, 100% 0, 0 0); opacity: 0; transform-origin: bottom; transform: scaleY(.2); pointer-events: none; }

.sg-gift { position: relative; background: none; border: 0; padding: 0; cursor: pointer; width: var(--sg-s); height: calc(var(--sg-s) * 1.15); display: block; -webkit-tap-highlight-color: transparent; perspective: 1100px; }
.sg-gift:focus-visible { outline: 3px solid var(--sg-gold-hi); outline-offset: 14px; border-radius: 14px; }
.sg-gift:disabled { cursor: default; filter: grayscale(.7); }
.sg-float { position: absolute; inset: 0; display: block; animation: sg-float 3.4s ease-in-out infinite; transform-style: preserve-3d; }
.sg-cube { position: absolute; left: 0; top: calc(var(--sg-s) * .2); width: var(--sg-s); height: calc(var(--sg-s) * .82); transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-30deg); animation: sg-turn 7s ease-in-out infinite; }
.sg-gift:hover .sg-cube { animation-play-state: paused; transform: rotateX(-18deg) rotateY(-20deg); }
.sg-cube, .sg-box, .sg-lid { display: block; }
.sg-box, .sg-lid { position: absolute; transform-style: preserve-3d; }
.sg-box { left: 0; top: calc(var(--sg-s) * .22); width: var(--sg-s); height: calc(var(--sg-s) * .6); --w: var(--sg-s); --h: calc(var(--sg-s) * .6); }
.sg-lid { left: calc(var(--sg-s) * -.045); top: 0; width: calc(var(--sg-s) * 1.09); height: calc(var(--sg-s) * .22); --w: calc(var(--sg-s) * 1.09); --h: calc(var(--sg-s) * .22); transition: none; }

.sg-face { position: absolute; display: block; backface-visibility: hidden; overflow: hidden; }
.sg-box .sg-face, .sg-lid .sg-face { background: linear-gradient(135deg, var(--sg-red-hi), var(--sg-red) 55%, #8a0c22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sg-front, .sg-back, .sg-left, .sg-right { width: var(--w); height: var(--h); left: 0; top: 0; }
.sg-front { transform: translateZ(calc(var(--w) / 2)); }
.sg-back { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); }
.sg-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.82); }
.sg-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.7); }
.sg-top { width: var(--w); height: var(--w); left: 0; top: calc((var(--h) - var(--w)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.12); }
.sg-inside { width: var(--w); height: var(--w); left: 0; top: calc((var(--h) - var(--w)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); background: radial-gradient(circle, #ffe9a6, #e8b64a 55%, #8a5d12) !important; }
.sg-rib { position: absolute; background: linear-gradient(90deg, var(--sg-gold-lo), var(--sg-gold-hi) 45%, var(--sg-gold) 60%, var(--sg-gold-lo)); }
.sg-front .sg-rib, .sg-back .sg-rib, .sg-left .sg-rib, .sg-right .sg-rib { left: 41%; width: 18%; top: 0; bottom: 0; }
.sg-rib-a { left: 41%; width: 18%; top: 0; bottom: 0; }
.sg-rib-b { top: 41%; height: 18%; left: 0; right: 0; background: linear-gradient(180deg, var(--sg-gold-lo), var(--sg-gold-hi) 45%, var(--sg-gold) 60%, var(--sg-gold-lo)); }
.sg-lid .sg-front, .sg-lid .sg-back, .sg-lid .sg-left, .sg-lid .sg-right { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }

/* Bow: a flat group that always faces the viewer (counter-rotates the cube) */
.sg-bow { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-style: preserve-3d; transform: translate3d(0, calc(var(--sg-s) * -.02), 0) rotateY(30deg) rotateX(22deg); }
.sg-bow i { position: absolute; display: block; }
.sg-loop { width: calc(var(--sg-s) * .34); height: calc(var(--sg-s) * .26); top: calc(var(--sg-s) * -.2); border: calc(var(--sg-s) * .06) solid var(--sg-gold); border-radius: 60% 40% 55% 45%; background: radial-gradient(circle at 40% 35%, rgba(255, 224, 138, .35), transparent 60%); box-shadow: inset 0 0 8px rgba(120, 70, 0, .45), 0 2px 5px rgba(0, 0, 0, .3); }
.sg-loop-l { left: calc(var(--sg-s) * -.36); transform: rotate(-18deg); }
.sg-loop-r { left: calc(var(--sg-s) * .02); transform: rotate(18deg) scaleX(-1); }
.sg-knot { width: calc(var(--sg-s) * .15); height: calc(var(--sg-s) * .15); left: calc(var(--sg-s) * -.075); top: calc(var(--sg-s) * -.11); border-radius: 36%; background: linear-gradient(135deg, var(--sg-gold-hi), var(--sg-gold-lo)); box-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.sg-tail { width: calc(var(--sg-s) * .09); height: calc(var(--sg-s) * .2); top: calc(var(--sg-s) * -.02); background: linear-gradient(var(--sg-gold), var(--sg-gold-lo)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.sg-tail-l { left: calc(var(--sg-s) * -.12); transform: rotate(16deg); }
.sg-tail-r { left: calc(var(--sg-s) * .03); transform: rotate(-16deg); }

.sg-shadow { position: absolute; left: 6%; right: 6%; bottom: calc(var(--sg-s) * .02); height: calc(var(--sg-s) * .16); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); animation: sg-shadow 3.4s ease-in-out infinite; }

.sg-tap { position: absolute; bottom: 4px; left: 0; right: 0; margin: 0; font-weight: 800; letter-spacing: .2em; font-size: 14px; color: var(--sg-gold-hi); animation: sg-pulse 1.8s ease-in-out infinite; }

.sg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sg-confetti b { position: absolute; left: 50%; top: 42%; width: 8px; height: 14px; border-radius: 2px; will-change: transform, opacity; }

/* ---------- Opening states ---------- */
.sg-stage[data-state="shake"] .sg-float { animation: sg-shake .5s ease-in-out infinite; }
.sg-stage[data-state="shake"] .sg-tap, .sg-stage[data-state="opened"] .sg-tap { opacity: 0; animation: none; }
.sg-stage[data-state="opened"] .sg-float { animation: none; }
.sg-stage[data-state="opened"] .sg-lid { animation: sg-lid 1s cubic-bezier(.3, .8, .3, 1) forwards; }
.sg-stage[data-state="opened"] .sg-rib-a, .sg-stage[data-state="opened"] .sg-bow { transition: opacity .4s; }
.sg-stage[data-state="opened"] .sg-beam { animation: sg-beam 1.2s ease-out forwards; }
.sg-stage[data-state="opened"] .sg-aura { animation: sg-aura-burst 1.2s ease-out forwards; }
.sg-stage[data-state="done"] { height: calc(var(--sg-s) * 1.15); }
.sg-stage[data-state="done"] .sg-lid { transform: translate3d(0, calc(var(--sg-s) * -1.4), 0) rotateZ(-14deg); opacity: 0; }
.sg-stage[data-state="done"] .sg-tap, .sg-stage[data-state="done"] .sg-beam { display: none; }
.sg-stage[data-state="done"] .sg-float { animation: none; }
.sg-stage[data-state="done"] .sg-gift { pointer-events: none; transform: scale(.7); transform-origin: top center; margin-bottom: calc(var(--sg-s) * -.3); }

/* ---------- Reveal card ---------- */
.sg-card { max-width: 560px; margin: 8px auto 0; padding: 26px 22px 22px; border-radius: 20px; text-align: center; color: var(--sg-ink); background: linear-gradient(160deg, #fffdf6, var(--sg-cream)); border: 2px solid var(--sg-gold); box-shadow: 0 0 0 6px rgba(232, 182, 74, .18), 0 24px 60px -18px rgba(0, 0, 0, .65); animation: sg-card-in .7s cubic-bezier(.2, 1.1, .3, 1) both; position: relative; }
.sg-card:focus { outline: none; }
.sg-card[hidden] { display: none; }
.sg-card-kicker { margin: 0 0 4px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; color: var(--sg-red); }
.sg-card h2 { margin: 0 0 12px; font-size: clamp(20px, 4vw, 26px); color: var(--sg-wine); font-weight: 800; text-wrap: balance; }
.sg-prize { margin: 0; font-size: clamp(26px, 6.4vw, 38px); font-weight: 900; line-height: 1.1; color: var(--sg-red); }
.sg-prize-detail { margin: 6px 0 14px; color: #5a3a3f; font-size: 15.5px; }
.sg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; text-align: left; }
.sg-facts div { background: rgba(179, 18, 46, .06); border-radius: 10px; padding: 9px 12px; }
.sg-facts .sg-wide { grid-column: 1 / -1; }
.sg-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #8a5560; font-weight: 700; }
.sg-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--sg-ink); font-size: 15px; }
.sg-ticket { border: 2px dashed var(--sg-gold-lo); border-radius: 14px; padding: 12px 10px; background: #fff; margin-bottom: 16px; }
.sg-ticket-label { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a5560; font-weight: 700; }
.sg-ticket code { display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(16px, 4.6vw, 24px); font-weight: 800; color: var(--sg-wine); letter-spacing: .04em; background: none; padding: 0; word-break: break-all; user-select: all; }
.sg-actions { display: grid; gap: 10px; }
.sg-note { margin: 12px 0 0; font-size: 12.5px; color: #7a5a60; }

/* ---------- Buttons ---------- */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 16px; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; line-height: 1.2; text-align: center; }
.sg-btn:active { transform: scale(.98); }
.sg-btn-gold { background: linear-gradient(180deg, var(--sg-gold-hi), var(--sg-gold)); color: #3b0a17 !important; box-shadow: 0 6px 18px -6px rgba(232, 182, 74, .7); }
.sg-btn-gold:hover { box-shadow: 0 8px 22px -4px rgba(232, 182, 74, .9); }
.sg-btn-wa { background: #128c4a; color: #fff !important; }
.sg-btn-wa:hover { background: #0e743d; }
.sg-btn-ghost { background: #fff; color: var(--sg-wine); border-color: var(--sg-gold-lo); }
.sg-btn-ghost:hover { background: #fff3d6; }
.sg-block { width: 100%; }
.sg-inline { margin-top: 4px; }
.sg-btn[disabled] { opacity: .6; pointer-events: none; }

.sg-terms-link { margin: 14px 0 0; }
.sg-terms-link button { background: none; border: 0; padding: 8px 4px; color: var(--sg-gold-hi); text-decoration: underline; font-size: 14px; cursor: pointer; font-family: inherit; }
.sg-terms-foot { text-align: center; margin-top: 28px; }

/* ---------- Content sections ---------- */
.sg-section { margin: 0 0 26px; padding: 22px 22px 18px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(232, 182, 74, .22); }
.sg-section h2 { font-size: clamp(20px, 3.4vw, 26px); margin: 0 0 10px; color: var(--sg-gold-hi); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.sg-section p, .sg-section li, .sg-section dd { font-size: 16px; line-height: 1.65; color: #f0dede; }
.sg-section p { margin: 0 0 12px; }
.sg-small { font-size: 14px !important; opacity: .85; }
.sg-def { display: grid; gap: 10px; margin: 14px 0 0; }
.sg-def div { padding: 10px 14px; border-left: 3px solid var(--sg-gold); background: rgba(0, 0, 0, .18); border-radius: 0 10px 10px 0; }
.sg-def dt { font-weight: 800; color: #fff; font-size: 15px; }
.sg-def dd { margin: 2px 0 0; font-size: 15px; }
.sg-giftlist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sg-giftlist li { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(232, 182, 74, .3); display: grid; gap: 2px; }
.sg-giftlist strong { color: #fff; font-size: 16px; }
.sg-giftlist span { font-size: 13.5px; opacity: .8; }
.sg-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 16px; }
.sg-links a { display: inline-block; padding: 6px 0; font-weight: 600; }
.sg-steps { padding-left: 22px; margin: 0 0 12px; }
.sg-steps li { margin-bottom: 8px; }
.sg-steps code, .sg-section code { background: rgba(0, 0, 0, .3); padding: 2px 6px; border-radius: 6px; color: var(--sg-gold-hi); font-size: .92em; }
.sg-faq details { border-top: 1px solid rgba(232, 182, 74, .2); padding: 2px 0; }
.sg-faq details:first-child { border-top: 0; }
.sg-faq summary { cursor: pointer; padding: 13px 28px 13px 0; font-weight: 700; color: #fff; font-size: 16px; list-style: none; position: relative; line-height: 1.4; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--sg-gold); transition: transform .2s; }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq details p { margin: 0 0 14px; }

/* ---------- Dialogs (top-layer elements: own variables, own colours, immune to site-wide rules) ---------- */
.sg-dialog {
  border: 0; border-radius: 22px; padding: 0; width: min(94vw, 460px); max-height: 94vh; overflow: hidden;
  background: #fffaf0; color: #2a0d14; font-family: inherit;
  box-shadow: 0 0 0 2px #e8b64a, 0 0 0 7px rgba(232, 182, 74, .25), 0 40px 90px rgba(0, 0, 0, .65);
}
.sg-dialog *, .sg-dialog *::before, .sg-dialog *::after { box-sizing: border-box; }
.sg-dialog::backdrop { background: radial-gradient(circle at 50% 30%, rgba(120, 18, 40, .8), rgba(20, 3, 8, .88)); backdrop-filter: blur(4px); }
.sg-dialog[open] { animation: sg-pop .3s cubic-bezier(.2, 1.1, .3, 1); }
.sg-form { display: flex; flex-direction: column; max-height: 94vh; margin: 0; }
.sg-dbody { padding: 20px 24px 22px; overflow-y: auto; margin: 0; }
.sg-dialog-terms { width: min(94vw, 640px); }
.sg-terms { display: flex; flex-direction: column; max-height: 94vh; }
.sg-terms ol.sg-dbody { padding: 18px 24px 8px 44px; margin: 0; }
.sg-dfoot { padding: 10px 24px 22px; }

/* festive header band */
.sg-dhead { position: relative; padding: 28px 56px 24px 24px; text-align: center; color: #fff; overflow: hidden; flex: none;
  background: radial-gradient(circle at 20% 0%, rgba(255, 224, 138, .22), transparent 55%), linear-gradient(135deg, #3b0a17 0%, #8a1630 60%, #b3122e 100%);
  border-bottom: 4px solid #e8b64a; }
.sg-dhead-sm { padding: 22px 56px 20px 24px; text-align: left; }
.sg-dsnow { position: absolute; inset: 0; pointer-events: none; }
.sg-dsnow i { position: absolute; font-style: normal; color: rgba(255, 224, 138, .55); font-size: 14px; animation: sg-twinkle 3s ease-in-out infinite; }
.sg-dsnow i:nth-child(1) { left: 8%; top: 18%; }
.sg-dsnow i:nth-child(2) { left: 24%; top: 62%; animation-delay: .6s; font-size: 10px; }
.sg-dsnow i:nth-child(3) { left: 62%; top: 14%; animation-delay: 1.2s; }
.sg-dsnow i:nth-child(4) { left: 80%; top: 56%; animation-delay: 1.8s; font-size: 11px; }
.sg-dsnow i:nth-child(5) { left: 92%; top: 22%; animation-delay: .3s; font-size: 12px; }
.sg-dgift { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; font-size: 32px;
  background: radial-gradient(circle at 35% 30%, #fff1bd, #e8b64a 70%); box-shadow: 0 0 0 4px rgba(255, 224, 138, .35), 0 8px 18px rgba(0, 0, 0, .35); animation: sg-float 3.2s ease-in-out infinite; }
.sg-dialog .sg-dhead h2 { position: relative; margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 800; color: #fff !important; text-wrap: balance; }
.sg-dhead-sm h2 { font-size: 18px; margin: 0; }
.sg-dialog .sg-dhead p { position: relative; margin: 0; font-size: 14.5px; line-height: 1.5; color: #ffe9c2 !important; }
.sg-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sg-x:hover { background: rgba(255, 255, 255, .3); }
.sg-x:focus-visible { outline: 3px solid #ffe08a; }

/* fields */
.sg-field { margin: 0 0 14px; }
.sg-dialog .sg-field > label, .sg-dialog label.sg-check { display: block; margin: 0 0 6px; font-size: 14.5px; font-weight: 700; color: #3b0a17 !important; line-height: 1.3; }
.sg-dialog .sg-opt { font-weight: 500; color: #8a6a70 !important; font-size: 13px; }
.sg-dialog input[type="text"], .sg-dialog input[type="tel"], .sg-dialog input[type="email"], .sg-dialog select {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; font-size: 16px; font-family: inherit; color: #2a0d14 !important;
  background-color: #fff; border: 1.5px solid #d9c18a; border-radius: 12px; box-shadow: inset 0 1px 2px rgba(60, 10, 23, .06); transition: border-color .15s, box-shadow .15s; }
.sg-dialog select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5l6 6 6-6' fill='none' stroke='%23b3122e' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center; }
.sg-dialog input::placeholder { color: #a58d92; opacity: 1; }
.sg-dialog input:focus, .sg-dialog select:focus { outline: none; border-color: #b3122e; box-shadow: 0 0 0 4px rgba(179, 18, 46, .15); }
.sg-dialog small.sg-hint { display: block; margin-top: 5px; font-size: 12.5px; color: #7a5a60 !important; }
.sg-dialog .sg-err { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; color: #b0102a !important; }
.sg-dialog .sg-err:empty { display: none; }
.sg-dialog .sg-err-main { margin: 0 0 12px; padding: 10px 12px; background: #fde8ea; border-radius: 10px; font-size: 14px; }
.sg-dialog input.is-bad, .sg-dialog select.is-bad { border-color: #b0102a; }
.sg-dialog label.sg-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: #fff3d6; border: 1.5px dashed #d9a93f; cursor: pointer; font-weight: 600; }
.sg-dialog .sg-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: #b3122e; }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sg-dialog .sg-go { margin-top: 10px; min-height: 54px; font-size: 17px; }
.sg-dialog .sg-privacy { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: #7a5a60 !important; }
.sg-dialog .sg-btn-gold { background: linear-gradient(180deg, #ffe08a, #e8b64a); color: #3b0a17 !important; }

/* terms list */
.sg-terms li { font-size: 14.5px; line-height: 1.6; margin-bottom: 9px; color: #3c2a2e !important; }
.sg-terms li::marker { color: #b3122e; font-weight: 800; }

@media (max-width: 480px) {
  .sg-dialog { width: calc(100vw - 20px); border-radius: 18px; }
  .sg-dhead { padding: 22px 52px 18px 18px; }
  .sg-dbody { padding: 16px 18px 20px; }
  .sg-terms ol.sg-dbody { padding-left: 38px; }
  .sg-dialog .sg-dhead h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .sg-dsnow i, .sg-dgift { animation: none; } }

/* ---------- Keyframes ---------- */
@keyframes sg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sg-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.88); opacity: .6; } }
@keyframes sg-turn { 0%, 100% { transform: rotateX(-22deg) rotateY(-30deg); } 50% { transform: rotateX(-22deg) rotateY(-42deg); } }
@keyframes sg-aura { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes sg-aura-burst { 0% { transform: scale(.9); opacity: .8; } 40% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1.05); opacity: .55; } }
@keyframes sg-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes sg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes sg-shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px) rotate(-1.5deg); } 80% { transform: translateX(4px) rotate(1.5deg); } }
@keyframes sg-lid { 0% { transform: translate3d(0, 0, 0) rotateZ(0); opacity: 1; } 55% { transform: translate3d(0, calc(var(--sg-s) * -1.1), 0) rotateZ(-10deg); opacity: 1; } 100% { transform: translate3d(0, calc(var(--sg-s) * -1.4), 0) rotateZ(-14deg); opacity: 0; } }
@keyframes sg-beam { 0% { opacity: 0; transform: scaleY(.2); } 35% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1.25); } }
@keyframes sg-card-in { 0% { opacity: 0; transform: translateY(26px) scale(.9) rotateX(14deg); } 100% { opacity: 1; transform: none; } }
@keyframes sg-pop { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  .sg { --sg-s: 220px; }
  .sg-actions { grid-template-columns: 1fr 1fr; }
  .sg-actions .sg-btn-gold { grid-column: 1 / -1; }
}
@media (max-width: 991px) { .sg { padding-top: 112px; } }
@media (max-width: 480px) {
  .sg { --sg-s: 150px; padding-top: 100px; }
  .sg-section { padding: 18px 16px 14px; }
  .sg-facts { grid-template-columns: 1fr; }
  .sg-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sg *, .sg *::before, .sg *::after { animation: none !important; transition: none !important; }
  .sg-sparks i { opacity: .8; }
  .sg-dialog[open] { animation: none; }
}

/* The site stylesheet forces a dark colour on <strong>; keep bold text readable on the dark page. */
.sg strong { color: inherit !important; }
.sg .sg-giftlist strong { color: #fff !important; }
.sg .sg-lead strong { color: var(--sg-gold-hi) !important; }
.sg .sg-giftlist span { opacity: 1; color: #e9d3d3; }
.sg-terms ol.sg-dbody { list-style: decimal outside !important; }
.sg-terms ol.sg-dbody > li { list-style: decimal outside !important; display: list-item; }

/* Phones: the site header is in normal flow (not fixed), so no extra offset is needed under it. */
@media (max-width: 767px) { .sg { padding-top: 20px; } }
