@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.tjb-void{--tjb-void-cabinet-width:520px;margin:33px 0 45px;padding-top:25px}
.tjb-void h2{margin:18px 0;font-size:clamp(55px,9vw,128px);font-weight:900;letter-spacing:.025em;line-height:1.08}
.tjb-void>p{max-width:650px;color:#a3a3aa;font-size:14px;margin:0 0 30px}
@media(max-width:720px){.tjb-void{margin-top:70px}}
.tjb-void-cabinet{width:min(100%,var(--tjb-void-cabinet-width));box-sizing:border-box;padding:12px;border:1px solid #42343b;border-radius:18px;background:linear-gradient(150deg,#242026,#100f13 50%);box-shadow:0 12px 38px #0009,inset 0 1px #ffffff15}
.tjb-void-cabinet.is-playing{border-color:#ed405a;box-shadow:0 12px 38px #0009,inset 0 1px #ffffff15,0 0 18px #ed405a70}
.tjb-void-cabinet:focus-visible,.tjb-void button:focus-visible{outline:2px solid #ff6278;outline-offset:3px}
.tjb-void-hud{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:2px 0 10px;font:700 clamp(9px,2.4vw,12px)/1.15 monospace;text-align:center;color:#b9b0bf}
.tjb-void-hud b{display:block;margin-top:4px;font-size:clamp(13px,3.6vw,19px);color:#f7f4f8;white-space:nowrap}
.tjb-void-hud b[data-lives]{color:#ff6278}
.tjb-void-hud b[data-coins]{color:#ffd45e}
.tjb-void-coin-total{display:block;margin-top:4px;color:#e9d4a4;overflow-wrap:anywhere}
.tjb-void-screen{position:relative;overflow:hidden;border:1px solid #4e2935;border-radius:10px;background:#08080d}
.tjb-void-screen canvas{display:block;width:100%;max-width:none;height:auto;aspect-ratio:600/510}
.tjb-void-overlay{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;background:#09080eb3}
.tjb-void-overlay[hidden],.tjb-void-overlay [hidden]{display:none}
.tjb-void-overlay.is-counting strong{color:#ff6478;font-size:clamp(54px,14vw,92px);text-shadow:0 0 22px #ed405a80}
.tjb-void-overlay strong{font:800 17px monospace}
.tjb-void-overlay button,.tjb-void-fire{border:1px solid #ff6678;border-radius:999px;background:linear-gradient(#df3049,#95172b);color:white;font:800 13px/1 monospace;letter-spacing:.06em;cursor:pointer}
.tjb-void-overlay button{padding:13px 24px}
.tjb-void-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0}
.tjb-void-stick{display:flex;align-items:center;justify-content:space-between;width:150px;height:56px;border-radius:30px;background:#0c0b0f;border:1px solid #42343b;position:relative;touch-action:none;user-select:none}
.tjb-void-stick button{width:44px;height:50px;background:none;border:0;color:#e8e0e9;font-size:16px;cursor:pointer;touch-action:none}
.tjb-void-stick i{position:absolute;left:50%;top:50%;width:27px;height:27px;border-radius:50%;background:radial-gradient(circle at 36% 25%,#ff7183,#bf1633 65%,#780d20);box-shadow:0 4px 0 5px #29232a,0 6px 8px #000;transform:translate(calc(-50% + var(--tilt,0px)),-57%);pointer-events:none}
.tjb-void-fire{display:inline-grid;place-items:center;color:#fff;-webkit-text-fill-color:#fff;min-width:79px;height:54px;box-shadow:0 4px #570d1a;touch-action:none;user-select:none}
.tjb-void-fire:active{transform:translateY(3px);box-shadow:0 1px #570d1a}
.tjb-void small{display:block;box-sizing:border-box;width:min(100%,var(--tjb-void-cabinet-width));margin-top:10px;padding-inline:8px;text-align:center;font-size:11px;color:#b1acb5}

@media(min-width:851px){
 .tjb-void{--tjb-void-cabinet-width:875px}
 @supports(height:100svh){
  .tjb-void{--tjb-void-cabinet-width:min(875px,max(260px,calc((100svh - 280px) * 600 / 510 + 26px)))}
 }
}

/* Fit the cabinet and both thumb controls within a phone viewport. */
@media(max-width:850px){
 .tjb-void{margin:38px 0 28px;padding-top:16px}
 .tjb-void h2{margin:10px 0;font-size:clamp(32px,9vw,56px)}
 .tjb-void>p{margin-bottom:16px;line-height:1.45}
 .tjb-void-cabinet{padding:8px;border-radius:14px}
 .tjb-void-hud{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 8px;font-size:clamp(9px,2.5vw,12px)}
 .tjb-void-hud>span{min-width:0;padding:6px 1px;background:#100e15;border-radius:6px}
 .tjb-void-hud b{font-size:clamp(13px,3.6vw,18px);overflow-wrap:anywhere;white-space:normal}
 .tjb-void-screen{width:100%;box-sizing:border-box;margin-inline:auto}
 @supports(height:100svh){
  .tjb-void-screen{width:min(100%,max(156px,calc((100svh - 294px) * 600 / 510)))}
 }
 .tjb-void-overlay button{min-height:48px}
 .tjb-void-controls{gap:10px;margin:10px 0 8px}
 .tjb-void-stick{width:min(57%,210px);height:60px;flex-shrink:0}
 .tjb-void-stick button{width:44%;height:58px;font-size:19px}
 .tjb-void-stick i{width:30px;height:30px}
 .tjb-void-fire{min-width:0;width:min(37%,138px);height:58px;font-size:14px}
 .tjb-void small{font-size:10px;line-height:1.35}
}

.tjb-void-coin-reward{position:absolute;z-index:1;pointer-events:none;color:#ffd45e;font:800 clamp(14px,3.6vw,18px)/1 monospace;white-space:nowrap;text-shadow:0 1px 4px #08080d;transform:translate(-50%,-50%);animation:tjb-void-coin-rise 1s ease-out both}
@keyframes tjb-void-coin-rise{0%,25%{opacity:1}100%{opacity:0;transform:translate(-50%,calc(-50% - 20px))}}
@media(prefers-reduced-motion:reduce){.tjb-void-coin-reward{animation:none}}

.tjb-void-shooting-star{position:absolute;z-index:2;top:14%;left:12%;color:#fff4cb;font:900 27px/1 monospace;text-shadow:0 0 12px #ffd45e;pointer-events:none;animation:tjb-void-shooting-star 1.6s ease-out both}
.tjb-void-shooting-star::before{content:"";position:absolute;top:50%;right:75%;width:58px;height:3px;background:linear-gradient(90deg,transparent,#ffd45e);transform:rotate(14deg);transform-origin:right}
@keyframes tjb-void-shooting-star{0%{left:12%;top:14%;opacity:0}20%{opacity:1}75%{opacity:1}100%{left:84%;top:37%;opacity:0}}
@media(prefers-reduced-motion:reduce){.tjb-void-shooting-star{left:50%;top:22%;animation:none}}

.tjb-lb-void-board{margin-bottom:24px}

.tjb-void-main{min-width:0}
.tjb-void-side-board{box-sizing:border-box;width:min(100%,var(--tjb-void-cabinet-width));margin-top:20px;padding:16px;border:1px solid #4e2935;border-radius:12px;background:#100e15;color:#ffe2a4;font-family:'Press Start 2P','Courier New',monospace}
.tjb-void-side-board h3{margin:0 0 14px;color:#ff7186;font:inherit;font-size:13px;line-height:1.6}
.tjb-void-side-board [data-void-side-ranking]{max-height:420px;overflow:auto;font-size:10px;line-height:1.7}
.tjb-void-side-row{display:flex;align-items:baseline;gap:5px;padding:5px 0}
.tjb-void-side-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tjb-void-side-row i{min-width:12px;flex:1;border-bottom:2px dotted #926f50}
.tjb-void-side-row strong{flex:none;color:#fff4cb;font-weight:400}
.tjb-void-side-board a{display:inline-block;margin-top:14px;color:#ff7186;font-size:8px;line-height:1.7}
@media(min-width:1050px){
 .tjb-void-layout{display:flex;align-items:flex-start;gap:22px}
 .tjb-void-main{flex:0 1 var(--tjb-void-cabinet-width)}
 .tjb-void-side-board{flex:0 0 285px;margin-top:0}
}

.tjb-void-rocket-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 9px;box-sizing:border-box;width:min(100%,var(--tjb-void-cabinet-width));margin-top:10px;padding:6px 8px;border:1px solid #4e2935;border-radius:8px;background:#100e15;color:#eee;font-size:12px;text-align:center}
.tjb-void-rocket-legend svg{display:block;flex:none}
.tjb-void-rocket-legend span{flex:1 1 240px;line-height:1.45;text-align:left}

.tjb-void-dev-drop{margin-top:9px;padding:8px 10px;border:1px dashed #6f5831;border-radius:7px;background:#19150f;color:#ffd27f;font:700 11px/1.35 monospace;cursor:pointer}
.tjb-void-dev-drop[aria-pressed=true]{border-color:#ffca67;box-shadow:0 0 9px #ffca6755}
.tjb-void-dev-drop:disabled{opacity:.6;cursor:default}

.tjb-void-item-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:-12px 0 18px;padding:0;list-style:none;color:#e2dee5;font-size:12px}
.tjb-void-item-legend li{display:flex;align-items:center;gap:6px}
.tjb-void-item-icon{display:grid;place-items:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;background:#141828;font:bold 15px/1 monospace}
.tjb-void-item-icon.shield{color:#65ddff}
.tjb-void-item-icon.life{color:#ff7592}
.tjb-void-item-icon.triple{color:#ffca67}
@media(max-width:850px){.tjb-void-item-legend{margin-top:-6px}}

.tjb-void-event-info{margin-top:15px;padding-top:13px;border-top:1px solid #4e2935;color:#e2dee5;font:12px/1.5 system-ui,sans-serif}
.tjb-void-event-info summary{color:#ffd27f;font:700 10px/1.6 'Press Start 2P','Courier New',monospace;cursor:pointer}
.tjb-void-event-info p{margin:10px 0 6px}
.tjb-void-event-info ul{margin:0;padding-inline-start:17px}
