
#tej-scratch,#tej-scratch-portal{--tejw-base:#111118;--tejw-surface:#232330;--tejw-surface2:#2c2c3b;--tejw-line:#3a3a4c;--tejw-text:#f4f4f5;--tejw-muted:#b9b9c4;--tejw-accent:#ffc711;--tejw-accent-h:#ffd447;--tejw-link:#f0a65a;--tejw-ok:#4ade80;
 font:400 16px/1.5 "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--tejw-text)}#tej-scratch{max-width:480px;margin:0 auto;position:relative}#tej-scratch *,#tej-scratch-portal *,#tej-scratch *::before,#tej-scratch-portal *::before,#tej-scratch *::after,#tej-scratch-portal *::after{box-sizing:border-box}#tej-scratch .tejw-card,#tej-scratch-portal .tejw-card{background:var(--tejw-surface);border:1px solid var(--tejw-line);border-radius:16px;padding:20px 16px;box-shadow:0 12px 32px rgba(0,0,0,.4)}#tej-scratch .tejw-title,#tej-scratch-portal .tejw-title{margin:0 0 4px;font-size:21px;line-height:1.3;font-weight:700}#tej-scratch .tejw-sub,#tej-scratch-portal .tejw-sub{margin:0 0 16px;color:var(--tejw-muted);font-size:14px}#tej-scratch .tejw-btn,#tej-scratch-portal .tejw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--tejw-accent);color:var(--tejw-base);font:700 16px "DM Sans",system-ui,sans-serif;border:0;padding:12px 26px;border-radius:999px;cursor:pointer;text-decoration:none;box-shadow:0 6px 20px rgba(255,199,17,.25);transition:transform .2s,background .2s}#tej-scratch .tejw-btn:hover,#tej-scratch-portal .tejw-btn:hover{background:var(--tejw-accent-h);transform:translateY(-2px);color:var(--tejw-base)}#tej-scratch .tejw-btn:disabled,#tej-scratch-portal .tejw-btn:disabled{opacity:.6;cursor:default;transform:none}#tej-scratch :focus-visible,#tej-scratch-portal :focus-visible{outline:2px solid var(--tejw-text);outline-offset:3px}#tej-scratch .tejw-note,#tej-scratch-portal .tejw-note{margin:16px 0 0;font-size:12px;color:var(--tejw-muted);border-top:1px solid var(--tejw-line);padding-top:12px;text-align:left}#tej-scratch .tejw-note a,#tej-scratch-portal .tejw-note a{color:var(--tejw-link)}#tej-scratch .tejw-age,#tej-scratch-portal .tejw-age{display:inline-grid;place-items:center;min-width:30px;height:22px;padding:0 6px;border:2px solid var(--tejw-accent);border-radius:999px;font-size:11px;font-weight:700;color:var(--tejw-text);margin-right:6px}#tej-scratch .tejw-won,#tej-scratch-portal .tejw-won{margin:14px 0 0;font-size:14px;color:var(--tejw-muted);text-align:center}#tej-scratch .tejw-won b,#tej-scratch-portal .tejw-won b{color:var(--tejw-accent);font-size:18px;letter-spacing:.04em}#tej-scratch .tejw-overlay,#tej-scratch-portal .tejw-overlay{position:fixed;inset:0;background:rgba(5,5,10,.72);display:grid;place-items:center;padding:16px;z-index:9999;opacity:0;transition:opacity .25s}#tej-scratch .tejw-overlay[hidden],#tej-scratch-portal .tejw-overlay[hidden]{display:none}#tej-scratch .tejw-overlay.show,#tej-scratch-portal .tejw-overlay.show{opacity:1}#tej-scratch .tejw-modal,#tej-scratch-portal .tejw-modal{position:relative;width:100%;max-width:380px;background:var(--tejw-surface);border:1px solid var(--tejw-line);border-radius:16px;padding:24px 20px 20px;text-align:center;box-shadow:0 20px 48px rgba(0,0,0,.6);transform:scale(.92);transition:transform .3s cubic-bezier(.2,.7,.2,1)}#tej-scratch .tejw-overlay.show .tejw-modal,#tej-scratch-portal .tejw-overlay.show .tejw-modal{transform:none}#tej-scratch .tejw-x,#tej-scratch-portal .tejw-x{position:absolute;right:8px;top:8px;width:40px;height:40px;border:0;background:transparent;color:var(--tejw-muted);font-size:24px;cursor:pointer;border-radius:8px}#tej-scratch .tejw-mtitle,#tej-scratch-portal .tejw-mtitle{margin:0 0 6px;font-size:22px}#tej-scratch .tejw-prize,#tej-scratch-portal .tejw-prize{margin:0 0 16px;color:var(--tejw-accent);font-weight:800;font-size:30px;line-height:1.15}#tej-scratch .tejw-codebox,#tej-scratch-portal .tejw-codebox{display:flex;gap:8px;background:var(--tejw-base);border:1px dashed var(--tejw-accent);border-radius:10px;padding:6px 6px 6px 14px;align-items:center}#tej-scratch .tejw-code,#tej-scratch-portal .tejw-code{flex:1;min-width:0;color:var(--tejw-text);font:700 22px ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;text-align:left;overflow-wrap:anywhere}#tej-scratch .tejw-copy,#tej-scratch-portal .tejw-copy{margin:0;min-height:40px;padding:8px 16px;font-size:14px;box-shadow:none}#tej-scratch .tejw-copy.ok,#tej-scratch-portal .tejw-copy.ok{background:var(--tejw-ok)}#tej-scratch .tejw-mtext,#tej-scratch-portal .tejw-mtext{margin:12px 0 0;font-size:13px;color:var(--tejw-muted)}#tej-scratch .tejw-sr,#tej-scratch-portal .tejw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:768px){#tej-scratch .tejw-card,#tej-scratch-portal .tejw-card{padding:24px}}
@media (prefers-reduced-motion:reduce){#tej-scratch *,#tej-scratch-portal *{animation:none!important;transition:none!important}}#tej-scratch,#tej-scratch-portal{--tejw-foil:#c9c9d4;--tejw-foil2:#8e8ea0}#tej-scratch .tejw-card,#tej-scratch-portal .tejw-card{text-align:center}#tej-scratch .tejw-ticket,#tej-scratch-portal .tejw-ticket{position:relative;width:100%;max-width:420px;margin:0 auto;aspect-ratio:16/10;border-radius:14px;overflow:hidden;border:2px solid var(--tejw-accent);background:radial-gradient(circle at 30% 20%,rgba(255,199,17,.22),transparent 60%),var(--tejw-base);user-select:none;-webkit-user-select:none}#tej-scratch .tejw-under,#tej-scratch-portal .tejw-under{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px}#tej-scratch .tejw-ulabel,#tej-scratch-portal .tejw-ulabel{font-size:14px;color:var(--tejw-muted);text-transform:uppercase;letter-spacing:.08em}#tej-scratch .tejw-uprize,#tej-scratch-portal .tejw-uprize{font-size:clamp(28px,8vw,40px);line-height:1.1;font-weight:800;color:var(--tejw-accent);text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.5)}#tej-scratch .tejw-ucode,#tej-scratch-portal .tejw-ucode{background:rgba(0,0,0,.35);color:var(--tejw-text);font:700 clamp(20px,5.5vw,26px) ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em;padding:4px 12px;border:1px dashed var(--tejw-accent);border-radius:8px}#tej-scratch canvas,#tej-scratch-portal canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;transition:opacity .5s}#tej-scratch canvas.gone,#tej-scratch-portal canvas.gone{opacity:0;pointer-events:none}#tej-scratch .tejw-prog,#tej-scratch-portal .tejw-prog{margin:12px 0 0;font-size:13px;color:var(--tejw-muted)}#tej-scratch .tejw-actions,#tej-scratch-portal .tejw-actions{margin-top:12px}
#tej-scratch .tejw-ticket.win{animation:nlwGlow 1.6s ease-out 1 both}#tej-scratch .tejw-ticket.win .tejw-uprize,#tej-scratch .tejw-ticket.win .tejw-ucode{animation:nlwPop .7s cubic-bezier(.2,1.4,.4,1) both}#tej-scratch .tejw-ticket.win .tejw-ucode{animation-delay:.12s}#tej-scratch .tejw-ticket.win .tejw-ulabel{color:var(--tejw-ok)}
@keyframes nlwPop{0%{transform:scale(.6);opacity:.3}60%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}@keyframes nlwGlow{0%{box-shadow:0 0 0 0 rgba(255,199,17,.0)}35%{box-shadow:0 0 36px 8px rgba(255,199,17,.65)}100%{box-shadow:0 0 18px 2px rgba(255,199,17,.3)}}
#tej-scratch-portal .tejw-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:10000}
@media (prefers-reduced-motion:reduce){#tej-scratch *,#tej-scratch-portal *{animation:none!important;transition:none!important}}
