/* Original opening, extracted unchanged. Restore its original inherited typography. */
#dkbsErrorIntro{font-family:Arial,"Noto Sans KR",sans-serif;line-height:normal}

  body.dkbs-error-lock { overflow: hidden !important; }

  #dkbsErrorIntro{
    position:fixed;
    inset:0;
    z-index:99999;
    background:#02050f;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
    transition:opacity .9s cubic-bezier(.22,1,.36,1), visibility .9s;
  }

  #dkbsErrorIntro.is-resolved{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }

  #dkbsErrorIntro::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(circle at 20% 20%,rgba(46,83,255,.14),transparent 28%),
      radial-gradient(circle at 80% 75%,rgba(255,255,255,.04),transparent 25%),
      linear-gradient(180deg,#02050f 0%,#05091a 100%);
  }

  #dkbsErrorIntro::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,.035) 0,
        rgba(255,255,255,.035) 1px,
        transparent 1px,
        transparent 4px
      );
    opacity:.22;
    mix-blend-mode:screen;
  }

  .error-intro-inner{
    position:relative;
    z-index:4;
    width:min(860px,calc(100% - 42px));
    text-align:center;
    pointer-events:none;
  }

  .error-kicker{
    font-family:Consolas,Monaco,monospace;
    font-size:11px;
    letter-spacing:.3em;
    color:rgba(153,180,255,.6);
    margin-bottom:20px;
  }

  .error-code{
    position:relative;
    display:inline-block;
    font-family:Arial Black,Arial,sans-serif;
    font-weight:900;
    font-size:clamp(92px,24vw,250px);
    line-height:.8;
    letter-spacing:-.08em;
    margin:0;
    color:#fff;
    text-shadow:
      7px 0 0 rgba(0,89,255,.55),
      -7px 0 0 rgba(255,38,94,.34);
    animation:errorJitter 1.65s infinite steps(2,end);
  }

  .error-code::before,
  .error-code::after{
    content:"404";
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
  }

  .error-code::before{
    color:#6d8cff;
    clip-path:inset(0 0 64% 0);
    transform:translateX(-5px);
    animation:glitchTop 1.15s infinite steps(2,end);
  }

  .error-code::after{
    color:#fff;
    clip-path:inset(66% 0 5% 0);
    transform:translateX(6px);
    opacity:.75;
    animation:glitchBottom .95s infinite steps(2,end);
  }

  .error-heading{
    margin:28px 0 8px;
    font-size:clamp(26px,6vw,46px);
    letter-spacing:-.045em;
    font-weight:800;
  }

  .error-desc{
    margin:0;
    font-size:clamp(14px,3.6vw,18px);
    color:rgba(255,255,255,.54);
    line-height:1.7;
  }

  .rub-instruction{
    margin-top:34px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:0 16px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    background:rgba(255,255,255,.035);
    font-size:13px;
    color:rgba(255,255,255,.7);
    backdrop-filter:blur(10px);
  }

  .rub-icon{
    width:17px;
    height:17px;
    position:relative;
  }

  .rub-icon::before{
    content:"";
    position:absolute;
    width:8px;
    height:13px;
    border:1.5px solid rgba(255,255,255,.72);
    border-radius:7px 7px 5px 5px;
    transform:rotate(-22deg);
    left:4px;
    top:1px;
    animation:rubHand 1.1s ease-in-out infinite alternate;
  }

  .rub-progress-wrap{
    width:min(340px,80vw);
    margin:22px auto 0;
  }

  .rub-progress-label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
    font:10px Consolas,Monaco,monospace;
    letter-spacing:.14em;
    color:rgba(255,255,255,.28);
  }

  .rub-progress{
    height:3px;
    background:rgba(255,255,255,.08);
    overflow:hidden;
  }

  .rub-progress-bar{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#5d74ff,#98a7ff,#fff);
    box-shadow:0 0 18px rgba(100,128,255,.6);
    transition:width .12s linear;
  }

  .error-state{
    margin-top:20px;
    min-height:20px;
    font:11px Consolas,Monaco,monospace;
    letter-spacing:.16em;
    color:rgba(137,160,255,.65);
  }

  #dkbsScratchCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:3;
    cursor:grab;
    touch-action:none;
  }

  #dkbsScratchCanvas:active{ cursor:grabbing; }

  .cursor-glow{
    position:absolute;
    z-index:5;
    width:120px;
    height:120px;
    border-radius:50%;
    pointer-events:none;
    opacity:0;
    transform:translate(-50%,-50%);
    background:radial-gradient(circle,rgba(120,145,255,.22),rgba(120,145,255,.05) 40%,transparent 70%);
    transition:opacity .2s;
    mix-blend-mode:screen;
  }

  .resolve-flash{
    position:absolute;
    inset:0;
    z-index:10;
    background:#fff;
    opacity:0;
    pointer-events:none;
  }

  #dkbsErrorIntro.resolving .resolve-flash{
    animation:resolveFlash .75s ease-out forwards;
  }

  #dkbsErrorIntro.resolving .error-code{
    animation:resolveCode .7s cubic-bezier(.16,1,.3,1) forwards;
  }

  #dkbsErrorIntro.resolving .rub-instruction,
  #dkbsErrorIntro.resolving .rub-progress-wrap{
    opacity:0;
    transform:translateY(8px);
    transition:.35s;
  }

  @keyframes errorJitter{
    0%,90%,100%{transform:translate(0,0) skewX(0)}
    92%{transform:translate(-3px,1px) skewX(-2deg)}
    94%{transform:translate(5px,-1px) skewX(2deg)}
    96%{transform:translate(-2px,0)}
  }
  @keyframes glitchTop{
    0%,80%,100%{transform:translateX(-4px)}
    84%{transform:translateX(8px)}
    88%{transform:translateX(-9px)}
    92%{transform:translateX(3px)}
  }
  @keyframes glitchBottom{
    0%,78%,100%{transform:translateX(5px)}
    82%{transform:translateX(-8px)}
    86%{transform:translateX(11px)}
    90%{transform:translateX(-3px)}
  }
  @keyframes rubHand{
    from{transform:translateX(-4px) rotate(-22deg)}
    to{transform:translateX(4px) rotate(-22deg)}
  }
  @keyframes resolveFlash{
    0%{opacity:0}
    25%{opacity:.9}
    100%{opacity:0}
  }
  @keyframes resolveCode{
    0%{filter:blur(0);transform:scale(1)}
    40%{filter:blur(1px);transform:scale(1.025)}
    100%{filter:blur(0);transform:scale(.96);opacity:.35}
  }

  @media (max-width:600px){
    .error-intro-inner{width:calc(100% - 28px)}
    .error-heading{margin-top:24px}
    .rub-instruction{margin-top:28px;font-size:12px}
    .cursor-glow{display:none}
  }


  .error-popup-layer{
    position:absolute;
    inset:0;
    z-index:4;
    pointer-events:none;
  }
  .error-popup{
    position:absolute;
    width:min(310px,72vw);
    background:rgba(248,249,255,.96);
    color:#111827;
    border:1px solid rgba(255,255,255,.62);
    border-radius:12px;
    box-shadow:
      0 20px 60px rgba(0,0,0,.42),
      0 0 0 1px rgba(65,86,180,.08) inset;
    overflow:hidden;
    backdrop-filter:blur(14px);
    transform:translateZ(0);
    transition:
      opacity .35s ease,
      transform .35s ease,
      filter .35s ease;
    animation:popupFloat 4.6s ease-in-out infinite;
  }
  .error-popup.is-dimmed{
    opacity:.18 !important;
    filter:blur(1px);
    transform:scale(.94) !important;
  }
  .error-popup.is-gone{
    opacity:0 !important;
    transform:scale(.8) translateY(18px) !important;
    filter:blur(3px);
  }
  .error-popup-head{
    height:34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 11px 0 13px;
    background:#e8ebf5;
    border-bottom:1px solid #d8ddea;
    font:700 11px Arial,sans-serif;
  }
  .error-popup-close{
    width:18px;
    height:18px;
    border-radius:4px;
    border:1px solid #c4cad8;
    color:#687084;
    display:grid;
    place-items:center;
    font-size:11px;
    line-height:1;
  }
  .error-popup-body{padding:15px}
  .error-popup-title{
    font-size:14px;
    font-weight:800;
    margin-bottom:6px;
  }
  .error-popup-copy{
    font-size:11px;
    line-height:1.55;
    color:#616a7d;
  }
  .error-popup-alert{
    display:flex;
    align-items:flex-start;
    gap:10px;
  }
  .error-popup-icon{
    flex:0 0 auto;
    width:28px;
    height:28px;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:16px;
  }
  .error-popup.warning .error-popup-icon{background:#fff0c2;color:#b76d00}
  .error-popup.danger .error-popup-icon{background:#ffd6dd;color:#c2203e}
  .error-popup.info .error-popup-icon{background:#dce7ff;color:#315fd4}
  .error-popup.ad .error-popup-icon{background:#e6f7e8;color:#27823b}
  .error-popup-btns{
    display:flex;
    gap:7px;
    justify-content:flex-end;
    margin-top:13px;
  }
  .fakebtn{
    font-size:10px;
    padding:6px 9px;
    border-radius:6px;
    border:1px solid #cdd3df;
    background:white;
    color:#4e5668;
  }
  .fakebtn.primary{
    background:#315fd4;
    border-color:#315fd4;
    color:white;
  }

  .popup-a{left:6vw;top:16vh;transform:rotate(-2deg)}
  .popup-b{right:5vw;top:20vh;transform:rotate(2.5deg);animation-delay:-1.2s}
  .popup-c{left:12vw;bottom:14vh;transform:rotate(1.2deg);animation-delay:-2.4s}
  .popup-d{right:12vw;bottom:10vh;transform:rotate(-1.7deg);animation-delay:-3.1s}
  .popup-e{left:50%;top:10vh;transform:translateX(-50%) rotate(.8deg);animation-delay:-.7s}

  @keyframes popupFloat{
    0%,100%{margin-top:0}
    50%{margin-top:-6px}
  }

  @media(max-width:700px){
    .error-popup{width:min(260px,68vw)}
    .error-popup-head{height:30px;font-size:10px}
    .error-popup-body{padding:12px}
    .error-popup-title{font-size:12px}
    .error-popup-copy{font-size:10px}
    .popup-a{left:4vw;top:12vh}
    .popup-b{right:3vw;top:26vh}
    .popup-c{left:5vw;bottom:18vh}
    .popup-d{right:5vw;bottom:7vh}
    .popup-e{left:52%;top:8vh}
  }


  #dkbsErrorIntro.bursting .error-popup{
    opacity:0;
    transform:scale(.72) translateY(18px);
  }

  #dkbsErrorIntro.bursting .error-popup.popup-visible{
    opacity:1;
  }

  #dkbsErrorIntro.bursting .error-popup.popup-a.popup-visible{transform:rotate(-2deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-b.popup-visible{transform:rotate(2.5deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-c.popup-visible{transform:rotate(1.2deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-d.popup-visible{transform:rotate(-1.7deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-e.popup-visible{transform:translateX(-50%) rotate(.8deg) scale(1)}

  .error-popup.popup-shake{
    animation:popupShake .25s linear 1;
  }

  .error-popup.popup-pulse{
    box-shadow:
      0 24px 80px rgba(0,0,0,.55),
      0 0 0 1px rgba(255,55,95,.15) inset,
      0 0 28px rgba(255,55,95,.14);
  }

  .virus-noise-flash{
    position:absolute;
    inset:0;
    z-index:7;
    pointer-events:none;
    opacity:0;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.0) 0 8px,
        rgba(84,112,255,.06) 8px 9px
      );
    mix-blend-mode:screen;
  }

  #dkbsErrorIntro.bursting .virus-noise-flash{
    animation:virusFlash .32s steps(2,end) 5;
  }

  .virus-status{
    position:absolute;
    left:14px;
    right:14px;
    top:12px;
    z-index:8;
    display:flex;
    justify-content:space-between;
    gap:14px;
    font:9px Consolas,Monaco,monospace;
    letter-spacing:.12em;
    color:rgba(147,166,255,.42);
    pointer-events:none;
  }

  @keyframes popupShake{
    0%{translate:0 0}
    25%{translate:-6px 2px}
    50%{translate:5px -2px}
    75%{translate:-3px 1px}
    100%{translate:0 0}
  }

  @keyframes virusFlash{
    0%,100%{opacity:0}
    50%{opacity:.6}
  }

  @media(max-width:700px){
    .virus-status{font-size:8px}
  }

@media(max-width:700px){
  .error-popup{
    width:min(228px,59vw);
    border-radius:10px;
  }
  .error-popup-head{height:28px;padding:0 8px 0 10px;font-size:9px}
  .error-popup-body{padding:10px}
  .error-popup-icon{width:23px;height:23px;font-size:12px}
  .error-popup-title{font-size:11px;margin-bottom:4px}
  .error-popup-copy{font-size:9px;line-height:1.42}
  .error-popup-btns{margin-top:8px}
  .fakebtn{font-size:8px;padding:5px 7px}

  /* only three large windows on phones; enough chaos without covering everything */
  .popup-c,.popup-e{display:none !important}
  .popup-a{left:3vw;top:13vh;right:auto;bottom:auto;transform:rotate(-1.5deg)}
  .popup-b{right:3vw;left:auto;top:30vh;bottom:auto;transform:rotate(1.8deg)}
  .popup-d{left:8vw;right:auto;top:auto;bottom:9vh;transform:rotate(-1deg)}

  #dkbsErrorIntro.bursting .error-popup.popup-a.popup-visible{transform:rotate(-1.5deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-b.popup-visible{transform:rotate(1.8deg) scale(1)}
  #dkbsErrorIntro.bursting .error-popup.popup-d.popup-visible{transform:rotate(-1deg) scale(1)}

  .error-intro-inner{
    width:calc(100% - 28px);
    padding-top:4vh;
  }
  .error-code{font-size:34vw}
  .error-heading{font-size:28px;margin-top:20px}
  .error-desc{font-size:13px;line-height:1.6}
  .rub-instruction{font-size:11px;min-height:38px;padding:0 13px}
}

