@charset "UTF-8";

#blazor-error-ui {
    color-scheme: dark;
    color: #ffe0ce;
    background: #3d251f;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #e6e9e5;
    background: #101514;
    color-scheme: dark;
    font-synthesis: none;
    --muted: #9aa8a2;
    --accent: #c2dcaa;
    --line: #ffffff12;
    --bs-body-bg: #101514;
    --bs-body-color: #e6e9e5;
    --bs-body-font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1:focus, main:focus { outline: none; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px; background: #27382e; }

.admin-shell { display: flex; min-height: 100dvh; }
.sidebar {
    width: 248px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 36px 22px 22px;
    background: #131b18;
    border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; letter-spacing: 2px; font-weight: 650; }
.brand-mark { width: 42px; height: 46px; color: var(--accent); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand small { display: block; margin-top: 6px; font-size: 9px; font-weight: 500; letter-spacing: 3px; color: var(--muted); }
.workspace-label { font-size: 9px; letter-spacing: 1.8px; color: #86978e; margin: 62px 12px 18px; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 13px; border: 1px solid transparent; }
.nav-item:hover { color: #eff5e9; background: #ffffff05; }
.nav-item.active { background: #c2dcaa0e; color: var(--accent); border-color: #c2dcaa19; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; visibility: hidden; }
.active .nav-dot { visibility: visible; }
.sidebar-note { margin: auto 10px 30px; padding-top: 50px; color: #a4b899; }
.sidebar-note > .icon { width: 26px; height: 26px; }
.sidebar-note p { font-family: Georgia, serif; font-size: 16px; }
.sidebar-note p span { display: block; font-family: "Segoe UI", system-ui, sans-serif; font-size: 11px; line-height: 1.9; margin-top: 10px; color: var(--muted); }
.sidebar-footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
.footer-monogram { width: 33px; height: 33px; border: 1px solid #53634e; border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-family: Georgia, serif; }
.sidebar-footer small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.main-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 85% 0, #96b67c08, transparent 50%); }
.topbar { height: 80px; padding: 0 46px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.breadcrumb { display: flex; gap: 15px; font-size: 12px; color: var(--muted); }
.breadcrumb span { color: #506158; }
.breadcrumb strong { color: #d3dbd4; font-weight: 500; }
.console-label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #b6d59a; }
main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 44px 46px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { color: var(--accent); font-size: 9px; letter-spacing: 2.2px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-weight: 600; }
.eyebrow > span { width: 18px; height: 1px; background: var(--accent); }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 3vw, 42px); letter-spacing: -1.3px; line-height: 1.2; color: #f0f0e5; }
.page-header p { color: var(--muted); font-size: 12px; margin: 13px 0 0; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 6px; border: 1px solid transparent; padding: 11px 17px; font-size: 12px; font-weight: 600; flex-shrink: 0; transition: background .15s, border-color .15s; --bs-btn-disabled-opacity: .5; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--accent); color: #1c2a17; border-color: var(--accent); box-shadow: 0 3px 20px #0002; }
.button-primary:hover:not(:disabled) { background: #d6ebc4; }
.button-secondary { background: #ffffff05; color: #d4dfd1; border-color: #ffffff20; margin-top: 16px; }
.button-secondary:hover { background: #ffffff10; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.metric-card { background: linear-gradient(130deg, #1d272175, #171f1b70); border: 1px solid var(--line); border-radius: 9px; padding: 21px; min-width: 0; }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b5c1b8; font-size: 11px; }
.metric-heading .icon { color: #92a188; width: 17px; height: 17px; }
.metric-value { display: block; font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1; margin: 23px 0 16px; font-variant-numeric: tabular-nums; }
.metric-detail { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.metric-detail .status-dot { width: 4px; height: 4px; }
.games-panel { border: 1px solid #ffffff16; border-radius: 10px; background: #17201b70; overflow: hidden; }
.panel-header { padding: 23px 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-title { display: flex; align-items: center; gap: 11px; }
h2 { font-size: 14px; font-weight: 550; margin: 0; letter-spacing: -.1px; }
.count-badge { border: 1px solid #b1c19f30; color: #c4d2b7; background: #a0bb850d; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-variant-numeric: tabular-nums; }
.pending-label { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #b8c2b5; }
.table-toolbar { padding: 0 26px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-field { display: flex; align-items: center; gap: 10px; width: min(390px, 100%); background: #0e1511a0; border: 1px solid #ffffff17; border-radius: 6px; padding: 0 12px; color: #85958a; }
.search-field:focus-within { border-color: #aecb9180; }
.search-field .icon { width: 16px; height: 16px; }
.search-field input { border: 0; background: transparent; padding: 11px 0; color: #e4ecdf; min-width: 0; width: 100%; font-size: 11px; outline: none; }
.search-field input::placeholder { color: #94a198; }
.search-field:has(input:disabled) { opacity: .55; }
.sort-label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sort-label .icon { width: 13px; height: 13px; }
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 26px; border-block: 1px solid var(--line); font-size: 9px; font-weight: 550; color: #a0b0a4; text-transform: uppercase; letter-spacing: 1.15px; background: #0e171180; white-space: nowrap; }
td { padding: 21px 26px; border-bottom: 1px solid var(--line); font-size: 12px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #c2dcaa04; }
tbody tr:last-child td { border-bottom: 0; }
.game-identity { display: flex; align-items: center; gap: 12px; }
.game-link { color: inherit; text-decoration: none; }
.game-link:hover code { color: var(--accent); }
.game-icon { width: 36px; height: 38px; border: 1px solid #c2dcaa14; background: #adc58b08; border-radius: 7px; display: grid; place-items: center; color: #c1d3ac; flex-shrink: 0; }
.game-icon .icon { width: 17px; height: 17px; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; font-weight: 550; color: #e8edde; overflow-wrap: anywhere; }
.cell-subtitle { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.player-count { color: #9dac9d; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-count strong { color: #e4eadd; font-weight: 500; }
.player-progress { width: 95px; height: 4px; margin-top: 10px; border-radius: 4px; background: #ffffff0f; }
.player-progress .progress-bar { background: #a8c58c; border-radius: 4px; }
.timezone { display: inline-flex; align-items: center; gap: 8px; color: #c0cdc1; font-size: 11px; overflow-wrap: anywhere; }
.timezone .icon { width: 14px; height: 14px; color: #829480; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ceb96822; border-radius: 5px; background: #d5bd6510; color: #d5c38a; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.status-badge .status-dot { width: 4px; height: 4px; background: #d5c38a; }
.panel-footer { border-top: 1px solid var(--line); padding: 16px 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #96a69a; font-size: 10px; }
.last-updated { display: flex; align-items: center; gap: 6px; }
.last-updated .icon { width: 12px; height: 12px; }
.empty-state { min-height: 285px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; border-top: 1px solid var(--line); }
.state-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #c2dcaa25; background: #c2dcaa08; border-radius: 16px; color: var(--accent); margin-bottom: 20px; }
.state-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; color: #dfe6d6; margin: 0 0 10px; }
.empty-state p { font-size: 12px; color: var(--muted); max-width: 420px; margin: 0; line-height: 1.9; }
.error-state .state-icon { color: #e9b89d; border-color: #e9b89d30; background: #e9b89d08; }
.page-note { display: flex; align-items: center; gap: 13px; margin-top: 25px; padding: 0 3px; color: #9bab91; }
.page-note > .icon { width: 20px; height: 20px; }
.page-note p { font-size: 11px; line-height: 1.8; margin: 0; }
.page-note p span { display: block; color: var(--muted); font-size: 10px; }
.content-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 46px; margin-top: auto; color: #86968b; font-size: 9px; }
.content-footer > span:first-child { font-size: 8px; letter-spacing: 2px; }
.spinning { animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blazor-error-boundary { background: #602e25; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "Une erreur est survenue."; }
.validation-message { color: #ffb4ab; }
.edit-panel { max-width: 760px; border: 1px solid #ffffff16; border-radius: 10px; background: #17201b70; overflow: hidden; }
.edit-panel-header { padding: 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); }
.edit-panel-header h2 { margin-top: 12px; font-size: 19px; font-weight: 400; }
.edit-panel-header .eyebrow { margin-bottom: 0; }
.edit-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.edit-summary div { display: grid; gap: 8px; padding: 20px 26px; background: #17201b; }
.edit-summary span, .form-help { color: var(--muted); font-size: 11px; }
.edit-summary strong { font-size: 20px; font-weight: 500; }
.edit-form { display: grid; gap: 9px; padding: 26px; }
.edit-form label { font-size: 12px; color: #dce5d8; font-weight: 600; }
.edit-form input { width: min(260px, 100%); border: 1px solid #ffffff20; border-radius: 6px; background: #0e1511a0; color: #e4ecdf; padding: 12px; font-size: 13px; }
.edit-form input:focus { outline: 2px solid #c2dcaa80; outline-offset: 2px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.edit-actions .button-secondary, .page-back-link { margin-top: 0; }

@media (min-width: 1500px) { main { padding-top: 60px; } .metrics { gap: 22px; } td { padding-block: 25px; } }
@media (max-width: 1150px) {
    .sidebar { width: 210px; padding-inline: 16px; }
    .brand { font-size: 12px; letter-spacing: 1.5px; gap: 8px; }
    main { padding: 32px 28px; }
    .topbar, .content-footer { padding-inline: 28px; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { padding: 19px; }
    th, td { padding-inline: 20px; }
}
@media (max-width: 760px) {
    .admin-shell { flex-direction: column; }
    .sidebar { position: static; width: 100%; height: auto; padding: 18px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { font-size: 13px; }
    .brand-mark { width: 32px; height: 35px; }
    .brand small { font-size: 8px; margin-top: 4px; }
    .workspace-label, .sidebar-note, .sidebar-footer { display: none; }
    .sidebar-nav { display: flex; gap: 8px; margin-top: 19px; padding-bottom: 12px; }
    .nav-item { padding: 9px 13px; font-size: 11px; }
    .nav-item .icon { width: 15px; height: 15px; }
    .nav-dot { display: none; }
    .topbar { height: 58px; padding-inline: 22px; }
    .console-label { font-size: 9px; }
    .breadcrumb { font-size: 10px; }
    main { padding: 30px 22px; }
    .page-header { align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
    h1 { font-size: 34px; }
    .page-header p { font-size: 11px; max-width: 300px; }
    .page-header .button { padding: 10px 14px; }
    .metrics { gap: 10px; margin-bottom: 24px; }
    .metric-card { padding: 17px 14px; }
    .metric-heading { font-size: 10px; }
    .metric-heading .icon { width: 14px; height: 14px; }
    .metric-value { font-size: 30px; margin-top: 19px; }
    .metric-detail { font-size: 9px; }
    .panel-header { padding: 20px 17px 16px; flex-wrap: wrap; }
    h2 { font-size: 13px; }
    .pending-label { font-size: 9px; }
    .table-toolbar { padding: 0 17px 18px; flex-wrap: wrap; gap: 12px; }
    .search-field { width: 100%; }
    table { min-width: 570px; }
    th, td { padding-inline: 17px; }
    .panel-footer { padding: 15px 17px; flex-wrap: wrap; font-size: 9px; }
    .content-footer { padding: 20px 22px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
