:root {
    --brass: #9be2dc;
    --mint: #b5e4df;
    --muted: #b2ccd0;
    --line: #355966;
    --panel: #132a34;
    --header-accent: #9be2dc;
    --arcade-audio-surface: #162f37;
    --arcade-audio-border: #537e85;
    --arcade-audio-accent: #a0e6e0;
}
body { background: radial-gradient(ellipse at 63% 8%,#1d4352,#0d1c2a 72%); color: #e3f4f5; }
.arcade-topbar { --header-accent: #a1e0da; }
.arcade-mark.tb-insignia { background: #1b3a47; border-color: #487784; }
.tb-insignia::before { width: 19px; height: 8px; top: 16px; border: 0; transform: none; background: #9be2dc; clip-path: polygon(0 0,100% 0,74% 95%,21% 95%); }
.tb-insignia i { width: 12px; height: 6px; top: 10px; transform: none; background: #b1e5e2; clip-path: polygon(0 100%,17% 20%,56% 20%,56% 0,72% 0,72% 45%,100% 45%,100% 100%); }
.tb-hero { border-color: #446575; background: #122d3b; }
.tb-hero > img { object-position: 65% 54%; }
.tb-hero::after { background: linear-gradient(90deg,#081e2aef,#0b243395 40%,transparent 75%),linear-gradient(0deg,#0b212794,transparent 48%); }
.tb-hero h1 { color: #e5f6f6; text-shadow: 0 3px 22px #0c1b24; }
.tb-hero p { color: #d3eaec; }
.tb-primary { color: #0c272d; background: #9be2dc; border-color: #b4eeea; }
.tb-primary:hover:not(:disabled) { background: #c7faf1; }
.tb-outline, .tb-subtle, .tb-progress, .tb-command, .tb-tabs button { background: #17323d; border-color: #426771; color: #d4eaec; }
.tb-outline:hover:not(:disabled), .tb-subtle:hover:not(:disabled), .tb-tabs button[aria-pressed=true] { color: #b9f5ef; }
.tb-field, .tb-field.tb-enemy { border-color: #436b78; background: #11232e; }
.tb-enemy.tb-field { background: #162739; }
.tb-board { background: linear-gradient(#0a2e3960,#0a263267),url(amiral-batti-water.webp) center/cover; }
.tb-enemy .tb-board { border-color: #7497a5; background-image: linear-gradient(#21445439,#11273d88),url(amiral-batti-water.webp); }
.tb-letters span, .tb-numbers span { color: #b9d9dc; }
.tb-cell { border-color: #ace3df43; color: #ddfcf6; }
.tb-cell.tb-placed { background: #9acbd629; }
.tb-cell.tb-selected { background: #94e1da58; box-shadow: inset 0 0 0 2px #b6f7ec; }
.tb-cell:not([aria-disabled=true]):hover, .tb-cell:focus-visible { box-shadow: inset 0 0 0 2px #b6f7ec; background-color: #78c8d573; }
.tb-cell[data-mark=miss] { background: radial-gradient(circle,#b7e5e3b0 5%,transparent 11% 29%,#a4e2e369 32% 37%,transparent 40%); }
.tb-cell[data-mark=miss] .tb-cell-mark { opacity: 0; }
.tb-cell[data-mark=hit] { background: #b458406f; box-shadow: inset 0 0 0 1px #f2a17785; color: #ffd1ad; }
.tb-cell[data-mark=destroyed] { background: repeating-linear-gradient(135deg,#1a2a32b5 0 4px,#9846378f 4px 6px); box-shadow: inset 0 0 0 1px #d19e99; }
.tb-machine-piece {
    position: absolute; inset: 16% 8%; border: 1px solid #0a2028;
    clip-path: polygon(0 27%,17% 14%,74% 10%,91% 28%,100% 50%,91% 72%,74% 90%,17% 86%,0 73%);
    background: linear-gradient(#3e5869 12%,#8ba5b3 16%,#cee3dc 21%,#8f7f66 29%,#6b7a79 56%,#bfaa82 60%,#4a6271 76%,#253f50 82%);
    box-shadow: inset 0 0 1px 2px #8eacb9;
}
.tb-machine-piece::before { content: ''; position: absolute; inset: 30% 40% 24% 29%; border: 1px solid #c1d3d8; background: linear-gradient(125deg,#a8b4aa,#4e6172); border-radius: 3px 6px 6px 3px; }
.tb-machine-piece::after { content: ''; position: absolute; inset: 45% 15% 39% 61%; border: 1px solid #304957; background: #a4b6b9; border-radius: 4px; box-shadow: -28px 1px 0 -1px #57707a; }
.tb-engine[data-hp="1"] .tb-machine-piece { filter: saturate(.9) sepia(.55); box-shadow: inset 0 0 7px #e17642; }
.tb-stone { position: absolute; width: 13px; height: 5px; border-radius: 50% 70% 70% 50%; rotate: 15deg; background: linear-gradient(#f5f9df,#a0afaf 45%,#343f44); box-shadow: 0 0 5px #ebdfb680; }
.tb-blast[data-result=miss] { border-color: #b5f5f7; background: #6cd8f951; box-shadow: 0 0 0 4px #b5f5f720,0 0 10px #a9f0f9; }
.tb-blast:is([data-result=hit],[data-result=destroyed]) { background: #f46c456e; box-shadow: 0 0 12px #fa9367; }
dialog { background: #132a35; border-color: #4c7180; color: #e4f4f6; }
@media(max-width: 470px) {
    .tb-hero::after { background: linear-gradient(0deg,#081e2af5 4%,#0a213ca3 40%,transparent 72%); }
    .tb-hero h1 { font-size: clamp(40px,12.8vw,60px); }
}
