body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(231, 196, 104, 0.16), transparent 32%),
    linear-gradient(135deg, #0d1117 0%, #141b22 45%, #1b120d 100%);
  color: #f6e7c8;
  font-family: Arial, sans-serif;
}

#page-shell {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 24px;
}

#clockwork-info {
  width: min(360px, 34vw);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#clockwork-info h1,
#clockwork-info h2,
#clockwork-info p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e2c56d;
  font-size: 12px;
  font-weight: 700;
}

.notice-card,
.info-card {
  background: rgba(14, 18, 25, 0.82);
  border: 1px solid rgba(226, 197, 109, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  padding: 18px 20px;
}

.notice-card h2,
.info-card h2 {
  margin-bottom: 10px;
  color: #fff3cf;
  font-size: 20px;
}

.controls-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #f7ead2;
  line-height: 1.45;
}

#unity-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-container {
  position: relative;
  display: inline-block;
}

#unity-container.unity-desktop {
  max-width: 100%;
}

#unity-container.unity-mobile {
  width: 100%;
  height: 100%;
}

#unity-canvas {
  display: block;
  max-width: 100%;
  background: #231f20;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo {
  width: 154px;
  height: 40px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff3cf;
}

#unity-logo::before {
  content: "Chargement";
  line-height: 40px;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  overflow: hidden;
  border: 1px solid rgba(226, 197, 109, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2c56d 0%, #f6e7c8 100%);
}

#unity-footer {
  display: flow-root;
  padding: 10px 12px 0;
  background: rgba(14, 18, 25, 0.88);
  border: 1px solid rgba(226, 197, 109, 0.2);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-logo-title-footer {
  float: left;
  width: 116px;
  height: 38px;
  color: #f6e7c8;
  font-size: 13px;
  line-height: 38px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#unity-logo-title-footer::before {
  content: "Unity WebGL";
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-size: 18px;
  color: #f6e7c8;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(226, 197, 109, 0.12);
  color: #f6e7c8;
  line-height: 38px;
  text-align: center;
  font-size: 13px;
}

#unity-fullscreen-button::before {
  content: "Plein ecran";
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translate(-50%);
  background: rgba(14, 18, 25, 0.92);
  border: 1px solid rgba(226, 197, 109, 0.24);
  border-radius: 12px;
  padding: 10px;
  display: none;
  width: min(90%, 720px);
  box-sizing: border-box;
}

@media (max-width: 1180px) {
  #page-shell {
    flex-direction: column;
  }

  #clockwork-info {
    width: 100%;
    min-width: 0;
  }

  #unity-shell {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  #page-shell {
    padding: 14px;
    gap: 14px;
  }

  #unity-canvas {
    border-radius: 14px 14px 0 0;
  }

  #unity-footer {
    border-radius: 0 0 14px 14px;
  }

  .controls-list {
    font-size: 14px;
  }
}
