/* Les autres salles du club : compte, jeux et magazine. */
body { --muted: #b6a9af; }
body > header { width: min(960px, calc(100% - 28px)); }
body > header nav a { min-height: 40px; display: flex; align-items: center; }
.article { line-height: 1.8; }
.article :is(h1,h2,h3) { text-wrap: balance; }
.article h1 { text-shadow: 0 0 36px #ff26322e; }
.article :is(input,textarea,select) { min-width: 0; }
.article .form-row { align-items: stretch; }
.article .form-row button { min-height: 48px; }
.article .form-status { padding: 12px 16px; border-radius: 8px; background: #ffffff07; }
.article .form-note { line-height: 1.65; }

/* Connexion : récit à gauche, accès au compte à droite. */
.account-shell .account-page { width: min(1120px, calc(100% - 48px)); padding: 38px 0 64px; }
#signedOut { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(28px,5vw,70px); align-items: start; }
.account-story { padding: 22px 0; }
.account-story h1 { font-size: clamp(64px,7.5vw,100px); line-height: .94; margin-bottom: 25px; }
.account-story .lead { padding: 0; border: 0; background: none; box-shadow: none; font-size: 17px; color: #c5b8be; }
.account-story .perks { gap: 0; margin: 25px 0; }
.account-story .perks li { padding: 17px 18px 17px 0; border: 0; border-top: 1px solid #ffffff13; background: none; border-radius: 0; }
.account-story .perks strong { font-size: 13px; margin-bottom: 5px; }
.account-story .perks strong::before { content: "✦"; color: #ff6877; margin-right: 8px; }
.account-story .perks span { font-size: 12px; line-height: 1.7; display: block; color: #b2a4ab; }
.article .account-back { display: inline-flex; gap: 24px; padding-bottom: 6px; font-size: 13px; color: #fff; text-decoration-color: #ff5361; }
.account-access { padding-top: 23px; }
.account-access .auth-card { position: relative; padding: 32px; border-radius: 18px; background: radial-gradient(ellipse at 80% 0,#b8072021,transparent 60%),linear-gradient(155deg,#1c1016,#0b0609); border-color: #ff697529; box-shadow: 0 25px 80px #0007; }
.access-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border: 1px solid #ff4e643b; border-radius: 14px; color: #ff8793; background: #b60b2520; box-shadow: 0 0 30px #ff143314; }
.auth-card h2 { margin: 0 0 8px; font-size: 34px; }
.auth-card .auth-intro { color: #b8a9b0; font-size: 13px; margin-bottom: 26px; line-height: 1.7; }
.auth-card .google-btn { min-height: 50px; border: 0; border-radius: 10px; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 650; }
.auth-sep { margin: 25px 0 20px; font-size: 11px; }
.auth-card .form-row { flex-direction: column; gap: 10px; }
.auth-card .site-form input { flex: initial; min-height: 50px; }
.auth-card .site-form label { font-size: 12px; margin-bottom: 10px; }
.auth-card .site-form button { width: 100%; font-size: 12px; }
.auth-card .form-note { font-size: 11px; }
.account-access > .form-note { padding-inline: 12px; font-size: 11px; }
.auth-loading { min-height: 350px; display: grid; place-content: center; }
.auth-loading::before { content: ""; width: 30px; height: 30px; margin: 0 auto 16px; border: 2px solid #ff61732e; border-top-color: #ff6173; border-radius: 50%; animation: account-loading 1s linear infinite; }
@keyframes account-loading { to { transform: rotate(360deg); } }
.account-shell .profile { padding: 28px; border: 1px solid #ffffff13; border-radius: 16px; background: radial-gradient(ellipse at top right,#ba0a2524,transparent 65%),#10080d; }
.account-shell .profile-avatar { background: linear-gradient(135deg,#f32b49,#630b1e); border-radius: 18px; box-shadow: 0 0 25px #f32b491c; }
.account-shell .me-form { padding: 24px; border-radius: 14px; }
.account-shell .account-section { margin-top: 38px; }
.account-shell .account-section h2 { font-size: 30px; }
.account-shell .danger-zone { border-color: #ffffff13; background: #ffffff03; }
.account-shell .danger-zone button { background: transparent; color: #ff94a0; border-color: #ff5a703f; box-shadow: none; font-size: 11px; }
.account-shell .game-history li { border-radius: 10px; padding: 18px; }
.account-shell .empty-state { border-style: solid; padding: 38px; }

/* Les quatre modes : une enseigne compacte et une table lisible. */
body[data-mode] .page { width: min(960px, calc(100% - 40px)); padding-top: 32px; }
body[data-mode] .hero { position: relative; display: grid; grid-template-columns: 115px 1fr; gap: 8px 28px; align-items: center; padding: 32px 36px; margin-bottom: 26px; text-align: left; border: 1px solid #ffffff12; border-radius: 18px; overflow: hidden; background: linear-gradient(90deg,#10060bf5 35%,#16050bbf),url('../média/mhytom-club.png') 65% 42% / cover; }
body[data-mode] .hero #logo { grid-row: 1 / 4; grid-column: 1; width: 112px; animation: none; filter: drop-shadow(0 0 20px #ff25334d); }
body[data-mode] .hero h1 { grid-column: 2; font-size: clamp(52px,7vw,76px); letter-spacing: .04em; animation: none; line-height: .95; text-shadow: 0 0 28px #ff344242; }
body[data-mode] .hero-sub { grid-column: 2; max-width: 100%; margin: 0; font-size: 13px; line-height: 1.6; color: #c6b6be; }
body[data-mode] .hero .badge { grid-column: 2; justify-self: start; font-size: 9px; padding: 5px 9px; margin-top: 5px; letter-spacing: .1em; background: #9f0b202d; border-color: #ff6b7830; box-shadow: none; }
body[data-mode] #playerSetup, body[data-mode] #nameInputs { padding: 32px; text-align: left; }
body[data-mode] #playerSetup h2, body[data-mode] #nameInputs > p { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .02em; margin: 5px 0 24px; }
body[data-mode] #playerSetup .row { justify-content: flex-start; }
body[data-mode] #playerSetup .setup-actions { justify-content: flex-start; flex-wrap: wrap; }
body[data-mode] #playerCount { min-height: 52px; font-size: 22px; }
body[data-mode] #specialButton { min-height: 52px; font-size: 12px; }
body[data-mode] .setup-action { font-size: 10px; min-height: 40px; }
body[data-mode] #playground { width: 160px; margin-block: 12px 24px; opacity: .5; }
body[data-mode] #rules { margin-top: 20px; }
body[data-mode] #rulesButton { min-height: 48px; padding-inline: 30px; font-size: 12px; background: #ffffff08; border-color: #ffffff21; box-shadow: none; }
body[data-mode] #rulesText { text-align: left; }
body[data-mode] .rule-section { border-color: #ffffff13; }
body[data-mode] .rule-toc { border-radius: 10px; }
body[data-mode] .rule-toc a { text-transform: none; letter-spacing: 0; min-height: 40px; }
body[data-mode] .support-inline { border-color: #ffffff16; background: #ffffff04; padding: 22px; }
body[data-mode] .support-inline .support-btn { color: #fff; font-size: 12px; }
body[data-mode] .player-chip { border-radius: 12px; }
body[data-mode] #gameArea { padding: 28px; }
body[data-mode] .game-top { padding-bottom: 16px; border-bottom: 1px solid #ffffff10; margin-bottom: 24px; }
body[data-mode] .shoot { border-radius: 12px; }
body[data-mode] .stats { gap: 12px; }
body[data-mode] .room-code { font-variant-numeric: tabular-nums; }
body.viewer .hero { display: none !important; }

/* Guides et informations : une couverture puis un rythme éditorial sobre. */
.content-page .article { width: min(940px,calc(100% - 48px)); padding-top: 32px; }
.content-page .article::before { top: 78px; left: 50%; width: calc(100% + 64px); height: 340px; border-radius: 20px; background: linear-gradient(90deg,#10060a 15%,#10060aea 55%,#10060ab5),url('../média/mhytom-club.png') 80% 32% / cover; border: 1px solid #ffffff0c; }
.content-page .article::after { display: none; }
.content-page .breadcrumb { margin-bottom: 48px; padding: 0; border: 0; background: none; font-size: 10px; }
.content-page .article > .kicker { margin-bottom: 14px; }
.content-page .article h1 { font-size: clamp(48px,7vw,80px); max-width: 830px; line-height: .98; }
.content-page .lead { background: none; box-shadow: none; padding: 0 0 0 20px; margin-block: 24px 30px; font-size: 17px; color: #d0c2c9; max-width: 780px; }
.content-page .article-facts { margin-bottom: 44px !important; gap: 12px; }
.content-page .article-facts li { padding: 17px; background: #10090def; border-color: #ffffff16; }
.content-page .article-facts strong { font-size: 30px; }
.content-page .article > h2 { font-size: 34px; margin-top: 44px; padding-bottom: 16px; }
.content-page .article > p, .content-page .article > ul:not(.card-gallery):not(.box-list):not(.article-facts) { max-width: 810px; }
.content-page .form-card { padding: 30px; border-radius: 16px; }
.content-page .form-card h2 { font-size: 31px; }
.content-page .form-card::after { display: none; }
.content-page .card-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.content-page .card-gallery li { padding: 22px 28px; border-radius: 12px; background: radial-gradient(ellipse at 50% 35%,#760b2330,transparent 65%),#10090d; }
.content-page .card-gallery strong { font-family: var(--display); font-size: 26px; letter-spacing: .04em; margin-top: 16px; }
.content-page .card-gallery span { font-size: 12px; line-height: 1.6; }
.content-page .card-gallery img { border-color: #ffffff1a; }
.content-page .box-list { gap: 14px; }
.content-page .box-list li { padding: 22px; }
.content-page .table-wrap { overflow-x: auto; }
.content-page .data-table { width: 100%; }
.content-page .data-table th, .content-page .data-table td { padding: 15px 18px; }
.content-page .note-box { border-left-color: #ff5e72; background: #ff263309; color: #c9b9c1; }
.content-page .game-item { padding: 28px; }
.content-page .game-item h3 { font-family: var(--display); font-size: 30px; letter-spacing: .03em; }
.content-page .game-item p { font-size: 14px; }
.content-page .game-item::after { font-size: 56px; top: 16px; right: 20px; }
.content-page .cta { padding: 27px; gap: 20px; }
.content-page .cta .btn { font-size: 13px; }
.content-page .faq { display: grid; gap: 9px; }
.content-page .faq details { padding: 0; border: 1px solid #ffffff14; border-radius: 10px; background: #ffffff03; }
.content-page .faq summary { padding: 18px; color: #eee4e9; cursor: pointer; font-size: 14px; }
.content-page .faq details p { padding: 0 18px 18px; font-size: 14px; }
.page-privacy .article h1 { font-size: clamp(46px,6.5vw,72px); }
.page-privacy .article > h2:not(#contactTitle) + p { padding: 0; border: 0; border-radius: 0; background: none; margin-bottom: 24px; color: #c6b8bf; }
.page-privacy .article > h2 { font-family: var(--body); font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
.page-switcher { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; margin: 0 0 28px; border: 1px solid #ffffff13; border-radius: 12px; background: #10090d; }
.article .page-switcher a { flex: 1 1 auto; padding: 10px 13px; text-align: center; font-size: 10px; text-decoration: none; color: #bbabb3; border-radius: 7px; }
.article .page-switcher a[aria-current="page"] { color: #fff; background: #a70b252f; box-shadow: inset 0 0 0 1px #ff4b6436; }

/* Accusé de réception et page introuvable. */
.status-page .article, .status-page .page { width: min(820px,calc(100% - 32px)); margin: 54px auto; padding: 42px; text-align: center; border: 1px solid #ffffff16; border-radius: 22px; background: linear-gradient(135deg,#10070dee,#10070ddc),url('../média/mhytom-club.png') center / cover; }
.status-page .breadcrumb { margin-bottom: 30px; }
.status-page .kicker { margin-inline: auto; }
.status-symbol { display: grid; place-items: center; width: 64px; height: 64px; margin: 24px auto; border-radius: 50%; color: #ff8797; border: 1px solid #ff506650; background: #ff294015; font-size: 30px; }
.status-page h1 { font-size: clamp(48px,7vw,80px); text-shadow: 0 0 30px #ff183c33; animation: none; }
.status-page .lead { padding: 0; border: 0; background: none; box-shadow: none; font-size: 16px; margin: 24px auto; }
.status-page .hint { line-height: 1.7; font-size: 15px; }
.status-home { display: inline-flex; gap: 24px; padding: 14px 22px; color: #fff; background: #bd1028; border-radius: 10px; text-decoration: none; }

@media (max-width: 740px) {
    #signedOut { grid-template-columns: 1fr; gap: 12px; }
    .account-shell .account-page { width: calc(100% - 32px); padding-top: 25px; }
    .account-story { padding: 0; }
    .account-story h1 { font-size: 66px; }
    .account-story h1 br { display: none; }
    .account-story .lead { font-size: 15px; margin-bottom: 16px; }
    .account-story .perks { grid-template-columns: 1fr 1fr; margin-block: 18px; }
    .account-story .perks li { padding: 12px 10px 12px 0; }
    .account-story .perks strong { font-size: 12px; }
    .account-access { padding-top: 12px; }
    .account-access .auth-card { padding: 24px; }
    .account-shell .profile { padding: 20px; }
    .content-page .article { width: calc(100% - 32px); }
    .content-page .article::before { width: calc(100% + 16px); top: 64px; }
    .content-page .article h1 { font-size: clamp(43px,10vw,66px); }
    .content-page .breadcrumb { margin-bottom: 36px; }
    .content-page .lead { font-size: 15px; padding-left: 15px; }
    .content-page .article-facts { gap: 7px; }
    .content-page .article-facts li { padding: 12px 10px; }
    .content-page .article-facts strong { font-size: 24px; }
    .content-page .card-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .content-page .card-gallery li { padding: 13px; }
    .content-page .card-gallery span { display: block; }
    .content-page .form-card, .content-page .cta { padding: 23px 18px; }
    .content-page .form-row { flex-direction: column; }
    .content-page .form-row input { flex: auto; }
    .content-page .data-table th, .content-page .data-table td { padding: 12px 9px; font-size: 12px; }
    .content-page .article > h2 { font-size: 29px; }
    .page-privacy .article > h2 { font-size: 18px; }
    .page-switcher { gap: 3px; }
    .article .page-switcher a { padding: 10px 8px; font-size: 9px; }
    body[data-mode] .page { width: calc(100% - 24px); padding-top: 24px; }
    body[data-mode] .hero { padding: 25px 19px; grid-template-columns: 65px 1fr; gap: 7px 17px; }
    body[data-mode] .hero #logo { width: 65px; }
    body[data-mode] .hero h1 { font-size: 52px; }
    body[data-mode] .hero-sub { font-size: 12px; }
    body[data-mode] .hero .badge { font-size: 8px; }
    body[data-mode] #playerSetup, body[data-mode] #nameInputs, body[data-mode] #gameArea { padding: 23px 17px; }
    body[data-mode] #playerSetup h2, body[data-mode] #nameInputs > p { font-size: 28px; }
    body[data-mode] #playerSetup .setup-actions { gap: 7px; }
    .status-page .article, .status-page .page { padding: 30px 20px; margin-block: 30px; }
}
@media (max-width: 480px) {
    body > header { display: flex; flex-wrap: wrap; width: calc(100% - 20px); padding: 7px 9px; gap: 3px 8px; }
    body > header > a:first-child { margin-right: auto; }
    body > header nav { order: 2; flex: 1 0 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 2px 0 0; overflow: visible; }
    body > header nav a { justify-content: center; min-height: 40px; padding: 7px 3px; font-size: 9px; letter-spacing: .04em; }
    body > header img { width: 29px; height: 29px; }
    .account-link { width: 30px; height: 30px; }
    .panel, #result, #chaosPanel, .article :is(h2,h3) { scroll-margin-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { .auth-loading::before { animation: none; } }
