
@import url('https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

html {
background: radial-gradient(circle at top, #0f0f0f, #000);
}

body{
	font-family: "Figtree", sans-serif;
	top:50px;
	position:relative;
	
  min-height: calc(100vh - 90px);
}

h1 {
 font-family:Helvetica;
 color:white;
 font-size:30px;
}
h2 {
	color:white;
}
p {
	color:white;
}

header {
background: #000;
border-bottom:2px solid rgba(255,255,255,0.3);
	position:fixed;
	height:60px;
	width:100%;
	top:0;
	left:0;
}
header p {
	color: white;
	font-size:30px;
	margin: 5px;
}

.site-header {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  position:fixed;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;

  background: linear-gradient(
    90deg,
    #ff00cc,
    #ff0066,
    #6600ff,
    #00ffff
  );

  filter: blur(6px);
  opacity: 1;
}

.header-left {
 padding: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 10px;
}

.user-name {
  font-weight: 600;
}

header .btn {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

header .btn-outline {
  border: 1px solid #ccc;
  color: white;
}

header .btn-primary {
  background: #000;
  color: #fff;
}

.header-left {
display: inline-flex;
align-items: center;
}
  .header-left ul {
  list-style:none;
  text-transform:uppercase;
  padding: 0;
  }

  .header-left li {
  display: inline-block;
  }

  .header-left ul a {
font-weight:600;
font-size:16px;
border-radius:6px;
padding:4px 4px;
}

a {
	text-decoration:none;
	color:#DDDDDD;
}
body img {
	border-radius:20px;
}
label {
	color:white;
}
th {
	color:white;
}
ul {
	color:white;
}
td {
	color:white;
}

article a {
  text-decoration:underline;
}

/* --- Register form --- */

.register-wrapper{
  display:flex;
  justify-content:center;
  padding:40px 20px;
}

.register-box{
  width:100%;
  max-width:420px;
  background:#020B1F;
  padding:30px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
}

.register-box input{
  width:100%;
  padding:10px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,0.2);
  background:#10182C;
  color:white;
  margin-top:6px;
  margin-bottom:18px;
}

.register-box input:focus{
  outline:none;
  border-color:#EA8845;
}

.register-box button{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:none;
  background:#EA8845;
  color:white;
  font-weight:bold;
  cursor:pointer;
}

.register-box button:hover{
  background:#d87439;
}

.form-hint{
  font-size:12px;
  opacity:0.7;
  margin-top:-14px;
  margin-bottom:16px;
}

.form-error{
  background:#630202;
  padding:10px;
  border-radius:6px;
  margin-bottom:16px;
}

.form-success{
  background:#0f5132;
  padding:10px;
  border-radius:6px;
  margin-bottom:16px;
}

.games-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
gap:20px;
margin:20px;
}

.game-card{
display:block;
background:#10182C;
border-radius:12px;
overflow:hidden;
text-decoration:none;
transition:transform 0.2s, box-shadow 0.2s;
border: solid 1px rgba(255, 255, 255, 0.5);
}

.game-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.game-card img{
width:100%;
aspect-ratio:2/3;
object-fit:cover;
display:block;
}

.game-title{
padding:10px;
text-align:center;
color:white;
font-weight:600;
font-size:14px;
}

@media (max-width: 1200px) {

  article, h2 {
  padding:0 20px;
  }

}

@media (max-width: 900px) {

	article, h2 {
	padding:0 20px;
	}

}



/* --- Helpers --- */
.desktop-only { display: inline-flex; }
.mobile-only { display: none !important; }

/* --- Hamburger --- */
.menu-toggle {
  background: none;
  border: none;
  width: 34px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* --- Menu mobile fullscreen --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.mobile-nav a {
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* bloque le scroll derrière */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }

  .header-right {
    gap: 12px;
  }

  .header-left {
    padding: 12px 20px;
  }
}

.has-unread {
  color: #EA8845 !important;
  border-color: #EA8845 !important;
}

.has-unread::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #EA8845;
  border-radius: 50%;
  margin-left: 6px;
}

/* Pastille orange sur le burger si message non lu */
.menu-toggle.has-unread-dot {
  position: relative;
}

.menu-toggle.has-unread-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #EA8845;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #10182C; /* couleur du header */
}
.highscores-page {
  padding: 20px;
}

.highscores-game-block {
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
}

.highscores-game-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.highscores-game-title h3 {
  margin: 0;
  color: white;
}

.highscores-cover {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.highscores-table-wrap {
  overflow-x: auto;
}

.highscores-table {
  width: 100%;
  border-collapse: collapse;
}

.highscores-table th,
.highscores-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
