/* Lobby styles for assets/viewer/home.html — compact subset of the old
   client/css/home.css, stripped of wiki + class-canvas-specific rules. */

* { box-sizing: border-box; }
[v-cloak] { display: none; }

html, body {
    margin: 0; padding: 0;
    min-height: 100vh; min-width: 100vw;
    background: #0b0d10 radial-gradient(ellipse at center, #16191e 0%, #050608 100%);
    color: #e0e0e0;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .04em;
    user-select: none;
    overflow-x: hidden;
}

#ui {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px;
}

/* --- title --- */
#title {
    font-family: 'Great Vibes', cursive;
    font-size: 96px;
    text-align: center;
    color: #f6c177;
    text-shadow: 0 4px 24px rgba(246,193,119,0.4), 0 0 40px rgba(246,193,119,0.2);
    margin: 24px 0 8px;
}

.dim { color: #888; font-size: 11px; }
.warn { color: #ff6b6b; }

/* --- inputs --- */
input {
    font-family: 'Oswald', sans-serif;
    padding: 10px 14px; margin: 6px 4px;
    font-size: 14px; color: #fff;
    background: rgba(30,32,38,0.85);
    border: 1.5px solid rgba(120,130,150,0.35);
    border-radius: 6px;
    transition: border-color .15s, box-shadow .15s;
}
input:focus {
    outline: none;
    border-color: rgba(74,158,255,0.85);
    box-shadow: 0 0 10px rgba(74,158,255,0.25);
}
input::placeholder { color: rgba(200,200,210,0.4); }
.input_error { border-color: #ff6b6b !important; }

/* --- buttons --- */
.btn {
    padding: 10px 22px;
    border: 1.5px solid rgba(120,130,150,0.4);
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(60,62,72,0.85), rgba(40,42,52,0.95));
    color: #fff;
    transition: transform .12s, box-shadow .12s, border-color .12s;
    margin: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(180,190,210,0.6); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(145deg, rgba(74,158,255,0.85), rgba(50,120,210,0.95));
    border-color: rgba(110,170,255,0.7);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(74,158,255,0.4); }
.btn-secondary { background: linear-gradient(145deg, rgba(80,82,92,0.7), rgba(60,62,72,0.85)); }
.btn-danger {
    background: linear-gradient(145deg, rgba(220,90,90,0.85), rgba(190,60,60,0.95));
    border-color: rgba(255,120,120,0.6);
}
.btn.large { padding: 14px 30px; font-size: 15px; }
.btn.disabled { opacity: 0.45; pointer-events: none; }

/* --- connection panel (top-right) --- */
#connection {
    position: fixed; top: 12px; right: 12px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(120,130,150,0.25);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    backdrop-filter: blur(6px);
    min-width: 220px;
    z-index: 10;
}
#connection_account { display: flex; flex-direction: column; gap: 2px; }
#pseudo { color: #f6c177; font-weight: 600; cursor: pointer; }
#connection_actions { display: flex; gap: 4px; flex-wrap: wrap; }
.connection-close { align-self: flex-end; cursor: pointer; color: #888; }

/* --- top-left menu --- */
#top_left_menu {
    position: fixed; top: 12px; left: 12px;
    display: flex; gap: 6px;
    z-index: 10;
}
.menu_button {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(120,130,150,0.25);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    backdrop-filter: blur(6px);
    transition: border-color .12s;
}
.menu_button:hover { border-color: rgba(180,190,210,0.6); }

/* --- description / welcome --- */
#description {
    text-align: center; max-width: 560px; margin: 24px auto;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(120,130,150,0.25);
    border-radius: 10px;
    padding: 24px 32px;
}
#description h2 { margin: 0 0 12px; color: #f6c177; font-weight: 400; }
#description p { margin: 6px 0; color: #bbb; }

/* --- player cards --- */
#players {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    margin: 16px 0;
}
.player-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(20,22,28,0.85);
    border: 1.5px solid rgba(120,130,150,0.3);
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    min-width: 220px;
    transition: border-color .12s, transform .12s;
}
.player-card:hover { border-color: rgba(180,190,210,0.6); transform: translateY(-1px); }
.player-card.active {
    border-color: rgba(246,193,119,0.85);
    box-shadow: 0 0 16px rgba(246,193,119,0.3);
}
.player-glyph { font-size: 36px; line-height: 1; }
.player-info { display: flex; flex-direction: column; }
.player-name { font-size: 16px; color: #fff; }
.player-details { font-size: 12px; color: #888; }

/* --- main buttons --- */
#main_buttons {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin: 16px 0 8px;
}

/* --- games --- */
#games {
    width: 100%; max-width: 760px;
    margin: 16px auto;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(120,130,150,0.25);
    border-radius: 10px;
    padding: 16px 20px;
}
.games-header h3 { margin: 0 0 12px; color: #f6c177; font-weight: 400; }
.game-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card {
    background: rgba(30,32,38,0.85);
    border: 1.5px solid rgba(120,130,150,0.3);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    min-width: 160px;
    transition: border-color .12s, transform .12s;
}
.game-card:hover { border-color: rgba(180,190,210,0.6); transform: translateY(-1px); }
.game-name { color: #fff; font-size: 14px; }
.game-players { color: #888; font-size: 11px; }

/* --- modals --- */
.modern-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: linear-gradient(160deg, rgba(28,30,38,0.98), rgba(18,20,26,0.98));
    border: 1px solid rgba(120,130,150,0.3);
    border-radius: 12px;
    padding: 24px 28px;
    min-width: 320px;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.large-modal { min-width: 560px; }
.small-modal { min-width: 360px; max-width: 420px; }
.modal-close {
    position: absolute; top: 8px; right: 14px;
    font-size: 24px; cursor: pointer; color: #888;
}
.modal-close:hover { color: #fff; }
.modal-header { margin-bottom: 16px; border-bottom: 1px solid rgba(120,130,150,0.2); padding-bottom: 12px; }
.modal-title { margin: 0; font-weight: 400; color: #f6c177; }
.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-actions { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }

/* --- account modal --- */
.account-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 8px 0;
    border-bottom: 1px solid rgba(120,130,150,0.15);
}
.account-row:last-child { border-bottom: none; }
.server-selection { display: flex; gap: 6px; }
.server-choice {
    padding: 4px 12px;
    border: 1.5px solid rgba(120,130,150,0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.server-choice.active {
    border-color: #f6c177;
    background: rgba(246,193,119,0.15);
}
.email-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.email-form input { flex: 1; }

/* --- character creation modal --- */
.class-selection {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.class-card {
    background: rgba(30,32,38,0.85);
    border: 1.5px solid rgba(120,130,150,0.3);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    min-width: 110px;
    text-align: center;
    transition: border-color .12s, transform .12s;
}
.class-card:hover { border-color: rgba(180,190,210,0.6); transform: translateY(-1px); }
.class-card.active {
    border-color: #f6c177;
    background: rgba(246,193,119,0.1);
    box-shadow: 0 0 12px rgba(246,193,119,0.25);
}
.class-glyph { font-size: 42px; line-height: 1; margin-bottom: 6px; }
.class-name { font-size: 13px; color: #ddd; }
.character-input { display: flex; justify-content: center; }
.character-input input { min-width: 280px; }

/* --- game mode toggle --- */
.mode-selection { display: flex; gap: 8px; margin-top: 4px; }
.mode-option {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid rgba(120,130,150,0.3);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
}
.mode-option.active {
    border-color: #f6c177;
    background: rgba(246,193,119,0.1);
}

/* --- alerts --- */
#alerts {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 6px; z-index: 200;
}
.alert {
    background: rgba(20,22,28,0.95);
    border: 1px solid rgba(120,130,150,0.4);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    display: flex; align-items: center; gap: 8px;
    backdrop-filter: blur(6px);
}
.alert-error { border-color: #ff6b6b; }
.alert-warning { border-color: #f6c177; }
.alert-info { border-color: #4a9eff; }

/* --- ladder --- */
.ladder-table { display: flex; flex-direction: column; gap: 2px; }
.ladder-header, .ladder-row {
    display: grid;
    grid-template-columns: 60px 1fr 70px 100px;
    padding: 6px 10px;
    font-size: 13px;
}
.ladder-header { color: #888; border-bottom: 1px solid rgba(120,130,150,0.25); font-size: 11px; }
.ladder-row:nth-child(even) { background: rgba(255,255,255,0.025); }

/* --- footer hints --- */
#controls {
    position: fixed; bottom: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 2px;
    color: #666; font-size: 11px; z-index: 5;
}
