/* Tutorial & help screen, the guided tutorial's panel and its spotlight. */

/* ---- main menu: the button new players see first ---- */
#mainMenu .menu-btn.wod-menu-new-player {
    border-color: #f4c84a;
    box-shadow: 0 0 0 1px rgba(244, 200, 74, 0.35), 0 0 18px rgba(244, 200, 74, 0.35);
    color: #fff3cf;
}
#mainMenu .menu-btn.wod-menu-new-player::after {
    content: 'Start here';
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f4c84a;
    color: #1b1406;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: 2px;
    /* (one pill, never split over two lines inside the button) */
    display: inline-block;
    white-space: nowrap;
    line-height: 1.4;
}

/* ---- Tutorial & help screen ---- */
.wod-tuthelp {
    max-width: 620px;
    text-align: center;
}
.wod-tuthelp h2 {
    color: #f4c84a;
    margin: 0 0 8px;
}
.wod-tuthelp-lead {
    color: #c9d3dc;
    margin: 0 auto 20px;
    max-width: 460px;
    line-height: 1.5;
}
.wod-tuthelp-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}
.wod-tuthelp-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    min-height: 140px;
    text-align: left;
    border: 1px solid rgba(217, 169, 76, 0.45);
    border-radius: 12px;
    background: linear-gradient(180deg, #1a2736, #121c28);
    color: #e9edf1;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wod-tuthelp-card:hover,
.wod-tuthelp-card:focus-visible {
    border-color: #f4c84a;
    box-shadow: 0 0 0 1px rgba(244, 200, 74, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
    outline: none;
}
.wod-tuthelp-card--primary {
    border-color: #d9a94c;
    background: linear-gradient(180deg, #2a2a1c, #1a1c14);
}
.wod-tuthelp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #f4c84a;
}
.wod-tuthelp-card-copy {
    font-size: 14px;
    line-height: 1.45;
    color: #c9d3dc;
}
@media (max-width: 560px) {
    .wod-tuthelp-options { grid-template-columns: 1fr; }
    .wod-tuthelp-card { min-height: 0; }
}

/* ---- spotlight: dims everything except what the current step points at ---- */
.wod-tut-spot {
    position: fixed;
    z-index: 9000;
    border: 3px solid #f4c84a;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(4, 8, 14, 0.45), 0 0 22px 6px rgba(244, 200, 74, 0.6);
    pointer-events: none;
    transition: left 0.18s ease-out, top 0.18s ease-out, width 0.18s ease-out, height 0.18s ease-out;
    animation: wod-tut-pulse 1.6s ease-in-out infinite;
}
.wod-tut-spot--round { border-radius: 50%; }
.wod-tut-spot.hidden { display: none; }
@keyframes wod-tut-pulse {
    0%, 100% { border-color: #f4c84a; }
    50% { border-color: #fff1bf; }
}
@media (prefers-reduced-motion: reduce) {
    .wod-tut-spot { animation: none; transition: none; }
}

/* ---- the step panel ---- */
.wod-tut-panel {
    position: fixed;
    z-index: 9001;
    left: 50%;
    top: 96px;
    transform: translateX(-50%);
    width: min(460px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 14px 16px 12px;
    border: 1px solid #d9a94c;
    border-radius: 12px;
    background: rgba(13, 21, 31, 0.97);
    color: #e9edf1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    line-height: 1.5;
}
.wod-tut-panel.hidden { display: none; }
.wod-tut-panel--bottom {
    top: auto;
    bottom: 96px;
    left: 16px;
    transform: none;
}
.wod-tut-panel--end {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 10050;
    text-align: center;
    box-shadow: 0 0 0 9999px rgba(4, 8, 14, 0.6), 0 10px 28px rgba(0, 0, 0, 0.5);
}
.wod-tut-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wod-tut-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fb2c4;
}
.wod-tut-exit {
    border: 0;
    background: none;
    color: #9fb2c4;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 4px;
}
.wod-tut-exit:hover { color: #fff; }
.wod-tut-panel h2 {
    margin: 4px 0 6px;
    font-size: 18px;
    color: #f4c84a;
}
.wod-tut-text { margin: 0 0 10px; }
.wod-tut-text b { color: #fff; }
.wod-tut-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.wod-tut-panel--end .wod-tut-actions { justify-content: center; }
.wod-tut-btn {
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #5d7387;
    border-radius: 8px;
    background: #1d2c3b;
    color: #e9edf1;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.wod-tut-btn:hover, .wod-tut-btn:focus-visible { border-color: #f4c84a; outline: none; }
.wod-tut-btn--primary {
    border-color: #d9a94c;
    background: #d9a94c;
    color: #1b1406;
}
.wod-tut-btn--primary:hover, .wod-tut-btn--primary:focus-visible { background: #f4c84a; }
.wod-tut-btn--quiet {
    border-color: transparent;
    background: transparent;
    color: #9fb2c4;
    font-weight: 500;
}
.wod-tut-paused {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9fb2c4;
    text-align: right;
}
@media (max-width: 600px) {
    .wod-tut-panel { top: 64px; font-size: 13px; padding: 12px; }
    .wod-tut-panel--bottom { top: auto; bottom: 84px; left: 12px; }
    .wod-tut-panel--end { top: 50%; bottom: auto; }
    .wod-tut-panel h2 { font-size: 16px; }
}

/* Hidden while the pause menu or a full-screen report is open. */
.wod-tut-panel.wod-tut-covered,
.wod-tut-spot.wod-tut-covered { display: none !important; }
