/* Taro Games drawing engine (house/sketch.js): the sheet, the toolbar and the ink meter, shared by Doodle Hunch and
   Gallery Night. Colours come from the game's --lb-* variables (house/lobby.css), so each game keeps its own skin.
   The sheet itself is always white paper in both themes (everyone sees the same drawing). */
.sk { --sk-panel: var(--lb-panel, #fff); --sk-panel2: var(--lb-panel2, #f2f4f7); --sk-text: var(--lb-text, #17202a); --sk-muted: var(--lb-muted, #5f6b78);
  --sk-line: var(--lb-line, #d9dee5); --sk-accent: var(--lb-accent, #2f6fe4); --sk-ink-on: var(--lb-ink, #fff); --sk-bad: var(--lb-bad, #d0384b);
  display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.sk-sheet { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--sk-line), 0 6px 20px rgba(20, 20, 40, .10); touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.sk-view { touch-action: manipulation; }
.sk-cv { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.sk-sheet.sk-draw { cursor: crosshair; }
.sk-sheet.sk-draw:has(.sk-ring:not([hidden])) { cursor: none; }
.sk-filling .sk-sheet.sk-draw { cursor: cell; }
.sk-ring { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .8); }
.sk-tags { position: absolute; inset: 0; pointer-events: none; }
.sk-tag { position: absolute; transform: translate(10px, -26px); padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px;
  white-space: nowrap; background: rgba(27, 27, 31, .78); color: #fff; }

/* the toolbar: the palette (16 colours, 2 rows of 8 on a phone, 1 row on a wide screen), then sizes and tools */
.sk-bar { display: flex; flex-direction: column; gap: 6px; }
.sk-bar[hidden] { display: none; }
.sk-pal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
@media (min-width: 900px) { .sk-wide .sk-pal { grid-template-columns: repeat(16, minmax(0, 1fr)); } }
.sk-sw { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; min-width: 0; height: 34px; border-radius: 10px; background: var(--c); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); position: relative; touch-action: manipulation; }
.sk-sw.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px var(--sk-panel), 0 0 0 4px var(--sk-text); }
.sk-sw.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.sk-sw:focus-visible, .sk-tb:focus-visible { outline: 3px solid var(--sk-accent); outline-offset: 2px; }
.sk-sw:disabled, .sk-tb:disabled { cursor: default; opacity: .45; }
.sk-tools { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.sk-tb { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--sk-line); background: var(--sk-panel2);
  color: var(--sk-text); cursor: pointer; display: grid; place-items: center; position: relative; font: inherit; touch-action: manipulation; }
.sk-tb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-tb.on { background: var(--sk-accent); color: var(--sk-ink-on); border-color: var(--sk-accent); }
.sk-size i { display: block; border-radius: 50%; background: var(--sk-col, currentColor); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.sk-size.s0 i { width: 5px; height: 5px; } .sk-size.s1 i { width: 11px; height: 11px; } .sk-size.s2 i { width: 20px; height: 20px; }
.sk-size.on i { box-shadow: 0 0 0 2px var(--sk-ink-on); }
.sk-clear .sk-arm { display: none; }
.sk-clear.arm { background: var(--sk-bad); border-color: var(--sk-bad); color: #fff; }
.sk-clear.arm svg { display: none; }
.sk-clear.arm .sk-arm { display: block; font-size: 13px; font-weight: 700; }
@media (hover: hover) { .sk-tb:not(:disabled):not(.on):hover { background: var(--sk-panel); } .sk-sw:not(:disabled):hover { transform: translateY(-1px); } }

/* the ink meter (ink rounds) */
.sk-ink { position: relative; height: 22px; border-radius: 999px; background: var(--sk-panel2); border: 1px solid var(--sk-line); overflow: hidden; }
.sk-ink[hidden] { display: none; }
.sk-ink i { position: absolute; inset: 0; transform-origin: left center; background: linear-gradient(90deg, #1D4ED8, #4CC9F0); transition: transform .12s linear; }
.sk-ink.low i { background: linear-gradient(90deg, #E5383B, #F77F00); }
.sk-ink span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.sk-ink.out span { color: var(--sk-bad); text-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .sk-ink.shake { animation: sk-shake .32s ease; }
  @keyframes sk-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
}
@media (max-width: 360px) { .sk-sw { height: 30px; } .sk-tb { height: 38px; } }

/* ------------------------------------------------------------ the party kit (house/sketch-party.js): settings and word packs */
.skp-form, .skp-dlg { --skp-panel: var(--lb-panel, #fff); --skp-panel2: var(--lb-panel2, #f2f4f7); --skp-text: var(--lb-text, #17202a); --skp-muted: var(--lb-muted, #5f6b78);
  --skp-line: var(--lb-line, #d9dee5); --skp-accent: var(--lb-accent, #2f6fe4); --skp-on: var(--lb-ink, #fff); --skp-bad: var(--lb-bad, #d0384b); }
.skp-row { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.skp-lbl { font-size: .85rem; color: var(--lb-muted, #5f6b78); font-weight: 500; display: block; margin: 6px 0 4px; }
.skp-row .skp-lbl { margin: 0; }
.skp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.skp-opt { -webkit-appearance: none; appearance: none; border: 1.5px solid var(--skp-line); background: var(--skp-panel); color: var(--skp-text); border-radius: 999px; padding: 6px 12px;
  font: 500 .92rem var(--lb-font, inherit); cursor: pointer; min-height: 36px; touch-action: manipulation; }
.skp-opt.on { background: var(--skp-accent); border-color: var(--skp-accent); color: var(--skp-on); }
.skp-opt:disabled { cursor: default; }
.skp-opt:disabled:not(.on) { opacity: .5; }
.skp-opt:focus-visible, .skp-tab:focus-visible, .skp-btn:focus-visible, .skp-pitem:focus-visible, .skp-link:focus-visible { outline: 3px solid var(--skp-accent); outline-offset: 2px; }
.skp-in { width: 100%; font: 500 1rem var(--lb-font, inherit); padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--lb-line, #d9dee5); background: var(--lb-panel, #fff); color: var(--lb-text, #17202a); }
.skp-ta { resize: vertical; min-height: 96px; line-height: 1.4; }
.skp-in:focus { outline: none; border-color: var(--lb-accent, #2f6fe4); }
.skp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--skp-panel2); border: 1px solid var(--skp-line); margin: 4px 0 12px; }
.skp-tab { -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: var(--skp-muted); border-radius: 10px; min-height: 38px; font: 600 .9rem var(--lb-font, inherit); cursor: pointer; padding: 4px 2px; }
.skp-tab.on { background: var(--skp-panel); color: var(--skp-accent); box-shadow: 0 1px 4px rgba(20, 30, 40, .14); }
.skp-pbody { min-height: 120px; }
.skp-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.skp-pitem { -webkit-appearance: none; appearance: none; width: 100%; text-align: left; border: 1px solid var(--skp-line); background: var(--skp-panel2); color: var(--skp-text); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.skp-pitem b { font-size: 1rem; overflow-wrap: anywhere; }
.skp-pitem span { font-size: .82rem; color: var(--skp-muted); }
@media (hover: hover) { .skp-pitem:hover { border-color: var(--skp-accent); } }
.skp-btn { -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: var(--skp-accent); color: var(--skp-on); font: 700 .95rem var(--lb-font, inherit); padding: 9px 18px; min-height: 42px; cursor: pointer; margin-top: 8px; }
.skp-btn.ghost { background: transparent; color: var(--skp-text); box-shadow: inset 0 0 0 1.5px var(--skp-line); }
.skp-btn:disabled { opacity: .5; }
.skp-link { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--skp-muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; min-height: 32px; }
.skp-link.arm { color: var(--skp-bad); }
.skp-msg { color: var(--skp-bad); min-height: 1.2em; margin: 8px 0 0; }
.skp-ok { color: var(--skp-accent); font-weight: 600; }
.skp-fine { color: var(--skp-muted); font-size: .88rem; }
.skp-ptitle { margin: 4px 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.skp-sample { background: var(--skp-panel2); border-radius: 12px; padding: 10px 12px; font-size: .9rem; overflow-wrap: anywhere; }
.skp-prow, .skp-coderow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.skp-coderow .skp-btn { margin-top: 0; }
.skp-code { max-width: 160px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
