/**
 * @author      Mike Fairbrother <mike@fairbrother.me>
 * @copyright   2024-2026 Mike Fairbrother. All rights reserved.
 * @license     PROPRIETARY - No rights to copy, modify, distribute, or reuse
 *              any part of this code without explicit written permission from the author.
 */
/* Loom - Path Puzzle Game Styles */

/* Logo */
.loom-logo { margin-bottom: 16px; }
.loom-logo-grid {
    display: grid;
    grid-template-columns: 28px 20px 28px;
    grid-template-rows: 28px 20px 28px;
    gap: 0;
    justify-content: center;
    align-items: center;
}
.loom-node {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 12px var(--c);
}
.loom-path-h {
    width: 100%; height: 6px;
    background: var(--c);
    border-radius: 3px;
    opacity: 0.6;
}
.loom-path-v {
    width: 6px; height: 100%;
    background: var(--c);
    border-radius: 3px;
    opacity: 0.6;
    justify-self: center;
}
.loom-empty { width: 20px; height: 20px; }

/* Title */
.loom-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.loom-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-bottom: 20px;
}
.menu-best {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Mode & Size selectors */
.loom-mode-selector, .loom-size-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}
.loom-mode-btn, .loom-size-btn {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms;
    font-family: var(--gp-font-stack);
}
.loom-mode-btn.active, .loom-size-btn.active {
    background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(96,165,250,0.3));
    border-color: rgba(167,139,250,0.5);
    color: #fff;
}

/* Grid container */
#grid-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    touch-action: none;
}
#game-canvas {
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Game screen layout */
#screen-game {
    flex-direction: column;
}

/* Controls bar */
.loom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px 20px;
    min-height: 56px;
}
.loom-ctrl-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--gp-font-stack);
    transition: all 150ms;
}
.loom-ctrl-btn:active { transform: scale(0.95); }
.loom-ctrl-primary {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(167,139,250,0.3);
}
.loom-completion {
    font-size: 13px;
    color: var(--gp-success);
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

/* Complete screen */
.loom-complete-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}
.loom-daily-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(96,165,250,0.2));
    border: 1px solid rgba(167,139,250,0.3);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.loom-stats-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.loom-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.loom-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.loom-stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Help sections */
.help-section { margin-bottom: 16px; }
.help-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gp-accent);
    margin-bottom: 4px;
}
.help-section p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* Android standalone gameplay inset fix */
#screen-game {
    display: flex;
    flex-direction: column;
}

#grid-container {
    min-height: 0;
    overflow: hidden;
}

.loom-controls {
    flex-shrink: 0;
}

.pwa-standalone #screen-game {
    padding-top: calc(var(--safe-top) + var(--gameplay-top-inset, 0px));
    padding-bottom: calc(var(--safe-bottom) + var(--gameplay-bottom-inset, 0px));
}

.pwa-standalone #screen-game .gp-footer-gameplay {
    display: none;
}
