:root {
    --bg-main: #ffffff;
    --panel-bg: #ffffff;
    --pitch-grass-1: #327546;
    --pitch-grass-2: #2b673d;
    --pitch-line: rgba(255, 255, 255, 0.8);
    --grid-line: rgba(255, 255, 255, 0.5);
    --p1-color: #0b57d0;
    --p2-color: #b3261e;
    --highlight-move: rgba(255, 255, 255, 0.3);
    --highlight-pass: rgba(11, 87, 208, 0.5);
    --highlight-through: rgba(255, 171, 0, 0.5);
    --highlight-tackle: rgba(179, 38, 30, 0.5);
    --text-main: #1f1f1f;
    --text-muted: #5e5e5e;
    --text-light: #8a9ba8;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

@supports (word-break: auto-phrase) {
    body {
        word-break: auto-phrase;
    }
}

.app-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    gap: 28px;
    padding: 24px;
}

/* Disabled button clarity */
.btn:disabled,
.btn[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}
.btn:disabled::before,
.btn:disabled::after {
    display: none;
}

/* Scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* Helper classes for switching views */
.desktop-only {
    display: flex;
}
.mobile-only {
    display: none !important;
}

@media (max-width: 950px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
}

/* Keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-finish {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes pulse-finish-vertical {
    0% { opacity: 0.8; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(2px); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(245,158,11,0.5); }
    50% { transform: scale(1.08); box-shadow: 0 4px 14px rgba(245,158,11,0.8); }
}

