/* ============================================================================
   kd-scratch.css — THE DAILY SCRATCH ticket, v2 (Fri Oct 2 2026 night, dev first).
   Built FROM the look Glynne loves (KILODROP_DESIGN_WHAT_GLYNNE_LOVES.txt): smoked navy glass, brand gold
   #d6b25c / light #f0d69a / deep #b8923f, cream #f3efe4, gold headline type clipped to a gradient with a
   drop-shadow filter (NO text-shadow - it turns the gold dark in Chrome). Loads after styles.css, so the few
   v1 .sc-* rules it overrides are re-stated here on purpose.
   ========================================================================== */
.sc2-stage { position: relative; display: grid; place-items: center; padding: 14px 6px 4px; perspective: 1000px; }
.sc2-float { animation: sc2-float 6s ease-in-out infinite; }
@keyframes sc2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.sc2-card { --rx: 0deg; --ry: 0deg; --gx: 50%; position: relative; width: min(100%, 360px); padding: 16px 16px 12px;
  border-radius: 18px; color: #f3efe4; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 70% at var(--gx) -10%, rgba(240, 214, 154, .20), transparent 60%),
    linear-gradient(160deg, #1d1d42 0%, #0e0e24 52%, #17173a 100%);
  border: 1px solid rgba(240, 214, 154, .55);
  box-shadow: inset 0 0 0 5px rgba(12, 12, 30, .9), inset 0 0 0 6px rgba(214, 178, 92, .30),
    0 42px 70px -30px rgba(0, 0, 0, .9), 0 0 46px -14px rgba(214, 178, 92, .30);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .25s ease-out, box-shadow .5s ease; }
/* a soft light sweep across the whole ticket */
.sc2-sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 196, .10) 46%, rgba(255, 250, 235, .26) 50%,
    rgba(255, 238, 196, .10) 54%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; animation: sc2-sheen 6.5s ease-in-out infinite 1.2s; }
@keyframes sc2-sheen { 0% { background-position: 130% 0; } 38%, 100% { background-position: -30% 0; } }
/* fine starfield in the ticket body */
.sc2-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 82%, rgba(240, 214, 154, .8), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.3px 1.3px at 6% 64%, rgba(240, 214, 154, .7), transparent 60%); }

.sc2-top { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font: 800 .66rem/1 var(--font-body, Inter, sans-serif); letter-spacing: .18em; color: #f0d69a; }
.sc2-badge { padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(240, 214, 154, .6); color: #f0d69a;
  background: rgba(214, 178, 92, .10); letter-spacing: .14em; white-space: nowrap; }
.sc2-card.sc-ready .sc2-badge { color: #8ff0bf; border-color: rgba(64, 190, 132, .7); background: rgba(64, 190, 132, .14); }
.sc2-card.sc2-demo .sc2-badge { border-style: dashed; color: #d6ceff; border-color: rgba(214, 206, 255, .6); background: rgba(214, 206, 255, .08); }

.sc2-title { margin: 10px 0 0; font-family: var(--font-head, Fraunces, Georgia, serif); font-style: italic; font-weight: 700;
  font-size: 1.55rem; line-height: 1.05; letter-spacing: .01em;
  background: linear-gradient(180deg, #fffbe8 0%, #f8df9c 50%, #e9c46e 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }

/* the scratch window (re-states v1 .sc-field) */
.sc2-card .sc-field { position: relative; height: 122px; margin: 12px 0 12px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(214, 178, 92, .45);
  background: radial-gradient(80% 90% at 50% 50%, rgba(232, 196, 110, .30), transparent 70%),
    linear-gradient(180deg, #121230, #0b0b1e);
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, .65), 0 0 0 4px rgba(214, 178, 92, .06); }
.sc2-card .sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; border-radius: 12px; touch-action: none;
  cursor: grab; }
.sc2-card .sc-foil:active, .sc2-card.sc2-scratching .sc-foil { cursor: grabbing; }
.sc2-card.sc2-dissolve .sc-foil { filter: blur(1.5px) brightness(1.25); }
.sc2-card .sc-prize { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 0 14px; }
.sc2-card .sc-plus { font-family: var(--font-head, Fraunces, Georgia, serif); font-weight: 900; font-size: 3.1rem; line-height: 1;
  background: linear-gradient(180deg, #fff4cf 0%, #f3d27e 55%, #e0b458 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .75)); font-variant-numeric: tabular-nums; }
.sc2-card .sc-unit { margin-top: 6px; font: 800 .68rem/1.35 var(--font-body, Inter, sans-serif); letter-spacing: .12em;
  text-transform: uppercase; color: #f3efe4; opacity: .88; }
.sc2-card.sc-won .sc-plus { animation: sc2-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes sc2-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.sc2-card.sc-won { box-shadow: inset 0 0 0 5px rgba(12, 12, 30, .9), inset 0 0 0 6px rgba(240, 214, 154, .7),
    0 42px 70px -30px rgba(0, 0, 0, .9), 0 0 70px -6px rgba(240, 214, 154, .55);
  animation: sc2-glow 2.4s ease-in-out 1; }
@keyframes sc2-glow { 0% { filter: brightness(1); } 25% { filter: brightness(1.22); } 100% { filter: brightness(1); } }

/* "scratch here" hint */
.sc2-hint { position: absolute; z-index: 3; left: 50%; bottom: 7px; display: flex; align-items: center; gap: 8px;
  pointer-events: none; font: 800 .62rem/1 var(--font-body, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  color: #2a1d06; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255, 246, 214, .78); white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); animation: sc2-hint 2.2s ease-in-out infinite; }
.sc2-hint[hidden] { display: none; }
.sc2-finger { width: 12px; height: 12px; border-radius: 50%; background: #b8923f; box-shadow: 0 0 0 0 rgba(184, 146, 63, .6);
  animation: sc2-ping 1.6s ease-out infinite; }
@keyframes sc2-hint { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.07); } }
@keyframes sc2-ping { 0% { box-shadow: 0 0 0 0 rgba(184, 146, 63, .6); } 100% { box-shadow: 0 0 0 10px rgba(184, 146, 63, 0); } }

/* the lock (signed out on this device / entry not confirmed) */
.sc2-lock { position: relative; width: 30px; height: 24px; margin-top: 14px; border-radius: 6px;
  background: linear-gradient(180deg, #f3d27e, #b8923f); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8);
  animation: sc2-bob 3.2s ease-in-out infinite; }
.sc2-lock::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 18px; height: 16px; margin-left: -9px;
  border: 4px solid #e0b458; border-bottom: 0; border-radius: 10px 10px 0 0; box-sizing: border-box; }
.sc2-lock::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: #4a3510; }
@keyframes sc2-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.sc2-card.sc-locked .sc-field { background: radial-gradient(80% 90% at 50% 50%, rgba(214, 206, 255, .12), transparent 70%),
    linear-gradient(180deg, #121230, #0b0b1e); }
.sc2-card.sc-done .sc-field { background: radial-gradient(80% 90% at 50% 50%, rgba(64, 190, 132, .22), transparent 70%),
    linear-gradient(180deg, #121230, #0b0b1e); }

/* loading shimmer */
.sc2-card.sc2-checking .sc-field::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(240, 214, 154, .12) 50%, transparent 70%); background-size: 220% 100%;
  animation: sc2-load 1.2s linear infinite; }
@keyframes sc2-load { from { background-position: 120% 0; } to { background-position: -20% 0; } }

.sc2-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(214, 178, 92, .35); font: 600 .72rem/1.2 var(--font-body, Inter, sans-serif); color: #d6d2c4; }
.sc2-serial { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: #b8923f; white-space: nowrap; }

/* the flakes + the win burst */
.sc2-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

/* actions under the ticket */
.sc2-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; text-align: center; }
.sc2-actions .sc-btn { margin: 0; }
.sc2-unlock { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 .92rem/1 var(--font-body, Inter, sans-serif); color: #1a1405;
  background: linear-gradient(180deg, #fbe7a8 0%, #e6c26c 55%, #d6b25c 100%);
  box-shadow: 0 10px 26px -10px rgba(214, 178, 92, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.sc2-unlock:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px -10px rgba(214, 178, 92, .85), inset 0 1px 0 rgba(255, 255, 255, .55); }
.sc2-unlock:disabled { opacity: .6; cursor: default; transform: none; }
.sc2-unlock[hidden] { display: none; }
.sc2-note { margin: 0; max-width: 36ch; font-size: .86rem; line-height: 1.45; color: #d6d2c4; min-height: 0; }
.sc2-note:empty { display: none; }
.sc2-note strong { color: #f0d69a; }
.sc2-note a { color: #f0d69a; text-decoration: underline; text-underline-offset: 2px; }
.sc2-email { display: flex; gap: 8px; width: min(100%, 360px); }
.sc2-email[hidden] { display: none; }
.sc2-email input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(214, 206, 255, .25);
  background: rgba(13, 13, 32, .7); color: #f3efe4; font: 500 .92rem var(--font-body, Inter, sans-serif); }
.sc2-email input:focus { outline: 2px solid rgba(240, 214, 154, .6); outline-offset: 1px; }
.sc2-email button { padding: 0 18px; }

/* the "this drop so far" number ticks + bumps when it grows */
#sc-total.sc2-bump { display: inline-block; animation: sc2-bump .6s cubic-bezier(.2, 1.5, .4, 1); color: #8ff0bf; }
@keyframes sc2-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (max-width: 520px) {
  .sc2-card { width: 100%; }
  .sc2-card .sc-field { height: 112px; }
  .sc2-title { font-size: 1.35rem; }
  .sc2-hint { font-size: .56rem; letter-spacing: .1em; padding: 5px 9px 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc2-float, .sc2-sheen, .sc2-hint, .sc2-finger, .sc2-lock, .sc2-card.sc-won, .sc2-card.sc-won .sc-plus, #sc-total.sc2-bump,
  .sc2-card.sc2-checking .sc-field::after { animation: none; }
  .sc2-card { transform: none; transition: none; }
  .sc2-hint { transform: translateX(-50%); }
}

/* ---- the HOME teaser (index.html .mb-scratch .scr-ticket) in the same ticket look, Oct 2 night.
   It is still a picture (pointer-events none in styles.css) - this only changes its colours to match the
   real card on My Drop, so the promise and the card look like the same thing. ---- */
.mb-scratch .scr-ticket { color: #f3efe4;
  background: radial-gradient(120% 70% at 30% -10%, rgba(240, 214, 154, .20), transparent 60%),
    linear-gradient(160deg, #1d1d42 0%, #0e0e24 52%, #17173a 100%);
  box-shadow: inset 0 0 0 5px rgba(12, 12, 30, .9), inset 0 0 0 6px rgba(214, 178, 92, .30),
    0 40px 70px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(240, 214, 154, .55), 0 0 46px -14px rgba(214, 178, 92, .30); }
.mb-scratch .scr-ticket::before { border-left-color: rgba(214, 178, 92, .35); }
.mb-scratch .scr-top { color: #f0d69a; }
.mb-scratch .scr-mark { color: #d6b25c; }
.mb-scratch .scr-no { color: #b8923f; }
.mb-scratch .scr-spots { padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, #9c7a35 0%, #e9cf8c 22%, #c9a45a 42%, #f6e3a6 62%, #b8923f 82%, #dcbd74 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(214, 178, 92, .45); }
.mb-scratch .scr-foot { color: #d6d2c4; }
.mb-scratch .scr-stamp { border: 1px solid rgba(64, 190, 132, .7); color: #8ff0bf; background: rgba(12, 36, 28, .88);
  border-radius: 999px; padding: 5px 12px; font-size: .68rem; letter-spacing: .18em; transform: rotate(10deg); top: -13px; right: -12px; }
