/* Thread Link (/thread-link): only what is the game's own - the square board and the colours it is drawn in. Tiles,
   buttons, fields and the accent come from the app kit (css/app-kit, docs/app-kit.md), the button row and touch pad
   from css/app-kit/games.css (every game). Loaded only on this page
   (StylePaths). The board is a canvas; filter-engines/thread-link.js reads the --tl-* tokens below for its linen,
   seams and ink, so the light and dark look are set here. */

.thread-link-landing-app {
    --tl-board: #f3ede2;
    --tl-board-edge: #dccfb8;
    --tl-grid: #cbbb9f;
    --tl-ink: #3b3226;
    --tl-texture: rgba(120, 96, 60, 0.05);
}

/* Dark: a deep blue-grey felt with soft seams; the yarn is drawn a shade lighter. */
.thread-link-landing-app[data-theme="dark"] > .filter-landing-stage {
    --tl-board: #232836;
    --tl-board-edge: #3a4256;
    --tl-grid: #444d63;
    --tl-ink: #ece5d8;
    --tl-texture: rgba(255, 255, 255, 0.025);
}

/* The board: a square as wide as the panel, no taller than the screen allows. */
.thread-link-board {
    position: relative;
    width: min(100%, 640px, calc(100vh - 260px));
    min-width: min(100%, 260px);
    aspect-ratio: 1 / 1;
}

.thread-link-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    touch-action: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.thread-link-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent);
}

.thread-link-status {
    min-height: 1.4em;
    margin: 0;
    text-align: center;
}

.thread-link-status.is-solved {
    color: var(--ak-success);
    font-weight: 600;
}
