/* Teknikguiden för Tectonic (/tectonic/tekniker, tectonic-technique-guide.js) */
.tt-grid {
    display: grid;
    width: 100%;
    border: 2px solid #2b2b2b;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
}

.tt-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: clamp(0.875rem, min(calc(26rem / var(--tt-cols, 6)), calc(55vw / var(--tt-cols, 6))), 2.25rem);
    font-weight: 700;
    color: #1d4ed8;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.tt-cell.given {
    color: #111;
    cursor: default;
}

.tt-cell.tt-area {
    background-image: linear-gradient(rgba(251, 191, 36, 0.38), rgba(251, 191, 36, 0.38));
}

.tt-cell.tt-pattern {
    background-image: linear-gradient(rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0.28));
    box-shadow: inset 0 0 0 3px #2563eb;
}

.tt-cell.tt-goal {
    background-image: linear-gradient(rgba(16, 185, 129, 0.34), rgba(16, 185, 129, 0.34));
    box-shadow: inset 0 0 0 3px #059669;
}

.tt-cell.tt-selected {
    background-image: linear-gradient(rgba(14, 165, 233, 0.4), rgba(14, 165, 233, 0.4));
}

.tt-marks {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12% 4% 4%;
    font-size: clamp(9px, calc(10rem / var(--tt-cols, 6)), 15px);
    font-weight: 500;
    color: #64748b;
    line-height: 1;
    pointer-events: none;
}

.tt-note {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-note.tt-strike {
    color: #e11d48;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.tt-label {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
    padding: 0 3px;
    border-radius: 3px;
    background: #1e293b;
    color: #fff;
    font-size: clamp(8px, 1.7vw, 11px);
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
}

#technique-guide .numpad-btn {
    font-weight: 600;
    color: #1d4ed8;
    width: 100%;
    border-radius: 0.75rem;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

#technique-guide .numpad-btn:hover {
    background: #e0f2fe;
}
