/* POTG.KR Sombra theme. Sombra skull SVG sourced from existing Overwatch icon font, credits in QA doc. Audio credits are in audio/CREDITS.md. */
html[data-potg-theme="sombra"] .app.theme-b.tone-dark{
  --accent:#b36aff;
  --bg:#14111e;
  --panel:#211b30;
  --ink:#f6edff;
  --muted:#bba9d2;
  --line:#463454;
  --faint:#2c203a;
}
html[data-potg-theme="sombra"] .app.theme-b.tone-dark .mast{
  border-bottom-color:#74479c;
  box-shadow:0 1px 0 #a45cf544;
}
html[data-potg-theme="sombra"] .app.theme-b.tone-dark .mast nav a[aria-current="page"]{
  background:#482563;
  border-bottom-color:#ac63ef;
}
html[data-potg-theme="sombra"] .app.theme-b.tone-dark .mast a[href="/"] span{
  color:#cd8bff;
}
.potg-hack-wrap{display:inline-flex;position:relative;align-items:center;flex:none;min-width:0;gap:12px}
.potg-hack-entry{
  /* Keep the touch target INSIDE the header flow. The former negative left
     offset made it fall outside the mobile viewport. */
  position:relative;left:auto;top:auto;transform:none;
  flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
  display:grid;place-items:center;
  padding:0;background:transparent;border:0;cursor:pointer;
  color:#24202e;z-index:2;touch-action:none;user-select:none;-webkit-user-select:none
}
.potg-hack-entry:focus-visible,.potg-hack-reset:focus-visible,.potg-hack-admin:focus-visible{
  outline:2px solid #cf8cff;outline-offset:2px
}
.potg-hack-icon{width:38px;height:38px;position:relative;display:block;isolation:isolate}
.potg-hack-glyph{
  display:block;width:100%;height:100%;background:currentColor;
  -webkit-mask:url('/ui-assets/sombra-skull.svg') center / contain no-repeat;
  mask:url('/ui-assets/sombra-skull.svg') center / contain no-repeat
}
.potg-hack-icon .potg-hack-charged{
  /* The PURPLE PAINT ITSELF is skull-masked. Clipping a transparent
     rectangular overlay/glow made the empty image area look filled. */
  position:absolute;inset:0;
  background:linear-gradient(to top,#a846e4 0%,#d68fff 100%);
  -webkit-mask:url('/ui-assets/sombra-skull.svg') center / contain no-repeat;
  mask:url('/ui-assets/sombra-skull.svg') center / contain no-repeat;
  clip-path:inset(100% 0 0 0);
  transition:clip-path .95s linear
}
.potg-hack-entry[data-charged="true"] .potg-hack-charged{clip-path:inset(0 0 0 0)}
/* Releasing a partial press immediately clears the purple charge. */
.potg-hack-entry[data-charged="false"] .potg-hack-charged{transition-duration:0s}
@keyframes potg-hack-hover{0%{transform:translateX(0)}50%{transform:translateX(2px)}100%{transform:translateX(-1px)}}
.potg-hack-admin,.potg-hack-reset{
  background:#301c42;border:1px solid #7b40a8;color:#eddbff;
  min-height:44px;padding:8px 12px;font-size:15px;white-space:nowrap;cursor:pointer
}
.potg-hack-reset{color:#c6add8;background:#191521;border-color:#53396e}
.potg-hack-dialog{
  border:1px solid #a660dc;background:#191424;color:#f3e9fc;
  padding:0;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);
  box-shadow:0 22px 90px #000c,0 0 40px #8f38c722
}
.potg-hack-dialog::backdrop{background:#070411cc;backdrop-filter:blur(7px)}
.potg-hack-dialog-body{padding:28px;display:flex;flex-direction:column;gap:14px}
.potg-hack-dialog-body h2{font-size:27px;letter-spacing:.03em}
.potg-hack-dialog-body p{line-height:1.5;color:#cbbadf}
.potg-hack-dialog-body label{font-size:16px}
.potg-hack-dialog-body input{
  display:block;width:100%;height:48px;padding:10px 12px;border:1px solid #8063a0;
  background:#100d18;color:#fff;border-radius:0
}
.potg-hack-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.potg-hack-actions button{
  min-height:44px;padding:9px 16px;border:1px solid #8765aa;color:#fff;cursor:pointer
}
.potg-hack-actions button[type="submit"]{background:#673092;border-color:#ba75ef}
.potg-hack-actions button:disabled{opacity:.5;cursor:wait}
.potg-hack-error{color:#ffb6bf!important}
@media(max-width:650px){
  .potg-hack-wrap{gap:6px;flex-wrap:wrap}
  .potg-hack-admin,.potg-hack-reset{font-size:13px;padding:8px}
}

.potg-hack-entry.potg-hack-active{color:#c389f3}
.potg-hack-entry.potg-hack-active:hover .potg-hack-icon{animation:potg-hack-hover .16s steps(2,end) 2}
html[data-potg-theme="sombra"]{background:#14111e;color:#f6edff}
html[data-potg-theme="sombra"] .app{isolation:isolate}
html[data-potg-theme="sombra"] dialog{--winbg:#3c315d;--lossbg:#502740}
html[data-potg-theme="sombra"] .stat-table .stat-player.selected>th,
html[data-potg-theme="sombra"] .stat-table .stat-player.selected>td{background:#6b4329!important;--accent:#ee984e}
html[data-potg-theme="sombra"] .stat-table .stat-player.selected [class*="roleRail"]{background:#ee984e!important}
html[data-potg-theme="sombra"] [data-outcome="win"]{color:#dbc0ff!important}
html[data-potg-theme="sombra"] [data-outcome="loss"]{color:#ffb1d0!important}
html[data-potg-theme="sombra"] main[role="status"]{color:#e4c7ff}

html[data-potg-theme="sombra"] .receipt{--winbg:#3c315d;--lossbg:#502740;--win:#c7a0f5;--loss:#ed88b6}

html[data-potg-theme="sombra"] .potg-brand-wrap>a{display:inline-block;animation:potg-logo-glitch 7s steps(1,end) infinite}
@keyframes potg-logo-glitch{0%,92%,100%{transform:none;filter:none}93%{transform:translate(-2px);filter:drop-shadow(3px 0 #d649c5) drop-shadow(-2px 0 #61d8df)}94%{transform:translate(2px,1px);filter:drop-shadow(-3px 0 #d649c5)}95%{transform:none;filter:none}96%,98%{filter:opacity(0)}}
html[data-potg-theme="sombra"] .v6-highlight-button strong,html[data-potg-theme="sombra"] .v6-highlight-button [data-player-name]{color:#f6edff!important;opacity:1!important;-webkit-text-fill-color:#f6edff!important;text-shadow:none!important}
@media(prefers-reduced-motion:reduce){.potg-hack-entry.potg-hack-active:hover .potg-hack-icon,html[data-potg-theme="sombra"] .potg-brand-wrap>a{animation:none!important;filter:none!important;transform:none!important}}

/* Each strand is one character wide, with a soft tail and its own timing. */
html[data-potg-theme="sombra"] .potg-hack-code{
  position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;opacity:.36
}
.potg-hack-code>span{
  position:absolute;top:0;width:1ch;
  white-space:pre;font:12px/1.16 monospace;text-align:center;
  color:#c78bf6;text-shadow:0 0 6px #8e45c9;
  mask-image:linear-gradient(transparent,#0005 32%,#000c 74%,#000);
  animation:potg-code-fall linear infinite both
}
@keyframes potg-code-fall{
  from{transform:translateY(calc(-100% - 10vh))}
  to{transform:translateY(106vh)}
}

.potg-hack-emp{
  position:fixed;inset:0;z-index:9999;pointer-events:none;display:grid;place-items:center;
  isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at center,#3b1d548c,#0b0814bb 75%);
  animation:potg-emp-envelope 1.8s ease-out both
}
.potg-hack-emp::before,.potg-hack-emp::after{
  content:'';position:absolute;inset:-4px;pointer-events:none;z-index:-1
}
.potg-hack-emp::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0h96v96H0z' filter='url(%23s)' opacity='.75'/%3E%3C/svg%3E");
  background-size:96px;mix-blend-mode:screen;
  animation:potg-static .18s steps(1,end) infinite
}
.potg-hack-emp::after{
  background:
    repeating-linear-gradient(0deg,transparent 0 2px,#140d2666 2px 3px),
    repeating-linear-gradient(0deg,transparent 0 43px,#d9b9ff2b 44px,#a8eaff28 45px,transparent 46px 79px);
  animation:potg-screen-signal .23s steps(1,end) infinite;
  mix-blend-mode:screen
}
.potg-hack-emp-inner{
  position:relative;width:clamp(142px,25vw,322px);aspect-ratio:1;
  display:grid;place-items:center
}
.potg-hack-emp-skull{
  width:86%;height:86%;color:#f1d8ff;display:block;
  filter:drop-shadow(0 0 2px #efd4ff) drop-shadow(0 0 14px #a851fb);
  animation:potg-skull-settle 1.8s ease-out both
}
.potg-hack-emp-skull .potg-hack-glyph{
  background:linear-gradient(165deg,#fbecff 4%,#e2b6ff 56%,#b879f3 100%);
}
.potg-hack-burst{
  position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;
  box-shadow:0 0 28px #c692ff88,inset 0 0 20px #c692ff55;
  border:1px solid #e5c4ff80;
  animation:potg-burst .58s cubic-bezier(.1,.6,.3,1) both
}
.potg-hack-burst i{
  position:absolute;left:50%;top:50%;width:1px;transform-origin:50% 0;
  background:#f0c5ff;box-shadow:0 0 5px #d297ff;
  animation:potg-spark .52s ease-out both
}
@keyframes potg-burst{from{transform:scale(.25);opacity:1}to{transform:scale(1.58);opacity:0}}
@keyframes potg-spark{
  from{transform:rotate(var(--spark-angle)) translateY(-20px);opacity:1}
  to{transform:rotate(var(--spark-angle)) translateY(var(--spark-end));opacity:0}
}
@keyframes potg-static{
  0%{background-position:0 0;opacity:.38}25%{background-position:-23px 41px;opacity:.23}
  50%{background-position:35px -9px;opacity:.31}75%{background-position:-12px -29px;opacity:.2}
}
@keyframes potg-screen-signal{
  0%{transform:translate(0,0);opacity:.54}
  33%{transform:translate(-2px,2px);opacity:.31}
  66%{transform:translate(2px,-2px);opacity:.45}
}
@keyframes potg-emp-envelope{0%{opacity:0}7%,72%{opacity:1}100%{opacity:0}}
@keyframes potg-skull-settle{
  0%{transform:scale(.77);opacity:.3}
  10%{transform:scale(1.025);opacity:1}
  20%,100%{transform:scale(1);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .potg-hack-code>span{animation:none;top:12vh;opacity:.18}
  .potg-hack-emp,.potg-hack-emp::before,.potg-hack-emp::after,.potg-hack-emp-skull{animation:none}
  .potg-hack-burst{display:none}
}

/* Persistent background mark: binary text supplies the skull texture. */
html[data-potg-theme="sombra"] .potg-hack-code-skull{position:fixed;right:4vw;top:16vh;width:min(68vw,760px);height:min(76vh,760px);overflow:hidden;pointer-events:none;z-index:0;color:#ba83ef;opacity:.12;font:11px/1.25 monospace;word-break:break-all;mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;-webkit-mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;animation:potg-background-signal 9s steps(1,end) infinite}
@keyframes potg-background-signal{0%,90%,100%{transform:none;opacity:.1;filter:none}91%{transform:translateX(2px);opacity:.16;filter:drop-shadow(-2px 0 #72e7f0)}92%{transform:translateY(-1px);opacity:.08}94%{transform:translateX(-2px);opacity:.14}96%{transform:none;opacity:.12}}
html[data-potg-theme="sombra"] .potg-brand-wrap{position:relative}
html[data-potg-theme="sombra"] .potg-brand-wrap::after{content:'';position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);pointer-events:none;background:#ddbdff;mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;-webkit-mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;opacity:0;animation:potg-logo-skull 7s steps(1,end) infinite}
@keyframes potg-logo-skull{0%,95%,100%{opacity:0}96%,98%{opacity:1;filter:drop-shadow(2px 0 #6acbd9)}97%{opacity:.6;filter:drop-shadow(-2px 0 #df6fcd)}}
html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]{position:relative;animation:potg-nav-signal 9s steps(1,end) infinite}
html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]::after{content:'';position:absolute;right:3px;top:8px;width:17px;height:17px;background:#d6b1ff;opacity:.6;mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;-webkit-mask:url('/ui-assets/sombra-skull.svg') center/contain no-repeat;animation:potg-background-signal 9s steps(1,end) infinite}
@keyframes potg-nav-signal{0%,90%,100%{text-shadow:none;transform:none}91%,94%{text-shadow:1px 0 #77dbe5,-1px 0 #d172da;transform:translateX(1px)}92%{transform:translateX(-1px)}}
.potg-loading{min-height:100vh;display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center;color:#dbe3ed;font-family:'LINE Seed KR',sans-serif}.potg-loading-emblem{position:relative;width:clamp(180px,38vw,430px);aspect-ratio:1}.potg-loading-overwatch{width:100%;height:100%;animation:potg-loading-pulse 2s ease-in-out infinite}.potg-loading-skull{display:none}.potg-loading p{font-size:16px}
html[data-potg-theme="sombra"] .potg-loading-overwatch{display:none}html[data-potg-theme="sombra"] .potg-loading-skull{display:block;color:#c58cf5;animation:potg-background-signal 3s steps(1,end) infinite;filter:drop-shadow(0 0 14px #b576da44)}
@keyframes potg-loading-pulse{50%{opacity:.45;filter:drop-shadow(0 0 18px #eeaa6655)}}
@media(prefers-reduced-motion:reduce){.potg-hack-code-skull,.potg-loading-overwatch,.potg-loading-skull,html[data-potg-theme="sombra"] .potg-brand-wrap::after,html[data-potg-theme="sombra"] .mast nav a[aria-current="page"],html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]::after{animation:none!important}html[data-potg-theme="sombra"] .potg-brand-wrap::after{display:none}}

html[data-potg-theme="sombra"] .app{isolation:isolate}html[data-potg-theme="sombra"] .potg-hack-code,html[data-potg-theme="sombra"] .potg-hack-code-skull{z-index:-1}
/* Keep the complete masked mark centered while it falls; signal transform stays independent of top. */
html[data-potg-theme="sombra"] .potg-hack-code-skull{left:0;right:0;margin-inline:auto;top:-80vh;animation:potg-skull-fall 24s linear infinite,potg-background-signal 9s steps(1,end) infinite}
@keyframes potg-skull-fall{from{top:-80vh}to{top:110vh}}
/* Brief overlap, then a clean skull-only hold. Opacity must hide the link's
   own text: child drop-shadows otherwise survive an opacity filter. */
@keyframes potg-logo-glitch{0%,49%,100%{opacity:1;transform:none;filter:none}50%,53%{opacity:1;transform:translateX(-1px);filter:drop-shadow(1px 0 #d649c5)}51%,55%{opacity:1;transform:translateX(1px);filter:drop-shadow(-1px 0 #61d8df)}56%,95%{opacity:0;transform:none;filter:none}96%,99%{opacity:1;transform:none;filter:none}}
@keyframes potg-logo-skull{0%,51%,96%,100%{opacity:0;filter:none}52%,54%,56%,94%,95%{opacity:1;filter:drop-shadow(1px 0 #6acbd9)}53%,55%,93%{opacity:.8;filter:drop-shadow(-1px 0 #df6fcd)}57%,92%{opacity:1;filter:none}}
html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]::after{right:auto;left:50%;top:50%;width:30px;height:30px;transform:translate(-50%,-50%);opacity:0;animation:potg-logo-skull 7s steps(1,end) infinite}
/* Animate the label, never the link: the same element owns both text and skull. */
html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]{animation:none}
html[data-potg-theme="sombra"] .mast nav a[aria-current="page"] .potg-nav-label{display:inline-block;animation:potg-logo-glitch 7s steps(1,end) infinite}
@media(prefers-reduced-motion:reduce){html[data-potg-theme="sombra"] .potg-hack-code-skull{top:16vh;animation:none!important}html[data-potg-theme="sombra"] .mast nav a[aria-current="page"] .potg-nav-label{animation:none!important}html[data-potg-theme="sombra"] .mast nav a[aria-current="page"]::after{display:none}}

/* Keep the emblem itself at the viewport center, independent of footer/layout. */
.potg-loading{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box;background:var(--bg,#141c24)}
.potg-loading .potg-loading-emblem{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.potg-loading>p{position:absolute;top:calc(50% + clamp(90px,19vw,215px) + 20px);left:12px;right:12px;text-align:center;margin:0;font-size:14px}

/* Player identities retain the approved game typeface in every context. */
html [data-player-name]{font-family:'Koverwatch','Big Noodle Titling',sans-serif!important;font-style:italic!important}
