/* Pinglingo palette on the shadcn variables, plus the few properties the site's unlayered Tailwind v3 preflight would otherwise reset
   in Basecoat's layered CSS (/assets/vendor/basecoat/1.0.2/basecoat.min.css). Load it right after Basecoat, on the pages that use it. */
:root {
  --radius: 0.75rem;
  --background: #FBF6EC; --foreground: #2A211A;
  --card: #FFFDF8; --card-foreground: #2A211A;
  --popover: #FFFDF8; --popover-foreground: #2A211A;
  --primary: #C0552F; --primary-foreground: #FBF6EC;
  --secondary: #F3E9D8; --secondary-foreground: #2A211A;
  --muted: #F3E9D8; --muted-foreground: #6F6256;
  --accent: #F3E9D8; --accent-foreground: #2A211A;
  --border: rgba(42, 33, 26, 0.12); --input: rgba(42, 33, 26, 0.16); --ring: #C0552F;
}
.card { text-decoration: none; color: var(--card-foreground); border: 1px solid var(--border); }
a.card { transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: rgba(192, 85, 47, 0.45); box-shadow: 0 6px 18px -10px rgba(158, 67, 34, 0.45); }
.card h2, .card h3 { font-family: "Hanken Grotesk", system-ui, sans-serif; letter-spacing: -0.01em; }
a.btn, .btn { text-decoration: none; color: var(--primary-foreground); background-color: var(--primary); height: 2.25rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px); font-size: 0.875rem; font-weight: 500; gap: 0.5rem; cursor: pointer; }
.btn:hover { background-color: color-mix(in srgb, var(--primary) 90%, #000); }
.btn-sm { height: 2rem; padding: 0 0.75rem; }
.btn-lg { height: 2.5rem; padding: 0 1.5rem; }
.btn-secondary { color: var(--secondary-foreground); background-color: var(--secondary); }
.btn-secondary:hover { background-color: color-mix(in srgb, var(--secondary) 90%, #000); }
.btn-outline { color: var(--foreground); border: 1px solid var(--input); background-color: transparent; }
.btn-outline:hover { background-color: var(--accent); }
.badge, .badge-outline, .badge-secondary { border: 1px solid transparent; }
.badge-outline { display: inline-flex; align-items: center; border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 500; line-height: 1.4; border-color: var(--border); color: var(--foreground); }
.input, select.select { border: 1px solid var(--input); background: var(--card); color: var(--foreground); }
.input:focus-visible, select.select:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(192, 85, 47, 0.18); }
.table th, .table td { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }

/* hubs */
.hub-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 12px; margin-bottom: 0.25rem; }
a.card > footer, .card > footer.hub-foot { padding-inline: 1.5rem; gap: 0.5rem; flex-wrap: wrap; justify-content: space-between; }
a.card > header > h3, a.card > header > h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.card > section { padding-inline: 1.5rem; }
a.card { height: 100%; }
a.card > header { flex: 1; }
.hub-link { color: var(--primary); font-weight: 600; font-size: 0.9375rem; }

/* studio — Bootstrap-named classes (studio.css) restyled to the shadcn look, only inside .sc-studio (a wrapper the Studio pages add).
   The markup, ids and htmx/Alpine hooks of those pages stay as they were. */
.sc-studio { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--foreground); }
.sc-studio h1, .sc-studio h2, .sc-studio h3, .sc-studio h4, .sc-studio h5 { font-family: "Hanken Grotesk", system-ui, sans-serif; letter-spacing: -0.015em; font-weight: 600; }
.sc-studio .text-muted, .sc-studio small.text-muted { color: var(--muted-foreground) !important; }
.sc-studio code { background: var(--muted); color: var(--foreground); padding: 1px 6px; border-radius: 6px; font-size: 0.85em; }
.sc-studio a:not(.btn):not(.nav-link) { color: var(--primary); }

.sc-studio .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; font-weight: 500; line-height: 1; border-radius: calc(var(--radius) - 2px); border: 1px solid transparent; cursor: pointer; text-decoration: none; background: var(--primary); color: var(--primary-foreground); }
.sc-studio .btn:hover { background: color-mix(in srgb, var(--primary) 90%, #000); }
.sc-studio .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(192, 85, 47, 0.25); }
.sc-studio .btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; border-radius: calc(var(--radius) - 2px); }
.sc-studio .btn-primary { background: var(--primary); color: var(--primary-foreground); }
.sc-studio .btn-success { background: #2F7D4E; color: #fff; }
.sc-studio .btn-success:hover { background: #276a42; }
.sc-studio .btn-danger { background: #C0392B; color: #fff; }
.sc-studio .btn-danger:hover { background: #a63023; }
.sc-studio .btn-warning { background: #E8A33D; color: #2A211A; }
.sc-studio .btn-secondary, .sc-studio .btn-light, .sc-studio .btn-info { background: var(--secondary); color: var(--secondary-foreground); }
.sc-studio .btn-secondary:hover, .sc-studio .btn-light:hover, .sc-studio .btn-info:hover { background: color-mix(in srgb, var(--secondary) 88%, #000); }
.sc-studio .btn-dark { background: var(--foreground); color: var(--background); }
.sc-studio [class*="btn-outline-"] { background: transparent; color: var(--foreground); border-color: var(--input); }
.sc-studio [class*="btn-outline-"]:hover { background: var(--accent); }
.sc-studio .btn-outline-danger { color: #C0392B; }
.sc-studio .btn-outline-success { color: #2F7D4E; }
.sc-studio .btn-outline-primary { color: var(--primary); }
.sc-studio .btn:disabled, .sc-studio .btn.disabled { opacity: 0.5; pointer-events: none; }

.sc-studio .form-control, .sc-studio .form-select, .sc-studio textarea.form-control { display: block; width: 100%; min-height: 2.25rem; padding: 0.375rem 0.75rem; font-size: 0.875rem; line-height: 1.4; color: var(--foreground); background-color: var(--card); border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); box-shadow: 0 1px 2px rgba(42, 33, 26, 0.05); }
.sc-studio .form-control-sm, .sc-studio .form-select-sm { min-height: 2rem; padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
.sc-studio .form-control:focus, .sc-studio .form-select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(192, 85, 47, 0.18); }
.sc-studio .form-label { font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--foreground); }
.sc-studio .form-text { font-size: 0.75rem; color: var(--muted-foreground); }
.sc-studio .form-check-input { accent-color: var(--primary); }

.sc-studio .card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(42, 33, 26, 0.05); gap: 0; padding: 0; }
.sc-studio .card-body { padding: 1.25rem; }
.sc-studio .card-header { padding: 0.875rem 1.25rem; background: transparent; border-bottom: 1px solid var(--border); font-weight: 600; }
.sc-studio .card-title { font-size: 1rem; font-weight: 600; }

.sc-studio .table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: transparent; }
.sc-studio .table > :not(caption) > * > * { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); background: transparent; box-shadow: none; }
.sc-studio .table thead th { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); text-align: left; }
.sc-studio .table-sm > :not(caption) > * > * { padding: 0.4rem 0.6rem; }
.sc-studio .table-hover > tbody > tr:hover > * { background: var(--accent); }
.sc-studio .table tbody tr:last-child > * { border-bottom: 0; }

.sc-studio .badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 500; line-height: 1.4; background: var(--secondary); color: var(--secondary-foreground); border: 1px solid transparent; }
.sc-studio .badge.bg-success { background: #DFF0E5 !important; color: #1F5E38 !important; }
.sc-studio .badge.bg-danger { background: #F7DEDA !important; color: #8E2A1F !important; }
.sc-studio .badge.bg-warning { background: #FBEBCB !important; color: #7A4F0D !important; }
.sc-studio .badge.bg-info { background: #DCE6F7 !important; color: #2B4A86 !important; }
.sc-studio .badge.bg-primary { background: var(--primary) !important; color: var(--primary-foreground) !important; }
.sc-studio .badge.bg-secondary { background: var(--secondary) !important; color: var(--secondary-foreground) !important; }

.sc-studio .alert { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.875rem; background: var(--card); color: var(--foreground); }
.sc-studio .alert-info { background: #EEF3FB; border-color: #CBD9F0; color: #2B4A86; }
.sc-studio .alert-success { background: #EAF5EE; border-color: #BFDFCB; color: #1F5E38; }
.sc-studio .alert-warning { background: #FDF3DF; border-color: #F1D9A3; color: #7A4F0D; }
.sc-studio .alert-danger { background: #FBEAE7; border-color: #EBC1BB; color: #8E2A1F; }
a.card > header { align-content: start; }
.card h2, .card h3 { font-weight: 600; }
.card h3 { font-size: 1.125rem; line-height: 1.25; }

/* studio — Tailwind-class Studio pages (games, screens, player): textarea and checkbox to match .input */
.textarea, .sc-studio textarea.textarea { display: block; width: 100%; min-height: 4rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--foreground); background: var(--card); border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); box-shadow: 0 1px 2px rgba(42, 33, 26, 0.05); }
.textarea:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(192, 85, 47, 0.18); }
.sc-studio input[type="checkbox"], .sc-studio input[type="radio"] { accent-color: var(--primary); }
.sc-studio .input, .sc-studio select.select { width: 100%; height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; border-radius: calc(var(--radius) - 2px); box-shadow: 0 1px 2px rgba(42, 33, 26, 0.05); }
.sc-studio .btn-ghost { background: transparent; color: var(--muted-foreground); }
.sc-studio .btn-ghost:hover { background: var(--accent); color: var(--foreground); }
.sc-studio .btn-outline { background: transparent; color: var(--foreground); border-color: var(--input); }

/* studio — variants on links: `a.btn` (specificity 0,1,1) outranks the single-class variants, so restate them with two classes */
a.btn.btn-outline, .btn.btn-outline { background-color: transparent; color: var(--foreground); border: 1px solid var(--input); }
a.btn.btn-outline:hover, .btn.btn-outline:hover { background-color: var(--accent); }
a.btn.btn-secondary, .btn.btn-secondary { background-color: var(--secondary); color: var(--secondary-foreground); }
a.btn.btn-ghost, .btn.btn-ghost { background-color: transparent; color: var(--foreground); }
a.btn.btn-ghost:hover, .btn.btn-ghost:hover { background-color: var(--accent); }

/* leftovers B */
