html, body {
    background: #0c0a18;
    color: #eeeaf7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

* {
    box-sizing: border-box;
}

button {
    font: inherit;
}

.content {
    padding: 0;
}

.lobby-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 3.25rem clamp(1.25rem, 4vw, 4.5rem) 5rem;
}

.hero-panel {
    min-height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(192, 162, 255, .18);
    border-radius: 28px;
    background: radial-gradient(circle at 80% 10%, rgba(111, 63, 180, .35), transparent 35%), linear-gradient(120deg, #21183d 0%, #18122f 48%, #100d22 100%);
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.5) .6px, transparent .6px);
    background-size: 4px 4px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.eyebrow, .section-kicker, .card-label {
    color: #aa8adf;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.eyebrow-line {
    width: 25px;
    height: 1px;
    background: #aa8adf;
}

.hero-panel h1 {
    max-width: 600px;
    margin: 1rem 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .98;
}

.hero-panel h1 em {
    color: #bea4ef;
    font-style: italic;
}

.hero-description {
    max-width: 480px;
    color: #aaa4bd;
    font-size: .93rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.game-button {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 195px;
    padding: .8rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    text-align: left;
}

.game-button:disabled {
    cursor: not-allowed;
    opacity: .9;
}

.game-button--primary {
    background: #8762cf;
    box-shadow: 0 8px 24px rgba(135,98,207,.25);
}

.game-button--secondary {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.15);
}

.game-button strong, .game-button small {
    display: block;
}

.game-button strong {
    font-size: .82rem;
}

.game-button small {
    margin-top: .18rem;
    color: #c4b8df;
    font-size: .63rem;
}

.button-icon {
    color: #e4d8ff;
    font-size: 1.3rem;
}

.moon-scene {
    position: absolute;
    right: 2%;
    bottom: -16%;
    width: 43%;
    height: 115%;
}

.moon {
    position: absolute;
    top: 9%;
    right: 22%;
    width: clamp(135px, 17vw, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #e9dcba;
    box-shadow: 0 0 55px rgba(235,220,186,.25), inset -18px -8px 0 rgba(172,142,107,.14);
}

.moon-glow {
    position: absolute;
    top: 0;
    right: 7%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(196,162,255,.1);
    filter: blur(25px);
}

.wolf-silhouette {
    position: absolute;
    bottom: 4%;
    left: 14%;
    color: #090812;
    font-size: clamp(10rem, 18vw, 17rem);
    line-height: .6;
    opacity: .92;
    transform: rotate(180deg) scaleX(1.25);
}

.scene-star {
    position: absolute;
    color: #d5c3ff;
    font-size: 1.2rem;
}

.scene-star--one { top: 24%; right: 6%; }
.scene-star--two { top: 9%; right: 68%; font-size: 2rem; }
.scene-star--three { top: 43%; left: 6%; }

.welcome-row, .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.welcome-row {
    padding: 3.3rem .35rem 1.6rem;
}

.welcome-row h2, .section-heading h2 {
    margin: .35rem 0 0;
    color: #f8f6fc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.lobby-note {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: #d8d1e5;
    font-size: .75rem;
}

.lobby-note strong, .lobby-note small {
    display: block;
}

.lobby-note small {
    margin-top: .2rem;
    color: #888297;
    font-size: .65rem;
}

.note-icon {
    color: #d3af68;
    font-size: 1.35rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: .85rem;
}

.feature-card {
    min-height: 155px;
    position: relative;
    padding: 1.35rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: #131022;
}

.feature-card--wide {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #19142d, #131022);
}

.card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.card-icon--purple { color: #c6a9ff; background: rgba(145,102,221,.16); }
.card-icon--gold { color: #dfbd75; background: rgba(195,153,67,.14); }
.card-icon--red { color: #db8290; background: rgba(191,76,103,.14); }

.feature-card h3 {
    margin: .55rem 0 .35rem;
    color: #f6f2fb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.feature-card p {
    max-width: 420px;
    margin: 0;
    color: #918ca3;
    font-size: .75rem;
    line-height: 1.6;
}

.card-arrow {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    color: #9880c5;
}

.feature-card > .card-label, .feature-value, .feature-caption {
    display: block;
}

.feature-card > .card-label {
    margin-top: 1.2rem;
}

.feature-value {
    margin-top: .7rem;
    color: #eee9f7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.feature-caption {
    margin-top: .25rem;
    color: #777187;
    font-size: .7rem;
}

.roles-section {
    padding-top: 3.6rem;
}

.section-count {
    color: #777187;
    font-size: .7rem;
}

.role-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.3rem;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: #c4bdcf;
    font-size: .72rem;
}

.role-pill i {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
}

.role-pill--wolf i { background: #c47b85; }
.role-pill--oracle i { background: #b28ee9; }
.role-pill--witch i { background: #d4ae68; }
.role-pill--guard i { background: #82b8c5; }
.role-pill--fool i { background: #db9f71; }

.simple-page {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.simple-page h1 {
    color: #f8f6fc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    margin: .7rem 0 1rem;
}

.simple-page > p {
    color: #aaa4bd;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
}

.simple-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-top: 3rem;
}

.simple-page__grid div {
    background: #131022;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.2rem;
}

.simple-page__grid strong {
    color: #a98be2;
    font-size: .7rem;
}

.simple-page__grid span {
    color: #f2edf9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.simple-page__grid small {
    color: #918ca3;
    line-height: 1.5;
}

.simple-page__back {
    color: #bea4ef;
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
}

@media (max-width: 800px) {
    .moon-scene { right: -14%; width: 52%; opacity: .7; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card--wide { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .lobby-shell { padding-top: 1.5rem; }
    .hero-panel { min-height: 540px; align-items: flex-start; }
    .hero-copy { max-width: 100%; }
    .moon-scene { right: -28%; bottom: -7%; width: 90%; opacity: .55; }
    .welcome-row { align-items: flex-start; flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--wide { grid-column: auto; }
    .simple-page__grid { grid-template-columns: 1fr; }
}

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

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

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2b2540;
    stroke-width: .6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #9872dc;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto .2rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Chargement");
}
