.reversi-simple-page{
  margin:0 auto;
  padding:18px 0 28px;
  font-family:Arial, sans-serif;
  background:#123524;
  color:white;
  text-align:center;
  border:5px solid #111;
  box-shadow:8px 8px 0 #111;
}

.reversi-simple-page *{
  box-sizing:border-box;
}

.reversi-simple-page h1{
  margin:14px;
  font-size:clamp(1.8rem, 4vw, 3rem);
  font-weight:900;
}

.reversi-simple-info{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin:10px;
  font-size:20px;
}

.reversi-simple-info div{
  background:#0b2a1b;
  border:3px solid #111;
  border-radius:10px;
  padding:10px 14px;
  box-shadow:4px 4px 0 #111;
}

.reversi-simple-board{
  width:min(92vw,640px);
  height:min(92vw,640px);
  margin:15px auto;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  grid-template-rows:repeat(8,1fr);
  background:#0b7a3b;
  border:5px solid #111;
  box-shadow:8px 8px 0 rgba(0,0,0,.55);
}

.reversi-cell{
  border:1px solid #064d27;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#0b7a3b;
}

.reversi-cell.valid{
  background:#15994e;
}

.reversi-cell.valid::after{
  content:"";
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(255,255,255,.45);
}

.reversi-disc{
  width:72%;
  height:72%;
  border-radius:50%;
  box-shadow:
    inset 0 3px 8px rgba(255,255,255,.25),
    0 3px 8px rgba(0,0,0,.45);
}

.reversi-disc.black{
  background:#111;
}

.reversi-disc.white{
  background:#f1f1f1;
}

.reversi-simple-controls{
  margin:12px;
}

.reversi-simple-controls button{
  font-size:20px;
  padding:12px 20px;
  border:none;
  border-radius:10px;
  font-weight:bold;
  cursor:pointer;
  background:#f5c542;
  color:#111;
  box-shadow:4px 4px 0 #111;
}

.reversi-simple-controls button:hover{
  transform:translateY(-2px);
}

.reversi-simple-message{
  font-size:22px;
  min-height:32px;
  margin:10px;
  font-weight:bold;
}

@media(max-width:620px){
  .reversi-simple-page{
    padding:12px 0 22px;
  }

  .reversi-simple-info{
    font-size:16px;
    gap:8px;
  }

  .reversi-simple-info div{
    padding:8px 10px;
  }

  .reversi-simple-controls button{
    font-size:17px;
  }

  .reversi-simple-message{
    font-size:18px;
  }
}

/* Reversi - alignement visuel sur les pages de jeu standard */
.reversi-page.game-standard-page{
  display:grid;
  gap:20px;
  background:transparent;
  color:#111;
  text-align:left;
  border:0;
  box-shadow:none;
  padding:0;
}

.reversi-page-hero.game-standard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);
  gap:20px;
  align-items:stretch;
  background:
    radial-gradient(circle at top left, rgba(11,122,59,.22), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff8e7);
  border:4px solid var(--line);
  border-radius:26px;
  box-shadow:8px 8px 0 var(--line);
  padding:24px;
}

.reversi-page-kicker.game-standard-kicker{
  display:inline-flex;
  width:max-content;
  background:#0b7a3b;
  color:#fff;
  border:3px solid var(--line);
  border-radius:999px;
  box-shadow:4px 4px 0 var(--line);
  padding:7px 12px;
  font-weight:1000;
  text-transform:uppercase;
  font-size:.78rem;
}

.reversi-page-hero h2{
  margin:14px 0 8px;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:.95;
  font-weight:1000;
  letter-spacing:-.04em;
  color:#111;
}

.reversi-page-hero p{
  margin:0;
  max-width:760px;
  font-size:1.05rem;
  font-weight:850;
  color:#333;
  line-height:1.55;
}

.reversi-page-status-card.game-standard-status{
  display:grid;
  gap:10px;
  background:#111;
  color:#fff;
  border:4px solid var(--line);
  border-radius:22px;
  box-shadow:6px 6px 0 var(--line);
  padding:18px;
  align-content:center;
}

.reversi-page-status-card strong{
  font-size:1.2rem;
  text-transform:uppercase;
}

.reversi-page-status-card span{
  background:#fff;
  color:#111;
  border:2px solid var(--line);
  border-radius:14px;
  padding:9px 10px;
  font-weight:900;
}

.reversi-toolbar.game-standard-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  flex-wrap:wrap;
  background:#fff;
  border:4px solid var(--line);
  border-radius:24px;
  box-shadow:8px 8px 0 var(--line);
  padding:16px;
}

.reversi-mode{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.reversi-mode label{
  display:grid;
  gap:6px;
  font-weight:1000;
}

.reversi-mode select{
  border:4px solid var(--line);
  border-radius:18px;
  box-shadow:5px 5px 0 var(--line);
  padding:12px 16px;
  font-weight:1000;
  background:#fff8e7;
  color:#111;
}

.reversi-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.reversi-actions button{
  border:4px solid var(--line);
  border-radius:18px;
  box-shadow:5px 5px 0 var(--line);
  padding:12px 16px;
  font-weight:1000;
  cursor:pointer;
}

#reversiNewGame{
  background:#2ed573;
  color:#111;
}

#reversiFriendBtn{
  background:#ffd32a;
  color:#111;
}

.reversi-status.game-standard-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.reversi-status.game-standard-stats > div{
  background:#fff;
  border:4px solid var(--line);
  border-radius:22px;
  box-shadow:6px 6px 0 var(--line);
  padding:14px;
  text-align:center;
  font-weight:900;
}

.reversi-status.game-standard-stats span{
  display:block;
  text-transform:uppercase;
  font-size:.82rem;
  color:#555;
}

.reversi-status.game-standard-stats strong{
  display:block;
  margin-top:4px;
  font-size:1.8rem;
  color:#111;
}

.reversi-message.game-standard-message{
  background:#fffa85;
  border:4px solid var(--line);
  border-radius:22px;
  box-shadow:6px 6px 0 var(--line);
  padding:14px;
  font-weight:1000;
  font-size:1.1rem;
  text-align:center;
  color:#111;
  min-height:auto;
  margin:0;
}

/* Le plateau conserve la base simple fournie */
.reversi-simple-board.game-standard-board{
  width:min(92vw,640px);
  height:min(92vw,640px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  grid-template-rows:repeat(8,1fr);
  background:#0b7a3b;
  border:5px solid #111;
  box-shadow:8px 8px 0 rgba(0,0,0,.55);
}

@media(max-width:800px){
  .reversi-page-hero.game-standard-hero{
    grid-template-columns:1fr;
  }

  .reversi-toolbar.game-standard-toolbar{
    align-items:stretch;
  }

  .reversi-mode,
  .reversi-actions{
    width:100%;
  }

  .reversi-actions button,
  .reversi-mode label{
    flex:1;
  }

  .reversi-status.game-standard-stats{
    grid-template-columns:1fr;
  }
}
