/* PIXEL SKIN (owner, November 12, 2026: "a user suggested things like this for the ui can we clean it up and mimic this style").
   Cream panels, navy ink, stepped pixel edges and hard shadows (titles in the game's own font), layered over the existing
   stylesheets: it changes how things look, never where they sit. Made by make-skin.mjs (the frames are drawn there).
   Loaded last from index.html. Remove the one link to go back. */
/* NO PIXEL FONT (owner, November 5: "no pixel font"; again November 12): titles are set in the game's own font, heavy. The frames stay pixel. */
:root {
  --paper: #fdf1d7; --paper-2: #f4e4c3; --paper-3: #e8d5ad; --ink: #24314d; --muted: #5a6580; --line: #dccaa2;
  --cobalt: #1f5fe8; --cobalt-ink: #1a4cc4; --gold: #f2b632;
  --shadow: 0 5px 0 rgba(20, 28, 48, .26);
  --px-navy: #24314d; --px-font: Geist, system-ui, sans-serif;
  --pxf-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%2324314d'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%2324314d'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%2324314d'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%2324314d'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%2324314d'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%2324314d'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%2324314d'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%2324314d'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%2324314d'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%23fffaf0'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%23fffaf0'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%23fdf1d7'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%23fdf1d7'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%23fdf1d7'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%23fdf1d7'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%23fdf1d7'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%23fdf1d7'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%23fdf1d7'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%23fdf1d7'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%23fdf1d7'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%23e9d6ac'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%23e9d6ac'/%3E%3C/svg%3E");
  --pxf-cream-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%2324314d'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%2324314d'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%2324314d'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%2324314d'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%2324314d'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%2324314d'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%2324314d'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%2324314d'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%2324314d'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%2324314d'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%23fff8e6'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%23fff8e6'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%23fff8e6'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%23fff8e6'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%23fff8e6'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%23fff8e6'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%23fff8e6'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%23fff8e6'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%23fff8e6'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%23efdcb4'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%23efdcb4'/%3E%3C/svg%3E");
  --pxf-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%23182238'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%23182238'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%23182238'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%23182238'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%23182238'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%23182238'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%23182238'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%23182238'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%23182238'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%23182238'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%233d5380'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%233d5380'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%232f4166'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%232f4166'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%232f4166'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%232f4166'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%232f4166'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%232f4166'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%232f4166'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%232f4166'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%232f4166'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%23222f4b'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%23222f4b'/%3E%3C/svg%3E");
  --pxf-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%23122c78'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%23122c78'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%23122c78'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%23122c78'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%23122c78'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%23122c78'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%23122c78'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%23122c78'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%23122c78'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%23122c78'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%234b85ff'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%234b85ff'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%231f5fe8'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%231f5fe8'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%231f5fe8'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%231f5fe8'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%231f5fe8'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%231f5fe8'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%231f5fe8'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%231f5fe8'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%231f5fe8'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%231746b4'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%231746b4'/%3E%3C/svg%3E");
  --pxf-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%236b4708'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%236b4708'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%236b4708'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%236b4708'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%236b4708'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%236b4708'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%236b4708'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%236b4708'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%236b4708'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%236b4708'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%23ffd978'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%23ffd978'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%23f6bf3c'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%23f6bf3c'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%23f6bf3c'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%23f6bf3c'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%23f6bf3c'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%23f6bf3c'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%23f6bf3c'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%23f6bf3c'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%23f6bf3c'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%23d99a1c'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%23d99a1c'/%3E%3C/svg%3E");
  --pxf-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='17' viewBox='0 0 15 17' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='3' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='4' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='5' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='6' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='7' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='8' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='9' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='10' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='11' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='0' y='12' width='15' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='13' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='1' y='14' width='13' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='2' y='15' width='11' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='16' width='7' height='1' fill='rgba(20,28,48,.3)'/%3E%3Crect x='4' y='0' width='7' height='1' fill='%233d0f17'/%3E%3Crect x='2' y='1' width='11' height='1' fill='%233d0f17'/%3E%3Crect x='1' y='2' width='13' height='1' fill='%233d0f17'/%3E%3Crect x='1' y='3' width='13' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='4' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='5' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='6' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='7' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='8' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='9' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='0' y='10' width='15' height='1' fill='%233d0f17'/%3E%3Crect x='1' y='11' width='13' height='1' fill='%233d0f17'/%3E%3Crect x='1' y='12' width='13' height='1' fill='%233d0f17'/%3E%3Crect x='2' y='13' width='11' height='1' fill='%233d0f17'/%3E%3Crect x='4' y='14' width='7' height='1' fill='%233d0f17'/%3E%3Crect x='5' y='1' width='5' height='1' fill='%23ad4252'/%3E%3Crect x='3' y='2' width='9' height='1' fill='%23ad4252'/%3E%3Crect x='2' y='3' width='11' height='1' fill='%238f2c3b'/%3E%3Crect x='2' y='4' width='11' height='1' fill='%238f2c3b'/%3E%3Crect x='1' y='5' width='13' height='1' fill='%238f2c3b'/%3E%3Crect x='1' y='6' width='13' height='1' fill='%238f2c3b'/%3E%3Crect x='1' y='7' width='13' height='1' fill='%238f2c3b'/%3E%3Crect x='1' y='8' width='13' height='1' fill='%238f2c3b'/%3E%3Crect x='1' y='9' width='13' height='1' fill='%238f2c3b'/%3E%3Crect x='2' y='10' width='11' height='1' fill='%238f2c3b'/%3E%3Crect x='2' y='11' width='11' height='1' fill='%238f2c3b'/%3E%3Crect x='3' y='12' width='9' height='1' fill='%236c1e2a'/%3E%3Crect x='5' y='13' width='5' height='1' fill='%236c1e2a'/%3E%3C/svg%3E");
}

/* STEPPED FRAMES: the frame is a border image that fills the box, so nothing moves. --pxf picks the color. */
.pill, .brand, .btn, .tag, .md-action, .close, .jump, .autorun-btn, .door-prompt button, .fish-prompt button, .tour-pill, .brrr-entry,
.skill-leave, .skill-action, .skill-status, .seg button, .chat-tab, .lb-act, .mm-compass, .sheet-back, .pill-cta, .fish-hud, .emotes, .event-pill, .cam-done, .pc-step button, .inv-cat,
.pm-tile, .pm-trial, #toast, .voice-join, .discord-btn, .chat-form button, .chat-min, .granny-near, .pc-choice, .inv-tile, .net-banner, .cw-phone-btn {
  --pxf: var(--pxf-cream);
  border: 0 solid transparent !important; border-image: var(--pxf) 5 5 7 5 fill / 10px 10px 14px 10px / 0 0 4px 0 stretch !important;
  background: none !important; box-shadow: none !important; border-radius: 10px !important; image-rendering: pixelated;
}
.pill:hover, .btn.ghost:hover, .md-action:hover, .close:hover, .jump.down, .seg button:hover, .lb-act:hover { --pxf: var(--pxf-cream-on); }
:is(.pill, .btn, .md-action, .close, .jump, .door-prompt button, .fish-prompt button, .skill-action, .skill-leave, .seg button, .lb-act, .chat-tab):active { filter: brightness(.94); }
.pill, .brand, .btn.ghost, .close, .jump, .autorun-btn, .skill-leave, .skill-status, .seg button, .lb-act, .mm-compass, .fish-prompt button, .emotes, .cam-done { color: var(--ink) !important; }
/* navy */
.md-action, .door-prompt button, .tag.place, .tour-pill, .pill-cta, .fish-hud, .menu-btn[aria-expanded="true"], .seg button[aria-pressed="true"], .chat-tab[aria-selected="true"],
.minimap.mm-north .mm-compass, .pc-step button[aria-selected="true"], .inv-cat[aria-pressed="true"], .inv-cat[aria-selected="true"] { --pxf: var(--pxf-navy); color: #fff6e0 !important; }
.md-action:hover { --pxf: var(--pxf-navy); filter: brightness(1.12); }
/* blue: the one main action, and you */
.btn:not(.ghost), .tag.you, #link-wallet, .skill-action, .event-pill { --pxf: var(--pxf-blue); color: #fff !important; }
.btn:not(.ghost):hover, #link-wallet:hover, .skill-action:hover { filter: brightness(1.08); }
.fish-prompt.alert button, .pm-trial { --pxf: var(--pxf-gold); color: #3d2a05 !important; }
#toast, .chat-form button:not(:disabled), .net-banner { --pxf: var(--pxf-navy); color: #fff6e0 !important; }
.discord-btn, .pm-footer .pm-tile:last-child { --pxf: var(--pxf-blue); color: #fff !important; }
.pm-footer .pm-tile:last-child :is(strong, small, svg) { color: #fff; }
.pm-tile, .voice-join, .chat-min, .granny-near, .pc-choice, .inv-tile, .cw-phone-btn { color: var(--ink) !important; }
/* LOOP CITY FIT: the Loop Phone button wears the frame of the other HUD buttons */
.cw-phone-btn:hover { --pxf: var(--pxf-cream-on); }
.cw-phone-btn .cw-phone-icon { border-color: var(--px-navy); }
.cw-phone-btn .cw-phone-icon::after { background: var(--px-navy); }
.pm-tile:hover, .voice-join:hover, .chat-min:hover, .pc-choice:hover, .inv-tile:hover { --pxf: var(--pxf-cream-on); }
.pc-choice[aria-pressed="true"], .inv-tile.on { --pxf: var(--pxf-gold); }
.granny-near::after { border-top-color: var(--px-navy) !important; bottom: -9px !important; }
.pm-ic { border-radius: 6px !important; background: #fffaf0 !important; box-shadow: 0 0 0 2px var(--px-navy) !important; }
.pm-head, .pm-group > h3, .pm-group > header { font-family: var(--px-font); }
.pm-head { font-size: 24px; }
.brrr-entry { --pxf: var(--pxf-red); }
.btn:disabled { filter: saturate(.4); }
.tag { border-image-width: 8px 8px 11px 8px !important; border-image-outset: 0 0 3px 0 !important; padding: 4px 9px 5px; }
.md-action svg { stroke: currentColor; }
.pill .ink { background: var(--px-navy); color: #fff6e0; border-radius: 4px; }
.menu-dot, .quest-badge { border-radius: 5px !important; box-shadow: 0 0 0 2px var(--paper) !important; }

/* PANELS: a navy edge and a hard drop, square-ish corners (their insides scroll and stick, so no border image here) */
#sheet, .chat, .gd-box, .pm-panel, .pb-card, .zm-card, .reel, .toast, .menu-panel, .lb-sheet, .consent, .welcome-card, .voice-panel, .help, .tc-card, dialog {
  border-radius: 14px !important; box-shadow: 0 0 0 3px var(--px-navy), 0 8px 0 3px rgba(20, 28, 48, .28) !important;
}
.chat.min { box-shadow: 0 0 0 3px var(--px-navy), 0 4px 0 3px rgba(20, 28, 48, .28) !important; }
@media (max-width: 640px), (pointer: coarse) { .chat.min { border-radius: 10px !important; } .chat.min .chat-toggle { border-radius: 10px; } }

/* PHONES: the docked buttons carry their own round paper rules, so say it again with their weight */
html body.map-docked #app#app :is(.map-dock, .mobile-toolbar) .md-action { --pxf: var(--pxf-navy); border: 0 solid transparent !important; border-image: var(--pxf) 5 5 7 5 fill / 10px 10px 14px 10px / 0 0 4px 0 stretch !important; box-shadow: none !important; background: none !important; border-radius: 10px !important; color: #fff6e0 !important; }
html body.map-docked #app#app :is(.map-dock, .mobile-toolbar) .md-action::before { display: none !important; }
html body.map-docked #app#app :is(.map-dock, .mobile-toolbar) .md-action[aria-expanded="true"] { --pxf: var(--pxf-blue); }
html body.map-docked #app#app .mobile-toolbar #open-menu { background: none !important; --pxf: var(--pxf-cream); border: 0 solid transparent !important; border-image: var(--pxf) 5 5 7 5 fill / 10px 10px 14px 10px / 0 0 4px 0 stretch !important; box-shadow: none !important; border-radius: 10px !important; }

/* THE WELCOME CARD */
.gate-card { border-radius: 14px !important; box-shadow: 0 0 0 3px var(--px-navy), 0 8px 0 3px rgba(20, 28, 48, .28) !important; }
.gate.fv h1, .gate.fv h2, .fv-brand-name { font-family: var(--px-font); letter-spacing: 0; }
.gate.fv input { border: 2px solid var(--px-navy) !important; border-radius: 8px !important; background: #fffaf0; }
.fv-dice, .fv-x { --pxf: var(--pxf-cream); border: 0 solid transparent !important; border-image: var(--pxf) 5 5 7 5 fill / 10px 10px 14px 10px / 0 0 4px 0 stretch !important; background: none !important; box-shadow: none !important; border-radius: 10px !important; color: var(--ink) !important; }
.fv-look { border-radius: 10px !important; }
.load-track, #loading-bar { border-radius: 2px !important; }

/* TITLES in the pixel font */
.sheet-inner h2, .sheet-inner h3, .brand strong, .jump, .reel-side small, .gd-name, .welcome-card h1, .welcome-card h2, .pc-name, .inv-cat b, .tag.place, .menu-panel h3, .tc-title { font-family: var(--px-font); }
.sheet-inner h2 { font-size: 26px; letter-spacing: 0; }
.sheet-inner h3 { font-size: 15px; letter-spacing: .04em; color: var(--ink); }
.jump { font-size: 19px; }

/* SMALL PARTS */
.pm-footer .pm-tile:last-child .pm-ic { background: none !important; box-shadow: none !important; }
#sheet [role="tablist"], .c-shelf-filters { border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--px-navy); padding: 4px; }
/* the Profile tab row runs under the sheet's close button (styles.css keeps 62px clear for it): its frame is drawn by its own ::before, inside that reserve, so the last tab is never under the button */
#sheet .pf-tabs { border-radius: 0; background: var(--paper); box-shadow: none; }
#sheet .pf-tabs::before { border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--px-navy); }
#sheet [role="tab"], .c-shelf-button { border-radius: 7px !important; box-shadow: none !important; color: var(--ink); }
#sheet [role="tab"][aria-selected="true"], .c-shelf-button[aria-pressed="true"], .c-shelf-button.on { background: var(--px-navy) !important; color: #fff6e0 !important; box-shadow: 0 3px 0 rgba(20, 28, 48, .3) !important; }
.ew-entry, .c-shelf-group, .pc-preview, .inv-search { border: 2px solid var(--px-navy) !important; border-radius: 10px !important; background: #fffaf0; }
/* CAREER SHELF FIT: a framed group keeps its words off the frame */
.c-shelf-group > .c-shelf-summary { padding: 10px 14px; }
.c-shelf-group > .c-shelf-list { padding: 0 14px 2px; }
.c-shelf-group[open] > .c-shelf-summary { border-bottom: 1px solid #e3dccb; }
.c-shelf-group .c-shelf-row:first-child { border-top: 0; }
.avatar { box-shadow: 0 0 0 3px var(--px-navy); }
.chip { border-radius: 5px; }
.tabs button { border-radius: 8px; }
.tabs button[aria-selected="true"] { background: var(--px-navy); color: #fff6e0; box-shadow: 0 3px 0 rgba(20, 28, 48, .3); }
.sheet-inner input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), .sheet-inner select, .sheet-inner textarea, .chat-form input { border: 2px solid var(--px-navy); border-radius: 8px; background: #fffaf0; }
kbd { border-radius: 4px; border: 2px solid var(--px-navy); background: var(--paper); color: var(--ink); font-family: var(--px-font); }

/* THE STICK, JUMP and the MAP */
.joy { background: rgba(16, 19, 26, .82); box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(16, 19, 26, .82); }
.knob { background: var(--paper); box-shadow: 0 0 0 3px var(--px-navy), 0 4px 0 3px rgba(0, 0, 0, .35); }
html body.sp-hud .joy { background: rgba(16, 19, 26, .42); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); opacity: .85; }
html body.sp-hud .joy.active { background: rgba(16, 19, 26, .6); opacity: 1; }
html body.sp-hud .joy .knob { background: var(--paper); box-shadow: 0 0 0 3px var(--px-navy); }
.mm-face { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--px-navy), 0 6px 0 7px rgba(20, 28, 48, .28) !important; }

/* FISHING: a cream card, navy tracks, pixel labels */
.reel { background: var(--paper) !important; color: var(--ink); }
.reel.big { box-shadow: 0 0 0 3px var(--px-navy), 0 0 0 6px var(--gold), 0 8px 0 6px rgba(20, 28, 48, .28) !important; }
.reel-side small { font-size: 11px; color: var(--ink); letter-spacing: 0; }
.reel-fish svg { width: 40px; height: 23px; }
.reel-label { font-family: var(--px-font); }
.reel-track { border-radius: 10px; background: linear-gradient(#9ad6ff, #4fa9ee); box-shadow: inset 0 0 0 3px #7cc4f6, 0 0 0 3px var(--px-navy); }
.reel-zone { border-radius: 8px; background: rgba(253, 241, 215, .5); box-shadow: inset 0 0 0 3px #f6e3a6; }
.reel-zone.on { background: rgba(255, 233, 150, .7); box-shadow: inset 0 0 0 3px var(--gold); }
.reel .bar { width: 16px; border-radius: 8px; background: #2f4166; box-shadow: 0 0 0 3px var(--px-navy); }
.reel .bar i { background: #f6c94a; border-radius: 6px; }
.reel .bar.tension i { background: #6fc3ff; }
.reel p { color: var(--ink); font-weight: 650; font-size: 12px; }
.reel-fish { color: #f39a1d; filter: drop-shadow(0 2px 0 rgba(20, 28, 48, .45)); }
.fish-hud .meter { height: 12px; border-radius: 4px; background: #182238; box-shadow: 0 0 0 2px #182238; }
.fish-hud .meter b { background: #5db3f2; border-radius: 3px; }
