/* CA_Atelier: my work, the set-up screen and the craft table. Colours have fallbacks so the screens look right without the site's own tokens.
   The table is a warm dark workbench in both themes; the pages follow the site (light, with a dark variant). */
.at-page { --at-ink: #1f2937; --at-muted: #64748b; --at-card: #fff; --at-line: #e2e8f0; --at-accent: #b4532a; --at-accent-ink: #fff; --at-soft: #fff7ed;
    max-width: 62rem; margin: 0 auto; padding: 1rem 16px 3rem; color: var(--at-ink); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .at-page { --at-ink: #e5e7eb; --at-muted: #94a3b8; --at-card: #1f2430; --at-line: #334155; --at-accent: #e07a4f; --at-accent-ink: #1b1410; --at-soft: #2a211b; }
}
:root[data-theme="dark"] .at-page { --at-ink: #e5e7eb; --at-muted: #94a3b8; --at-card: #1f2430; --at-line: #334155; --at-accent: #e07a4f; --at-accent-ink: #1b1410; --at-soft: #2a211b; }

.at-page h1 { margin: .2rem 0 .6rem; }
.at-page h2 { font-size: 1.05rem; margin: 1.3rem 0 .5rem; }
.at-lead { max-width: 44rem; }
.at-muted { color: var(--at-muted); }
.at-note { font-size: .9rem; color: var(--at-muted); }
.at-note.warn { color: #9a3412; background: #fff7ed; border: 1px solid #fdba74; border-radius: .5rem; padding: .5rem .75rem; }
.at-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .75rem 0; }
.at-crumb { margin: 0; }
.at-link { background: none; border: 0; padding: 0; color: var(--at-accent); cursor: pointer; font: inherit; }

.at-primary, .at-btn, .at-danger { font: inherit; border-radius: .55rem; border: 1px solid var(--at-accent, #b4532a); cursor: pointer; padding: .55rem 1rem; min-height: 44px; }
.at-primary { background: var(--at-accent, #b4532a); color: var(--at-accent-ink, #fff); font-weight: 600; }
.at-primary:disabled, .at-btn:disabled { opacity: .5; cursor: default; }
.at-btn { background: var(--at-card, #fff); color: var(--at-accent, #b4532a); }
.at-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.at-primary.small, .at-btn.small, .at-danger.small { min-height: 38px; padding: .3rem .7rem; font-size: .9rem; }

/* choosing the craft */
.at-crafts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.at-craft { font: inherit; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; padding: .8rem 1rem; border-radius: .8rem;
    border: 2px solid var(--at-line); background: var(--at-card); color: var(--at-ink); cursor: pointer; }
.at-craft-icon { grid-row: span 2; font-size: 2rem; }
.at-craft b { font-size: 1.1rem; }
.at-craft span:last-child { font-size: .88rem; color: var(--at-muted); }
.at-craft.sel { border-color: var(--at-accent); background: var(--at-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-accent) 25%, transparent); }

.at-settings { display: flex; flex-wrap: wrap; gap: .3rem 2rem; background: var(--at-card); border: 1px solid var(--at-line); border-radius: .7rem; padding: .2rem 1rem .9rem; margin: .8rem 0 .4rem; }
.at-setting h2 { margin: .7rem 0 .45rem; }
.at-checks { flex-basis: 100%; display: grid; gap: .45rem; margin-top: .7rem; }
.at-checks label { display: flex; gap: .55rem; align-items: center; cursor: pointer; }
.at-checks input { width: 1.2rem; height: 1.2rem; accent-color: var(--at-accent); }
.at-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.at-chip { font: inherit; min-width: 3.5rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid #94a3b8; background: var(--at-card); color: var(--at-ink); cursor: pointer; }
.at-chip.sel { background: var(--at-accent); color: var(--at-accent-ink); border-color: var(--at-accent); font-weight: 600; }

/* picking a picture */
.at-group { font-size: .95rem; color: var(--at-muted); margin: 1rem 0 .4rem; font-weight: 600; }
.at-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .7rem; }
.at-pic { position: relative; border: 2px solid transparent; border-radius: .6rem; background: var(--at-card); color: var(--at-ink); padding: .35rem; cursor: pointer; text-align: center; font: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.at-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .4rem; display: block; }
.at-pic span { display: block; margin-top: .3rem; font-size: .88rem; }
.at-pic.sel { border-color: var(--at-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-accent) 25%, transparent); }
.at-own { display: flex; flex-direction: column; justify-content: center; min-height: 7.5rem; }
.at-own .at-plus { font-size: 2rem; }
.at-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.at-chip:focus-visible, .at-pic:focus-visible, .at-craft:focus-visible, .at-swatch:focus-visible { outline: 3px solid color-mix(in srgb, var(--at-accent) 55%, transparent); outline-offset: 2px; }

/* the start bar with the preview: stays at the bottom of the screen */
.at-startbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .8rem; margin: 1.2rem -8px 0; padding: .6rem 8px;
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); background: var(--at-card); border-top: 1px solid var(--at-line); box-shadow: 0 -4px 14px rgba(0, 0, 0, .1); border-radius: .7rem .7rem 0 0; }
.at-preview { position: relative; flex: 0 0 auto; width: 7.5rem; }
.at-preview canvas { display: block; width: 100%; border-radius: .3rem; background: repeating-linear-gradient(45deg, #e5e7eb 0 6px, #f1f5f9 6px 12px); image-rendering: pixelated; }
.at-preview canvas.empty { aspect-ratio: 3 / 2; }
.at-busy { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .35rem; align-items: center; justify-content: center; text-align: center; font-size: .75rem; background: rgba(255, 255, 255, .8); color: #1f2937; border-radius: .3rem; }
.at-bar { width: 75%; height: .3rem; border-radius: .15rem; background: rgba(31, 41, 55, .15); overflow: hidden; }
.at-bar i { display: block; height: 100%; background: var(--at-accent); transition: width .15s linear; }
.at-startinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-startinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-sub { font-size: .85rem; color: var(--at-muted); }

/* my work */
.at-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.at-item { display: grid; grid-template-columns: 8rem 1fr; gap: .4rem .9rem; align-items: center; background: var(--at-card); border: 1px solid var(--at-line); border-radius: .7rem; padding: .6rem; }
.at-thumb { border: 0; padding: 0; background: none; cursor: pointer; }
.at-secret { display: grid; place-items: center; aspect-ratio: 3 / 2; width: 100%; border-radius: .35rem; font-size: 2rem; background: repeating-linear-gradient(45deg, #fde68a 0 8px, #fcd34d 8px 16px); }
.at-secret.cover { position: absolute; inset: 0; aspect-ratio: auto; font-size: 1.6rem; }
.at-thumb img { width: 100%; border-radius: .35rem; display: block; image-rendering: pixelated; }
.at-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.at-actions { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; }
@media (min-width: 640px) { .at-item { grid-template-columns: 8rem 1fr auto; } .at-actions { grid-column: auto; justify-content: flex-end; } }
.at-progress { height: 6px; background: rgba(0, 0, 0, .18); border-radius: 3px; overflow: hidden; }
.at-progress span { display: block; height: 100%; background: #22c55e; transition: width .3s; }
.at-progress.small { height: 5px; background: var(--at-line); }

/* the craft table: a warm dark workbench */
.at-play { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #2a221d; color: #f5efe8; touch-action: none; user-select: none; -webkit-user-select: none;
    padding-bottom: env(safe-area-inset-bottom); --at-accent: #e07a4f; --at-accent-ink: #1b1410; --at-card: #3a2f28; }
.at-top { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem; padding-top: calc(.35rem + env(safe-area-inset-top)); background: #1d1713; }
.at-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-title .at-sub { color: #c9b8a8; }
.at-stats { display: flex; gap: .8rem; font-variant-numeric: tabular-nums; }
.at-play .at-progress { border-radius: 0; height: 4px; }
.at-stage { position: relative; flex: 1; min-height: 0; background: radial-gradient(ellipse at center, #3b3029 0%, #2a221d 75%); }
.at-play.clay .at-stage { background: repeating-linear-gradient(92deg, #6b4c33 0 14px, #74543a 14px 30px, #67482f 30px 41px); }   /* a wooden work board */
.at-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.at-play .at-btn { color: #f5efe8; background: #3a2f28; border-color: #5a4a3f; }
.at-top .at-btn { min-height: 40px; padding: .2rem .8rem; }

.at-hint { display: flex; align-items: center; gap: .6rem; min-height: 2.4rem; padding: .25rem .7rem; background: #1d1713; font-size: .88rem; color: #e7d9cb; }
.at-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: .35rem; background: var(--c); color: var(--ink); font-weight: 700; }

.at-palette { display: flex; gap: .35rem; padding: .4rem .6rem; background: #241d18; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.at-swatch { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 3rem; padding: .25rem .25rem .2rem; border-radius: .55rem; border: 2px solid transparent;
    background: #3a2f28; color: #f5efe8; cursor: pointer; font: inherit; }
.at-swatch i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: .4rem; background: var(--c); color: var(--ink);
    font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.beads .at-swatch i { border-radius: 50%; }
.at-swatch span { font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .9; }
.at-swatch.sel { border-color: #fbbf24; background: #5a4535; }
.at-swatch.done { opacity: .55; }

.at-tools { display: flex; gap: .35rem; padding: .4rem .6rem; background: #1d1713; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.at-tools .at-btn { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: .15rem .55rem; line-height: 1.15; }
.at-tools .at-btn span { font-size: .68rem; opacity: .85; }
.at-tools .at-btn.on { background: #8a4b2c; border-color: #fbbf24; color: #fff; }

.at-peek { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: rgba(0, 0, 0, .8); padding: 1rem; }
.at-peek img { max-width: 100%; max-height: 75%; border-radius: .4rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.at-peek p { margin: 0; font-size: .85rem; color: #e7d9cb; }

.at-done { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); }
.at-card { background: #fffaf3; color: #2a221d; border-radius: .9rem; padding: 1.2rem 1.6rem; text-align: center; max-width: 22rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.at-card h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.at-card .at-row { justify-content: center; }
.at-play .at-card .at-btn { background: #fff; color: #b4532a; border-color: #b4532a; }
.at-play .at-card .at-primary { background: #b4532a; color: #fff; border-color: #b4532a; }

@media (max-width: 480px) { .at-title .at-sub { display: none; } .at-item { grid-template-columns: 6rem 1fr; } .at-preview { width: 5.5rem; } }
@media (prefers-reduced-motion: reduce) { .at-progress span { transition: none; } }

/* printing: a dialog over everything (also over the table) */
.at-print { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.at-print-card { --at-ink: #1f2937; --at-muted: #64748b; --at-card: #fff; --at-line: #e2e8f0; --at-accent: #b4532a; --at-accent-ink: #fff;
    width: min(30rem, 100%); max-height: 100%; overflow: auto; background: #fffaf3; color: #1f2937; border-radius: .9rem; padding: 1rem 1.2rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.at-print-card h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.at-print-card h3 { font-size: .95rem; margin: .8rem 0 .4rem; }
.at-print-card .at-btn { background: #fff; color: #b4532a; border-color: #b4532a; }
.at-print-card .at-primary { background: #b4532a; color: #fff; border-color: #b4532a; }
.at-print-card .at-chip { color: #1f2937; background: #fff; }
.at-print-card .at-chip.sel { background: #b4532a; color: #fff; }
.at-print-card .at-sub { color: #64748b; }
.at-check { display: flex; gap: .55rem; align-items: center; margin-top: .8rem; cursor: pointer; }
.at-check input { width: 1.2rem; height: 1.2rem; accent-color: #b4532a; }
.at-print-sum { background: #fff; border: 1px solid #e2e8f0; border-radius: .6rem; padding: .55rem .75rem; font-size: .92rem; }
.at-print-sum span { color: #475569; }
.at-styles { display: grid; gap: .45rem; }
.at-style { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .1rem; padding: .5rem .7rem; border-radius: .6rem; border: 2px solid #e2e8f0; background: #fff; color: #1f2937; cursor: pointer; }
.at-style span { font-size: .84rem; color: #64748b; }
.at-style.sel { border-color: #b4532a; background: #fff7ed; }

/* drawing and painting: materials, widths and colours under the sheet */
.at-materials, .at-colours { display: flex; gap: .35rem; padding: .35rem .6rem; background: #241d18; overflow-x: auto; -webkit-overflow-scrolling: touch; align-items: center; }
.at-material { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 3.6rem; padding: .2rem .3rem; border-radius: .55rem; border: 2px solid transparent; background: #3a2f28; color: #f5efe8; cursor: pointer; font: inherit; }
.at-material i { font-style: normal; font-size: 1.35rem; line-height: 1.2; }
.at-material span { font-size: .7rem; }
.at-material.sel { border-color: #fbbf24; background: #5a4535; }
.at-sep { flex: 0 0 1px; align-self: stretch; background: #5a4a3f; margin: 0 .2rem; }
.at-width { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; border-radius: .55rem; border: 2px solid transparent; background: #3a2f28; cursor: pointer; }
.at-width i { display: block; border-radius: 50%; background: #f5efe8; }
.at-width.sel { border-color: #fbbf24; background: #5a4535; }
.at-colour { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--c); cursor: pointer; padding: 0; position: relative; }
.at-colour.sel { outline: 3px solid #fbbf24; outline-offset: 1px; }
.at-own-colour { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; text-shadow: 0 0 3px #000; overflow: hidden; }
.at-own-colour input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.at-slider { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: #e7d9cb; padding: 0 .3rem; flex: 0 0 auto; }
.at-slider input { width: 6rem; accent-color: #e07a4f; }
.at-tools .at-btn.danger { background: #8b1d1d; border-color: #ef4444; }

/* the mixing palette: a wooden tray */
.at-mixer { display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; background: linear-gradient(#8a6440, #74522f); overflow-x: auto; }
.at-paint { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; border: 0; background: none; cursor: pointer; color: #fff7ec; font: inherit; }
.at-paint i { width: 2.2rem; height: 1.6rem; border-radius: 50% 45% 55% 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .4); }
.at-paint span { font-size: .72rem; white-space: nowrap; }
.at-mix-arrow { color: #fff7ec; font-size: 1.3rem; }
.at-mix-result { flex: 0 0 auto; width: 3.2rem; height: 2.4rem; border-radius: 48% 52% 45% 55%; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .5); }
.at-mixer .at-btn { background: #fff7ec; color: #5a3d22; border-color: #fff7ec; }
.at-mix-toggle { flex: 0 0 auto; white-space: nowrap; }
.at-mix-toggle.on { background: #8a4b2c; color: #fff; border-color: #fbbf24; }
.at-colour.mixed { border-radius: 45% 55% 50% 50%; }
.at-stencils { background: linear-gradient(#4a5b6e, #3b4a5a); }
.at-shape { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 3rem; padding: .15rem .2rem; border-radius: .5rem; border: 2px solid transparent; background: rgba(255,255,255,.08); color: #eef3f8; cursor: pointer; font: inherit; }
.at-shape i { font-style: normal; font-size: 1.3rem; line-height: 1.2; }
.at-shape span { font-size: .68rem; }
.at-shape.sel { border-color: #fbbf24; background: rgba(255,255,255,.18); }

/* craft-morph: "what would it be as ...?" (over any screen) */
.at-morph { position: fixed; z-index: 60; overflow-y: auto; padding: 1rem; align-items: flex-start; }
.at-morph:focus { outline: none; }
.at-card.wide { max-width: 46rem; width: 100%; margin: auto; }
.at-morph .at-btn { background: #fff; color: #b4532a; border: 2px solid #b4532a; }
.at-morphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .7rem; margin: .8rem 0; }
.at-morph-tile { display: flex; flex-direction: column; gap: .25rem; align-items: stretch; font: inherit; color: #2a221d; background: #fff; border: 2px solid #e7dccd;
    border-radius: .7rem; padding: .45rem; cursor: pointer; text-align: center; min-height: 44px; }
.at-morph-tile:hover:not(:disabled), .at-morph-tile:focus-visible { border-color: #b4532a; }
.at-morph-tile:disabled { cursor: wait; }
.at-morph-tile.now { border-style: dashed; }
.at-morph-tile .at-sub { color: #6b5b4e; font-size: .8rem; }
.at-morph-pic { position: relative; display: block; min-height: 6rem; }
.at-morph-pic canvas { display: block; width: 100%; border-radius: .35rem; background: #f1ece4; }
@media (max-width: 30rem) { .at-morphs { grid-template-columns: repeat(2, 1fr); } .at-card.wide { padding: .9rem; } }
.at-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; max-width: min(30rem, calc(100vw - 2rem));
    background: #2a221d; color: #fff; padding: .7rem 1.1rem; border-radius: .7rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); cursor: pointer; }

/* the Lappendeken (patchwork): the lobby, the mural with its patches, the panel of one patch, the players */
.at-pw-head { gap: .5rem .8rem; }
.at-pw-code { font: 700 1.05rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; padding: .35rem .6rem; border-radius: .4rem; background: var(--at-soft); border: 1px dashed var(--at-accent); }
.at-pw-off { color: #b45309; font-size: .9rem; }
.at-btn.on { background: var(--at-accent); color: var(--at-accent-ink); }
.at-pw-mural { position: relative; width: 100%; max-height: 78vh; margin: .6rem auto; border-radius: .5rem; overflow: hidden; background: #1d1714; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.at-pw-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: saturate(.55) brightness(1.08); opacity: .55; }
.at-pw-grid { position: absolute; inset: 0; display: grid; }
.at-pw-patch { position: relative; padding: 0; margin: 0; border: 0; font: inherit; cursor: pointer; background: transparent; color: #fff; overflow: hidden;
    outline: 1px solid rgba(255, 255, 255, .55); outline-offset: -1px; display: flex; align-items: center; justify-content: center; }
.at-pw-patch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.at-pw-patch.free:hover, .at-pw-patch.free:focus-visible { background: rgba(255, 255, 255, .28); }
.at-pw-patch.taken { box-shadow: inset 0 0 0 3px var(--pc); background: color-mix(in srgb, var(--pc) 22%, transparent); }
.at-pw-patch.mine { box-shadow: inset 0 0 0 4px var(--pc), inset 0 0 0 6px rgba(255, 255, 255, .8); }
.at-pw-patch.done { outline-color: rgba(0, 0, 0, .35); }
.at-pw-patch.sel { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--at-accent); z-index: 1; }
.at-pw-patch:focus-visible { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--at-accent); }
.at-pw-plus { font-size: clamp(1rem, 4vw, 2.2rem); opacity: .75; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.at-pw-craft { font-size: clamp(1.1rem, 4vw, 2.4rem); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.at-pw-bar { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.at-pw-bar span { display: block; height: 100%; background: var(--pc); }
.at-pw-name { position: absolute; left: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 6px; border-radius: 4px; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(0, 0, 0, .62); color: #fff; z-index: 1; }
.at-pw-panel { background: var(--at-card); border: 1px solid var(--at-line); border-radius: .7rem; padding: .2rem 1rem .6rem; margin: .6rem 0; }
.at-pw-panel h2 { margin: .7rem 0 .3rem; }
.at-pw-crafts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .6rem; }
.at-pw-players { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.at-pw-players li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 2px solid var(--pc); background: var(--at-card); }
.at-pw-players i { width: .6rem; height: .6rem; border-radius: 50%; background: #94a3b8; }
.at-pw-players i.on { background: #22c55e; }
.at-pw-done { display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1rem; border-radius: .7rem; background: var(--at-soft); border: 1px solid var(--at-accent); }
.at-pw-done .at-row { margin: .3rem 0 0; }
.at-pw-tables { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .5rem; }
.at-pw-table { width: 100%; display: flex; gap: .8rem; align-items: center; text-align: left; font: inherit; color: var(--at-ink); background: var(--at-card); border: 1px solid var(--at-line); border-radius: .7rem; padding: .45rem; cursor: pointer; }
.at-pw-table:hover:not(:disabled), .at-pw-table:focus-visible { border-color: var(--at-accent); }
.at-pw-table img { width: 5.5rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .4rem; flex: 0 0 auto; }
.at-pw-table > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.at-pw-input { font: 600 1.05rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; min-height: 44px; padding: 0 .8rem; width: 13rem; max-width: 100%;
    border-radius: .55rem; border: 1px solid #94a3b8; background: var(--at-card); color: var(--at-ink); }
.at-pw-input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }
.at-sub.at-link { display: inline; text-align: left; }

/* the brush of the drawing table: its tips, a sample of the line, size and strength */
.at-brush { display: flex; flex-direction: column; gap: .35rem; padding: .35rem .6rem; background: #2a221d; color: #f3e9dc; border-top: 1px solid #3b302a; }
.at-tips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.at-tip { flex: 0 0 auto; font: inherit; font-size: .85rem; min-height: 34px; padding: 0 .7rem; border-radius: 999px; border: 1px solid #6b5b4e; background: #3a2f28; color: #f3e9dc; cursor: pointer; white-space: nowrap; }
.at-tip.sel { background: #e07a4f; border-color: #e07a4f; color: #1b1410; font-weight: 600; }
.at-tip:focus-visible { outline: 2px solid #ffd34d; outline-offset: 1px; }
.at-brush-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.at-sample { width: 220px; height: 56px; border-radius: .35rem; border: 1px solid #6b5b4e; display: block; max-width: 100%; }
.at-brush .at-slider { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }
.at-brush .at-slider input { width: 9rem; accent-color: #e07a4f; }
.at-val { min-width: 3.2rem; font-variant-numeric: tabular-nums; opacity: .85; }

/* the potter's wheel: speed, viewing angle and how often a line repeats round the pot */
.at-label { flex: 0 0 auto; color: #d9cbbd; font-size: .8rem; margin-right: .15rem; }
.at-materials .at-btn.small.sel { border-color: #fbbf24; background: #5a4535; color: #fff; }
.at-wheelbar { border-top: 1px solid #3a2f28; }
.at-view { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.at-view input { width: 8rem; accent-color: #fbbf24; }
.at-view span { min-width: 2.2rem; font-variant-numeric: tabular-nums; }
.at-letters { flex: 0 0 auto; width: 4.5rem; min-height: 2.4rem; border-radius: .55rem; border: 2px solid #fbbf24; background: #3a2f28; color: #fff; font: 700 1.1rem system-ui, sans-serif; text-align: center; text-transform: uppercase; }
.at-slider select { background: #3a2f28; color: #f5efe8; border: 1px solid #5a4a3f; border-radius: .4rem; padding: .15rem .3rem; font: inherit; }
