/* ============================================================
   Olisé — les programmes : Le fil, Mon bureau, les boîtes CD-ROM, Mes dossiers,
   la Corbeille, le Bloc-notes, les Propriétés d'affichage, le jeu, Paint.
   ============================================================ */

/* ---------- visages (le personnage en portrait) ---------- */
.face { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; background: #eef2fb; border: 1px solid #aeb9d4; border-radius: 3px; }
.face canvas { image-rendering: pixelated; display: block; }
.face.lg { width: 96px; height: 96px; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa9c9, 2px 2px 4px rgba(0, 0, 0, .2); }
.face.sm { width: 32px; height: 32px; }
.face.round { border-radius: 50%; }
.status { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: #3cb84a; }
.status.idle { background: #f0b232; } .status.off { background: #9a9a9a; }

/* ---------- LE FIL ---------- */
.split { display: flex; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.pane-main { flex: 1; min-width: 0; overflow-y: auto; padding: 10px 14px 14px; border-top: 1px solid var(--face-shadow); }
.pane-side { flex: none; width: 214px; overflow-y: auto; background: #fff; border-top: 1px solid var(--face-shadow); border-left: 1px solid var(--face-shadow); }
.side-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 6px; background: linear-gradient(180deg, #fbfbf8, #e6e3d5); border-bottom: 1px solid var(--face-shadow); font-weight: 700; }
.side-head img { width: 16px; height: 16px; }
.side-foot { margin: 10px 8px; color: #6f6f6f; line-height: 1.45; }
@media (max-width: 760px) { .pane-side { display: none; } .pane-main { padding: 8px 10px 12px; } }

.composer-post { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid #d0d0bf; border-radius: 4px; background: #fbfbf9; }
.composer-post:focus-within { border-color: var(--field); }
.composer-post.drop { border-color: var(--sel); box-shadow: 0 0 0 2px rgba(49, 106, 197, .35); }
.cp-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
.cp-row .face { width: 40px; height: 40px; }
.cp-row textarea { width: 100%; min-height: 54px; font-size: 13px; }
.cp-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.cp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-tools select { width: auto; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; border: 1px solid #aca899; }
.thumb img, .thumb video { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb-x { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; padding: 0; border: 1px solid #fff; border-radius: 3px; background: #d8452c; color: #fff; font: 700 13px/17px var(--font-ui); }
.thumb-tag { position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; }

.post { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #e4e1d4; }
.post .face { width: 40px; height: 40px; }
.post .pbody { min-width: 0; }
.post .who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.post .who b { color: #0a246a; font: 700 12px var(--font-ui); }
.post .who small { color: #7a7a7a; }
.post .pdel { margin-left: auto; color: #7a7a7a; font-size: 11px; }
.post .pdel:hover { color: #c0392b; }
.post .txt { margin-top: 3px; font: 13px/1.45 var(--font-ui); white-space: pre-wrap; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; height: 15px; padding: 0 5px; border: 1px solid; border-radius: 2px; font: 10px/1 var(--font-ui); }
.pill.pub { color: #2c7a1f; border-color: #9ccf8f; background: #eef8ea; }
.pill.circle { color: #1f4fae; border-color: #a9bfe9; background: #edf2fc; }
.pill.live { color: #9a5a00; border-color: #e6c07a; background: #fff6e3; }
.media { display: grid; gap: 3px; margin-top: 7px; max-width: 520px; }
.media.n1 { grid-template-columns: 1fr; } .media.n2, .media.n3, .media.n4 { grid-template-columns: 1fr 1fr; }
.media.n3 > :first-child { grid-row: span 2; }
.media img, .media video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; border: 1px solid #aca899; }
.media.n1 img { max-height: 440px; object-fit: contain; background: #f4f3ee; }
.media.n1 video { max-height: 440px; }
.media.n2 img, .media.n3 img, .media.n4 img { aspect-ratio: 1; }
.media img.px { image-rendering: pixelated; }
.media .missing { padding: 16px; text-align: center; color: #777; border: 1px dashed #bbb; }
.act { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; border: 1px solid #c9c7ba; border-radius: 3px; background: linear-gradient(180deg, #fff, #efeee7); color: #333; font: 11px var(--font-ui); }
.react canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.react:hover { border-color: #e5a01a; }
.react.on { border-color: #316ac5; background: #dfe8f8; color: #0a246a; }
.react.add canvas { filter: grayscale(1) opacity(.65); transition: transform .12s, filter .12s; }
.react.add:hover canvas, .react.add:focus-visible canvas { filter: none; transform: scale(1.2); }
.react .n { font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .react { height: 32px; padding: 0 9px; } }
.rpicker { position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 4px; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 3px rgba(0, 0, 0, .3); }
.rpicker button { width: 32px; height: 32px; padding: 0; border: 1px solid transparent; background: none; display: grid; place-items: center; }
.rpicker button:hover, .rpicker button:focus-visible { border-color: #316ac5; background: #dfe8f8; outline: none; }
.rpicker canvas { width: 24px; height: 24px; image-rendering: pixelated; }
@media (max-width: 420px) { .rpicker { grid-template-columns: repeat(6, 40px); } .rpicker button { width: 40px; height: 40px; } }
.end { padding: 18px 8px 4px; text-align: center; color: #7a7a7a; }
.end::before { content: ''; display: block; width: 60px; height: 1px; margin: 0 auto 10px; background: #d0d0bf; }
.person { display: flex; align-items: center; gap: 7px; padding: 5px 6px; }
.person:hover { background: #eef3fc; }
.person .face { width: 32px; height: 32px; }
.person b { display: block; font-weight: 700; }
.person small { display: block; color: #6f6f6f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .grow { min-width: 0; }

/* ---------- MON BUREAU ---------- */
.profile-head { display: flex; align-items: flex-start; gap: 14px; }
.profile-head h2 { font: 700 20px/1.15 var(--font-title); color: #0a246a; }
.profile-head #me-mood { margin: 3px 0 7px; }
.profile-head #me-bio { font-size: 12px; line-height: 1.5; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid #a9bfe9; border-radius: 3px; background: #edf2fc; color: #0a246a; font: 11px var(--font-ui); }
button.tag { cursor: pointer; }
.tag.on { background: var(--sel); border-color: var(--sel); color: var(--sel-ink); }
@media (pointer: coarse) { .tag { height: 32px; padding: 0 10px; font-size: 13px; } }
.tp-details .face { width: 48px; height: 48px; margin-bottom: 4px; }
.live-row { display: flex; align-items: center; gap: 6px; }
.gb-row { display: flex; align-items: flex-start; gap: 6px; }
.gb-row .face { width: 24px; height: 24px; }

/* ---------- BOÎTES DE LOGICIEL / CD-ROM ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 16px; padding: 6px 2px 4px; }
.cdbox { perspective: 900px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.cdbox .box { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; transform: rotateY(-14deg) rotateX(2deg); transform-style: preserve-3d; transition: transform .3s ease; box-shadow: 10px 12px 18px -10px rgba(0, 0, 0, .55); }
.cdbox:hover .box, .cdbox:focus-visible .box { transform: rotateY(-4deg) translateY(-2px); }
.cdbox .front { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: #cfcfd4 center / cover no-repeat; border: 1px solid rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .2); }
.cdbox .front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .18)); }
.cdbox .spine { position: absolute; top: 0; bottom: 0; left: 0; width: 12px; transform-origin: left; transform: rotateY(90deg) translateX(-12px); background: linear-gradient(90deg, #bfb39a, #e7dcc4); }
.cdbox .label { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; background: rgba(252, 250, 244, .94); border: 1px solid rgba(0, 0, 0, .18); }
.cdbox .label b { display: block; font: 700 12px/1.2 var(--font-title); color: #0a246a; }
.cdbox .label small { display: block; margin-top: 1px; font-size: 10px; color: #44557a; }
.cdbox .disc { position: absolute; right: -12px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; transform: translateZ(8px); transition: transform .45s ease;
  background: conic-gradient(from 20deg, #f7f9fb, #b9c3cf 14%, #e5ebf1 28%, #d5b8ff 40%, #f7f9fb 52%, #b8e0ff 64%, #b9c3cf 78%, #f7f9fb); box-shadow: 0 5px 10px -4px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cdbox .disc::after { content: ''; position: absolute; inset: 40%; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #8f9bab; }
.cdbox:hover .disc { transform: translateZ(8px) translateX(7px) rotate(60deg); }
.cdbox .meta { margin-top: 10px; }
.cdbox .meta b { font: 700 12px/1.25 var(--font-ui); }
.cdbox .meta small { display: block; margin-top: 2px; color: #6f6f6f; }
.act-grid { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.act-grid ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.5; }
.act-note { padding: 8px 10px; background: #ffffe1; border: 1px solid #e3d98a; }
@media (max-width: 560px) { .act-grid { grid-template-columns: 1fr; } .act-grid .cdbox { width: 130px; } }

/* ---------- CORBEILLE ---------- */
.trash-list { display: flex; flex-direction: column; }
.trash-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #eee; }
.trash-row img { width: 32px; height: 32px; }
.trash-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-row small { color: #777; }
.trash-row .row { flex-wrap: nowrap; gap: 4px; }
@media (max-width: 520px) { .trash-row { grid-template-columns: 32px 1fr; } .trash-row .row { grid-column: 2; } }

/* ---------- BLOC-NOTES ---------- */
.notepad { flex: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 2px 4px; border: 0; border-top: 1px solid var(--face-shadow); background: #fff; color: #000; font: 13px/1.35 var(--font-mono); resize: none; outline: none; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: none !important; }
.notepad.nowrap { white-space: pre; overflow-wrap: normal; }
.notepad.big { font-size: 16px; } .notepad.small { font-size: 11px; }
@media (pointer: coarse) { .notepad { font-size: 15px; } }

/* ---------- PROPRIÉTÉS D'AFFICHAGE ---------- */
.props-body { display: flex; flex-direction: column; padding: 8px 8px 10px; overflow: auto; }
.props .tabpanel { min-height: 330px; }
.monitor { position: relative; width: 190px; height: 158px; margin: 4px auto 12px; }
.monitor::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 136px; border-radius: 6px; background: linear-gradient(180deg, #f3f2ea, #d9d6c6); border: 1px solid #8f8c7c; box-shadow: inset 0 0 0 2px #fff; }
.monitor::after { content: ''; position: absolute; left: 62px; right: 62px; bottom: 0; height: 24px; background: linear-gradient(180deg, #cfccbb, #b6b3a2); border: 1px solid #8f8c7c; border-top: 0; border-radius: 0 0 8px 8px; }
.monitor .screen { position: absolute; left: 13px; right: 13px; top: 11px; height: 112px; z-index: 1; background: #3a6ea5 center / cover no-repeat; border: 1px solid #3c3c3c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.wall-row { display: flex; gap: 8px; align-items: flex-start; }
.wall-row select { flex: 1; min-width: 0; }
.wall-side { display: flex; flex-direction: column; gap: 6px; }
.props-btns { display: flex; justify-content: flex-end; gap: 6px; padding-top: 10px; }
.scheme-preview { margin-top: 10px; border-radius: 6px 6px 0 0; overflow: hidden; border: 1px solid #999; }
.scheme-preview .sp-title { height: 22px; padding: 0 8px; background: var(--title-grad); color: var(--title-ink); font: 700 12px/22px var(--font-title); text-shadow: var(--title-shadow); }
.scheme-preview .sp-body { padding: 10px; background: var(--face); }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.avatars button { display: grid; justify-items: center; gap: 2px; padding: 5px 0 3px; border: 1px solid transparent; background: none; font: 10px var(--font-ui); color: #333; }
.avatars button:hover { border-color: #c9c7ba; background: #f7f6f0; }
.avatars button.on { border-color: var(--sel); background: #dfe8f8; }
.avatars .face { width: 48px; height: 48px; }

/* ---------- OLISÉ, LE JEU ---------- */
.game-frame { position: relative; background: #fdf3e3; }
.game-frame.retro, .game-frame.retro iframe { background: #000; }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fdf3e3; }
.jeu-wait { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; background: #fdf3e3; color: #5b4a3a; font: 13px var(--font-ui); text-align: center; }
.jeu-wait .xp-progress { width: 200px; }
.jeu-wait img { border-radius: 14px; }
/* le jeu n'est pas encore hébergé : le CD tourne doucement et annonce l'ouverture */
.jeu-wait.soon { gap: 8px; align-content: center; background: radial-gradient(ellipse at 50% 12%, #fffaf2, #fdebd6 58%, #f6d6b8); overflow-y: auto; }
.jeu-wait.soon .soon-art { width: 132px; height: 132px; margin-bottom: 6px; animation: spin 7s linear infinite; }
.jeu-wait.soon .soon-art canvas { display: block; }
.jeu-wait.soon .soon-kicker { font: 700 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #b0643a; }
.jeu-wait.soon h2 { margin: 0; font: 700 24px/1.15 var(--font-title); color: #4a3423; text-wrap: balance; }
.jeu-wait.soon .soon-text { max-width: 34em; margin: 0; font: 13px/1.5 var(--font-ui); color: #6b5442; text-wrap: pretty; }
.jeu-wait.soon .soon-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- PAINT ---------- */
.paint { display: flex; flex-direction: column; background: var(--face); }
.paint-main { flex: 1; min-height: 0; display: flex; }
.paint-tools { flex: none; width: 56px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1px solid var(--face-shadow); box-shadow: 1px 0 #fff; }
.paint-toolgrid { display: grid; grid-template-columns: 25px 25px; gap: 0; }
.ptool { width: 25px; height: 25px; padding: 0; border: 1px solid transparent; background: none; display: grid; place-items: center; }
.ptool canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.ptool:hover { border-color: #fff #aca899 #aca899 #fff; }
.ptool.on { border-color: #aca899 #fff #fff #aca899; background: repeating-conic-gradient(#fff 0 25%, #e3e2da 0 50%) 0 0 / 2px 2px; }
.paint-opts { width: 42px; min-height: 64px; padding: 3px; border: 1px solid; border-color: #aca899 #fff #fff #aca899; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.paint-opts button { width: 34px; height: 14px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.paint-opts button.on { background: var(--sel); }
.paint-opts button canvas { image-rendering: pixelated; }
.paint-work { flex: 1; min-width: 0; overflow: auto; background: #808080; padding: 4px; touch-action: none; }
.paint-canvas-wrap { position: relative; display: inline-block; box-shadow: 1px 1px 0 #404040; background: #fff; line-height: 0; }
.paint-canvas-wrap canvas { display: block; image-rendering: pixelated; }
.paint-canvas-wrap canvas.overlay { position: absolute; left: 0; top: 0; pointer-events: none; }
.paint-canvas-wrap .resize { position: absolute; right: -6px; bottom: -6px; width: 6px; height: 6px; background: #316ac5; border: 1px solid #fff; cursor: nwse-resize; touch-action: none; }
.paint-text { position: absolute; z-index: 2; min-width: 40px; border: 1px dashed #316ac5; background: transparent; padding: 0; margin: 0; resize: both; outline: none; line-height: 1.2; overflow: hidden; }
.paint-colors { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 4px 3px; border-top: 1px solid #fff; box-shadow: 0 -1px var(--face-shadow); }
.paint-current { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid; border-color: #aca899 #fff #fff #aca899; background: repeating-conic-gradient(#fff 0 25%, #d6d2c2 0 50%) 0 0 / 2px 2px; }
.paint-current span { position: absolute; width: 14px; height: 14px; border: 1px solid; border-color: #fff #404040 #404040 #fff; }
.paint-current .fg { left: 4px; top: 4px; z-index: 1; } .paint-current .bg { right: 4px; bottom: 4px; }
.paint-palette { display: grid; grid-template-columns: repeat(14, 16px); grid-auto-rows: 16px; gap: 0; }
.paint-palette button { width: 16px; height: 16px; padding: 0; border: 1px solid; border-color: #808080 #fff #fff #808080; }
@media (pointer: coarse) {
  .paint-tools { width: 64px; } .paint-toolgrid { grid-template-columns: 30px 30px; } .ptool { width: 30px; height: 30px; }
  .paint-palette { grid-template-columns: repeat(14, 22px); grid-auto-rows: 22px; } .paint-palette button { width: 22px; height: 22px; }
}
@media (max-width: 520px) { .paint-palette { grid-template-columns: repeat(7, 22px); } }

/* ---------- MON COMPTE : la fenêtre du compte et le choix de l'image ---------- */
.acct { display: flex; flex-direction: column; gap: 14px; min-width: min(340px, 72vw); }
.acct-head { display: flex; align-items: center; gap: 14px; }
.acct-pic, .pic-now { flex: none; overflow: hidden; border: 3px solid #fff; border-radius: 6px; background: #e8eefc; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.acct-pic { width: 78px; height: 78px; }
.acct-name { display: block; font: 700 18px var(--font-title); color: #0b2f86; }
.acct-mail, .acct-kind { display: block; margin-top: 2px; color: #444; overflow-wrap: anywhere; }
.acct-kind { font-size: 11px; color: #6b6b6b; }
.acct-actions { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #c5d2ea; border-radius: 4px; background: linear-gradient(180deg, #f5f8ff, #e6edfb); }
.acct-actions .tp-link { position: relative; min-height: 26px; padding-left: 16px; color: #0b3bb5; font-size: 12px; }
.acct-actions .tp-link::before { content: ''; position: absolute; left: 3px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
.acct-actions .tp-link.danger { color: #b3261e; }
.acct-form label { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.acct-form input { height: 26px; font-size: 13px; }
.pic-dialog { min-width: min(480px, 80vw); }
.pic-dialog p { margin: 0 0 10px; }
.pic-dialog-row { display: flex; align-items: flex-start; gap: 14px; }
.pic-now { width: 102px; height: 102px; }
.pic-dialog-grid { flex: 1; min-width: 0; max-height: min(290px, 46vh); overflow-y: auto; padding: 6px; border: 1px solid #7f9db9; background: #fff; }
.pic-dialog .pic-choice:hover, .pic-dialog .pic-choice:focus-visible { border-color: #9db9eb; }
.pic-dialog .pic-choice[aria-checked="true"] { border-color: #316ac5; background: #c1d2ee; }
@media (max-width: 560px) { .pic-dialog-row { flex-direction: column; align-items: center; } .pic-dialog-grid { width: 100%; } }

/* ---------- LE FIL : la messagerie (liste de contacts, salons, conversations) ---------- */
.msn-dot { --dot: #a3abb5; display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 16%, rgba(255, 255, 255, 0) 46%), var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), 0 1px 1px rgba(0, 0, 0, .15); }
.msn-dot.online { --dot: #36ad33; } .msn-dot.away { --dot: #f29e0c; } .msn-dot.busy { --dot: #de3a2c; } .msn-dot.offline { --dot: #a3abb5; }
.win-body.msn { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #fff; }
.msn-me { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px 9px; background: linear-gradient(180deg, #eef5fe 0%, #d9e7fa 65%, #c9dcf6 100%); }
.msn-me .face.msn-pic { --ring: #36ad33; width: 58px; height: 58px; padding: 0; border: 2px solid #fff; border-radius: 6px; background: #e8eefc; box-shadow: 0 0 0 2px var(--ring), 0 2px 5px rgba(0, 0, 0, .25); cursor: pointer; }
.msn-me .face.msn-pic[data-status="away"] { --ring: #f29e0c; } .msn-me .face.msn-pic[data-status="busy"] { --ring: #de3a2c; } .msn-me .face.msn-pic[data-status="hidden"] { --ring: #a3abb5; }
.msn-me .face.msn-pic img, .msn-me .face.msn-pic canvas { width: 100% !important; height: 100% !important; }
.msn-me-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msn-state { display: inline-flex; align-items: baseline; gap: 5px; align-self: flex-start; max-width: 100%; padding: 2px 5px; border: 1px solid transparent; border-radius: 3px; background: none; color: #10316b; font: 12px var(--font-ui); text-align: left; }
.msn-state b { overflow: hidden; font: 700 14px var(--font-title); text-overflow: ellipsis; white-space: nowrap; }
.msn-state .caret { align-self: center; border: 4px solid transparent; border-top: 5px solid currentColor; border-bottom: 0; }
.msn-state:hover, .msn-state:focus-visible { border-color: #9dbbe6; background: rgba(255, 255, 255, .6); outline: none; }
.msn-me input.msn-perso { width: 100%; min-width: 0; height: 24px; padding: 2px 5px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #4b5563; font: italic 12px var(--font-ui); box-shadow: none; }
.msn-me input.msn-perso:hover { border-color: #b3c9ea; background: rgba(255, 255, 255, .55); }
.msn-me input.msn-perso:focus { border-color: #7f9db9; background: #fff; color: #000; font-style: normal; outline: none; }
.msn-tabs { display: flex; gap: 2px; padding: 0 10px; background: #c9dcf6; border-bottom: 1px solid #93b2e0; }
.msn-tabs button { margin-bottom: -1px; padding: 5px 12px 4px; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; background: none; color: #1b3f84; font: 12px var(--font-ui); }
.msn-tabs button:hover { background: rgba(255, 255, 255, .5); }
.msn-tabs button[aria-selected="true"] { border-color: #93b2e0; background: #fff; color: #000; font-weight: 700; }
.msn-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.msn-search { display: block; padding: 7px 10px 5px; }
.msn-search input { width: 100%; height: 26px; padding: 2px 8px; border: 1px solid #a9bfdf; border-radius: 13px; background: #fff; font: 12px var(--font-ui); }
.msn-search input:focus { border-color: #5b8fdc; outline: none; box-shadow: 0 0 0 2px rgba(91, 143, 220, .25); }
.msn-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 0 8px; }
.msn-group { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 12px 3px; border: 0; background: none; color: #1f4d99; font: 700 11.5px var(--font-ui); text-align: left; }
.msn-group .tri { width: 0; height: 0; border: 4px solid transparent; border-top: 6px solid currentColor; border-bottom: 0; transition: transform .12s; }
.msn-group.closed .tri { transform: rotate(-90deg); }
.msn-group:hover .g, .msn-group:focus-visible .g { text-decoration: underline; }
.msn-group:focus-visible { outline: none; }
.msn-row { display: flex; align-items: center; gap: 7px; min-height: 32px; margin: 0 5px; padding: 3px 8px 3px 18px; border-radius: 3px; cursor: default; user-select: none; -webkit-user-select: none; outline: none; }
.msn-row:hover { background: #eef5fe; box-shadow: inset 0 0 0 1px #c3d8f6; }
.msn-row.sel, .msn-row:focus-visible { background: linear-gradient(180deg, #e2eefd, #cfe1fa); box-shadow: inset 0 0 0 1px #86b0e6; }
.msn-row.off { opacity: .62; }
.msn-row .face.msn-mini { width: 26px; height: 26px; border: 1px solid #b7c6dd; border-radius: 3px; }
.msn-row .face.msn-mini img, .msn-row .face.msn-mini canvas { width: 100% !important; height: 100% !important; }
.msn-row-txt { flex: 1; min-width: 0; overflow: hidden; font: 12.5px var(--font-ui); text-overflow: ellipsis; white-space: nowrap; }
.msn-row-txt b { font-weight: 400; color: #000; }
.msn-row-txt i { color: #767676; }
.msn-row-txt i::before { content: ' — '; }
.msn-row.room .msn-row-txt b { font-weight: 700; color: #123c7c; }
.msn-room-ico { flex: none; width: 36px; height: 26px; border-radius: 3px; object-fit: cover; image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22); }
.msn-count { flex: none; color: #2f7a22; font: 11px var(--font-ui); }
.msn-where { flex: none; padding: 1px 6px; border-radius: 8px; background: #e2edfc; color: #1f4d99; font: 10.5px var(--font-ui); }
.msn-unread { flex: none; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e8590c; color: #fff; font: 700 10.5px/18px var(--font-ui); text-align: center; }
.msn-empty { margin: 16px; color: #767676; font: 12px var(--font-ui); text-align: center; }
.msn-foot { padding: 6px 10px 8px; border-top: 1px solid #dfe6f1; background: #f5f8fd; }
.msn-invite { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; background: none; color: #0b3bb5; font: 12px var(--font-ui); }
.msn-invite:hover, .msn-invite:focus-visible { border-color: #b3c9ea; background: #fff; text-decoration: underline; outline: none; }
.fil-panel { overflow-y: auto; padding: 0 10px 12px; background: #fff; }
.fil-tools { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 2px; margin: 0 -10px 8px; padding: 3px 6px; border-bottom: 1px solid #dfe6f1; background: #f5f8fd; }
.fil-tools .tbtn { height: 32px; }
.fil-panel .post { grid-template-columns: 36px 1fr; gap: 8px; }
.fil-panel .post .face { width: 36px; height: 36px; }
/* la fenêtre de conversation */
.conv-win { min-width: 300px; }
.conv-bar { display: flex; flex: none; gap: 2px; padding: 4px 6px; border-bottom: 1px solid #a9c1e6; background: linear-gradient(180deg, #f6f9fe, #dbe7f8); }
.conv-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px 0 6px; border: 1px solid transparent; border-radius: 3px; background: none; color: #10316b; font: 12px var(--font-ui); }
.conv-act img { width: 24px; height: 24px; }
.conv-act:hover, .conv-act:focus-visible { border-color: #9dbbe6; background: linear-gradient(180deg, #fff, #e6effb); outline: none; }
.conv-act:active { background: #d2e2f7; }
.wz-ico { display: inline-block; flex: none; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12.5l3.2-5.5 3.3 11 3.2-11 3.3 11 3.2-11 2.8 5.5' fill='none' stroke='%23e8590c' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.win-body.conv { display: flex; flex-direction: column; gap: 6px; padding: 7px 8px 8px; background: #eef4fc; overflow: hidden; }
.conv-to { display: flex; flex: none; align-items: center; gap: 6px; min-width: 0; padding: 5px 8px; border: 1px solid #b7cbe8; border-radius: 3px; background: #fff; font: 12px var(--font-ui); white-space: nowrap; }
.conv-name { font-weight: 700; color: #0b2f6e; }
.conv-perso { overflow: hidden; color: #767676; text-overflow: ellipsis; }
.conv-perso::before { content: '— '; }
.conv-main { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.conv-log { overflow-y: auto; padding: 8px 10px; border: 1px solid #a9bfe0; border-radius: 3px; background: #fff; font: 13px/1.45 'Segoe UI', Tahoma, var(--font-ui); overflow-wrap: anywhere; }
.conv-log:focus-visible { outline: 2px solid #5b8fdc; outline-offset: -2px; }
.msg { margin: 0 0 2px; }
.msg-head { margin-top: 6px; color: #7b7b7b; font-size: 12px; }
.msg-body { padding-left: 12px; color: #111; white-space: pre-wrap; }
.msg.me .msg-body { color: #0b2f6e; }
.msg.sys { margin: 6px 0; color: #6b7280; font-size: 12px; font-style: italic; }
.msg.sys.wz { color: #c2410c; font-style: normal; font-weight: 700; }
.emo { width: 20px; height: 20px; margin: 0 1px; vertical-align: -5px; image-rendering: pixelated; }
.conv-pics { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.conv-pics .face { width: 100px; height: 100px; border: 3px solid #fff; border-radius: 6px; background: #e8eefc; box-shadow: 0 0 0 1px #9fb6d8, 0 2px 5px rgba(0, 0, 0, .18); }
.conv-pics .face img, .conv-pics .face canvas { width: 100% !important; height: 100% !important; }
.conv-typing { flex: none; height: 15px; padding-left: 2px; color: #6b7280; font: italic 11px var(--font-ui); }
.conv-form { display: flex; flex: none; flex-direction: column; border: 1px solid #a9bfe0; border-radius: 3px; background: #fff; }
.conv-tools { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #e3eaf4; background: #f7faff; }
.conv-tool { display: grid; width: 28px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; place-items: center; }
.conv-tool canvas { width: 18px; height: 18px; image-rendering: pixelated; }
.conv-tool .wz-ico { width: 18px; height: 18px; }
.conv-tool:hover, .conv-tool:focus-visible { border-color: #9dbbe6; background: #eaf2fd; outline: none; }
.conv-write { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 5px; }
.conv-write textarea { min-height: 46px; max-height: 120px; resize: none; border: 0; box-shadow: none; font: 13px 'Segoe UI', Tahoma, var(--font-ui); }
.conv-write textarea:focus { outline: none; }
.conv-send { align-self: stretch; min-width: 76px; }
.win.wizz { animation: wizz-shake .62s linear; }
@keyframes wizz-shake { 0%, 100% { translate: 0 0; } 10% { translate: -9px 3px; } 20% { translate: 8px -4px; } 30% { translate: -7px -2px; } 40% { translate: 9px 3px; } 50% { translate: -8px 2px; } 60% { translate: 6px -3px; } 70% { translate: -5px 3px; } 80% { translate: 4px -2px; } 90% { translate: -2px 1px; } }
/* les petites fenêtres « vient de se connecter », qui montent de la barre des tâches */
.msn-toast { position: fixed; right: 12px; bottom: calc(var(--taskbar-h) + 10px + var(--i, 0) * 98px); z-index: 900; width: 244px; overflow: hidden; border: 1px solid #6f92c9; border-radius: 5px; background: linear-gradient(180deg, #fbfdff, #dde9fa); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); font: 12px var(--font-ui); opacity: 0; transform: translateY(40px); transition: transform .25s ease-out, opacity .25s ease-out, bottom .2s; }
.msn-toast.in { opacity: 1; transform: none; }
.mt-head { display: flex; align-items: center; gap: 5px; padding: 3px 3px 3px 6px; background: linear-gradient(180deg, #6a9ae0, #3a6bc4); color: #fff; font-weight: 700; }
.mt-head img { width: 14px; height: 14px; }
.mt-x { width: 20px; height: 18px; margin-left: auto; padding: 0; border: 0; border-radius: 3px; background: none; color: #fff; font: 700 15px/1 var(--font-ui); }
.mt-x:hover { background: rgba(255, 255, 255, .25); }
.mt-body { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px 10px; border: 0; background: none; text-align: left; }
.mt-body:hover .mt-txt b, .mt-body:focus-visible .mt-txt b { text-decoration: underline; }
.mt-body .face.mt-pic { width: 42px; height: 42px; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px #9fb6d8; }
.mt-body .face.mt-pic img, .mt-body .face.mt-pic canvas { width: 100% !important; height: 100% !important; }
.mt-txt { min-width: 0; }
.mt-txt b { display: block; color: #0b3a8c; }
.mt-txt span { display: block; margin-top: 2px; color: #333; overflow-wrap: anywhere; }
.tray-msn { position: relative; width: 18px; }
.tray-msn img { width: 16px; height: 16px; }
.tray-msn .msn-dot { position: absolute; right: -3px; bottom: -2px; width: 9px; height: 9px; }
@media (pointer: coarse), (max-width: 760px) {
  .msn-row { min-height: 46px; padding-left: 14px; }
  .msn-row-txt { font-size: 14px; }
  .msn-row.contact .msn-row-txt b { display: block; }
  .msn-row.contact .msn-row-txt i { display: block; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; }
  .msn-row.contact .msn-row-txt i::before { content: none; }
  .msn-group { padding: 10px 12px 5px; font-size: 13px; }
  .msn-search input { height: 34px; font-size: 14px; }
  .msn-tabs button { padding: 8px 14px 7px; font-size: 13px; }
  .msn-toast { top: calc(env(safe-area-inset-top) + 8px + var(--i, 0) * 74px); right: 10px; bottom: auto; left: 10px; width: auto; transform: translateY(-30px); }
  .msn-toast .mt-head { display: none; }
  .mt-body { padding: 8px 12px; }
  .conv-pics { display: none; }
  .conv-main { grid-template-columns: minmax(0, 1fr); }
  .conv-act { height: 40px; }
  .conv-write textarea { font-size: 16px; }
  .conv-tool { width: 38px; height: 34px; }
  .conv-tool canvas, .conv-tool .wz-ico { width: 22px; height: 22px; }
}
/* la messagerie en vrai : ajouter un contact, invitations, invité */
.msn-banner { display: flex; align-items: center; gap: 8px; margin: 7px 10px 0; padding: 7px 9px; border: 1px solid #e6c46a; border-radius: 4px; background: linear-gradient(180deg, #fffbe6, #fff2c2); color: #5b4300; font: 12px/1.35 var(--font-ui); }
.msn-banner span { flex: 1; }
.msn-searchrow { display: flex; align-items: center; gap: 6px; padding: 7px 10px 5px; }
.msn-searchrow .msn-search { flex: 1; padding: 0; }
.msn-add { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 5px; border: 1px solid #a9bfdf; border-radius: 14px; background: linear-gradient(180deg, #fff, #e8f0fb); color: #10316b; font: 12px var(--font-ui); }
.msn-add img { width: 20px; height: 20px; }
.msn-add:hover, .msn-add:focus-visible { border-color: #5b8fdc; background: #fff; outline: none; }
.msn-row.request { padding-left: 14px; background: #fffbea; }
.msn-row.request .msn-row-txt i::before { content: ' '; }
.msn-req { display: flex; flex: none; gap: 4px; }
.msn-hint { margin: 10px 14px; padding: 10px 12px; border: 1px dashed #a9bfdf; border-radius: 6px; background: #f7faff; color: #334; font: 12.5px/1.45 var(--font-ui); }
.msn-hint p { margin: 0 0 8px; }
.msg-act { margin-left: 6px; vertical-align: middle; }
.add-contact { display: flex; flex-direction: column; gap: 8px; min-width: min(380px, 78vw); }
.add-contact p { margin: 0; }
.ac-mail { display: flex; flex-direction: column; gap: 4px; }
.ac-mail input { height: 26px; font-size: 13px; }
.ac-or { margin-top: 4px !important; color: #555; font-weight: 700; }
.ac-list { max-height: min(240px, 36vh); overflow-y: auto; border: 1px solid #7f9db9; background: #fff; }
.ac-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid #eef1f6; }
.ac-row .face.ac-pic { width: 32px; height: 32px; border: 1px solid #b7c6dd; border-radius: 3px; }
.ac-row .face.ac-pic img, .ac-row .face.ac-pic canvas { width: 100% !important; height: 100% !important; }
.ac-name { flex: 1; min-width: 0; }
.ac-name b, .ac-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-name small { color: #6b7280; }
.ac-wait { padding: 12px; color: #6b7280; text-align: center; }
.ac-listed { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: #333; }
.ac-listed input { margin-top: 2px; }
@media (pointer: coarse), (max-width: 760px) { .msn-add { height: 36px; } .msn-banner { font-size: 13px; } .ac-row { min-height: 48px; } }
.conv-addc { flex: none; margin-left: auto; color: #0b3bb5; font-size: 11.5px; }
.msg.sys.duel { color: #1f4d99; font-style: normal; font-weight: 700; }
/* les jeux à deux */
.win-body.duel { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #eef4fc; }
.duel-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #b7cbe8; border-radius: 4px; background: #fff; }
.duel-p { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; }
.duel-p.them { justify-content: flex-end; text-align: right; }
.duel-p .face.duel-pic { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px #9fb6d8; }
.duel-p .face.duel-pic img, .duel-p .face.duel-pic canvas { width: 100% !important; height: 100% !important; }
.duel-n { min-width: 0; }
.duel-n b { display: block; overflow: hidden; font: 700 12.5px var(--font-ui); text-overflow: ellipsis; white-space: nowrap; }
.duel-n small { display: block; color: #6b7280; font-size: 10.5px; }
.duel-sc { min-width: 30px; font: italic 700 24px var(--font-title); color: #0b2f6e; font-style: normal; text-align: center; }
.duel-vs { flex: none; color: #6b7280; font: 11px var(--font-ui); }
.duel-stage { display: grid; flex: 1; min-height: 0; place-items: center; }
.duel-status { min-height: 18px; margin: 0; color: #1f2937; font: 13px var(--font-ui); text-align: center; }
.duel-btns { display: flex; justify-content: center; gap: 8px; }
.ttt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(300px, 100%); aspect-ratio: 1; }
.ttt-c { border: 2px solid; border-color: #fff #8aa4c8 #8aa4c8 #fff; border-radius: 6px; background: linear-gradient(180deg, #fbfdff, #e3ecf9); font: 700 min(64px, 16vw)/1 var(--font-title); }
.ttt-c.x { color: #e8590c; } .ttt-c.o { color: #2f6fd6; }
.ttt-c.pose { animation: duel-pop .25s ease-out; }
.ttt-c.gagne { background: #fff4a8; }
.ttt-c:not(:disabled):not(.x):not(.o):hover { background: #fff; }
@keyframes duel-pop { from { transform: scale(.6); } }
.c4 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: min(380px, 100%); padding: 8px; border-radius: 8px; background: linear-gradient(180deg, #3a6bc4, #1f4d99); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.c4-c { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #eef4fc; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .35); }
.c4-c.rouge { background: radial-gradient(circle at 38% 32%, #ff9a8a, #e03b2e 55%, #9e2016); }
.c4-c.jaune { background: radial-gradient(circle at 38% 32%, #fff3a8, #f5c518 55%, #b58a06); }
.c4-c.tombe { animation: c4-drop .35s cubic-bezier(.3, 1.4, .6, 1); }
.c4-c.gagne { box-shadow: 0 0 0 3px #fff, 0 0 12px 3px rgba(255, 255, 255, .8); }
@keyframes c4-drop { from { transform: translateY(calc(var(--h, 3) * -110%)); } }
.rps { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rps-show { display: flex; align-items: center; gap: 18px; }
.rps-hand { display: grid; width: 96px; height: 96px; place-items: center; border: 2px solid #b7cbe8; border-radius: 50%; background: #fff; font: 700 52px/1 var(--font-title); color: #9aa3ad; }
.rps-hand.pose { animation: duel-pop .3s ease-out; color: #111; }
.rps-x { color: #6b7280; font: 700 24px var(--font-ui); }
.rps-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rps-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; padding: 10px 8px; border: 1px solid #9dbbe6; border-radius: 8px; background: linear-gradient(180deg, #fff, #e6effb); font: 12px var(--font-ui); }
.rps-pick span { font-size: 34px; line-height: 1; }
.rps-pick:disabled { opacity: .55; }
.rps-pick:not(:disabled):hover { border-color: #5b8fdc; background: #fff; }
canvas.pong { display: block; width: min(100%, calc((100cqh - 10px) * .68), 330px); height: auto; aspect-ratio: 300 / 440; border: 3px solid #1f2a44; border-radius: 6px; background: #0b0f1e; touch-action: none; cursor: none; }
.duel-pong .duel-stage { container-type: size; }

/* Dames : le damier en bois, les pions ivoire et ébène, la dame cerclée d'or */
.duel-dames .duel-stage, .duel-reversi .duel-stage, .duel-navale .duel-stage { container-type: size; }
.dm { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: min(100%, 100cqh, 420px); aspect-ratio: 1; padding: 5px; border-radius: 5px; background: linear-gradient(135deg, #6b4423, #4a2d15); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.dm-c { position: relative; display: grid; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #f0d9b5; place-items: center; }
.dm-c.sombre { background: #b58863; }
.dm-c:disabled { cursor: default; }
.dm-c.last { box-shadow: inset 0 0 0 100px rgba(255, 236, 140, .28); }
.dm-c.can { cursor: pointer; box-shadow: inset 0 0 0 3px rgba(255, 214, 64, .85); }
.dm-c.sel { box-shadow: inset 0 0 0 100px rgba(255, 214, 64, .55); }
.dm-c.to { cursor: pointer; }
.dm-c.to::after { content: ''; position: absolute; width: 32%; height: 32%; border-radius: 50%; background: rgba(40, 110, 30, .75); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.dm-p { width: 80%; height: 80%; border-radius: 50%; box-shadow: 0 2px 2px rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(0, 0, 0, .18); pointer-events: none; }
.dm-p.blanc { background: radial-gradient(circle at 38% 30%, #ffffff, #efe7d8 55%, #c9bda6); }
.dm-p.noir { background: radial-gradient(circle at 38% 30%, #6d5a4d, #2f231c 55%, #120d0a); }
.dm-p.dame { box-shadow: 0 2px 2px rgba(0, 0, 0, .45), inset 0 0 0 3px #e2a800, inset 0 0 0 5px rgba(255, 236, 140, .9); }
.dm-p.dame::after { content: ''; display: block; width: 36%; height: 36%; margin: 32%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff2a8, #e2a800); }

/* Reversi : le tapis vert, les pions qui se retournent */
.rv { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); gap: 2px; width: min(100%, 100cqh, 420px); aspect-ratio: 1; padding: 4px; border-radius: 6px; background: #145a32; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rv-c { position: relative; display: grid; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 2px; background: radial-gradient(circle at 50% 40%, #2fa35a, #23874a); place-items: center; }
.rv-c.legal { cursor: pointer; }
.rv-c.legal::after { content: ''; width: 26%; height: 26%; border-radius: 50%; background: rgba(210, 255, 200, .7); box-shadow: 0 0 0 2px rgba(20, 90, 50, .35); }
.rv-c.legal:hover::after { background: #e9ffe2; }
.rv-d { width: 84%; height: 84%; border-radius: 50%; box-shadow: 0 2px 2px rgba(0, 0, 0, .45); pointer-events: none; }
.rv-d.noir { background: radial-gradient(circle at 38% 30%, #5d5d5d, #1c1c1c 55%, #050505); }
.rv-d.blanc { background: radial-gradient(circle at 38% 30%, #ffffff, #eef0f2 55%, #b9bec4); }
.rv-d.pose { animation: duel-pop .25s ease-out; }
.rv-d.tourne { animation: rv-flip .35s ease-in-out; }
@keyframes rv-flip { 50% { transform: scaleX(0); } }

/* Bataille navale : deux mers ; la sienne avec ses bateaux, celle de l'adversaire où l'on tire */
.nv { --nv-big: min(calc(100cqw - 8px), 56cqh, 400px); --nv-small: min(calc(100cqw - 8px), 30cqh, 220px); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.nv.spectateur, .nv.placement { --nv-small: var(--nv-big); }
.nv.spectateur { --nv-big: min(calc(100cqw - 8px), 42cqh, 330px); }
.nv.placement .nv-target { display: none; }
.nv-side { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nv-cap { margin: 0; color: #10316b; font: 700 11.5px var(--font-ui); }
.nv-side.actif .nv-cap { color: #b35900; }
.nv-board { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); gap: 1px; padding: 2px; border-radius: 4px; background: #0f3d6e; aspect-ratio: 1; }
.nv-target .nv-board { width: var(--nv-big); }
.nv-own .nv-board { width: var(--nv-small); }
.nv-side.actif .nv-board { box-shadow: 0 0 0 3px #f7a51c; }
.nv-c { position: relative; display: grid; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 1px; background: linear-gradient(180deg, #6db7ea, #4a9bd8); place-items: center; }
.nv-c:disabled { cursor: default; }
.nv-c:not(:disabled) { cursor: crosshair; }
.nv-c:not(:disabled):hover { background: #9fd3f7; }
.nv-c.bateau { background: linear-gradient(180deg, #a3adb8, #7b8794); }
.nv-c.eau::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.nv-c.touche { background: #ff7b54; }
.nv-c.touche::after, .nv-c.coule::after { content: '✕'; color: #fff; font: 700 min(14px, 3.4cqh)/1 var(--font-ui); text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.nv-c.coule { background: #8f1d1d; }
.nv-c.dernier { box-shadow: inset 0 0 0 2px #ffe08a; }
.nv-btns { display: flex; gap: 8px; }
@container (orientation: landscape) {
  .nv { --nv-big: min(56cqw, calc(100cqh - 30px), 400px); --nv-small: min(38cqw, 62cqh, 260px); flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }
  .nv.spectateur { --nv-big: min(46cqw, calc(100cqh - 30px), 360px); }
  .nv.placement { --nv-big: min(56cqw, calc(100cqh - 60px), 380px); }
}
@media (prefers-reduced-motion: reduce) { .rv-d.tourne, .rv-d.pose { animation: none; } }

/* la Messagerie : les salons de discussion en tête de liste, et les logos des jeux à deux à côté du Wizz */
.msn-row.chat-room { padding-left: 14px; }
.msn-row .msn-room-ico { width: 24px; height: 24px; flex: none; }
.msn-row.chat-room .msn-row-txt i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msn-room-n { flex: none; margin-left: auto; padding: 1px 6px; border-radius: 9px; color: #6b7a90; font-size: 11px; }
.msn-room-n.some { background: #e3f3e0; color: #256b1f; }
.conv-games { display: flex; align-items: center; gap: 1px; margin-left: 4px; padding-left: 5px; border-left: 1px solid #d5e0ef; }
.conv-tools .conv-game { display: grid; place-items: center; width: 26px; padding: 0; }
.conv-tools .conv-game img { width: 18px; height: 18px; }
@media (max-width: 760px), (pointer: coarse) { .conv-tools .conv-game { width: 34px; } .conv-tools .conv-game img { width: 20px; height: 20px; } }
