/* Tipscale — kolory z shared/portal.css */
.ts { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px 16px 12px; max-width: 1060px; width: 100%; margin: 0 auto; }
.scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 2px 2px; }
.scale svg { display: block; width: 100%; height: auto; }
.scales .scale:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.stand, .beam { stroke: var(--muted); stroke-linecap: round; }
.stand { stroke-width: 3; } .beam { stroke-width: 4; stroke: var(--ink); }
.base { fill: var(--muted); } .pivot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.string { stroke: var(--muted); stroke-width: 1; }
.pan { fill: var(--line); stroke: var(--muted); stroke-width: 1; }
.sh { stroke: rgba(0,0,0,.35); stroke-width: .8; stroke-linejoin: round; }
.blk { fill: #8a949c; stroke: #5f6a72; stroke-width: .8; stroke-linejoin: round; }
.blk-t { fill: #fff; font-weight: 800; font-family: system-ui, sans-serif; }
.board { display: flex; flex-direction: column; gap: 10px; }
.grid { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.gh, .gr { display: grid; grid-template-columns: repeat(5, 52px); gap: 6px; justify-items: center; }
.gr.later { opacity: .45; } .gr.hide { display: none; }
.cell {
  position: relative; width: 52px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface);
  color: var(--ink); font: 800 22px/1 system-ui, sans-serif; display: grid; place-items: center; padding: 0; cursor: pointer;
}
.cell.empty { cursor: default; background: transparent; border-style: dashed; }
.cell.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cell.ok { background: var(--hit); border-color: var(--hit); color: #fff; cursor: default; }
.cell.miss { background: color-mix(in srgb, var(--line) 60%, var(--surface)); cursor: default; }
.cell .arr { position: absolute; right: 4px; top: 3px; font: 700 11px/1 system-ui, sans-serif; font-style: normal; color: var(--far); }
.pad { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; max-width: 460px; width: 100%; margin: 0 auto; }
.key {
  height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 800 20px/1 system-ui, sans-serif; cursor: pointer; padding: 0;
}
.key:active { transform: scale(.94); }
.key.used { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.key.ruled { opacity: .35; text-decoration: line-through; }
.key.del { font-size: 18px; }
.board .primary { max-width: 460px; margin: 0 auto; }
.status { margin: 0; text-align: center; font-size: 15px; min-height: 1.4em; color: var(--muted); }
.status b { color: var(--ink); }
.helpart { max-width: 220px; margin: 0 auto 8px; background: var(--bg); border-radius: var(--radius); }
.helpart svg { display: block; width: 100%; height: auto; }
.howto { padding-left: 20px; margin: 0 0 10px; } .howto li { margin-bottom: 6px; }
.legend { font-size: 15px; }
.big { font: 800 36px/1 system-ui, sans-serif; margin: 4px 0; font-variant-numeric: tabular-nums; }
.emoji { font-size: 24px; line-height: 1.3; letter-spacing: 2px; margin: 6px 0 10px; }
.statsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 14px 0 6px; }
.statsgrid b { display: block; font-size: 22px; } .statsgrid span { font-size: 11px; color: var(--muted); }
.another { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: 14px; margin: 8px 0; }
.another:hover { border-color: var(--accent); }
@media (min-width: 760px) {
  .ts { flex-direction: row; align-items: flex-start; gap: 20px; padding-top: 18px; }
  .scales { flex: 1.7; }
  .board { flex: 1; position: sticky; top: 12px; }
  .gh, .gr { grid-template-columns: repeat(5, 58px); }
  .cell { width: 58px; height: 50px; }
}
