/* Kylerela's step (scripts/kylerela.js): the panel with the ocean, the slider, Cancel and Done, beside the island on a
   computer and at the bottom of the screen on a phone (.pg-vd-phone). The card's look is the dialogs' (css/valuedialog.css:
   .pg-vd, .pg-vd-head, .pg-vd-actions), in the island's sea blue; a middle not in one ocean in red (.pg-ky-bad). */

.pg-ky { width: 264px; --pg-vd-c: #4fb3d9; --pg-vd-on: #141519; }
.pg-ky-card {
    box-sizing: border-box;
    padding: 8px 10px 10px;
    border: 1px solid var(--pg-vd-c);
    border-top-width: 4px;
    border-radius: 10px;
    background: #141519;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}
.pg-ky.pg-ky-bad { --pg-vd-c: #e0786e; }
.pg-ky-where { margin: 0 0 4px; color: var(--pg-vd-c) !important; font-size: 18px; font-weight: 700; line-height: 1.2; }
.pg-ky-why { margin: 0 0 6px; font-size: 13px; }
.pg-ky-why:empty { display: none; }
.pg-ky-turn { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.pg-ky-turn input[type=range] { flex: 1; min-width: 0; accent-color: var(--pg-vd-c); }
.pg-ky-nudge {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #30343e;
    border-radius: 8px;
    background: #1c1e24;
    color: #e8e6e1;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.pg-ky-nudge:hover { border-color: var(--pg-vd-c); background: #262932; }
.pg-ky-num {
    flex: none;
    width: 52px;
    box-sizing: border-box;
    padding: 4px 6px;
    border: 1px solid #30343e;
    border-radius: 8px;
    background: #0e0f12;
    color: #e8e6e1;
    font-variant-numeric: tabular-nums;
}
.pg-ky-deg { color: #9a9ca5; margin-left: -4px; }
.pg-ky-note { margin: 2px 0 8px; color: #9a9ca5 !important; font-size: 12px; }

.pg-vd-phone.pg-ky .pg-ky-where { font-size: 22px; }
.pg-vd-phone.pg-ky .pg-ky-why { font-size: 15px; }
.pg-vd-phone.pg-ky .pg-ky-turn { gap: 8px; margin: 10px 0; }
.pg-vd-phone.pg-ky .pg-ky-nudge { width: 40px; height: 40px; font-size: 20px; }
.pg-vd-phone.pg-ky .pg-ky-num { width: 60px; font-size: 16px; padding: 6px; }
.pg-vd-phone.pg-ky .pg-ky-note { font-size: 14px; }
.pg-vd-phone.pg-ky input[type=range] { height: 32px; }

/* While the step is open, the pieces other than the island can't be dragged (drag.js asks PGKylerela.mayDrag()). */
.pg-ky-on #pieces .boardpiece:not(#Global-Kylerela) { cursor: default; }
