/* =========================================================
   LOCAL PASS AND PLAY SETUP ROOT
   ========================================================= */

.lppss-root {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;

    font-family: "Segoe UI", sans-serif;
    background-color: #09103f;
    background-image: url("/client/assets/images/bg/game_bg_portrait.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (orientation: landscape) {
    .lppss-root {
        background-image: url("/client/assets/images/bg/game_bg_landscape.jpg");
    }
}
/* =========================================================
   HEADER
   ========================================================= */

.lppss-header {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 14px 16px;

    background: #0a2a43;
    color: white;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    z-index: 30;
}

.lppss-title {
    margin: 0;

    font-size: 18px;
    font-weight: 600;
}

.lppss-back-btn {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: #123d5c;
    color: white;

    padding: 6px 10px;

    border-radius: 8px;

    cursor: pointer;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.lppss-container {
    flex: 1;

    padding: 16px 20px;

    display: flex;
    flex-direction: column;

    gap: 16px;

    overflow-y: auto;
}

/* =========================================================
   SECTION CARDS
   ========================================================= */

.lppss-section {
    position: relative;

    display: flex;
    flex-direction: row;

    align-items: center;

    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 13px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.lppss-section > label {
    flex: 0 0 38%;

    font-size: 13px;
    font-weight: 600;

    color: #333;
}

/* =========================================================
   STANDARD DROPDOWN
   ========================================================= */

.lppss-dropdown {
    position: relative;

    flex: 1;

    background: #fff;

    border: 1px solid rgba(74, 108, 247, 0.12);

    border-radius: 9px;

    padding: 10px 12px;

    cursor: pointer;

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.lppss-dropdown:hover {
    box-shadow:
        0 5px 11px rgba(0, 0, 0, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lppss-dropdown-selected {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.lppss-dropdown-selected::after {
    content: "▼";
    margin-left: auto;

    font-size: 9px;
    color: #666;
}

.lppss-dropdown-options {
    position: absolute;

    left: 0;
    right: 0;

    top: calc(100% + 6px);

    background: #fff;

    border: 1px solid rgba(74, 108, 247, 0.12);

    border-radius: 9px;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16),
        0 2px 5px rgba(0, 0, 0, 0.06);

    max-height: 200px;

    overflow-y: auto;

    z-index: 20;
}

.lppss-dropdown-options-hidden {
    display: none;
}

.lppss-dropdown-options-open {
    display: block;
}

.lppss-dropdown-option {
    padding: 9px 10px;

    font-size: 13px;

    color: #333;

    transition: background 0.12s ease;
}

.lppss-dropdown-option:hover {
    background: #eef2ff;
}

/* =========================================================
   SUBJECTS MULTI-SELECT
   ========================================================= */

.lppss-section:has(.lppss-subject-dropdown) {
    position: relative;

    display: flex;
    flex-direction: row;

    align-items: center;

    gap: 12px;
}

.lppss-subject-dropdown {
    position: relative;

    flex: 1;

    background: #fff;

    border: 1px solid rgba(74, 108, 247, 0.12);

    border-radius: 9px;

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* =========================================================
   SELECTED SUBJECTS
   ========================================================= */

.lppss-subject-selected {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    min-height: 16px;

    padding: 10px 12px;

    background: #fff;

    border-radius: 9px;

    cursor: pointer;

    font-size: 13px;

    color: #333;
}

.lppss-dropdown-arrow {
    flex-shrink: 0;

    margin-left: 8px;

    font-size: 9px;

    color: #666;
}

/* =========================================================
   SUBJECT OPTIONS
   ========================================================= */

.lppss-subject-options {
    position: absolute;

    left: 0;
    right: 0;

    top: calc(100% + 6px);

    padding: 5px;

    background: #fff;

    border: 1px solid rgba(74, 108, 247, 0.12);

    border-radius: 10px;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16),
        0 2px 5px rgba(0, 0, 0, 0.06);

    z-index: 20;
}

.lppss-subject-options.lppss-dropdown-options-hidden {
    display: none;
}

.lppss-subject-options.lppss-dropdown-options-open {
    display: block;
}

/* =========================================================
   SUBJECT OPTION
   ========================================================= */

.lppss-subject-option {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 9px 10px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;

    color: #333;

    transition: background 0.12s ease;
}

.lppss-subject-option:hover {
    background: #eef2ff;
}

/* =========================================================
   SUBJECT CHECKBOX
   ========================================================= */

.lppss-subject-option input {
    width: 16px;
    height: 16px;

    margin: 0;

    flex-shrink: 0;

    cursor: pointer;
}

.lppss-subject-option span {
    user-select: none;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.lppss-summary {
    margin-top: 2px;

    padding: 11px 12px;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.9);

    font-size: 13px;

    font-weight: 600;

    text-align: center;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.07),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   START BUTTON
   ========================================================= */

.lppss-start-btn {
    margin-top: auto;

    padding: 13px;

    border: none;

    border-radius: 11px;

    background: #0a2a43;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(74, 108, 247, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.lppss-start-btn:hover {
    background: #3d5ce0;

    box-shadow:
        0 7px 16px rgba(74, 108, 247, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.1);
}
