/* TNT Chest: paper, ink, timber, brass and a red blasting machine. */
#sheet:has(.tnt-game){width:min(1120px,calc(100vw - 40px));max-width:1120px;background:#f7f3e9;color:#302c28;border:1px solid #c4b8a6;box-shadow:0 20px 60px #1f191b30}
.tnt-game{font-family:'IBM Plex Sans',sans-serif;padding:28px!important;max-width:none!important;color:#302c28}
.tnt-game *{box-sizing:border-box}.tnt-game h2,.tnt-game h3,.tnt-game p{margin:0}.tnt-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.tnt-kicker{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6a6055;margin-bottom:8px!important}.tnt-game h2{font-size:36px;line-height:1.05;font-family:'IBM Plex Sans',sans-serif;letter-spacing:-1.5px}.tnt-close{border:1px solid #c9bdac;border-radius:50%;background:transparent;color:#302c28;width:38px;height:38px;font-size:24px;cursor:pointer}.tnt-preview{padding:10px 14px;background:#f3e2bc;border:1px solid #d1b97e;font-size:13px;margin-bottom:18px!important}.tnt-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:26px}.tnt-art{position:relative;border:1px solid #d6cbbb;background:#ebe4d5;border-radius:4px;overflow:hidden}.tnt-canvas{display:block;width:100%;aspect-ratio:1200/620}.tnt-burn-tag{position:absolute;left:19px;top:16px;display:flex;flex-direction:column;gap:1px}.tnt-burn-tag strong{font-size:30px;letter-spacing:-1px;line-height:1.1}.tnt-burn-tag span{font-size:12px;color:#65594e}.tnt-controls{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;margin-top:18px}.tnt-progress{font-size:13px;font-weight:500;display:block;margin-bottom:7px}.tnt-game progress{display:block;width:100%;height:7px;border:0;border-radius:0;background:#ded4c5;accent-color:#ac3c2b}.tnt-game progress::-webkit-progress-bar{background:#ded4c5}.tnt-game progress::-webkit-progress-value{background:#ac3c2b}.tnt-pump,.tnt-contribute{min-height:48px;border:0;border-radius:3px;background:#ab3c2c;color:#fff7e9;font:600 14px 'IBM Plex Sans',sans-serif;cursor:pointer;padding:12px 20px;display:flex;gap:12px;align-items:center;justify-content:center;touch-action:manipulation}.tnt-pump>span:first-child{font-size:23px}.tnt-game button:disabled{opacity:.5;cursor:default}.tnt-game button:focus-visible,.tnt-game input:focus-visible{outline:3px solid #315db0;outline-offset:3px}.tnt-status{font-size:13px;line-height:1.5;margin-top:14px!important;min-height:40px;color:#675a4e}.tnt-error{color:#9c2b23!important}.tnt-receipt{font-size:13px}.tnt-receipt a{color:#36588b;text-decoration:underline}.tnt-details{border-left:1px solid #d9cebe;padding-left:26px}.tnt-details h3,.tnt-board h3{font:600 19px 'IBM Plex Sans',sans-serif;letter-spacing:-.4px}.tnt-game dl{margin:16px 0 18px}.tnt-game dl>div{padding:9px 0;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #ded4c7}.tnt-game dt{font-size:12px;color:#6a6056}.tnt-game dd{font-size:13px;font-weight:600;margin:0;white-space:nowrap}.tnt-details>p{font-size:13px;line-height:1.5;margin-bottom:16px}.tnt-details label{font-size:12px;font-weight:600;display:block}.tnt-details input{display:block;width:100%;margin-top:7px;margin-bottom:9px;min-height:43px;border:1px solid #b9ab98;background:#fffcf5;color:#302c28;padding:10px 12px;font:500 16px 'IBM Plex Sans',sans-serif;border-radius:3px}.tnt-contribute{width:100%;background:#34332f}.tnt-check{background:none;border:0;color:#65584a;text-decoration:underline;font:400 12px 'IBM Plex Sans',sans-serif;min-height:40px;cursor:pointer;padding:6px 0}.tnt-fine{font-size:11px!important;line-height:1.5;color:#786b5c;margin-top:8px!important;margin-bottom:0!important}.tnt-board{margin-top:28px;border-top:1px solid #cfc2b0;padding-top:22px}.tnt-board-copy{font-size:12px;color:#6e6257;margin:7px 0 16px!important}.tnt-table-wrap{overflow-x:auto}.tnt-game table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.tnt-game th{font-weight:500}.tnt-game thead th{font-size:11px;color:#716456;padding:0 10px 10px;border-bottom:1px solid #cabdab}.tnt-game td,.tnt-game tbody th{padding:12px 10px;border-bottom:1px solid #e1d8ca}.tnt-game td:nth-child(n+3),.tnt-game th:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.tnt-game th:first-child,.tnt-game td:first-child{padding-left:0;width:36px;color:#827261}.tnt-mine,.tnt-empty{font-size:12px;color:#716456;margin-top:12px!important;line-height:1.5}.tnt-game [hidden]{display:none!important}
@media(max-width:740px){#sheet:has(.tnt-game){width:100%;max-width:none}.tnt-game{padding:18px!important}.tnt-game h2{font-size:29px}.tnt-layout{grid-template-columns:1fr;gap:20px}.tnt-details{border-left:0;border-top:1px solid #d9cebe;padding:20px 0 0}.tnt-head{margin-bottom:16px}.tnt-canvas{aspect-ratio:1.65;object-fit:cover}.tnt-controls{gap:14px}.tnt-pump{padding:10px 16px;min-height:50px}.tnt-burn-tag{left:14px;top:12px}.tnt-burn-tag strong{font-size:24px}.tnt-game table{font-size:12px}.tnt-game td,.tnt-game tbody th{padding:11px 5px}.tnt-game thead th{padding:0 5px 9px}.tnt-close{width:36px;height:36px}.tnt-board{margin-top:23px}}
@media(prefers-reduced-motion:reduce){.tnt-game *{animation:none!important;transition:none!important}}
.tnt-game .tnt-kicker,.tnt-game h3{text-transform:none}
.tnt-hud{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);width:min(550px,calc(100vw - 28px));z-index:35;display:grid;grid-template-columns:1fr auto;gap:10px 16px;padding:14px 16px;border:1px solid #b4a18c;border-radius:5px;background:#f5eddd;color:#332c23;box-shadow:0 6px 20px #20170d26;font-family:'IBM Plex Sans',sans-serif}.tnt-hud[hidden]{display:none!important}.tnt-hud>div{display:flex;flex-direction:column;justify-content:center;gap:4px}.tnt-hud strong{font-size:18px}.tnt-live-progress{font-size:12px;color:#75634f}.tnt-hud .tnt-pump{grid-column:2;grid-row:1/3;min-width:165px}.tnt-ledger{font:500 12px 'IBM Plex Sans',sans-serif;border:0;text-decoration:underline;text-align:left;background:none;color:#6b5140;padding:0;min-height:24px;cursor:pointer}.tnt-live-status{grid-column:1/-1;font-size:11px!important;line-height:1.4;margin:0!important;color:#75634f}.tnt-ledger-sheet .tnt-details{border:0;padding:0}.tnt-ledger-sheet .tnt-details>p{margin-top:12px}.tnt-ledger-sheet .tnt-details input{max-width:280px}.tnt-ledger-sheet .tnt-contribute{width:auto;min-width:200px}#sheet:has(.tnt-ledger-sheet){width:min(670px,calc(100vw - 30px))}
@media(max-width:640px){.tnt-hud{bottom:160px;grid-template-columns:1fr auto;padding:12px;gap:5px 10px}.tnt-hud .tnt-pump{min-width:138px;padding:9px 12px}.tnt-live-status{font-size:10px!important}.tnt-hud strong{font-size:16px}#sheet:has(.tnt-ledger-sheet){width:100%}}
@media(max-width:740px),(pointer:coarse){.tnt-hud{top:160px;bottom:auto;width:min(440px,calc(100vw - 24px));padding:12px;gap:5px 10px}.tnt-hud .tnt-pump{min-width:138px;padding:9px 12px}.tnt-live-status{font-size:10px!important}.tnt-hud strong{font-size:16px}}
@media(max-width:640px){.tnt-hud{top:250px}}
.tnt-ledger-sheet .tnt-close{display:none}
@media(max-width:640px){.tnt-ledger-sheet .tnt-head{display:none}}
/* The timing instrument belongs to the plunger: brass charge, centered strike
   window and a sharp ink needle. Ordinary World controls return on Leave. */
.tnt-hud.tnt-skill{display:block;top:auto;bottom:28px;width:min(500px,calc(100vw - 28px));padding:12px 18px;border-radius:5px;border-color:#776c5a;background:#f6efdf;color:#2f2c26;box-shadow:0 7px 24px #20190e30}
.tnt-skill>header{display:flex;align-items:center;gap:14px;margin-bottom:8px}.tnt-skill header strong{font-size:18px;letter-spacing:-.4px}.tnt-skill .tnt-live-progress{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums;color:#6b5b45}.tnt-leave{border:0;background:none;font:500 12px 'IBM Plex Sans',sans-serif;color:#74614b;cursor:pointer;padding:5px 0 5px 8px;min-height:44px;min-width:44px;text-decoration:underline}
.tnt-skill .tnt-charge{display:grid!important;grid-template-columns:repeat(10,1fr);gap:4px;height:7px;margin-bottom:12px}.tnt-charge i{display:block;background:#d6cbbb;border-radius:1px}.tnt-charge i.on{background:#b18736}
.tnt-skill .tnt-strike-track{display:block;position:relative;height:23px;background:#d9cdbc;border:1px solid #a8967b;border-radius:2px;overflow:visible;margin:0 2px 12px;box-shadow:inset 0 2px 4px #59432b1a}.tnt-strike-zone{position:absolute;top:0;bottom:0;background:#cf9d42;border-left:1px solid #98712b;border-right:1px solid #98712b}.tnt-perfect-zone{position:absolute;top:0;bottom:0;width:28%;left:36%;background:#fae5a6}.tnt-strike-needle{display:block;position:absolute;top:-5px;width:3px;height:32px;background:#292b2c;transform:translateX(-50%);border-radius:1px;box-shadow:0 0 0 1px #fff3d7}.tnt-strike-needle:before{content:'';position:absolute;top:-4px;left:-4px;width:11px;height:7px;background:#292b2c;clip-path:polygon(0 0,100% 0,50% 100%)}.tnt-strike-track.inactive{opacity:.45}.tnt-strike-track.inactive .tnt-strike-needle{opacity:.35}
.tnt-skill .tnt-strike-row{display:flex;flex-direction:row;align-items:center;gap:18px}.tnt-skill .tnt-strike-tip{font:500 13px/1.45 'IBM Plex Sans',sans-serif;color:#6d5b43;flex:1;margin:0;min-height:38px}.tnt-skill .tnt-pump{display:flex;grid-column:auto;grid-row:auto;min-width:152px;min-height:50px;background:#a93629;border-bottom:3px solid #73251d;font-size:16px;gap:12px;padding:10px 18px;border-radius:3px;box-shadow:0 2px 0 #fff8e633 inset}.tnt-skill .tnt-pump>span:first-child{font-size:16px}.tnt-pump kbd{font:500 10px 'IBM Plex Sans',sans-serif;color:#efc7ae;border:1px solid #c46853;border-radius:2px;padding:2px 4px}.tnt-skill footer{display:flex;align-items:center;gap:14px;margin-top:8px;padding-top:6px;border-top:1px solid #d8cbb6}.tnt-skill .tnt-ledger{white-space:nowrap;font-size:11px;min-height:44px}.tnt-skill .tnt-live-status{font-size:9px!important;line-height:1.3;color:#85745f}.tnt-skill[data-grade=perfect] .tnt-strike-tip{color:#8a5a0d}.tnt-skill[data-grade=miss] .tnt-strike-tip{color:#a73729}
.tnt-focused .joy,.tnt-focused .jump,.tnt-focused .chat,.tnt-focused #rail{visibility:hidden;pointer-events:none}.tnt-announcement{position:absolute;top:85px;left:50%;transform:translateX(-50%);z-index:38;width:min(520px,calc(100vw - 28px));padding:15px 22px;text-align:center;background:#3e1e1b;color:#ffe8cc;border:1px solid #bc6d4b;font:600 20px/1.4 'IBM Plex Sans',sans-serif;box-shadow:0 5px 25px #46131233}.tnt-announcement[hidden]{display:none}
.tnt-name-choice{display:flex!important;align-items:center;gap:10px;margin:10px 0;min-height:44px;font-size:13px!important}.tnt-name-choice input{display:inline-block!important;width:18px!important;min-height:18px!important;height:18px;margin:0!important;accent-color:#9f4a32}.tnt-money-actions{display:flex;gap:10px;flex-wrap:wrap}.tnt-direct{background:#a93629;color:#fff2df;border:0;border-bottom:3px solid #73251d;border-radius:3px;padding:12px 20px;font:600 14px 'IBM Plex Sans',sans-serif;min-height:48px;cursor:pointer}.tnt-direct:disabled{opacity:.45;cursor:default}.tnt-wallet{word-break:break-all}
@media(max-width:640px){.tnt-hud.tnt-skill{top:auto;bottom:24px;padding:15px 16px;width:calc(100vw - 24px)}.tnt-skill .tnt-pump{min-width:128px;padding:10px 14px}.tnt-pump kbd{display:none}.tnt-skill .tnt-strike-row{gap:12px}.tnt-skill .tnt-strike-tip{font-size:12px}.tnt-skill footer{gap:12px}.tnt-announcement{top:220px;font-size:17px;padding:12px 16px}.tnt-money-actions>*{flex:1}.tnt-skill header strong{font-size:17px}}
/* The middle is fixed. A red window and matching Fire button mark a valid hit. */
.tnt-skill .tnt-strike-zone{background:#cbbfb0;border-color:#a9957d}
.tnt-skill .tnt-perfect-zone{background:#f8efdf}
.tnt-skill .tnt-pump{background:#38332e;border:1px solid #38332e;border-radius:4px;box-shadow:none;min-width:144px;font-weight:600;letter-spacing:.01em}
.tnt-skill .tnt-pump:disabled{background:#b6ac9e;border-color:#b6ac9e;color:#f9f4eb;cursor:default}
.tnt-skill.tnt-on-target .tnt-strike-zone{background:#c24232;border-color:#902c24}
.tnt-skill.tnt-on-target .tnt-perfect-zone{background:#f3b2a1}
.tnt-skill.tnt-on-target .tnt-pump:not(:disabled){background:#ad3027;border-color:#ad3027}
/* A readable pointer and a clean return between strikes. */
.tnt-skill .tnt-strike-track{height:28px;margin:7px 7px 16px;border-radius:5px;background:#ded5c6;box-shadow:none;touch-action:manipulation}
.tnt-skill .tnt-strike-needle{width:4px;top:-5px;height:38px;background:#272623;border-radius:2px;box-shadow:0 0 0 2px #fff8e8;will-change:left;pointer-events:none}
.tnt-skill .tnt-strike-needle:before{width:14px;height:10px;left:-5px;top:-4px;background:#272623;clip-path:polygon(0 0,100% 0,50% 100%)}
.tnt-skill .tnt-strike-needle:after{content:'';position:absolute;bottom:-4px;left:-5px;width:14px;height:10px;background:#272623;clip-path:polygon(50% 0,100% 100%,0 100%)}
.tnt-focused #scene{cursor:crosshair}.tnt-focused #pp-panel,.tnt-focused #mapdock-actions{visibility:hidden;pointer-events:none}
.tnt-skill .tnt-pump{touch-action:none;user-select:none;-webkit-user-select:none}
.tnt-skill .tnt-pump:focus-visible{outline:3px solid #315db0;outline-offset:4px}
