/* Motion Life — SC4 3D Orbit Logo + Chrome Foil Scratch-Card Pop-Up */
.sc {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px;
  font-family: 'Inter Tight', Roobert, sans-serif; color: var(--ink, #151515);
  visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease, visibility 0s .35s;
}
.sc.is-on { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .35s ease, visibility 0s; }
.sc:focus { outline: none; }
.sc__veil {
  position: absolute; inset: 0; background: rgba(16, 16, 16, .34);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s ease;
}
.sc.is-on .sc__veil { opacity: 1; }
.sc svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; overflow: visible; }
.sc .dim { color: rgba(16, 16, 16, .45); }

.sc__card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(940px, 100%); height: min(590px, calc(100svh - 32px));
  border-radius: 28px; overflow: hidden; background: var(--white, #f9f9fb);
  box-shadow: 0 50px 120px rgba(16, 16, 16, .32), 0 0 0 1px rgba(255, 255, 255, .55);
  transform: translateY(30px) scale(.97); opacity: 0;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
  will-change: transform, opacity;
}
.sc.is-on .sc__card { transform: none; opacity: 1; }

/* Left: 3D Orbit chrome logo stage */
.sc__art {
  position: relative; overflow: hidden; container-type: size;
  background: var(--studio-bg, radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f4f4f7 52%, #e6e7eb 100%));
}
.sc__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc__flat {
  position: absolute; left: 10cqw; width: 80cqw; top: 46cqh; translate: 0 -50%; height: auto;
  pointer-events: none; user-select: none; transition: opacity .5s;
}
.sc__art.is-3d .sc__flat { opacity: 0 !important; }
.sc__shadow {
  position: absolute; left: 18cqw; width: 64cqw; top: calc(46cqh + 15.2cqw); height: 7.2cqw;
  border-radius: 50%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(22, 28, 48, .2), rgba(22, 28, 48, .07) 55%, transparent);
}

/* Right: interactive scratch game */
.sc__main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 54px 50px; min-width: 0; }
.sc__x {
  all: unset; box-sizing: border-box; position: absolute; z-index: 5; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 16, 16, .06); color: var(--ink, #151515); font-size: 20px;
  transition: background .25s, transform .35s var(--e-swing, ease);
}
.sc__x:hover { background: rgba(16, 16, 16, .11); }
.sc__x:active, .sc__copy:active { transform: scale(.94); }
.sc__x:focus-visible, .sc__ticket:focus-visible, .sc__btn:focus-visible, .sc__copy:focus-visible { outline: 2px solid var(--ink, #151515); outline-offset: 3px; }
.sc__step { display: flex; flex-direction: column; min-width: 0; }
.sc__step[hidden] { display: none; }
.sc__h { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.04; letter-spacing: -.035em; }
.sc__h .dim { display: block; }

.sc__ticket {
  position: relative; width: 100%; aspect-ratio: 1.62; margin-top: 28px; border-radius: 22px;
  overflow: hidden; isolation: isolate; outline: none; touch-action: none;
  background: radial-gradient(110% 120% at 50% 0%, #ffffff, #f1f1f4 60%, #e7e7eb);
  box-shadow: inset 0 0 0 1.5px rgba(16, 16, 16, .08);
}
.sc__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; }
.sc__big { position: relative; font-weight: 800; font-size: 56px; line-height: 1.12; letter-spacing: -.04em; color: var(--ink, #151515); }
.sc__big.is-long { font-size: 38px; letter-spacing: -.035em; }
.sc__small { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: rgba(16, 16, 16, .52); }
.sc__small svg { font-size: 18px; }
.sc__big::after {
  content: attr(data-t); position: absolute; inset: 0; pointer-events: none; color: transparent; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .95) 46%, rgba(190, 190, 200, .9) 50%, rgba(255, 255, 255, .95) 54%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0; -webkit-background-clip: text; background-clip: text;
}
.sc__big.shine::after { animation: scShine 1.3s var(--e-io, ease) forwards; }
@keyframes scShine { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -30% 0; } }
.sc__foil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; transition: opacity .5s ease, transform .5s ease; }
.sc__ticket.is-done .sc__foil { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sc__flakes { position: absolute; z-index: 6; pointer-events: none; }

.sc__btn {
  all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; height: 64px; margin-top: 22px; border-radius: 80px; overflow: hidden; isolation: isolate;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  background: var(--black, #101010); color: var(--white, #f9f9fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px rgba(16, 16, 16, .22);
  transition: background .5s var(--e-snap, ease), color .5s var(--e-snap, ease), box-shadow .45s var(--e-io, ease), transform .35s var(--e-swing, ease);
}
.sc__btn:active:not(.is-wait) { transform: scale(.97); }
.sc__btn > span, .sc__btn > svg { position: relative; z-index: 2; }
.sc__btn svg { font-size: 20px; }
.sc__btn:hover:not(.is-wait) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 20px 44px rgba(16, 16, 16, .3); }
.sc__btn.is-wait { background: rgba(16, 16, 16, .06); color: rgba(16, 16, 16, .45); box-shadow: none; pointer-events: none; }
.sc__btn.is-wait::before { opacity: 0; }
.sc__btn.is-busy { pointer-events: none; opacity: .75; }
.sc__btn:hover .add__sheen::before, .sc__btn.sweep .add__sheen::before { animation: sr-sweep 1.05s var(--e-io, ease); }
.sc__btn.is-wait:hover .add__sheen::before { animation: none; }

.sc__fld {
  position: relative; display: flex; align-items: center; gap: 12px; height: 62px; margin-top: 28px;
  padding: 0 20px; border-radius: 20px; background: rgba(16, 16, 16, .05); transition: background .3s, box-shadow .3s;
}
.sc__fld:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(16, 16, 16, .35); }
.sc__fld.bad { background: rgba(196, 60, 60, .07); box-shadow: inset 0 0 0 1.5px rgba(196, 60, 60, .45); }
.sc__fld > svg { font-size: 21px; color: rgba(16, 16, 16, .45); }
.sc__fld input { all: unset; flex: 1; min-width: 0; height: 100%; font-size: 18px; color: var(--ink, #151515); }
.sc__fld input::placeholder { color: rgba(16, 16, 16, .4); }
.sc__note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 15.5px; line-height: 1.32; color: rgba(16, 16, 16, .52); text-align: left; }
.sc__note svg { font-size: 18px; margin-top: 1px; }
.sc__note.bad { color: #c43c3c; }
.sc .nw { white-space: nowrap; }
.sc__mail { font-weight: 600; color: var(--ink, #151515); overflow-wrap: anywhere; }

.sc__won {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 14px 14px 16px;
  border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(16, 16, 16, .08), 0 12px 30px rgba(16, 16, 16, .06);
}
.sc__won-fig { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, #e4e4e8); font-size: 28px; }
.sc__won-fig img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(16, 16, 16, .16)); }
.sc__won-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sc__won-txt b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sc__won-txt span { font-size: 15.5px; color: rgba(16, 16, 16, .52); font-weight: 600; overflow-wrap: anywhere; }
.sc__code { white-space: nowrap; color: var(--ink, #151515); font-weight: 700; letter-spacing: .04em; }
.sc__copy {
  all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; width: 110px; height: 44px; border-radius: 44px; background: rgba(16, 16, 16, .06);
  font-size: 15px; font-weight: 700; transition: background .25s, transform .35s var(--e-swing, ease);
}
.sc__copy:hover { background: rgba(16, 16, 16, .11); }
.sc__copy[hidden] { display: none; }

@media (max-height: 760px) and (min-width: 768px) {
  .sc__main { padding: 38px 42px; }
  .sc__h { font-size: 34px; }
  .sc__ticket { margin-top: 22px; }
  .sc__btn { height: 58px; margin-top: 18px; }
}
@media (max-width: 767px) {
  .sc__card { grid-template-columns: 1fr; grid-template-rows: 148px auto; height: auto; max-height: calc(100svh - 32px); border-radius: 26px; }
  .sc__flat { left: 20cqw; width: 60cqw; top: 50cqh; }
  .sc__shadow { left: 26cqw; width: 48cqw; top: calc(50cqh + 11.4cqw); height: 5.4cqw; }
  .sc__main { padding: 24px 20px 22px; min-height: 388px; }
  .sc__x { top: 12px; right: 12px; background: rgba(255, 255, 255, .75); }
  .sc__h { font-size: 29px; }
  .sc__ticket { margin-top: 18px; }
  .sc__big { font-size: 46px; }
  .sc__big.is-long { font-size: 32px; }
  .sc__btn { height: 58px; margin-top: 16px; font-size: 17px; }
  .sc__fld, .sc__won { margin-top: 20px; }
  .sc__copy { width: 44px; padding: 0; }
  .sc__copy span { display: none; }
}
